diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-09-21 14:45:49 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-09-21 14:46:18 -0500 |
commit | 7fc4b62912ca770bf1018fb6deeccc5cf98d9600 (patch) | |
tree | c50fe7e5fd25bda185552f319aea0f74c974c3af /tdeui/tdepassivepopupstack.h | |
parent | 9cca766255e3c41c33470bb718e39f408d65367e (diff) | |
download | tdelibs-7fc4b62912ca770bf1018fb6deeccc5cf98d9600.tar.gz tdelibs-7fc4b62912ca770bf1018fb6deeccc5cf98d9600.zip |
Extend TDEPassivePopupStackContainer to include an optional user-provided ID per popup
Add display method with icon pixmap as parameter
Diffstat (limited to 'tdeui/tdepassivepopupstack.h')
-rw-r--r-- | tdeui/tdepassivepopupstack.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tdeui/tdepassivepopupstack.h b/tdeui/tdepassivepopupstack.h index 0da1c85ea..61ef209e1 100644 --- a/tdeui/tdepassivepopupstack.h +++ b/tdeui/tdepassivepopupstack.h @@ -28,6 +28,8 @@ #include "kiconloader.h" #include "kpassivepopup.h" +typedef TQMap<KPassivePopup*, TQString> TQStringPopupIDMap; + class TDEUI_EXPORT TDEPassivePopupStackContainer : public TQWidget { Q_OBJECT @@ -36,20 +38,23 @@ public: TDEPassivePopupStackContainer(TQWidget *parent=0, const char *name=0); ~TDEPassivePopupStackContainer(); - KPassivePopup* displayMessage(TQString title, TQString message, TQString icon, int x, int y); + KPassivePopup* displayMessage(TQString title, TQString message, TQString icon, int x, int y, TQString id=TQString::null); + KPassivePopup* displayMessage(TQString title, TQString message, TQPixmap icon, int x, int y, TQString id=TQString::null); void processEvents(); signals: - void popupClicked(KPassivePopup*, TQPoint); + void popupClicked(KPassivePopup*, TQPoint, TQString); private slots: void popupClosed(KPassivePopup*); void popupClicked(TQPoint); + void popupDestroyed(TQObject* object); private: TQPtrList<KPassivePopup> mPopupList; long mTopOfStack; long mRightOfStack; + TQStringPopupIDMap mPopupIDMap; }; #endif /* TDEPASSIVEPOPUPSTACK_H */ |