-rw-r--r-- | core/launcher/startmenu.h | 31 |
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,6 +1,6 @@ /********************************************************************** -** 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. ** ** This file may be distributed and/or modified under the terms of the @@ -24,7 +24,9 @@ #include <qstring.h> #include <qlist.h> +#include <qintdict.h> #include <qlabel.h> #include <qpopupmenu.h> +#include <qpe/menuappletinterface.h> class AppLnkSet; @@ -39,4 +41,17 @@ protected: }; +class QLibrary; + +struct MenuApplet +{ +#ifndef QT_NO_COMPONENT + QLibrary *library; +#endif + MenuAppletInterface *iface; + int id; + QPopupMenu *popup; +}; + + class StartMenu : public QLabel { Q_OBJECT @@ -54,4 +69,6 @@ public slots: void loadOptions( ); void createMenu( ); + void reloadApps( ); + void reloadApplets( ); protected slots: @@ -60,7 +77,10 @@ protected slots: protected: virtual void mousePressEvent( QMouseEvent * ); + virtual void timerEvent ( QTimerEvent * ); private: bool loadMenu( AppLnkSet *folder, QPopupMenu *menu ); + void loadApplets( ); + void clearApplets( ); private: @@ -72,4 +92,11 @@ private: AppLnkSet *apps; + + QIntDict<MenuApplet> applets; + QIntDict<QPopupMenu> tabdict; + +// QValueList<MenuApplet> appletList; + int safety_tid; + int sepId; }; |