-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 @@ -26,4 +26,6 @@ #include <qstring.h> #include <qlist.h> +#include <qmap.h>
+#include <qdir.h>
#include <qlabel.h> #include <qpopupmenu.h> @@ -33,8 +35,11 @@ class StartPopupMenu : public QPopupMenu { +
public: StartPopupMenu( QWidget *parent ) : QPopupMenu( parent ) {} +
protected: void keyPressEvent( QKeyEvent *e ); +
}; @@ -50,5 +55,7 @@ struct MenuApplet { class StartMenu : public QLabel { +
Q_OBJECT +
public: StartMenu( QWidget * ); @@ -78,4 +85,7 @@ private: void addApplets( QPopupMenu* menu ); bool loadMenu( QPopupMenu *menu ); + void createMenuEntries( QPopupMenu *menu, QDir dir, bool ltabs, bool lot );
+ void createDirEntry( QPopupMenu *menu, QDir dir, QString file, bool lot );
+ void createAppEntry( QPopupMenu *menu, QDir dir, QString file );
private: @@ -86,9 +96,10 @@ private: QString startButtonPixmap; - QStringList tabs; - QList<AppLnk> other; - QIntDict<MenuApplet> m_applets; - int ntabs; - int nother; + int currentItem;
+
+ QIntDict<AppLnk> appLnks;
+ QIntDict<QString> tabNames;
+ QIntDict<MenuApplet> menuApplets;
+
}; |