forked from len0rd/rockbox
Theme Editor: Added code generate/undo functionality to SkinViewer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27704 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4674518787
commit
054a85fdca
15 changed files with 154 additions and 39 deletions
|
|
@ -66,7 +66,6 @@ public:
|
|||
QString title() const{ return titleText; }
|
||||
QString getStatus(){ return parseStatus; }
|
||||
CodeEditor* getEditor(){ return editor; }
|
||||
void genCode(){ editor->document()->setPlainText(model->genCode()); }
|
||||
void setProject(ProjectModel* project){ this->project = project; }
|
||||
|
||||
void save();
|
||||
|
|
@ -84,14 +83,21 @@ public:
|
|||
void showFind(){ findReplace->show(); }
|
||||
void hideFind(){ findReplace->hide(); }
|
||||
|
||||
bool isSynced(){ return treeInSync; }
|
||||
|
||||
|
||||
signals:
|
||||
void antiSync(bool outOfSync);
|
||||
|
||||
public slots:
|
||||
void settingsChanged();
|
||||
void cursorChanged();
|
||||
void parseCode(){ codeChanged(); }
|
||||
void genCode(){ editor->document()->setPlainText(model->genCode()); }
|
||||
|
||||
private slots:
|
||||
void codeChanged();
|
||||
void modelChanged();
|
||||
void deviceChanged(){ scene(); }
|
||||
|
||||
private:
|
||||
|
|
@ -122,6 +128,8 @@ private:
|
|||
QTime lastUpdate;
|
||||
static const int updateInterval;
|
||||
QTimer checkUpdate;
|
||||
|
||||
bool treeInSync;
|
||||
};
|
||||
|
||||
#endif // SKINDOCUMENT_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue