From e1e51f99949f2a2967210342fcea6e8ae8495e0b Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Sun, 25 Jul 2010 21:16:37 +0000 Subject: 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 --- utils/themeeditor/gui/editorwindow.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'utils/themeeditor/gui/editorwindow.h') 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 recentDocsMenu; + QList recentProjectsMenu; }; #endif // EDITORWINDOW_H -- cgit v1.2.3