diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-07-25 21:16:37 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-25 21:16:37 +0000 |
commit | e1e51f99949f2a2967210342fcea6e8ae8495e0b (patch) | |
tree | bb2d62c6bea3e379e301d9b6b3592e1156274a54 /utils/themeeditor/gui/editorwindow.h | |
parent | e024198305623674d372aff71463e904905485b0 (diff) | |
download | rockbox-e1e51f99949f2a2967210342fcea6e8ae8495e0b.tar.gz rockbox-e1e51f99949f2a2967210342fcea6e8ae8495e0b.zip |
Theme Editor: Added recent docs/projects menus. Modified buildtargetdb.php to add a do-not-modify warning to the top of its output, and generated a new targetdb file with the warning in place
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27564 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/gui/editorwindow.h')
-rw-r--r-- | utils/themeeditor/gui/editorwindow.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/themeeditor/gui/editorwindow.h b/utils/themeeditor/gui/editorwindow.h index 996ddcd40e..bd71c9a5dc 100644 --- a/utils/themeeditor/gui/editorwindow.h +++ b/utils/themeeditor/gui/editorwindow.h @@ -49,6 +49,8 @@ class EditorWindow : public QMainWindow { Q_OBJECT public: + static const int numRecent; + EditorWindow(QWidget *parent = 0); virtual ~EditorWindow(); @@ -75,6 +77,8 @@ private slots: void exportProject(); void openFile(); void openProject(); + void openRecentFile(); + void openRecentProject(); void tabTitleChanged(QString title); void updateCurrent(); /* Generates code in the current tab */ void lineChanged(int line); /* Used for auto-expand */ @@ -100,6 +104,11 @@ private: void loadProjectFile(QString fileName); static void createFile(QString filename, QString contents); + /* Functions to manipulate the recent projects/documents menus */ + void docToTop(QString file); + void projectToTop(QString file); + void refreshRecentMenus(); + Ui::EditorWindow *ui; PreferencesDialog* prefs; QLabel* parseStatus; @@ -110,6 +119,11 @@ private: QDockWidget* deviceDock; SkinTimer* timer; QDockWidget* timerDock; + + QStringList recentDocs; + QStringList recentProjects; + QList<QAction*> recentDocsMenu; + QList<QAction*> recentProjectsMenu; }; #endif // EDITORWINDOW_H |