From 0e44ce9bedbea1244ef971b48f38a9c48eecf0f5 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Mon, 7 Jun 2010 20:29:46 +0000 Subject: 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 --- utils/themeeditor/editorwindow.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'utils/themeeditor/editorwindow.cpp') 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() 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 (ui->editorTabs->currentWidget())->getModel()); + parseStatus->setText(dynamic_cast + (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 */ -- cgit v1.2.3