mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-17 12:07:38 -04:00
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
This commit is contained in:
parent
bd2ba8068c
commit
0e44ce9bed
8 changed files with 65 additions and 27 deletions
|
@ -27,7 +27,8 @@
|
|||
#include <QMessageBox>
|
||||
#include <QFileDialog>
|
||||
|
||||
SkinDocument::SkinDocument(QWidget *parent) : QWidget(parent)
|
||||
SkinDocument::SkinDocument(QLabel* statusLabel, QWidget *parent) :
|
||||
QWidget(parent), statusLabel(statusLabel)
|
||||
{
|
||||
setupUI();
|
||||
|
||||
|
@ -36,8 +37,8 @@ SkinDocument::SkinDocument(QWidget *parent) : QWidget(parent)
|
|||
saved = "";
|
||||
}
|
||||
|
||||
SkinDocument::SkinDocument(QString file, QWidget *parent):
|
||||
QWidget(parent), fileName(file)
|
||||
SkinDocument::SkinDocument(QLabel* statusLabel, QString file, QWidget *parent):
|
||||
QWidget(parent), fileName(file), statusLabel(statusLabel)
|
||||
{
|
||||
setupUI();
|
||||
|
||||
|
@ -155,7 +156,9 @@ void SkinDocument::settingsChanged()
|
|||
|
||||
void SkinDocument::codeChanged()
|
||||
{
|
||||
model->changeTree(editor->document()->toPlainText().toAscii());
|
||||
parseStatus = model->changeTree(editor->document()->
|
||||
toPlainText().toAscii());
|
||||
statusLabel->setText(parseStatus);
|
||||
|
||||
if(editor->document()->toPlainText() != saved)
|
||||
emit titleChanged(title + QChar('*'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue