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 | |||
49 | { | 49 | { |
50 | Q_OBJECT | 50 | Q_OBJECT |
51 | public: | 51 | public: |
52 | static const int numRecent; | ||
53 | |||
52 | EditorWindow(QWidget *parent = 0); | 54 | EditorWindow(QWidget *parent = 0); |
53 | virtual ~EditorWindow(); | 55 | virtual ~EditorWindow(); |
54 | 56 | ||
@@ -75,6 +77,8 @@ private slots: | |||
75 | void exportProject(); | 77 | void exportProject(); |
76 | void openFile(); | 78 | void openFile(); |
77 | void openProject(); | 79 | void openProject(); |
80 | void openRecentFile(); | ||
81 | void openRecentProject(); | ||
78 | void tabTitleChanged(QString title); | 82 | void tabTitleChanged(QString title); |
79 | void updateCurrent(); /* Generates code in the current tab */ | 83 | void updateCurrent(); /* Generates code in the current tab */ |
80 | void lineChanged(int line); /* Used for auto-expand */ | 84 | void lineChanged(int line); /* Used for auto-expand */ |
@@ -100,6 +104,11 @@ private: | |||
100 | void loadProjectFile(QString fileName); | 104 | void loadProjectFile(QString fileName); |
101 | static void createFile(QString filename, QString contents); | 105 | static void createFile(QString filename, QString contents); |
102 | 106 | ||
107 | /* Functions to manipulate the recent projects/documents menus */ | ||
108 | void docToTop(QString file); | ||
109 | void projectToTop(QString file); | ||
110 | void refreshRecentMenus(); | ||
111 | |||
103 | Ui::EditorWindow *ui; | 112 | Ui::EditorWindow *ui; |
104 | PreferencesDialog* prefs; | 113 | PreferencesDialog* prefs; |
105 | QLabel* parseStatus; | 114 | QLabel* parseStatus; |
@@ -110,6 +119,11 @@ private: | |||
110 | QDockWidget* deviceDock; | 119 | QDockWidget* deviceDock; |
111 | SkinTimer* timer; | 120 | SkinTimer* timer; |
112 | QDockWidget* timerDock; | 121 | QDockWidget* timerDock; |
122 | |||
123 | QStringList recentDocs; | ||
124 | QStringList recentProjects; | ||
125 | QList<QAction*> recentDocsMenu; | ||
126 | QList<QAction*> recentProjectsMenu; | ||
113 | }; | 127 | }; |
114 | 128 | ||
115 | #endif // EDITORWINDOW_H | 129 | #endif // EDITORWINDOW_H |