summaryrefslogtreecommitdiffstats
path: root/sip/qt/qtabbar.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/qt/qtabbar.sip')
-rw-r--r--sip/qt/qtabbar.sip184
1 files changed, 92 insertions, 92 deletions
diff --git a/sip/qt/qtabbar.sip b/sip/qt/qtabbar.sip
index d53ffab..908011d 100644
--- a/sip/qt/qtabbar.sip
+++ b/sip/qt/qtabbar.sip
@@ -1,64 +1,64 @@
-// This is the SIP interface definition for QTab and QTabBar.
+// This is the SIP interface definition for TQTab and TQTabBar.
//
// Copyright (c) 2007
// Riverbank Computing Limited <[email protected]>
//
-// This file is part of PyQt.
+// This file is part of PyTQt.
//
-// This copy of PyQt is free software; you can redistribute it and/or modify it
+// This copy of PyTQt is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2, or (at your option) any later
// version.
//
-// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY
+// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
-// PyQt; see the file LICENSE. If not, write to the Free Software Foundation,
+// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
%ExportedDoc
-<Sect2><Title>QTab</Title>
+<Sect2><Title>TQTab</Title>
<Para>
-<Literal>QTab</Literal> is fully implemented.
+<Literal>TQTab</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTabBar</Title>
+<Sect2><Title>TQTabBar</Title>
<FuncSynopsis>
- <FuncDef>QList&lt;QTab&gt; <Function>tabList</Function></FuncDef>
+ <FuncDef>TQList&lt;TQTab&gt; <Function>tabList</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-This returns a list of <Literal>QTab</Literal> instances.
+This returns a list of <Literal>TQTab</Literal> instances.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QTab : Qt
+class TQTab : TQt
{
%TypeHeaderCode
#include <qtabbar.h>
%End
public:
- QTab();
- QTab(const QString &);
- QTab(const QIconSet &,const QString & = QString::null);
- virtual ~QTab();
-
- void setText(const QString &);
- QString text() const;
- void setIconSet(const QIconSet &);
- QIconSet *iconSet() const;
- void setRect(const QRect &);
- QRect rect() const;
+ TQTab();
+ TQTab(const TQString &);
+ TQTab(const TQIconSet &,const TQString & = TQString::null);
+ virtual ~TQTab();
+
+ void setText(const TQString &);
+ TQString text() const;
+ void setIconSet(const TQIconSet &);
+ TQIconSet *iconSet() const;
+ void setRect(const TQRect &);
+ TQRect rect() const;
void setEnabled(bool);
bool isEnabled() const;
void setIdentifier(int);
@@ -67,40 +67,40 @@ public:
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
-class QTab
+class TQTab
{
%TypeHeaderCode
#include <qtabbar.h>
%End
public:
- QTab();
-%If (Qt_2_1_0 -)
- QTab(const QString &);
- QTab(const QIconSet &,const QString & = QString::null);
+ TQTab();
+%If (TQt_2_1_0 -)
+ TQTab(const TQString &);
+ TQTab(const TQIconSet &,const TQString & = TQString::null);
%End
- virtual ~QTab();
+ virtual ~TQTab();
- QString label;
- QRect r;
+ TQString label;
+ TQRect r;
bool enabled;
int id;
- QIconSet *iconset;
+ TQIconSet *iconset;
};
%End
-class QTabBar : QWidget
+class TQTabBar : TQWidget
{
%TypeHeaderCode
#include <qtabbar.h>
%End
public:
- QTabBar(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQTabBar(TQWidget * /TransferThis/ = 0,const char * = 0);
enum Shape {
RoundedAbove,
@@ -110,131 +110,131 @@ public:
};
Shape shape() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setShape(Shape);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setShape(Shape);
%End
void show();
- virtual int addTab(QTab * /Transfer/);
-%If (Qt_2_00 -)
- virtual int insertTab(QTab * /Transfer/,int = -1);
- virtual void removeTab(QTab *);
+ virtual int addTab(TQTab * /Transfer/);
+%If (TQt_2_00 -)
+ virtual int insertTab(TQTab * /Transfer/,int = -1);
+ virtual void removeTab(TQTab *);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setTabEnabled(int,bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setTabEnabled(int,bool);
%End
bool isTabEnabled(int) const;
- QSize sizeHint() const;
-%If (Qt_2_2_0 -)
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+%If (TQt_2_2_0 -)
+ TQSize minimumSizeHint() const;
%End
-%If (Qt_2_00 -)
- QSizePolicy sizePolicy() const;
+%If (TQt_2_00 -)
+ TQSizePolicy sizePolicy() const;
%End
int currentTab() const;
int keyboardFocusTab() const;
-%If (- Qt_3_0_0)
- QTab *tab(int);
+%If (- TQt_3_0_0)
+ TQTab *tab(int);
%End
-%If (Qt_3_0_0 -)
- QTab *tab(int) const;
- QTab *tabAt(int) const;
+%If (TQt_3_0_0 -)
+ TQTab *tab(int) const;
+ TQTab *tabAt(int) const;
int indexOf(int) const;
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
int count() const;
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void layoutTabs();
%End
-%If (Qt_3_0_0 -)
- virtual QTab *selectTab(const QPoint &) const;
+%If (TQt_3_0_0 -)
+ virtual TQTab *selectTab(const TQPoint &) const;
void removeToolTip(int);
- void setToolTip(int,const QString &);
- QString toolTip(int) const;
+ void setToolTip(int,const TQString &);
+ TQString toolTip(int) const;
%End
public slots:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setCurrentTab(int);
- void setCurrentTab(QTab *);
+ void setCurrentTab(TQTab *);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setCurrentTab(int);
- virtual void setCurrentTab(QTab *);
+ virtual void setCurrentTab(TQTab *);
%End
signals:
void selected(int);
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void layoutChanged();
%End
protected:
- virtual void paint(QPainter *,QTab *,bool) const;
-%If (Qt_2_00 -)
- virtual void paintLabel(QPainter *,const QRect &,QTab *,bool) const;
+ virtual void paint(TQPainter *,TQTab *,bool) const;
+%If (TQt_2_00 -)
+ virtual void paintLabel(TQPainter *,const TQRect &,TQTab *,bool) const;
%End
-%If (- Qt_3_0_0)
- virtual QTab *selectTab(const QPoint &) const;
+%If (- TQt_3_0_0)
+ virtual TQTab *selectTab(const TQPoint &) const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
void updateMask();
%End
-%If (Qt_2_1_0 -)
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
+%If (TQt_2_1_0 -)
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
- void resizeEvent(QResizeEvent *);
+ void resizeEvent(TQResizeEvent *);
%End
- void paintEvent(QPaintEvent *);
- void mousePressEvent(QMouseEvent *);
-%If (Qt_3_0_0 -)
- void mouseMoveEvent(QMouseEvent *);
+ void paintEvent(TQPaintEvent *);
+ void mousePressEvent(TQMouseEvent *);
+%If (TQt_3_0_0 -)
+ void mouseMoveEvent(TQMouseEvent *);
%End
- void mouseReleaseEvent(QMouseEvent *);
- void keyPressEvent(QKeyEvent *);
-%If (Qt_2_1_0 -)
- void styleChange(QStyle &);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void keyPressEvent(TQKeyEvent *);
+%If (TQt_2_1_0 -)
+ void styleChange(TQStyle &);
%End
-%If (Qt_3_0_0 -)
- void fontChange(const QFont &);
+%If (TQt_3_0_0 -)
+ void fontChange(const TQFont &);
%End
-%If (Qt_3_1_0 -)
- bool event(QEvent *);
+%If (TQt_3_1_0 -)
+ bool event(TQEvent *);
%End
- SIP_PYLIST tabList() [QList<QTab> *()];
+ SIP_PYLIST tabList() [TQList<TQTab> *()];
%MethodCode
if ((sipRes = PyList_New(0)) == NULL)
sipIsErr = 1;
else
{
- QList<QTab> *tl;
- QTab *tab;
+ TQList<TQTab> *tl;
+ TQTab *tab;
Py_BEGIN_ALLOW_THREADS
tl = sipCpp -> sipProtect_tabList();
Py_END_ALLOW_THREADS
// Convert the list.
- for (QListIterator<QTab> it(*tl); (tab = it.current()) != NULL; ++it)
+ for (TQListIterator<TQTab> it(*tl); (tab = it.current()) != NULL; ++it)
{
PyObject *inst = sipBuildResult(&sipIsErr,"C",tab,sipClass_QTab,NULL);
@@ -260,7 +260,7 @@ protected:
%End
private:
-%If (Qt_2_1_0 -)
- QTabBar(const QTabBar &);
+%If (TQt_2_1_0 -)
+ TQTabBar(const TQTabBar &);
%End
};