diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-06-07 20:29:46 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-07 20:29:46 +0000 |
| commit | 0e44ce9bedbea1244ef971b48f38a9c48eecf0f5 (patch) | |
| tree | 79b074202ee1d425abbfb5bb2449701a5fba48bc /utils/themeeditor/editorwindow.cpp | |
| parent | bd2ba8068c6cbc58299e98896abd08301a51214f (diff) | |
| download | rockbox-0e44ce9bedbea1244ef971b48f38a9c48eecf0f5.zip rockbox-0e44ce9bedbea1244ef971b48f38a9c48eecf0f5.tar.gz rockbox-0e44ce9bedbea1244ef971b48f38a9c48eecf0f5.tar.bz2 rockbox-0e44ce9bedbea1244ef971b48f38a9c48eecf0f5.tar.xz | |
Theme Editor: Changed anged error reporting method in parser, added error messages to status bar in editor
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26672 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/editorwindow.cpp')
| -rw-r--r-- | utils/themeeditor/editorwindow.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/utils/themeeditor/editorwindow.cpp b/utils/themeeditor/editorwindow.cpp index 8e81829..ca5f8bf 100644 --- a/utils/themeeditor/editorwindow.cpp +++ b/utils/themeeditor/editorwindow.cpp @@ -94,6 +94,10 @@ void EditorWindow::setupUI() QObject::connect(ui->actionPreferences, SIGNAL(triggered()), prefs, SLOT(exec())); + /* Setting up the parse status label */ + parseStatus = new QLabel(this); + ui->statusbar->addWidget(parseStatus); + } void EditorWindow::setupMenus() @@ -144,7 +148,7 @@ void EditorWindow::addTab(SkinDocument *doc) void EditorWindow::newTab() { - SkinDocument* doc = new SkinDocument; + SkinDocument* doc = new SkinDocument(parseStatus); addTab(doc); } @@ -161,8 +165,12 @@ void EditorWindow::shiftTab(int index) } else { + /* Syncing the tree view and the status bar */ ui->parseTree->setModel(dynamic_cast<SkinDocument*> (ui->editorTabs->currentWidget())->getModel()); + parseStatus->setText(dynamic_cast<SkinDocument*> + (ui->editorTabs->currentWidget())->getStatus()); + ui->actionSave_Document->setEnabled(true); ui->actionSave_Document_As->setEnabled(true); ui->actionClose_Document->setEnabled(true); @@ -220,7 +228,7 @@ void EditorWindow::openFile() QString current = fileNames[i]; /* Adding a new document for each file name */ - SkinDocument* doc = new SkinDocument(current); + SkinDocument* doc = new SkinDocument(parseStatus, current); addTab(doc); /* And setting the new default directory */ |