summaryrefslogtreecommitdiffstats
path: root/sip/qttable/qtable.sip
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-29 01:11:08 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-29 01:11:08 -0600
commit8a055d66f43592c257cece2eb8cc021808062917 (patch)
treed0922f201bd5d24b62a33160d1d9baf9e89f9a70 /sip/qttable/qtable.sip
parentb388516ca2691303a076a0764fd40bf7116fe43d (diff)
downloadpytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz
pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip
Initial TQt conversion
Diffstat (limited to 'sip/qttable/qtable.sip')
-rw-r--r--sip/qttable/qtable.sip304
1 files changed, 152 insertions, 152 deletions
diff --git a/sip/qttable/qtable.sip b/sip/qttable/qtable.sip
index 87a0be3..3132df0 100644
--- a/sip/qttable/qtable.sip
+++ b/sip/qttable/qtable.sip
@@ -1,72 +1,72 @@
-// This is the SIP interface definition for QTable, QTableItem,
-// QCheckTableItem, QComboTableItem and QTableSelection.
+// This is the SIP interface definition for TQTable, TQTableItem,
+// TQCheckTableItem, TQComboTableItem and TQTableSelection.
//
// Copyright (c) 2007
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
//
-// 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>QTable (Qt v2.2+)</Title>
+<Sect2><Title>TQTable (TQt v2.2+)</Title>
<Para>
-<Literal>QTable</Literal> is fully implemented.
+<Literal>TQTable</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTableItem (Qt v2.2+)</Title>
+<Sect2><Title>TQTableItem (TQt v2.2+)</Title>
<Para>
-<Literal>QTableItem</Literal> is fully implemented.
+<Literal>TQTableItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCheckTableItem (Qt v3+)</Title>
+<Sect2><Title>TQCheckTableItem (TQt v3+)</Title>
<Para>
-<Literal>QCheckTableItem</Literal> is fully implemented.
+<Literal>TQCheckTableItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QComboTableItem (Qt v3+)</Title>
+<Sect2><Title>TQComboTableItem (TQt v3+)</Title>
<Para>
-<Literal>QComboTableItem</Literal> is fully implemented.
+<Literal>TQComboTableItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTableSelection (Qt v2.2+)</Title>
+<Sect2><Title>TQTableSelection (TQt v2.2+)</Title>
<Para>
-<Literal>QTableSelection</Literal> is fully implemented.
+<Literal>TQTableSelection</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_TABLE)
-%If (Qt_2_2_0 -)
+%If (TQt_TABLE)
+%If (TQt_2_2_0 -)
-class QTableSelection
+class TQTableSelection
{
%TypeHeaderCode
#include <qtable.h>
%End
public:
- QTableSelection();
-%If (Qt_3_1_0 -)
- QTableSelection(int,int,int,int);
+ TQTableSelection();
+%If (TQt_3_1_0 -)
+ TQTableSelection(int,int,int,int);
%End
void init(int,int);
@@ -78,19 +78,19 @@ public:
int rightCol() const;
int anchorRow() const;
int anchorCol() const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
int numRows() const;
int numCols() const;
%End
bool isActive() const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
bool isEmpty() const;
%End
};
-class QTableItem : Qt
+class TQTableItem : TQt
{
%TypeHeaderCode
#include <qtable.h>
@@ -104,13 +104,13 @@ public:
Always
};
- // Note that the Qt documentation is wrong. Ownership is only taken by
- // QTable::setItem().
-%If (Qt_3_2_0 -)
- QTableItem(QTable *,EditType);
+ // Note that the TQt documentation is wrong. Ownership is only taken by
+ // TQTable::setItem().
+%If (TQt_3_2_0 -)
+ TQTableItem(TQTable *,EditType);
%End
- QTableItem(QTable *,EditType,const QString &);
- QTableItem(QTable *,EditType,const QString &,const QPixmap &);
+ TQTableItem(TQTable *,EditType,const TQString &);
+ TQTableItem(TQTable *,EditType,const TQString &,const TQPixmap &);
%ConvertToSubClassCode
Py_BEGIN_ALLOW_THREADS
@@ -118,9 +118,9 @@ public:
#if QT_VERSION >= 0x030000
int rtti = sipCpp -> rtti();
- if (rtti == QCheckTableItem::RTTI)
+ if (rtti == TQCheckTableItem::RTTI)
sipClass = sipClass_QCheckTableItem;
- else if (rtti == QComboTableItem::RTTI)
+ else if (rtti == TQComboTableItem::RTTI)
sipClass = sipClass_QComboTableItem;
else
sipClass = 0;
@@ -131,24 +131,24 @@ public:
Py_END_ALLOW_THREADS
%End
- virtual QPixmap pixmap() const;
- virtual QString text() const;
- virtual void setPixmap(const QPixmap &);
- virtual void setText(const QString &);
- QTable *table() const;
+ virtual TQPixmap pixmap() const;
+ virtual TQString text() const;
+ virtual void setPixmap(const TQPixmap &);
+ virtual void setText(const TQString &);
+ TQTable *table() const;
virtual int alignment() const;
virtual void setWordWrap(bool);
bool wordWrap() const;
EditType editType() const;
- virtual QWidget *createEditor() const /Factory/;
- virtual void setContentFromEditor(QWidget *);
+ virtual TQWidget *createEditor() const /Factory/;
+ virtual void setContentFromEditor(TQWidget *);
virtual void setReplaceable(bool);
bool isReplaceable() const;
- virtual QString key() const;
- virtual QSize sizeHint() const;
+ virtual TQString key() const;
+ virtual TQSize sizeHint() const;
virtual void setSpan(int,int);
int rowSpan() const;
@@ -159,11 +159,11 @@ public:
int row() const;
int col() const;
- virtual void paint(QPainter *,const QColorGroup &,const QRect &,bool);
+ virtual void paint(TQPainter *,const TQColorGroup &,const TQRect &,bool);
void updateEditor(int,int);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void setEnabled(bool);
bool isEnabled() const;
@@ -171,105 +171,105 @@ public:
%End
protected:
-%If (Qt_3_2_0 - Qt_3_3_0)
- QString content() const;
+%If (TQt_3_2_0 - TQt_3_3_0)
+ TQString content() const;
%End
};
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QComboTableItem : QTableItem
+class TQComboTableItem : TQTableItem
{
%TypeHeaderCode
#include <qtable.h>
%End
public:
- // Note that the Qt documentation is wrong. Ownership is only taken by
- // QTable::setItem().
- QComboTableItem(QTable *,const QStringList &,bool = 0);
+ // Note that the TQt documentation is wrong. Ownership is only taken by
+ // TQTable::setItem().
+ TQComboTableItem(TQTable *,const TQStringList &,bool = 0);
- virtual QWidget *createEditor() const /Factory/;
- virtual void setContentFromEditor(QWidget *);
- virtual void paint(QPainter *,const QColorGroup &,const QRect &,bool);
+ virtual TQWidget *createEditor() const /Factory/;
+ virtual void setContentFromEditor(TQWidget *);
+ virtual void paint(TQPainter *,const TQColorGroup &,const TQRect &,bool);
virtual void setCurrentItem(int);
- virtual void setCurrentItem(const QString &);
+ virtual void setCurrentItem(const TQString &);
int currentItem() const;
- QString currentText() const;
+ TQString currentText() const;
int count() const;
- QString text(int) const;
+ TQString text(int) const;
virtual void setEditable(bool);
bool isEditable() const;
- virtual void setStringList(const QStringList &);
+ virtual void setStringList(const TQStringList &);
int rtti() const;
-%If (Qt_3_0_6 -)
- QSize sizeHint() const;
+%If (TQt_3_0_6 -)
+ TQSize sizeHint() const;
%End
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QCheckTableItem : QTableItem
+class TQCheckTableItem : TQTableItem
{
%TypeHeaderCode
#include <qtable.h>
%End
public:
- // Note that the Qt documentation is wrong. Ownership is only taken by
- // QTable::setItem().
- QCheckTableItem(QTable *,const QString &);
+ // Note that the TQt documentation is wrong. Ownership is only taken by
+ // TQTable::setItem().
+ TQCheckTableItem(TQTable *,const TQString &);
-%If (Qt_3_2_0 -)
- void setText(const QString &);
+%If (TQt_3_2_0 -)
+ void setText(const TQString &);
%End
- virtual QWidget *createEditor() const /Factory/;
- virtual void setContentFromEditor(QWidget *);
- virtual void paint(QPainter *,const QColorGroup &,const QRect &,bool);
+ virtual TQWidget *createEditor() const /Factory/;
+ virtual void setContentFromEditor(TQWidget *);
+ virtual void paint(TQPainter *,const TQColorGroup &,const TQRect &,bool);
virtual void setChecked(bool);
bool isChecked() const;
int rtti() const;
-%If (Qt_3_0_6 -)
- QSize sizeHint() const;
+%If (TQt_3_0_6 -)
+ TQSize sizeHint() const;
%End
};
%End
-class QTable : QScrollView
+class TQTable : TQScrollView
{
%TypeHeaderCode
#include <qtable.h>
%End
public:
- QTable(QWidget * /TransferThis/ = 0,const char * = 0);
- QTable(int,int,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQTable(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQTable(int,int,TQWidget * /TransferThis/ = 0,const char * = 0);
%ConvertToSubClassCode
sipClass = (sipCpp->inherits(sipName_QTable) ? sipClass_QTable : NULL);
%End
- QHeader *horizontalHeader() const;
- QHeader *verticalHeader() const;
+ TQHeader *horizontalHeader() const;
+ TQHeader *verticalHeader() const;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
enum SelectionMode {
Single,
Multi,
NoSelection
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum SelectionMode {
Single,
Multi,
@@ -282,15 +282,15 @@ public:
virtual void setSelectionMode(SelectionMode);
SelectionMode selectionMode() const;
- virtual void setItem(int,int,QTableItem * /Transfer/);
- virtual void setText(int,int,const QString &);
- virtual void setPixmap(int,int,const QPixmap &);
- virtual QTableItem *item(int,int) const;
- virtual QString text(int,int) const;
- virtual QPixmap pixmap(int,int) const;
+ virtual void setItem(int,int,TQTableItem * /Transfer/);
+ virtual void setText(int,int,const TQString &);
+ virtual void setPixmap(int,int,const TQPixmap &);
+ virtual TQTableItem *item(int,int) const;
+ virtual TQString text(int,int) const;
+ virtual TQPixmap pixmap(int,int) const;
virtual void clearCell(int,int);
- virtual QRect cellGeometry(int,int) const;
+ virtual TQRect cellGeometry(int,int) const;
virtual int columnWidth(int) const;
virtual int rowHeight(int) const;
virtual int columnPos(int) const;
@@ -298,18 +298,18 @@ public:
virtual int columnAt(int) const;
virtual int rowAt(int) const;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int numRows() const;
int numCols() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual int numRows() const;
virtual int numCols() const;
%End
void updateCell(int,int);
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
int currentRow() const;
int currentColumn() const;
@@ -319,13 +319,13 @@ public:
bool isRowSelected(int,bool = 0) const;
bool isColumnSelected(int,bool = 0) const;
int numSelections() const;
- QTableSelection selection(int) const;
- virtual int addSelection(const QTableSelection &);
- virtual void removeSelection(const QTableSelection &);
+ TQTableSelection selection(int) const;
+ virtual int addSelection(const TQTableSelection &);
+ virtual void removeSelection(const TQTableSelection &);
virtual void removeSelection(int);
virtual int currentSelection() const;
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void selectCells(int,int,int,int);
void selectRow(int);
void selectColumn(int);
@@ -340,25 +340,25 @@ public:
bool sorting() const;
- virtual void takeItem(QTableItem * /TransferBack/);
+ virtual void takeItem(TQTableItem * /TransferBack/);
- virtual void setCellWidget(int,int,QWidget * /Transfer/);
- virtual QWidget *cellWidget(int,int) const;
+ virtual void setCellWidget(int,int,TQWidget * /Transfer/);
+ virtual TQWidget *cellWidget(int,int) const;
virtual void clearCellWidget(int,int);
-%If (Qt_3_0_0 -)
- virtual QRect cellRect(int,int) const;
+%If (TQt_3_0_0 -)
+ virtual TQRect cellRect(int,int) const;
%End
- virtual void paintCell(QPainter *,int,int,const QRect &,bool);
-%If (Qt_3_0_0 -)
- virtual void paintCell(QPainter *,int,int,const QRect &,bool,
- const QColorGroup &);
+ virtual void paintCell(TQPainter *,int,int,const TQRect &,bool);
+%If (TQt_3_0_0 -)
+ virtual void paintCell(TQPainter *,int,int,const TQRect &,bool,
+ const TQColorGroup &);
%End
- virtual void paintFocus(QPainter *,const QRect &);
- QSize sizeHint() const;
+ virtual void paintFocus(TQPainter *,const TQRect &);
+ TQSize sizeHint() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isReadOnly() const;
bool isRowReadOnly(int) const;
bool isColumnReadOnly(int) const;
@@ -376,7 +376,7 @@ public:
FocusStyle focusStyle() const;
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void updateHeaderStates();
%End
@@ -388,7 +388,7 @@ public slots:
virtual void hideColumn(int);
virtual void showRow(int);
virtual void showColumn(int);
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
bool isRowHidden(int) const;
bool isColumnHidden(int) const;
%End
@@ -404,11 +404,11 @@ public slots:
bool isColumnStretchable(int) const;
bool isRowStretchable(int) const;
virtual void setSorting(bool);
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual void swapRows(int,int);
virtual void swapColumns(int,int);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void swapRows(int,int,bool = 0);
virtual void swapColumns(int,int,bool = 0);
%End
@@ -421,7 +421,7 @@ public slots:
virtual void setColumnMovingEnabled(bool);
virtual void setRowMovingEnabled(bool);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void setReadOnly(bool);
virtual void setRowReadOnly(int,bool);
virtual void setColumnReadOnly(int,bool);
@@ -432,20 +432,20 @@ public slots:
virtual void insertRows(int,int = 1);
virtual void insertColumns(int,int = 1);
virtual void removeRow(int);
- virtual void removeRows(const QMemArray<int> &);
+ virtual void removeRows(const TQMemArray<int> &);
virtual void removeColumn(int);
- virtual void removeColumns(const QMemArray<int> &);
+ virtual void removeColumns(const TQMemArray<int> &);
virtual void editCell(int,int,bool = 0);
%End
-%If (Qt_3_1_0 -)
- void setRowLabels(const QStringList &);
- void setColumnLabels(const QStringList &);
+%If (TQt_3_1_0 -)
+ void setRowLabels(const TQStringList &);
+ void setColumnLabels(const TQStringList &);
%End
protected:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum EditMode {
NotEditing,
Editing,
@@ -453,49 +453,49 @@ protected:
};
%End
- void drawContents(QPainter *,int,int,int,int);
- void contentsMousePressEvent(QMouseEvent *);
- void contentsMouseMoveEvent(QMouseEvent *);
- void contentsMouseDoubleClickEvent(QMouseEvent *);
- void contentsMouseReleaseEvent(QMouseEvent *);
-%If (Qt_3_0_0 -)
- void contentsContextMenuEvent(QContextMenuEvent *);
+ void drawContents(TQPainter *,int,int,int,int);
+ void contentsMousePressEvent(TQMouseEvent *);
+ void contentsMouseMoveEvent(TQMouseEvent *);
+ void contentsMouseDoubleClickEvent(TQMouseEvent *);
+ void contentsMouseReleaseEvent(TQMouseEvent *);
+%If (TQt_3_0_0 -)
+ void contentsContextMenuEvent(TQContextMenuEvent *);
%End
- void keyPressEvent(QKeyEvent *);
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
-%If (- Qt_3_0_0)
- void resizeEvent(QResizeEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
+%If (- TQt_3_0_0)
+ void resizeEvent(TQResizeEvent *);
%End
-%If (Qt_3_0_0 -)
- void viewportResizeEvent(QResizeEvent *);
+%If (TQt_3_0_0 -)
+ void viewportResizeEvent(TQResizeEvent *);
%End
- void showEvent(QShowEvent *);
-%If (Qt_3_1_0 -)
- void paintEvent(QPaintEvent *);
+ void showEvent(TQShowEvent *);
+%If (TQt_3_1_0 -)
+ void paintEvent(TQPaintEvent *);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setEditMode(EditMode,int,int);
- virtual void contentsDragEnterEvent(QDragEnterEvent *);
- virtual void contentsDragMoveEvent(QDragMoveEvent *);
- virtual void contentsDragLeaveEvent(QDragLeaveEvent *);
- virtual void contentsDropEvent(QDropEvent *);
- virtual QDragObject *dragObject();
+ virtual void contentsDragEnterEvent(TQDragEnterEvent *);
+ virtual void contentsDragMoveEvent(TQDragMoveEvent *);
+ virtual void contentsDragLeaveEvent(TQDragLeaveEvent *);
+ virtual void contentsDropEvent(TQDropEvent *);
+ virtual TQDragObject *dragObject();
virtual void startDrag();
%End
- virtual void paintEmptyArea(QPainter *,int,int,int,int);
+ virtual void paintEmptyArea(TQPainter *,int,int,int,int);
virtual void activateNextCell();
- virtual QWidget *createEditor(int,int,bool) const /Factory/;
+ virtual TQWidget *createEditor(int,int,bool) const /Factory/;
virtual void setCellContentFromEditor(int,int);
- virtual QWidget *beginEdit(int,int,bool);
+ virtual TQWidget *beginEdit(int,int,bool);
virtual void endEdit(int,int,bool,bool);
virtual void resizeData(int);
- virtual void insertWidget(int,int,QWidget *);
+ virtual void insertWidget(int,int,TQWidget *);
int indexOf(int,int) const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void windowActivationChange(bool);
bool isEditing() const;
EditMode editMode() const;
@@ -512,19 +512,19 @@ protected slots:
signals:
void currentChanged(int,int);
- void clicked(int,int,int,const QPoint &);
- void doubleClicked(int,int,int,const QPoint &);
- void pressed(int,int,int,const QPoint &);
+ void clicked(int,int,int,const TQPoint &);
+ void doubleClicked(int,int,int,const TQPoint &);
+ void pressed(int,int,int,const TQPoint &);
void selectionChanged();
void valueChanged(int,int);
-%If (Qt_3_0_0 -)
- void contextMenuRequested(int,int,const QPoint &);
- void dropped(QDropEvent *);
+%If (TQt_3_0_0 -)
+ void contextMenuRequested(int,int,const TQPoint &);
+ void dropped(TQDropEvent *);
%End
private:
-%If (Qt_3_1_0 -)
- QTable(const QTable &);
+%If (TQt_3_1_0 -)
+ TQTable(const TQTable &);
%End
};