tdeui
tdepassivepopupstack.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef TDEPASSIVEPOPUPSTACK_H
00020 #define TDEPASSIVEPOPUPSTACK_H
00021
00022 #include <tqwidget.h>
00023 #include <tqcursor.h>
00024
00025 #include "tdeapplication.h"
00026 #include "tdeglobal.h"
00027 #include "tdeglobalsettings.h"
00028 #include "kiconloader.h"
00029 #include "kpassivepopup.h"
00030
00031 typedef TQMap<KPassivePopup*, TQString> TQStringPopupIDMap;
00032
00033 class TDEUI_EXPORT TDEPassivePopupStackContainer : public TQWidget
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 TDEPassivePopupStackContainer(TQWidget *parent=0, const char *name=0);
00039 ~TDEPassivePopupStackContainer();
00040
00041 KPassivePopup* displayMessage(TQString title, TQString message, TQString icon, int x, int y, TQString id=TQString::null);
00042 KPassivePopup* displayMessage(TQString title, TQString message, TQPixmap icon, int x, int y, TQString id=TQString::null);
00043 void processEvents();
00044
00045 signals:
00046 void popupClicked(KPassivePopup*, TQPoint, TQString);
00047
00048 private slots:
00049 void popupClosed(KPassivePopup*);
00050 void popupClicked(TQPoint);
00051 void popupDestroyed(TQObject* object);
00052
00053 private:
00054 TQPtrList<KPassivePopup> mPopupList;
00055 long mTopOfStack;
00056 long mRightOfStack;
00057 TQStringPopupIDMap mPopupIDMap;
00058 };
00059
00060 #endif