~neon/pykde4/master

« back to all changes in this revision

Viewing changes to sip/kdeui/kpassivepopup.sip

  • Committer: Simon Edwards
  • Date: 2007-09-02 19:43:19 UTC
  • Revision ID: git-v1:6b8df0c7009f6b218f54589a9bc313cd8c4f82b9

Initial drop of PyKDE4 - Python bindings for the KDE API. See the README file
for more info about the current state of PyKDE4.


svn path=/trunk/KDE/kdebindings/python/pykde4/; revision=707731

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
//     Copyright 2007 Jim Bublitz <jbublitz@nwinternet.com>
 
3
//     Earlier copyrights 1998 - 2006 Jim Bublitz also apply
 
4
 
 
5
 
 
6
//                 Generated by preSip
 
7
//            PyKDE4 module kdeui  version KDE 3.92.0
 
8
 
 
9
 
 
10
// This file is part of PyKDE4.
 
11
 
 
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.
 
16
 
 
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.
 
21
 
 
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/>.
 
24
 
 
25
 
 
26
class KPassivePopup : QFrame
 
27
{
 
28
%TypeHeaderCode
 
29
#include <kpassivepopup.h>
 
30
%End
 
31
 
 
32
 
 
33
public:
 
34
 
 
35
    enum PopupStyle
 
36
    {
 
37
        Boxed, 
 
38
        Balloon, 
 
39
        CustomStyle
 
40
    };
 
41
 
 
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;
 
49
    int                  timeout () 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);
 
69
 
 
70
public slots:
 
71
    void                 setTimeout (int);
 
72
    void                 setPopupStyle (int);
 
73
    void                 show ();
 
74
    void                 show (const QPoint&);
 
75
    virtual void         setVisible (bool);
 
76
 
 
77
signals:
 
78
    void                 clicked ();
 
79
    void                 clicked (const QPoint&);
 
80
 
 
81
protected:
 
82
    virtual void         positionSelf ();
 
83
    virtual void         hideEvent (QHideEvent*);
 
84
    void                 moveNear (const QRect&);
 
85
    QPoint               calculateNearbyPoint (const QRect&);
 
86
    virtual void         mouseReleaseEvent (QMouseEvent*);
 
87
    void                 updateMask ();
 
88
    virtual void         paintEvent (QPaintEvent*);
 
89
 
 
90
};  // class KPassivePopup
 
91