From e284d63306cd3b00baff8e464a8eaf2eb64ea49a Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 28 Aug 2003 14:47:24 +0000 Subject: Use real applets --- (limited to 'core/launcher/startmenu.h') diff --git a/core/launcher/startmenu.h b/core/launcher/startmenu.h index 0a91bb8..99df0f0 100644 --- a/core/launcher/startmenu.h +++ b/core/launcher/startmenu.h @@ -21,16 +21,14 @@ #ifndef __START_MENU_H__ #define __START_MENU_H__ +#include +#include #include #include -#include #include #include -#include - -class AppLnkSet; -class AppLnk; +#include class StartPopupMenu : public QPopupMenu { @@ -42,16 +40,13 @@ protected: class QLibrary; -struct MenuApplet -{ -#ifndef QT_NO_COMPONENT + +struct MenuApplet { QLibrary *library; -#endif MenuAppletInterface *iface; int id; QPopupMenu *popup; }; - class StartMenu : public QLabel { Q_OBJECT @@ -59,29 +54,29 @@ public: StartMenu( QWidget * ); ~StartMenu(); - const AppLnk* execToLink(const QString& appname); + void refreshMenu(); public: StartPopupMenu *launchMenu; +signals: + void tabSelected(const QString&); + public slots: void launch( ); - void loadOptions( ); void createMenu( ); - void reloadApps( ); - void reloadApplets( ); protected slots: void itemSelected( int id ); protected: virtual void mousePressEvent( QMouseEvent * ); - virtual void timerEvent ( QTimerEvent * ); - + private: - bool loadMenu( AppLnkSet *folder, QPopupMenu *menu ); - void loadApplets( ); - void clearApplets( ); + void loadApplets(); + void clearApplets(); + void addApplets( QPopupMenu* menu ); + bool loadMenu( QPopupMenu *menu ); private: bool useWidePopupMenu; @@ -90,14 +85,11 @@ private: bool startButtonIsFlat; QString startButtonPixmap; - AppLnkSet *apps; - - QIntDict applets; - QIntDict tabdict; - -// QValueList appletList; - int safety_tid; - int sepId; + QStringList tabs; + QList other; + QIntDict m_applets; + int ntabs; + int nother; }; #endif // __START_MENU_H__ -- cgit v0.9.0.2