diff options
Diffstat (limited to 'sip/qtsql/qdatatable.sip')
-rw-r--r-- | sip/qtsql/qdatatable.sip | 148 |
1 files changed, 74 insertions, 74 deletions
diff --git a/sip/qtsql/qdatatable.sip b/sip/qtsql/qdatatable.sip index bcb0290..87b8a0b 100644 --- a/sip/qtsql/qdatatable.sip +++ b/sip/qtsql/qdatatable.sip @@ -1,57 +1,57 @@ -// This is the SIP interface definition for QDataTable. +// This is the SIP interface definition for TQDataTable. // // 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>QDataTable (Qt v3+)</Title> +<Sect2><Title>TQDataTable (TQt v3+)</Title> <Para> -<Literal>QDataTable</Literal> is fully implemented. +<Literal>TQDataTable</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QDataTable : QTable +class TQDataTable : TQTable { %TypeHeaderCode #include <qdatatable.h> %End public: - QDataTable(QWidget* /TransferThis/ = 0,const char * = 0); - QDataTable(QSqlCursor *,bool = 0,QWidget * /TransferThis/ = 0, + TQDataTable(TQWidget* /TransferThis/ = 0,const char * = 0); + TQDataTable(TQSqlCursor *,bool = 0,TQWidget * /TransferThis/ = 0, const char * = 0); - virtual void addColumn(const QString &,const QString & = QString::null, - int = -1,const QIconSet & = QIconSet()); + virtual void addColumn(const TQString &,const TQString & = TQString::null, + int = -1,const TQIconSet & = TQIconSet()); virtual void removeColumn(uint); - virtual void setColumn(uint,const QString &, - const QString & = QString::null,int = -1, - const QIconSet & = QIconSet()); + virtual void setColumn(uint,const TQString &, + const TQString & = TQString::null,int = -1, + const TQIconSet & = TQIconSet()); - QString nullText() const; - QString trueText() const; - QString falseText() const; + TQString nullText() const; + TQString trueText() const; + TQString falseText() const; DateFormat dateFormat() const; bool confirmEdits() const; bool confirmInsert() const; @@ -60,13 +60,13 @@ public: bool confirmCancels() const; bool autoDelete() const; bool autoEdit() const; - QString filter() const; - QStringList sort() const; + TQString filter() const; + TQStringList sort() const; - virtual void setSqlCursor(QSqlCursor * /GetWrapper/ = 0,bool = 0,bool = 0); + virtual void setSqlCursor(TQSqlCursor * /GetWrapper/ = 0,bool = 0,bool = 0); %MethodCode Py_BEGIN_ALLOW_THREADS - sipSelfWasArg ? sipCpp->QDataTable::setSqlCursor(a0, a1, a2) : sipCpp->setSqlCursor(a0, a1, a2); + sipSelfWasArg ? sipCpp->TQDataTable::setSqlCursor(a0, a1, a2) : sipCpp->setSqlCursor(a0, a1, a2); Py_END_ALLOW_THREADS // Transfer ownership of the cursor if the autoDelete flag is @@ -75,11 +75,11 @@ public: sipTransferTo(a0Wrapper,sipSelf); %End - QSqlCursor *sqlCursor() const; + TQSqlCursor *sqlCursor() const; - virtual void setNullText(const QString &); - virtual void setTrueText(const QString &); - virtual void setFalseText(const QString &); + virtual void setNullText(const TQString &); + virtual void setTrueText(const TQString &); + virtual void setFalseText(const TQString &); virtual void setDateFormat(const DateFormat); virtual void setConfirmEdits(bool); virtual void setConfirmInsert(bool); @@ -88,9 +88,9 @@ public: virtual void setConfirmCancels(bool); virtual void setAutoDelete(bool); virtual void setAutoEdit(bool); - virtual void setFilter(const QString &); - virtual void setSort(const QStringList &); - virtual void setSort(const QSqlIndex &); + virtual void setFilter(const TQString &); + virtual void setSort(const TQStringList &); + virtual void setSort(const TQSqlIndex &); enum Refresh { RefreshData, @@ -100,45 +100,45 @@ public: void refresh(Refresh); void sortColumn(int,bool = 1,bool = 0); - QString text(int,int) const; - QVariant value(int,int) const; - QSqlRecord *currentRecord() const; + TQString text(int,int) const; + TQVariant value(int,int) const; + TQSqlRecord *currentRecord() const; - void installEditorFactory(QSqlEditorFactory * /Transfer/); - void installPropertyMap(QSqlPropertyMap * /Transfer/); + void installEditorFactory(TQSqlEditorFactory * /Transfer/); + void installPropertyMap(TQSqlPropertyMap * /Transfer/); int numCols() const; int numRows() const; void setNumCols(int); void setNumRows(int); - bool findBuffer(const QSqlIndex &,int = 0); + bool findBuffer(const TQSqlIndex &,int = 0); -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) void hideColumn(int); void showColumn(int); %End signals: - void currentChanged(QSqlRecord *); - void primeInsert(QSqlRecord *); - void primeUpdate(QSqlRecord *); - void primeDelete(QSqlRecord *); - void beforeInsert(QSqlRecord *); - void beforeUpdate(QSqlRecord *); - void beforeDelete(QSqlRecord *); - void cursorChanged(QSql::Op); + void currentChanged(TQSqlRecord *); + void primeInsert(TQSqlRecord *); + void primeUpdate(TQSqlRecord *); + void primeDelete(TQSqlRecord *); + void beforeInsert(TQSqlRecord *); + void beforeUpdate(TQSqlRecord *); + void beforeDelete(TQSqlRecord *); + void cursorChanged(TQSql::Op); public slots: - virtual void find(const QString &,bool,bool); + virtual void find(const TQString &,bool,bool); virtual void sortAscending(int); virtual void sortDescending(int); virtual void refresh(); void setColumnWidth(int,int); -%If (Qt_3_0_5 -) +%If (TQt_3_0_5 -) void adjustColumn(int); void setColumnStretchable(int,bool); %End -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) void swapColumns(int,int,bool = 0); %End @@ -147,54 +147,54 @@ protected: virtual bool updateCurrent(); virtual bool deleteCurrent(); - virtual QSql::Confirm confirmEdit(QSql::Op); - virtual QSql::Confirm confirmCancel(QSql::Op); + virtual TQSql::Confirm confirmEdit(TQSql::Op); + virtual TQSql::Confirm confirmCancel(TQSql::Op); - virtual void handleError(const QSqlError &); + virtual void handleError(const TQSqlError &); virtual bool beginInsert(); - virtual QWidget *beginUpdate(int,int,bool); + virtual TQWidget *beginUpdate(int,int,bool); - bool eventFilter(QObject *,QEvent *); -%If (Qt_3_2_0 -) - void keyPressEvent(QKeyEvent *); + bool eventFilter(TQObject *,TQEvent *); +%If (TQt_3_2_0 -) + void keyPressEvent(TQKeyEvent *); %End - void resizeEvent(QResizeEvent *); - void contentsMousePressEvent(QMouseEvent *); - void contentsContextMenuEvent(QContextMenuEvent *); + void resizeEvent(TQResizeEvent *); + void contentsMousePressEvent(TQMouseEvent *); + void contentsContextMenuEvent(TQContextMenuEvent *); void endEdit(int,int,bool,bool); - // We don't specify /Factory/ for this because the returned QWidget + // We don't specify /Factory/ for this because the returned TQWidget // will always have a parent which will own it. - QWidget *createEditor(int,int,bool) const; + TQWidget *createEditor(int,int,bool) const; void activateNextCell(); int indexOf(uint) const; void reset(); - void setSize(QSqlCursor *); + void setSize(TQSqlCursor *); void repaintCell(int,int); - void paintCell(QPainter *,int,int,const QRect &,bool, - const QColorGroup &); - virtual void paintField(QPainter *,const QSqlField *,const QRect &, + void paintCell(TQPainter *,int,int,const TQRect &,bool, + const TQColorGroup &); + virtual void paintField(TQPainter *,const TQSqlField *,const TQRect &, bool); -%If (Qt_3_1_0 -) - void drawContents(QPainter *,int,int,int,int); +%If (TQt_3_1_0 -) + void drawContents(TQPainter *,int,int,int,int); %End - virtual int fieldAlignment(const QSqlField *); + virtual int fieldAlignment(const TQSqlField *); void columnClicked(int); void resizeData(int); - QTableItem *item(int,int) const; - void setItem(int,int,QTableItem *); + TQTableItem *item(int,int) const; + void setItem(int,int,TQTableItem *); void clearCell(int,int); - void setPixmap(int,int,const QPixmap &); - void takeItem(QTableItem *); + void setPixmap(int,int,const TQPixmap &); + void takeItem(TQTableItem *); private: - QWidget *beginEdit(int,int,bool); + TQWidget *beginEdit(int,int,bool); -%If (Qt_3_1_0 -) - QDataTable(const QDataTable &); +%If (TQt_3_1_0 -) + TQDataTable(const TQDataTable &); %End }; |