author | harlekin <harlekin> | 2003-11-30 17:58:02 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-11-30 17:58:02 (UTC) |
commit | a7e786be4f9545a881015de8ba8a124a62f0f891 (patch) (unidiff) | |
tree | 6d4c5d6e0f83cdc9aea5ab4083ec1fe0a261d6ac /core/launcher/startmenu.h | |
parent | f50b547e2660c26b2c84512c2cb3d83f2ddf147c (diff) | |
download | opie-a7e786be4f9545a881015de8ba8a124a62f0f891.zip opie-a7e786be4f9545a881015de8ba8a124a62f0f891.tar.gz opie-a7e786be4f9545a881015de8ba8a124a62f0f891.tar.bz2 |
startmenu was further developed in branch
-rw-r--r-- | core/launcher/startmenu.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/core/launcher/startmenu.h b/core/launcher/startmenu.h index 99df0f0..7218035 100644 --- a/core/launcher/startmenu.h +++ b/core/launcher/startmenu.h | |||
@@ -25,6 +25,8 @@ | |||
25 | #include <qintdict.h> | 25 | #include <qintdict.h> |
26 | #include <qstring.h> | 26 | #include <qstring.h> |
27 | #include <qlist.h> | 27 | #include <qlist.h> |
28 | #include <qmap.h> | ||
29 | #include <qdir.h> | ||
28 | #include <qlabel.h> | 30 | #include <qlabel.h> |
29 | #include <qpopupmenu.h> | 31 | #include <qpopupmenu.h> |
30 | 32 | ||
@@ -32,10 +34,13 @@ | |||
32 | 34 | ||
33 | class StartPopupMenu : public QPopupMenu | 35 | class StartPopupMenu : public QPopupMenu |
34 | { | 36 | { |
37 | |||
35 | public: | 38 | public: |
36 | StartPopupMenu( QWidget *parent ) : QPopupMenu( parent ) {} | 39 | StartPopupMenu( QWidget *parent ) : QPopupMenu( parent ) {} |
40 | |||
37 | protected: | 41 | protected: |
38 | void keyPressEvent( QKeyEvent *e ); | 42 | void keyPressEvent( QKeyEvent *e ); |
43 | |||
39 | }; | 44 | }; |
40 | 45 | ||
41 | class QLibrary; | 46 | class QLibrary; |
@@ -49,7 +54,9 @@ struct MenuApplet { | |||
49 | }; | 54 | }; |
50 | 55 | ||
51 | class StartMenu : public QLabel { | 56 | class StartMenu : public QLabel { |
57 | |||
52 | Q_OBJECT | 58 | Q_OBJECT |
59 | |||
53 | public: | 60 | public: |
54 | StartMenu( QWidget * ); | 61 | StartMenu( QWidget * ); |
55 | ~StartMenu(); | 62 | ~StartMenu(); |
@@ -77,6 +84,9 @@ private: | |||
77 | void clearApplets(); | 84 | void clearApplets(); |
78 | void addApplets( QPopupMenu* menu ); | 85 | void addApplets( QPopupMenu* menu ); |
79 | bool loadMenu( QPopupMenu *menu ); | 86 | bool loadMenu( QPopupMenu *menu ); |
87 | void createMenuEntries( QPopupMenu *menu, QDir dir, bool ltabs, bool lot ); | ||
88 | void createDirEntry( QPopupMenu *menu, QDir dir, QString file, bool lot ); | ||
89 | void createAppEntry( QPopupMenu *menu, QDir dir, QString file ); | ||
80 | 90 | ||
81 | private: | 91 | private: |
82 | bool useWidePopupMenu; | 92 | bool useWidePopupMenu; |
@@ -85,11 +95,12 @@ private: | |||
85 | bool startButtonIsFlat; | 95 | bool startButtonIsFlat; |
86 | QString startButtonPixmap; | 96 | QString startButtonPixmap; |
87 | 97 | ||
88 | QStringList tabs; | 98 | int currentItem; |
89 | QList<AppLnk> other; | 99 | |
90 | QIntDict<MenuApplet> m_applets; | 100 | QIntDict<AppLnk> appLnks; |
91 | int ntabs; | 101 | QIntDict<QString> tabNames; |
92 | int nother; | 102 | QIntDict<MenuApplet> menuApplets; |
103 | |||
93 | }; | 104 | }; |
94 | 105 | ||
95 | #endif // __START_MENU_H__ | 106 | #endif // __START_MENU_H__ |