2
// Copyright 2007 Jim Bublitz <jbublitz@nwinternet.com>
3
// Earlier copyrights 1998 - 2006 Jim Bublitz also apply
7
// PyKDE4 module kdeui version KDE 3.92.0
10
// This file is part of PyKDE4.
12
// PyKDE4 is free software; you can redistribute it and/or modify
13
// it under the terms of the GNU Lesser General Public License as
14
// published by the Free Software Foundation; either version 2.1 of
15
// the License, or (at your option) any later version.
17
// PyKDE4 is distributed in the hope that it will be useful,
18
// but WITHOUT ANY WARRANTY; without even the implied warranty of
19
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
// GNU General Public License for more details.
22
// You should have received a copy of the GNU General Public License
23
// along with this program. If not, see <http://www.gnu.org/licenses/>.
26
class KPassivePopup : QFrame
29
#include <kpassivepopup.h>
42
KPassivePopup (QWidget* /TransferThis/ = 0, Qt::WFlags = 0);
43
KPassivePopup (WId /TransferThis/);
44
void setView (QWidget*);
45
void setView (const QString&, const QString& = QString::null );
46
virtual void setView (const QString&, const QString&, const QPixmap&);
47
KVBox* standardView (const QString&, const QString&, const QPixmap&, QWidget* /Transfer/ = 0);
48
QWidget* view () const;
50
virtual void setAutoDelete (bool);
51
bool autoDelete () const;
52
QRect defaultArea () const;
53
QPoint anchor () const;
54
void setAnchor (const QPoint&);
55
static KPassivePopup* message (const QString&, QWidget* /Transfer/);
56
static KPassivePopup* message (const QString&, QSystemTrayIcon* /Transfer/);
57
static KPassivePopup* message (const QString&, const QString&, QWidget* /Transfer/);
58
static KPassivePopup* message (const QString&, const QString&, QSystemTrayIcon* /Transfer/);
59
static KPassivePopup* message (const QString&, const QString&, const QPixmap&, QWidget* /Transfer/, int = -1);
60
static KPassivePopup* message (const QString&, const QString&, const QPixmap&, QSystemTrayIcon* /Transfer/, int = -1);
61
static KPassivePopup* message (const QString&, const QString&, const QPixmap&, WId /Transfer/, int = -1);
62
static KPassivePopup* message (int, const QString&, QWidget* /Transfer/);
63
static KPassivePopup* message (int, const QString&, QSystemTrayIcon* /Transfer/);
64
static KPassivePopup* message (int, const QString&, const QString&, QSystemTrayIcon* /Transfer/);
65
static KPassivePopup* message (int, const QString&, const QString&, QWidget* /Transfer/);
66
static KPassivePopup* message (int, const QString&, const QString&, const QPixmap&, QWidget* /Transfer/, int = -1);
67
static KPassivePopup* message (int, const QString&, const QString&, const QPixmap&, QSystemTrayIcon* /Transfer/, int = -1);
68
static KPassivePopup* message (int, const QString&, const QString&, const QPixmap&, WId /Transfer/, int = -1);
71
void setTimeout (int);
72
void setPopupStyle (int);
74
void show (const QPoint&);
75
virtual void setVisible (bool);
79
void clicked (const QPoint&);
82
virtual void positionSelf ();
83
virtual void hideEvent (QHideEvent*);
84
void moveNear (const QRect&);
85
QPoint calculateNearbyPoint (const QRect&);
86
virtual void mouseReleaseEvent (QMouseEvent*);
88
virtual void paintEvent (QPaintEvent*);
90
}; // class KPassivePopup