summaryrefslogtreecommitdiff
path: root/core/launcher/startmenu.h
Side-by-side diff
Diffstat (limited to 'core/launcher/startmenu.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/startmenu.h31
1 files changed, 29 insertions, 2 deletions
diff --git a/core/launcher/startmenu.h b/core/launcher/startmenu.h
index a02f39e..0a91bb8 100644
--- a/core/launcher/startmenu.h
+++ b/core/launcher/startmenu.h
@@ -1,5 +1,5 @@
/**********************************************************************
-** Copyright (C) 2000 Trolltech AS. All rights reserved.
+** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
**
-** This file is part of Qtopia Environment.
+** This file is part of the Qtopia Environment.
**
@@ -25,2 +25,3 @@
#include <qlist.h>
+#include <qintdict.h>
#include <qlabel.h>
@@ -28,2 +29,3 @@
+#include <qpe/menuappletinterface.h>
@@ -40,2 +42,15 @@ protected:
+class QLibrary;
+
+struct MenuApplet
+{
+#ifndef QT_NO_COMPONENT
+ QLibrary *library;
+#endif
+ MenuAppletInterface *iface;
+ int id;
+ QPopupMenu *popup;
+};
+
+
class StartMenu : public QLabel {
@@ -55,2 +70,4 @@ public slots:
void createMenu( );
+ void reloadApps( );
+ void reloadApplets( );
@@ -61,2 +78,3 @@ protected:
virtual void mousePressEvent( QMouseEvent * );
+ virtual void timerEvent ( QTimerEvent * );
@@ -64,2 +82,4 @@ private:
bool loadMenu( AppLnkSet *folder, QPopupMenu *menu );
+ void loadApplets( );
+ void clearApplets( );
@@ -73,2 +93,9 @@ private:
AppLnkSet *apps;
+
+ QIntDict<MenuApplet> applets;
+ QIntDict<QPopupMenu> tabdict;
+
+// QValueList<MenuApplet> appletList;
+ int safety_tid;
+ int sepId;
};