Commit 0fcabede authored by Julien Wintz's avatar Julien Wintz
Browse files

Theming of creator continued.

parent 7010d97f
......@@ -4,9 +4,9 @@
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Fri Mar 2 15:13:52 2012 (+0100)
* Version: $Id$
* Last-Updated: Tue Mar 6 11:04:24 2012 (+0100)
* Last-Updated: Tue Apr 24 12:29:06 2012 (+0200)
* By: Julien Wintz
* Update #: 361
* Update #: 362
*/
/* Commentary:
......@@ -119,6 +119,7 @@ dtkLogViewList::dtkLogViewList(QWidget *parent) : QListView(parent)
this->setModel(this->proxy);
this->setAlternatingRowColors(true);
this->setAttribute(Qt::WA_MacShowFocusRect, false);
this->setFrameShape(QFrame::NoFrame);
this->setRuntime();
......
......@@ -4,9 +4,9 @@
;; Copyright (C) 2008-2011 - Julien Wintz, Inria.
;; Created: Thu Mar 15 12:05:17 2012 (+0100)
;; Version: $Id$
;; Last-Updated: Sat Apr 21 18:35:42 2012 (+0200)
;; Last-Updated: Tue Apr 24 12:28:23 2012 (+0200)
;; By: Julien Wintz
;; Update #: 403
;; Update #: 413
*/
/*Commentary:
......@@ -324,9 +324,9 @@ dtkDistributedControllerFilterView:!active {
* dtkDistributedControllerSubmitView
* ************************************************************** */
dtkDistributedControllerSubmitView {
border-bottom: 1px solid #919191;
}
/* dtkDistributedControllerSubmitView { */
/* border-bottom: 1px solid #919191; */
/* } */
dtkDistributedControllerSubmitView:active {
background-color: #e7ebf0;
......@@ -356,3 +356,29 @@ dtkDistributedControllerSubmitView QLabel#dtkDistributedControllerSubmitViewHead
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f5f5f5, stop: 1.0 #dadada);
border-bottom: 1px solid #919191;
}
/* **************************************************************
* dtkLog
* ************************************************************** */
dtkLogViewBar {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadada, stop: 1.0 #bcbcbc);
border-bottom: 1px solid #6c6c6c;
}
dtkLogViewTree {
border: none;
border-right: 1px solid #6c6c6c;
}
dtkLogViewTree:active {
background-color: #e7ebf0;
}
dtkLogViewTree:!active {
background-color: #ededed;
}
dtkLogViewList {
alternate-background-color: #f3f6fa;
}
......@@ -4,9 +4,9 @@
* Copyright (C) 2008 - Julien Wintz, Inria.
* Created: Mon Aug 3 17:40:34 2009 (+0200)
* Version: $Id$
* Last-Updated: Mon Apr 23 15:23:23 2012 (+0200)
* Last-Updated: Tue Apr 24 12:32:44 2012 (+0200)
* By: Julien Wintz
* Update #: 1622
* Update #: 1635
*/
/* Commentary:
......@@ -208,34 +208,34 @@ dtkCreatorMainWindow::dtkCreatorMainWindow(QWidget *parent) : QMainWindow(parent
QFrame *buttons = new QFrame(this);
buttons->setObjectName("dtkCreatorMainWindowSegmentedButtons");
QPushButton *compo_button = new QPushButton("Composition", buttons);
compo_button->setObjectName("dtkCreatorMainWindowSegmentedButtonLeft");
compo_button->setFixedSize(75, 25);
compo_button->setCheckable(true);
compo_button->setChecked(true);
d->compo_button = new QPushButton("Composition", buttons);
d->compo_button->setObjectName("dtkCreatorMainWindowSegmentedButtonLeft");
d->compo_button->setFixedSize(75, 25);
d->compo_button->setCheckable(true);
d->compo_button->setChecked(true);
QPushButton *distr_button = new QPushButton("Distribution", buttons);
distr_button->setObjectName("dtkCreatorMainWindowSegmentedButtonMiddle");
distr_button->setFixedSize(75, 25);
distr_button->setCheckable(true);
d->distr_button = new QPushButton("Distribution", buttons);
d->distr_button->setObjectName("dtkCreatorMainWindowSegmentedButtonMiddle");
d->distr_button->setFixedSize(75, 25);
d->distr_button->setCheckable(true);
QPushButton *debug_button = new QPushButton("Debug", buttons);
debug_button->setObjectName("dtkCreatorMainWindowSegmentedButtonRight");
debug_button->setFixedSize(75, 25);
debug_button->setCheckable(true);
d->debug_button = new QPushButton("Debug", buttons);
d->debug_button->setObjectName("dtkCreatorMainWindowSegmentedButtonRight");
d->debug_button->setFixedSize(75, 25);
d->debug_button->setCheckable(true);
QButtonGroup *button_group = new QButtonGroup(this);
button_group->setExclusive(true);
button_group->addButton(compo_button);
button_group->addButton(distr_button);
button_group->addButton(debug_button);
button_group->addButton(d->compo_button);
button_group->addButton(d->distr_button);
button_group->addButton(d->debug_button);
QHBoxLayout *buttons_layout = new QHBoxLayout(buttons);
buttons_layout->setMargin(0);
buttons_layout->setSpacing(11);
buttons_layout->addWidget(compo_button);
buttons_layout->addWidget(distr_button);
buttons_layout->addWidget(debug_button);
buttons_layout->addWidget(d->compo_button);
buttons_layout->addWidget(d->distr_button);
buttons_layout->addWidget(d->debug_button);
mainToolBar->addWidget(new dtkSpacer(this));
mainToolBar->addWidget(new dtkNotificationDisplay(this));
......@@ -286,9 +286,9 @@ dtkCreatorMainWindow::dtkCreatorMainWindow(QWidget *parent) : QMainWindow(parent
connect(switchToDstrbAction, SIGNAL(triggered()), this, SLOT(switchToDstrb()));
connect(switchToDebugAction, SIGNAL(triggered()), this, SLOT(switchToDebug()));
connect(compo_button, SIGNAL(pressed()), this, SLOT(switchToCompo()));
connect(distr_button, SIGNAL(pressed()), this, SLOT(switchToDstrb()));
connect(debug_button, SIGNAL(pressed()), this, SLOT(switchToDebug()));
connect(d->compo_button, SIGNAL(pressed()), this, SLOT(switchToCompo()));
connect(d->distr_button, SIGNAL(pressed()), this, SLOT(switchToDstrb()));
connect(d->debug_button, SIGNAL(pressed()), this, SLOT(switchToDebug()));
connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(close()));
......@@ -524,6 +524,10 @@ bool dtkCreatorMainWindow::compositionInsert(const QString& file)
void dtkCreatorMainWindow::switchToCompo(void)
{
d->compo_button->blockSignals(true);
d->compo_button->setChecked(true);
d->compo_button->blockSignals(false);
if(!d->wl && !d->wr) {
d->wl = d->nodes->size().width();
d->wr = d->stack->size().width();
......@@ -543,6 +547,10 @@ void dtkCreatorMainWindow::switchToCompo(void)
void dtkCreatorMainWindow::switchToDstrb(void)
{
d->distr_button->blockSignals(true);
d->distr_button->setChecked(true);
d->distr_button->blockSignals(false);
if(!d->wl && !d->wr) {
d->wl = d->nodes->size().width();
d->wr = d->stack->size().width();
......@@ -562,6 +570,10 @@ void dtkCreatorMainWindow::switchToDstrb(void)
void dtkCreatorMainWindow::switchToDebug(void)
{
d->debug_button->blockSignals(true);
d->debug_button->setChecked(true);
d->debug_button->blockSignals(false);
d->wl = d->nodes->size().width();
d->wr = d->stack->size().width();
......
......@@ -4,9 +4,9 @@
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Wed Feb 1 12:37:28 2012 (+0100)
* Version: $Id$
* Last-Updated: Sat Apr 21 18:33:42 2012 (+0200)
* Last-Updated: Tue Apr 24 12:30:36 2012 (+0200)
* By: Julien Wintz
* Update #: 132
* Update #: 133
*/
/* Commentary:
......@@ -91,6 +91,11 @@ public:
dtkRecentFilesMenu *recent_compositions_menu;
public:
QPushButton *compo_button;
QPushButton *distr_button;
QPushButton *debug_button;
public:
bool closing;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment