diff options
Diffstat (limited to 'sip/qtsql')
-rw-r--r-- | sip/qtsql/copying.sip | 18 | ||||
-rw-r--r-- | sip/qtsql/qdatabrowser.sip | 64 | ||||
-rw-r--r-- | sip/qtsql/qdatatable.sip | 148 | ||||
-rw-r--r-- | sip/qtsql/qdataview.sip | 34 | ||||
-rw-r--r-- | sip/qtsql/qeditorfactory.sip | 32 | ||||
-rw-r--r-- | sip/qtsql/qsql.sip | 24 | ||||
-rw-r--r-- | sip/qtsql/qsqlcursor.sip | 124 | ||||
-rw-r--r-- | sip/qtsql/qsqldatabase.sip | 112 | ||||
-rw-r--r-- | sip/qtsql/qsqldriver.sip | 58 | ||||
-rw-r--r-- | sip/qtsql/qsqleditorfactory.sip | 36 | ||||
-rw-r--r-- | sip/qtsql/qsqlerror.sip | 38 | ||||
-rw-r--r-- | sip/qtsql/qsqlfield.sip | 60 | ||||
-rw-r--r-- | sip/qtsql/qsqlform.sip | 46 | ||||
-rw-r--r-- | sip/qtsql/qsqlindex.sip | 42 | ||||
-rw-r--r-- | sip/qtsql/qsqlpropertymap.sip | 36 | ||||
-rw-r--r-- | sip/qtsql/qsqlquery.sip | 74 | ||||
-rw-r--r-- | sip/qtsql/qsqlrecord.sip | 86 | ||||
-rw-r--r-- | sip/qtsql/qsqlresult.sip | 36 | ||||
-rw-r--r-- | sip/qtsql/qsqlselectcursor.sip | 68 | ||||
-rw-r--r-- | sip/qtsql/qtsqlmod.sip | 18 |
20 files changed, 577 insertions, 577 deletions
diff --git a/sip/qtsql/copying.sip b/sip/qtsql/copying.sip index 463904b..6da646e 100644 --- a/sip/qtsql/copying.sip +++ b/sip/qtsql/copying.sip @@ -1,22 +1,22 @@ -// This is the SIP file defining the PyQt license. +// This is the SIP file defining the PyTQt license. // // 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. @@ -24,20 +24,20 @@ 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. %End diff --git a/sip/qtsql/qdatabrowser.sip b/sip/qtsql/qdatabrowser.sip index ff2e4d8..47d5df7 100644 --- a/sip/qtsql/qdatabrowser.sip +++ b/sip/qtsql/qdatabrowser.sip @@ -1,27 +1,27 @@ -// This is the SIP interface definition for QDataBrowser. +// This is the SIP interface definition for TQDataBrowser. // // 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>QDataBrowser (Qt v3+)</Title> +<Sect2><Title>TQDataBrowser (TQt v3+)</Title> <FuncSynopsis> <FuncDef>virtual void <Function>del</Function></FuncDef> <ParamDef></ParamDef> @@ -33,16 +33,16 @@ This has been renamed <Literal>delOnCursor</Literal> in Python. %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QDataBrowser : QWidget +class TQDataBrowser : TQWidget { %TypeHeaderCode #include <qdatabrowser.h> %End public: - QDataBrowser(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); + TQDataBrowser(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); enum Boundary { Unknown, @@ -57,16 +57,16 @@ public: void setBoundaryChecking(bool); bool boundaryChecking() const; - void setSort(const QSqlIndex &); - void setSort(const QStringList &); - QStringList sort() const; - void setFilter(const QString &); - QString filter() const; + void setSort(const TQSqlIndex &); + void setSort(const TQStringList &); + TQStringList sort() const; + void setFilter(const TQString &); + TQString filter() const; - virtual void setSqlCursor(QSqlCursor * /GetWrapper/,bool = 0); + virtual void setSqlCursor(TQSqlCursor * /GetWrapper/,bool = 0); %MethodCode Py_BEGIN_ALLOW_THREADS - sipSelfWasArg ? sipCpp->QDataBrowser::setSqlCursor(a0, a1) : sipCpp->setSqlCursor(a0, a1); + sipSelfWasArg ? sipCpp->TQDataBrowser::setSqlCursor(a0, a1) : sipCpp->setSqlCursor(a0, a1); Py_END_ALLOW_THREADS // Transfer ownership of the cursor if the autoDelete flag is @@ -75,9 +75,9 @@ public: sipTransferTo(a0Wrapper,sipSelf); %End - QSqlCursor* sqlCursor() const; - virtual void setForm(QSqlForm *); - QSqlForm* form(); + TQSqlCursor* sqlCursor() const; + virtual void setForm(TQSqlForm *); + TQSqlForm* form(); virtual void setConfirmEdits(bool); virtual void setConfirmInsert(bool); @@ -103,14 +103,14 @@ signals: void nextRecordAvailable(bool); void prevRecordAvailable(bool); - void currentChanged(const QSqlRecord *); - void primeInsert(QSqlRecord *); - void primeUpdate(QSqlRecord *); - void primeDelete(QSqlRecord *); - void beforeInsert(QSqlRecord *); - void beforeUpdate(QSqlRecord *); - void beforeDelete(QSqlRecord *); - void cursorChanged(QSqlCursor::Mode); + void currentChanged(const TQSqlRecord *); + void primeInsert(TQSqlRecord *); + void primeUpdate(TQSqlRecord *); + void primeDelete(TQSqlRecord *); + void beforeInsert(TQSqlRecord *); + void beforeUpdate(TQSqlRecord *); + void beforeDelete(TQSqlRecord *); + void cursorChanged(TQSqlCursor::Mode); public slots: virtual void refresh(); @@ -136,14 +136,14 @@ protected: virtual bool deleteCurrent() /ReleaseGIL/; virtual bool currentEdited(); - virtual QSql::Confirm confirmEdit(QSql::Op) /ReleaseGIL/; - virtual QSql::Confirm confirmCancel(QSql::Op) /ReleaseGIL/; + virtual TQSql::Confirm confirmEdit(TQSql::Op) /ReleaseGIL/; + virtual TQSql::Confirm confirmCancel(TQSql::Op) /ReleaseGIL/; - virtual void handleError(const QSqlError &) /ReleaseGIL/; + virtual void handleError(const TQSqlError &) /ReleaseGIL/; private: -%If (Qt_3_1_0 -) - QDataBrowser(const QDataBrowser &); +%If (TQt_3_1_0 -) + TQDataBrowser(const TQDataBrowser &); %End }; 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 <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>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 }; diff --git a/sip/qtsql/qdataview.sip b/sip/qtsql/qdataview.sip index e6bb36e..2f48579 100644 --- a/sip/qtsql/qdataview.sip +++ b/sip/qtsql/qdataview.sip @@ -1,59 +1,59 @@ -// This is the SIP interface definition for QDataView. +// This is the SIP interface definition for TQDataView. // // 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>QDataView (Qt v3+)</Title> +<Sect2><Title>TQDataView (TQt v3+)</Title> <Para> -<Literal>QDataView</Literal> is fully implemented. +<Literal>TQDataView</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QDataView : QWidget +class TQDataView : TQWidget { %TypeHeaderCode #include <qdataview.h> %End public: - QDataView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); + TQDataView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - virtual void setForm(QSqlForm *); - QSqlForm *form(); - virtual void setRecord(QSqlRecord *); - QSqlRecord *record(); + virtual void setForm(TQSqlForm *); + TQSqlForm *form(); + virtual void setRecord(TQSqlRecord *); + TQSqlRecord *record(); public slots: - virtual void refresh(QSqlRecord *); + virtual void refresh(TQSqlRecord *); virtual void readFields(); virtual void writeFields(); virtual void clearValues(); private: -%If (Qt_3_1_0 -) - QDataView(const QDataView &); +%If (TQt_3_1_0 -) + TQDataView(const TQDataView &); %End }; diff --git a/sip/qtsql/qeditorfactory.sip b/sip/qtsql/qeditorfactory.sip index 49f932b..05024c1 100644 --- a/sip/qtsql/qeditorfactory.sip +++ b/sip/qtsql/qeditorfactory.sip @@ -1,54 +1,54 @@ -// This is the SIP interface definition for QEditorFactory. +// This is the SIP interface definition for TQEditorFactory. // // 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>QEditorFactory (Qt v3+)</Title> +<Sect2><Title>TQEditorFactory (TQt v3+)</Title> <Para> -<Literal>QEditorFactory</Literal> is fully implemented. +<Literal>TQEditorFactory</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QEditorFactory : QObject +class TQEditorFactory : TQObject { %TypeHeaderCode #include <qeditorfactory.h> %End public: - QEditorFactory(QObject * /TransferThis/ = 0,const char * = 0); + TQEditorFactory(TQObject * /TransferThis/ = 0,const char * = 0); - virtual QWidget *createEditor(QWidget * /TransferThis/, - const QVariant &) /Factory/; + virtual TQWidget *createEditor(TQWidget * /TransferThis/, + const TQVariant &) /Factory/; - static QEditorFactory *defaultFactory(); - static void installDefaultFactory(QEditorFactory * /Transfer/); + static TQEditorFactory *defaultFactory(); + static void installDefaultFactory(TQEditorFactory * /Transfer/); private: -%If (Qt_3_1_0 -) - QEditorFactory(const QEditorFactory &); +%If (TQt_3_1_0 -) + TQEditorFactory(const TQEditorFactory &); %End }; diff --git a/sip/qtsql/qsql.sip b/sip/qtsql/qsql.sip index f2df075..39386f9 100644 --- a/sip/qtsql/qsql.sip +++ b/sip/qtsql/qsql.sip @@ -1,44 +1,44 @@ -// This is the SIP interface definition for QSql. +// This is the SIP interface definition for TQSql. // // 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>QSql (Qt v3+)</Title> +<Sect2><Title>TQSql (TQt v3+)</Title> <Para> -<Literal>QSql</Literal> is fully implemented. +<Literal>TQSql</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSql +class TQSql { %TypeHeaderCode #include <qsql.h> %End public: - QSql(); + TQSql(); enum Op { None, @@ -58,7 +58,7 @@ public: Yes }; -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) enum ParameterType { In, Out, @@ -74,7 +74,7 @@ public: %End private: - QSql(const QSql &); + TQSql(const TQSql &); }; %End diff --git a/sip/qtsql/qsqlcursor.sip b/sip/qtsql/qsqlcursor.sip index 2e11c1b..ff9ec2b 100644 --- a/sip/qtsql/qsqlcursor.sip +++ b/sip/qtsql/qsqlcursor.sip @@ -1,27 +1,27 @@ -// This is the SIP interface definition for QSqlCursor. +// This is the SIP interface definition for TQSqlCursor. // // 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>QSqlCursor (Qt v3+)</Title> +<Sect2><Title>TQSqlCursor (TQt v3+)</Title> <FuncSynopsis> <FuncDef>virtual int <Function>del</Function></FuncDef> <ParamDef>bool <Parameter>invalidate</Parameter> = TRUE</ParamDef> @@ -32,7 +32,7 @@ This has been renamed <Literal>delRecords</Literal> in Python. <FuncSynopsis> <FuncDef>virtual int <Function>del</Function></FuncDef> - <ParamDef>const QString &<Parameter>filter</Parameter></ParamDef> + <ParamDef>const TQString &<Parameter>filter</Parameter></ParamDef> <ParamDef>bool <Parameter>invalidate</Parameter> = TRUE</ParamDef> </FuncSynopsis> <Para> @@ -41,7 +41,7 @@ This has been renamed <Literal>delRecords</Literal> in Python. <FuncSynopsis> <FuncDef>bool <Function>exec</Function></FuncDef> - <ParamDef>const QString &<Parameter>query</Parameter></ParamDef> + <ParamDef>const TQString &<Parameter>query</Parameter></ParamDef> </FuncSynopsis> <Para> This has been renamed <Literal>execQuery</Literal> in Python. @@ -50,17 +50,17 @@ This has been renamed <Literal>execQuery</Literal> in Python. %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSqlCursor : QSqlRecord, QSqlQuery +class TQSqlCursor : TQSqlRecord, TQSqlQuery { %TypeHeaderCode #include <qsqlcursor.h> %End public: - QSqlCursor(const QString & = QString::null,bool = 1,QSqlDatabase * = 0); - QSqlCursor(const QSqlCursor &); + TQSqlCursor(const TQString & = TQString::null,bool = 1,TQSqlDatabase * = 0); + TQSqlCursor(const TQSqlCursor &); enum Mode { ReadOnly, @@ -70,39 +70,39 @@ public: Writable }; - QVariant value(int) const; - QVariant value(const QString &) const; -%If (Qt_3_1_0 -) - void setValue(int,const QVariant &); - void setValue(const QString &,const QVariant &); + TQVariant value(int) const; + TQVariant value(const TQString &) const; +%If (TQt_3_1_0 -) + void setValue(int,const TQVariant &); + void setValue(const TQString &,const TQVariant &); %End - virtual QSqlIndex primaryIndex(bool = 1) const; - virtual QSqlIndex index(const QStringList &) const; - QSqlIndex index(const QString &) const; -// QSqlIndex index(const char *) const; - virtual void setPrimaryIndex(const QSqlIndex &); - - virtual void append(const QSqlFieldInfo &); - virtual void insert(int,const QSqlFieldInfo &); + virtual TQSqlIndex primaryIndex(bool = 1) const; + virtual TQSqlIndex index(const TQStringList &) const; + TQSqlIndex index(const TQString &) const; +// TQSqlIndex index(const char *) const; + virtual void setPrimaryIndex(const TQSqlIndex &); + + virtual void append(const TQSqlFieldInfo &); + virtual void insert(int,const TQSqlFieldInfo &); void remove(int); void clear(); - void setGenerated(const QString &,bool); + void setGenerated(const TQString &,bool); void setGenerated(int,bool); - virtual QSqlRecord *editBuffer(bool = 0); - virtual QSqlRecord *primeInsert(); - virtual QSqlRecord *primeUpdate(); - virtual QSqlRecord *primeDelete(); + virtual TQSqlRecord *editBuffer(bool = 0); + virtual TQSqlRecord *primeInsert(); + virtual TQSqlRecord *primeUpdate(); + virtual TQSqlRecord *primeDelete(); virtual int insert(bool = 1) /ReleaseGIL/; virtual int update(bool = 1) /ReleaseGIL/; virtual int del(bool = 1) /PyName=delRecords, ReleaseGIL/; virtual void setMode(int); int mode() const; - virtual void setCalculated(const QString &,bool); - bool isCalculated(const QString &) const; - virtual void setTrimmed(const QString &,bool); - bool isTrimmed(const QString &) const; + virtual void setCalculated(const TQString &,bool); + bool isCalculated(const TQString &) const; + virtual void setTrimmed(const TQString &,bool); + bool isTrimmed(const TQString &) const; bool isReadOnly() const; bool canInsert() const; @@ -110,39 +110,39 @@ public: bool canDelete() const; bool select() /ReleaseGIL/; - bool select(const QSqlIndex &) /ReleaseGIL/; - bool select(const QSqlIndex &,const QSqlIndex &) /ReleaseGIL/; - virtual bool select(const QString &,const QSqlIndex & = QSqlIndex()) /ReleaseGIL/; - - virtual void setSort(const QSqlIndex &); - QSqlIndex sort() const; - virtual void setFilter(const QString &); - QString filter() const; - virtual void setName(const QString &,bool = 1); - QString name() const; - QString toString(const QString & = QString::null, - const QString & = ",") const; - -%If (Qt_3_1_0 -) + bool select(const TQSqlIndex &) /ReleaseGIL/; + bool select(const TQSqlIndex &,const TQSqlIndex &) /ReleaseGIL/; + virtual bool select(const TQString &,const TQSqlIndex & = TQSqlIndex()) /ReleaseGIL/; + + virtual void setSort(const TQSqlIndex &); + TQSqlIndex sort() const; + virtual void setFilter(const TQString &); + TQString filter() const; + virtual void setName(const TQString &,bool = 1); + TQString name() const; + TQString toString(const TQString & = TQString::null, + const TQString & = ",") const; + +%If (TQt_3_1_0 -) bool isNull(int) const; - bool isNull(const QString &) const; + bool isNull(const TQString &) const; %End protected: void afterSeek(); - bool exec(const QString &) /PyName=execQuery, ReleaseGIL/; - - virtual QVariant calculateField(const QString &); - virtual int update(const QString &,bool = 1); - virtual int del(const QString &,bool = 1) /PyName=delRecords, ReleaseGIL/; - - virtual QString toString(const QString &,QSqlField *, - const QString &) const; - virtual QString toString(QSqlRecord *,const QString &,const QString &, - const QString &) const; - virtual QString toString(const QSqlIndex &,QSqlRecord *, - const QString &,const QString &, - const QString &) const; + bool exec(const TQString &) /PyName=execQuery, ReleaseGIL/; + + virtual TQVariant calculateField(const TQString &); + virtual int update(const TQString &,bool = 1); + virtual int del(const TQString &,bool = 1) /PyName=delRecords, ReleaseGIL/; + + virtual TQString toString(const TQString &,TQSqlField *, + const TQString &) const; + virtual TQString toString(TQSqlRecord *,const TQString &,const TQString &, + const TQString &) const; + virtual TQString toString(const TQSqlIndex &,TQSqlRecord *, + const TQString &,const TQString &, + const TQString &) const; }; %End diff --git a/sip/qtsql/qsqldatabase.sip b/sip/qtsql/qsqldatabase.sip index 510499f..6e48da6 100644 --- a/sip/qtsql/qsqldatabase.sip +++ b/sip/qtsql/qsqldatabase.sip @@ -1,30 +1,30 @@ -// This is the SIP interface definition for QSqlDatabase. +// This is the SIP interface definition for TQSqlDatabase. // // 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>QSqlDatabase (Qt v3+)</Title> +<Sect2><Title>TQSqlDatabase (TQt v3+)</Title> <FuncSynopsis> - <FuncDef>QSqlQuery <Function>exec</Function></FuncDef> - <ParamDef>const QString &<Parameter>query</Parameter> = QString::null</ParamDef> + <FuncDef>TQSqlQuery <Function>exec</Function></FuncDef> + <ParamDef>const TQString &<Parameter>query</Parameter> = TQString::null</ParamDef> </FuncSynopsis> <Para> This has been renamed <Literal>execStatement</Literal> in Python. @@ -33,9 +33,9 @@ This has been renamed <Literal>execStatement</Literal> in Python. %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSqlDatabase : QObject +class TQSqlDatabase : TQObject { %TypeHeaderCode #include <qsqldatabase.h> @@ -78,76 +78,76 @@ public: %End bool open() /ReleaseGIL/; - bool open(const QString &,const QString &) /ReleaseGIL/; + bool open(const TQString &,const TQString &) /ReleaseGIL/; void close(); bool isOpen() const; bool isOpenError() const; - QStringList tables() const; -%If (Qt_3_2_0 -) - QStringList tables(QSql::TableType) const; + TQStringList tables() const; +%If (TQt_3_2_0 -) + TQStringList tables(TQSql::TableType) const; %End - QSqlIndex primaryIndex(const QString &) const; - QSqlRecord record(const QString &) const; - QSqlRecord record(const QSqlQuery &) const; - QSqlRecordInfo recordInfo(const QString &) const; - QSqlRecordInfo recordInfo(const QSqlQuery &) const; - QSqlQuery exec(const QString & = QString::null) const /PyName=execStatement, ReleaseGIL/; - QSqlError lastError() const; + TQSqlIndex primaryIndex(const TQString &) const; + TQSqlRecord record(const TQString &) const; + TQSqlRecord record(const TQSqlQuery &) const; + TQSqlRecordInfo recordInfo(const TQString &) const; + TQSqlRecordInfo recordInfo(const TQSqlQuery &) const; + TQSqlQuery exec(const TQString & = TQString::null) const /PyName=execStatement, ReleaseGIL/; + TQSqlError lastError() const; bool transaction(); bool commit(); bool rollback(); - virtual void setDatabaseName(const QString &); - virtual void setUserName(const QString &); - virtual void setPassword(const QString &); - virtual void setHostName(const QString &); + virtual void setDatabaseName(const TQString &); + virtual void setUserName(const TQString &); + virtual void setPassword(const TQString &); + virtual void setHostName(const TQString &); virtual void setPort(int); -%If (Qt_3_2_0 -) - void setConnectOptions(const QString & = QString::null); +%If (TQt_3_2_0 -) + void setConnectOptions(const TQString & = TQString::null); %End - QString databaseName() const; - QString userName() const; - QString password() const; - QString hostName() const; - QString driverName() const; + TQString databaseName() const; + TQString userName() const; + TQString password() const; + TQString hostName() const; + TQString driverName() const; int port() const; -%If (Qt_3_2_0 -) - QString connectOptions() const; +%If (TQt_3_2_0 -) + TQString connectOptions() const; %End - QSqlDriver *driver() const; + TQSqlDriver *driver() const; - static QSqlDatabase *addDatabase(const QString &, - const QString & = QString(QSqlDatabase::defaultConnection)); -%If (Qt_3_2_0 -) - static QSqlDatabase *addDatabase(QSqlDriver *, - const QString & = QString(QSqlDatabase::defaultConnection)); + static TQSqlDatabase *addDatabase(const TQString &, + const TQString & = TQString(TQSqlDatabase::defaultConnection)); +%If (TQt_3_2_0 -) + static TQSqlDatabase *addDatabase(TQSqlDriver *, + const TQString & = TQString(TQSqlDatabase::defaultConnection)); %End - static QSqlDatabase *database(const QString & = QString(QSqlDatabase::defaultConnection),bool = 1); - static void removeDatabase(const QString &); -%If (Qt_3_2_0 -) - static void removeDatabase(QSqlDatabase *); + static TQSqlDatabase *database(const TQString & = TQString(TQSqlDatabase::defaultConnection),bool = 1); + static void removeDatabase(const TQString &); +%If (TQt_3_2_0 -) + static void removeDatabase(TQSqlDatabase *); %End - static bool contains(const QString & = QString(QSqlDatabase::defaultConnection)); - static QStringList drivers(); -// static void registerSqlDriver(const QString &, -// const QSqlDriverCreatorBase *); -%If (Qt_3_2_0 -) - static bool isDriverAvailable(const QString &); + static bool contains(const TQString & = TQString(TQSqlDatabase::defaultConnection)); + static TQStringList drivers(); +// static void registerSqlDriver(const TQString &, +// const TQSqlDriverCreatorBase *); +%If (TQt_3_2_0 -) + static bool isDriverAvailable(const TQString &); %End protected: - QSqlDatabase(const QString &,const QString &, - QObject * /TransferThis/ = 0,const char * = 0); -%If (Qt_3_2_0 -) - QSqlDatabase(QSqlDriver *,QObject * /TransferThis/ = 0, + TQSqlDatabase(const TQString &,const TQString &, + TQObject * /TransferThis/ = 0,const char * = 0); +%If (TQt_3_2_0 -) + TQSqlDatabase(TQSqlDriver *,TQObject * /TransferThis/ = 0, const char * = 0); %End private: -%If (Qt_3_1_0 -) - QSqlDatabase(const QSqlDatabase &); +%If (TQt_3_1_0 -) + TQSqlDatabase(const TQSqlDatabase &); %End }; diff --git a/sip/qtsql/qsqldriver.sip b/sip/qtsql/qsqldriver.sip index 3ebdaa9..ee8a3ab 100644 --- a/sip/qtsql/qsqldriver.sip +++ b/sip/qtsql/qsqldriver.sip @@ -1,37 +1,37 @@ -// This is the SIP interface definition for QSqlDriver. +// This is the SIP interface definition for TQSqlDriver. // // 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>QSqlDriver (Qt v3+)</Title> +<Sect2><Title>TQSqlDriver (TQt v3+)</Title> <Para> -<Literal>QSqlDriver</Literal> is fully implemented. +<Literal>TQSqlDriver</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSqlDriver : QObject +class TQSqlDriver : TQObject { %TypeHeaderCode #include <qsqldriver.h> @@ -42,7 +42,7 @@ public: Transactions, QuerySize, BLOB, -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) Unicode, PreparedQueries, NamedPlaceholders, @@ -50,7 +50,7 @@ public: %End }; - QSqlDriver(QObject * /TransferThis/ = 0,const char * = 0); + TQSqlDriver(TQObject * /TransferThis/ = 0,const char * = 0); bool isOpen() const; bool isOpenError() const; @@ -58,36 +58,36 @@ public: virtual bool beginTransaction(); virtual bool commitTransaction(); virtual bool rollbackTransaction(); - virtual QStringList tables(const QString &) const; - virtual QSqlIndex primaryIndex(const QString &) const; - virtual QSqlRecord record(const QString &) const; - virtual QSqlRecord record(const QSqlQuery &) const; - virtual QSqlRecordInfo recordInfo(const QString &) const; - virtual QSqlRecordInfo recordInfo(const QSqlQuery &) const; - virtual QString nullText() const; - virtual QString formatValue(const QSqlField *,bool = 0) const; - QSqlError lastError() const; + virtual TQStringList tables(const TQString &) const; + virtual TQSqlIndex primaryIndex(const TQString &) const; + virtual TQSqlRecord record(const TQString &) const; + virtual TQSqlRecord record(const TQSqlQuery &) const; + virtual TQSqlRecordInfo recordInfo(const TQString &) const; + virtual TQSqlRecordInfo recordInfo(const TQSqlQuery &) const; + virtual TQString nullText() const; + virtual TQString formatValue(const TQSqlField *,bool = 0) const; + TQSqlError lastError() const; virtual bool hasFeature(DriverFeature) const = 0; - virtual bool open(const QString &,const QString & = QString::null, - const QString & = QString::null, - const QString & = QString::null, + virtual bool open(const TQString &,const TQString & = TQString::null, + const TQString & = TQString::null, + const TQString & = TQString::null, int = -1) = 0 /ReleaseGIL/; virtual void close() = 0; - virtual QSqlQuery createQuery() const = 0; + virtual TQSqlQuery createQuery() const = 0; -%If (Qt_3_2_0 -) - bool open(const QString &,const QString &,const QString &, - const QString &,int,const QString &) /ReleaseGIL/; +%If (TQt_3_2_0 -) + bool open(const TQString &,const TQString &,const TQString &, + const TQString &,int,const TQString &) /ReleaseGIL/; %End protected: virtual void setOpen(bool); virtual void setOpenError(bool); - virtual void setLastError(const QSqlError &); + virtual void setLastError(const TQSqlError &); private: - QSqlDriver(const QSqlDriver &); + TQSqlDriver(const TQSqlDriver &); }; %End diff --git a/sip/qtsql/qsqleditorfactory.sip b/sip/qtsql/qsqleditorfactory.sip index af93bd4..b8aaa76 100644 --- a/sip/qtsql/qsqleditorfactory.sip +++ b/sip/qtsql/qsqleditorfactory.sip @@ -1,56 +1,56 @@ -// This is the SIP interface definition for QSqlEditorFactory. +// This is the SIP interface definition for TQSqlEditorFactory. // // 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>QSqlEditorFactory (Qt v3+)</Title> +<Sect2><Title>TQSqlEditorFactory (TQt v3+)</Title> <Para> -<Literal>QSqlEditorFactory</Literal> is fully implemented. +<Literal>TQSqlEditorFactory</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSqlEditorFactory : QEditorFactory +class TQSqlEditorFactory : TQEditorFactory { %TypeHeaderCode #include <qsqleditorfactory.h> %End public: - QSqlEditorFactory(QObject * /TransferThis/ = 0,const char * = 0); + TQSqlEditorFactory(TQObject * /TransferThis/ = 0,const char * = 0); - virtual QWidget *createEditor(QWidget * /TransferThis/, - const QVariant &) /Factory/; - virtual QWidget *createEditor(QWidget * /TransferThis/, - const QSqlField *) /Factory/; + virtual TQWidget *createEditor(TQWidget * /TransferThis/, + const TQVariant &) /Factory/; + virtual TQWidget *createEditor(TQWidget * /TransferThis/, + const TQSqlField *) /Factory/; - static QSqlEditorFactory *defaultFactory(); - static void installDefaultFactory(QSqlEditorFactory * /Transfer/); + static TQSqlEditorFactory *defaultFactory(); + static void installDefaultFactory(TQSqlEditorFactory * /Transfer/); private: -%If (Qt_3_1_0 -) - QSqlEditorFactory(const QSqlEditorFactory &); +%If (TQt_3_1_0 -) + TQSqlEditorFactory(const TQSqlEditorFactory &); %End }; diff --git a/sip/qtsql/qsqlerror.sip b/sip/qtsql/qsqlerror.sip index 17f9504..e23d84e 100644 --- a/sip/qtsql/qsqlerror.sip +++ b/sip/qtsql/qsqlerror.sip @@ -1,37 +1,37 @@ -// This is the SIP interface definition for QSqlError. +// This is the SIP interface definition for TQSqlError. // // 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>QSqlError (Qt v3+)</Title> +<Sect2><Title>TQSqlError (TQt v3+)</Title> <Para> -<Literal>QSqlError</Literal> is fully implemented. +<Literal>TQSqlError</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSqlError +class TQSqlError { %TypeHeaderCode #include <qsqlerror.h> @@ -46,22 +46,22 @@ public: Unknown }; - QSqlError(const QString & = QString::null, - const QString & = QString::null,int = QSqlError::None, + TQSqlError(const TQString & = TQString::null, + const TQString & = TQString::null,int = TQSqlError::None, int = -1); - QSqlError(const QSqlError &); + TQSqlError(const TQSqlError &); - QString driverText() const; - virtual void setDriverText(const QString &); - QString databaseText() const; - virtual void setDatabaseText(const QString &); + TQString driverText() const; + virtual void setDriverText(const TQString &); + TQString databaseText() const; + virtual void setDatabaseText(const TQString &); int type() const; virtual void setType(int); int number() const; virtual void setNumber(int); -%If (Qt_3_2_0 -) - QString text() const; - void showMessage(const QString & = QString::null) const; +%If (TQt_3_2_0 -) + TQString text() const; + void showMessage(const TQString & = TQString::null) const; %End }; diff --git a/sip/qtsql/qsqlfield.sip b/sip/qtsql/qsqlfield.sip index 39dc046..42339ab 100644 --- a/sip/qtsql/qsqlfield.sip +++ b/sip/qtsql/qsqlfield.sip @@ -1,87 +1,87 @@ -// This is the SIP interface definition for QSqlField and QSqlFieldInfo. +// This is the SIP interface definition for TQSqlField and TQSqlFieldInfo. // // 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>QSqlField (Qt v3+)</Title> +<Sect2><Title>TQSqlField (TQt v3+)</Title> <Para> -<Literal>QSqlField</Literal> is fully implemented. +<Literal>TQSqlField</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QSqlFieldInfo (Qt v3+)</Title> +<Sect2><Title>TQSqlFieldInfo (TQt v3+)</Title> <Para> -<Literal>QSqlFieldInfo</Literal> is fully implemented. +<Literal>TQSqlFieldInfo</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSqlField +class TQSqlField { %TypeHeaderCode #include <qsqlfield.h> %End public: - QSqlField(const QString & = QString::null, - QVariant::Type = QVariant::Invalid ); - QSqlField(const QSqlField &); + TQSqlField(const TQString & = TQString::null, + TQVariant::Type = TQVariant::Invalid ); + TQSqlField(const TQSqlField &); - virtual void setValue(const QVariant &); - virtual QVariant value() const; - virtual void setName(const QString &); - QString name() const; + virtual void setValue(const TQVariant &); + virtual TQVariant value() const; + virtual void setName(const TQString &); + TQString name() const; virtual void setNull(); bool isNull() const; virtual void setReadOnly(bool); bool isReadOnly() const; void clear(bool = 1); - QVariant::Type type() const; + TQVariant::Type type() const; }; -class QSqlFieldInfo +class TQSqlFieldInfo { %TypeHeaderCode #include <qsqlfield.h> %End public: - QSqlFieldInfo(const QString & = QString::null, - QVariant::Type = QVariant::Invalid,int = -1,int = -1, - int = -1,const QVariant & = QVariant(),int = 0,bool = 1, + TQSqlFieldInfo(const TQString & = TQString::null, + TQVariant::Type = TQVariant::Invalid,int = -1,int = -1, + int = -1,const TQVariant & = TQVariant(),int = 0,bool = 1, bool = 0,bool = 0); - QSqlFieldInfo(const QSqlFieldInfo &); - QSqlFieldInfo(const QSqlField &,bool = 1); + TQSqlFieldInfo(const TQSqlFieldInfo &); + TQSqlFieldInfo(const TQSqlField &,bool = 1); - QSqlField toField() const; - int isRequired() const; - QVariant::Type type() const; + TQSqlField toField() const; + int isRetquired() const; + TQVariant::Type type() const; int length() const; int precision() const; - QVariant defaultValue() const; - QString name() const; + TQVariant defaultValue() const; + TQString name() const; int typeID() const; bool isGenerated() const; bool isTrim() const; diff --git a/sip/qtsql/qsqlform.sip b/sip/qtsql/qsqlform.sip index 84e05b7..8d00d1d 100644 --- a/sip/qtsql/qsqlform.sip +++ b/sip/qtsql/qsqlform.sip @@ -1,60 +1,60 @@ -// This is the SIP interface definition for QSqlForm. +// This is the SIP interface definition for TQSqlForm. // // 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>QSqlForm (Qt v3+)</Title> +<Sect2><Title>TQSqlForm (TQt v3+)</Title> <Para> -<Literal>QSqlForm</Literal> is fully implemented. +<Literal>TQSqlForm</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSqlForm : QObject +class TQSqlForm : TQObject { %TypeHeaderCode #include <qsqlform.h> %End public: - QSqlForm(QObject * /TransferThis/ = 0,const char * = 0); + TQSqlForm(TQObject * /TransferThis/ = 0,const char * = 0); - virtual void insert(QWidget *,const QString &); - virtual void remove(const QString &); + virtual void insert(TQWidget *,const TQString &); + virtual void remove(const TQString &); uint count() const; - QWidget *widget(uint) const; - QSqlField *widgetToField(QWidget *) const; - QWidget *fieldToWidget(QSqlField *) const; + TQWidget *widget(uint) const; + TQSqlField *widgetToField(TQWidget *) const; + TQWidget *fieldToWidget(TQSqlField *) const; - void installPropertyMap(QSqlPropertyMap * /Transfer/); + void installPropertyMap(TQSqlPropertyMap * /Transfer/); - virtual void setRecord(QSqlRecord *); + virtual void setRecord(TQSqlRecord *); public slots: - virtual void readField(QWidget *); - virtual void writeField(QWidget *); + virtual void readField(TQWidget *); + virtual void writeField(TQWidget *); virtual void readFields(); virtual void writeFields(); @@ -62,12 +62,12 @@ public slots: virtual void clearValues(bool = 0); protected: - virtual void insert(QWidget *,QSqlField *); - virtual void remove(QWidget *); + virtual void insert(TQWidget *,TQSqlField *); + virtual void remove(TQWidget *); private: -%If (Qt_3_1_0 -) - QSqlForm(const QSqlForm &); +%If (TQt_3_1_0 -) + TQSqlForm(const TQSqlForm &); %End }; diff --git a/sip/qtsql/qsqlindex.sip b/sip/qtsql/qsqlindex.sip index af88129..300fc2f 100644 --- a/sip/qtsql/qsqlindex.sip +++ b/sip/qtsql/qsqlindex.sip @@ -1,64 +1,64 @@ -// This is the SIP interface definition for QSqlIndex. +// This is the SIP interface definition for TQSqlIndex. // // 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>QSqlIndex (Qt v3+)</Title> +<Sect2><Title>TQSqlIndex (TQt v3+)</Title> <Para> -<Literal>QSqlIndex</Literal> is fully implemented. +<Literal>TQSqlIndex</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSqlIndex : QSqlRecord +class TQSqlIndex : TQSqlRecord { %TypeHeaderCode #include <qsqlindex.h> %End public: - QSqlIndex(const QString & = QString::null, - const QString & = QString::null); - QSqlIndex(const QSqlIndex &); + TQSqlIndex(const TQString & = TQString::null, + const TQString & = TQString::null); + TQSqlIndex(const TQSqlIndex &); - virtual void setCursorName(const QString &); - QString cursorName() const; - virtual void setName(const QString &); - QString name() const; + virtual void setCursorName(const TQString &); + TQString cursorName() const; + virtual void setName(const TQString &); + TQString name() const; - void append(const QSqlField &); - virtual void append(const QSqlField &,bool); + void append(const TQSqlField &); + virtual void append(const TQSqlField &,bool); bool isDescending(int) const; virtual void setDescending(int,bool); - QString toString(const QString & = QString::null,const QString & = ",", + TQString toString(const TQString & = TQString::null,const TQString & = ",", bool = 1) const; - QStringList toStringList(const QString & = QString::null, + TQStringList toStringList(const TQString & = TQString::null, bool = 1) const; - static QSqlIndex fromStringList(const QStringList &,const QSqlCursor *); + static TQSqlIndex fromStringList(const TQStringList &,const TQSqlCursor *); }; %End diff --git a/sip/qtsql/qsqlpropertymap.sip b/sip/qtsql/qsqlpropertymap.sip index c2f8ae8..169be86 100644 --- a/sip/qtsql/qsqlpropertymap.sip +++ b/sip/qtsql/qsqlpropertymap.sip @@ -1,63 +1,63 @@ -// This is the SIP interface definition for QSqlPropertyMap. +// This is the SIP interface definition for TQSqlPropertyMap. // // 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>QSqlPropertyMap (Qt v3+)</Title> +<Sect2><Title>TQSqlPropertyMap (TQt v3+)</Title> <Para> -<Literal>QSqlPropertyMap</Literal> is fully implemented. However, because PyQt +<Literal>TQSqlPropertyMap</Literal> is fully implemented. However, because PyTQt does not allow new properties to be defined, it is not possible to implement custom editor widgets in Python and add them to a property map. These will simply be ignored. </Para> <Para> -This problem may be addressed in a future release of PyQt. +This problem may be addressed in a future release of PyTQt. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSqlPropertyMap +class TQSqlPropertyMap { %TypeHeaderCode #include <qsqlpropertymap.h> %End public: - QSqlPropertyMap(); + TQSqlPropertyMap(); - QVariant property(QWidget *); - virtual void setProperty(QWidget *,const QVariant &); + TQVariant property(TQWidget *); + virtual void setProperty(TQWidget *,const TQVariant &); - void insert(const QString &,const QString &); - void remove(const QString &); + void insert(const TQString &,const TQString &); + void remove(const TQString &); - static QSqlPropertyMap *defaultMap(); - static void installDefaultMap(QSqlPropertyMap * /Transfer/); + static TQSqlPropertyMap *defaultMap(); + static void installDefaultMap(TQSqlPropertyMap * /Transfer/); private: - QSqlPropertyMap(const QSqlPropertyMap &); + TQSqlPropertyMap(const TQSqlPropertyMap &); }; %End diff --git a/sip/qtsql/qsqlquery.sip b/sip/qtsql/qsqlquery.sip index a7284f1..42ffb98 100644 --- a/sip/qtsql/qsqlquery.sip +++ b/sip/qtsql/qsqlquery.sip @@ -1,38 +1,38 @@ -// This is the SIP interface definition for QSqlQuery. +// This is the SIP interface definition for TQSqlQuery. // // 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>QSqlQuery (Qt v3+)</Title> +<Sect2><Title>TQSqlQuery (TQt v3+)</Title> <FuncSynopsis> - <FuncDef>QMap<QString,QVariant> <Function>boundValues</Function> const</FuncDef> + <FuncDef>TQMap<TQString,TQVariant> <Function>boundValues</Function> const</FuncDef> <ParamDef></ParamDef> </FuncSynopsis> <Para> -Not yet implemented. (Qt v3.2.0+) +Not yet implemented. (TQt v3.2.0+) </Para> <FuncSynopsis> <FuncDef>virtual bool <Function>exec</Function></FuncDef> - <ParamDef>const QString &<Parameter>query</Parameter></ParamDef> + <ParamDef>const TQString &<Parameter>query</Parameter></ParamDef> </FuncSynopsis> <Para> This has been renamed <Literal>execQuery</Literal> in Python. @@ -43,46 +43,46 @@ This has been renamed <Literal>execQuery</Literal> in Python. <ParamDef></ParamDef> </FuncSynopsis> <Para> -This has been renamed <Literal>execQuery</Literal> in Python. (Qt v3.1+) +This has been renamed <Literal>execQuery</Literal> in Python. (TQt v3.1+) </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSqlQuery +class TQSqlQuery { %TypeHeaderCode #include <qsqlquery.h> %End public: - QSqlQuery(QSqlResult *); - QSqlQuery(const QString & = QString::null,QSqlDatabase * = 0); -%If (Qt_3_2_0 -) - QSqlQuery(QSqlDatabase *); + TQSqlQuery(TQSqlResult *); + TQSqlQuery(const TQString & = TQString::null,TQSqlDatabase * = 0); +%If (TQt_3_2_0 -) + TQSqlQuery(TQSqlDatabase *); %End - QSqlQuery(const QSqlQuery &); + TQSqlQuery(const TQSqlQuery &); bool isValid() const; bool isActive() const; bool isNull(int) const; int at() const; - QString lastQuery() const; + TQString lastQuery() const; int numRowsAffected() const; - QSqlError lastError() const; + TQSqlError lastError() const; bool isSelect() const; int size() const; - const QSqlDriver *driver() const; - const QSqlResult *result() const; -%If (Qt_3_1_0 -) + const TQSqlDriver *driver() const; + const TQSqlResult *result() const; +%If (TQt_3_1_0 -) bool isForwardOnly() const; void setForwardOnly(bool); %End - virtual bool exec(const QString &) /PyName=execQuery, ReleaseGIL/; - virtual QVariant value(int) const; + virtual bool exec(const TQString &) /PyName=execQuery, ReleaseGIL/; + virtual TQVariant value(int) const; virtual bool seek(int,bool = 0) /ReleaseGIL/; virtual bool next() /ReleaseGIL/; @@ -90,21 +90,21 @@ public: virtual bool first() /ReleaseGIL/; virtual bool last() /ReleaseGIL/; -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) bool exec() /PyName=execQuery, ReleaseGIL/; - bool prepare(const QString &); - void bindValue(const QString &,const QVariant &); - void bindValue(int,const QVariant &); - void addBindValue(const QVariant &); + bool prepare(const TQString &); + void bindValue(const TQString &,const TQVariant &); + void bindValue(int,const TQVariant &); + void addBindValue(const TQVariant &); %End -%If (Qt_3_2_0 -) - void bindValue(const QString &,const QVariant &,QSql::ParameterType); - void bindValue(int,const QVariant &,QSql::ParameterType); - void addBindValue(const QVariant &,QSql::ParameterType); - QVariant boundValue(const QString &) const; - QVariant boundValue(int) const; -// QMap<QString,QVariant> boundValues() const; - QString executedQuery() const; +%If (TQt_3_2_0 -) + void bindValue(const TQString &,const TQVariant &,TQSql::ParameterType); + void bindValue(int,const TQVariant &,TQSql::ParameterType); + void addBindValue(const TQVariant &,TQSql::ParameterType); + TQVariant boundValue(const TQString &) const; + TQVariant boundValue(int) const; +// TQMap<TQString,TQVariant> boundValues() const; + TQString executedQuery() const; %End protected: diff --git a/sip/qtsql/qsqlrecord.sip b/sip/qtsql/qsqlrecord.sip index 5676bcc..0bffac2 100644 --- a/sip/qtsql/qsqlrecord.sip +++ b/sip/qtsql/qsqlrecord.sip @@ -1,100 +1,100 @@ -// This is the SIP interface definition for QSqlRecord and QSqlRecordInfo. +// This is the SIP interface definition for TQSqlRecord and TQSqlRecordInfo. // // 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>QSqlRecord (Qt v3+)</Title> +<Sect2><Title>TQSqlRecord (TQt v3+)</Title> <Para> -<Literal>QSqlRecord</Literal> is fully implemented. +<Literal>TQSqlRecord</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QSqlRecordInfo (Qt v3+)</Title> +<Sect2><Title>TQSqlRecordInfo (TQt v3+)</Title> <Para> -<Literal>QSqlRecordInfo</Literal> is implemented as a Python list of -<Literal>QSqlFieldInfo</Literal> instances. +<Literal>TQSqlRecordInfo</Literal> is implemented as a Python list of +<Literal>TQSqlFieldInfo</Literal> instances. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSqlRecord +class TQSqlRecord { %TypeHeaderCode #include <qsqlrecord.h> %End public: - QSqlRecord(); - QSqlRecord(const QSqlRecord &); + TQSqlRecord(); + TQSqlRecord(const TQSqlRecord &); - virtual QVariant value(int) const; - virtual QVariant value(const QString &) const; - virtual void setValue(int,const QVariant &); - virtual void setValue(const QString &,const QVariant &); + virtual TQVariant value(int) const; + virtual TQVariant value(const TQString &) const; + virtual void setValue(int,const TQVariant &); + virtual void setValue(const TQString &,const TQVariant &); bool isGenerated(int) const; - bool isGenerated(const QString &) const; - virtual void setGenerated(const QString &,bool); + bool isGenerated(const TQString &) const; + virtual void setGenerated(const TQString &,bool); virtual void setGenerated(int,bool); virtual void setNull(int); - virtual void setNull(const QString &); + virtual void setNull(const TQString &); bool isNull(int); - bool isNull(const QString &); -%If (Qt_3_1_0 -) + bool isNull(const TQString &); +%If (TQt_3_1_0 -) // bool isNull(int) const; -// bool isNull(const QString &) const; +// bool isNull(const TQString &) const; %End - int position(const QString &) const; - QString fieldName(int) const; - QSqlField *field(int); - QSqlField *field(const QString &); -// const QSqlField *field(int) const; -// const QSqlField *field(const QString &) const; + int position(const TQString &) const; + TQString fieldName(int) const; + TQSqlField *field(int); + TQSqlField *field(const TQString &); +// const TQSqlField *field(int) const; +// const TQSqlField *field(const TQString &) const; - virtual void append(const QSqlField &); - virtual void insert(int,const QSqlField &); + virtual void append(const TQSqlField &); + virtual void insert(int,const TQSqlField &); virtual void remove(int); bool isEmpty() const; - bool contains(const QString &) const; + bool contains(const TQString &) const; virtual void clear(); virtual void clearValues(bool = 0); uint count() const; - virtual QString toString(const QString & = QString::null, - const QString & = ",") const; - virtual QStringList toStringList(const QString & = QString::null) const; + virtual TQString toString(const TQString & = TQString::null, + const TQString & = ",") const; + virtual TQStringList toStringList(const TQString & = TQString::null) const; }; -%MappedType QSqlRecordInfo +%MappedType TQSqlRecordInfo { %TypeHeaderCode #include <qsqlrecord.h> %End %ConvertFromTypeCode - // Convert to a Python list of QSqlFieldInfo instances. + // Convert to a Python list of TQSqlFieldInfo instances. int i; PyObject *l; @@ -107,13 +107,13 @@ public: // Get it. i = 0; - QValueListConstIterator<QSqlFieldInfo> it; + TQValueListConstIterator<TQSqlFieldInfo> it; for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it) { PyObject *tmobj; - if ((tmobj = sipConvertFromNewInstance(new QSqlFieldInfo(*it),sipClass_QSqlFieldInfo,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0) + if ((tmobj = sipConvertFromNewInstance(new TQSqlFieldInfo(*it),sipClass_QSqlFieldInfo,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0) { Py_XDECREF(tmobj); Py_DECREF(l); @@ -129,7 +129,7 @@ public: %ConvertToTypeCode - // Convert a Python list of QSqlFieldInfo instances to a QSqlRecordInfo + // Convert a Python list of TQSqlFieldInfo instances to a TQSqlRecordInfo // on the heap. if (sipIsErr == NULL) @@ -144,14 +144,14 @@ public: return 1; } - QSqlRecordInfo *qri = new QSqlRecordInfo; + TQSqlRecordInfo *qri = new TQSqlRecordInfo; for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) { int iserr = 0, state; // We apply the transfer to the list itself, not the elements. - QSqlFieldInfo *itm = reinterpret_cast<QSqlFieldInfo *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QSqlFieldInfo,0,SIP_NOT_NONE,&state,&iserr)); + TQSqlFieldInfo *itm = reinterpret_cast<TQSqlFieldInfo *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QSqlFieldInfo,0,SIP_NOT_NONE,&state,&iserr)); if (iserr) { diff --git a/sip/qtsql/qsqlresult.sip b/sip/qtsql/qsqlresult.sip index f4fc7f6..39f5e0f 100644 --- a/sip/qtsql/qsqlresult.sip +++ b/sip/qtsql/qsqlresult.sip @@ -1,63 +1,63 @@ -// This is the SIP interface definition for QSqlResult. +// This is the SIP interface definition for TQSqlResult. // // 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>QSqlResult (Qt v3+)</Title> +<Sect2><Title>TQSqlResult (TQt v3+)</Title> <Para> -<Literal>QSqlResult</Literal> is fully implemented. +<Literal>TQSqlResult</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSqlResult +class TQSqlResult { %TypeHeaderCode #include <qsqlresult.h> %End protected: - QSqlResult(const QSqlDriver *); + TQSqlResult(const TQSqlDriver *); int at() const; - QString lastQuery() const; - QSqlError lastError() const; + TQString lastQuery() const; + TQSqlError lastError() const; bool isValid() const; bool isActive() const; bool isSelect() const; bool isForwardOnly() const; - const QSqlDriver *driver() const; + const TQSqlDriver *driver() const; virtual void setAt(int); virtual void setActive(bool); - virtual void setLastError(const QSqlError &); - virtual void setQuery(const QString &); + virtual void setLastError(const TQSqlError &); + virtual void setQuery(const TQString &); virtual void setSelect(bool); virtual void setForwardOnly(bool); - virtual QVariant data(int) = 0; + virtual TQVariant data(int) = 0; virtual bool isNull(int) = 0; - virtual bool reset(const QString &) = 0; + virtual bool reset(const TQString &) = 0; virtual bool fetch(int) = 0; virtual bool fetchNext(); virtual bool fetchPrev(); @@ -67,7 +67,7 @@ protected: virtual int numRowsAffected() = 0; private: - QSqlResult(const QSqlResult &); + TQSqlResult(const TQSqlResult &); }; %End diff --git a/sip/qtsql/qsqlselectcursor.sip b/sip/qtsql/qsqlselectcursor.sip index 289cc42..3a60e53 100644 --- a/sip/qtsql/qsqlselectcursor.sip +++ b/sip/qtsql/qsqlselectcursor.sip @@ -1,27 +1,27 @@ -// This is the SIP interface definition for QSqlSelectCursor. +// This is the SIP interface definition for TQSqlSelectCursor. // // 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>QSqlSelectCursor (Qt v3.2.0+)</Title> +<Sect2><Title>TQSqlSelectCursor (TQt v3.2.0+)</Title> <FuncSynopsis> <FuncDef>int <Function>del</Function></FuncDef> <ParamDef>bool <Parameter>invalidate</Parameter> = TRUE</ParamDef> @@ -32,7 +32,7 @@ This has been renamed <Literal>delRecords</Literal> in Python. <FuncSynopsis> <FuncDef>bool <Function>exec</Function></FuncDef> - <ParamDef>const QString &<Parameter>query</Parameter></ParamDef> + <ParamDef>const TQString &<Parameter>query</Parameter></ParamDef> </FuncSynopsis> <Para> This has been renamed <Literal>execQuery</Literal> in Python. @@ -41,52 +41,52 @@ This has been renamed <Literal>execQuery</Literal> in Python. %End -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) -class QSqlSelectCursor : QSqlCursor +class TQSqlSelectCursor : TQSqlCursor { %TypeHeaderCode #include <qsqlselectcursor.h> %End public: - QSqlSelectCursor(const QString & = QString::null,QSqlDatabase * = 0); - QSqlSelectCursor(const QSqlSelectCursor &); - ~QSqlSelectCursor(); + TQSqlSelectCursor(const TQString & = TQString::null,TQSqlDatabase * = 0); + TQSqlSelectCursor(const TQSqlSelectCursor &); + ~TQSqlSelectCursor(); - bool exec(const QString &) /PyName=execQuery, ReleaseGIL/; + bool exec(const TQString &) /PyName=execQuery, ReleaseGIL/; bool select() /ReleaseGIL/; protected: - QSqlIndex primaryIndex(bool = 1) const; - QSqlIndex index(const QStringList &) const; - QSqlIndex index(const QString &) const; -// QSqlIndex index(const char *) const; - void setPrimaryIndex(const QSqlIndex &); - void append(const QSqlFieldInfo &); - void insert(int,const QSqlFieldInfo &); + TQSqlIndex primaryIndex(bool = 1) const; + TQSqlIndex index(const TQStringList &) const; + TQSqlIndex index(const TQString &) const; +// TQSqlIndex index(const char *) const; + void setPrimaryIndex(const TQSqlIndex &); + void append(const TQSqlFieldInfo &); + void insert(int,const TQSqlFieldInfo &); void remove(int); void clear(); - void setGenerated(const QString &,bool); + void setGenerated(const TQString &,bool); void setGenerated(int,bool); - QSqlRecord *editBuffer(bool = 0); - QSqlRecord *primeInsert(); - QSqlRecord *primeUpdate(); - QSqlRecord *primeDelete(); + TQSqlRecord *editBuffer(bool = 0); + TQSqlRecord *primeInsert(); + TQSqlRecord *primeUpdate(); + TQSqlRecord *primeDelete(); int insert(bool = 1) /ReleaseGIL/; int update(bool = 1) /ReleaseGIL/; int del(bool = 1) /PyName=delRecords, ReleaseGIL/; void setMode(int); - void setSort(const QSqlIndex &); - QSqlIndex sort() const; - void setFilter(const QString &); - QString filter() const; - void setName(const QString &,bool = 1); - QString name() const; - QString toString(const QString & = QString::null, - const QString & = ",") const; - bool select(const QString &,const QSqlIndex & = QSqlIndex()) /ReleaseGIL/; + void setSort(const TQSqlIndex &); + TQSqlIndex sort() const; + void setFilter(const TQString &); + TQString filter() const; + void setName(const TQString &,bool = 1); + TQString name() const; + TQString toString(const TQString & = TQString::null, + const TQString & = ",") const; + bool select(const TQString &,const TQSqlIndex & = TQSqlIndex()) /ReleaseGIL/; }; %End diff --git a/sip/qtsql/qtsqlmod.sip b/sip/qtsql/qtsqlmod.sip index f780a9a..ffc6393 100644 --- a/sip/qtsql/qtsqlmod.sip +++ b/sip/qtsql/qtsqlmod.sip @@ -1,22 +1,22 @@ -// This is the SIP interface definition for the qtsql module of PyQt. +// This is the SIP interface definition for the qtsql module of PyTQt. // // 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. @@ -56,20 +56,20 @@ # 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. |