~neon/pykde4/master

« back to all changes in this revision

Viewing changes to sip/kdeui/ktabwidget.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 KTabWidget : QTabWidget
 
27
{
 
28
%TypeHeaderCode
 
29
#include <ktabwidget.h>
 
30
%End
 
31
 
 
32
 
 
33
public:
 
34
                         KTabWidget (QWidget* /TransferThis/ = 0, Qt::WFlags = 0);
 
35
    void                 setTabTextColor (int, const QColor&);
 
36
    QColor               tabTextColor (int) const;
 
37
    bool                 isTabReorderingEnabled () const;
 
38
    bool                 hoverCloseButton () const;
 
39
    bool                 hoverCloseButtonDelayed () const;
 
40
    bool                 tabCloseActivatePrevious () const;
 
41
    bool                 automaticResizeTabs () const;
 
42
    void                 setTabBarHidden (bool);
 
43
    bool                 isTabBarHidden () const;
 
44
    QString              tabText (int) const;
 
45
    void                 setTabText (int, const QString&);
 
46
 
 
47
public slots:
 
48
    virtual void         moveTab (int, int);
 
49
    virtual void         removePage (QWidget*);
 
50
    virtual void         removeTab (int);
 
51
    void                 setTabReorderingEnabled (bool);
 
52
    void                 setHoverCloseButton (bool);
 
53
    void                 setHoverCloseButtonDelayed (bool);
 
54
    void                 setTabCloseActivatePrevious (bool);
 
55
    void                 setAutomaticResizeTabs (bool);
 
56
 
 
57
signals:
 
58
//ig     void                 testCanDecode (const QDragMoveEvent*, bool&);
 
59
    void                 receivedDropEvent (QDropEvent*);
 
60
    void                 receivedDropEvent (QWidget*, QDropEvent*);
 
61
    void                 initiateDrag (QWidget*);
 
62
//ig     void                 contextMenu (const QPoint&);
 
63
    void                 contextMenu (QWidget*, const QPoint&);
 
64
    void                 movedTab (int, int);
 
65
    void                 mouseDoubleClick ();
 
66
    void                 mouseDoubleClick (QWidget*);
 
67
    void                 mouseMiddleClick ();
 
68
    void                 mouseMiddleClick (QWidget*);
 
69
    void                 closeRequest (QWidget*);
 
70
 
 
71
protected:
 
72
    virtual void         mouseDoubleClickEvent (QMouseEvent*);
 
73
    virtual void         mousePressEvent (QMouseEvent*);
 
74
    virtual void         dragEnterEvent (QDragEnterEvent*);
 
75
    virtual void         dragMoveEvent (QDragMoveEvent*);
 
76
    virtual void         dropEvent (QDropEvent*);
 
77
    int                  tabBarWidthForMaxChars (int);
 
78
    virtual void         wheelEvent (QWheelEvent*);
 
79
    virtual void         resizeEvent (QResizeEvent*);
 
80
    virtual void         tabInserted (int);
 
81
    virtual void         tabRemoved (int);
 
82
 
 
83
protected slots:
 
84
//ig     virtual void         receivedDropEvent (int, QDropEvent*);
 
85
//ig     virtual void         initiateDrag (int);
 
86
//ig     virtual void         contextMenu (int, const QPoint&);
 
87
//ig     virtual void         mouseDoubleClick (int);
 
88
//ig     virtual void         mouseMiddleClick (int);
 
89
//ig     virtual void         closeRequest (int);
 
90
    virtual void         wheelDelta (int);
 
91
 
 
92
};  // class KTabWidget
 
93