tdepassivepopupstack.h
00001 /* This file is part of the TDE libraries 00002 * Copyright (C) 2011 - 2015 Timothy Pearson <kb9vqf@pearsoncomputing.net> 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Library General Public 00006 * License version 2 as published by the Free Software Foundation. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Library General Public License for more details. 00012 00013 * You should have received a copy of the GNU Library General Public License 00014 * along with this library; see the file COPYING.LIB. If not, write to 00015 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 * Boston, MA 02110-1301, USA. 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 /* TDEPASSIVEPOPUPSTACK_H */
Trinity API Reference