summaryrefslogtreecommitdiff
path: root/utils/themeeditor/editorwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/editorwindow.cpp')
-rw-r--r--utils/themeeditor/editorwindow.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/utils/themeeditor/editorwindow.cpp b/utils/themeeditor/editorwindow.cpp
index 8e81829a41..ca5f8bfa73 100644
--- a/utils/themeeditor/editorwindow.cpp
+++ b/utils/themeeditor/editorwindow.cpp
@@ -94,6 +94,10 @@ void EditorWindow::setupUI()
94 QObject::connect(ui->actionPreferences, SIGNAL(triggered()), 94 QObject::connect(ui->actionPreferences, SIGNAL(triggered()),
95 prefs, SLOT(exec())); 95 prefs, SLOT(exec()));
96 96
97 /* Setting up the parse status label */
98 parseStatus = new QLabel(this);
99 ui->statusbar->addWidget(parseStatus);
100
97} 101}
98 102
99void EditorWindow::setupMenus() 103void EditorWindow::setupMenus()
@@ -144,7 +148,7 @@ void EditorWindow::addTab(SkinDocument *doc)
144 148
145void EditorWindow::newTab() 149void EditorWindow::newTab()
146{ 150{
147 SkinDocument* doc = new SkinDocument; 151 SkinDocument* doc = new SkinDocument(parseStatus);
148 addTab(doc); 152 addTab(doc);
149} 153}
150 154
@@ -161,8 +165,12 @@ void EditorWindow::shiftTab(int index)
161 } 165 }
162 else 166 else
163 { 167 {
168 /* Syncing the tree view and the status bar */
164 ui->parseTree->setModel(dynamic_cast<SkinDocument*> 169 ui->parseTree->setModel(dynamic_cast<SkinDocument*>
165 (ui->editorTabs->currentWidget())->getModel()); 170 (ui->editorTabs->currentWidget())->getModel());
171 parseStatus->setText(dynamic_cast<SkinDocument*>
172 (ui->editorTabs->currentWidget())->getStatus());
173
166 ui->actionSave_Document->setEnabled(true); 174 ui->actionSave_Document->setEnabled(true);
167 ui->actionSave_Document_As->setEnabled(true); 175 ui->actionSave_Document_As->setEnabled(true);
168 ui->actionClose_Document->setEnabled(true); 176 ui->actionClose_Document->setEnabled(true);
@@ -220,7 +228,7 @@ void EditorWindow::openFile()
220 QString current = fileNames[i]; 228 QString current = fileNames[i];
221 229
222 /* Adding a new document for each file name */ 230 /* Adding a new document for each file name */
223 SkinDocument* doc = new SkinDocument(current); 231 SkinDocument* doc = new SkinDocument(parseStatus, current);
224 addTab(doc); 232 addTab(doc);
225 233
226 /* And setting the new default directory */ 234 /* And setting the new default directory */