summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1374
-rw-r--r--LICENSE12
-rw-r--r--NEWS570
-rw-r--r--README22
-rw-r--r--README.AIX14
-rw-r--r--README.SunOS22
-rw-r--r--THANKS12
-rw-r--r--build.py170
-rw-r--r--configure.py314
-rw-r--r--doc/PyQt.html2116
-rw-r--r--doc/PyQt.sgml2202
-rw-r--r--doc/qtdocs.sip406
-rw-r--r--examples2/README4
-rwxr-xr-xexamples2/aclock.py26
-rwxr-xr-xexamples2/addressbook.py116
-rwxr-xr-xexamples2/application.py76
-rwxr-xr-xexamples2/buttongroups.py46
-rwxr-xr-xexamples2/dclock.py16
-rwxr-xr-xexamples2/desktop.py44
-rwxr-xr-xexamples2/dirview.py20
-rwxr-xr-xexamples2/dragdrop.py36
-rw-r--r--examples2/dropsite.py52
-rwxr-xr-xexamples2/gears.py12
-rwxr-xr-xexamples2/menu.py92
-rw-r--r--examples2/secret.py20
-rwxr-xr-xexamples2/semaphore.py66
-rwxr-xr-xexamples2/splitter.py26
-rwxr-xr-xexamples2/table.py16
-rwxr-xr-xexamples2/themes.py618
-rw-r--r--examples2/trolltech.bmpbin30054 -> 30055 bytes
-rw-r--r--examples2/trolltech.gifbin42629 -> 42634 bytes
-rw-r--r--examples2/tt-logo.pngbin4547 -> 4548 bytes
-rwxr-xr-xexamples2/tut1.py6
-rwxr-xr-xexamples2/tut10.py48
-rwxr-xr-xexamples2/tut11.py70
-rwxr-xr-xexamples2/tut12.py90
-rwxr-xr-xexamples2/tut13.py110
-rwxr-xr-xexamples2/tut14.py134
-rwxr-xr-xexamples2/tut2.py10
-rwxr-xr-xexamples2/tut3.py12
-rwxr-xr-xexamples2/tut4.py12
-rwxr-xr-xexamples2/tut5.py16
-rwxr-xr-xexamples2/tut6.py22
-rwxr-xr-xexamples2/tut7.py22
-rwxr-xr-xexamples2/tut8.py34
-rwxr-xr-xexamples2/tut9.py44
-rwxr-xr-xexamples2/widgets.py248
-rw-r--r--examples3/README4
-rw-r--r--examples3/SQL/README28
-rw-r--r--examples3/SQL/connect.ui34
-rw-r--r--examples3/SQL/connect.ui.h6
-rwxr-xr-xexamples3/SQL/dbconnect.py20
-rw-r--r--examples3/SQL/dbpar.py4
-rw-r--r--examples3/SQL/form1.ui4
-rw-r--r--examples3/SQL/form2.ui56
-rw-r--r--examples3/SQL/frmconnect.py58
-rw-r--r--examples3/SQL/frmconnect.ui28
-rwxr-xr-xexamples3/SQL/runform1.py4
-rwxr-xr-xexamples3/SQL/runform2.py4
-rwxr-xr-xexamples3/SQL/runsqlex.py46
-rwxr-xr-xexamples3/SQL/sqlcustom1.py34
-rw-r--r--examples3/SQL/sqlex.ui40
-rw-r--r--examples3/SQL/sqlex.ui.h8
-rwxr-xr-xexamples3/SQL/sqlsubclass5.py68
-rwxr-xr-xexamples3/SQL/sqltable4.py50
-rw-r--r--examples3/SQL/testdb_pg.sql24
-rwxr-xr-xexamples3/aclock.py26
-rwxr-xr-xexamples3/addressbook.py116
-rwxr-xr-xexamples3/application.py76
-rwxr-xr-xexamples3/biff.py18
-rwxr-xr-xexamples3/bigtable.py8
-rwxr-xr-xexamples3/buttongroups.py52
-rw-r--r--examples3/canvas/butterfly.pngbin37900 -> 37905 bytes
-rwxr-xr-xexamples3/canvas/canvas.py262
-rw-r--r--examples3/canvas/qtlogo.pngbin22673 -> 22675 bytes
-rwxr-xr-xexamples3/checklists.py48
-rwxr-xr-xexamples3/cursor.py32
-rwxr-xr-xexamples3/dclock.py16
-rwxr-xr-xexamples3/desktop.py48
-rwxr-xr-xexamples3/dirview.py128
-rwxr-xr-xexamples3/dragdrop.py36
-rwxr-xr-xexamples3/drawlines.py20
-rw-r--r--examples3/dropsite.py52
-rwxr-xr-xexamples3/fontdisplayer.py76
-rwxr-xr-xexamples3/fonts.py64
-rwxr-xr-xexamples3/gears.py12
-rwxr-xr-xexamples3/i18n/i18n.py34
-rw-r--r--examples3/i18n/mywidget.py24
-rw-r--r--examples3/i18n/mywidget_cs.ts4
-rw-r--r--examples3/i18n/mywidget_de.ts2
-rw-r--r--examples3/i18n/mywidget_el.ts2
-rw-r--r--examples3/i18n/mywidget_en.ts2
-rw-r--r--examples3/i18n/mywidget_eo.ts2
-rw-r--r--examples3/i18n/mywidget_fr.ts2
-rw-r--r--examples3/i18n/mywidget_it.ts2
-rw-r--r--examples3/i18n/mywidget_jp.ts2
-rw-r--r--examples3/i18n/mywidget_ko.ts2
-rw-r--r--examples3/i18n/mywidget_no.ts2
-rw-r--r--examples3/i18n/mywidget_ru.ts2
-rw-r--r--examples3/i18n/mywidget_zh.ts2
-rwxr-xr-xexamples3/lineedits.py60
-rwxr-xr-xexamples3/listbox.py64
-rwxr-xr-xexamples3/listboxcombo.py84
-rw-r--r--examples3/marble.pngbin26015 -> 26018 bytes
-rwxr-xr-xexamples3/mdi.py122
-rwxr-xr-xexamples3/menu.py102
-rwxr-xr-xexamples3/progress.py70
-rwxr-xr-xexamples3/progressbar.py34
-rwxr-xr-xexamples3/qdir.py90
-rwxr-xr-xexamples3/qmag.py50
-rw-r--r--examples3/qtlogo.pngbin12811 -> 12812 bytes
-rwxr-xr-xexamples3/rangecontrols.py52
-rwxr-xr-xexamples3/richtext.py24
-rw-r--r--examples3/secret.py20
-rwxr-xr-xexamples3/semaphore.py66
-rwxr-xr-xexamples3/smalltable.py16
-rwxr-xr-xexamples3/splitter.py26
-rwxr-xr-xexamples3/tabdialog.py82
-rwxr-xr-xexamples3/tablestatistics.py48
-rwxr-xr-xexamples3/tooltip.py36
-rw-r--r--examples3/trolltech.bmpbin30054 -> 30055 bytes
-rw-r--r--examples3/trolltech.gifbin42629 -> 42634 bytes
-rw-r--r--examples3/tt-logo.pngbin4547 -> 4548 bytes
-rwxr-xr-xexamples3/tut1.py6
-rwxr-xr-xexamples3/tut10.py48
-rwxr-xr-xexamples3/tut11.py70
-rwxr-xr-xexamples3/tut12.py90
-rwxr-xr-xexamples3/tut13.py110
-rwxr-xr-xexamples3/tut14.py134
-rwxr-xr-xexamples3/tut2.py10
-rwxr-xr-xexamples3/tut3.py12
-rwxr-xr-xexamples3/tut4.py12
-rwxr-xr-xexamples3/tut5.py16
-rwxr-xr-xexamples3/tut6.py22
-rwxr-xr-xexamples3/tut7.py22
-rwxr-xr-xexamples3/tut8.py34
-rwxr-xr-xexamples3/tut9.py44
-rw-r--r--examples3/webbrowser/mainwindow.py342
-rw-r--r--examples3/webbrowser/mainwindow.ui42
-rw-r--r--examples3/webbrowser/webbrowser.py24
-rwxr-xr-xexamples3/widgets.py240
-rw-r--r--pylupdate3/LICENSE.GPL12
-rw-r--r--pylupdate3/fetchtr.cpp40
-rw-r--r--pylupdate3/main.cpp34
-rw-r--r--pylupdate3/merge.cpp8
-rw-r--r--pylupdate3/metatranslator.cpp192
-rw-r--r--pylupdate3/metatranslator.h28
-rw-r--r--pylupdate3/numberh.cpp32
-rw-r--r--pylupdate3/proparser.cpp44
-rw-r--r--pylupdate3/proparser.h4
-rw-r--r--pylupdate3/pylupdate-prof.sbf10
-rw-r--r--pylupdate3/pylupdate.pro.in2
-rw-r--r--pylupdate3/pylupdate.sbf10
-rw-r--r--pylupdate3/sametexth.cpp10
-rw-r--r--pyqtconfig.py.in54
-rw-r--r--pyuic2/COPYING12
-rw-r--r--pyuic2/domtool.cpp102
-rw-r--r--pyuic2/domtool.h18
-rw-r--r--pyuic2/globaldefs.h8
-rw-r--r--pyuic2/pyuic.pro.in2
-rw-r--r--pyuic2/pyuic.sbf10
-rw-r--r--pyuic2/uic.cpp538
-rw-r--r--pyuic2/uic.h96
-rw-r--r--pyuic2/widgetdatabase.cpp138
-rw-r--r--pyuic2/widgetdatabase.h32
-rw-r--r--pyuic3/LICENSE.GPL12
-rw-r--r--pyuic3/domtool.cpp154
-rw-r--r--pyuic3/domtool.h30
-rw-r--r--pyuic3/embed.cpp66
-rw-r--r--pyuic3/form.cpp288
-rw-r--r--pyuic3/globaldefs.h22
-rw-r--r--pyuic3/main.cpp50
-rw-r--r--pyuic3/object.cpp274
-rw-r--r--pyuic3/parser.cpp26
-rw-r--r--pyuic3/parser.h4
-rw-r--r--pyuic3/pyuic-prof.sbf10
-rw-r--r--pyuic3/pyuic.pro.in2
-rw-r--r--pyuic3/pyuic.sbf10
-rw-r--r--pyuic3/subclassing.cpp52
-rw-r--r--pyuic3/uic.cpp496
-rw-r--r--pyuic3/uic.h184
-rw-r--r--pyuic3/widgetdatabase.cpp216
-rw-r--r--pyuic3/widgetdatabase.h46
-rw-r--r--pyuic3/widgetinterface.h4
-rw-r--r--sip/qt/copying.sip18
-rw-r--r--sip/qt/qaccel.sip64
-rw-r--r--sip/qt/qaction.sip184
-rw-r--r--sip/qt/qapplication.sip294
-rw-r--r--sip/qt/qarray.sip22
-rw-r--r--sip/qt/qassistantclient.sip30
-rw-r--r--sip/qt/qbitmap.sip46
-rw-r--r--sip/qt/qbrush.sip62
-rw-r--r--sip/qt/qbutton.sip114
-rw-r--r--sip/qt/qbuttongroup.sip62
-rw-r--r--sip/qt/qbytearray.sip62
-rw-r--r--sip/qt/qcdestyle.sip50
-rw-r--r--sip/qt/qcheckbox.sip58
-rw-r--r--sip/qt/qclipboard.sip92
-rw-r--r--sip/qt/qcolor.sip122
-rw-r--r--sip/qt/qcolordialog.sip54
-rw-r--r--sip/qt/qcolorgroup.sip88
-rw-r--r--sip/qt/qcombobox.sip222
-rw-r--r--sip/qt/qcommonstyle.sip120
-rw-r--r--sip/qt/qcstring.sip106
-rw-r--r--sip/qt/qcursor.sip100
-rw-r--r--sip/qt/qdatastream.sip158
-rw-r--r--sip/qt/qdatetime.sip214
-rw-r--r--sip/qt/qdatetimeedit.sip172
-rw-r--r--sip/qt/qdesktopwidget.sip54
-rw-r--r--sip/qt/qdial.sip56
-rw-r--r--sip/qt/qdialog.sip82
-rw-r--r--sip/qt/qdir.sip190
-rw-r--r--sip/qt/qdockarea.sip46
-rw-r--r--sip/qt/qdockwindow.sip70
-rw-r--r--sip/qt/qdragobject.sip270
-rw-r--r--sip/qt/qdrawutil.sip68
-rw-r--r--sip/qt/qdropsite.sip30
-rw-r--r--sip/qt/qerrormessage.sip28
-rw-r--r--sip/qt/qevent.sip552
-rw-r--r--sip/qt/qeventloop.sip34
-rw-r--r--sip/qt/qfile.sip100
-rw-r--r--sip/qt/qfiledialog.sip310
-rw-r--r--sip/qt/qfileinfo.sip110
-rw-r--r--sip/qt/qfont.sip166
-rw-r--r--sip/qt/qfontdatabase.sip138
-rw-r--r--sip/qt/qfontdialog.sip66
-rw-r--r--sip/qt/qfontinfo.sip40
-rw-r--r--sip/qt/qfontmetrics.sip74
-rw-r--r--sip/qt/qframe.sip100
-rw-r--r--sip/qt/qglobal.sip20
-rw-r--r--sip/qt/qgmanager.sip58
-rw-r--r--sip/qt/qgrid.sip38
-rw-r--r--sip/qt/qgridview.sip34
-rw-r--r--sip/qt/qgroupbox.sip84
-rw-r--r--sip/qt/qhbox.sip48
-rw-r--r--sip/qt/qhbuttongroup.sip24
-rw-r--r--sip/qt/qheader.sip160
-rw-r--r--sip/qt/qhgroupbox.sip24
-rw-r--r--sip/qt/qiconset.sip102
-rw-r--r--sip/qt/qiconview.sip404
-rw-r--r--sip/qt/qimage.sip318
-rw-r--r--sip/qt/qinputdialog.sip134
-rw-r--r--sip/qt/qinterlacestyle.sip92
-rw-r--r--sip/qt/qiodevice.sip60
-rw-r--r--sip/qt/qkeycode.sip12
-rw-r--r--sip/qt/qkeysequence.sip50
-rw-r--r--sip/qt/qlabel.sip128
-rw-r--r--sip/qt/qlayout.sip424
-rw-r--r--sip/qt/qlcdnumber.sip60
-rw-r--r--sip/qt/qlibrary.sip26
-rw-r--r--sip/qt/qlineedit.sip282
-rw-r--r--sip/qt/qlist.sip20
-rw-r--r--sip/qt/qlistbox.sip406
-rw-r--r--sip/qt/qlistview.sip590
-rw-r--r--sip/qt/qlocale.sip76
-rw-r--r--sip/qt/qmainwindow.sip222
-rw-r--r--sip/qt/qmemarray.sip28
-rw-r--r--sip/qt/qmenubar.sip78
-rw-r--r--sip/qt/qmenudata.sip216
-rw-r--r--sip/qt/qmessagebox.sip156
-rw-r--r--sip/qt/qmetaobject.sip86
-rw-r--r--sip/qt/qmime.sip78
-rw-r--r--sip/qt/qmotifplusstyle.sip138
-rw-r--r--sip/qt/qmotifstyle.sip158
-rw-r--r--sip/qt/qmovie.sip62
-rw-r--r--sip/qt/qmultilinedit.sip192
-rw-r--r--sip/qt/qmutex.sip46
-rw-r--r--sip/qt/qnamespace.sip208
-rw-r--r--sip/qt/qnetworkprotocol.sip136
-rw-r--r--sip/qt/qobject.sip438
-rw-r--r--sip/qt/qobjectcleanuphandler.sip24
-rw-r--r--sip/qt/qobjectlist.sip30
-rw-r--r--sip/qt/qpaintdevice.sip94
-rw-r--r--sip/qt/qpaintdevicemetrics.sip22
-rw-r--r--sip/qt/qpainter.sip440
-rw-r--r--sip/qt/qpair.sip22
-rw-r--r--sip/qt/qpalette.sip82
-rw-r--r--sip/qt/qpen.sip56
-rw-r--r--sip/qt/qpicture.sip68
-rw-r--r--sip/qt/qpixmap.sip176
-rw-r--r--sip/qt/qpixmapcache.sip30
-rw-r--r--sip/qt/qplatinumstyle.sip140
-rw-r--r--sip/qt/qpoint.sip60
-rw-r--r--sip/qt/qpointarray.sip100
-rw-r--r--sip/qt/qpopupmenu.sip168
-rw-r--r--sip/qt/qprintdialog.sip40
-rw-r--r--sip/qt/qprinter.sip112
-rw-r--r--sip/qt/qprocess.sip56
-rw-r--r--sip/qt/qprogressbar.sip56
-rw-r--r--sip/qt/qprogressdialog.sip110
-rw-r--r--sip/qt/qptrlist.sip20
-rw-r--r--sip/qt/qpushbutton.sip100
-rw-r--r--sip/qt/qradiobutton.sip60
-rw-r--r--sip/qt/qrangecontrol.sip28
-rw-r--r--sip/qt/qrect.sip118
-rw-r--r--sip/qt/qregexp.sip88
-rw-r--r--sip/qt/qregion.sip84
-rw-r--r--sip/qt/qscrollbar.sip120
-rw-r--r--sip/qt/qscrollview.sip250
-rw-r--r--sip/qt/qsemaphore.sip46
-rw-r--r--sip/qt/qsemimodal.sip36
-rw-r--r--sip/qt/qsessionmanager.sip54
-rw-r--r--sip/qt/qsettings.sip104
-rw-r--r--sip/qt/qsgistyle.sip152
-rw-r--r--sip/qt/qsignalmapper.sip26
-rw-r--r--sip/qt/qsimplerichtext.sip74
-rw-r--r--sip/qt/qsize.sip64
-rw-r--r--sip/qt/qsizegrip.sip38
-rw-r--r--sip/qt/qsizepolicy.sip38
-rw-r--r--sip/qt/qslider.sip124
-rw-r--r--sip/qt/qsocketnotifier.sip26
-rw-r--r--sip/qt/qsound.sip34
-rw-r--r--sip/qt/qspinbox.sip166
-rw-r--r--sip/qt/qsplashscreen.sip36
-rw-r--r--sip/qt/qsplitter.sip108
-rw-r--r--sip/qt/qstatusbar.sip66
-rw-r--r--sip/qt/qstring.sip664
-rw-r--r--sip/qt/qstringlist.sip98
-rw-r--r--sip/qt/qstrlist.sip20
-rw-r--r--sip/qt/qstyle.sip446
-rw-r--r--sip/qt/qstylefactory.sip22
-rw-r--r--sip/qt/qstylesheet.sip112
-rw-r--r--sip/qt/qsyntaxhighlighter.sip32
-rw-r--r--sip/qt/qtabbar.sip184
-rw-r--r--sip/qt/qtabdialog.sip128
-rw-r--r--sip/qt/qtableview.sip58
-rw-r--r--sip/qt/qtabwidget.sip156
-rw-r--r--sip/qt/qtextbrowser.sip72
-rw-r--r--sip/qt/qtextcodec.sip112
-rw-r--r--sip/qt/qtextedit.sip226
-rw-r--r--sip/qt/qtextstream.sip108
-rw-r--r--sip/qt/qtextview.sip118
-rw-r--r--sip/qt/qthread.sip42
-rw-r--r--sip/qt/qtimer.sip24
-rw-r--r--sip/qt/qtmod.sip22
-rw-r--r--sip/qt/qtoolbar.sip108
-rw-r--r--sip/qt/qtoolbox.sip60
-rw-r--r--sip/qt/qtoolbutton.sip170
-rw-r--r--sip/qt/qtooltip.sip134
-rw-r--r--sip/qt/qtranslator.sip120
-rw-r--r--sip/qt/qurl.sip92
-rw-r--r--sip/qt/qurlinfo.sip62
-rw-r--r--sip/qt/qurloperator.sip96
-rw-r--r--sip/qt/quuid.sip52
-rw-r--r--sip/qt/qvalidator.sip130
-rw-r--r--sip/qt/qvaluelist.sip30
-rw-r--r--sip/qt/qvariant.sip316
-rw-r--r--sip/qt/qvbox.sip30
-rw-r--r--sip/qt/qvbuttongroup.sip24
-rw-r--r--sip/qt/qvgroupbox.sip24
-rw-r--r--sip/qt/qwaitcondition.sip36
-rw-r--r--sip/qt/qwhatsthis.sip76
-rw-r--r--sip/qt/qwidget.sip442
-rw-r--r--sip/qt/qwidgetlist.sip28
-rw-r--r--sip/qt/qwidgetstack.sip70
-rw-r--r--sip/qt/qwindow.sip22
-rw-r--r--sip/qt/qwindowdefs.sip36
-rw-r--r--sip/qt/qwindowdefs_qws.sip10
-rw-r--r--sip/qt/qwindowdefs_x11.sip16
-rw-r--r--sip/qt/qwindowsstyle.sip176
-rw-r--r--sip/qt/qwindowsxpstyle.sip14
-rw-r--r--sip/qt/qwizard.sip100
-rw-r--r--sip/qt/qwmatrix.sip96
-rw-r--r--sip/qt/qworkspace.sip68
-rw-r--r--sip/qt/versions.sip118
-rw-r--r--sip/qtaxcontainer/copying.sip18
-rw-r--r--sip/qtaxcontainer/qaxbase.sip22
-rw-r--r--sip/qtaxcontainer/qaxobject.sip16
-rw-r--r--sip/qtaxcontainer/qaxwidget.sip16
-rw-r--r--sip/qtaxcontainer/qtaxcontainermod.sip10
-rw-r--r--sip/qtcanvas/copying.sip18
-rw-r--r--sip/qtcanvas/qcanvas.sip462
-rw-r--r--sip/qtcanvas/qtcanvasmod.sip18
-rw-r--r--sip/qtext/copying.sip18
-rw-r--r--sip/qtext/qextscintilla.sip164
-rw-r--r--sip/qtext/qextscintillaapis.sip12
-rw-r--r--sip/qtext/qextscintillabase.sip122
-rw-r--r--sip/qtext/qextscintillacommand.sip10
-rw-r--r--sip/qtext/qextscintillacommandset.sip22
-rw-r--r--sip/qtext/qextscintilladocument.sip10
-rw-r--r--sip/qtext/qextscintillalexer.sip56
-rw-r--r--sip/qtext/qextscintillalexerbash.sip24
-rw-r--r--sip/qtext/qextscintillalexerbatch.sip20
-rw-r--r--sip/qtext/qextscintillalexercpp.sip30
-rw-r--r--sip/qtext/qextscintillalexercsharp.sip18
-rw-r--r--sip/qtext/qextscintillalexercss.sip22
-rw-r--r--sip/qtext/qextscintillalexerdiff.sip16
-rw-r--r--sip/qtext/qextscintillalexerhtml.sip24
-rw-r--r--sip/qtext/qextscintillalexeridl.sip14
-rw-r--r--sip/qtext/qextscintillalexerjava.sip10
-rw-r--r--sip/qtext/qextscintillalexerjavascript.sip18
-rw-r--r--sip/qtext/qextscintillalexerlua.sip24
-rw-r--r--sip/qtext/qextscintillalexermakefile.sip20
-rw-r--r--sip/qtext/qextscintillalexerperl.sip26
-rw-r--r--sip/qtext/qextscintillalexerpov.sip24
-rw-r--r--sip/qtext/qextscintillalexerproperties.sip24
-rw-r--r--sip/qtext/qextscintillalexerpython.sip26
-rw-r--r--sip/qtext/qextscintillalexerruby.sip34
-rw-r--r--sip/qtext/qextscintillalexersql.sip40
-rw-r--r--sip/qtext/qextscintillalexertex.sip16
-rw-r--r--sip/qtext/qextscintillamacro.sip16
-rw-r--r--sip/qtext/qextscintillaprinter.sip14
-rw-r--r--sip/qtext/qtextmod.sip32
-rw-r--r--sip/qtgl/copying.sip18
-rw-r--r--sip/qtgl/qgl.sip152
-rw-r--r--sip/qtgl/qglcolormap.sip36
-rw-r--r--sip/qtgl/qtglmod.sip18
-rw-r--r--sip/qtnetwork/copying.sip18
-rw-r--r--sip/qtnetwork/qdns.sip84
-rw-r--r--sip/qtnetwork/qftp.sip90
-rw-r--r--sip/qtnetwork/qhostaddress.sip42
-rw-r--r--sip/qtnetwork/qhttp.sip156
-rw-r--r--sip/qtnetwork/qlocalfs.sip34
-rw-r--r--sip/qtnetwork/qnetwork.sip12
-rw-r--r--sip/qtnetwork/qserversocket.sip40
-rw-r--r--sip/qtnetwork/qsocket.sip66
-rw-r--r--sip/qtnetwork/qsocketdevice.sip58
-rw-r--r--sip/qtnetwork/qtnetworkmod.sip18
-rw-r--r--sip/qtpe/copying.sip18
-rw-r--r--sip/qtpe/qpeapplication.sip56
-rw-r--r--sip/qtpe/qpeapplnk.sip84
-rw-r--r--sip/qtpe/qpeconfig.sip54
-rw-r--r--sip/qtpe/qpefilemanager.sip22
-rw-r--r--sip/qtpe/qpefileselector.sip20
-rw-r--r--sip/qtpe/qpefontdatabase.sip20
-rw-r--r--sip/qtpe/qpeglobal.sip46
-rw-r--r--sip/qtpe/qpemenubar.sip16
-rw-r--r--sip/qtpe/qpemenubutton.sip28
-rw-r--r--sip/qtpe/qpeqcopenvelope.sip14
-rw-r--r--sip/qtpe/qpeqdawg.sip36
-rw-r--r--sip/qtpe/qperesource.sip22
-rw-r--r--sip/qtpe/qpetimestring.sip28
-rw-r--r--sip/qtpe/qpetoolbar.sip16
-rw-r--r--sip/qtpe/qtpemod.sip24
-rw-r--r--sip/qtsql/copying.sip18
-rw-r--r--sip/qtsql/qdatabrowser.sip64
-rw-r--r--sip/qtsql/qdatatable.sip148
-rw-r--r--sip/qtsql/qdataview.sip34
-rw-r--r--sip/qtsql/qeditorfactory.sip32
-rw-r--r--sip/qtsql/qsql.sip24
-rw-r--r--sip/qtsql/qsqlcursor.sip124
-rw-r--r--sip/qtsql/qsqldatabase.sip112
-rw-r--r--sip/qtsql/qsqldriver.sip58
-rw-r--r--sip/qtsql/qsqleditorfactory.sip36
-rw-r--r--sip/qtsql/qsqlerror.sip38
-rw-r--r--sip/qtsql/qsqlfield.sip60
-rw-r--r--sip/qtsql/qsqlform.sip46
-rw-r--r--sip/qtsql/qsqlindex.sip42
-rw-r--r--sip/qtsql/qsqlpropertymap.sip36
-rw-r--r--sip/qtsql/qsqlquery.sip74
-rw-r--r--sip/qtsql/qsqlrecord.sip86
-rw-r--r--sip/qtsql/qsqlresult.sip36
-rw-r--r--sip/qtsql/qsqlselectcursor.sip68
-rw-r--r--sip/qtsql/qtsqlmod.sip18
-rw-r--r--sip/qttable/copying.sip18
-rw-r--r--sip/qttable/qtable.sip304
-rw-r--r--sip/qttable/qttablemod.sip18
-rw-r--r--sip/qtui/copying.sip18
-rw-r--r--sip/qtui/qtuimod.sip18
-rw-r--r--sip/qtui/qwidgetfactory.sip42
-rw-r--r--sip/qtxml/copying.sip18
-rw-r--r--sip/qtxml/qdom.sip642
-rw-r--r--sip/qtxml/qtxmlmod.sip20
463 files changed, 21121 insertions, 21121 deletions
diff --git a/ChangeLog b/ChangeLog
index 8233782..969ec89 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,7 +3,7 @@ Released as v3.18.1.
2009/06/10 14:35:18 phil
-Fixed the handwritten code for all QDomDocument.setContent() overloads which
+Fixed the handwritten code for all TQDomDocument.setContent() overloads which
was using deprecated (and now removed) sipBuildResult() format characters.
@@ -29,7 +29,7 @@ error message.
2009/03/04 12:20:03 phil
-Fixed a regression in emitting Python signals to Qt signals.
+Fixed a regression in emitting Python signals to TQt signals.
2009/02/25 21:42:47 phil
@@ -49,20 +49,20 @@ Safety checking of latest signal/slot refactoring.
2009/02/13 19:27:31 phil
-Safety commit of the PyQt3-specific meta-type and super-type (just stubs at the
+Safety commit of the PyTQt3-specific meta-type and super-type (just stubs at the
moment).
2009/02/13 17:03:47 phil
-Use the %Plugin directive to enable PyQt3 signal support.
+Use the %Plugin directive to enable PyTQt3 signal support.
2009/02/02 10:54:57 phil
-More changes to the QObject.sender() support.
+More changes to the TQObject.sender() support.
2009/02/01 17:09:17 phil
-Updated the QObject::sender() support in response to sip changes.
+Updated the TQObject::sender() support in response to sip changes.
2009/01/29 18:22:48 phil
@@ -74,7 +74,7 @@ The type parsing now uses sipResolveTypedef().
2009/01/28 12:44:28 phil
-Added the type parsing support from the sip module as PyQt4 no longer uses it.
+Added the type parsing support from the sip module as PyTQt4 no longer uses it.
2009/01/18 17:56:59 phil
@@ -86,7 +86,7 @@ Replaced sipFreeConnection() with sipFreeSipslot().
2009/01/12 22:42:00 phil
-Changes required by recent changes to the Qt support API.
+Changes retquired by recent changes to the TQt support API.
2008/12/17 17:24:12 phil
@@ -106,7 +106,7 @@ Released as v3.17.6.
2008/11/13 17:04:33 phil
-Fixed a compilation bug in the QMemArray handwritten type convertor code that
+Fixed a compilation bug in the TQMemArray handwritten type convertor code that
affects MSVC .NET.
@@ -119,7 +119,7 @@ Updated the NEWS file.
2008/10/14 10:53:17 phil
-Added the /Constrained/ enum annotations required by the latest SIP.
+Added the /Constrained/ enum annotations retquired by the latest SIP.
2008/10/11 13:58:59 phil
@@ -127,11 +127,11 @@ Updated configure.py to eliminate deprecation messages from Python v2.6.
2008/07/25 22:12:44 phil
-Added support for QRegion.rects() from a patch by Hans-Peter Jansen.
+Added support for TQRegion.rects() from a patch by Hans-Peter Jansen.
2008/06/28 19:09:35 phil
-Added the missing QWidget.stackUnder() slot.
+Added the missing TQWidget.stackUnder() slot.
2007/12/06 14:27:50 phil
@@ -144,7 +144,7 @@ Released as v3.17.3.
2007/07/01 16:08:55 phil
-Acquire the GIL before freeing a signal/slot connection.
+Actquire the GIL before freeing a signal/slot connection.
2007/06/13 17:33:55 phil
@@ -153,7 +153,7 @@ and no longer generated.
2007/06/05 9:37:59 phil
-Fix for an overflow bug in QImage from Ulli.
+Fix for an overflow bug in TQImage from Ulli.
2007/05/14 15:00:02 phil
@@ -170,7 +170,7 @@ Released as v3.17.2.
2007/04/21 14:13:36 phil
Backed out the recent change to remove the /ReleaseGIL/ from
-QApplication.postEvent() as it turns out it avoids a potential deadlock.
+TQApplication.postEvent() as it turns out it avoids a potential deadlock.
2007/04/10 16:13:51 phil
@@ -179,28 +179,28 @@ Released as v3.17.1.
2007/04/02 15:27:03 phil
Updated the NEWS file.
-SIP v4.6 is now required.
-The QLayoutItem sub-class code no longer handles QLayout and leaves it to the
-QObject sub-class code to deal with.
+SIP v4.6 is now retquired.
+The TQLayoutItem sub-class code no longer handles TQLayout and leaves it to the
+TQObject sub-class code to deal with.
2007/02/20 10:58:40 phil
-Removed the unneeded /ReleaseGIL/ from QApplication::postEvent().
-Removed the GIL manipulation in QCustomEvent (in particular in the traverse
+Removed the unneeded /ReleaseGIL/ from TQApplication::postEvent().
+Removed the GIL manipulation in TQCustomEvent (in particular in the traverse
code).
2007/01/27 16:02:18 phil
-Removed knowledge of the optional parts of the Qt support API so that it is no
-longer necessary to update PyQt when new optional parts are added.
+Removed knowledge of the optional parts of the TQt support API so that it is no
+longer necessary to update PyTQt when new optional parts are added.
2007/01/27 15:37:47 phil
-Updated the Qt support API for the latest SIP.
+Updated the TQt support API for the latest SIP.
2007/01/21 16:29:15 phil
-Implemented sipQtFindConnection() so that lambda slots can be handled by the
+Implemented sipTQtFindConnection() so that lambda slots can be handled by the
cyclic garbage collector.
@@ -209,8 +209,8 @@ Updated the copyright notices.
2006/11/30 20:58:48 phil
-Fixed bug in QApplication ctor handwritten code that caused a crash if a
-QApplication was created a second time with no arguments.
+Fixed bug in TQApplication ctor handwritten code that caused a crash if a
+TQApplication was created a second time with no arguments.
2006/11/04 22:08:33 phil
@@ -222,11 +222,11 @@ Updated the news file.
2006/10/21 14:10:23 phil
-Switched the internal build system to Qt v3.3.7.
+Switched the internal build system to TQt v3.3.7.
2006/10/06 17:44:27 phil
-Synched with the latest QScintilla1 API.
+Synched with the latest TQScintilla1 API.
2006/09/09 17:59:52 phil
@@ -240,11 +240,11 @@ as it causes problems for GCC v4.
2006/08/17 9:36:39 phil
-Added the missing QListView.setSelectionAnchor().
+Added the missing TQListView.setSelectionAnchor().
2006/07/30 17:16:35 phil
-Updated for the latest QScintilla v1 snapshot.
+Updated for the latest TQScintilla v1 snapshot.
2006/07/19 23:30:28 phil
@@ -261,7 +261,7 @@ Added QextScintilla.isCallTipActive().
2006/07/03 19:40:22 phil
Added pyqt_config_args to pyqtconfig.py.
-Fixed QTextEdit.setAutoFormatting().
+Fixed TQTextEdit.setAutoFormatting().
2006/07/02 14:28:05 phil
@@ -300,11 +300,11 @@ Python.
2006/06/20 15:57:55 phil
-Latest QScintilla updates.
+Latest TQScintilla updates.
2006/06/19 21:00:47 phil
-Synced with the latest QScintilla snapshot - including the significantly
+Synced with the latest TQScintilla snapshot - including the significantly
changed Ruby lexer.
@@ -313,20 +313,20 @@ Solaris warnings fixes from Ulli.
2006/06/18 23:51:34 phil
-Sync with the latest QScintilla changes: highlighted identifiers and decorators
+Sync with the latest TQScintilla changes: highlighted identifiers and decorators
in the Python lexer.
2006/06/18 16:40:31 phil
-Updated for the latest QScintilla snapshot.
+Updated for the latest TQScintilla snapshot.
2006/05/17 8:39:39 phil
-Removed some inaccessable methods from QCString.
+Removed some inaccessable methods from TQCString.
2006/05/11 19:04:27 phil
-Another fix for Qt v3.1 in qnamespace.sip.
+Another fix for TQt v3.1 in qnamespace.sip.
2006/04/28 20:47:46 phil
@@ -338,7 +338,7 @@ Tidy ups to the internal build system.
2006/04/06 12:26:09 phil
-Fixed Qt::MacintoshVersion for Qt v3.0.x and v3.1.x.
+Fixed TQt::MacintoshVersion for TQt v3.0.x and v3.1.x.
2006/04/05 12:11:43 phil
@@ -347,11 +347,11 @@ signature (ie. both of them).
2006/03/30 8:09:58 phil
-Added QStringList::operator+=(const QString &).
+Added TQStringList::operator+=(const TQString &).
2006/03/29 11:38:21 phil
-Added the missing QImage.bitBlt() function.
+Added the missing TQImage.bitBlt() function.
2006/03/24 23:54:13 phil
@@ -359,7 +359,7 @@ Released as v3.16.
2006/03/23 21:34:09 phil
-Added a missing /Transfer/ from QGLWidget().
+Added a missing /Transfer/ from TQGLWidget().
2006/03/20 21:00:58 phil
@@ -367,7 +367,7 @@ Removed the "Filter" functions from the documentation.
2006/03/20 20:59:23 phil
-Removed the "Filter" versions of the QFileDialog static methods as they aren't
+Removed the "Filter" versions of the TQFileDialog static methods as they aren't
necessary after all (just not obvious how to use them properly).
@@ -376,33 +376,33 @@ pyuic now specifies the Latin1 encoding when the -embed flag is used.
2006/03/13 11:55:09 phil
-Build system changes so that PyQt builds on MacOS properly.
+Build system changes so that PyTQt builds on MacOS properly.
2006/03/11 19:16:56 phil
-Removed some leftovers from when PyQt3 and 4 shared a single config.py. PyQt3
-no longer searches PATH for the Qt bin directory.
+Removed some leftovers from when PyTQt3 and 4 shared a single config.py. PyTQt3
+no longer searches PATH for the TQt bin directory.
2006/03/11 15:15:15 phil
-Fixed build problem with Qt v1.x.
+Fixed build problem with TQt v1.x.
2006/03/10 22:37:30 phil
-Updates for Qt v3.3.6.
+Updates for TQt v3.3.6.
2006/03/04 16:06:40 phil
Documentation updates.
-Applied the same transfer rule to QPopupMenu.exec() as is applied to
-QDialog.exec().
+Applied the same transfer rule to TQPopupMenu.exec() as is applied to
+TQDialog.exec().
Added getOpenFileNameFilter(), getSaveFileNameFilter() and
-getOpenFileNamesFilter() to QFileDialog that return a tuple of the selected
+getOpenFileNamesFilter() to TQFileDialog that return a tuple of the selected
files and the current filter.
2006/02/26 13:56:28 phil
-Added support for signed char to the Qt API.
+Added support for signed char to the TQt API.
2006/02/21 15:22:08 phil
@@ -411,11 +411,11 @@ implemented as long objects rather than integer objects.
2006/02/19 16:43:48 phil
-Updates to the internal Qt API.
+Updates to the internal TQt API.
2006/02/18 21:05:56 phil
-Added new stubs in the Qt support API (not used by PyQt3).
+Added new stubs in the TQt support API (not used by PyTQt3).
2006/02/14 19:16:05 phil
@@ -436,7 +436,7 @@ Removed all uses of newly deprecated calls.
2006/01/26 16:40:38 phil
-Changed the signal/slot support required by the latest SIP changes.
+Changed the signal/slot support retquired by the latest SIP changes.
2006/01/16 18:58:26 phil
@@ -460,11 +460,11 @@ Updated all handwritten convertor code for the latest SIP changes.
2005/12/24 17:02:31 phil
-Changes required by the introduction of sipSelfWasArg in the SIP snapshot.
+Changes retquired by the introduction of sipSelfWasArg in the SIP snapshot.
2005/12/22 16:22:48 phil
-Really fixed the QApplication argc bug this time.
+Really fixed the TQApplication argc bug this time.
2005/12/19 17:43:42 phil
@@ -472,7 +472,7 @@ Changes to the build system for the latest SIP snapshot.
2005/12/18 11:00:06 phil
-Stripped the Qt4 specific stuff from configure.py.
+Stripped the TQt4 specific stuff from configure.py.
2005/12/18 10:06:25 phil
@@ -485,24 +485,24 @@ Changes to the internal build system for the CVS to SVN transfer.
2005/12/07 00:54:04 phil
-Added a missing #include from qstring.sip in PyQt3.
+Added a missing #include from qstring.sip in PyTQt3.
2005/12/04 18:41:31 phil
-Fixed the handling of horizontal and vertical stretch in QSizePolicy.
+Fixed the handling of horizontal and vertical stretch in TQSizePolicy.
2005/11/29 13:06:37 phil
-Fixed a long standing bug with QApplication ctors that only showed itself with
-Qt4.
+Fixed a long standing bug with TQApplication ctors that only showed itself with
+TQt4.
2005/11/24 17:45:09 phil
-Added the missing /ReleaseGIL/ to QThread.exit().
+Added the missing /ReleaseGIL/ to TQThread.exit().
2005/11/24 17:22:31 phil
-Changes required for the modified mapped type template syntax.
+Changes retquired for the modified mapped type template syntax.
2005/11/20 18:41:02 phil
@@ -511,16 +511,16 @@ auto-generated.
2005/11/17 18:24:48 phil
-Fixed bug in pyuic related to QKeySequence.
+Fixed bug in pyuic related to TQKeySequence.
2005/11/12 10:29:13 phil
-Added the missing ctor to QApplication.
+Added the missing ctor to TQApplication.
2005/11/10 21:10:46 phil
-Removed the /TransferThis/ annotations from the QTableItem (and sub-classes)
-ctors. The Qt documentation is wrong.
+Removed the /TransferThis/ annotations from the TQTableItem (and sub-classes)
+ctors. The TQt documentation is wrong.
2005/11/09 18:00:47 phil
@@ -528,52 +528,52 @@ Fixed the GIL bug in qInstallMsgHandler().
2005/11/01 22:08:32 phil
-Implemented the PyQt3 changes for the new Qt support API.
+Implemented the PyTQt3 changes for the new TQt support API.
2005/10/26 14:34:57 phil
-Modified the QString buffer interface to be reentrant and to try and use the
+Modified the TQString buffer interface to be reentrant and to try and use the
default Python codec.
2005/10/23 16:02:47 phil
-QObject.sender() now supports Python signals.
+TQObject.sender() now supports Python signals.
2005/10/22 22:38:54 phil
-Implemented the buffer interface for QString.
+Implemented the buffer interface for TQString.
2005/10/19 13:38:24 phil
-Improved the fix to QClipboard.setData().
+Improved the fix to TQClipboard.setData().
2005/10/16 16:09:29 phil
-Used mapped type templates in PyQt3 where possible.
+Used mapped type templates in PyTQt3 where possible.
2005/10/13 18:52:02 phil
-Fixed the handling of QClipboard.setMimeType() and a related memory leak.
+Fixed the handling of TQClipboard.setMimeType() and a related memory leak.
2005/10/12 21:11:15 phil
-Fixed bug in configure.py when the Qt bin directory isn't on the path.
-Fixed compilation problem with QAxBase handwritten code and MinGW.
-Added the * and *= operators to QString.
-Removed some QString methods that were passing or returning arrays.
+Fixed bug in configure.py when the TQt bin directory isn't on the path.
+Fixed compilation problem with TQAxBase handwritten code and MinGW.
+Added the * and *= operators to TQString.
+Removed some TQString methods that were passing or returning arrays.
2005/10/11 21:13:48 phil
-Added /Numeric/ to the QString + operator. The improved behaviour (being able
-to write s = "foo" + QString("bar")) should now work in both PyQt3 and 4.
+Added /Numeric/ to the TQString + operator. The improved behaviour (being able
+to write s = "foo" + TQString("bar")) should now work in both PyTQt3 and 4.
2005/10/07 18:15:37 phil
-Changed the PyQt3 QString behaviour with long and ulong to match PyQt4.
+Changed the PyTQt3 TQString behaviour with long and ulong to match PyTQt4.
2005/09/22 20:18:39 phil
-Updated the build system now that all Qt specific configuration data has been
+Updated the build system now that all TQt specific configuration data has been
removed from sipconfig.
@@ -597,7 +597,7 @@ is recreated).
2005/09/06 20:33:43 phil
Removed support for SIP v3 from configure.py.
-Added the new Qt support code taken out of SIP.
+Added the new TQt support code taken out of SIP.
2005/08/30 17:31:05 phil
@@ -609,37 +609,37 @@ Replaced all the (now deprecated) sipTransfer() calls in handwritten code.
2005/08/10 22:10:29 phil
-Synced with the latest QScintilla.
+Synced with the latest TQScintilla.
Updated the documentation.
2005/07/26 11:08:23 phil
-Synced with the current QScintilla.
+Synced with the current TQScintilla.
2005/07/25 18:24:29 phil
-Added the sipTransfer() to QDialog.exec_loop().
+Added the sipTransfer() to TQDialog.exec_loop().
2005/07/24 20:16:51 phil
-Synced with the latest QScintilla.
+Synced with the latest TQScintilla.
Added the registerWeakActiveObject() and revokeActiveObject() utility
-functions to QAxBase.
+functions to TQAxBase.
2005/07/10 09:46:49 phil
-Added %ConvertSubClassCode to QLayoutItem.
+Added %ConvertSubClassCode to TQLayoutItem.
2005/07/09 17:55:30 phil
-Sync'ed with the latest QScintilla changes.
+Sync'ed with the latest TQScintilla changes.
2005/07/06 18:20:26 phil
-Fixed the bug in QObject's type conversion graph.
+Fixed the bug in TQObject's type conversion graph.
Added the QextScintillaLexerPOV class.
Fixed configure.py so that it properly enables support for the latest
-QScintilla.
+TQScintilla.
2005/07/05 21:04:26 phil
@@ -647,35 +647,35 @@ Added the extra flag to QextScintilla.findFirst().
2005/07/04 19:17:38 phil
-Synced with the latest version of QScintilla.
+Synced with the latest version of TQScintilla.
2005/07/03 16:58:21 phil
-Added support for QAxBase now that SIP has better support for abstract
+Added support for TQAxBase now that SIP has better support for abstract
classes.
2005/06/30 15:38:41 phil
-Reimplemented all the %ConvertToSubClassCode for QObjects so that it returns
+Reimplemented all the %ConvertToSubClassCode for TQObjects so that it returns
the most specific type that it can, even if it doesn't recognise the exact
type.
2005/06/19 13:49:51 phil
-Hopefully fixed QImage() for colours with unsigned 32 bit values.
+Hopefully fixed TQImage() for colours with unsigned 32 bit values.
2005/06/10 16:45:00 phil
-Fixed the return value of QMenuData.insertSeparator().
+Fixed the return value of TQMenuData.insertSeparator().
2005/05/20 17:25:45 phil
-Fixed a problem where the readBlock() and readLine() methods of QIODevice were
+Fixed a problem where the readBlock() and readLine() methods of TQIODevice were
wrongly expecting a tuple result from a Python reimplementation.
2005/05/04 18:41:49 phil
-Fixed pyuic bug where a required QIconSet ctor wasn't being generated.
+Fixed pyuic bug where a retquired TQIconSet ctor wasn't being generated.
2005/04/17 09:04:01 phil
@@ -685,16 +685,16 @@ checks.
2005/04/15 13:31:55 phil
-Added missing Py_DECREF() from QObject.queryList() %MethodCode.
+Added missing Py_DECREF() from TQObject.queryList() %MethodCode.
2005/04/14 18:17:58 phil
-Implemented the QString '+' operator.
+Implemented the TQString '+' operator.
2005/04/09 15:35:48 phil
-When None is passed as a QString (or QByteArray or QCString) then it is now
-converted to NULL rather than a null QString.
+When None is passed as a TQString (or TQByteArray or TQCString) then it is now
+converted to NULL rather than a null TQString.
2005/04/04 15:59:27 phil
@@ -703,12 +703,12 @@ collector directives.
2005/04/02 23:10:46 phil
-Fixed the QCustomEvent %GCClear code.
+Fixed the TQCustomEvent %GCClear code.
2005/04/02 22:28:50 phil
-Added the new %GCTraverseCode and %GCClearCode to QCustomEvent.
-Now requires SIP v4.3.
+Added the new %GCTraverseCode and %GCClearCode to TQCustomEvent.
+Now retquires SIP v4.3.
2005/04/02 09:53:27 phil
@@ -716,8 +716,8 @@ Replaced the new /NoConvertor/ annotation with /Constrained/.
2005/03/25 20:18:32 phil
-Accel and AccelOverride should now result in QKeyEvent instances rather than
-QEvent instances.
+Accel and AccelOverride should now result in TQKeyEvent instances rather than
+TQEvent instances.
Added missing private dtors.
@@ -730,7 +730,7 @@ Fixed qInstallMsgHandler() for SIP v3.
2005/03/10 18:55:52 phil
-Fixed QPixmapCache.insert().
+Fixed TQPixmapCache.insert().
2005/03/06 10:09:06 phil
@@ -742,8 +742,8 @@ Fixed problem with relative path arguments to configure.py.
2005/02/25 17:46:51 phil
-Added the missing /ReleaseGIL/ annotations from the static QFileDialog methods.
-Fixed QObject.queryList() (for SIP v4 only).
+Added the missing /ReleaseGIL/ annotations from the static TQFileDialog methods.
+Fixed TQObject.queryList() (for SIP v4 only).
2005/02/19 15:23:42 phil
@@ -755,14 +755,14 @@ Released as 3.14.
Fixed the dirview.py example so that it drags local filenames properly and the
folderSelected() signal works the same way as the C++ version.
Added the qdir.py example from Hans-Peter Jansen.
-Updated the QAxObject and QAxWidget documentation.
+Updated the TQAxObject and TQAxWidget documentation.
Added qInstallMsgHandler().
Added the missing classes from the qtext subclass convertor code.
2005/02/13 10:47:50 phil
-Updated the documentation on QFilePreview.
-Fixed a bug in pyuic related to QDataBrowser.del().
+Updated the documentation on TQFilePreview.
+Fixed a bug in pyuic related to TQDataBrowser.del().
2005/02/11 22:54:02 phil
@@ -770,30 +770,30 @@ Updated the NEWS file and the documentation.
2005/02/11 17:19:19 phil
-Fixed broken QObject.inherits() and QObject.isA() (for SIP v4 only).
-Changes in version numbers for Qt v2.3.10.
+Fixed broken TQObject.inherits() and TQObject.isA() (for SIP v4 only).
+Changes in version numbers for TQt v2.3.10.
Removed the "Extracting ..." message from pyuic as it isn't always true.
2005/02/06 14:39:57 phil
-Release the GIL on calling QApplication.enter_loop().
+Release the GIL on calling TQApplication.enter_loop().
2005/01/29 10:15:48 phil
-Synced pyuic with Qt v3.3.4.
+Synced pyuic with TQt v3.3.4.
2005/01/22 18:13:35 phil
-PyQt now requires SIP v4.2 or later.
+PyTQt now retquires SIP v4.2 or later.
2005/01/22 11:54:13 phil
-Fixed bug in pyuic where it wasn't importing QDataView when it should.
+Fixed bug in pyuic where it wasn't importing TQDataView when it should.
2005/01/21 17:29:52 phil
-Added a missing /Transfer/ from QScrollView.setCornerWidget().
-Synced with the current QScintilla snapshot.
+Added a missing /Transfer/ from TQScrollView.setCornerWidget().
+Synced with the current TQScintilla snapshot.
2005/01/17 13:04:46 phil
@@ -809,7 +809,7 @@ Removed the out of date README.Linux file.
2005/01/14 17:36:52 phil
-Backed out the changes to QListBox now that SIP (again) has strict enum
+Backed out the changes to TQListBox now that SIP (again) has strict enum
checking.
Fixed enum related bugs in the widgets.py example.
Updated the copyright notices.
@@ -819,12 +819,12 @@ Added support for debug builds to the internal build system.
2005/01/09 14:02:11 phil
-Fixed QListBox so that setRowMode() and setColumnMode() work properly with the
+Fixed TQListBox so that setRowMode() and setColumnMode() work properly with the
newly relaxed enum type checking in SIP 4.
2004/12/29 18:54:44 phil
-Added missing const to QDataTable.setDateFormat().
+Added missing const to TQDataTable.setDateFormat().
2004/12/26 12:32:59 phil
@@ -834,7 +834,7 @@ Added support for the QextScintillaLexerRuby class.
2004/12/24 17:54:25 phil
Removed the -g flag from the configure.py help as the corresponding sip flag is
now deprecated.
-Hopefully fixed conversions from Python unicode objects to QStrings where
+Hopefully fixed conversions from Python unicode objects to TQStrings where
Python uses longs to represent a character.
Allow for spaces in the path to the SIP binary.
@@ -856,16 +856,16 @@ Fixed debug builds on Windows.
2004/12/05 14:53:42 phil
-Fixed pyuic bug (introduced in 3.13) that broke support for QAxWidget based
+Fixed pyuic bug (introduced in 3.13) that broke support for TQAxWidget based
instances.
2004/12/03 19:00:06 phil
-Added a missing /TransferThis/ to QSyntaxHighlighter.
+Added a missing /TransferThis/ to TQSyntaxHighlighter.
2004/10/31 16:33:07 phil
-Sync'd to the current QScintilla snapshot.
+Sync'd to the current TQScintilla snapshot.
2004/10/17 19:27:08 phil
@@ -892,8 +892,8 @@ Updated the NEWS file.
2004/09/15 12:40:09 phil
-Added the QMetaObject and QMetaProperty classes.
-Added the QObject.metaObject() method.
+Added the TQMetaObject and TQMetaProperty classes.
+Added the TQObject.metaObject() method.
2004/09/12 11:41:49 phil
@@ -901,45 +901,45 @@ Added support for the QextScintillaLexerBash class.
2004/09/10 22:38:09 phil
-Removed redundant implementations of QSqlRecord.field().
+Removed redundant implementations of TQSqlRecord.field().
Replaced whrandom with random in all examples.
2004/08/25 15:29:20 phil
-Added explicit support for QScintilla to pyuic.
+Added explicit support for TQScintilla to pyuic.
2004/08/22 15:51:05 phil
-Added support for what will become QScintilla v1.4.
+Added support for what will become TQScintilla v1.4.
2004/08/20 11:07:56 phil
Brought the documentation up to date.
-Added support for QUuid.
+Added support for TQUuid.
2004/08/19 10:32:31 phil
-Pushed out support of QAxObject to SIP v4.2.
-Added /ReleaseGIL/ to any QApplication and QThread method that might cause
+Pushed out support of TQAxObject to SIP v4.2.
+Added /ReleaseGIL/ to any TQApplication and TQThread method that might cause
events to be dispatched.
2004/08/15 23:34:28 phil
-Updated pyuic from Qt 3.3.3.
+Updated pyuic from TQt 3.3.3.
pyuic now never uses the SLOT() macro in case the connection is to a method of
a Python custom widget.
2004/08/04 18:05:25 phil
-Added the comparison operators between QChar and QChar and char.
+Added the comparison operators between TQChar and TQChar and char.
2004/08/04 14:06:41 phil
-Implemented all the QDataStream << and >> operators for classes.
+Implemented all the TQDataStream << and >> operators for classes.
2004/08/03 22:19:59 phil
-Build system fix for when QWindowsXPStyle is a plugin.
+Build system fix for when TQWindowsXPStyle is a plugin.
2004/07/19 18:41:53 phil
@@ -951,22 +951,22 @@ Minor internal changes.
2004/06/27 08:43:19 phil
-Added a missing /TransferThis/ from one of the QPushButton ctors.
+Added a missing /TransferThis/ from one of the TQPushButton ctors.
2004/05/26 22:15:40 phil
-Added another missing /ReleaseGIL/ to QApplication.
+Added another missing /ReleaseGIL/ to TQApplication.
2004/05/25 17:05:27 phil
-Fixed bug in QArray for old versions of Qt.
-Fixed QAssistantClient bug in configure.py for old versions of Qt.
-Fixed QSocket bug for old versions of Qt.
+Fixed bug in TQArray for old versions of TQt.
+Fixed TQAssistantClient bug in configure.py for old versions of TQt.
+Fixed TQSocket bug for old versions of TQt.
Released as v3.12.
2004/05/25 13:55:07 phil
-Added missing /ReleaseGIL/ to QThread.
+Added missing /ReleaseGIL/ to TQThread.
2004/05/25 11:26:37 phil
@@ -976,7 +976,7 @@ Internal build system changes.
2004/05/18 18:33:03 phil
Added the webbrowser.py example (which will have to wait until SIP v4.1 before
it works).
-Added missing /ReleaseGIL/ to QWaitCondition, QMutex and QMutexLocker.
+Added missing /ReleaseGIL/ to TQWaitCondition, TQMutex and TQMutexLocker.
2004/05/15 14:18:24 phil
@@ -985,25 +985,25 @@ Disabled the qtaxcontainer module until SIP v4.1.
2004/05/09 11:19:26 phil
-Minor pyuic3 changes to support QAxWidget.
+Minor pyuic3 changes to support TQAxWidget.
Marked the qtaxcontainer classes as experimental.
2004/05/04 16:01:57 phil
qwindowdefs.sip for all platforms is now included in the commercial package.
Changed the SIP3 dependency to v3.10.2.
-QValueList<QIconDragItem> is now dependent on the Qt_ICONVIEW feature.
+TQValueList<TQIconDragItem> is now dependent on the TQt_ICONVIEW feature.
pyuic and pylupdate will now build on the Enterprise Edition even if the qtxml
module has been disabled.
Compiler error messages during configuration are suppressed if possible, but
can be seen with the new -w flag.
-configure.py now explicitly checks QAssistantClient rather than assume it is
+configure.py now explicitly checks TQAssistantClient rather than assume it is
present in the Enterprise Edition.
The qtaxcontainer module now builds on Windows.
2004/05/02 00:38:16 phil
-Sync with the latest QScintilla snapshot.
+Sync with the latest TQScintilla snapshot.
2004/05/01 17:10:57 phil
@@ -1013,7 +1013,7 @@ The commercial version now has identical code on all platforms.
2004/04/30 21:50:33 phil
Fixed an internal build problem.
-Implemented QValueList<QVariant> as a mapped type. (Done in the previous
+Implemented TQValueList<TQVariant> as a mapped type. (Done in the previous
commit but I forgot to mention it.)
@@ -1023,15 +1023,15 @@ anything.
2004/04/24 08:43:22 phil
-Update the documentation to say that Qt v3.3.2 is supported.
+Update the documentation to say that TQt v3.3.2 is supported.
2004/04/18 15:45:12 phil
-Changed the build system to deal with the evaluation version of PyQt.
+Changed the build system to deal with the evaluation version of PyTQt.
2004/04/13 18:24:04 phil
-QAssistantClient is disabled for the Professional Edition because it requires
+TQAssistantClient is disabled for the Professional Edition because it retquires
code from the Enterprise Edition (only seems to affect Windows though).
@@ -1041,25 +1041,25 @@ Added the QextScintillaLexerPerl class to the qtext module.
2004/04/04 17:01:11 phil
Minor fixes to the dirview.py example.
-Sync'ed with the current QScintilla snapshot.
+Sync'ed with the current TQScintilla snapshot.
2004/03/30 18:22:25 phil
-Fixed a bug where the destruction of QTab instances wasn't noticed.
+Fixed a bug where the destruction of TQTab instances wasn't noticed.
2004/03/28 15:16:50 phil
-Updated to the latest QScintilla snapshot.
+Updated to the latest TQScintilla snapshot.
2004/03/27 18:26:02 phil
-Updated for the latest changes to QScintilla.
+Updated for the latest changes to TQScintilla.
2004/03/21 21:09:25 phil
Changed the configure.py message when testing for plugins to be the right
"sense".
-Updated the QScintilla support for v1.3.
+Updated the TQScintilla support for v1.3.
2004/03/11 19:05:38 phil
@@ -1076,13 +1076,13 @@ Brought the documentation up to date.
Minor internal build system changes.
The build system now disables style classes built as plugins.
Changed the handwritten code to use the SIP generated feature #defines rather
-than the unreliable (in the case of plugins) Qt ones.
+than the unreliable (in the case of plugins) TQt ones.
2004/02/26 18:56:39 phil
-Updated the documentation to say that PyQt has been tested against Qt v3.3.1.
+Updated the documentation to say that PyTQt has been tested against TQt v3.3.1.
Updated the internal build system to exploit distcc.
-Fixed bug in the conversion from Python lists to QMemArrays.
+Fixed bug in the conversion from Python lists to TQMemArrays.
2004/02/15 22:34:39 phil
@@ -1090,7 +1090,7 @@ Fixed the canvas.py example's handling of multiple views.
2004/02/11 19:24:10 phil
-Fixed the old build system for Qt v3.3.0.
+Fixed the old build system for TQt v3.3.0.
2004/02/07 17:38:52 phil
@@ -1098,25 +1098,25 @@ Fixed a couple of bugs in pyuic3 and added the spacer.ui form to verify it.
2004/02/02 22:27:48 phil
-Updated pyuic from Qt v3.3.0.
+Updated pyuic from TQt v3.3.0.
2004/02/01 14:38:18 phil
-Added the QLocale class from Qt v3.3.0.
-Updated all existing classes for Qt v3.3.0.
-Added the missing += operators for QString.
-Added the missing QSocketDevice class.
+Added the TQLocale class from TQt v3.3.0.
+Updated all existing classes for TQt v3.3.0.
+Added the missing += operators for TQString.
+Added the missing TQSocketDevice class.
2004/01/31 23:09:45 phil
-Added the missing /Transfer/ from QMimeSourceFactory.setData() and
-QMimeSourceFactory.setDefaultFactory().
-Added the missing /TransferBack/ from QMimeSourceFactory.takeDefaultFactory().
-Added the missing /Factory/ from createEditor() in QTableItem and sub-classes.
-Added the missing /Factory/ in QTextCodec.makeDecoder(),
-QTextCodec.makeEncoder() and QTextEdit.createPopupMenu().
-Added Qt v3.3.0 support to the build system.
-PyQt now builds against Qt v3.3.0.
+Added the missing /Transfer/ from TQMimeSourceFactory.setData() and
+TQMimeSourceFactory.setDefaultFactory().
+Added the missing /TransferBack/ from TQMimeSourceFactory.takeDefaultFactory().
+Added the missing /Factory/ from createEditor() in TQTableItem and sub-classes.
+Added the missing /Factory/ in TQTextCodec.makeDecoder(),
+TQTextCodec.makeEncoder() and TQTextEdit.createPopupMenu().
+Added TQt v3.3.0 support to the build system.
+PyTQt now builds against TQt v3.3.0.
2004/01/29 19:19:36 phil
@@ -1125,14 +1125,14 @@ Added README.AIX from Ulli Berning.
2004/01/27 08:34:21 phil
-Reverted the accidental change to QTextEdit.find().
+Reverted the accidental change to TQTextEdit.find().
Fixed a couple of markup problems in the documentation.
-Added the missing QHttp, QFtp and QLocalFs to the appropriate
+Added the missing TQHttp, TQFtp and TQLocalFs to the appropriate
%ConvertToSubClassCode.
2004/01/21 18:34:02 phil
-Added some fixes for Qtopia v1.6 from Mickey Lauer.
+Added some fixes for TQtopia v1.6 from Mickey Lauer.
2004/01/16 20:53:09 phil
@@ -1140,7 +1140,7 @@ Released as v3.10.
2004/01/15 20:04:11 phil
-Changed configure.py to check that SIP was built with Qt support enabled as
+Changed configure.py to check that SIP was built with TQt support enabled as
early as possible.
@@ -1155,7 +1155,7 @@ Minor updates to the build system.
2004/01/03 23:57:31 phil
Updated the copyright notices.
-Changed pyuic3 to only #include zlib.h for Qt versions before 3.1.0.
+Changed pyuic3 to only #include zlib.h for TQt versions before 3.1.0.
Documented pyqtconfig.
@@ -1169,12 +1169,12 @@ Changes to the build system based on patches from Ulrich Berning.
2003/12/26 19:32:31 phil
-Added the missing QFtp class.
+Added the missing TQFtp class.
2003/12/26 19:31:23 phil
-Added the missing QHttp, QHttpHeader, QHttpRequestHeader, QHttpResponseHeader,
-QLocalFs classes.
+Added the missing TQHttp, TQHttpHeader, TQHttpRequestHeader, TQHttpResponseHeader,
+TQLocalFs classes.
2003/12/21 17:28:16 phil
@@ -1182,7 +1182,7 @@ Documented sip.voidptr.asstring().
2003/12/21 16:07:00 phil
-Fixed a bug when automatically converting to a QKeySequence.
+Fixed a bug when automatically converting to a TQKeySequence.
2003/12/06 20:21:54 phil
@@ -1208,16 +1208,16 @@ Windows related changes to the new build system.
2003/11/22 00:50:23 phil
-Portability fixes for Qt v2 and Qtopia.
+Portability fixes for TQt v2 and TQtopia.
2003/11/21 23:06:14 phil
-More changes to the new build system. Tested with SIP v4 and Qt Professional
+More changes to the new build system. Tested with SIP v4 and TQt Professional
on Linux and SIP v3 and Python v1.5.2 on Linux.
2003/11/21 07:32:01 phil
-SCons is now completely removed from the new build system. PyQt will now build
+SCons is now completely removed from the new build system. PyTQt will now build
with SIP v3 and SIP v4 on Linux.
@@ -1226,35 +1226,35 @@ More changes to the new build system.
2003/11/13 19:41:35 phil
-More changes to the new build system. PyQt now builds against the Professional
+More changes to the new build system. PyTQt now builds against the Professional
Edition.
2003/11/13 13:12:47 phil
-New build system changes. PyQt now builds correctly on Linux for SIP v3 and SIP
+New build system changes. PyTQt now builds correctly on Linux for SIP v3 and SIP
v4.
2003/11/12 22:22:50 phil
Added more of the new build system.
Fixed a bug in pyuic3 handling of encoded strings (thanks to Joerg Kaercher).
-Added the QImageIO class.
+Added the TQImageIO class.
2003/11/05 20:33:43 phil
-Added QListViewItemIterator.
-Added the QDockArea << and >> operators.
+Added TQListViewItemIterator.
+Added the TQDockArea << and >> operators.
Started on the new build system.
2003/10/27 23:23:07 phil
Removed more handwritten code now that SIP fully supports pointers and
references to base types.
-Fixed a GIL problem with the QCanvasItem sub-class conversion code.
+Fixed a GIL problem with the TQCanvasItem sub-class conversion code.
2003/10/26 22:53:03 phil
-Added the missing QSettings.readBoolEntry().
+Added the missing TQSettings.readBoolEntry().
Removed lots of non-virtual %MethodCode now that SIP automatically handles
returning multiple arguments.
@@ -1271,7 +1271,7 @@ Used %ModuleCode and %TypeCode rather than the deprecated %C++Code.
2003/10/22 18:40:32 phil
-Added %ConvertToSubClassCode for QTableItem and QCanvasItem.
+Added %ConvertToSubClassCode for TQTableItem and TQCanvasItem.
Added the missing qtui module documentation.
Refactored the internal and external build systems so that the .sip files are
arranged in a hierarchy and are installed.
@@ -1290,25 +1290,25 @@ Fixed internal build.py to generate Mac packages properly.
2003/10/20 18:50:07 phil
More MacOS/X related changes.
Compiler warnings are now enabled when building with SIP v4.
-PyQt builds with no warnings with SIP v4.
+PyTQt builds with no warnings with SIP v4.
2003/10/19 19:47:35 phil
Documentation updates.
-Removed the tests for missing functions in early versions of Qt for MacOS/X.
+Removed the tests for missing functions in early versions of TQt for MacOS/X.
Updates to the build system for MacOS/X.
2003/10/16 15:50:38 phil
-Replaced the use of __cmp__ in QString because it doesn't work with SIP v4 if
+Replaced the use of __cmp__ in TQString because it doesn't work with SIP v4 if
the argument isn't of the same type - it's just the way new-style classes work.
-Removed the QString.__cmp__() unit test as the implementation no longer uses
+Removed the TQString.__cmp__() unit test as the implementation no longer uses
handwritten code.
2003/10/15 18:19:07 phil
Added the "-r" flag to build.py to build with tracing enabled.
-Rewrote all the unit tests to work with PyQt generated with SIP v4.
+Rewrote all the unit tests to work with PyTQt generated with SIP v4.
2003/10/11 21:57:20 phil
@@ -1322,7 +1322,7 @@ Fixed the internal build system (again).
2003/10/07 19:33:13 phil
-Fixed QIODevice handwritten code which looked very broken.
+Fixed TQIODevice handwritten code which looked very broken.
Checked all virtual abstract functions that need handwritten code.
Added /TransferBack/ for function return values where needed.
Added the missing qInstallPath(), qInstallPathDocs(), qInstallPathHeaders(),
@@ -1337,16 +1337,16 @@ Changed how sipClassName() is used now that it returns a new reference.
2003/10/04 11:16:21 phil
Migrated the remaining %MemberCode to %MethodCode.
-Changed the QApplication dtor code slightly to keep the public SIP API simple.
+Changed the TQApplication dtor code slightly to keep the public SIP API simple.
(It means that disowning a top level widget now adds the extra reference, but
this shouldn't make a difference.)
2003/10/02 22:54:43 phil
-Documented QLayoutIterator.next().
+Documented TQLayoutIterator.next().
Fixed problem with build system that was preventing snapshots being generated
after the addition of %MethodCode.
-Fixed QSpinBox.mapTextToValue() to take zero parameters.
+Fixed TQSpinBox.mapTextToValue() to take zero parameters.
Converted most of %MemberCode to %MethodCode (ie. the easy ones).
@@ -1365,7 +1365,7 @@ Changes to the build system for SIP v4's new build system.
2003/09/19 00:28:39 phil
-Fixed converting Python wide Unicode strings to QString for Qt v2. (Actually
+Fixed converting Python wide Unicode strings to TQString for TQt v2. (Actually
done with an earlier change but I forgot to mention it.)
Updated the documentation on application deployment to reflect the changes to
the build system.
@@ -1379,12 +1379,12 @@ More changes to the build system after initial testing.
2003/09/17 18:28:40 phil
Re-factored build.py to use the sipconfig module. Only tested on Linux with
-Qt v3.2.1 Enterprise and Python v2.3.
+TQt v3.2.1 Enterprise and Python v2.3.
2003/09/06 13:35:02 phil
-QWMatrix fixes from Torsten Marek.
-Added the undocumented "*" operators to QWMatrix.
+TQWMatrix fixes from Torsten Marek.
+Added the undocumented "*" operators to TQWMatrix.
Updated the educational version to v3.2.0.
Released as v3.8.1.
@@ -1392,16 +1392,16 @@ Released as v3.8.1.
2003/08/24 18:43:40 phil
Updated the tutorials so that they have a consistent coding style and don't use
"import *".
-Updated the documentation to say that Qt v3.2.1 is supported.
+Updated the documentation to say that TQt v3.2.1 is supported.
2003/08/17 12:25:57 phil
-Fixed QPrinter.winPageSize() for Qt versions before v3.
+Fixed TQPrinter.winPageSize() for TQt versions before v3.
Released as v3.8.
2003/08/17 10:02:11 phil
-Fixed problem with QRect | and & operators.
+Fixed problem with TQRect | and & operators.
2003/08/16 21:14:09 phil
@@ -1411,43 +1411,43 @@ Brought the documentation up to date.
2003/08/13 17:50:14 phil
-The == and != operators have been implemented for QBrush, QColor, QDomNode,
-QFont, QImage, QKeySequence, QPalette, QPen and QRegExp.
+The == and != operators have been implemented for TQBrush, TQColor, TQDomNode,
+TQFont, TQImage, TQKeySequence, TQPalette, TQPen and TQRegExp.
The +, +=, -, -=, *, *=, /, /=, ==, != and __nonzero__() operators have been
-implemented for QSize.
-The ==, != and QString() operators have been implemented for QUrl.
+implemented for TQSize.
+The ==, != and TQString() operators have been implemented for TQUrl.
The &, &=, |, |=, ==, !=, __contains__() and __nonzero__() operators have been
-implemented for QRect.
+implemented for TQRect.
The |, |=, +, +=, &, &=, -, -=, ^, ^=, ==, !=, __contains__() and __nonzero__()
-operators have been implemented for QRegion.
-The ==, != and *= operators have been added to QWMatrix.
+operators have been implemented for TQRegion.
+The ==, != and *= operators have been added to TQWMatrix.
The __len__(), __contains__(), == and != operators have been implemented for
-QDir.
-The comparison operators and __nonzero__() have been implemented for QDate,
-QDateTime and QTime.
-Added some consts to the QString operators.
-Added the QDate, QDateTime, QDir, QRect, QRegion, QSize and QTime unit tests.
+TQDir.
+The comparison operators and __nonzero__() have been implemented for TQDate,
+TQDateTime and TQTime.
+Added some consts to the TQString operators.
+Added the TQDate, TQDateTime, TQDir, TQRect, TQRegion, TQSize and TQTime unit tests.
Added the runtests.py master unit test runner.
2003/08/12 20:34:29 phil
-Fixed memory leak in QStringList * operator.
-Added the QPoint operators (thanks to Torsten Marek).
-Added the QPoint unit test.
+Fixed memory leak in TQStringList * operator.
+Added the TQPoint operators (thanks to Torsten Marek).
+Added the TQPoint unit test.
2003/08/12 15:31:24 phil
Fixed deprecated use of iostream.h in pyuic3.
-Updated the QScintilla support.
+Updated the TQScintilla support.
2003/08/11 18:52:45 phil
-Fixed version problem with QToolBox.
+Fixed version problem with TQToolBox.
2003/08/01 09:42:10 phil
-Added the missing Qt.ButtonState.MetaButton.
-Added support for the [], in, len and comparison operators to QString (thanks
+Added the missing TQt.ButtonState.MetaButton.
+Added support for the [], in, len and comparison operators to TQString (thanks
to Torsten Marek).
Added the test_QString.py test script.
@@ -1462,20 +1462,20 @@ Some pyuic3 format changes from Detlev.
2003/07/25 12:13:44 phil
-Updated pyuic for Qt v3.2.0.
+Updated pyuic for TQt v3.2.0.
2003/07/24 17:20:59 phil
-Added QSplashScreen, QSqlSelectCursor and QToolBox for Qt v3.2.0.
+Added TQSplashScreen, TQSqlSelectCursor and TQToolBox for TQt v3.2.0.
Fix to build.py error message.
2003/07/24 10:52:38 phil
Minor license handling changes.
-Fixed memory leak in QStringList[] when using slices.
+Fixed memory leak in TQStringList[] when using slices.
Added the -k flag to build.py to create static modules.
Updated README.MacOSX from Willard Myers.
-Updated all existing classes for Qt v3.2.0.
+Updated all existing classes for TQt v3.2.0.
2003/07/05 10:31:55 phil
@@ -1501,8 +1501,8 @@ Added lots of new examples from Jorge Arroyo.
Changed all handwritten code to use the new 'L' format character where
appropriate.
Implemented __setitem__(), __delitem__(), __add__(), __iadd__(), __mul__(),
-__imul__(), __eq__() and __ne__() for QStringList.
-Added the internal QStringList unit tests.
+__imul__(), __eq__() and __ne__() for TQStringList.
+Added the internal TQStringList unit tests.
2003/06/22 11:26:32 phil
@@ -1514,16 +1514,16 @@ Fixed the internal build process to deal with the new %DtorCode.
2003/06/19 23:53:49 phil
-More changes to QCustomEvent which shouldn't now leak memory under any
+More changes to TQCustomEvent which shouldn't now leak memory under any
circumstances.
2003/06/19 16:31:57 phil
-QEvent.data() now returns a Python object without increasing it's reference
+TQEvent.data() now returns a Python object without increasing it's reference
count.
-The QEvent dtor is now virtual so that the Python wrapper object gets garbage
-collected when Qt deletes the event when it's passed to
-QApplication.postEvent().
+The TQEvent dtor is now virtual so that the Python wrapper object gets garbage
+collected when TQt deletes the event when it's passed to
+TQApplication.postEvent().
2003/06/10 14:51:23 phil
@@ -1537,8 +1537,8 @@ Lots of build tidy ups from Hans-Peter Jansen.
2003/06/06 12:59:26 phil
pylupdate now recognises the __tr() and __trUtf8() methods generated by pyuic.
-Added some missing /Transfer/ flags from QMenuData.
-Updated the menu.py example so that it matches the latest Qt version.
+Added some missing /Transfer/ flags from TQMenuData.
+Updated the menu.py example so that it matches the latest TQt version.
2003/05/31 12:19:22 phil
@@ -1562,11 +1562,11 @@ Documented the issues related to translations.
2003/05/23 22:03:05 phil
Fixed some bugs and inefficiencies in the canvas.py example so that it no
longer segfaults on exit when a sprite has been created.
-Added bits(), scanLine(), jumpTable() and colorTable() to QImage.
+Added bits(), scanLine(), jumpTable() and colorTable() to TQImage.
2003/05/22 21:50:05 phil
-Added the QWindowsXPStyle class. (Thanks to Ulrich Berning.)
+Added the TQWindowsXPStyle class. (Thanks to Ulrich Berning.)
2003/05/20 10:36:10 phil
@@ -1577,17 +1577,17 @@ Added QextScintilla.modificationAttempted().
Added QextScintillaBase.SCN_MODIFYATTEMPTRO.
Fixed pyuic3's broken handling of the -x flag.
Fixed pyuic3's broken generation of embedded images.
-Fixed QImage ctor to use an internal colour table instead of an external one
+Fixed TQImage ctor to use an internal colour table instead of an external one
that was garbage collected too soon.
2003/05/13 09:50:54 phil
-Added the QSignalMapper class (thanks to Gordon Tyler).
+Added the TQSignalMapper class (thanks to Gordon Tyler).
2003/05/12 10:00:59 phil
Added toShort(), toUShort(), toInt(), toUInt(), toLong(), toULong(), toFloat()
-and toDouble() to QCString and QString.
+and toDouble() to TQCString and TQString.
2003/05/11 10:26:44 phil
@@ -1596,14 +1596,14 @@ Added the QextScintillaLexerHTML class.
2003/05/07 21:07:04 phil
Changed the handling of version numbers so that we assume the latest SIP tags
-if we find a QScintilla snapshot.
+if we find a TQScintilla snapshot.
2003/05/07 16:53:05 phil
Updated the documentation to explicitly mention the problems of using lambda
expressions as slots.
Added the QextScintillaLexerSQL class.
-Changed build.py to support QScintilla version control.
+Changed build.py to support TQScintilla version control.
2003/05/04 09:57:19 phil
@@ -1638,17 +1638,17 @@ Changed to the C++ style operators where possible.
2003/04/22 16:05:10 phil
Adjusted handwritten code for Python slots so that it will be compatible with
SIP v3 and v4.
-QStringList.__getitem__ will now handle extended slices.
+TQStringList.__getitem__ will now handle extended slices.
2003/04/18 22:17:26 phil
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
2003/04/16 11:42:45 phil
Fixed build.py for when SIP v4 is used.
-Python v2.3 is now required if SIP v4 is being used.
-Changed QCustomEvent.data() to deal with the changed support of SIP_PYOBJECT.
+Python v2.3 is now retquired if SIP v4 is being used.
+Changed TQCustomEvent.data() to deal with the changed support of SIP_PYOBJECT.
2003/04/13 15:42:08 phil
@@ -1659,12 +1659,12 @@ Fix to pyuic3 related to pixmaps.
2003/04/07 11:52:33 phil
-QCommonStyle is now always included (to fit with Qt v3), but it should still be
+TQCommonStyle is now always included (to fit with TQt v3), but it should still be
configured properly for the Zaurus.
2003/04/04 14:24:00 phil
-Fixed typo in qpixmap.sip where some Qt v3 methods had been added to the Qt v2
+Fixed typo in qpixmap.sip where some TQt v3 methods had been added to the TQt v2
definition.
Fixed some pyuic3 problems with embedded and external images.
@@ -1672,8 +1672,8 @@ Fixed some pyuic3 problems with embedded and external images.
2003/04/04 10:32:45 phil
SIP v4 related fixes to %VirtualCode.
Fixed some sipParseArgs() format bugs in qtxml handwritten code.
-Added missing /TransferThis/ from QTableItem (and derived classes) ctors.
-Added other missing transfer flags from some QTable methods.
+Added missing /TransferThis/ from TQTableItem (and derived classes) ctors.
+Added other missing transfer flags from some TQTable methods.
2003/04/01 20:44:55 phil
@@ -1689,14 +1689,14 @@ Made sure Python.h is included before stdio.h for LFS support under Solaris.
Removed all uses of %ExportedHeaderCode for compatibility with SIP v4.
Implemented the %VirtualCode that is to be used with SIP v4.
Fixed some bugs in existing %VirtualCode.
-Removed QTextEdit.getFormat() and QTextEdit.getParagraphFormat() as they are
+Removed TQTextEdit.getFormat() and TQTextEdit.getParagraphFormat() as they are
undocumented and marked as "don't use".
2003/03/26 22:21:58 phil
-Slightly changed the implementation of QObject.sender() to maintain
+Slightly changed the implementation of TQObject.sender() to maintain
compatibility with SIP v4.
-The build process no longer checks for sipQt.h as it isn't in SIP v4.
+The build process no longer checks for sipTQt.h as it isn't in SIP v4.
Added a missing #include in qnetwork.sip that only showed up with SIP v4.
@@ -1708,17 +1708,17 @@ SIP v4.)
2003/03/21 00:20:19 phil
Reverted the "fix" for libqassistantclient on HP-UX, and wait to see if anybody
complains.
-pyuic now includes the PyQt version number in the generated output.
-Fixed QPixmap handling bug in pyuic.
+pyuic now includes the PyTQt version number in the generated output.
+Fixed TQPixmap handling bug in pyuic.
2003/03/16 16:24:24 phil
-Tracked latest QScintilla changes.
+Tracked latest TQScintilla changes.
Fixed an internal build problem with the documentation.
2003/03/15 23:42:55 phil
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
Brought the documentation up to date.
@@ -1727,61 +1727,61 @@ Added the missing %ConvertToSubClass code for the qtext module.
2003/03/13 12:59:44 phil
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
2003/03/09 18:37:13 phil
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
2003/03/06 10:35:32 phil
-Tracked latest QScintilla changes.
+Tracked latest TQScintilla changes.
Fixes for the mdi.py example from Ken Godee.
Further improvements to the build system's parsing of the Python version
number.
-Fixes to the Qt class and pyuic to deal with the use of the internal
+Fixes to the TQt class and pyuic to deal with the use of the internal
WState_Polished.
2003/03/03 18:03:41 phil
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
2003/02/27 16:21:33 phil
-Updates for Qt v3.2.1.
+Updates for TQt v3.2.1.
Build system changes for alpha and beta versions of Python.
2003/02/26 23:40:22 phil
-Tracked latest QScintilla changes.
+Tracked latest TQScintilla changes.
2003/02/26 19:31:26 phil
-Tracked latest QScintilla changes.
-Fixed QListBox.eventFilter().
+Tracked latest TQScintilla changes.
+Fixed TQListBox.eventFilter().
Added the qtui module.
Added /Factory/ to everywhere it seems to be needed.
Fixed Python 1.5.2 problems in the build system.
-Updated the menu.py example for Qt3 (thanks to Selim Tuvi).
-Fixed a bug in pyuic3 related to pixmaps in QListViewItems.
+Updated the menu.py example for TQt3 (thanks to Selim Tuvi).
+Fixed a bug in pyuic3 related to pixmaps in TQListViewItems.
Fixed a bug in the canvas.py example.
PYQT_VERSION is now the version encoded as a hexadecimal value.
Added PYQT_VERSION_STR as the ASCII version (unless it is a snapshot).
2003/01/25 15:39:58 phil
-Fixed bug in QPointArray.putPoints().
+Fixed bug in TQPointArray.putPoints().
The sub-class convertors are now declared as static as SIP now puts them in the
main module code.
-Changed the way that the QAssistantClient library is linked in to work around
+Changed the way that the TQAssistantClient library is linked in to work around
problems linking static and shared libraries under HP-UX.
-Fixed QSpinBox.eventFilter().
+Fixed TQSpinBox.eventFilter().
2003/01/20 10:24:19 phil
-Applied Lars Heete's patch for QString for when Python is built with wide
+Applied Lars Heete's patch for TQString for when Python is built with wide
Unicode support.
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
2003/01/14 09:55:52 phil
@@ -1816,8 +1816,8 @@ SIP v4.
2002/12/25 10:48:22 phil
Added the checklists.py and drawlines.py examples from Oleksandr Yakovlyev.
Added support for PEP 263 in the code generated by pyuic3.
-Tracked latest QScintilla changes.
-Implemented the QTextStream << QMainWindow and QTextStream >> QMainWindow
+Tracked latest TQScintilla changes.
+Implemented the TQTextStream << TQMainWindow and TQTextStream >> TQMainWindow
operators.
@@ -1826,7 +1826,7 @@ Added the biff.py example from Oleksandr Yakovlyev.
2002/12/20 18:46:10 phil
-QString.startsWith() was introduced in Qt v2.2.0 and not Qt v3.0.0.
+TQString.startsWith() was introduced in TQt v2.2.0 and not TQt v3.0.0.
Added the updated buttongroups.py example from Oleksandr Yakovlyev.
@@ -1836,7 +1836,7 @@ in a .ui file and copy it to the generated output.
2002/12/17 13:20:37 phil
-Tracked the latest QScintilla changes, including the new QextScintillaPrinter
+Tracked the latest TQScintilla changes, including the new QextScintillaPrinter
class.
@@ -1844,7 +1844,7 @@ class.
Change the build system to ensure that SIP .h files in the location specified
by the -s flag are used in preference to any others in the standard Python
location.
-Added the Qtopia QCopEnvelope class.
+Added the TQtopia TQCopEnvelope class.
2002/12/11 13:50:58 phil
@@ -1859,48 +1859,48 @@ Brought the NEWS file up to date.
2002/12/10 14:21:09 phil
-Changes related to Qt v3.1.1.
-Made Qtopia v1.5.0 the baseline version.
+Changes related to TQt v3.1.1.
+Made TQtopia v1.5.0 the baseline version.
Added the AppLnk, AppLnkSet, Config, DateFormat, DocLnk, DocLnkSet,
FileManager, FileSelector, FileSelectorItem, FontDatabase, Global, MenuButton,
-QDawg, QList<AppLnk>, QList<DocLnk> and Resource Qtopia classes.
-Added QArray<int> for Qt 1.x and Qt 2.x.
+TQDawg, TQList<AppLnk>, TQList<DocLnk> and Resource TQtopia classes.
+Added TQArray<int> for TQt 1.x and TQt 2.x.
2002/12/09 10:40:54 phil
-Minor changes for building under Qt/E.
+Minor changes for building under TQt/E.
2002/12/08 17:56:27 phil
-Worked around the Qt Windows bug in QSemaphore += and -= so that the
-semaphore.py example now works properly with affected versions of Qt.
+Worked around the TQt Windows bug in TQSemaphore += and -= so that the
+semaphore.py example now works properly with affected versions of TQt.
2002/12/05 17:28:24 phil
Added the script to create the test database for the SQL examples for
PostgreSQL (thanks to Kenneth Godee).
-pyuic3 and pylupdate3 changes so that they compile against the Qt Professional
+pyuic3 and pylupdate3 changes so that they compile against the TQt Professional
Edition.
Brought the documentation up to date.
-Build system change for Qt v3.0.x and FORCE in Makefiles.
+Build system change for TQt v3.0.x and FORCE in Makefiles.
2002/11/29 10:59:32 phil
Fixed bugs in pyuic3 related to menus and embedded images.
-Implemented QMenuItem.setText(), even though it is an internal class, because
+Implemented TQMenuItem.setText(), even though it is an internal class, because
it is used in code generated by pyuic3.
2002/11/26 12:50:45 phil
eric is now no longer part of the distribution.
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
Removed the automatic test for -fno-exceptions and added the -f flag to the
build system so that it can be explicitly set.
Fixed a pyuic3 indentation bug.
2002/11/22 22:43:29 phil
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
2002/11/22 10:15:46 phil
@@ -1908,43 +1908,43 @@ Fixed a couple of bugs in pyuic3's handling of embedded images.
2002/11/21 18:57:34 phil
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
2002/11/18 19:36:53 phil
-The missing Windows QEventLoop methods should be added to Qt v3.1.1.
-Fixed generation of QString::null in pyuic3.
-Tracked latest QScintilla changes.
+The missing Windows TQEventLoop methods should be added to TQt v3.1.1.
+Fixed generation of TQString::null in pyuic3.
+Tracked latest TQScintilla changes.
2002/11/14 22:44:42 phil
-Fixed problems compiling against Qt v3.0.x introduced with the support for Qt
+Fixed problems compiling against TQt v3.0.x introduced with the support for TQt
v3.1.0.
2002/11/14 22:32:14 phil
Minor build changes for Windows.
-Removed the QEventLoop methods that seem to be missing under Windows.
-QGLColormap was actually introduced in Qt v3.0 rather than Qt v3.1.
+Removed the TQEventLoop methods that seem to be missing under Windows.
+TQGLColormap was actually introduced in TQt v3.0 rather than TQt v3.1.
2002/11/13 20:23:43 phil
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
2002/11/11 11:59:24 phil
-Added the missing QDockWindow.drawFrame() and QGLWidget.reparent() methods.
-The build system will now recognise Qt v3.1.0.
-Added the QAssistantClient, QEventLoop, QGLColormap, QIconFactory,
-QIMComposeEvent, QMutexLocker and QSyntaxHighlighter Qt 3.1.0 classes.
-QListView.sort() is now virtual for Qt3.
-Fixed a bug in the widgets.py example for both Qt2 and Qt3.
-Updated pyuic from Qt 3.1.0.
-Added the qCompress and qUncompress Qt 3.1.0 functions.
+Added the missing TQDockWindow.drawFrame() and TQGLWidget.reparent() methods.
+The build system will now recognise TQt v3.1.0.
+Added the TQAssistantClient, TQEventLoop, TQGLColormap, TQIconFactory,
+TQIMComposeEvent, TQMutexLocker and TQSyntaxHighlighter TQt 3.1.0 classes.
+TQListView.sort() is now virtual for TQt3.
+Fixed a bug in the widgets.py example for both TQt2 and TQt3.
+Updated pyuic from TQt 3.1.0.
+Added the qCompress and qUncompress TQt 3.1.0 functions.
2002/11/06 23:56:57 phil
-Fixed QWidgetStack.addWidget().
+Fixed TQWidgetStack.addWidget().
2002/11/05 15:08:21 phil
@@ -1952,34 +1952,34 @@ Addition of new licenses to the internal build system.
2002/11/03 20:15:36 phil
-Tracked the latest version of QScintilla, including updating to Scintilla
+Tracked the latest version of TQScintilla, including updating to Scintilla
v1.49.
2002/10/25 19:00:47 phil
Updated the canvas.py example.
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
2002/10/24 08:55:46 phil
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
2002/10/22 21:28:20 phil
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
2002/10/21 21:25:52 phil
-Tracked the latest QScintilla changes.
+Tracked the latest TQScintilla changes.
2002/10/20 22:28:46 phil
-Tracked the latest changes to QScintilla.
-Added the missing QMainWindow.lineUpDockWindows().
+Tracked the latest changes to TQScintilla.
+Added the missing TQMainWindow.lineUpDockWindows().
2002/10/19 18:43:13 phil
-Tracked the latest changes to QScintilla.
+Tracked the latest changes to TQScintilla.
2002/10/18 17:30:24 phil
@@ -1987,19 +1987,19 @@ More build system changes to fix directory names containing spaces.
Added the QextScintillaLexerCPP, QextScintillaLexerCSharp,
QextScintillaLexerIDL, QextScintillaLexerJava and QextScintillaLexerJavaScript
classes.
-Added support for Qt v3.0.6.
+Added support for TQt v3.0.6.
2002/10/12 23:45:52 phil
-Tracked the latest QScintilla changes.
-QStringList.__getitem__() now handles slices and negative indices properly.
+Tracked the latest TQScintilla changes.
+TQStringList.__getitem__() now handles slices and negative indices properly.
2002/10/11 14:11:53 phil
Fixed the build system where the Python directory path contains spaces.
Another go at fixing the internal build system so that it generates .sip files
-for the GPL version that support both X11 and Qt/E.
-Updated the QScintilla bindings.
+for the GPL version that support both X11 and TQt/E.
+Updated the TQScintilla bindings.
2002/10/06 21:21:05 phil
@@ -2013,7 +2013,7 @@ QextScintillaLexer and QextScintillaLexerPython.
2002/10/05 15:03:01 phil
-Fixed the internal build system to make sure Qt/Embedded support isn't stripped
+Fixed the internal build system to make sure TQt/Embedded support isn't stripped
out of the GPL version.
@@ -2021,17 +2021,17 @@ out of the GPL version.
Changed the internal build system so that internal development versions are
marked as such.
The user build system now handles conflicting licenses.
-pyuic and pylupdate should now build using the professional edition of Qt3.
+pyuic and pylupdate should now build using the professional edition of TQt3.
Added support for margins and markers to QextScintilla.
2002/10/03 10:42:28 phil
-Synchronised to the latest QScintilla snapshot.
+Synchronised to the latest TQScintilla snapshot.
2002/10/01 17:38:18 phil
Fixed the i18n example script.
-Changed the qtext module build for QScintilla under Windows.
+Changed the qtext module build for TQScintilla under Windows.
2002/09/30 15:32:53 phil
@@ -2041,7 +2041,7 @@ Added the QextScintillaBase.SendScintilla() overload.
2002/09/28 08:57:26 phil
Further separated out the Windows .sip files.
Added QextScintillaBase.Colourise().
-Fixed the problem with QTextEdit.find().
+Fixed the problem with TQTextEdit.find().
2002/09/22 00:39:05 phil
@@ -2059,11 +2059,11 @@ version.
2002/09/18 08:36:18 phil
-Added the qtext module containing support for QScintilla.
+Added the qtext module containing support for TQScintilla.
2002/09/13 07:20:57 phil
-Fixed QFontDatabase.families() for Qt3.
+Fixed TQFontDatabase.families() for TQt3.
2002/09/10 12:55:34 phil
@@ -2084,7 +2084,7 @@ The user now has to explicitly accept any non-GPL license.
2002/09/07 20:50:13 phil
-Added QApplication.winEventFilter(), QWidget.winEvent(), MSG and POINT under
+Added TQApplication.winEventFilter(), TQWidget.winEvent(), MSG and POINT under
Windows.
@@ -2124,7 +2124,7 @@ Added the pylupdate program from Detlev.
2002/08/10 20:01:47 phil
-Fixed problems with QObject.tr() and QObject.trUtf8().
+Fixed problems with TQObject.tr() and TQObject.trUtf8().
Brought the NEWS file up to date.
@@ -2141,7 +2141,7 @@ Another eric update from Detlev, including the help browser.
2002/07/29 14:16:11 phil
-Added QTextEdit.WrapPolicy.AtWhiteSpace as it isn't clear if this is deprecated
+Added TQTextEdit.WrapPolicy.AtWhiteSpace as it isn't clear if this is deprecated
or not. (The header file says one thing, the documentation says the opposite.)
@@ -2165,7 +2165,7 @@ Changed the build system so that it uses "opengl" when necessary.
2002/07/12 13:04:44 phil
-Fixed a problem detecting the Qt version in the build system.
+Fixed a problem detecting the TQt version in the build system.
Released as 3.3.2.
@@ -2178,12 +2178,12 @@ Internal build system changes.
2002/07/11 12:07:40 phil
-Added missing /TransferThis/ to all relevant QListBoxText and QListBoxPixmap
+Added missing /TransferThis/ to all relevant TQListBoxText and TQListBoxPixmap
ctors.
2002/07/09 22:07:10 phil
-Added support for Qt 3.0.5.
+Added support for TQt 3.0.5.
Released as 3.3.1.
@@ -2202,18 +2202,18 @@ argument.
2002/07/05 21:56:20 phil
Backed out the change in the order of attempts to convert Python objects to
-QStrings so it is now Unicode objects before string objects.
+TQStrings so it is now Unicode objects before string objects.
2002/07/05 17:59:16 phil
Fixed a few indentation issues with the dirview examples.
-Fixed the same bug in every mapped type based on the QValueList template.
+Fixed the same bug in every mapped type based on the TQValueList template.
2002/07/05 08:54:46 phil
More eric patches from Detlev.
-QSqlRecordInfo is now implemented as a Python list of QSqlFieldInfo instances.
-The build system now ignores qmake if present when building for Qt 1.x and 2.x.
+TQSqlRecordInfo is now implemented as a Python list of TQSqlFieldInfo instances.
+The build system now ignores qmake if present when building for TQt 1.x and 2.x.
2002/07/04 10:08:24 phil
@@ -2240,7 +2240,7 @@ Changes to the build system for the qtpe module.
2002/07/02 14:55:45 phil
More eric patches from Detlev.
-Added the missing QString.compare() and QString.localeAwareCompare() overloads.
+Added the missing TQString.compare() and TQString.localeAwareCompare() overloads.
Changed the build system in line with the way SIP now handles features.
@@ -2250,22 +2250,22 @@ Removed support for the -r flag in the build system as tmake handles -fno-rtti.
Added the -e flag to the build system to explicitly specify the location of the
SIP header files (usually used when cross compiling).
More eric patches from Detlev.
-Fixed QDataBrowser.setSqlCursor().
+Fixed TQDataBrowser.setSqlCursor().
2002/06/29 18:57:01 phil
-The build system now determines the Qt version by parsing qglobal.h rather than
+The build system now determines the TQt version by parsing qglobal.h rather than
running a program (which is no good when cross compiling).
-The sipQtFeatures.h file is only generated by the build system is it doesn't
+The sipTQtFeatures.h file is only generated by the build system is it doesn't
already exist (again to help cross compiling).
Updated the SQL examples.
Fixed an SQL related bug in pyuic3.
-Added %MemberCode to QDataTable.setSqlCursor() to transfer ownership of the
+Added %MemberCode to TQDataTable.setSqlCursor() to transfer ownership of the
cursor if the autoDelete flag is set.
2002/06/29 13:09:51 phil
-The build system now installs eric for Qt3.
+The build system now installs eric for TQt3.
More eric patches from Detlev.
@@ -2274,15 +2274,15 @@ More build.py fixes.
Changed the build system so that project files are restored to their original
contents.
Added the -c flag to the build system to concatenate a module's C++ files prior
-to compilation. Compiling PyQt on my 750MHz PIII now takes 10 minutes. (Thanks
+to compilation. Compiling PyTQt on my 750MHz PIII now takes 10 minutes. (Thanks
to Jim Bublitz and Ricardo Cardenes.)
2002/06/28 12:45:25 phil
Added the missing qtpemod.sip.
-Added the missing /TransferThis/ to the obsolete QToolBar ctor.
-Added the missing %MemberCode for QStyle.getButtonShift(),
-QStyle.scrollBarMetrics() and Qstyle.tabbarMetrics().
+Added the missing /TransferThis/ to the obsolete TQToolBar ctor.
+Added the missing %MemberCode for TQStyle.getButtonShift(),
+TQStyle.scrollBarMetrics() and Qstyle.tabbarMetrics().
More eric patches from Detlev Offenbach.
Added Hans-Peter Jansen's SQL examples.
Fixed a bug in the build system where the path to tmake was explicitly
@@ -2292,9 +2292,9 @@ Released as 3.3rc2.
2002/06/23 19:44:58 phil
-Added support for the evaluation version of Qt to the build system.
+Added support for the evaluation version of TQt to the build system.
Applied more eric patches from Detlev Offenbach.
-SQL related fixes for pyuic for Qt3.
+SQL related fixes for pyuic for TQt3.
2002/06/22 14:29:05 phil
@@ -2305,34 +2305,34 @@ Released as 3.3rc1.
2002/06/22 00:53:57 phil
The documentation is now up to date.
Added notes about the limitations on custom editor widgets to the
-QSqlPropertyMap documentation.
+TQSqlPropertyMap documentation.
The default installation directory for pyuic under UNIX/Linux is now
/usr/local/bin rather than where the Python executable is installed.
Fixed a bug with the build system under Windows.
-Fixed a problem with QVariant where a numeric value would be recognised as a
-QKeySequence.
-Added the -i flag to build.py to allow the directory containing the Qt header
+Fixed a problem with TQVariant where a numeric value would be recognised as a
+TQKeySequence.
+Added the -i flag to build.py to allow the directory containing the TQt header
files to be explicitly specified.
2002/06/20 21:33:34 phil
-Fixed bug in QDataTable that stopped in working properly.
+Fixed bug in TQDataTable that stopped in working properly.
2002/06/20 18:52:31 phil
Added the qmag.py example script from Hans-Peter Jansen.
Added Christian Bird's notes about his pyuic patch.
-Changes to the build system to support Qt/Embedded.
+Changes to the build system to support TQt/Embedded.
Changes to the build system to handle the lack of site-packages under Windows
before Python v2.2.
2002/06/19 17:43:26 phil
-Minor changes to eric so that it seems to work under Qt3.
+Minor changes to eric so that it seems to work under TQt3.
2002/06/19 17:29:06 phil
-Applied Christian Bird's patch to pyuic for Qt3 to extract slot code written in
+Applied Christian Bird's patch to pyuic for TQt3 to extract slot code written in
Python.
@@ -2341,9 +2341,9 @@ Added the missing qtsqlmod.sip.
2002/06/19 07:56:07 phil
-Added the missing /Transfer/ from QCanvasPixmapArray.setImage(),
-QDataTable.installEditorFactory(), QDataTable.installPropertyMap() and
-QSqlForm.installPropertyMap().
+Added the missing /Transfer/ from TQCanvasPixmapArray.setImage(),
+TQDataTable.installEditorFactory(), TQDataTable.installPropertyMap() and
+TQSqlForm.installPropertyMap().
Added Hans-Peter Jansen's bigtable.py, lineedits.py, smalltable.py and
tablestatistics.py example scripts.
Added the missing qxmlmod.sip.
@@ -2376,8 +2376,8 @@ Minor build changes.
2002/06/13 16:16:19 phil
-Added the missing QFontMetrics.boundingRect() variant and QFontMetrics.size().
-Removed the incorrect /TransferBack/ from QTabBar.removeTab().
+Added the missing TQFontMetrics.boundingRect() variant and TQFontMetrics.size().
+Removed the incorrect /TransferBack/ from TQTabBar.removeTab().
The new build system has been tested on Python v2.2/qmake/Linux.
@@ -2393,20 +2393,20 @@ Set the release number to v3.2.4 to align with the last official release.
2002/06/04 23:04:40 phil
-Initial import of PyQt to the Riverbank Computing repository.
+Initial import of PyTQt to the Riverbank Computing repository.
2002/06/01 11:08:36 phil
-Correction to signature of QDir.rename().
+Correction to signature of TQDir.rename().
Added README.SunOS.
-QValueList<QPixmap> is now fully implemented as a mapping to a Python list of
-QPixmap instances.
-Added the missing QDoubleValidator.setBottom(), QDoubleValidator.setDecimals(),
-QDoubleValidator.setTop, QIntValidator.setBottom() and QIntValidator.setTop().
+TQValueList<TQPixmap> is now fully implemented as a mapping to a Python list of
+TQPixmap instances.
+Added the missing TQDoubleValidator.setBottom(), TQDoubleValidator.setDecimals(),
+TQDoubleValidator.setTop, TQIntValidator.setBottom() and TQIntValidator.setTop().
2002/05/21 14:40:56 phil
-Added the missing /Transfer/ to QClipboard.setData().
+Added the missing /Transfer/ to TQClipboard.setData().
Fixed a pyuic3 bug that generates an extra ')' when using the -subimpl flag.
@@ -2421,12 +2421,12 @@ Removed MacOS X support from the build process - until SIP v4.
2002/05/15 17:11:34 phil
Modules are now created as simple .so files, ie. without any release number.
-The obsolete QMainWindow.setToolBarsMovable() was replaced with
-QMainWindow.setDockWindowsMovable().
+The obsolete TQMainWindow.setToolBarsMovable() was replaced with
+TQMainWindow.setDockWindowsMovable().
2002/05/15 11:31:23 phil
-Fixed a bug in QInputDialog.getText() for Qt3.
+Fixed a bug in TQInputDialog.getText() for TQt3.
2002/05/11 17:38:20 phil
@@ -2435,14 +2435,14 @@ Released as v3.2.2.
2002/05/09 00:19:11 phil
-Fixed QPrinter ctor for Qt3.
+Fixed TQPrinter ctor for TQt3.
2002/05/07 21:17:32 phil
Added information about "--without-x" to the MacOS installation notes.
Put the -module flag back in for MacOS.
-Fixed a bug in pyuic3 where QPixmaps needed to be explicitly converted to
-QIconSets.
+Fixed a bug in pyuic3 where TQPixmaps needed to be explicitly converted to
+TQIconSets.
2002/05/05 13:42:46 phil
@@ -2462,24 +2462,24 @@ Updated the documentation regarding support for void *.
2002/04/30 07:52:35 phil
-configure will now search fro Qt v3.0.4.
-Changes required for Qt v3.0.4.
-Another minor bug fix related to X11 support and Qt/E.
+configure will now search fro TQt v3.0.4.
+Changes retquired for TQt v3.0.4.
+Another minor bug fix related to X11 support and TQt/E.
2002/04/29 18:10:04 phil
-Added README.Linux describing the broken Qt packages in Mandrake and Debian.
+Added README.Linux describing the broken TQt packages in Mandrake and Debian.
2002/04/29 10:17:47 phil
-configure doesn't search for X11 for Qt/E.
-Added the QPEMenuBar and QPEToolBar classes.
+configure doesn't search for X11 for TQt/E.
+Added the TQPEMenuBar and TQPEToolBar classes.
2002/04/27 14:19:22 phil
Removed the bug description at the top of the semaphore.py example now that it
is fixed.
-Changed %ConvertToSubClassCode for QObject to conform to the latest SIP.
+Changed %ConvertToSubClassCode for TQObject to conform to the latest SIP.
Replaced calls to sipMapCppToSelf() with sipMapCppToSelfSubClass() where
appropriate.
@@ -2491,26 +2491,26 @@ Added -module to all LDFLAGS.
2002/04/21 19:08:25 phil
-QCustomEvent now expects a PyObject * as its data.
+TQCustomEvent now expects a PyObject * as its data.
2002/04/20 22:43:13 phil
-Convert instances of the internal class QTableHeader to QHeader.
-Fixed a bug in pyuic for Qt3 relating to the format of slot signatures.
+Convert instances of the internal class TQTableHeader to TQHeader.
+Fixed a bug in pyuic for TQt3 relating to the format of slot signatures.
2002/04/20 16:02:00 phil
-Added missing /Transfer/ to QTable.setCellWidget() and QTable.setItem().
+Added missing /Transfer/ to TQTable.setCellWidget() and TQTable.setItem().
2002/04/18 23:17:07 phil
-Disabled QFont.dirty(), QClipboard.ownsClipboard(), QClipboard.ownsSelection()
+Disabled TQFont.dirty(), TQClipboard.ownsClipboard(), TQClipboard.ownsSelection()
and qAppName() for MacOS.
2002/04/18 12:10:42 phil
Updated the NEWS file regarding MacOS X support.
-qt.py now defines PYQT_VERSION as the PyQt release as a string.
+qt.py now defines PYQT_VERSION as the PyTQt release as a string.
configure no longer fails if X11 couldn't be found (for MacOS X).
@@ -2519,8 +2519,8 @@ Added support for MacOS X (untested).
2002/04/17 09:00:35 phil
-Added the missing /TransferThis/ options from all QCanvasItem ctors.
-Fixed QCanvasItem.setCanvas() to handle acquiring and losing a parent canvas.
+Added the missing /TransferThis/ options from all TQCanvasItem ctors.
+Fixed TQCanvasItem.setCanvas() to handle actquiring and losing a parent canvas.
2002/04/16 14:17:44 phil
@@ -2528,46 +2528,46 @@ Removed all the /ReleaseLock/ options.
Added Py_BEGIN_ALLOW_THREADS, Py_END_ALLOW_THREADS, SIP_BLOCK_THREADS and
SIP_UNBLOCK_THREADS to all handwritten code.
Thread support is only enabled if it is also enabled in Python.
-Added /CreatesThread/ and /NewThread/ to QThread.
+Added /CreatesThread/ and /NewThread/ to TQThread.
2002/04/14 18:07:56 phil
-Reinstated PyQtDisownTopLevelWidgets() because it solves the problem where we
+Reinstated PyTQtDisownTopLevelWidgets() because it solves the problem where we
can't guarantee that the order in which qApp and the top level widgets will be
destroyed.
Changed -MT to -MD for Windows (thanks to Paul Felix).
2002/04/06 17:38:53 phil
-Added the %ConvertToSubClassCode for QObject and all its sub-classes.
-Added the missing QToolTip.setEnabled() and QToolTip.enabled() methods.
-Fixed the build process so that the naming of the Qtopia package is more
+Added the %ConvertToSubClassCode for TQObject and all its sub-classes.
+Added the missing TQToolTip.setEnabled() and TQToolTip.enabled() methods.
+Fixed the build process so that the naming of the TQtopia package is more
consistent with other packages.
2002/03/30 00:50:10 phil
Make sure the ChangeLog is distributed and that autom4te.cache isn't.
-Merged the different versions of QEvent.Type.
-Fixed a bug in QStringList.__getitem__().
+Merged the different versions of TQEvent.Type.
+Fixed a bug in TQStringList.__getitem__().
2002/03/22 10:52:29 phil
Released as v3.1.
Slight change to the build process so make sure that Windows Makefiles always
-use the very latest Qt library.
+use the very latest TQt library.
2002/03/22 10:40:21 phil
configure will now use qt-mt in preference to qt if it finds both.
Removed build.py from the distribution until it is finished.
-Added /Transfer/ to QThread.postEvent().
-Added /ReleaseLock/ to QThread.postEvent(), which might not be required but
+Added /Transfer/ to TQThread.postEvent().
+Added /ReleaseLock/ to TQThread.postEvent(), which might not be retquired but
shouldn't do any harm.
2002/03/20 15:58:33 phil
-configure now handles Qt v3.0.3.
-Integration of uic changes in Qt v3.0.3.
+configure now handles TQt v3.0.3.
+Integration of uic changes in TQt v3.0.3.
Applied Rene Hogendoorn's latest patch for slot signatures for pyuic3.
@@ -2589,14 +2589,14 @@ Fixed a couple of pyuic3 bugs related to SQL forms (thanks to Rene Hogendoom).
2002/03/09 18:15:48 phil
Various build changes for Windows.
-Fixed a bug in QDomDocument.setContent().
+Fixed a bug in TQDomDocument.setContent().
Fixed the qtxml module so that it doesn't get a DLL load failure on Windows.
2002/03/04 17:18:31 phil
A couple of changes to eric to reflect the new module structure.
-Fixed QThread for Qt v2.
-Fixed QTable.setNumRows() in pyuic for Qt v3.
+Fixed TQThread for TQt v2.
+Fixed TQTable.setNumRows() in pyuic for TQt v3.
2002/02/25 16:26:19 phil
@@ -2609,22 +2609,22 @@ Went through everything adding /ReleaseLock/ to methods that might block.
2002/02/24 01:36:06 phil
-configure now searches for Qt v3.0.2.
-Added QLineEdit.setPasswordChar() and QLineEdit.passwordChar() for Qt v3.0.2
+configure now searches for TQt v3.0.2.
+Added TQLineEdit.setPasswordChar() and TQLineEdit.passwordChar() for TQt v3.0.2
but left them commented out at they are marked as incompatible add ons.
-Updated pyuic3 from the changes in Qt v3.0.2.
-Added thread support, ie. QApplication.lock(), QApplication.unlock(),
-QApplication.locked(), QApplication.tryLock() and the QMutex, QSemaphore,
-QThread and QWaitCondition classes.
+Updated pyuic3 from the changes in TQt v3.0.2.
+Added thread support, ie. TQApplication.lock(), TQApplication.unlock(),
+TQApplication.locked(), TQApplication.tryLock() and the TQMutex, TQSemaphore,
+TQThread and TQWaitCondition classes.
Re-did all of the special methods following the SIP changes.
2002/02/15 14:45:33 phil
-Added the missing QPixmap.grabWidget().
+Added the missing TQPixmap.grabWidget().
2002/02/14 14:18:35 phil
-Fixed bug in pyuic fro Qt v3 related to "black" and "white".
+Fixed bug in pyuic fro TQt v3 related to "black" and "white".
2002/02/08 15:51:02 phil
@@ -2634,14 +2634,14 @@ The tr() methods now honour QT_NO_TRANSLATION.
2002/02/08 11:54:11 phil
More work on the new build system.
-Fixed a bug in eric for PyQt v3.
-Fixed a couple of QTable related bugs in pyuic for Qt v3.
-Fixed a QToolBar related bug in pyuic for Qt v3.
-Fixed bugs with QSqlCursor.
+Fixed a bug in eric for PyTQt v3.
+Fixed a couple of TQTable related bugs in pyuic for TQt v3.
+Fixed a TQToolBar related bug in pyuic for TQt v3.
+Fixed bugs with TQSqlCursor.
2002/01/28 13:42:24 phil
-Fixed bug relating to escaping double quotes in pyuic for Qt v2.x.
+Fixed bug relating to escaping double quotes in pyuic for TQt v2.x.
2002/01/28 11:09:08 phil
@@ -2653,21 +2653,21 @@ or tmake.
2002/01/09 11:47:32 phil
Put version control into the qtpe module and changed the build system so that
-it uses a version compatible with both Qtopia and the Zaurus v1.02 ROMs.
+it uses a version compatible with both TQtopia and the Zaurus v1.02 ROMs.
Updated README.Zaurus.
Removed the qtpe module from the documentation until SIP is changed to be
tolerant of missing version information.
2002/01/08 20:17:11 phil
-Removed PyQtDisownTopLevelWidgets() from the QApplication and QPEApplication
-dtors because the Qt widget mapper doesn't delete the widgets in the map.
+Removed PyTQtDisownTopLevelWidgets() from the TQApplication and TQPEApplication
+dtors because the TQt widget mapper doesn't delete the widgets in the map.
2002/01/05 13:16:45 phil
Added the warning about using flash devices as swap on the Zaurus.
-Added the missing QActionGroup.add() and QActionGroup.addSeparator() methods.
-Implemented enough additional features for the Large configuration of Qt/E.
+Added the missing TQActionGroup.add() and TQActionGroup.addSeparator() methods.
+Implemented enough additional features for the Large configuration of TQt/E.
2002/01/04 23:32:42 phil
@@ -2681,9 +2681,9 @@ Minor updates to READMEs etc.
2002/01/03 00:41:26 phil
The build script now copes when tmake and/or sgmltools is missing.
-Added support to the build system for QPE.
+Added support to the build system for TQPE.
Added the qtpe module.
-Added the QPEApplication class (not yet working).
+Added the TQPEApplication class (not yet working).
Changed the build system so that there is only one instance of the helper code
and it is more a part of the build system rather than being so closely tied in
which SIP.
@@ -2692,37 +2692,37 @@ to be specified.
2001/12/27 12:28:07 phil
-Fixed all Qt3 writeBlock() methods.
-Changes required by the latest SIP.
-Support for Qt/Embedded on the Sharp Zaurus.
-Removed the QDragResponseEvent internal class.
-Added the missing QImageTextKeyLang class.
-Added the missing QImage.dotsPerMeterX(), QImage.dotsPerMeterY(),
-QImage.setDotsPerMeterX(), QImage.setDotsPerMeterY(), QImage.offset(),
-QImage.setOffset(), QImage.textList(), QImage.textLanguages(),
-QImage.textKeys(), QImage.text() and QImage.setText() methods.
-Added the QValueList<QImageTextLangKey> mapped type.
+Fixed all TQt3 writeBlock() methods.
+Changes retquired by the latest SIP.
+Support for TQt/Embedded on the Sharp Zaurus.
+Removed the TQDragResponseEvent internal class.
+Added the missing TQImageTextKeyLang class.
+Added the missing TQImage.dotsPerMeterX(), TQImage.dotsPerMeterY(),
+TQImage.setDotsPerMeterX(), TQImage.setDotsPerMeterY(), TQImage.offset(),
+TQImage.setOffset(), TQImage.textList(), TQImage.textLanguages(),
+TQImage.textKeys(), TQImage.text() and TQImage.setText() methods.
+Added the TQValueList<TQImageTextLangKey> mapped type.
2001/12/09 11:38:47 phil
-configure now looks for Qt v3.0.1.
-The build system now handles Qt v3.0.1.
-.sip file changes needed by Qt v3.0.1.
-Updated pyuic3 from Qt v3.0.1.
+configure now looks for TQt v3.0.1.
+The build system now handles TQt v3.0.1.
+.sip file changes needed by TQt v3.0.1.
+Updated pyuic3 from TQt v3.0.1.
2001/12/06 11:03:29 phil
Fixed more pyuic3 bugs.
-Fixed the ownership bug in all QCheckListItem ctors.
+Fixed the ownership bug in all TQCheckListItem ctors.
2001/12/04 10:40:56 phil
-Fixed bugs in QSocket.readLine() and QSocket.readBlock().
+Fixed bugs in TQSocket.readLine() and TQSocket.readBlock().
2001/12/01 18:37:31 phil
-Fixed QWidget.reparent().
-Removed the QDateTimeEditBase internal class.
+Fixed TQWidget.reparent().
+Removed the TQDateTimeEditBase internal class.
Bug fixes for pyuic3.
configure now allows the location of zlib to be specified.
Used AC_HELP_STRING throughout acinclude.m4.
@@ -2734,22 +2734,22 @@ Minor fixes for pyuic3.
2001/11/17 14:48:19 phil
Added the missing qInitNetworkProtocols() function to the qtnetwork module.
-Added the missing QRect.contains() variant.
-Changed QByteArray, QCString and QString %ConvertToTypeCode to convert None
+Added the missing TQRect.contains() variant.
+Changed TQByteArray, TQCString and TQString %ConvertToTypeCode to convert None
objects to empty instances.
-Changed QFileInfoList, QKeySequence, QList<QNetworkOperation>, QMemArray<int>,
-QObjectList, QPair<int,int>, QPtrList<QNetworkOperation>,
-QPtrList<QWindowsMime>, QStrList, QValueList<QUrlInfo>, QValueList<int> and
-QWidgetList %ConvertToTypeCode to handle None objects.
+Changed TQFileInfoList, TQKeySequence, TQList<TQNetworkOperation>, TQMemArray<int>,
+TQObjectList, TQPair<int,int>, TQPtrList<TQNetworkOperation>,
+TQPtrList<TQWindowsMime>, TQStrList, TQValueList<TQUrlInfo>, TQValueList<int> and
+TQWidgetList %ConvertToTypeCode to handle None objects.
Fixes to the .spec file.
-Fixed ownership issues with QWidget.reparent().
+Fixed ownership issues with TQWidget.reparent().
2001/11/11 19:01:27 phil
-configure will search for Qt v2.3.2.
-Fixed bugs in pyuic for Qt3 (thanks to Andreas Gerstlauer).
+configure will search for TQt v2.3.2.
+Fixed bugs in pyuic for TQt3 (thanks to Andreas Gerstlauer).
Fixed bug in Windows detection (thanks to Andreas Gerstlauer).
-Fixed the Qt3 QSizePolicy ctor.
+Fixed the TQt3 TQSizePolicy ctor.
2001/10/28 10:33:03 phil
@@ -2763,47 +2763,47 @@ Fixed the ChangeLog.
2001/10/26 23:32:23 phil
Changed the way Python special methods are defined to conform to the latest
SIP.
-Added __unicode__ to QString for Python v2.2.
-Fixed a couple of bugs in pyuic for Qt3.
-Changed QString.__str__() to do the "right thing".
+Added __unicode__ to TQString for Python v2.2.
+Fixed a couple of bugs in pyuic for TQt3.
+Changed TQString.__str__() to do the "right thing".
2001/10/21 13:51:26 phil
-Fixed the new QImage ctor.
-Fixed the long standing problem converting a QString to Python using unicode().
-Fixed bugs with QFile.readBlock() and QFile.readLine().
+Fixed the new TQImage ctor.
+Fixed the long standing problem converting a TQString to Python using unicode().
+Fixed bugs with TQFile.readBlock() and TQFile.readLine().
2001/10/19 23:34:04 phil
Applied Alan Eldridge's patch for the .spec file.
-Made the second parameter to QObject.tr() and QObject.trUtf8() optional.
-Added the missing QImage ctor.
-Fixed pyuic for Qt3.
+Made the second parameter to TQObject.tr() and TQObject.trUtf8() optional.
+Added the missing TQImage ctor.
+Fixed pyuic for TQt3.
2001/10/13 11:20:53 phil
-Fixed problem with QMenuData.insertItem() when the QKeySequence argument was
+Fixed problem with TQMenuData.insertItem() when the TQKeySequence argument was
omitted.
Ported the remaining examples.
2001/10/12 22:46:59 phil
Minor fixes to get the SQL module to build.
-Created a separate examples directory for Qt3.
-Changes required for the final release of Qt v3.0.0.
+Created a separate examples directory for TQt3.
+Changes retquired for the final release of TQt v3.0.0.
2001/10/12 10:19:27 phil
Added the qtsql module.
-Added the QDataBrowser, QDataTable, QDataView, QEditorFactory, QGridView,
-QLibrary, QObjectCleanupHandler, QProcess, QSql, QSqlCursor, QSqlDatabase,
-QSqlDriver, QSqlEditorFactory, QSqlError, QSqlField, QSqlFieldInfo, QSqlForm,
-QSqlIndex, QSqlPropertyMap, QSqlQuery, QSqlRecord, QSqlRecordInfo, QSqlResult,
-QStyleFactory and QWindowsMime Qt3 classes.
-Implemented QPtrList<QWindowsMime>.
-Renamed QLineEdit.del() to QLineEdit.delChar().
-Renamed QMultiLineEdit.deleteChar() to QMultiLineEdit.delChar().
-Fixed QLineEdit super class for Qt3.
+Added the TQDataBrowser, TQDataTable, TQDataView, TQEditorFactory, TQGridView,
+TQLibrary, TQObjectCleanupHandler, TQProcess, TQSql, TQSqlCursor, TQSqlDatabase,
+TQSqlDriver, TQSqlEditorFactory, TQSqlError, TQSqlField, TQSqlFieldInfo, TQSqlForm,
+TQSqlIndex, TQSqlPropertyMap, TQSqlQuery, TQSqlRecord, TQSqlRecordInfo, TQSqlResult,
+TQStyleFactory and TQWindowsMime TQt3 classes.
+Implemented TQPtrList<TQWindowsMime>.
+Renamed TQLineEdit.del() to TQLineEdit.delChar().
+Renamed TQMultiLineEdit.deleteChar() to TQMultiLineEdit.delChar().
+Fixed TQLineEdit super class for TQt3.
2001/10/07 18:47:03 phil
@@ -2812,78 +2812,78 @@ Fixed a bug in the build process.
2001/10/06 18:20:00 phil
-Fixed QLayoutIterator.next().
-configure now handles multi-threaded Qt.
+Fixed TQLayoutIterator.next().
+configure now handles multi-threaded TQt.
Moved Canvas module classes to the new qtcanvas module.
Moved Network module classes to the new qtnetwork module.
Moved Table module classes to the new qttable module.
Moved XML module classes to the new qtxml module.
-Added the QSound class.
+Added the TQSound class.
2001/10/04 21:33:48 phil
-Added the Qt3 classes QDateEdit, QDateTimeEdit, QTimeEdit, QErrorMessage,
-QPixmapCache and QSettings.
-Added the Qt2 class QDns.
-Added QCustomMenuEvent, QIMEvent and QTabletEvent to the list of new Qt3
+Added the TQt3 classes TQDateEdit, TQDateTimeEdit, TQTimeEdit, TQErrorMessage,
+TQPixmapCache and TQSettings.
+Added the TQt2 class TQDns.
+Added TQCustomMenuEvent, TQIMEvent and TQTabletEvent to the list of new TQt3
classes in the documentation.
Restructure the top-level SIP files so that the documentation is completely
separate.
2001/09/30 10:48:01 phil
-Implemented QPair<int,int>.
+Implemented TQPair<int,int>.
Bug fixing of revised hand-written code.
-Changes to get pyuic to compile against Qt3.
+Changes to get pyuic to compile against TQt3.
2001/09/28 23:13:01 phil
-Upgraded to Qt v3.0.0Beta6.
-Changes required to handwritten code by the new sipParseArgs().
-Added the missing QObject.connect() variant.
-Renamed QDate.isValidDate() to QDate.isValid().
-Renamed QTime.isValidTime() to QTime.isValid().
-Renamed QFile.fileExists() to QFile.exists().
-Renamed QFile.removeFile() to QFile.remove().
+Upgraded to TQt v3.0.0Beta6.
+Changes retquired to handwritten code by the new sipParseArgs().
+Added the missing TQObject.connect() variant.
+Renamed TQDate.isValidDate() to TQDate.isValid().
+Renamed TQTime.isValidTime() to TQTime.isValid().
+Renamed TQFile.fileExists() to TQFile.exists().
+Renamed TQFile.removeFile() to TQFile.remove().
2001/09/23 20:04:21 phil
-Re-added QInterlaceStyle.
-Changes required by Qt v3.0.0 Beta5.
-Implemented QMenuItem as an opaque class.
-Added the missing QSGIStyle class.
-Added the missing QMenuData.findItem(), QMotifPlusStyle.drawMenuBarItem(),
-QMotifPlusStyle.drawPopupMenuItem(), QMotifStyle.drawPopupMenuItem(),
-QMotifStyle.extraPopupMenuItemWidth(), QMotifStyle.popupMenuItemHeight(),
-QPlatinumStyle.drawPopupMenuItem(), QPlatinumStyle.extraPopupMenuItemWidth(),
-QPlatinumStyle.popupMenuItemHeight(), QPopupMenu.drawItem(),
-QPopupMenu.itemHeight(), QStyle.drawPopupMenuItem(), QStyle.drawMenuBarItem(),
-QStyle.extraPopupMenuItemWidth(), QStyle.popupMenuItemHeight(),
-QWindowsStyle.drawMenuBarItem(), QWindowsStyle.extraPopupMenuItemWidth(),
-QWindowsStyle.popupMenuItemHeight().
-Added the QStyleOption Qt3 class.
-Classes converted to Qt3: QGL et al, QCDEStyle, QCommonStyle, QMotifPlusStyle,
-QMotifStyle, QPlatinumStyle, QStyle, QWindowsStyle.
+Re-added TQInterlaceStyle.
+Changes retquired by TQt v3.0.0 Beta5.
+Implemented TQMenuItem as an opaque class.
+Added the missing TQSGIStyle class.
+Added the missing TQMenuData.findItem(), TQMotifPlusStyle.drawMenuBarItem(),
+TQMotifPlusStyle.drawPopupMenuItem(), TQMotifStyle.drawPopupMenuItem(),
+TQMotifStyle.extraPopupMenuItemWidth(), TQMotifStyle.popupMenuItemHeight(),
+TQPlatinumStyle.drawPopupMenuItem(), TQPlatinumStyle.extraPopupMenuItemWidth(),
+TQPlatinumStyle.popupMenuItemHeight(), TQPopupMenu.drawItem(),
+TQPopupMenu.itemHeight(), TQStyle.drawPopupMenuItem(), TQStyle.drawMenuBarItem(),
+TQStyle.extraPopupMenuItemWidth(), TQStyle.popupMenuItemHeight(),
+TQWindowsStyle.drawMenuBarItem(), TQWindowsStyle.extraPopupMenuItemWidth(),
+TQWindowsStyle.popupMenuItemHeight().
+Added the TQStyleOption TQt3 class.
+Classes converted to TQt3: TQGL et al, TQCDEStyle, TQCommonStyle, TQMotifPlusStyle,
+TQMotifStyle, TQPlatinumStyle, TQStyle, TQWindowsStyle.
2001/09/21 17:12:07 phil
-The following classes were fully converted to Qt3: QFile, QFileDialog,
-QFileInfo, QFontDatabase, QFontDialog, QIconView, QIconViewItem, QInputDialog,
-QNetworkProtocol, QPaintDeviceMetrics, QPrintDialog, QPrinter, QProgressBar,
-QProgressDialog, QRadioButton, QSemiModal, QServerSocket, QSimpleRichText,
-QSizeGrip, QSocket, QSpinBox, QTabDialog, QTextBrowser, QTextStream, QUrl,
-QUrlOperator, QWhatsThis, QWidgetStack, QWizard, QWorkspace.
-Added the missing QFileIconProvider, QFontDialog, QTextBrowser and QWidgetStack
+The following classes were fully converted to TQt3: TQFile, TQFileDialog,
+TQFileInfo, TQFontDatabase, TQFontDialog, TQIconView, TQIconViewItem, TQInputDialog,
+TQNetworkProtocol, TQPaintDeviceMetrics, TQPrintDialog, TQPrinter, TQProgressBar,
+TQProgressDialog, TQRadioButton, TQSemiModal, TQServerSocket, TQSimpleRichText,
+TQSizeGrip, TQSocket, TQSpinBox, TQTabDialog, TQTextBrowser, TQTextStream, TQUrl,
+TQUrlOperator, TQWhatsThis, TQWidgetStack, TQWizard, TQWorkspace.
+Added the missing TQFileIconProvider, TQFontDialog, TQTextBrowser and TQWidgetStack
private copy ctors.
-Added the missing QFileDialog.done(), QIconView.dropped(),
-QIconViewItem.dropped(), QNetworkProtocol.newChildren(),
-QPrintDialog.addButton(), QProgressDialog.forceShow(),
-QUrlOperator.newChildren() and QUrlOperator.startNextCopy() methods.
-Added the missing QIconDrag and QIconDragItem classes.
-Implemented QList<QNetworkOperation>, QPtrList<QNetworkOperation>,
-QValueList<QIconDragItem> and QValueList<QUrlInfo>.
-Added the missing TransferThis to the QPrintDialog ctor.
-Moved the QList<> and QPtrList<> templates to their own files.
+Added the missing TQFileDialog.done(), TQIconView.dropped(),
+TQIconViewItem.dropped(), TQNetworkProtocol.newChildren(),
+TQPrintDialog.addButton(), TQProgressDialog.forceShow(),
+TQUrlOperator.newChildren() and TQUrlOperator.startNextCopy() methods.
+Added the missing TQIconDrag and TQIconDragItem classes.
+Implemented TQList<TQNetworkOperation>, TQPtrList<TQNetworkOperation>,
+TQValueList<TQIconDragItem> and TQValueList<TQUrlInfo>.
+Added the missing TransferThis to the TQPrintDialog ctor.
+Moved the TQList<> and TQPtrList<> templates to their own files.
2001/09/21 00:32:29 phil
@@ -2891,101 +2891,101 @@ Forgot to add the new qmemarray.sip file.
2001/09/21 00:31:34 phil
-Fully converted the following classes to Qt3: QAction, QActionGroup,
-QColorDialog, QDial, QDom et al, QMessageBox, QPopupMenu, QPushButton,
-QScrollBar, QScrollView, QSplitter, QStatusBar, QTable, QTableItem, QTabWidget,
-QToolButton, QToolTip, QToolTipGroup.
-Added the following missing methods: QColorDialog.customColor(),
-QColorDialog.customCount(), QColorDialog.getRgba(),
-QColorDialog.setCustomColor(), QScrollBar.minValue(), QScrollBar.maxValue(),
-QScrollBar.setMinValue(), QScrollBar.setMaxValue(), QScrollBar.lineStep(),
-QScrollBar.pageStep(), QScrollBar.setLineStep(), QScrollBar.setPageStep(),
-QScrollBar.value(), QScrollBar.setValue(), QToolTip.hide(),
-QToolTipGroup.enabled(), QToolTipGroup.setEnabled().
-Added the missing QDir.match() variant.
-Removed the handling of QValueList<int> out of QSplitter and made it generic.
-Added the following Qt3 classes: QCheckTableItem, QComboItem.
-Removed QTabWidget.selected() as it is not part of the official API.
+Fully converted the following classes to TQt3: TQAction, TQActionGroup,
+TQColorDialog, TQDial, TQDom et al, TQMessageBox, TQPopupMenu, TQPushButton,
+TQScrollBar, TQScrollView, TQSplitter, TQStatusBar, TQTable, TQTableItem, TQTabWidget,
+TQToolButton, TQToolTip, TQToolTipGroup.
+Added the following missing methods: TQColorDialog.customColor(),
+TQColorDialog.customCount(), TQColorDialog.getRgba(),
+TQColorDialog.setCustomColor(), TQScrollBar.minValue(), TQScrollBar.maxValue(),
+TQScrollBar.setMinValue(), TQScrollBar.setMaxValue(), TQScrollBar.lineStep(),
+TQScrollBar.pageStep(), TQScrollBar.setLineStep(), TQScrollBar.setPageStep(),
+TQScrollBar.value(), TQScrollBar.setValue(), TQToolTip.hide(),
+TQToolTipGroup.enabled(), TQToolTipGroup.setEnabled().
+Added the missing TQDir.match() variant.
+Removed the handling of TQValueList<int> out of TQSplitter and made it generic.
+Added the following TQt3 classes: TQCheckTableItem, TQComboItem.
+Removed TQTabWidget.selected() as it is not part of the official API.
2001/09/16 18:12:22 phil
-Removed the Transfer flag from the QWidget parameter to QLayout.add(),
-QGridLayout.addWidget(), QGridLayout.addMultiCellWidget(),
-QBoxLayout.addWidget() and QBoxLayout.insertWidget().
+Removed the Transfer flag from the TQWidget parameter to TQLayout.add(),
+TQGridLayout.addWidget(), TQGridLayout.addMultiCellWidget(),
+TQBoxLayout.addWidget() and TQBoxLayout.insertWidget().
Fixes to the build process so it works with the latest automake.
2001/09/14 16:40:03 phil
-Added the missing QLayoutIterator.next() method.
+Added the missing TQLayoutIterator.next() method.
2001/09/14 15:17:17 phil
-Changes to QObject.tr() and QObject.trUtf8() so that they work as expected with
-Qt3.
-Put back the separate builds for Qt v2.3.0 and v2.3.1.
-Put back QPrinter.PageSize.Custom for Qt v2.3.1.
+Changes to TQObject.tr() and TQObject.trUtf8() so that they work as expected with
+TQt3.
+Put back the separate builds for TQt v2.3.0 and v2.3.1.
+Put back TQPrinter.PageSize.Custom for TQt v2.3.1.
Added the new /AutoGen/ option where needed.
2001/09/09 16:26:16 phil
-QGrid, QLCDNumber, QListBox, QListBoxItem, QListBoxPixmap, QListBoxText,
-QMenuBar, QMenuData, QRangeControl and QSlider fully converted to Qt3.
-A QString or int can now be supplied whenever a QKeySequence is expected.
-The missing QListBox.isRubberSelecting(), QMenuBar.activateItemAt(),
-QMenuBar.focusInEvent(), QMenuBar.isDefaultUp(), QMenuBar.minimumSize(),
-QMenuBar.minimumSizeHint(), QMenuBar.setDefaultUp() methods have been added.
+TQGrid, TQLCDNumber, TQListBox, TQListBoxItem, TQListBoxPixmap, TQListBoxText,
+TQMenuBar, TQMenuData, TQRangeControl and TQSlider fully converted to TQt3.
+A TQString or int can now be supplied whenever a TQKeySequence is expected.
+The missing TQListBox.isRubberSelecting(), TQMenuBar.activateItemAt(),
+TQMenuBar.focusInEvent(), TQMenuBar.isDefaultUp(), TQMenuBar.minimumSize(),
+TQMenuBar.minimumSizeHint(), TQMenuBar.setDefaultUp() methods have been added.
2001/09/07 16:15:28 phil
-Added the new QKeySequence .sip file and remove the QInterlaceStyle .sip file.
+Added the new TQKeySequence .sip file and remove the TQInterlaceStyle .sip file.
2001/09/07 16:13:22 phil
-Added the missing QAccel ctor.
-Added the missing QHeader.setUpdatesEnabled(), QHeader.showEvent() and
-QLineEdit.displayText() methods.
-Added the missing QColorDrag class.
-Converted all the Qt3 changes to Beta4.
-Added the QKeySequence Qt3 class.
-Fully converted QComboBox, QDialog, QDragObject, QGridLayout, QHeader, QLayout,
-QLineEdit, QUriDrag and QWidgetItem to Qt3.
-Removed the QBitArray related methods from QVariant.
-Removed the QInterlaceStyle class.
-Remove QPrinter.PageSize.Custom so that the v2.3.1 build is the same as v2.3.0.
-QObject.className() now works with Python classes.
+Added the missing TQAccel ctor.
+Added the missing TQHeader.setUpdatesEnabled(), TQHeader.showEvent() and
+TQLineEdit.displayText() methods.
+Added the missing TQColorDrag class.
+Converted all the TQt3 changes to Beta4.
+Added the TQKeySequence TQt3 class.
+Fully converted TQComboBox, TQDialog, TQDragObject, TQGridLayout, TQHeader, TQLayout,
+TQLineEdit, TQUriDrag and TQWidgetItem to TQt3.
+Removed the TQBitArray related methods from TQVariant.
+Removed the TQInterlaceStyle class.
+Remove TQPrinter.PageSize.Custom so that the v2.3.1 build is the same as v2.3.0.
+TQObject.className() now works with Python classes.
Upgraded to libtool-1.4.1.
2001/09/02 17:13:50 phil
-Fully converted the following classes to Qt3: QButton, QButtonGroup, QCanvas et
-al, QCheckBox, QCheckListItem, QGroupBox, QLabel, QListView, QListViewItem.
+Fully converted the following classes to TQt3: TQButton, TQButtonGroup, TQCanvas et
+al, TQCheckBox, TQCheckListItem, TQGroupBox, TQLabel, TQListView, TQListViewItem.
pyuic now generates double quoted strings rather than single quoted strings.
Upgraded to autoconf-2.52 and automake-1.5.
2001/08/15 19:18:39 phil
-Added the Qt3 classes QRegExpValidator and QTextEdit.
-Added the missing QPainter.pos() and QTranslator.messages() methods.
-Added all methods that use QDataStream now that it has been implemented.
-Removed QTableHeader as it isn't part of the documented API.
-Fully converted the QFrame, QHBox, QPainter, QPicture, QPointArray, QRect,
-QRegExp, QSessionManager, QStyleSheet, QStyleSheetItem, QTab, QTabBar,
-QTextCodec, QTextView, QTranslator, QTranslatorMessage, QVariant, QVBox and
-QWMatrix classes to Qt3.
+Added the TQt3 classes TQRegExpValidator and TQTextEdit.
+Added the missing TQPainter.pos() and TQTranslator.messages() methods.
+Added all methods that use TQDataStream now that it has been implemented.
+Removed TQTableHeader as it isn't part of the documented API.
+Fully converted the TQFrame, TQHBox, TQPainter, TQPicture, TQPointArray, TQRect,
+TQRegExp, TQSessionManager, TQStyleSheet, TQStyleSheetItem, TQTab, TQTabBar,
+TQTextCodec, TQTextView, TQTranslator, TQTranslatorMessage, TQVariant, TQVBox and
+TQWMatrix classes to TQt3.
2001/08/14 16:10:26 phil
-Added the QDesktopWidget, QDockArea and QDockWindow Qt3 widgets.
-Fully converted the QApplication, QClipboard, QChar, QColorGroup, QDate,
-QDateTime, QFontMetrics, QIconSet, QMainWindow, QMimeSource,
-QMimeSourceFactory, QPalette, QString, QTime and QToolBar classes to Qt3.
-Added the missing QChar.nbsp, QChar.isLetterOrNumber(), QChar.mirroredChar(),
-QImage.inputFormatList(), QImage.outputFormatList(),
-QMimeSourceFactory.filePath(), QMimeSourceFactory.addFilePath() and
-QPalette.inactive() methods.
-Added the missing QString.append() and QString.prepend() variants.
-Renamed QTime.IsValidTime() to QTime.isValidTime().
-Made QList<QToolBar> a mapped type now that SIP can handle mapped templates.
+Added the TQDesktopWidget, TQDockArea and TQDockWindow TQt3 widgets.
+Fully converted the TQApplication, TQClipboard, TQChar, TQColorGroup, TQDate,
+TQDateTime, TQFontMetrics, TQIconSet, TQMainWindow, TQMimeSource,
+TQMimeSourceFactory, TQPalette, TQString, TQTime and TQToolBar classes to TQt3.
+Added the missing TQChar.nbsp, TQChar.isLetterOrNumber(), TQChar.mirroredChar(),
+TQImage.inputFormatList(), TQImage.outputFormatList(),
+TQMimeSourceFactory.filePath(), TQMimeSourceFactory.addFilePath() and
+TQPalette.inactive() methods.
+Added the missing TQString.append() and TQString.prepend() variants.
+Renamed TQTime.IsValidTime() to TQTime.isValidTime().
+Made TQList<TQToolBar> a mapped type now that SIP can handle mapped templates.
2001/08/10 18:03:56 phil
@@ -2993,33 +2993,33 @@ Final documentation changes for v2.5.
2001/08/10 14:54:29 phil
-Fixed typo in the Qt3 versioning.
+Fixed typo in the TQt3 versioning.
2001/08/08 23:28:38 phil
-User events get converted to QCustomEvents rather than QEvents.
+User events get converted to TQCustomEvents rather than TQEvents.
Finally decided to implement Display * as void *.
-QEvent etc., QFont, QFontInfo, QMultiLineEdit and QTableView converted to Qt3.
+TQEvent etc., TQFont, TQFontInfo, TQMultiLineEdit and TQTableView converted to TQt3.
2001/08/07 22:37:16 phil
-QWidget is now converted to Qt3.
-Added the missing QWidget.customEvent().
+TQWidget is now converted to TQt3.
+Added the missing TQWidget.customEvent().
Changed Display to be a class rather than a struct.
-Fix a problem with the normal build process caused by the new Qt3 stuff.
+Fix a problem with the normal build process caused by the new TQt3 stuff.
Added the temporary qt3.sip-in file.
2001/08/07 19:57:06 phil
Fixed a typo in the clean target.
-Added Qt3 support for QColor, QCursor, QObject, QPaintDevice, QPixmap and
-QSizePolicy.
-Added QColor.getHsv().
+Added TQt3 support for TQColor, TQCursor, TQObject, TQPaintDevice, TQPixmap and
+TQSizePolicy.
+Added TQColor.getHsv().
Added the Display opaque structure.
Added qt_xdisplay(), qt_xscreen() and qt_xrootwin().
-Added QPaintDevice.x11Display(), QPaintDevice.x11AppDisplay,
-QPaintDevice.x11SetAppDpiX() and QPaintDevice.x11SetAppDpiY().
-Added the missing QPixmap.save() variant.
+Added TQPaintDevice.x11Display(), TQPaintDevice.x11AppDisplay,
+TQPaintDevice.x11SetAppDpiX() and TQPaintDevice.x11SetAppDpiY().
+Added the missing TQPixmap.save() variant.
2001/08/06 19:57:09 phil
@@ -3031,7 +3031,7 @@ Changed the configure test for OpenGL support.
2001/08/01 22:15:38 phil
More minor build changes.
-Fixed QApplication.winVersion().
+Fixed TQApplication.winVersion().
Fixed Windows pyuic Makefiles.
@@ -3039,15 +3039,15 @@ Fixed Windows pyuic Makefiles.
Changed the build process so that the current version doesn't have to be the
latest version.
Changed AMTAR to TAR.
-Generate Makefiles that support Qt-NC (untested).
+Generate Makefiles that support TQt-NC (untested).
2001/07/27 22:18:26 phil
The different types that are mapped to Python lists will now return an empty
list (rather than None) when given a NULL pointer.
Fixed a problem detecting -fno-exceptions.
-Added QDataStream.
-Added the QDom classes.
+Added TQDataStream.
+Added the TQDom classes.
2001/07/21 15:46:35 phil
@@ -3057,13 +3057,13 @@ Added version control to the qtgl module.
2001/07/20 23:19:06 phil
Fixed the memory leaks related to sipMapCppToSelf() in hand-written code.
-Changed the build system to handle different versions of PyQt for different
-versions of Qt.
+Changed the build system to handle different versions of PyTQt for different
+versions of TQt.
2001/07/17 07:44:09 phil
Changes needed by the latest SIP - Version and %MappedType.
-Fixed QScrollView.addChild().
+Fixed TQScrollView.addChild().
2001/06/29 16:24:55 phil
@@ -3081,43 +3081,43 @@ Moved the BlackAdder specific stuff to its own directory.
2001/06/19 15:54:23 phil
-Fixed the problems with QLineEdit.event() and QMultiLineEdit.event().
+Fixed the problems with TQLineEdit.event() and TQMultiLineEdit.event().
2001/06/18 10:35:45 phil
-Re-enabled QInterlaceStype for Qt v2.3.1+.
-configure now looks for Qt v2.3.1.
-Added QPrinter.PageSize.Custom.
-Updates to pyuic from Qt v2.3.1.
+Re-enabled TQInterlaceStype for TQt v2.3.1+.
+configure now looks for TQt v2.3.1.
+Added TQPrinter.PageSize.Custom.
+Updates to pyuic from TQt v2.3.1.
2001/06/02 17:02:01 phil
-Fixed the QTranslatorMessage documentation.
+Fixed the TQTranslatorMessage documentation.
2001/05/31 21:01:16 phil
-Added the missing QTranslator methods.
-Added the QTranslatorMessage class.
+Added the missing TQTranslator methods.
+Added the TQTranslatorMessage class.
2001/05/30 21:22:42 phil
-Fixed incorrect definition of QTextView.setText().
+Fixed incorrect definition of TQTextView.setText().
Added the /Constraint/ argument everywhere it was needed.
Removed all methods that could never be called because they had different C++
signatures, but the same Python signatures.
2001/05/22 19:36:24 phil
-Added the missing QWidget.reparent() variant.
+Added the missing TQWidget.reparent() variant.
Added the qtgl module.
2001/05/14 20:14:36 phil
-Removed the QInterlaceStyle class untill Trolltech fix the Windows port.
+Removed the TQInterlaceStyle class untill Trolltech fix the Windows port.
2001/05/13 17:16:43 phil
-Added the missing variant of QInputDialog.getText().
+Added the missing variant of TQInputDialog.getText().
2001/05/07 16:50:14 phil
@@ -3129,7 +3129,7 @@ Minor configuration changes.
2001/04/22 15:26:48 phil
-Added the missing QFileDialog.getExistingDirectory() method.
+Added the missing TQFileDialog.getExistingDirectory() method.
Upgraded to automake v1.4d.
@@ -3138,23 +3138,23 @@ Final changes for the release of v2.4.
2001/04/15 00:38:40 phil
-Added missing methods to QMotifStyle.
-Added missing enum value to QPalette.
+Added missing methods to TQMotifStyle.
+Added missing enum value to TQPalette.
Updated the themes.py example.
2001/04/13 13:52:21 phil
-Added QCustomEvent.
+Added TQCustomEvent.
2001/04/08 13:24:53 phil
-Added the missing final parameter to QMultiLineEdit.insertAt().
+Added the missing final parameter to TQMultiLineEdit.insertAt().
Updated the documentation ready for v2.4.
2001/03/05 23:13:16 phil
-Added the new methods and classes implemented in Qt v2.3.0-beta1.
-Updated pyuic from Qt v2.3.0-beta1.
+Added the new methods and classes implemented in TQt v2.3.0-beta1.
+Updated pyuic from TQt v2.3.0-beta1.
2001/03/04 16:22:05 phil
@@ -3168,11 +3168,11 @@ installed.
2001/02/16 10:53:21 phil
-Added a couple of methods missing from QLineEdit.
+Added a couple of methods missing from TQLineEdit.
2001/02/04 14:39:56 phil
-Configure now checks for Qt v2.2.4 and Python v2.1.
+Configure now checks for TQt v2.2.4 and Python v2.1.
Release as v2.3.
@@ -3182,7 +3182,7 @@ Various packaging changes for BlackAdder.
2001/01/09 11:45:51 phil
-Added some missing QSlider methods.
+Added some missing TQSlider methods.
Added some documentation about multiple inheritance.
@@ -3192,42 +3192,42 @@ Updated the documentation ready for v2.3.
2000/12/19 14:51:01 phil
-Added the pre-hooks just before all calls to the Qt event loop.
-Changed the QApplication hook to use the new sipCallHook() function.
+Added the pre-hooks just before all calls to the TQt event loop.
+Changed the TQApplication hook to use the new sipCallHook() function.
2000/12/13 20:15:55 phil
Really fixed pyuic this time.
pyuic now tries to do something sensible with custom widgets - it assumes they
are in another module and tries to import them. The module name is the header
-file name specified in Qt Designer with any extension removed.
+file name specified in TQt Designer with any extension removed.
2000/12/13 18:00:46 phil
-Repaired some damage to pyuic caused when integrating the Qt v2.2.3 changes.
+Repaired some damage to pyuic caused when integrating the TQt v2.2.3 changes.
2000/12/13 10:42:19 phil
-Changed the configuration to look for Qt v2.2.3.
-Updated pyuic to track changes to uic in Qt v2.2.3.
+Changed the configuration to look for TQt v2.2.3.
+Updated pyuic to track changes to uic in TQt v2.2.3.
2000/12/12 17:46:14 phil
-Added QCustomMenuItem.
-Added the missing QMenuData.insertItem methods.
+Added TQCustomMenuItem.
+Added the missing TQMenuData.insertItem methods.
Changed all the handwritten occurences of sipParseArgs() to use the new version
that supports better error reporting.
2000/12/11 12:15:48 phil
Added the addressbook.py, buttongroups.py and menu.py examples.
-Removed the deprecated behaviour of repr() for QString, QCString and
-QByteArray.
+Removed the deprecated behaviour of repr() for TQString, TQCString and
+TQByteArray.
2000/12/03 17:44:41 phil
-Documented that you can't sub-class QCanvasItem.
-repr() of QString et al. now does the same as repr() of any other class.
+Documented that you can't sub-class TQCanvasItem.
+repr() of TQString et al. now does the same as repr() of any other class.
2000/12/01 01:31:48 phil
@@ -3236,31 +3236,31 @@ Updated the application.py example.
2000/11/30 15:57:54 phil
-Modified the tutorial example scripts to match the C++ ones with Qt v2.x.
-Removed the old Qt v1.x example scripts.
+Modified the tutorial example scripts to match the C++ ones with TQt v2.x.
+Removed the old TQt v1.x example scripts.
2000/11/29 09:37:56 phil
-Added the missing QMessage.setTextFormat() and QMessage.textFormat().
+Added the missing TQMessage.setTextFormat() and TQMessage.textFormat().
2000/11/24 12:04:04 phil
-Added QPushButton.isFlat() and QPushButton.setFlat().
+Added TQPushButton.isFlat() and TQPushButton.setFlat().
2000/11/12 21:22:02 phil
-pyuic fixed to handle QLabel buddies properly.
+pyuic fixed to handle TQLabel buddies properly.
2000/11/11 14:31:07 phil
-Added documentation to QListView and QListViewItem about how to delete child
-QListViewItems.
-Updated pyuic from Qt v2.2.2 uic.
-Updated configure to look for Qt v2.2.2.
+Added documentation to TQListView and TQListViewItem about how to delete child
+TQListViewItems.
+Updated pyuic from TQt v2.2.2 uic.
+Updated configure to look for TQt v2.2.2.
2000/11/09 10:16:24 phil
-Fixed compilation problem with QString with Qt v1.x.
+Fixed compilation problem with TQString with TQt v1.x.
2000/11/08 12:43:56 phil
@@ -3270,22 +3270,22 @@ other modules of the same application.
2000/11/05 20:59:51 phil
-Implemented __str__ for QByteArray, QCString and QString. Changed __repr__ to
+Implemented __str__ for TQByteArray, TQCString and TQString. Changed __repr__ to
not raise an exception on null instances.
-Added a section to the documentation covering Python and Qt strings.
+Added a section to the documentation covering Python and TQt strings.
Released v2.2.
2000/11/02 14:57:18 phil
Added missing %HeaderCode in qsizepolicy.sip.
Added %Copying.
-Added __pyQtQAppHook__
+Added __pyTQtTQAppHook__
Fixed the debugger for Windows.
-Added QSocket, QServerSocket and QHostAddress.
+Added TQSocket, TQServerSocket and TQHostAddress.
2000/10/20 23:30:22 phil
-Added the missing QPalette.setInactive().
+Added the missing TQPalette.setInactive().
Colour related fixes to pyuic (thanks to Robert Roy).
@@ -3300,17 +3300,17 @@ Changed the documentation for v2.1pre1.
2000/10/13 18:58:35 phil
-Fixed pyuic bug related to QToolTip.
-configure will now look for Qt v2.2.1.
+Fixed pyuic bug related to TQToolTip.
+configure will now look for TQt v2.2.1.
2000/10/11 17:21:59 phil
Added the widgets.py example.
-Fixed bugs with slot arguments in QMovie.
+Fixed bugs with slot arguments in TQMovie.
2000/10/11 13:32:25 phil
-The QApplication dtor now makes sure that any top-pevel windows don't get
+The TQApplication dtor now makes sure that any top-pevel windows don't get
deleted twice.
Changed the Shell banner in eric to be closer to Python 2.0.
@@ -3324,18 +3324,18 @@ Added eric the debugger.
2000/10/06 12:55:57 phil
-Updated pyuic for Qt v2.2.1.
-Fixed problems with QInputDialog.getValue() and QInputDialog.getText().
+Updated pyuic for TQt v2.2.1.
+Fixed problems with TQInputDialog.getValue() and TQInputDialog.getText().
2000/10/03 16:35:25 phil
-Added the missing /Transfer/ to QStatusBar.addWidget().
-Added the missing /TransferBack/ to QStatusBar.removeWidget().
+Added the missing /Transfer/ to TQStatusBar.addWidget().
+Added the missing /TransferBack/ to TQStatusBar.removeWidget().
2000/10/02 21:45:56 phil
-Added the missing QCanvasPixmapArray ctor.
-Added the len, [] and in operators to QStringList.
+Added the missing TQCanvasPixmapArray ctor.
+Added the len, [] and in operators to TQStringList.
2000/10/01 12:37:31 phil
@@ -3346,33 +3346,33 @@ repaired.
2000/10/01 00:50:32 phil
-Added the missing QMenuData.setItemParameter(), QMenuData.itemParameter() and
-QMenuData.activateItemAt().
-QMenuData.insertItem() and QAccel.connectItem() now expect slots that will take
+Added the missing TQMenuData.setItemParameter(), TQMenuData.itemParameter() and
+TQMenuData.activateItemAt().
+TQMenuData.insertItem() and TQAccel.connectItem() now expect slots that will take
an argument. THIS WILL BREAK SCRIPTS - but is the correct behaviour because
-PyQt doesn't support the Qt feature of a slot consuming fewer arguments than a
+PyTQt doesn't support the TQt feature of a slot consuming fewer arguments than a
signal provides.
2000/09/28 23:09:51 phil
-Added the missing /TransferThis/ in the QWorkspace ctor.
+Added the missing /TransferThis/ in the TQWorkspace ctor.
2000/09/28 16:31:19 phil
-Added missing QWidget.isHidden(), QWidget.isMaximized() and
-QMultiLineEdit.getCursorPosition().
+Added missing TQWidget.isHidden(), TQWidget.isMaximized() and
+TQMultiLineEdit.getCursorPosition().
2000/09/28 10:27:39 phil
-Added /Transfer/ to QApplication::postEvent().
+Added /Transfer/ to TQApplication::postEvent().
2000/09/27 17:21:27 phil
-Fixed the QDir ctor for Qt v2+.
+Fixed the TQDir ctor for TQt v2+.
2000/09/25 12:02:15 phil
-Fixed QBoxLayout::findWidget() so that it compiles under Qt v2.0.x.
+Fixed TQBoxLayout::findWidget() so that it compiles under TQt v2.0.x.
2000/09/20 11:03:00 phil
@@ -3382,8 +3382,8 @@ Minor changes prior to moving the CVS tree to theKompany.com.
2000/09/19 08:25:47 phil
Added the automatic ChangeLog.
-Added the missing keyReleaseEvent() from QButton.
-Added the missing QValidator::State::Intermediate.
-pyuic was generating bad code for QWizards. Also improved the standalone
+Added the missing keyReleaseEvent() from TQButton.
+Added the missing TQValidator::State::Intermediate.
+pyuic was generating bad code for TQWizards. Also improved the standalone
support code.
diff --git a/LICENSE b/LICENSE
index c7aea18..fc80518 100644
--- a/LICENSE
+++ b/LICENSE
@@ -109,9 +109,9 @@ above, provided that you also meet all of these conditions:
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
+ the Program is not retquired to print an announcement.)
-These requirements apply to the modified work as a whole. If
+These retquirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
@@ -177,7 +177,7 @@ However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
- 5. You are not required to accept this License, since you have not
+ 5. You are not retquired to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
@@ -263,14 +263,14 @@ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+TO THE TQUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+ 12. IN NO EVENT UNLESS RETQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSETQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
diff --git a/NEWS b/NEWS
index a57a711..ebcbefb 100644
--- a/NEWS
+++ b/NEWS
@@ -10,9 +10,9 @@ v3.17.6 17th November 2008
v3.17.5 8th November 2008
- Added the /Constrained/ argument annotations for enums needed by SIP v4.7.8
and later.
- - Added the missing QRegion.rects() (based on a patch from Hans-Peter
+ - Added the missing TQRegion.rects() (based on a patch from Hans-Peter
Jansen).
- - Added the missing QWidget.stackUnder() slot.
+ - Added the missing TQWidget.stackUnder() slot.
v3.17.4 6th December 2007
- Changes to be able to be built by SIP v4.7.2 and later.
@@ -25,100 +25,100 @@ v3.17.2 25th April 2007
- A minor bug fix release for a regression in v3.17.1.
v3.17.1 10th April 2007
- - This version requires SIP v4.6 (or later).
+ - This version retquires SIP v4.6 (or later).
- Changes to ensure compatibility with future SIP releases.
v3.17 4th November 2006
- Added support for Python v2.5.
- - Added the missing QImage.bitBlt() function.
- - Added the missing QListView.setSelectionAnchor() method.
- - Added the missing QStringList.__iadd__(QString) method.
- - Updated the QScintilla bindings for v1.17.
+ - Added the missing TQImage.bitBlt() function.
+ - Added the missing TQListView.setSelectionAnchor() method.
+ - Added the missing TQStringList.__iadd__(TQString) method.
+ - Updated the TQScintilla bindings for v1.17.
v3.16 24th March 2006
- - This version requires SIP v4.4 (or later).
- - PyQt3 can be installed alongside PyQt4.
- - Concatenating Python strings and QStrings is now supported.
- - QString now supports the * and *= operators that behave as they do for
+ - This version retquires SIP v4.4 (or later).
+ - PyTQt3 can be installed alongside PyTQt4.
+ - Concatenating Python strings and TQStrings is now supported.
+ - TQString now supports the * and *= operators that behave as they do for
Python strings.
- - Removed some QString methods that weren't appropriate in a Python context
+ - Removed some TQString methods that weren't appropriate in a Python context
and would have caused problems had they ever been used.
- - QString is more interoperable with Python string and unicode objects. For
+ - TQString is more interoperable with Python string and unicode objects. For
example they can be passed as arguments to open() and to most (but not all)
string methods.
- - QObject.sender() now handles Python signals.
+ - TQObject.sender() now handles Python signals.
- Added the missing MacintoshVersion enum.
- The convention for converting between a C/C++ null pointer and Python's
None object has now been universally applied. In previous versions a null
- pointer to, for example, a Qt list container would often be converted to an
+ pointer to, for example, a TQt list container would often be converted to an
empty list rather than None.
- PYQT_BUILD has been removed.
- - QPopupMenu (and sub-classes) instances now transfer ownership of the menu
+ - TQPopupMenu (and sub-classes) instances now transfer ownership of the menu
to Python in the call to exec_loop(). This means the menu's resources are
all released when the Python wrapper is garbage collected without needing
- to call QObject.deleteLater().
+ to call TQObject.deleteLater().
v3.15.1 14th November 2005
- - Added the missing QApplication constructor.
+ - Added the missing TQApplication constructor.
- Added the -f flag to configure.py to use any existing features file (by
default it is recreated).
v3.15 30th August 2005
- - This version requires SIP v4.3 (or later).
- - Added registerWeakActiveObject() and revokeActiveObject() to QAxBase.
- - Added the missing QString + operator.
- - PyQt classes now support Python's cyclic garbage collector.
- - QDialog (and sub-classes) instances now transfer ownership of the dialog to
+ - This version retquires SIP v4.3 (or later).
+ - Added registerWeakActiveObject() and revokeActiveObject() to TQAxBase.
+ - Added the missing TQString + operator.
+ - PyTQt classes now support Python's cyclic garbage collector.
+ - TQDialog (and sub-classes) instances now transfer ownership of the dialog to
Python in the call to exec_loop(). This means the dialog's resources are
all released when the Python wrapper is garbage collected without needing
- to call QObject.deleteLater().
+ to call TQObject.deleteLater().
- Automatic type conversion to more specific sub-classes using available
real-time type information has been improved so that, if a sub-class isn't
recognised then the most specific sub-class is used rather than the base
class.
- - Automatic type conversion for QLayoutItem and sub-classes has been added.
- - Added support for QScintilla v1.6.
+ - Automatic type conversion for TQLayoutItem and sub-classes has been added.
+ - Added support for TQScintilla v1.6.
v3.14.1 6th March 2005
- A minor bug fix release.
v3.14 19th February 2005
- - This version requires SIP v4.2 (or later) or SIP v3.12 (or later).
+ - This version retquires SIP v4.2 (or later) or SIP v3.12 (or later).
- Added the qInstallMsgHandler() function.
- - Added support for QScintilla v1.5.
+ - Added support for TQScintilla v1.5.
- Added support for the VendorID package.
- Added the qdir.py example.
v3.13 21st September 2004
- - Added the QUuid, QMetaObject and QMetaProperty classes.
- - Added metaObject() to QObject.
- - Added the comparison operators between QChar and QChar and char.
- - Added all the QDataStream << and >> operators for classes.
- - Added support for QScintilla v1.4.
- - Added explicit support for QScintilla to pyuic.
+ - Added the TQUuid, TQMetaObject and TQMetaProperty classes.
+ - Added metaObject() to TQObject.
+ - Added the comparison operators between TQChar and TQChar and char.
+ - Added all the TQDataStream << and >> operators for classes.
+ - Added support for TQScintilla v1.4.
+ - Added explicit support for TQScintilla to pyuic.
v3.12 25th May 2004
- - QValueList<QVariant> is implemented as a Python list of QVariant instances.
- - Added support for QScintilla v1.3.
+ - TQValueList<TQVariant> is implemented as a Python list of TQVariant instances.
+ - Added support for TQScintilla v1.3.
- Compiler error messages are suppressed during configuration but can be seen
using the new -w flag to configure.py.
v3.11 11th March 2004
- - Added the QIconDragEvent and QLocale classes from Qt v3.3.0.
- - Updated all existing classes to Qt v3.3.1.
- - Added the missing QSocketDevice class.
- - Added the missing QString += operators.
+ - Added the TQIconDragEvent and TQLocale classes from TQt v3.3.0.
+ - Updated all existing classes to TQt v3.3.1.
+ - Added the missing TQSocketDevice class.
+ - Added the missing TQString += operators.
v3.10 16th January 2004
- - Added the QFtp, QHttp, QHttpHeader, QHttpRequestHeader,
- QHttpResponseHeader, QLocalFs classes.
+ - Added the TQFtp, TQHttp, TQHttpHeader, TQHttpRequestHeader,
+ TQHttpResponseHeader, TQLocalFs classes.
v3.9 7th December 2003
- - This version requires SIP v3.9 (or later) or SIP v4.0rc1 (or later).
- - QLayoutIterator.next() is now documented.
- - Added the QImageIO and QListViewItemIterator classes.
- - Added the QDockArea << and >> operators.
- - Added readBoolEntry() to QSettings.
+ - This version retquires SIP v3.9 (or later) or SIP v4.0rc1 (or later).
+ - TQLayoutIterator.next() is now documented.
+ - Added the TQImageIO and TQListViewItemIterator classes.
+ - Added the TQDockArea << and >> operators.
+ - Added readBoolEntry() to TQSettings.
- Added qInstallPath(), qInstallPathDocs(), qInstallPathHeaders(),
qInstallPathLibs(), qInstallPathBins(), qInstallPathPlugins(),
qInstallPathData(), qInstallPathTranslations(), qInstallPathSysconf().
@@ -130,33 +130,33 @@ v3.9 7th December 2003
.sip files.
v3.8.1 6th September 2003
- - Added the missing QWMatrix.mapRect() * operators.
- - The supported educational version is now Qt v3.2.0.
+ - Added the missing TQWMatrix.mapRect() * operators.
+ - The supported educational version is now TQt v3.2.0.
v3.8 17th August 2003
- - Added the -k flag to build.py to build the PyQt modules as static
+ - Added the -k flag to build.py to build the PyTQt modules as static
libraries.
- - Added operators to QBrush, QColor, QDate, QDateTime, QDir, QDomeNode,
- QFont, QImage, QKeySequence, QPalette, QPen, QPoint, QRect, QRegExp,
- QRegion, QSize, QString, QTime, QUrl and QWMatrix (thanks to Torsten
+ - Added operators to TQBrush, TQColor, TQDate, TQDateTime, TQDir, TQDomeNode,
+ TQFont, TQImage, TQKeySequence, TQPalette, TQPen, TQPoint, TQRect, TQRegExp,
+ TQRegion, TQSize, TQString, TQTime, TQUrl and TQWMatrix (thanks to Torsten
Marek).
- - Added the missing Qt.MetaButton.
- - Updated all classes for Qt v3.2.0.
- - Added the QSplashScreen, QSqlSelectCursor and QToolBox classes for Qt
+ - Added the missing TQt.MetaButton.
+ - Updated all classes for TQt v3.2.0.
+ - Added the TQSplashScreen, TQSqlSelectCursor and TQToolBox classes for TQt
v3.2.0.
- - Added support for QScintilla v1.2.
+ - Added support for TQScintilla v1.2.
v3.7 5th July 2003
- Implemented __setitem__(), __delitem__(), __add__(), __iadd__(), __mul__(),
- __imul__(), __eq__() and __ne__() for QStringList.
+ __imul__(), __eq__() and __ne__() for TQStringList.
- Lots of new examples from Jorge Arroyo.
- - dir() of a PyQt class now returns all attributes.
- - Added bits(), scanLine(), jumpTable() and colorTable() to QImage.
+ - dir() of a PyTQt class now returns all attributes.
+ - Added bits(), scanLine(), jumpTable() and colorTable() to TQImage.
- Added toShort(), toUShort(), toInt(), toUInt(), toLong(), toULong(),
- toFloat() and toDouble() to QCString and QString.
- - Added the QWindowsXPStyle (Windows XP only), QextScintillaLexerHTML,
- QextScintillaLexerSQL and QSignalMapper classes.
- - pyuic (for Qt v3) now accepts a "-test" command line argument to allow
+ toFloat() and toDouble() to TQCString and TQString.
+ - Added the TQWindowsXPStyle (Windows XP only), QextScintillaLexerHTML,
+ QextScintillaLexerSQL and TQSignalMapper classes.
+ - pyuic (for TQt v3) now accepts a "-test" command line argument to allow
generated code to be run to completion without needing any user
interaction.
- Added modificationAttempted() to QextScintilla.
@@ -164,33 +164,33 @@ v3.7 5th July 2003
v3.6 26th April 2003
- Added the QextScintillaAPIs, QextScintillaCommand, QextScintillaCommandSet,
QextScintillaMacros and QextScintillaPrinter classes to the qtext module.
- - Added the QCopEnvelope class to the qtpe module.
- - QString.startsWith() was missing for Qt v2 starting with Qt v2.2.0.
- - Implemented the QTextStream << QMainWindow and QTextStream >> QMainWindow
+ - Added the TQCopEnvelope class to the qtpe module.
+ - TQString.startsWith() was missing for TQt v2 starting with TQt v2.2.0.
+ - Implemented the TQTextStream << TQMainWindow and TQTextStream >> TQMainWindow
operators.
- pyuic will now extract Python code from the comments section of a .ui file.
- pyuic now supports PEP 263.
- Added the biff.py, checklists.py, drawlines.py and modified buttongroups.py
examples from Oleksandr Yakovlyev.
- Added the qtui module (thanks to Hans-Peter Jansen).
- - Support for Qt v3.1.2 added.
+ - Support for TQt v3.1.2 added.
- PYQT_VERSION is now the version encoded as a hexadecimal value.
- Added PYQT_VERSION_STR.
v3.5 11th December 2002
- - Added the qtext module containing the bindings for QScintilla.
- - Added the missing QDockWindow.drawFrame(), QGLWidget.reparent() and
- QMainWindow.lineUpDockWindows() methods.
- - Added the missing QGLColorMap class.
- - Support for Qt v3.0.6, v3.1.0 and v3.1.1 added.
- - Added the Qt v3.1.x QAssistantClient, QEventLoop, QIconFactory,
- - QIMComposeEvent, QMutexLocker and QSyntaxHighlighter classes, and
+ - Added the qtext module containing the bindings for TQScintilla.
+ - Added the missing TQDockWindow.drawFrame(), TQGLWidget.reparent() and
+ TQMainWindow.lineUpDockWindows() methods.
+ - Added the missing TQGLColorMap class.
+ - Support for TQt v3.0.6, v3.1.0 and v3.1.1 added.
+ - Added the TQt v3.1.x TQAssistantClient, TQEventLoop, TQIconFactory,
+ - TQIMComposeEvent, TQMutexLocker and TQSyntaxHighlighter classes, and
qCompress() and qUncompress functions.
- Removed eric from the distribution as it is now packaged separately.
- The SQL examples now support PostgreSQL as well as MySQL.
- - Added the Qtopia v1.5.0 AppLnk, AppLnkSet, Config, DateFormat, DocLnk,
+ - Added the TQtopia v1.5.0 AppLnk, AppLnkSet, Config, DateFormat, DocLnk,
DocLnkSet, FileManager, FileSelector, FileSelectorItem, FontDatabase,
- Global, MenuButton, QDawg, QList<AppLnk>, QList<DocLnk> and Resource
+ Global, MenuButton, TQDawg, TQList<AppLnk>, TQList<DocLnk> and Resource
classes.
v3.4 10th September 2002
@@ -199,33 +199,33 @@ v3.4 10th September 2002
- Added the progress.py example from Hans-Peter Jansen.
- Added the mdi.py and canvas.py examples from Sadi Kose.
- Added QT_TR_NOOP() and QT_TRANSLATE_NOOP().
- - Added QApplication.winEventFilter(), QWidget.winEvent(), MSG and POINT
+ - Added TQApplication.winEventFilter(), TQWidget.winEvent(), MSG and POINT
under Windows.
- - PyQt is now licensed under several licenses including the GPL and a
+ - PyTQt is now licensed under several licenses including the GPL and a
commercial license.
v3.3.2 12th July 2002
- Build system changes.
v3.3.1 9th July 2002
- - Support for Qt v3.0.5 added.
+ - Support for TQt v3.0.5 added.
v3.3 7th July 2002
- Added README.SunOS.
- - QValueList<QPixmap> is now fully implemented as a mapping to a Python list
- of QPixmap instances.
- - QSqlRecordInfo is now implemented as a Python list of QSqlFieldInfo
+ - TQValueList<TQPixmap> is now fully implemented as a mapping to a Python list
+ of TQPixmap instances.
+ - TQSqlRecordInfo is now implemented as a Python list of TQSqlFieldInfo
instances.
- - Added the missing QDoubleValidator.setBottom(),
- QDoubleValidator.setDecimals(), QDoubleValidator.setTop,
- QFontMetrics.boundingRect(), QFontMetrics.size(),
- QIntValidator.setBottom(), QIntValidator.setTop(), QString.compare() and
- QString.localeAwareCompare().
+ - Added the missing TQDoubleValidator.setBottom(),
+ TQDoubleValidator.setDecimals(), TQDoubleValidator.setTop,
+ TQFontMetrics.boundingRect(), TQFontMetrics.size(),
+ TQIntValidator.setBottom(), TQIntValidator.setTop(), TQString.compare() and
+ TQString.localeAwareCompare().
- Added the qmake based build system.
- Added lots of eric patches from Detlev Offenbach. (eric should now work
again and has new features.)
- Added the SQL examples from Hans-Peter Jansen.
- - pyuic for Qt v3 can now extract Python code from .ui files (thanks to
+ - pyuic for TQt v3 can now extract Python code from .ui files (thanks to
Christian Bird).
v3.2.4 18th May 2002
@@ -239,332 +239,332 @@ v3.2.1 5th May 2002
- Bug fixes only from the latest SIP.
v3.2 5th May 2002
- - Instances that are sub-classes of QObject and created by Qt (by factory
+ - Instances that are sub-classes of TQObject and created by TQt (by factory
methods, or plugin managers for example) will now have the correct Python
class.
- - Added the missing QToolTip.setEnabled() and QToolTip.enabled().
+ - Added the missing TQToolTip.setEnabled() and TQToolTip.enabled().
- Added support for MacOS X.
- - Added PYQT_VERSION as the PyQt release number as a string.
+ - Added PYQT_VERSION as the PyTQt release number as a string.
- Added the semaphore.py example.
- - Any Python object can now be passed as the data element of a QCustomEvent.
- - configure now searches for Qt v3.0.4.
+ - Any Python object can now be passed as the data element of a TQCustomEvent.
+ - configure now searches for TQt v3.0.4.
v3.1 23rd March 2002
- - Removed the internal QDateTimeEditBase and QDragResponseEvent classes.
- - Added the QValueList<QImageTextLangKey> mapped class.
- - Added the missing QImageTextLangKey class.
- - Added the missing QActionGroup.add(), QActionGroup.addSeparator(),
- QImage.dotsPerMeterX(), QImage.dotsPerMeterY(), QImage.setDotsPerMeterX(),
- QImage.setDotsPerMeterY(), QImage.offset(), QImage.setOffset(),
- QImage.textList(), QImage.textLanguages(), QImage.textKeys(), QImage.text()
- and QImage.setText() methods.
- - Added support for Qt/Embedded on the Sharp Zaurus.
- - Added the start of the qtpe (Qt Palmtop Environment) module.
- - Changes required for Qt v3.0.1 and v3.0.2.
+ - Removed the internal TQDateTimeEditBase and TQDragResponseEvent classes.
+ - Added the TQValueList<TQImageTextLangKey> mapped class.
+ - Added the missing TQImageTextLangKey class.
+ - Added the missing TQActionGroup.add(), TQActionGroup.addSeparator(),
+ TQImage.dotsPerMeterX(), TQImage.dotsPerMeterY(), TQImage.setDotsPerMeterX(),
+ TQImage.setDotsPerMeterY(), TQImage.offset(), TQImage.setOffset(),
+ TQImage.textList(), TQImage.textLanguages(), TQImage.textKeys(), TQImage.text()
+ and TQImage.setText() methods.
+ - Added support for TQt/Embedded on the Sharp Zaurus.
+ - Added the start of the qtpe (TQt Palmtop Environment) module.
+ - Changes retquired for TQt v3.0.1 and v3.0.2.
- configure now allows the location of zlib to be specified.
- configure now allows the directory to where the Python modules are
installed to be specified.
- - configure now searches for Qt v3.0.1, v3.0.2 and v3.0.3.
- - Changes required by the latest SIP.
+ - configure now searches for TQt v3.0.1, v3.0.2 and v3.0.3.
+ - Changes retquired by the latest SIP.
- Added the dragdrop example from Issac Trotts.
- Added /ReleaseLock/ to everything that might block.
- Upgraded to autoconf-2.53 and automake-1.6.
v3.0 17th November 2001
- - Added the missing QChar.nbsp class variable.
- - Added the missing QChar.isLetterOrNumber(), QChar.mirroredChar(),
- QColorDialog.customColor(), QCustomDialog.customCount(),
- QColorDialog.getRgba(), QCustomDialog.setCustomColor(), QFileDialog.done(),
- QHeader.setUpdatesEnabled(), QHeader.showEvent(), QIconView.dropped(),
- QIconViewItem.dropped(), QImage.inputFormatList(),
- QImage.outputFormatList(), QLayoutIterator.next(), QLineEdit.displayText(),
- QListBox.isRubberSelecting(), QMenuBar.activateItemAt(),
- QMenuBar.focusInEvent(), QMenuBar.isDefaultUp(), QMenuBar.minimumSize(),
- QMenuBar.minimumSizeHint(), QMenuBar.setDefaultUp(), QMenuData.findItem(),
- QMimeSourceFactory.filePath(), QMimeSourceFactory.addFilePath(),
- QMotifPlusStyle.drawMenuBarItem(), QMotifPlusStyle.drawPopupMenuItem(),
- QMotifStyle.drawPopupMenuItem(), QMotifStyle.extraPopupMenuItemWidth(),
- QMotifStyle.popupMenuItemHeight(), QNetworkProtocol.newChildren(),
- QPlatinumStyle.drawPopupMenuItem(),
- QPlatinumStyle.extraPopupMenuItemWidth(),
- QPlatinumStyle.popupMenuItemHeight(), QPainter.pos(), QPalette.inactive(),
- QPopupMenu.drawItem(), QPopupMenu.itemHeight(), QPrintDialog.addButton(),
- QProgressDialog.forceShow(), QScrollBar.lineStep(), QScrollBar.maxValue(),
- QScrollBar.minValue(), QScrollBar.pageStep(), QScrollBar.setLineStep(),
- QScrollBar.setMaxValue(), QScrollBar.setMinValue(),
- QScrollBar.setPageStep(), QScrollBar.setValue(), QScrollBar.value(),
- QStyle.drawPopupMenuItem(), QStyle.drawMenuBarItem(),
- QStyle.extraPopupMenuItemWidth(), QStyle.popupMenuItemHeight(),
- QToolTip.hide(), QToolTipGroup.enabled(), QToolTipGroup.setEnabled(),
- QTranslator.messages(), QUrlOperator.newChildren(),
- QUrlOperator.startNextCopy(), QWindowsStyle.drawPopupMenuItem(),
- QWindowsStyle.extraPopupMenuItemWidth() and
- QWindowsStyle.popupMenuItemHeight() methods.
- - Added all missing methods that use QDataStream.
- - Added the missing QDir.match(), QObject.connect(), QRect.contains(),
- QString.append() and QString.prepend() variants.
- - Added the missing QAccel and QImage ctors.
- - Added the missing QColorDrag, QDns, QIconDrag, QIconDragItem, QMenuItem,
- QSGIStyle and QSound classes.
- - Renamed QDate.isValidDate() to QDate.isValid(), QFile.fileExists() to
- QFile.exists(), QFile.removeFile() to QFile.remove(), QLineEdit.del() to
- QLineEdit.delChar(), QMultiLineEdit.deleteChar() to
- QMultiLineEdit.delChar(), and QTime.IsValidTime() to QTime.isValid().
- - Added the QCanvasSpline, QCheckTableItem, QComboTableItem,
- QCustomMenuEvent, QDataBrowser, QDataTable, QDataView, QDateEdit,
- QDateTimeEdit, QDesktopWidget, QDockArea, QDockWindow, QEditorFactory,
- QErrorMessage, QGridView, QIMEvent, QKeySequence, QLibrary,
- QObjectCleanupHandler, QPixmapCache, QProcess, QRegExpValidator, QSettings,
- QSql, QSqlCursor, QSqlDatabase, QSqlDriver, QSqlEditorFactory, QSqlError,
- QSqlField, QSqlFieldInfo, QSqlForm, QSqlIndex, QSqlPropertyMap, QSqlQuery,
- QSqlRecord, QSqlRecordInfo, QSqlResult, QStyleFactory, QStyleOption,
- QTabletEvent, QTextEdit, QTimeEdit and QWindowsMime Qt3 classes.
+ - Added the missing TQChar.nbsp class variable.
+ - Added the missing TQChar.isLetterOrNumber(), TQChar.mirroredChar(),
+ TQColorDialog.customColor(), TQCustomDialog.customCount(),
+ TQColorDialog.getRgba(), TQCustomDialog.setCustomColor(), TQFileDialog.done(),
+ TQHeader.setUpdatesEnabled(), TQHeader.showEvent(), TQIconView.dropped(),
+ TQIconViewItem.dropped(), TQImage.inputFormatList(),
+ TQImage.outputFormatList(), TQLayoutIterator.next(), TQLineEdit.displayText(),
+ TQListBox.isRubberSelecting(), TQMenuBar.activateItemAt(),
+ TQMenuBar.focusInEvent(), TQMenuBar.isDefaultUp(), TQMenuBar.minimumSize(),
+ TQMenuBar.minimumSizeHint(), TQMenuBar.setDefaultUp(), TQMenuData.findItem(),
+ TQMimeSourceFactory.filePath(), TQMimeSourceFactory.addFilePath(),
+ TQMotifPlusStyle.drawMenuBarItem(), TQMotifPlusStyle.drawPopupMenuItem(),
+ TQMotifStyle.drawPopupMenuItem(), TQMotifStyle.extraPopupMenuItemWidth(),
+ TQMotifStyle.popupMenuItemHeight(), TQNetworkProtocol.newChildren(),
+ TQPlatinumStyle.drawPopupMenuItem(),
+ TQPlatinumStyle.extraPopupMenuItemWidth(),
+ TQPlatinumStyle.popupMenuItemHeight(), TQPainter.pos(), TQPalette.inactive(),
+ TQPopupMenu.drawItem(), TQPopupMenu.itemHeight(), TQPrintDialog.addButton(),
+ TQProgressDialog.forceShow(), TQScrollBar.lineStep(), TQScrollBar.maxValue(),
+ TQScrollBar.minValue(), TQScrollBar.pageStep(), TQScrollBar.setLineStep(),
+ TQScrollBar.setMaxValue(), TQScrollBar.setMinValue(),
+ TQScrollBar.setPageStep(), TQScrollBar.setValue(), TQScrollBar.value(),
+ TQStyle.drawPopupMenuItem(), TQStyle.drawMenuBarItem(),
+ TQStyle.extraPopupMenuItemWidth(), TQStyle.popupMenuItemHeight(),
+ TQToolTip.hide(), TQToolTipGroup.enabled(), TQToolTipGroup.setEnabled(),
+ TQTranslator.messages(), TQUrlOperator.newChildren(),
+ TQUrlOperator.startNextCopy(), TQWindowsStyle.drawPopupMenuItem(),
+ TQWindowsStyle.extraPopupMenuItemWidth() and
+ TQWindowsStyle.popupMenuItemHeight() methods.
+ - Added all missing methods that use TQDataStream.
+ - Added the missing TQDir.match(), TQObject.connect(), TQRect.contains(),
+ TQString.append() and TQString.prepend() variants.
+ - Added the missing TQAccel and TQImage ctors.
+ - Added the missing TQColorDrag, TQDns, TQIconDrag, TQIconDragItem, TQMenuItem,
+ TQSGIStyle and TQSound classes.
+ - Renamed TQDate.isValidDate() to TQDate.isValid(), TQFile.fileExists() to
+ TQFile.exists(), TQFile.removeFile() to TQFile.remove(), TQLineEdit.del() to
+ TQLineEdit.delChar(), TQMultiLineEdit.deleteChar() to
+ TQMultiLineEdit.delChar(), and TQTime.IsValidTime() to TQTime.isValid().
+ - Added the TQCanvasSpline, TQCheckTableItem, TQComboTableItem,
+ TQCustomMenuEvent, TQDataBrowser, TQDataTable, TQDataView, TQDateEdit,
+ TQDateTimeEdit, TQDesktopWidget, TQDockArea, TQDockWindow, TQEditorFactory,
+ TQErrorMessage, TQGridView, TQIMEvent, TQKeySequence, TQLibrary,
+ TQObjectCleanupHandler, TQPixmapCache, TQProcess, TQRegExpValidator, TQSettings,
+ TQSql, TQSqlCursor, TQSqlDatabase, TQSqlDriver, TQSqlEditorFactory, TQSqlError,
+ TQSqlField, TQSqlFieldInfo, TQSqlForm, TQSqlIndex, TQSqlPropertyMap, TQSqlQuery,
+ TQSqlRecord, TQSqlRecordInfo, TQSqlResult, TQStyleFactory, TQStyleOption,
+ TQTabletEvent, TQTextEdit, TQTimeEdit and TQWindowsMime TQt3 classes.
- Added the missing qInitNetworkProtocols() function to the qtnetwork module.
- - Removed the QTableHeader class and QTabWidget.selected() as they are not
+ - Removed the TQTableHeader class and TQTabWidget.selected() as they are not
part of the documented API.
- - Removed the /Transfer/ flag on the QWidget parameters of
- QBoxLayout.addWidget(), QBoxLayout.insertWidget(),
- QGridLayout.addMultiCellWidget(), QGridLayout.addWidget() and
- QLayout.add().
- - QObject.className() now works with Python classes that sub-class from
- QObject derived classes.
+ - Removed the /Transfer/ flag on the TQWidget parameters of
+ TQBoxLayout.addWidget(), TQBoxLayout.insertWidget(),
+ TQGridLayout.addMultiCellWidget(), TQGridLayout.addWidget() and
+ TQLayout.add().
+ - TQObject.className() now works with Python classes that sub-class from
+ TQObject derived classes.
- pyuic now generates double quoted strings rather than single quoted strings
- (to help Qt Linguist).
+ (to help TQt Linguist).
- Moved the Canvas module classes to the new qtcanvas module.
- Moved the Network module classes to the new qtnetwork module.
- Moved the Table module classes to the new qttable module.
- Moved the XML module classes to the new qtxml module.
- - configure now handles Qt-mt.
+ - configure now handles TQt-mt.
- Upgraded to autoconf-2.52, automake-1.5 and libtool-1.4.1.
v2.5 11th August 2001
Minor configuration changes. Added the missing variants of
- QPixmap.save(), QWidget.reparent() and QInputDialog.getText(). Added
+ TQPixmap.save(), TQWidget.reparent() and TQInputDialog.getText(). Added
the qtgl module and the gears.py example script (thanks to Toby J
- Sargeant). QObject.sender() will now return an appropriate value.
- Fixed QTextView.setText() and QScrollView.addChild(). Fixed the
+ Sargeant). TQObject.sender() will now return an appropriate value.
+ Fixed TQTextView.setText() and TQScrollView.addChild(). Fixed the
problems with overloads with different C++ signatures but similar
- Python signatures - QCString.setNum(), QLabel.setNum(),
- QLCDNumber.checkOverflow(), QString.arg(), QString.number(),
- QString.setNum(), QVariant() and QWMatrix.map(). Added the missing
- QTranslator methods. Added the QTranslatorMessage class. configure
- will now look for Qt v2.3.1. QInterlaceStyle is enabled only for Qt
+ Python signatures - TQCString.setNum(), TQLabel.setNum(),
+ TQLCDNumber.checkOverflow(), TQString.arg(), TQString.number(),
+ TQString.setNum(), TQVariant() and TQWMatrix.map(). Added the missing
+ TQTranslator methods. Added the TQTranslatorMessage class. configure
+ will now look for TQt v2.3.1. TQInterlaceStyle is enabled only for TQt
v2.3.1+ as it is broken in 2.3.0 on Windows. Fixed problems with
- QLineEdit.event() and QMultiLineEdit.event(). Added post-hooks to
- complement the existing pre-hooks. Added the Pizza example from the Qt
+ TQLineEdit.event() and TQMultiLineEdit.event(). Added post-hooks to
+ complement the existing pre-hooks. Added the Pizza example from the TQt
Designer manual. Removed the Version keyword for the latest SIP.
Fixed the memory leaks related to sipMapCppToSelf() in handwritten
- code. Changed the build system to handle different versions of PyQt
- for different versions of Qt. NULL QCanvasItemList, QFileInfoList,
- QObjectList, QStrList and QWidgetList pointers are now converted to an
- empty Python list rather than None. Added QDataStream and the QDom
+ code. Changed the build system to handle different versions of PyTQt
+ for different versions of TQt. NULL TQCanvasItemList, TQFileInfoList,
+ TQObjectList, TQStrList and TQWidgetList pointers are now converted to an
+ empty Python list rather than None. Added TQDataStream and the TQDom
classes (thanks to Jim Bublitz). Added the qt_xdisplay(), qt_xscreen()
- and qt_xrootwin() functions. Added the QColor.getHsv(),
- QPaintDevice.x11Display(), QPaintDevice.x11AppDisplay(),
- QPaintDevice.x11SetAppDpiX(), QPaintDevice.x11SetAppDpiY() and
- QWidget.customEvent() methods.
+ and qt_xrootwin() functions. Added the TQColor.getHsv(),
+ TQPaintDevice.x11Display(), TQPaintDevice.x11AppDisplay(),
+ TQPaintDevice.x11SetAppDpiX(), TQPaintDevice.x11SetAppDpiY() and
+ TQWidget.customEvent() methods.
v2.4 22nd April 2001
- Added the missing QFileDialog.getExistingDirectory(),
- QLineEdit.setReadOnly(), QLineEdit.readOnly(),
- QMotifStyle.comboButtonFocusRect(), QMotifStyle.comboButtonRect() and
- QMotifStyle.drawComboButton() methods. Added the missing
- QFileDialog.DirectoryOnly and QPalette.Inactive enum values. Updated
+ Added the missing TQFileDialog.getExistingDirectory(),
+ TQLineEdit.setReadOnly(), TQLineEdit.readOnly(),
+ TQMotifStyle.comboButtonFocusRect(), TQMotifStyle.comboButtonRect() and
+ TQMotifStyle.drawComboButton() methods. Added the missing
+ TQFileDialog.DirectoryOnly and TQPalette.Inactive enum values. Updated
the themes.py example. configure now uses the python executable to get
- the various Python locations. Added support of Qt v2.3.0, ie.
- QApplication.type(), QFontDatabase.isFixedPitch(),
- QScrollView.AutoOneFit, QToolBar.styleChange() and QInterlaceStyle.
- Added the missing final argument to QMultiLineEdit.insertAt(). Added
- the QCustomEvent class. Upgraded to automake v1.4d and libtool v1.3d.
+ the various Python locations. Added support of TQt v2.3.0, ie.
+ TQApplication.type(), TQFontDatabase.isFixedPitch(),
+ TQScrollView.AutoOneFit, TQToolBar.styleChange() and TQInterlaceStyle.
+ Added the missing final argument to TQMultiLineEdit.insertAt(). Added
+ the TQCustomEvent class. Upgraded to automake v1.4d and libtool v1.3d.
v2.3 4th February 2001
- Added the missing QMessage.setTextFormat(), QMessage.textFormat(),
- QPushButton.isFlat(), QPushButton.setFlat() and QMenuData.insertItem()
- methods. Added the QCustomMenuItem class. pyuic assumes that custom
+ Added the missing TQMessage.setTextFormat(), TQMessage.textFormat(),
+ TQPushButton.isFlat(), TQPushButton.setFlat() and TQMenuData.insertItem()
+ methods. Added the TQCustomMenuItem class. pyuic assumes that custom
widgets are in another module and generates code to import them. Other
- pyuic bug fixes and changes to keep track with Qt v2.2.4. eric bug
+ pyuic bug fixes and changes to keep track with TQt v2.2.4. eric bug
fixes. Added the addressbook.py, buttongroups.py and menu.py examples.
- Updated all the tutorial scripts to match those in Qt v2.x. Removed
- the Qt v1.x specific examples. Removed the deprecated behaviour of
- repr() for QString, QCString and QByteArray. The Python objects that
- correspond to C++ instances that are "owned" by Qt are now kept alive
+ Updated all the tutorial scripts to match those in TQt v2.x. Removed
+ the TQt v1.x specific examples. Removed the deprecated behaviour of
+ repr() for TQString, TQCString and TQByteArray. The Python objects that
+ correspond to C++ instances that are "owned" by TQt are now kept alive
without the Python program having to keep an explicit reference.
configure now looks for Python 2.1.
v2.2 6th November 2000
Added the %Copying directive. Added the missing %HeaderCode in
- qsizepolicy.sip. Added classes QServerSocket, QSocket and
- QHostAddress. Added hooks to the QApplication ctors to tell the
- debugger when it is safe to create QSocketNotifiers (with UNIX you can
- create QSocketNotifiers before you create the QApplication, with
+ qsizepolicy.sip. Added classes TQServerSocket, TQSocket and
+ TQHostAddress. Added hooks to the TQApplication ctors to tell the
+ debugger when it is safe to create TQSocketNotifiers (with UNIX you can
+ create TQSocketNotifiers before you create the TQApplication, with
Windows you can't). Other fixes to eric to get it working with
- Windows. Implemented __str__ of QByteArray, QCString and QString to
+ Windows. Implemented __str__ of TQByteArray, TQCString and TQString to
return an empty string for null instances. Changed __repr__ of the
same classes to return a descriptive string for null instances. Added
- the missing QPalette.setInactive(). Colour related fixes to pyuic
+ the missing TQPalette.setInactive(). Colour related fixes to pyuic
(thanks to Robert Roy). Added the documentation section on Python
- strings, Qt strings and Unicode.
+ strings, TQt strings and Unicode.
v2.1 18th October 2000
- Added support for Qt v2.2.1. Added the widgets.py example. Added the
- eric debugger. Added the missing QCanvasPixmapArray ctor. Added the
- missing QMenuData.setItemParameter(), QMenuData.itemParameter(),
- QMenuData.activateItemAt(), QWidget.isHidden(), QWidget.isMaximized(),
- QMultiLineEdit.getCursorPosition() and QButton.keyReleaseEvent(). Add
- the len, [] and in operators to QStringList. Various other bug fixes
+ Added support for TQt v2.2.1. Added the widgets.py example. Added the
+ eric debugger. Added the missing TQCanvasPixmapArray ctor. Added the
+ missing TQMenuData.setItemParameter(), TQMenuData.itemParameter(),
+ TQMenuData.activateItemAt(), TQWidget.isHidden(), TQWidget.isMaximized(),
+ TQMultiLineEdit.getCursorPosition() and TQButton.keyReleaseEvent(). Add
+ the len, [] and in operators to TQStringList. Various other bug fixes
(see ChangeLog).
v2.0 14th September 2000
*NOTE* The implementation of enums has changed meaning that your
- scripts will be need to be changed. Also repr() of a QString will
+ scripts will be need to be changed. Also repr() of a TQString will
return a unicode object (rather than a string) with versions of Python
that support Unicode.
- Added /Transfer/ to QObject.insertChild(). Added /TransferBack/ to
- QObject.removeChild() and QTabBar.removeTab(). Changes needed by the
- latest SIP. Fixed QFontInfo.family() for Qt v2.x (thanks to Joerg
- Kollmann). Added /Transfer/ etc. to several places in QScrollView,
- QObject, QHeader, QListView and QListViewItem (thanks to Pete Ware).
- Updated everything for Qt v2.2.0. Added pyuic. Updated the examples
+ Added /Transfer/ to TQObject.insertChild(). Added /TransferBack/ to
+ TQObject.removeChild() and TQTabBar.removeTab(). Changes needed by the
+ latest SIP. Fixed TQFontInfo.family() for TQt v2.x (thanks to Joerg
+ Kollmann). Added /Transfer/ etc. to several places in TQScrollView,
+ TQObject, TQHeader, TQListView and TQListViewItem (thanks to Pete Ware).
+ Updated everything for TQt v2.2.0. Added pyuic. Updated the examples
to handle to new form of enums. Added full support for Windows.
Install in site-packages if it exists. Changes to handwritten code to
- support Python 1.6. Integrate QString with Python's Unicode support.
+ support Python 1.6. Integrate TQString with Python's Unicode support.
v0.12 18th May 2000
- The versions of the examples specific to Qt v1.x now get installed in
- RPMs. Added QListBoxItem.selected(), QStringList.append() and
- QStringList.prepend(). Added /Transfer/ to QApplication.setStyle(),
- QLayout.addItem(), QBoxLayout.addItem() and QGridLayout.addItem().
+ The versions of the examples specific to TQt v1.x now get installed in
+ RPMs. Added TQListBoxItem.selected(), TQStringList.append() and
+ TQStringList.prepend(). Added /Transfer/ to TQApplication.setStyle(),
+ TQLayout.addItem(), TQBoxLayout.addItem() and TQGridLayout.addItem().
Added themes.py to the examples. Clarified the software license.
Changes needed by the latest SIP.
v0.11.1 1st April 2000
- Fixed the documentation for QPixmap::fill(). Code now compiles with
+ Fixed the documentation for TQPixmap::fill(). Code now compiles with
gcc v2.95.2.
v0.11 28th March 2000
- Added Qt v2.x classes QCDEStyle, QChar, QColorDialog, QCommonStyle,
- QCString, QFontDialog, QGLayoutIterator, QGrid, QHBox, QHButtonGroup,
- QHGroupBox, QLayoutItem, QLayoutIterator, QMimeSource,
- QMimeSourceFactory, QMotifStyle, QPlatinumStyle, QSessionManager,
- QSimpleRichText, QSizeGrip, QSizePolicy, QSpacerItem, QStringList,
- QStyle, QStyleSheet, QStyleSheetItem, Qt, QTabWidget, QTextBrowser,
- QTextCodec, QTextDecoder, QTextEncoder, QTextIStream, QTextOStream,
- QTextStream, QTextView, QTranslator, QUriDrag, QVBox, QVButtonGroup,
- QVGroupBox, QWheelEvent, QWidgetItem, QWindowsStyle and QWizard. Many
- other smaller changes for Qt v2.x. Added TransferThis where needed.
+ Added TQt v2.x classes TQCDEStyle, TQChar, TQColorDialog, TQCommonStyle,
+ TQCString, TQFontDialog, TQGLayoutIterator, TQGrid, TQHBox, TQHButtonGroup,
+ TQHGroupBox, TQLayoutItem, TQLayoutIterator, TQMimeSource,
+ TQMimeSourceFactory, TQMotifStyle, TQPlatinumStyle, TQSessionManager,
+ TQSimpleRichText, TQSizeGrip, TQSizePolicy, TQSpacerItem, TQStringList,
+ TQStyle, TQStyleSheet, TQStyleSheetItem, TQt, TQTabWidget, TQTextBrowser,
+ TQTextCodec, TQTextDecoder, TQTextEncoder, TQTextIStream, TQTextOStream,
+ TQTextStream, TQTextView, TQTranslator, TQUriDrag, TQVBox, TQVButtonGroup,
+ TQVGroupBox, TQWheelEvent, TQWidgetItem, TQWindowsStyle and TQWizard. Many
+ other smaller changes for TQt v2.x. Added TransferThis where needed.
v0.10.1 21st January 2000
- Fixed a bug in the repr() functions for QString and QByteArray by
+ Fixed a bug in the repr() functions for TQString and TQByteArray by
generating the code using the latest SIP.
v0.10 19th December 1999
The .pyc files are now created by the installation process. Added
- qAppName(), QCursor.handle(), QFont.handle(), QPaintDevice.handle(),
- QPainter.handle(). Added most of the typedefs. Changed
+ qAppName(), TQCursor.handle(), TQFont.handle(), TQPaintDevice.handle(),
+ TQPainter.handle(). Added most of the typedefs. Changed
examples/application.py so as not to use the obsolete (and
- unimplemented) QMessageBox.message(). Fixed bug in QPixmap ctor.
+ unimplemented) TQMessageBox.message(). Fixed bug in TQPixmap ctor.
Changed the format of version qualifiers for the latest SIP. Various
- small changes to port to Windows. Added ReleaseLock to QDialog.exec().
- Fixed a bug in QRect.coords(). Changed QString and QByteArray from
+ small changes to port to Windows. Added ReleaseLock to TQDialog.exec().
+ Fixed a bug in TQRect.coords(). Changed TQString and TQByteArray from
being mapped classes to being regular classes. Changed
examples/application.py, examples/dclock.py and examples/dirview.py to
- explicitly convert from QString where needed.
+ explicitly convert from TQString where needed.
v0.9 6th September 1999
- Separated the Qt and KDE bindings. These are the Qt bindings. Various
+ Separated the TQt and KDE bindings. These are the TQt bindings. Various
changes needed by the latest SIP. Re-introduced SLOT(). Changed the
- examples to use SLOT() where possible. Added QObject.disconnect(),
- QAccel.disconnectItem(), QMenuData.disconnectItem(),
- QMovie.disconnectResize(), QMovie.disconnectStatus(),
- QMovie.disconnectUpdate() and QApplication.clipboard(). Added the
- QClipboard and QSocketNotifier classes. QEvent is automatically
- converted to the correct sub-class. The Qt event loop now cooperates
- with Python threads. Tested with Qt v1.44, Python v1.5.2, egcs v1.1.2
+ examples to use SLOT() where possible. Added TQObject.disconnect(),
+ TQAccel.disconnectItem(), TQMenuData.disconnectItem(),
+ TQMovie.disconnectResize(), TQMovie.disconnectStatus(),
+ TQMovie.disconnectUpdate() and TQApplication.clipboard(). Added the
+ TQClipboard and TQSocketNotifier classes. TQEvent is automatically
+ converted to the correct sub-class. The TQt event loop now cooperates
+ with Python threads. Tested with TQt v1.44, Python v1.5.2, egcs v1.1.2
and glibc v2.1.
v0.8 29th May 1999
- Hopefully fixed the SuSE configuration problems. Fixed the QPointArray
- ctor and QPointArray.setPoints() that took a list of points. Removed
+ Hopefully fixed the SuSE configuration problems. Fixed the TQPointArray
+ ctor and TQPointArray.setPoints() that took a list of points. Removed
the section in the documentation referring to the inability to handle
C++ references. Added lots of const keywords to suppress new warning
messages from the compiler. Changed the handwritten code for mapped
classes to follow the new NULL/None conventions, and for the
introduction of sipParseArgs(). Added Drag-and-Drop support to kmyapp.
- Added Matt Gerassimoff's Qt examples. Added the QCursor global
- cursors. Added QPainter.boundingRect(), KApplication.addDropZone(),
+ Added Matt Gerassimoff's TQt examples. Added the TQCursor global
+ cursors. Added TQPainter.boundingRect(), KApplication.addDropZone(),
KApplication.removeDropZone, KApplication.setRootDropZone(). Added
- QDragEnterEvent, QDragLeaveEvent, QDragMoveEvent, QDragObject,
- QDragResponseEvent, QDropEvent, QDropSite, QHideEvent, QImageDrag,
- QPaintDeviceMetrics, QShowEvent, QStoredDrag, QTextDrag, QTimer,
- QUrlDrag, QWindow, KDNDDropZone, KDNDIcon, KDNDWidget, KPath, KSpell,
- KSpellConfig, KSpellDlg, KTreeList, KTreeListItem. Tested with Qt
+ TQDragEnterEvent, TQDragLeaveEvent, TQDragMoveEvent, TQDragObject,
+ TQDragResponseEvent, TQDropEvent, TQDropSite, TQHideEvent, TQImageDrag,
+ TQPaintDeviceMetrics, TQShowEvent, TQStoredDrag, TQTextDrag, TQTimer,
+ TQUrlDrag, TQWindow, KDNDDropZone, KDNDIcon, KDNDWidget, KPath, KSpell,
+ KSpellConfig, KSpellDlg, KTreeList, KTreeListItem. Tested with TQt
v1.44, KDE v1.1.1, Python v1.5.2, egcs v1.1.2 and glibc v2.1.1.
v0.7.1 3rd May 1999
Fixed the detection of -fno-exceptions support. Added the necessary
- Py_DECREF(sipArgs) to all handwritten code. Tested with Qt v1.44, KDE
+ Py_DECREF(sipArgs) to all handwritten code. Tested with TQt v1.44, KDE
v1.1.1, Python v1.5.2, egcs v1.1.2 and glibc v2.1.
v0.7 16th April 1999
Build with -fno-exceptions if supported. Converted the documentation
- to SGML. Replaced QT_VERSION and KDE_VERSION with the proper Qt and
- KDE version constants. Fixed a bad bug converting from QStrings to
+ to SGML. Replaced QT_VERSION and KDE_VERSION with the proper TQt and
+ KDE version constants. Fixed a bad bug converting from TQStrings to
Python strings. The "connect" convenience function has been removed.
Added the class variables for all supported classes. Removed SLOT()
- from all examples. Renamed some static functions in QDate, QTime and
- QFile (needed because of the new implementation of static member
+ from all examples. Renamed some static functions in TQDate, TQTime and
+ TQFile (needed because of the new implementation of static member
functions). Added the ordinary functions related to supported classes.
- Added QListView, QListViewItem, QCheckListItem, KButton, KButtonBox,
+ Added TQListView, TQListViewItem, TQCheckListItem, KButton, KButtonBox,
KContainerLayout, KContainerLayoutItem, KControlApplication,
KControlDialog, KConfigWidget, KDatePicker, KDateTable, KDialog,
KDirectionButton, KGradientSelector, KIntegerLine, KLed, KLedLamp,
KListSpinBox, KNewPanner, KNumericSpinBox, KPanner, KPopupMenu,
KQuickHelp, KQuickHelpWindow, KRestrictedLine, KRuler, KSelector,
KSeparator, KSlider, KSpinBox, KTabBar, KTabButton, KTabCtl,
- KToolBoxManager, KWizard, KWizardPage, KXYSelector. Tested with Qt
+ KToolBoxManager, KWizard, KWizardPage, KXYSelector. Tested with TQt
v1.44, KDE v1.1, Python v1.5.2, egcs v1.1.2 and glibc v2.1.
v0.6 20th February 1999
Removed some handwritten code now that SIP automatically handles mapped
- classes and slots. Changed QString to be mapped to/from Python
+ classes and slots. Changed TQString to be mapped to/from Python
strings. Added the static member functions for all supported classes.
- Added new member functions for KDE v1.1. Added QBoxLayout,
- QButtonGroup, QChain, QCheckBox, QChildEvent, QDate, QDateTime,
- QDialog, QDir, QFileDialog, QFileIconProvider, QFileInfo,
- QFileInfoList, QGManager, QGroupBox, QGridLayout, QHBoxLayout, QHeader,
- QIconSet, QLayout, QMainWindow, QMessageBox, QMovie, QMultiLineEdit,
- QObjectList, QPrintDialog, QPrinter, QProgressBar, QProgressDialog,
- QRadioButton, QScrollView, QSemiModal, QSpinBox, QSplitter, QStatusBar,
- QTab, QTabBar, QTabDialog, QTime, QToolBar, QToolButton, QToolTip,
- QToolTipGroup, QVBoxLayout, QWhatsThis, QWidgetList, QWidgetStack.
+ Added new member functions for KDE v1.1. Added TQBoxLayout,
+ TQButtonGroup, TQChain, TQCheckBox, TQChildEvent, TQDate, TQDateTime,
+ TQDialog, TQDir, TQFileDialog, TQFileIconProvider, TQFileInfo,
+ TQFileInfoList, TQGManager, TQGroupBox, TQGridLayout, TQHBoxLayout, TQHeader,
+ TQIconSet, TQLayout, TQMainWindow, TQMessageBox, TQMovie, TQMultiLineEdit,
+ TQObjectList, TQPrintDialog, TQPrinter, TQProgressBar, TQProgressDialog,
+ TQRadioButton, TQScrollView, TQSemiModal, TQSpinBox, TQSplitter, TQStatusBar,
+ TQTab, TQTabBar, TQTabDialog, TQTime, TQToolBar, TQToolButton, TQToolTip,
+ TQToolTipGroup, TQVBoxLayout, TQWhatsThis, TQWidgetList, TQWidgetStack.
Added DlgLocation, KColorButton, KColorCombo, KColorDialog,
KColorGroup, KDirDialog, KDirEntry, KEdit, KFM, KFileBaseDialog,
KFileBookmark, KFileDialog, KFileInfo, KFileInfoContents,
KFileInfoList, KFontDialog, KHTMLView, KIconLoaderButton,
KIconLoaderDialog, KMsgBox, KPixmap, KProgress, KRadioGroup,
- KSimpleConfig, KURL. Tested with Qt v1.42, KDE v1.1, egcs v1.1.1 and
+ KSimpleConfig, KURL. Tested with TQt v1.42, KDE v1.1, egcs v1.1.1 and
glibc v2.1.
v0.5 21st January 1999
The bindings are now packaged with autoconf configure scripts. The
- enum in QFrame is now unnamed as it is in Qt. All the examples changed
+ enum in TQFrame is now unnamed as it is in TQt. All the examples changed
to use the new form of enums. Added support for qApp, the global
- QColors, kapp, i18n(), Icon() and ICON(). Same test environment as
+ TQColors, kapp, i18n(), Icon() and ICON(). Same test environment as
v0.4.
v0.4 9th January 1999
- Enough Qt and KDE classes to implement the 14 Qt tutorials and KMyApp,
+ Enough TQt and KDE classes to implement the 14 TQt tutorials and KMyApp,
but still not that many that implement user interface widgets. Tested
- with Qt v1.42, KDE v1.0 and gcc v2.8.1.
+ with TQt v1.42, KDE v1.0 and gcc v2.8.1.
v0.3 9th December 1998
- Many more Qt classes, but still not many that implement user interface
+ Many more TQt classes, but still not many that implement user interface
widgets. Those classes that are implemented are almost all fully
- implemented. Tested with Qt v1.42.
+ implemented. Tested with TQt v1.42.
v0.2 5th December 1999
Added the definitions of protected and virtual member functions.
v0.1 1st November 1998
First release (with a very small set of classes implemented) to give
- people a flavour. Tested with Qt v1.41.
+ people a flavour. Tested with TQt v1.41.
diff --git a/README b/README
index 1af7d9f..6bef4cd 100644
--- a/README
+++ b/README
@@ -1,9 +1,9 @@
- PyQt - Python Bindings for the Qt Toolkit
+ PyTQt - Python Bindings for the TQt Toolkit
INTRODUCTION
-These are the Python bindings for Qt. You must also have the SIP Python
+These are the Python bindings for TQt. You must also have the SIP Python
bindings generator installed.
The homepage is http://www.riverbankcomputing.co.uk/pyqt/.
@@ -13,9 +13,9 @@ The homepage of SIP is http://www.riverbankcomputing.co.uk/sip/.
COMMERCIAL VERSION
-If you have the Commercial version of PyQt then you should also have a
+If you have the Commercial version of PyTQt then you should also have a
license file that you downloaded separately. The license file must be copied
-to the "sip" directory before starting to build PyQt.
+to the "sip" directory before starting to build PyTQt.
INSTALLATION
@@ -24,7 +24,7 @@ Check for any other README files in this directory that relate to your
particular platform. Feel free to contribute a README for your platform or to
provide updates to any existing documentation.
-The first step is to configure PyQt by running the following command.
+The first step is to configure PyTQt by running the following command.
python configure.py
@@ -39,21 +39,21 @@ interpreter for which you wish to generate bindings for.
The configure.py script takes many options. Use the "-h" command line option
to display a full list of the available options.
-The next step is to build PyQt using your platform's make command.
+The next step is to build PyTQt using your platform's make command.
make
-The final step is to install PyQt by running the following command. (Depending
-on your system you may require root or administrator privileges.)
+The final step is to install PyTQt by running the following command. (Depending
+on your system you may retquire root or administrator privileges.)
make install
THE REST OF THE DISTRIBUTION
-The "examples2" and "examples3" directories contain some examples (for Qt v2.x
-and Qt v3.x respectively) of Python scripts, including versions of the standard
-Qt tutorials and examples.
+The "examples2" and "examples3" directories contain some examples (for TQt v2.x
+and TQt v3.x respectively) of Python scripts, including versions of the standard
+TQt tutorials and examples.
The "doc" directory contains SGML and HTML documentation for the bindings.
This documentation includes a section describing the differences visible to
diff --git a/README.AIX b/README.AIX
index d7db29b..693ca2b 100644
--- a/README.AIX
+++ b/README.AIX
@@ -1,16 +1,16 @@
-This file describes some things to be aware of when building SIP (and PyQt)
+This file describes some things to be aware of when building SIP (and PyTQt)
under AIX.
-I had success building SIP V3/V4 (and PyQt) on AIX 4.3.3 and on AIX 5.1 with
+I had success building SIP V3/V4 (and PyTQt) on AIX 4.3.3 and on AIX 5.1 with
VisualAge C++ and with gcc.
VisualAge C++ was version 6.0 but it should also work with version 5.x.
The GNU compiler was version 3.3.2 downloaded as a binary from
http://aixpdslib.seas.ucla.edu/aixpdslib.html
-The Qt-Version was 3.2.3 but it should also work with previous versions.
+The TQt-Version was 3.2.3 but it should also work with previous versions.
-If you are using Python version 2.3.3 or higher, SIP (and PyQt) should build
+If you are using Python version 2.3.3 or higher, SIP (and PyTQt) should build
out of the box without any changes.
If you are using a Python version before 2.3.3, you have to patch Python,
@@ -57,11 +57,11 @@ diff -uNr Python-2.3.2.orig/configure Python-2.3.2/configure
Darwin/*) DYNLOADFILE="dynload_next.o";;
---8<-------------------------------------------------------------------->8---
-Note: I did not mix the compilers when building Qt, Python, SIP and PyQt. At
-least Qt, SIP and PyQt must be built with the same compiler because of
+Note: I did not mix the compilers when building TQt, Python, SIP and PyTQt. At
+least TQt, SIP and PyTQt must be built with the same compiler because of
different name mangling schemes.
-If you have any problems or questions on building SIP or PyQt on AIX, either
+If you have any problems or questions on building SIP or PyTQt on AIX, either
send an email to ulrich.berning@desys.de or use the PyKDE mailing list.
Ulrich Berning
diff --git a/README.SunOS b/README.SunOS
index 5b176c8..139c964 100644
--- a/README.SunOS
+++ b/README.SunOS
@@ -13,29 +13,29 @@
types in overloaded method signatures and issues a compiler error.
In this case bool is declared in qt/include/qglobal.h as
'typedef int bool;'. To workaround this '#if 0' out the the declaration
- and body of 'proxySlot(bool)' in PyQt/qt/sipqtProxyqt.h and
- PyQt/qt/qtcmodule.cpp. This resolves the compiler error but breaks
+ and body of 'proxySlot(bool)' in PyTQt/qt/sipqtProxyqt.h and
+ PyTQt/qt/qtcmodule.cpp. This resolves the compiler error but breaks
any 'sig(bool)' type signals. To workaround this, save the
- PyQt/qt/sipqtProxyqt.moc generated after fixing the compiler error and
+ PyTQt/qt/sipqtProxyqt.moc generated after fixing the compiler error and
add the following bits of code:
...
- static const QUParameter param_slot_42[] = {
- { 0, &static_QUType_bool, 0, QUParameter::In }
+ static const TQUParameter param_slot_42[] = {
+ { 0, &static_QUType_bool, 0, TQUParameter::In }
};
- static const QUMethod slot_42 = {"proxySlot", 1, param_slot_42 };
- static const QMetaData slot_tbl[] = {
+ static const TQUMethod slot_42 = {"proxySlot", 1, param_slot_42 };
+ static const TQMetaData slot_tbl[] = {
...
- { "proxySlot(bool)", &slot_42, QMetaData::Public }
+ { "proxySlot(bool)", &slot_42, TQMetaData::Public }
};
- metaObj = QMetaObject::new_metaobject(
+ metaObj = TQMetaObject::new_metaobject(
"sipProxyqt", parentObject,
slot_tbl, 43,
...
case 42: proxySlot(static_QUType_bool.get(_o+1)); break;
- You will need to comment out the line in PyQt/qt/Makefile that re-generates
- PyQt/qt/sipqtProxyqt.moc with moc to avoid the above changes from being
+ You will need to comment out the line in PyTQt/qt/Makefile that re-generates
+ PyTQt/qt/sipqtProxyqt.moc with moc to avoid the above changes from being
overwritten.
In order to test that everything has been done correctly, create a
diff --git a/THANKS b/THANKS
index 7204f8a..9a1fc14 100644
--- a/THANKS
+++ b/THANKS
@@ -1,6 +1,6 @@
Torsten Marek
- For going through the Qt classes and adding applicable operators to
- PyQt.
+ For going through the TQt classes and adding applicable operators to
+ PyTQt.
Detlev Offenbach
For picking up and enhancing eric.
@@ -13,20 +13,20 @@ Dimitri Papadopoulos-Orfanos
For all the help with the MacOS X port.
Jim Bublitz
- For QDataStream and the QDom classes, and picking up PyKDE.
+ For TQDataStream and the TQDom classes, and picking up PyKDE.
Pete Ware
- For lots of patches for Qt v2.1+.
+ For lots of patches for TQt v2.1+.
Boudewijn Rempt
For evangelising and providing so much support to other users. Oh, and
writing a book about it all.
Toby J Sargeant
- For QSocketNotifier and getting Python threads working with Qt.
+ For TQSocketNotifier and getting Python threads working with TQt.
Matt Gerassimoff
- For his Python versions of many of the Qt example programs.
+ For his Python versions of many of the TQt example programs.
Matt Gerassimoff, John Filo, Boudewijn Rempt
For testing and excellent bug reports.
diff --git a/build.py b/build.py
index 11e4a0c..692fa50 100644
--- a/build.py
+++ b/build.py
@@ -1,23 +1,23 @@
# 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.
#
-# This is the build script for PyQt. It should be run in the top level
+# This is the build script for PyTQt. It should be run in the top level
# directory of the source distribution and by the Python interpreter for which
# it is being built. It uses either qmake or tmake to do the hard work of
# generating the platform specific Makefiles.
@@ -41,7 +41,7 @@ except:
print "SIP v3.9 or later installed."
sys.exit(1)
-config = sipconfig.SIPConfig("PyQt 3.18.1")
+config = sipconfig.SIPConfig("PyTQt 3.18.1")
# Initialise the globals.
@@ -74,13 +74,13 @@ def usage(rcode = 2):
print " -a tag explicitly enable the qtpe module"
print " -b dir where pyuic and pylupdate will be installed [default %s]" % config.default_bin_dir
print " -c concatenate each module's C++ source files"
- print " -d dir where the PyQt modules will be installed [default %s]" % config.default_mod_dir
+ print " -d dir where the PyTQt modules will be installed [default %s]" % config.default_mod_dir
print " -g always release the GIL (SIP v3.x behaviour)"
print " -j # split the concatenated C++ source files into # pieces [default 1]"
- print " -n dir the directory containing the QScintilla header files [default %s]" % config.qt_inc_dir
- print " -o dir the directory containing the QScintilla library [default %s]" % config.qt_lib_dir
+ print " -n dir the directory containing the TQScintilla header files [default %s]" % config.qt_inc_dir
+ print " -o dir the directory containing the TQScintilla library [default %s]" % config.qt_lib_dir
print " -r generate code with tracing enabled [default disabled]"
- print " -v dir where the PyQt .sip files will be installed [default %s]" % config.default_sip_dir
+ print " -v dir where the PyTQt .sip files will be installed [default %s]" % config.default_sip_dir
sys.exit(rcode)
@@ -117,7 +117,7 @@ SOURCES = qttest.cpp
LIBS += @TEST_QUI_LIB@ @TEST_QSCINTILLA_LIB@
""")
- # Disable OpenGL, qui and QScintilla support by default.
+ # Disable OpenGL, tqui and TQScintilla support by default.
config.patches["@TEST_OPENGL@"] = ""
config.patches["@TEST_QUI_LIB@"] = ""
config.patches["@TEST_QSCINTILLA_INC@"] = ""
@@ -137,11 +137,11 @@ LIBS += @TEST_QUI_LIB@ @TEST_QSCINTILLA_LIB@
def tryModule(maindir, mname, incfile, ctor):
- """See if a PyQt module should be built and update the buildModules list
+ """See if a PyTQt module should be built and update the buildModules list
accordingly.
maindir is the directory containing this script.
- mname is the name of the PyQt module.
+ mname is the name of the PyTQt module.
incfile is the C++ header file that defines the class being used for the
test.
ctor is the constructor of the class being used for the test.
@@ -170,10 +170,10 @@ int main(int argc,char **argv)
sipconfig.run_make("clean")
-def checkQScintilla():
- """See if QScintilla can be found and what its version is.
+def checkTQScintilla():
+ """See if TQScintilla can be found and what its version is.
"""
- # Find the QScintilla header files.
+ # Find the TQScintilla header files.
sciglobal = os.path.join(sciIncDir, "qextscintillaglobal.h")
if os.access(sciglobal,os.F_OK):
@@ -181,26 +181,26 @@ def checkQScintilla():
sipconfig.inform("%s contains qextscintillaglobal.h." % (sciIncDir))
- # Get the QScintilla version number.
+ # Get the TQScintilla version number.
global sciVersion
- sciVersion, sciversstr = sipconfig.read_version(sciglobal, "QScintilla", "QSCINTILLA_VERSION", "QSCINTILLA_VERSION_STR")
+ sciVersion, sciversstr = sipconfig.read_version(sciglobal, "TQScintilla", "TQSCINTILLA_VERSION", "TQSCINTILLA_VERSION_STR")
- sipconfig.inform("QScintilla %s is being used." % (sciversstr))
+ sipconfig.inform("TQScintilla %s is being used." % (sciversstr))
# If we find a snapshot then set the version number to 0 as a special
# case.
if sciversstr[:8] == "snapshot":
sciVersion = 0
- # Find the QScintilla library.
+ # Find the TQScintilla library.
if sys.platform == "win32":
lpatt = "qscintilla.lib"
else:
lpatt = "libqscintilla.*"
if len(glob.glob(os.path.join(sciLibDir, lpatt))):
- sipconfig.inform("%s contains the QScintilla library." % sciLibDir)
+ sipconfig.inform("%s contains the TQScintilla library." % sciLibDir)
global sciLib
@@ -211,57 +211,57 @@ def checkQScintilla():
config.patches["@PYQT_QSCINTILLA_LIB@"] = sciLib
else:
- sipconfig.inform("The QScintilla library could not be found in %s and so the qtext module will not be built. If QScintilla is installed then use the -o argument to explicitly specify the correct directory." % (sciLibDir))
+ sipconfig.inform("The TQScintilla library could not be found in %s and so the qtext module will not be built. If TQScintilla is installed then use the -o argument to explicitly specify the correct directory." % (sciLibDir))
sciVersion = -1
else:
- sipconfig.inform("qextscintillaglobal.h could not be found in %s and so the qtext module will not be built. If QScintilla is installed then use the -n argument to explicitly specify the correct directory." % sciIncDir)
+ sipconfig.inform("qextscintillaglobal.h could not be found in %s and so the qtext module will not be built. If TQScintilla is installed then use the -n argument to explicitly specify the correct directory." % sciIncDir)
sciVersion = -1
def moduleChecks(maindir):
- """See which PyQt modules to build.
+ """See which PyTQt modules to build.
"""
- sipconfig.inform("Checking which additional PyQt modules to build.");
+ sipconfig.inform("Checking which additional PyTQt modules to build.");
- tryModule(maindir,"qtcanvas", "qcanvas.h", "QCanvas()")
- tryModule(maindir,"qtnetwork", "qsocket.h", "QSocket()")
- tryModule(maindir,"qttable", "qtable.h", "QTable()")
- tryModule(maindir,"qtxml", "qdom.h", "QDomImplementation()")
+ tryModule(maindir,"qtcanvas", "qcanvas.h", "TQCanvas()")
+ tryModule(maindir,"qtnetwork", "qsocket.h", "TQSocket()")
+ tryModule(maindir,"qttable", "qtable.h", "TQTable()")
+ tryModule(maindir,"qtxml", "qdom.h", "TQDomImplementation()")
if config.qt_version >= 0x030000:
- tryModule(maindir,"qtsql", "qsql.h", "QSql()")
+ tryModule(maindir,"qtsql", "qsql.h", "TQSql()")
# We need a different Makefile for the qtgl module.
config.patches["@TEST_OPENGL@"] = "opengl"
config.create_makefile("qttest.pro")
- tryModule(maindir,"qtgl", "qgl.h", "QGLWidget()")
+ tryModule(maindir,"qtgl", "qgl.h", "TQGLWidget()")
# Put things back.
config.patches["@TEST_OPENGL@"] = ""
config.create_makefile("qttest.pro")
- # Check for the qui library.
+ # Check for the tqui library.
if config.qt_version >= 0x030000:
if sys.platform == "win32":
- quilib = r"$(QTDIR)\lib\qui.lib"
+ tquilib = r"$(QTDIR)\lib\tqui.lib"
else:
- quilib = "-lqui"
+ tquilib = "-ltqui"
- config.patches["@PYQT_QUI_LIB@"] = quilib
+ config.patches["@PYQT_QUI_LIB@"] = tquilib
- config.patches["@TEST_QUI_LIB@"] = quilib
+ config.patches["@TEST_QUI_LIB@"] = tquilib
config.create_makefile("qttest.pro")
- tryModule(maindir,"qtui", "qwidgetfactory.h", "QWidgetFactory()")
+ tryModule(maindir,"qtui", "qwidgetfactory.h", "TQWidgetFactory()")
# Put things back.
config.patches["@TEST_QUI_LIB@"] = ""
config.create_makefile("qttest.pro")
- # Check for the QScintilla library.
+ # Check for the TQScintilla library.
if sciVersion >= 0:
config.patches["@TEST_QSCINTILLA_INC@"] = sciIncDir
config.patches["@TEST_QSCINTILLA_LIB@"] = sciLib
@@ -276,7 +276,7 @@ def moduleChecks(maindir):
def generateFeatures(featfile):
- """Generate the header file describing the Qt features that are enabled if
+ """Generate the header file describing the TQt features that are enabled if
it doesn't already exist. (If it already exists then we are probably cross
compiling and generated the file through other means.)
@@ -288,8 +288,8 @@ def generateFeatures(featfile):
sipconfig.inform("Generating the features file.")
- # The features that a given Qt configuration may or may not support. Note
- # that STYLE_WINDOWSXP requires special handling.
+ # The features that a given TQt configuration may or may not support. Note
+ # that STYLE_WINDOWSXP retquires special handling.
flist = ["ACTION", "CLIPBOARD", "CODECS", "COLORDIALOG", "DATASTREAM",
"DIAL", "DNS", "DOM", "DRAGANDDROP", "ICONVIEW", "IMAGE_TEXT",
"INPUTDIALOG", "FILEDIALOG", "FONTDATABASE", "FONTDIALOG",
@@ -315,7 +315,7 @@ def generateFeatures(featfile):
int main(int argc,char **argv)
{
FILE *fp;
- QApplication app(argc,argv,0);
+ TQApplication app(argc,argv,0);
if ((fp = fopen("%s","w")) == NULL)
{
@@ -324,12 +324,12 @@ int main(int argc,char **argv)
}
#if !defined(QT_THREAD_SUPPORT)
- fprintf(fp,"-x Qt_THREAD_SUPPORT\\n");
+ fprintf(fp,"-x TQt_THREAD_SUPPORT\\n");
#endif
#if (defined(Q_OS_WIN32) || defined(Q_OS_WIN64)) && QT_VERSION >= 0x030000
- if (qWinVersion() != Qt::WV_XP)
- fprintf(fp,"-x Qt_STYLE_WINDOWSXP\\n");
+ if (qWinVersion() != TQt::WV_XP)
+ fprintf(fp,"-x TQt_STYLE_WINDOWSXP\\n");
#endif
""" % (ffstr, ffstr))
@@ -337,7 +337,7 @@ int main(int argc,char **argv)
f.write(
"""
#if defined(QT_NO_%s)
- fprintf(fp,"-x Qt_%s\\n");
+ fprintf(fp,"-x TQt_%s\\n");
#endif
""" % (feat, feat))
@@ -359,11 +359,11 @@ int main(int argc,char **argv)
def generateSource(mname, plattag, qttag, xtrtag):
- """Generate the C++ source code for a particular PyQt module.
+ """Generate the C++ source code for a particular PyTQt module.
mname is the name of the module.
plattag is the SIP tag for the platform.
- qttag is the SIP tag for the Qt version.
+ qttag is the SIP tag for the TQt version.
xtrtag is an optional extra SIP tag.
"""
sipconfig.inform("Generating the C++ source for the %s module." % mname)
@@ -521,22 +521,22 @@ def main(argv):
else:
sipconfig.error("Please copy the license file %s to the sip directory.\n" % config.license_file)
- # Check the Qt version.
+ # Check the TQt version.
if config.qt_version == 0:
- sipconfig.error("SIP has been built with Qt support disabled.\n")
+ sipconfig.error("SIP has been built with TQt support disabled.\n")
- # Early versions of Qt for the Mac didn't include everything. Rather than
+ # Early versions of TQt for the Mac didn't include everything. Rather than
# maintain these in the future we just mandate a later version.
if sys.platform == "darwin" and config.qt_version < 0x030100:
- sipconfig.error("PyQt for MacOS/X requires Qt v3.1.0 or later.\n")
+ sipconfig.error("PyTQt for MacOS/X retquires TQt v3.1.0 or later.\n")
# Check the installation directory is valid and add it as a patch.
if not os.access(modDir,os.F_OK):
- sipconfig.error("The %s PyQt destination directory does not seem to exist. Use the -d argument to set the correct directory." % (modDir))
+ sipconfig.error("The %s PyTQt destination directory does not seem to exist. Use the -d argument to set the correct directory." % (modDir))
config.patches["@PYQT_MODDIR@"] = sipconfig.escape(modDir)
- sipconfig.inform("%s is the PyQt installation directory." % (modDir))
+ sipconfig.inform("%s is the PyTQt installation directory." % (modDir))
# Enable warnings for SIP v4 generated code.
if sipMajorVersion >= 4:
@@ -573,7 +573,7 @@ def main(argv):
config.patches["@PYQT_RBPROF@"] = rbprof
- # Link in the qassistantclient library for Qt v3.1+.
+ # Link in the qassistantclient library for TQt v3.1+.
qaclib = ""
if config.qt_version >= 0x030100:
@@ -584,9 +584,9 @@ def main(argv):
config.patches["@PYQT_QASSISTANTCLIENT_LIB@"] = qaclib
- # Check for QScintilla.
+ # Check for TQScintilla.
if config.qt_version >= 0x030000:
- checkQScintilla()
+ checkTQScintilla()
# Create a build directory that we can compile test programs.
maindir = mkTempBuildDir()
@@ -595,7 +595,7 @@ def main(argv):
if config.qt_version >= 0x020000:
moduleChecks(maindir)
- # Work out the platform and Qt version tags to pass to SIP to generate the
+ # Work out the platform and TQt version tags to pass to SIP to generate the
# code we need.
if config.qt_lib == "qte":
plattag = "WS_QWS"
@@ -607,36 +607,36 @@ def main(argv):
plattag = "WS_X11"
qttags = {
- 0x020000: "Qt_1_43",
- 0x020100: "Qt_2_00",
- 0x020200: "Qt_2_1_0",
- 0x020300: "Qt_2_2_0",
- 0x020301: "Qt_2_3_0",
- 0x030000: "Qt_2_3_1",
- 0x030001: "Qt_3_0_0",
- 0x030002: "Qt_3_0_1",
- 0x030004: "Qt_3_0_2",
- 0x030005: "Qt_3_0_4",
- 0x030006: "Qt_3_0_5",
- 0x030100: "Qt_3_0_6",
- 0x030101: "Qt_3_1_0",
- 0x030102: "Qt_3_1_1",
- 0x030200: "Qt_3_1_2",
- 0x030300: "Qt_3_2_0",
- 0x040000: "Qt_3_3_0"
+ 0x020000: "TQt_1_43",
+ 0x020100: "TQt_2_00",
+ 0x020200: "TQt_2_1_0",
+ 0x020300: "TQt_2_2_0",
+ 0x020301: "TQt_2_3_0",
+ 0x030000: "TQt_2_3_1",
+ 0x030001: "TQt_3_0_0",
+ 0x030002: "TQt_3_0_1",
+ 0x030004: "TQt_3_0_2",
+ 0x030005: "TQt_3_0_4",
+ 0x030006: "TQt_3_0_5",
+ 0x030100: "TQt_3_0_6",
+ 0x030101: "TQt_3_1_0",
+ 0x030102: "TQt_3_1_1",
+ 0x030200: "TQt_3_1_2",
+ 0x030300: "TQt_3_2_0",
+ 0x040000: "TQt_3_3_0"
}
- qttag = versionToTag(config.qt_version, qttags, "Qt")
+ qttag = versionToTag(config.qt_version, qttags, "TQt")
- # Work out the QScintilla tag.
+ # Work out the TQScintilla tag.
if sciVersion >= 0:
scitags = {
- 0x010100: "QScintilla_1_0",
- 0x010200: "QScintilla_1_1",
- 0x020000: "QScintilla_1_2"
+ 0x010100: "TQScintilla_1_0",
+ 0x010200: "TQScintilla_1_1",
+ 0x020000: "TQScintilla_1_2"
}
- scitag = versionToTag(sciVersion, scitags, "QScintilla")
+ scitag = versionToTag(sciVersion, scitags, "TQScintilla")
else:
scitag = None
@@ -697,7 +697,7 @@ def main(argv):
config.create_makefile("pyuic.pro", [])
sipconfig.pop_dir(olddir)
- # Build pylupdate if Qt v3.0 or later.
+ # Build pylupdate if TQt v3.0 or later.
if config.qt_version >= 0x030000:
sipconfig.inform("Creating Makefile for pylupdate3.")
subdirs.append("pylupdate3")
@@ -708,11 +708,11 @@ def main(argv):
# Generate the top-level Makefile.
sipconfig.inform("Creating top level Makefile.")
- sipconfig.copy_to_file("PyQt.pro.in", "TEMPLATE = subdirs\nSUBDIRS = " + string.join(subdirs) + "\n")
- config.create_makefile("PyQt.pro")
+ sipconfig.copy_to_file("PyTQt.pro.in", "TEMPLATE = subdirs\nSUBDIRS = " + string.join(subdirs) + "\n")
+ config.create_makefile("PyTQt.pro")
# Tell the user what to do next.
- msg = "The build of the PyQt source code for your system is now complete. To compile and install PyQt run \"%s\" and \"%s install\" with appropriate user privileges." % (config.make_bin, config.make_bin)
+ msg = "The build of the PyTQt source code for your system is now complete. To compile and install PyTQt run \"%s\" and \"%s install\" with appropriate user privileges." % (config.make_bin, config.make_bin)
sipconfig.inform(msg)
diff --git a/configure.py b/configure.py
index cbbc1c2..e991a85 100644
--- a/configure.py
+++ b/configure.py
@@ -1,22 +1,22 @@
-# This script generates the PyQt configuration and generates the Makefiles.
+# This script generates the PyTQt configuration and generates the Makefiles.
#
# 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.
@@ -39,7 +39,7 @@ pyqt_version_str = "3.18.1"
sip_min_version = 0x040800
-# Try and find a Qt installation to use as the default.
+# Try and find a TQt installation to use as the default.
try:
qt_dir = os.environ["QTDIR"]
except KeyError:
@@ -62,7 +62,7 @@ qsci_version = 0
disabled_classes = []
if sys.platform == "win32":
- qsci_define = "QEXTSCINTILLA_DLL"
+ qsci_define = "TQEXTSCINTILLA_DLL"
else:
qsci_define = ""
@@ -108,29 +108,29 @@ def usage(rcode = 2):
sys.stdout.write(" -a tag explicitly enable the qtpe module\n")
sys.stdout.write(" -b dir where pyuic and pylupdate will be installed [default %s]\n" % opt_pyqtbindir)
sys.stdout.write(" -c concatenate each module's C/C++ source files\n")
- sys.stdout.write(" -d dir where the PyQt modules will be installed [default %\ns]" % opt_pyqtmoddir)
+ sys.stdout.write(" -d dir where the PyTQt modules will be installed [default %\ns]" % opt_pyqtmoddir)
sys.stdout.write(" -f keep any existing features file (when cross-compiling) [default remove]\n")
- sys.stdout.write(" -g dir where the Qt qconfig.h file can be found [default Qt include directory]\n")
+ sys.stdout.write(" -g dir where the TQt qconfig.h file can be found [default TQt include directory]\n")
sys.stdout.write(" -i enable checking of signed interpreters using the VendorID package [default disabled]\n")
sys.stdout.write(" -j # split the concatenated C++ source files into # pieces [default 1]\n")
- sys.stdout.write(" -k build the PyQt modules as static libraries\n")
+ sys.stdout.write(" -k build the PyTQt modules as static libraries\n")
sys.stdout.write(" -l dir the directory containing the VendorID header file [default %s]\n" % opt_vendincdir)
sys.stdout.write(" -m dir the directory containing the VendorID library [default %s]\n" % opt_vendlibdir)
- sys.stdout.write(" -n dir the directory containing the QScintilla header files [default Qt include directory]\n")
- sys.stdout.write(" -o dir the directory containing the QScintilla library [default Qt lib directory]\n")
- sys.stdout.write(" -q dir the root directory of the Qt installation [default %s]\n" % def_qt_dir)
+ sys.stdout.write(" -n dir the directory containing the TQScintilla header files [default TQt include directory]\n")
+ sys.stdout.write(" -o dir the directory containing the TQScintilla library [default TQt lib directory]\n")
+ sys.stdout.write(" -q dir the root directory of the TQt installation [default %s]\n" % def_qt_dir)
sys.stdout.write(" -r generate code with tracing enabled [default disabled]\n")
- sys.stdout.write(" -s QScintilla is a static library and not a DLL (Windows only)\n")
- sys.stdout.write(" -u build with debugging symbols (requires a debug build of Python on Windows\n")
- sys.stdout.write(" -v dir where the PyQt .sip files will be installed [default %s]\n" % opt_pyqtsipdir)
+ sys.stdout.write(" -s TQScintilla is a static library and not a DLL (Windows only)\n")
+ sys.stdout.write(" -u build with debugging symbols (retquires a debug build of Python on Windows\n")
+ sys.stdout.write(" -v dir where the PyTQt .sip files will be installed [default %s]\n" % opt_pyqtsipdir)
sys.stdout.write(" -w don't suppress compiler output during configuration\n")
- sys.stdout.write(" -y lib explicitly specify the type of Qt library, either qt, qt-mt, qte, qte-mt or qtmt\n")
+ sys.stdout.write(" -y lib explicitly specify the type of TQt library, either qt, qt-mt, qte, qte-mt, qtmt, tqt, tqt-mt, tqte, tqte-mt or tqtmt\n")
sys.exit(rcode)
class ConfigureBase:
- """This is the base class for all PyQt version specific configurer classes.
+ """This is the base class for all PyTQt version specific configurer classes.
Anything here is common to all configurers.
"""
def check_modules(self):
@@ -192,26 +192,26 @@ class ConfigureBase:
return opt_pyqtsipdir
-class ConfigurePyQt3(ConfigureBase):
- """This class defines the methods to configure PyQt v3.
+class ConfigurePyTQt3(ConfigureBase):
+ """This class defines the methods to configure PyTQt v3.
"""
def check_modules(self):
pyqt_modules.append("qt")
- check_module("qtcanvas", "qcanvas.h", "QCanvas()")
- check_module("qtnetwork", "qsocket.h", "QSocket()")
- check_module("qttable", "qtable.h", "QTable()")
- check_module("qtxml", "qdom.h", "QDomImplementation()")
- check_module("qtgl", "qgl.h", "QGLWidget()", opengl=1)
+ check_module("qtcanvas", "qcanvas.h", "TQCanvas()")
+ check_module("qtnetwork", "qsocket.h", "TQSocket()")
+ check_module("qttable", "qtable.h", "TQTable()")
+ check_module("qtxml", "qdom.h", "TQDomImplementation()")
+ check_module("qtgl", "qgl.h", "TQGLWidget()", opengl=1)
if qt_version >= 0x030000:
- check_module("qtui", "qwidgetfactory.h", "QWidgetFactory()", lib="qui")
+ check_module("qtui", "qwidgetfactory.h", "TQWidgetFactory()", lib="tqui")
if qt_edition in ("enterprise", "free"):
- check_module("qtsql", "qsql.h", "QSql()")
+ check_module("qtsql", "qsql.h", "TQSql()")
if sys.platform == "win32" and sipcfg.sip_version >= 0x040200:
- check_module("qtaxcontainer", "qaxobject.h", "QAxObject()", lib="qaxcontainer")
+ check_module("qtaxcontainer", "qaxobject.h", "TQAxObject()", lib="qaxcontainer")
if qsci_version:
check_module("qtext", "qextscintillabase.h", "QextScintillaBase()", define=qsci_define, include_dir=opt_qsciincdir, lib_dir=opt_qscilibdir, lib="qscintilla")
@@ -222,12 +222,12 @@ class ConfigurePyQt3(ConfigureBase):
qtmod_lib = None
if qt_version >= 0x030100:
- sipconfig.inform("Checking to see if the QAssistantClient class is available...")
+ sipconfig.inform("Checking to see if the TQAssistantClient class is available...")
- if check_class("qassistantclient.h", "QAssistantClient(\"foo\")", lib="qassistantclient"):
+ if check_class("qassistantclient.h", "TQAssistantClient(\"foo\")", lib="qassistantclient"):
qtmod_lib = "qassistantclient"
else:
- disabled_classes.append("QAssistantClient")
+ disabled_classes.append("TQAssistantClient")
return qtmod_lib
@@ -237,25 +237,25 @@ class ConfigurePyQt3(ConfigureBase):
def qt_version_tags(self):
return {
0x010403: None,
- 0x020000: "Qt_1_43",
- 0x020100: "Qt_2_00",
- 0x020200: "Qt_2_1_0",
- 0x020300: "Qt_2_2_0",
- 0x020301: "Qt_2_3_0",
- 0x030000: "Qt_2_3_1",
- 0x030001: "Qt_3_0_0",
- 0x030002: "Qt_3_0_1",
- 0x030004: "Qt_3_0_2",
- 0x030005: "Qt_3_0_4",
- 0x030006: "Qt_3_0_5",
- 0x030100: "Qt_3_0_6",
- 0x030101: "Qt_3_1_0",
- 0x030102: "Qt_3_1_1",
- 0x030200: "Qt_3_1_2",
- 0x030300: "Qt_3_2_0",
- 0x030305: "Qt_3_3_0",
- 0x030306: "Qt_3_3_5",
- 0x040000: "Qt_3_3_6"
+ 0x020000: "TQt_1_43",
+ 0x020100: "TQt_2_00",
+ 0x020200: "TQt_2_1_0",
+ 0x020300: "TQt_2_2_0",
+ 0x020301: "TQt_2_3_0",
+ 0x030000: "TQt_2_3_1",
+ 0x030001: "TQt_3_0_0",
+ 0x030002: "TQt_3_0_1",
+ 0x030004: "TQt_3_0_2",
+ 0x030005: "TQt_3_0_4",
+ 0x030006: "TQt_3_0_5",
+ 0x030100: "TQt_3_0_6",
+ 0x030101: "TQt_3_1_0",
+ 0x030102: "TQt_3_1_1",
+ 0x030200: "TQt_3_1_2",
+ 0x030300: "TQt_3_2_0",
+ 0x030305: "TQt_3_3_0",
+ 0x030306: "TQt_3_3_5",
+ 0x040000: "TQt_3_3_6"
}
def code(self, extra_include_dirs, extra_lib_dir, extra_libs):
@@ -271,7 +271,7 @@ class ConfigurePyQt3(ConfigureBase):
generate_code("qtpe", extra_libs=["qpe"], sip_flags=qtpe_sip_flags)
if "qtui" in pyqt_modules:
- generate_code("qtui", extra_libs=["qui"])
+ generate_code("qtui", extra_libs=["tqui"])
if "qtaxcontainer" in pyqt_modules:
generate_code("qtaxcontainer", extra_libs=["qaxcontainer"])
@@ -379,18 +379,18 @@ def inform_user():
else:
edstr = ""
- sipconfig.inform("Qt v%s %sis being used." % (sipconfig.version_to_string(qt_version), edstr))
+ sipconfig.inform("TQt v%s %sis being used." % (sipconfig.version_to_string(qt_version), edstr))
sipconfig.inform("SIP %s is being used." % sipcfg.sip_version_str)
- sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
+ sipconfig.inform("These PyTQt modules will be built: %s." % string.join(pyqt_modules))
if disabled_classes:
- sipconfig.inform("Support for these Qt classes has been disabled: %s." % string.join(disabled_classes))
+ sipconfig.inform("Support for these TQt classes has been disabled: %s." % string.join(disabled_classes))
- sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
- sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
+ sipconfig.inform("The PyTQt modules will be installed in %s." % opt_pyqtmoddir)
+ sipconfig.inform("The PyTQt .sip files will be installed in %s." % opt_pyqtsipdir)
- sipconfig.inform("The Qt header files are in %s." % qt_incdir)
- sipconfig.inform("The %s Qt library is in %s." % (opt_qtlib, qt_libdir))
+ sipconfig.inform("The TQt header files are in %s." % qt_incdir)
+ sipconfig.inform("The %s TQt library is in %s." % (opt_qtlib, qt_libdir))
if qt_version >= 0x020000:
sipconfig.inform("pyuic will be installed in %s." % opt_pyqtbindir)
@@ -399,11 +399,11 @@ def inform_user():
sipconfig.inform("pylupdate will be installed in %s." % opt_pyqtbindir)
if opt_vendorcheck:
- sipconfig.inform("PyQt will only be usable with signed interpreters.")
+ sipconfig.inform("PyTQt will only be usable with signed interpreters.")
def create_config(module, template, macros):
- """Create the PyQt configuration module so that it can be imported by build
+ """Create the PyTQt configuration module so that it can be imported by build
scripts.
module is the module file name.
@@ -471,7 +471,7 @@ def create_config(module, template, macros):
def compile_qt_program(name, define=None, include_dir=None, lib_dir=None, lib=None, opengl=0, python=0, debug=0):
- """Compile a simple Qt application.
+ """Compile a simple TQt application.
name is the name of the single source file.
define is a name to add to the list of preprocessor defines.
@@ -544,7 +544,7 @@ def compile_qt_program(name, define=None, include_dir=None, lib_dir=None, lib=No
def check_qscintilla():
- """See if QScintilla can be found and what its version is.
+ """See if TQScintilla can be found and what its version is.
"""
# Set the defaults if they haven't been explicitly specified.
global opt_qsciincdir, opt_qscilibdir
@@ -555,26 +555,26 @@ def check_qscintilla():
if opt_qscilibdir is None:
opt_qscilibdir = qt_libdir
- # Find the QScintilla header files.
+ # Find the TQScintilla header files.
sciglobal = os.path.join(opt_qsciincdir, "qextscintillaglobal.h")
if os.access(sciglobal, os.F_OK):
- # Get the QScintilla version number.
+ # Get the TQScintilla version number.
global qsci_version
- qsci_version, sciversstr = sipconfig.read_version(sciglobal, "QScintilla", "QSCINTILLA_VERSION", "QSCINTILLA_VERSION_STR")
+ qsci_version, sciversstr = sipconfig.read_version(sciglobal, "TQScintilla", "TQSCINTILLA_VERSION", "TQSCINTILLA_VERSION_STR")
if glob.glob(os.path.join(opt_qscilibdir, "*qscintilla*")):
- sipconfig.inform("QScintilla %s is being used." % sciversstr)
+ sipconfig.inform("TQScintilla %s is being used." % sciversstr)
# If we find a snapshot then set a negative version number as a
# special case.
if string.find(sciversstr, "snapshot") >= 0:
qsci_version = -1
else:
- sipconfig.inform("The QScintilla library could not be found in %s and so the qtext module will not be built. If QScintilla is installed then use the -o argument to explicitly specify the correct directory." % opt_qscilibdir)
+ sipconfig.inform("The TQScintilla library could not be found in %s and so the qtext module will not be built. If TQScintilla is installed then use the -o argument to explicitly specify the correct directory." % opt_qscilibdir)
else:
- sipconfig.inform("qextscintillaglobal.h could not be found in %s and so the qtext module will not be built. If QScintilla is installed then use the -n argument to explicitly specify the correct directory." % opt_qsciincdir)
+ sipconfig.inform("qextscintillaglobal.h could not be found in %s and so the qtext module will not be built. If TQScintilla is installed then use the -n argument to explicitly specify the correct directory." % opt_qsciincdir)
def check_vendorid():
@@ -648,7 +648,7 @@ int main(int argc, char **argv)
def check_plugin(cname, incfile):
- """Return non-zero if a class that might be a plugin is in the main Qt
+ """Return non-zero if a class that might be a plugin is in the main TQt
library.
cname is the name of the class.
@@ -664,8 +664,8 @@ def create_features_file(name):
name is the name of the features file in the current directory.
"""
- # The features that a given Qt configuration may or may not support. Note
- # that STYLE_WINDOWSXP and ASSISTANTCLIENT require special handling.
+ # The features that a given TQt configuration may or may not support. Note
+ # that STYLE_WINDOWSXP and ASSISTANTCLIENT retquire special handling.
flist = ["ACTION", "CLIPBOARD", "CODECS", "COLORDIALOG", "DATASTREAM",
"DIAL", "DNS", "DOM", "DRAGANDDROP", "ICONVIEW", "IMAGE_TEXT",
"INPUTDIALOG", "FILEDIALOG", "FONTDATABASE", "FONTDIALOG",
@@ -691,7 +691,7 @@ def create_features_file(name):
int main(int argc,char **argv)
{
FILE *fp;
- QApplication app(argc,argv,0);
+ TQApplication app(argc,argv,0);
if ((fp = fopen("%s","w")) == NULL)
{
@@ -700,15 +700,15 @@ int main(int argc,char **argv)
}
#if !defined(WITH_THREAD) || !defined(QT_THREAD_SUPPORT)
- fprintf(fp,"-x Qt_THREAD_SUPPORT\\n");
+ fprintf(fp,"-x TQt_THREAD_SUPPORT\\n");
#endif
#if !defined(Q_WS_WIN) || QT_VERSION < 0x030000 || defined(QT_NO_STYLE_WINDOWSXP)
- fprintf(fp,"-x Qt_STYLE_WINDOWSXP\\n");
+ fprintf(fp,"-x TQt_STYLE_WINDOWSXP\\n");
#endif
#if defined(Q_OS_WIN64)
- fprintf(fp,"-x Qt_Q_LONG_IS_long\\n");
+ fprintf(fp,"-x TQt_Q_LONG_IS_long\\n");
#endif
""" % (name, name))
@@ -716,15 +716,15 @@ int main(int argc,char **argv)
f.write(
"""
#if defined(QT_NO_%s)
- fprintf(fp,"-x Qt_%s\\n");
+ fprintf(fp,"-x TQt_%s\\n");
#endif
""" % (feat, feat))
- # Disable QAssistantClient for the Professional Edition.
- if "QAssistantClient" in disabled_classes:
+ # Disable TQAssistantClient for the Professional Edition.
+ if "TQAssistantClient" in disabled_classes:
f.write(
"""
- fprintf(fp,"-x Qt_ASSISTANTCLIENT\\n");
+ fprintf(fp,"-x TQt_ASSISTANTCLIENT\\n");
""")
f.write(
@@ -749,27 +749,27 @@ int main(int argc,char **argv)
sipconfig.error("There was an error creating the features file.")
# Check what features have been implemented as plugins and disable them.
- plugins = [("STYLE_CDE", "qcdestyle.h", "QCDEStyle"),
- ("STYLE_INTERLACE", "qinterlacestyle.h", "QInterlaceStyle"),
- ("STYLE_MOTIF", "qmotifstyle.h", "QMotifStyle"),
- ("STYLE_MOTIFPLUS", "qmotifplusstyle.h", "QMotifPlusStyle"),
- ("STYLE_PLATINUM", "qplatinumstyle.h", "QPlatinumStyle"),
- ("STYLE_SGI", "qsgistyle.h", "QSGIStyle"),
- ("STYLE_WINDOWSXP", "qwindowsxpstyle.h", "QWindowsXPStyle"),
- ("STYLE_WINDOWS", "qwindowsstyle.h", "QWindowsStyle")]
+ plugins = [("STYLE_CDE", "qcdestyle.h", "TQCDEStyle"),
+ ("STYLE_INTERLACE", "qinterlacestyle.h", "TQInterlaceStyle"),
+ ("STYLE_MOTIF", "qmotifstyle.h", "TQMotifStyle"),
+ ("STYLE_MOTIFPLUS", "qmotifplusstyle.h", "TQMotifPlusStyle"),
+ ("STYLE_PLATINUM", "qplatinumstyle.h", "TQPlatinumStyle"),
+ ("STYLE_SGI", "qsgistyle.h", "TQSGIStyle"),
+ ("STYLE_WINDOWSXP", "qwindowsxpstyle.h", "TQWindowsXPStyle"),
+ ("STYLE_WINDOWS", "qwindowsstyle.h", "TQWindowsStyle")]
f = open(name, "a")
for (feat, incfile, cname) in plugins:
if not check_plugin(cname, incfile):
- f.write("-x Qt_%s\n" % feat)
+ f.write("-x TQt_%s\n" % feat)
disabled_classes.append(cname)
f.close()
def get_feature_flags():
- """Return the list of SIP flags that exclude unsupported Qt features.
+ """Return the list of SIP flags that exclude unsupported TQt features.
"""
featfile = "features"
@@ -791,7 +791,7 @@ def get_feature_flags():
line = ff.readline()
if sipcfg.sip_version >= 0x040702:
- flags.extend(['-x', 'Qt_SIP_PRE_4_7_2'])
+ flags.extend(['-x', 'TQt_SIP_PRE_4_7_2'])
return flags
@@ -823,8 +823,8 @@ def set_sip_flags():
qt_sip_flags.append("-t")
qt_sip_flags.append(plattag)
- # Handle the Qt version tag.
- verstag = sipconfig.version_to_sip_tag(qt_version, pyqt.qt_version_tags(), "Qt")
+ # Handle the TQt version tag.
+ verstag = sipconfig.version_to_sip_tag(qt_version, pyqt.qt_version_tags(), "TQt")
if verstag:
qt_sip_flags.append("-t")
@@ -835,26 +835,26 @@ def set_sip_flags():
qtext_sip_flags.append(f)
qtpe_sip_flags.append(f)
- # Handle the QScintilla version tag.
+ # Handle the TQScintilla version tag.
if qsci_version:
qscitags = {
0x010100: None,
- 0x010200: "QScintilla_1_1",
- 0x010300: "QScintilla_1_2",
- 0x010400: "QScintilla_1_3",
- 0x010500: "QScintilla_1_4",
- 0x010600: "QScintilla_1_5",
- 0x010700: "QScintilla_1_6",
- 0x020000: "QScintilla_1_7"
+ 0x010200: "TQScintilla_1_1",
+ 0x010300: "TQScintilla_1_2",
+ 0x010400: "TQScintilla_1_3",
+ 0x010500: "TQScintilla_1_4",
+ 0x010600: "TQScintilla_1_5",
+ 0x010700: "TQScintilla_1_6",
+ 0x020000: "TQScintilla_1_7"
}
- verstag = sipconfig.version_to_sip_tag(qsci_version, qscitags, "QScintilla")
+ verstag = sipconfig.version_to_sip_tag(qsci_version, qscitags, "TQScintilla")
if verstag:
qtext_sip_flags.append("-t")
qtext_sip_flags.append(verstag)
- # Handle the Qtopia tag.
+ # Handle the TQtopia tag.
if opt_qtpetag:
qtpe_sip_flags.append("-t")
qtpe_sip_flags.append(opt_qtpetag)
@@ -972,7 +972,7 @@ def generate_code(mname, extra_cflags=None, extra_cxxflags=None, extra_define=No
def check_license():
- """Handle the validation of the PyQt license.
+ """Handle the validation of the PyTQt license.
"""
try:
import license
@@ -991,11 +991,11 @@ def check_license():
lname = "GNU General Public License"
lfile = None
- sipconfig.inform("This is the %s version of PyQt %s (licensed under the %s) for Python %s on %s." % (ltype, pyqt_version_str, lname, string.split(sys.version)[0], sys.platform))
+ sipconfig.inform("This is the %s version of PyTQt %s (licensed under the %s) for Python %s on %s." % (ltype, pyqt_version_str, lname, string.split(sys.version)[0], sys.platform))
# Common checks.
if ltype == "GPL" and sys.platform == "win32":
- error("You cannot use the GPL version of PyQt under Windows.")
+ error("You cannot use the GPL version of PyTQt under Windows.")
try:
qted = qt_edition
@@ -1004,7 +1004,7 @@ def check_license():
if qted and ltype != "internal":
if (qted == "free" and ltype != "GPL") or (qted != "free" and ltype == "GPL"):
- sipconfig.error("This version of PyQt and the %s edition of Qt have incompatible licenses." % qted)
+ sipconfig.error("This version of PyTQt and the %s edition of TQt have incompatible licenses." % qted)
# Confirm the license.
sys.stdout.write("""
@@ -1040,7 +1040,7 @@ Type 'no' to decline the terms of the license.
def get_build_macros(overrides):
- """Return the dictionary of platform specific build macros from the Qt
+ """Return the dictionary of platform specific build macros from the TQt
installation. Return None if any of the overrides was invalid.
overrides is a list of macros overrides from the user.
@@ -1054,7 +1054,7 @@ def get_build_macros(overrides):
if not os.access(fname, os.F_OK):
sipconfig.error("Unable to find the default configuration file %s. You can use the QMAKESPEC environment variable to specify the correct platform instead of \"default\"." % fname)
- # Add the Qt specific macros to the default.
+ # Add the TQt specific macros to the default.
names = sipcfg.build_macros().keys()
names.append("INCDIR_QT")
names.append("LIBDIR_QT")
@@ -1073,14 +1073,14 @@ def get_build_macros(overrides):
def check_qt_installation(macros):
- """Check the Qt installation and get the version number and edition.
+ """Check the TQt installation and get the version number and edition.
macros is the dictionary of build macros.
"""
# Get the Makefile generator.
generator = macros["MAKEFILE_GENERATOR"]
- # Set the Qt include and lib directories.
+ # Set the TQt include and lib directories.
global qt_incdir, qt_libdir
qt_incdir = macros["INCDIR_QT"]
@@ -1095,8 +1095,8 @@ def check_qt_installation(macros):
qt_libdir = os.path.join(qt_dir, "lib")
macros["LIBDIR_QT"] = qt_libdir
- # Check the Qt header files have been installed. Quietly check for Qt v4.
- qt4_d = os.path.join(qt_incdir, "QtCore")
+ # Check the TQt header files have been installed. Quietly check for TQt v4.
+ qt4_d = os.path.join(qt_incdir, "TQtCore")
qglobal = os.path.join(qt4_d, "qglobal.h")
@@ -1106,24 +1106,24 @@ def check_qt_installation(macros):
if not os.access(qglobal, os.F_OK):
sipconfig.error("qglobal.h could not be found in %s." % qt_incdir)
- # Get the Qt version number.
+ # Get the TQt version number.
global qt_version
- qt_version, ignore = sipconfig.read_version(qglobal, "Qt", "QT_VERSION")
+ qt_version, ignore = sipconfig.read_version(qglobal, "TQt", "QT_VERSION")
- # Early versions of Qt for the Mac didn't include everything. Rather than
+ # Early versions of TQt for the Mac didn't include everything. Rather than
# maintain these in the future we just mandate a later version.
if sys.platform == "darwin" and qt_version < 0x030100:
- sipconfig.error("PyQt for MacOS/X requires Qt v3.1.0 or later.")
+ sipconfig.error("PyTQt for MacOS/X retquires TQt v3.1.0 or later.")
# The way SIP v4.2 and later handle connections between signals and Python
- # slots only works with Qt v3 and later. Therefore Qt v2 and earlier needs
+ # slots only works with TQt v3 and later. Therefore TQt v2 and earlier needs
# SIP v3.
if qt_version < 0x030000:
- sipconfig.error("Qt v2.x and earlier require SIP v3.x.")
+ sipconfig.error("TQt v2.x and earlier retquire SIP v3.x.")
if qt_version >= 0x040000:
- sipconfig.error("Qt v4.x requires PyQt v4.x.")
+ sipconfig.error("TQt v4.x retquires PyTQt v4.x.")
# Try and work out which edition it is.
global qt_edition
@@ -1153,14 +1153,14 @@ def check_qt_installation(macros):
f.close()
if not qt_edition:
- sipconfig.error("The Qt edition could not be determined by parsing %s." % qconfig)
+ sipconfig.error("The TQt edition could not be determined by parsing %s." % qconfig)
elif qt_version == 0x020300 and sys.platform == "win32":
- # See if we have the Qt v2 non-commercial version.
+ # See if we have the TQt v2 non-commercial version.
if os.access(os.path.join(qt_libdir, "qt-mt230nc.lib"), os.F_OK):
qt_edition = "non-commercial"
if sys.platform == "win32":
- # Work out how Qt was built on Windows.
+ # Work out how TQt was built on Windows.
global qt_winconfig
@@ -1181,19 +1181,19 @@ def check_qt_installation(macros):
# Assume it was built as a DLL.
qt_winconfig = "shared"
- # Determine the Qt library to link against and if it has thread support.
+ # Determine the TQt library to link against and if it has thread support.
global qt_threaded
resolve_qt3_library(generator)
- if opt_qtlib in ("qt-mt", "qt-mtedu", "qt-mteval", "qte-mt", "qtmt", "qtmtedu", "qtmteval"):
+ if opt_qtlib in ("qt-mt", "qt-mtedu", "qt-mteval", "qte-mt", "qtmt", "qtmtedu", "qtmteval", "tqt-mt", "tqt-mtedu", "tqt-mteval", "tqte-mt", "tqtmt", "tqtmtedu", "tqtmteval"):
qt_threaded = 1
global pyqt
- pyqt = ConfigurePyQt3()
+ pyqt = ConfigurePyTQt3()
- # We haven't yet factored out sipconfig's knowledge of how to build Qt
+ # We haven't yet factored out sipconfig's knowledge of how to build TQt
# binaries and it is expecting to find these in the configuration when it
# generates the Makefiles.
sipcfg.qt_version = qt_version
@@ -1207,7 +1207,7 @@ def check_qt_installation(macros):
def resolve_qt3_library(generator):
- """See which version of the Qt v3 library can be found. (We can't trust
+ """See which version of the TQt v3 library can be found. (We can't trust
the configuration files.)
generator is the name of the Makefile generator.
@@ -1216,67 +1216,67 @@ def resolve_qt3_library(generator):
if opt_qtlib:
if not is_qt_library(generator, opt_qtlib):
- sipconfig.error("The %s Qt library could not be found in %s." % (opt_qtlib, qt_libdir))
+ sipconfig.error("The %s TQt library could not be found in %s." % (opt_qtlib, qt_libdir))
else:
- stlib = is_qt_library(generator, "qt")
- mtlib = is_qt_library(generator, "qt-mt")
- edlib = is_qt_library(generator, "qt-mtedu")
- evlib = is_qt_library(generator, "qt-mteval")
- emlib = is_qt_library(generator, "qte")
- etlib = is_qt_library(generator, "qte-mt")
+ stlib = is_qt_library(generator, "tqt")
+ mtlib = is_qt_library(generator, "tqt-mt")
+ edlib = is_qt_library(generator, "tqt-mtedu")
+ evlib = is_qt_library(generator, "tqt-mteval")
+ emlib = is_qt_library(generator, "tqte")
+ etlib = is_qt_library(generator, "tqte-mt")
# Borland likes to be a little different.
- bmtlib = is_qt_library(generator, "qtmt")
- bedlib = is_qt_library(generator, "qtmtedu")
- bevlib = is_qt_library(generator, "qtmteval")
+ bmtlib = is_qt_library(generator, "tqtmt")
+ bedlib = is_qt_library(generator, "tqtmtedu")
+ bevlib = is_qt_library(generator, "tqtmteval")
names = []
if stlib:
- opt_qtlib = "qt"
+ opt_qtlib = "tqt"
names.append(opt_qtlib)
if mtlib:
- opt_qtlib = "qt-mt"
+ opt_qtlib = "tqt-mt"
names.append(opt_qtlib)
if edlib:
- opt_qtlib = "qt-mtedu"
+ opt_qtlib = "tqt-mtedu"
names.append(opt_qtlib)
if evlib:
- opt_qtlib = "qt-mteval"
+ opt_qtlib = "tqt-mteval"
names.append(opt_qtlib)
if emlib:
- opt_qtlib = "qte"
+ opt_qtlib = "tqte"
names.append(opt_qtlib)
if etlib:
- opt_qtlib = "qte-mt"
+ opt_qtlib = "tqte-mt"
names.append(opt_qtlib)
if bmtlib:
- opt_qtlib = "qtmt"
+ opt_qtlib = "tqtmt"
names.append(opt_qtlib)
if bedlib:
- opt_qtlib = "qtmtedu"
+ opt_qtlib = "tqtmtedu"
names.append(opt_qtlib)
if bevlib:
- opt_qtlib = "qtmteval"
+ opt_qtlib = "tqtmteval"
names.append(opt_qtlib)
if not names:
- sipconfig.error("No Qt libraries could be found in %s." % qt_libdir)
+ sipconfig.error("No TQt libraries could be found in %s." % qt_libdir)
if len(names) > 1:
- sipconfig.error("These Qt libraries were found: %s. Use the -y argument to explicitly specify which you want to use." % string.join(names))
+ sipconfig.error("These TQt libraries were found: %s. Use the -y argument to explicitly specify which you want to use." % string.join(names))
def is_qt_library(generator, lib):
- """See if a particular Qt library is installed.
+ """See if a particular TQt library is installed.
generator is the name of the Makefile generator.
lib is the name of the library.
@@ -1302,12 +1302,12 @@ def main(argv):
"""
# Check Python isn't too new.
if sipcfg.py_version >= 0x030000:
- sipconfig.error("PyQt v3.x does not support Python v3.x")
+ sipconfig.error("PyTQt v3.x does not support Python v3.x")
# Check SIP is new enough.
if sipcfg.sip_version_str[:8] != "snapshot":
if sipcfg.sip_version < sip_min_version:
- sipconfig.error("This version of PyQt requires SIP v%s or later" % sipconfig.version_to_string(sip_min_version))
+ sipconfig.error("This version of PyTQt retquires SIP v%s or later" % sipconfig.version_to_string(sip_min_version))
# Parse the command line.
try:
@@ -1367,21 +1367,21 @@ def main(argv):
elif opt == "-w":
opt_verbose = 1
elif opt == "-y":
- if arg in ("qt", "qt-mt", "qt-mtedu", "qt-mteval", "qte", "qte-mt", "qtmt", "qtmtedu"):
+ if arg in ("qt", "qt-mt", "qt-mtedu", "qt-mteval", "qte", "qte-mt", "qtmt", "qtmtedu", "tqt", "tqt-mt", "tqt-mtedu", "tqt-mteval", "tqte", "tqte-mt", "tqtmt", "tqtmtedu"):
opt_qtlib = arg
else:
usage()
- # Check that we know the name of the Qt root directory.
+ # Check that we know the name of the TQt root directory.
if not qt_dir:
- sipconfig.error("A Qt installation could not be found. Use use the -q argument or the QTDIR environment variable to explicitly specify the correct directory.")
+ sipconfig.error("A TQt installation could not be found. Use use the -q argument or the QTDIR environment variable to explicitly specify the correct directory.")
# When building static libraries, signed interpreter checking makes no
# sense.
if opt_vendorcheck and opt_static:
sipconfig.error("Using the VendorID package when building static libraries makes no sense.")
- # Replace the existing build macros with the ones from the Qt installation.
+ # Replace the existing build macros with the ones from the TQt installation.
macros = get_build_macros(args)
if macros is None:
@@ -1389,13 +1389,13 @@ def main(argv):
sipcfg.set_build_macros(macros)
- # Check Qt is what we need.
+ # Check TQt is what we need.
check_qt_installation(macros)
# Check the licenses are compatible.
check_license()
- # Check for QScintilla.
+ # Check for TQScintilla.
check_qscintilla()
# Check which modules to build.
diff --git a/doc/PyQt.html b/doc/PyQt.html
index a7fb2ab..71e167d 100644
--- a/doc/PyQt.html
+++ b/doc/PyQt.html
@@ -2,7 +2,7 @@
<HTML
><HEAD
><TITLE
->Python Bindings for Qt (3.18.1)</TITLE
+>Python Bindings for TQt (3.18.1)</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"></HEAD
@@ -16,7 +16,7 @@ CLASS="TITLEPAGE"
CLASS="TITLE"
><A
NAME="AEN2"
->Python Bindings for Qt (3.18.1)</A
+>Python Bindings for TQt (3.18.1)</A
></H1
><H3
CLASS="AUTHOR"
@@ -33,7 +33,7 @@ CLASS="ABSTRACT"
NAME="AEN7"
></A
><P
-> This document describes a set of Python bindings for the Qt widget set.
+> This document describes a set of Python bindings for the TQt widget set.
Contact the author at <CODE
CLASS="EMAIL"
>&#60;<A
@@ -56,23 +56,23 @@ NAME="AEN10"
>Introduction</A
></H2
><P
->PyQt is a set of Python bindings for the Qt toolkit and available for all
-platforms supported by Qt, including Windows, Linux, UNIX, MacOS/X and embedded
+>PyTQt is a set of Python bindings for the TQt toolkit and available for all
+platforms supported by TQt, including Windows, Linux, UNIX, MacOS/X and embedded
systems such as the Sharp Zaurus and the Compaq iPAQ. They have been tested
-against Qt versions 1.43 to 3.3.7, Qt Non-commercial, Qtopia 1.5.0, and Python
-versions 1.5 to 2.5. Qt/Embedded v3 is not supported. Qt v4 is supported
-by PyQt v4.</P
+against TQt versions 1.43 to 3.3.7, TQt Non-commercial, TQtopia 1.5.0, and Python
+versions 1.5 to 2.5. TQt/Embedded v3 is not supported. TQt v4 is supported
+by PyTQt v4.</P
><P
->PyQt is available under the GPL license for use with the GPL version of Qt, a
-a commercial license for use with the commercial version of Qt, a
-non-commercial license for use with the non-commercial version of Qt v2, and an
-educational license for use with the educational version of Qt.</P
+>PyTQt is available under the GPL license for use with the GPL version of TQt, a
+a commercial license for use with the commercial version of TQt, a
+non-commercial license for use with the non-commercial version of TQt v2, and an
+educational license for use with the educational version of TQt.</P
><P
->PyQt is built using SIP (a tool for generating Python extension modules for
+>PyTQt is built using SIP (a tool for generating Python extension modules for
C++ class libraries). SIP v4.6 or later must be installed in order to build
-and run this version of PyQt.</P
+and run this version of PyTQt.</P
><P
->PyQt for MacOS/X requires Qt v3.1.0 or later and Python v2.3 or later.</P
+>PyTQt for MacOS/X retquires TQt v3.1.0 or later and Python v2.3 or later.</P
><P
>The bindings are implemented as a number of Python modules</P
><P
@@ -92,14 +92,14 @@ user interface widgets.</P
CLASS="LITERAL"
>qtaxcontainer</TT
> contains a sub-set of the classes implemented
-in Qt's QAxContainer module, part of Qt's ActiveQt framework.</P
+in TQt's TQAxContainer module, part of TQt's ActiveTQt framework.</P
></LI
><LI
><P
><TT
CLASS="LITERAL"
>qtcanvas</TT
-> contains the classes implemented in Qt's Canvas
+> contains the classes implemented in TQt's Canvas
module.</P
></LI
><LI
@@ -107,14 +107,14 @@ module.</P
><TT
CLASS="LITERAL"
>qtgl</TT
-> contains the classes implemented in Qt's OpenGL module.</P
+> contains the classes implemented in TQt's OpenGL module.</P
></LI
><LI
><P
><TT
CLASS="LITERAL"
>qtnetwork</TT
-> contains the classes implemented in Qt's Network
+> contains the classes implemented in TQt's Network
module.</P
></LI
><LI
@@ -122,22 +122,22 @@ module.</P
><TT
CLASS="LITERAL"
>qtpe</TT
-> contains the classes implemented in Qtopia (originally
-called the Qt Palmtop Environment). It is only supported with Qt/Embedded.</P
+> contains the classes implemented in TQtopia (originally
+called the TQt Palmtop Environment). It is only supported with TQt/Embedded.</P
></LI
><LI
><P
><TT
CLASS="LITERAL"
>qtsql</TT
-> contains the classes implemented in Qt's SQL module.</P
+> contains the classes implemented in TQt's SQL module.</P
></LI
><LI
><P
><TT
CLASS="LITERAL"
>qttable</TT
-> contains the classes implemented in Qt's Table
+> contains the classes implemented in TQt's Table
module.</P
></LI
><LI
@@ -145,8 +145,8 @@ module.</P
><TT
CLASS="LITERAL"
>qtui</TT
-> contains the classes implemented in Qt's qui library.
-These allow GUIs to be created directly from Qt Designer's
+> contains the classes implemented in TQt's tqui library.
+These allow GUIs to be created directly from TQt Designer's
<TT
CLASS="LITERAL"
>.ui</TT
@@ -157,7 +157,7 @@ CLASS="LITERAL"
><TT
CLASS="LITERAL"
>qtxml</TT
-> contains the classes implemented in Qt's XML module.</P
+> contains the classes implemented in TQt's XML module.</P
></LI
><LI
><P
@@ -165,19 +165,19 @@ CLASS="LITERAL"
CLASS="LITERAL"
>qtext</TT
> contains useful third-party classes that are not part
-of Qt. At the moment it contains bindings for QScintilla, the port to Qt of
+of TQt. At the moment it contains bindings for TQScintilla, the port to TQt of
the Scintilla programmer's editor class.</P
></LI
></UL
><P
->PyQt also includes the <TT
+>PyTQt also includes the <TT
CLASS="LITERAL"
>pyuic</TT
> and
<TT
CLASS="LITERAL"
>pylupdate</TT
-> utilities which correspond to the Qt
+> utilities which correspond to the TQt
<TT
CLASS="LITERAL"
>uic</TT
@@ -188,13 +188,13 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>pyuic</TT
-> converts the GUI designs created with Qt Designer to
+> converts the GUI designs created with TQt Designer to
executable Python code. <TT
CLASS="LITERAL"
>pylupdate</TT
> scans Python code,
extracts all strings that are candidates for internationalisation, and creates
-an XML file for use by Qt Linguist.</P
+an XML file for use by TQt Linguist.</P
>
</DIV>
<DIV
@@ -203,7 +203,7 @@ CLASS="SECT1"
CLASS="SECT1"
><A
NAME="AEN95"
->Other PyQt Goodies</A
+>Other PyTQt Goodies</A
></H2
><DIV
CLASS="SECT2"
@@ -211,17 +211,17 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN97"
->Using Qt Designer</A
+>Using TQt Designer</A
></H3
><P
->Qt Designer is a GPL'ed GUI design editor provided by Trolltech as part of Qt.
-It generates an XML description of a GUI design. Qt includes
+>TQt Designer is a GPL'ed GUI design editor provided by Trolltech as part of TQt.
+It generates an XML description of a GUI design. TQt includes
<TT
CLASS="LITERAL"
>uic</TT
> which generates C++ code from that XML.</P
><P
->PyQt includes <TT
+>PyTQt includes <TT
CLASS="LITERAL"
>pyuic</TT
> which generates Python code from the
@@ -236,7 +236,7 @@ custom widgets, <TT
CLASS="LITERAL"
>pyuic</TT
> has no way of knowing the name of the
-Python module containing the widget and so cannot generate the required
+Python module containing the widget and so cannot generate the retquired
<TT
CLASS="LITERAL"
>import</TT
@@ -248,7 +248,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>Comment</TT
-> field of Qt Designer's
+> field of TQt Designer's
<TT
CLASS="LITERAL"
>Form Settings</TT
@@ -303,7 +303,7 @@ from foo import bar</PRE
CLASS="LITERAL"
>pyuic</TT
> will extract Python code
-entered using Qt Designer to implement slots. In Qt Designer, when you need to
+entered using TQt Designer to implement slots. In TQt Designer, when you need to
edit a slot and the source editor appears, enter Python code between the curly
braces. Don't worry about the correct starting indent level, each line is
prepended with a correct indentation.</P
@@ -340,7 +340,7 @@ CLASS="PROGRAMLISTING"
>void DebMainWindowFrm::browsePushButtonClicked()
{
if self.debugging:
- QMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
+ TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
}</PRE
></TD
></TR
@@ -358,11 +358,11 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
->class DebMainWindowFrm(QMainWindow):
+>class DebMainWindowFrm(TQMainWindow):
...stuff...
def browsePushButtonClicked(self):
if self.debugging:
- QMessageBox.critical(self, "Event", "browse pushbutton was clicked!")</PRE
+ TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")</PRE
></TD
></TR
></TABLE
@@ -383,10 +383,10 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN133"
->Using Qt Linguist</A
+>Using TQt Linguist</A
></H3
><P
->Qt includes the <TT
+>TQt includes the <TT
CLASS="LITERAL"
>lupdate</TT
> program which parses C++ source
@@ -411,7 +411,7 @@ CLASS="LITERAL"
> binary language files that are distributed with
your application.</P
><P
->Thanks to Detlev Offenbach, PyQt includes the <TT
+>Thanks to Detlev Offenbach, PyTQt includes the <TT
CLASS="LITERAL"
>pylupdate</TT
>
@@ -419,7 +419,7 @@ program. This generates the same <TT
CLASS="LITERAL"
>.ts</TT
> language source files
-from your PyQt source files.</P
+from your PyTQt source files.</P
></DIV
></DIV
><DIV
@@ -428,14 +428,14 @@ CLASS="SECT1"
CLASS="SECT1"
><A
NAME="AEN145"
->Deploying Commercial PyQt Applications</A
+>Deploying Commercial PyTQt Applications</A
></H2
><P
->When deploying commercial PyQt applications it is necessary to discourage users
-from accessing the underlying PyQt modules for themselves. A user that used
+>When deploying commercial PyTQt applications it is necessary to discourage users
+from accessing the underlying PyTQt modules for themselves. A user that used
the modules shipped with your application to develop new applications would
-themselves be considered a developer and would need their own commercial Qt and
-PyQt licenses.</P
+themselves be considered a developer and would need their own commercial TQt and
+PyTQt licenses.</P
><P
>One solution to this problem is the
<A
@@ -446,11 +446,11 @@ TARGET="_top"
package. This allows you to build Python extension modules that can only be
imported by a digitally signed custom interpreter. The package enables you to
create such an interpreter with your application embedded within it. The
-result is an interpreter that can only run your application, and PyQt modules
+result is an interpreter that can only run your application, and PyTQt modules
that can only be imported by that interpreter. You can use the package to
similarly restrict access to any extension module.</P
><P
->In order to build PyQt with support for the VendorID package, pass the
+>In order to build PyTQt with support for the VendorID package, pass the
<TT
CLASS="LITERAL"
>-i</TT
@@ -475,12 +475,12 @@ CLASS="LITERAL"
CLASS="LITERAL"
>sipconfig</TT
> module) is described
-in the SIP documentation. PyQt includes the <TT
+in the SIP documentation. PyTQt includes the <TT
CLASS="LITERAL"
>pyqtconfig</TT
>
module that can be used by configuration scripts of other bindings that are
-built on top of PyQt.</P
+built on top of PyTQt.</P
><P
>The <TT
CLASS="LITERAL"
@@ -498,7 +498,7 @@ CLASS="LITERAL"
></DT
><DD
><P
->This class encapsulates additional configuration values, specific to PyQt, that
+>This class encapsulates additional configuration values, specific to PyTQt, that
can be accessed as instance variables.</P
><P
>The following configuration values are provided (in addition to those provided
@@ -538,7 +538,7 @@ CLASS="LITERAL"
></DT
><DD
><P
->The name of the directory containing the PyQt modules.</P
+>The name of the directory containing the PyTQt modules.</P
><P
></P
><P
@@ -551,7 +551,7 @@ CLASS="LITERAL"
></DT
><DD
><P
->A string containing the names of the PyQt modules that were installed.</P
+>A string containing the names of the PyTQt modules that were installed.</P
><P
></P
><P
@@ -778,7 +778,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>.sip</TT
> files for each
-of the PyQt modules is installed. A sub-directory exists with the same name as
+of the PyTQt modules is installed. A sub-directory exists with the same name as
the module.</P
><P
></P
@@ -792,7 +792,7 @@ CLASS="LITERAL"
></DT
><DD
><P
->The PyQt version as a 3 part hexadecimal number (eg. v3.10 is represented as
+>The PyTQt version as a 3 part hexadecimal number (eg. v3.10 is represented as
<TT
CLASS="LITERAL"
>0x030a00</TT
@@ -809,7 +809,7 @@ CLASS="LITERAL"
></DT
><DD
><P
->The PyQt version as a string. For development snapshots it will start with
+>The PyTQt version as a string. For development snapshots it will start with
<TT
CLASS="LITERAL"
>snapshot-</TT
@@ -825,7 +825,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
->QtModuleMakefile(sipconfig.SIPModuleMakefile)</TT
+>TQtModuleMakefile(sipconfig.SIPModuleMakefile)</TT
></DT
><DD
><P
@@ -860,7 +860,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
->QtAxContainerModuleMakefile(QtModuleMakefile)</TT
+>TQtAxContainerModuleMakefile(TQtModuleMakefile)</TT
></DT
><DD
><P
@@ -896,7 +896,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
->QtCanvasModuleMakefile(QtModuleMakefile)</TT
+>TQtCanvasModuleMakefile(TQtModuleMakefile)</TT
></DT
><DD
><P
@@ -932,7 +932,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
->QtExtModuleMakefile(QtModuleMakefile)</TT
+>TQtExtModuleMakefile(TQtModuleMakefile)</TT
></DT
><DD
><P
@@ -967,7 +967,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
->QtGLModuleMakefile(QtModuleMakefile)</TT
+>TQtGLModuleMakefile(TQtModuleMakefile)</TT
></DT
><DD
><P
@@ -1002,7 +1002,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
->QtNetworkModuleMakefile(QtModuleMakefile)</TT
+>TQtNetworkModuleMakefile(TQtModuleMakefile)</TT
></DT
><DD
><P
@@ -1038,7 +1038,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
->QtTableModuleMakefile(QtModuleMakefile)</TT
+>TQtTableModuleMakefile(TQtModuleMakefile)</TT
></DT
><DD
><P
@@ -1074,7 +1074,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
->QtSQLModuleMakefile(QtTableModuleMakefile)</TT
+>TQtSQLModuleMakefile(TQtTableModuleMakefile)</TT
></DT
><DD
><P
@@ -1109,7 +1109,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
->QtUIModuleMakefile(QtModuleMakefile)</TT
+>TQtUIModuleMakefile(TQtModuleMakefile)</TT
></DT
><DD
><P
@@ -1144,7 +1144,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
->QtXMLModuleMakefile(QtModuleMakefile)</TT
+>TQtXMLModuleMakefile(TQtModuleMakefile)</TT
></DT
><DD
><P
@@ -1196,16 +1196,16 @@ NAME="AEN459"
>super and Wrapped Classes</A
></H3
><P
->Internally PyQt implements a lazy technique for attribute lookup where
+>Internally PyTQt implements a lazy technique for attribute lookup where
attributes are only placed in type and instance dictionaries when they are
first referenced. This technique is needed to reduce the time taken to import
-large modules such as PyQt.</P
+large modules such as PyTQt.</P
><P
>In most circumstances this technique is transparent to an application. The
exception is when <TT
CLASS="LITERAL"
>super</TT
-> is used with a PyQt class. The way
+> is used with a PyTQt class. The way
that <TT
CLASS="LITERAL"
>super</TT
@@ -1217,7 +1217,7 @@ CLASS="LITERAL"
unless the attribute has been previously referenced.</P
><P
>Note that this restriction applies to any class wrapped by SIP and not just
-PyQt.</P
+PyTQt.</P
></DIV
><DIV
CLASS="SECT2"
@@ -1225,35 +1225,35 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN467"
->Python Strings, Qt Strings and Unicode</A
+>Python Strings, TQt Strings and Unicode</A
></H3
><P
->Unicode support was added to Qt in v2.0 and to Python in v1.6. In Qt, Unicode
+>Unicode support was added to TQt in v2.0 and to Python in v1.6. In TQt, Unicode
support is implemented using the <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> class. It is
important to understand that <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
>s, Python string objects
and Python Unicode objects are all different but conversions between them are
automatic in many cases and easy to achieve manually when needed.</P
><P
->Whenever PyQt expects a <TT
+>Whenever PyTQt expects a <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> as a function argument, a
Python string object or a Python Unicode object can be provided instead, and
-PyQt will do the necessary conversion automatically.</P
+PyTQt will do the necessary conversion automatically.</P
><P
>You may also manually convert Python string and Unicode objects to
<TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
>s by using the <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> constructor
as demonstrated in the following code fragment.</P
><TABLE
@@ -1264,15 +1264,15 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
->qs1 = QString('Converted Python string object')
-qs2 = QString(u'Converted Python Unicode object')</PRE
+>qs1 = TQString('Converted Python string object')
+qs2 = TQString(u'Converted Python Unicode object')</PRE
></TD
></TR
></TABLE
><P
>In order to convert a <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> to a Python string object use
the Python <TT
CLASS="LITERAL"
@@ -1283,16 +1283,16 @@ CLASS="LITERAL"
>str()</TT
> to a null <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> and an empty
<TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> both result in an empty Python string object.</P
><P
>In order to convert a <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> to a Python Unicode object use
the Python <TT
CLASS="LITERAL"
@@ -1303,11 +1303,11 @@ CLASS="LITERAL"
>unicode()</TT
> to a null <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> and an empty
<TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> both result in an empty Python Unicode object.</P
></DIV
><DIV
@@ -1370,7 +1370,7 @@ CLASS="LITERAL"
> Data Types</A
></H3
><P
->PyQt represents <TT
+>PyTQt represents <TT
CLASS="LITERAL"
>void *</TT
> values as objects of type
@@ -1416,11 +1416,11 @@ NAME="AEN517"
>Support for Threads</A
></H3
><P
->PyQt implements the full set of Qt's thread classes. Python, of course, also
+>PyTQt implements the full set of TQt's thread classes. Python, of course, also
has its own thread extension modules. If you are using SIP v4 (or later) and
-Python v2.3.5 (or later) then PyQt does not impose any additional restrictions.
-(Read the relevant part of the Qt documentation to understand the restrictions
-imposed by the Qt API.)</P
+Python v2.3.5 (or later) then PyTQt does not impose any additional restrictions.
+(Read the relevant part of the TQt documentation to understand the restrictions
+imposed by the TQt API.)</P
><P
>If you are using earlier versions of either SIP or Python then it is possible
to use either of the APIs so long as you follow some simple rules.</P
@@ -1429,30 +1429,30 @@ to use either of the APIs so long as you follow some simple rules.</P
><UL
><LI
><P
->If you use the Qt API then the very first <TT
+>If you use the TQt API then the very first <TT
CLASS="LITERAL"
>import</TT
> of one of
-the PyQt modules must be done from the main thread.</P
+the PyTQt modules must be done from the main thread.</P
></LI
><LI
><P
->If you use the Python API then all calls to PyQt (including any
+>If you use the Python API then all calls to PyTQt (including any
<TT
CLASS="LITERAL"
>import</TT
>s) must be done from one thread only. Therefore, if
-you want to make calls to PyQt from several threads then you must use the Qt
+you want to make calls to PyTQt from several threads then you must use the TQt
API.</P
></LI
><LI
><P
->If you want to use both APIs in the same application then all calls to PyQt
-must be done from threads created using the Qt API.</P
+>If you want to use both APIs in the same application then all calls to PyTQt
+must be done from threads created using the TQt API.</P
></LI
></UL
><P
->The above comments actually apply to any SIP generated module, not just PyQt.</P
+>The above comments actually apply to any SIP generated module, not just PyTQt.</P
></DIV
><DIV
CLASS="SECT2"
@@ -1474,8 +1474,8 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
->c = new QColor();
-c = new QColor();</PRE
+>c = new TQColor();
+c = new TQColor();</PRE
></TD
></TR
></TABLE
@@ -1493,8 +1493,8 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
->c = QColor()
-c = QColor()</PRE
+>c = TQColor()
+c = TQColor()</PRE
></TD
></TR
></TABLE
@@ -1509,17 +1509,17 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
->self.c1 = QColor()
-self.c2 = QColor()</PRE
+>self.c1 = TQColor()
+self.c2 = TQColor()</PRE
></TD
></TR
></TABLE
><P
->Sometimes a Qt class instance will maintain a pointer to another instance and
+>Sometimes a TQt class instance will maintain a pointer to another instance and
will eventually call the destructor of that second instance. The most common
example is that a <TT
CLASS="LITERAL"
->QObject</TT
+>TQObject</TT
> (and any of its sub-classes) keeps
pointers to its children and will automatically call their destructors. In
these cases, the corresponding Python object will also keep a reference to the
@@ -1527,7 +1527,7 @@ corresponding child objects.</P
><P
>So, in the following Python fragment, the first <TT
CLASS="LITERAL"
->QLabel</TT
+>TQLabel</TT
> is
not destroyed when the second is assigned to <TT
CLASS="LITERAL"
@@ -1535,7 +1535,7 @@ CLASS="LITERAL"
> because the
parent <TT
CLASS="LITERAL"
->QWidget</TT
+>TQWidget</TT
> still has a reference to it.</P
><TABLE
BORDER="0"
@@ -1545,9 +1545,9 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
->p = QWidget()
-l = QLabel('First label',p)
-l = QLabel('Second label',p)</PRE
+>p = TQWidget()
+l = TQLabel('First label',p)
+l = TQLabel('Second label',p)</PRE
></TD
></TR
></TABLE
@@ -1571,9 +1571,9 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
->tab = QTab()
+>tab = TQTab()
tab.label = "First Tab"
-tab.r = QRect(10,10,75,30)</PRE
+tab.r = TQRect(10,10,75,30)</PRE
></TD
></TR
></TABLE
@@ -1595,7 +1595,7 @@ NAME="AEN553"
></H3
><P
>It is not possible to define a new Python class that sub-classes from more than
-one Qt class.</P
+one TQt class.</P
></DIV
><DIV
CLASS="SECT2"
@@ -1606,21 +1606,21 @@ NAME="AEN556"
>i18n Support</A
></H3
><P
->Qt implements i18n support through the Qt Linguist application, the
+>TQt implements i18n support through the TQt Linguist application, the
<TT
CLASS="LITERAL"
->QTranslator</TT
+>TQTranslator</TT
> class, and the
<TT
CLASS="LITERAL"
->QApplication::translate()</TT
+>TQApplication::translate()</TT
>, <TT
CLASS="LITERAL"
->QObject::tr()</TT
+>TQObject::tr()</TT
>
and <TT
CLASS="LITERAL"
->QObject::trUtf8()</TT
+>TQObject::trUtf8()</TT
> methods. Usually the
<TT
CLASS="LITERAL"
@@ -1637,19 +1637,19 @@ CLASS="LITERAL"
> and uses the hardcoded class name as the
context. On the other hand, <TT
CLASS="LITERAL"
->QApplication::translate()</TT
+>TQApplication::translate()</TT
>
allows to context to be explicitly stated.</P
><P
->Unfortunately, because of the way Qt implents <TT
+>Unfortunately, because of the way TQt implents <TT
CLASS="LITERAL"
>tr()</TT
> (and
<TT
CLASS="LITERAL"
>trUtf8()</TT
->) it is not possible for PyQt to exactly reproduce
-its behavour. The PyQt implementation of <TT
+>) it is not possible for PyTQt to exactly reproduce
+its behavour. The PyTQt implementation of <TT
CLASS="LITERAL"
>tr()</TT
> (and
@@ -1658,7 +1658,7 @@ CLASS="LITERAL"
>trUtf8()</TT
>) uses the class name of the instance as the
context. The key difference, and the source of potential problems, is that the
-context is determined dynamically in PyQt, but is hardcoded in Qt. In other
+context is determined dynamically in PyTQt, but is hardcoded in TQt. In other
words, the context of a translation may change depending on an instance's class
hierarchy.</P
><TABLE
@@ -1669,9 +1669,9 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
->class A(QObject):
+>class A(TQObject):
def __init__(self):
- QObject.__init__(self)
+ TQObject.__init__(self)
def hello(self):
return self.tr("Hello")
@@ -1709,10 +1709,10 @@ CLASS="LITERAL"
>A</TT
> in both cases.</P
><P
->The PyQt behaviour is unsatisfactory and may be changed in the future. It is
+>The PyTQt behaviour is unsatisfactory and may be changed in the future. It is
recommended that <TT
CLASS="LITERAL"
->QApplication.translate()</TT
+>TQApplication.translate()</TT
> be used in
preference to <TT
CLASS="LITERAL"
@@ -1721,7 +1721,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>trUtf8()</TT
>). This
-is guaranteed to work with current and future versions of PyQt and makes it
+is guaranteed to work with current and future versions of PyTQt and makes it
much easier to share message files between Python and C++ code. Below is the
alternative implementation of <TT
CLASS="LITERAL"
@@ -1729,7 +1729,7 @@ CLASS="LITERAL"
> that uses
<TT
CLASS="LITERAL"
->QApplication.translate()</TT
+>TQApplication.translate()</TT
>.</P
><TABLE
BORDER="0"
@@ -1739,9 +1739,9 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
->class A(QObject):
+>class A(TQObject):
def __init__(self):
- QObject.__init__(self)
+ TQObject.__init__(self)
def hello(self):
return qApp.translate("A","Hello")</PRE
@@ -1755,7 +1755,7 @@ CLASS="LITERAL"
> uses
<TT
CLASS="LITERAL"
->QApplication.translate()</TT
+>TQApplication.translate()</TT
>.</P
></DIV
></DIV
@@ -1768,7 +1768,7 @@ NAME="AEN589"
>Signal and Slot Support</A
></H2
><P
->A signal may be either a Qt signal (specified using
+>A signal may be either a TQt signal (specified using
<TT
CLASS="LITERAL"
>SIGNAL()</TT
@@ -1778,7 +1778,7 @@ CLASS="LITERAL"
>PYSIGNAL()</TT
>).</P
><P
->A slot can be either a Python callable object, a Qt signal (specified using
+>A slot can be either a Python callable object, a TQt signal (specified using
<TT
CLASS="LITERAL"
>SIGNAL()</TT
@@ -1786,7 +1786,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>PYSIGNAL()</TT
->), or a Qt slot (specified using
+>), or a TQt slot (specified using
<TT
CLASS="LITERAL"
>SLOT()</TT
@@ -1802,20 +1802,20 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
->QObject.connect(a,SIGNAL("QtSig()"),pyFunction)
-QObject.connect(a,SIGNAL("QtSig()"),pyClass.pyMethod)
-QObject.connect(a,SIGNAL("QtSig()"),PYSIGNAL("PySig"))
-QObject.connect(a,SIGNAL("QtSig()"),SLOT("QtSlot()"))
-QObject.connect(a,PYSIGNAL("PySig"),pyFunction)
-QObject.connect(a,PYSIGNAL("PySig"),pyClass.pyMethod)
-QObject.connect(a,PYSIGNAL("PySig"),SIGNAL("QtSig()"))
-QObject.connect(a,PYSIGNAL("PySig"),SLOT("QtSlot()"))</PRE
+>TQObject.connect(a,SIGNAL("TQtSig()"),pyFunction)
+TQObject.connect(a,SIGNAL("TQtSig()"),pyClass.pyMethod)
+TQObject.connect(a,SIGNAL("TQtSig()"),PYSIGNAL("PySig"))
+TQObject.connect(a,SIGNAL("TQtSig()"),SLOT("TQtSlot()"))
+TQObject.connect(a,PYSIGNAL("PySig"),pyFunction)
+TQObject.connect(a,PYSIGNAL("PySig"),pyClass.pyMethod)
+TQObject.connect(a,PYSIGNAL("PySig"),SIGNAL("TQtSig()"))
+TQObject.connect(a,PYSIGNAL("PySig"),SLOT("TQtSlot()"))</PRE
></TD
></TR
></TABLE
><P
->When a slot is a Python method that corresponds to a Qt slot then a signal can
-be connected to either the Python method or the Qt slot. The following
+>When a slot is a Python method that corresponds to a TQt slot then a signal can
+be connected to either the Python method or the TQt slot. The following
connections achieve the same effect.</P
><TABLE
BORDER="0"
@@ -1825,11 +1825,11 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
->sbar = QScrollBar()
-lcd = QLCDNumber()
+>sbar = TQScrollBar()
+lcd = TQLCDNumber()
-QObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd.display)
-QObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))</PRE
+TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd.display)
+TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))</PRE
></TD
></TR
></TABLE
@@ -1841,13 +1841,13 @@ more efficient.</P
><P
>Any instance of a class that is derived from the <TT
CLASS="LITERAL"
->QObject</TT
+>TQObject</TT
>
class can emit a signal using the <TT
CLASS="LITERAL"
>emit</TT
> method. This takes
-two arguments. The first is the Python or Qt signal, the second is a Python
+two arguments. The first is the Python or TQt signal, the second is a Python
tuple which are the arguments to the signal. For example:</P
><TABLE
BORDER="0"
@@ -1870,8 +1870,8 @@ means that using lambda expressions as slots will not work unless you keep a
separate reference to the expression to prevent it from being immediately
garbage collected.</P
><P
->Qt allows a signal to be connected to a slot that requires fewer arguments than
-the signal passes. The extra arguments are quietly discarded. Python slots
+>TQt allows a signal to be connected to a slot that retquires fewer arguments than
+the signal passes. The extra arguments are tquietly discarded. Python slots
can be used in the same way. </P
></DIV
><DIV
@@ -1887,18 +1887,18 @@ NAME="AEN610"
For example the C++ static member function
<TT
CLASS="LITERAL"
->QObject::connect()</TT
+>TQObject::connect()</TT
> is called from Python as
<TT
CLASS="LITERAL"
->QObject.connect()</TT
+>TQObject.connect()</TT
> or <TT
CLASS="LITERAL"
>self.connect()</TT
> if
called from a sub-class of <TT
CLASS="LITERAL"
->QObject</TT
+>TQObject</TT
>.</P
></DIV
><DIV
@@ -1923,9 +1923,9 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
->Qt.SolidPattern
-QWidget.TabFocus
-QFrame.TabFocus</PRE
+>TQt.SolidPattern
+TQWidget.TabFocus
+TQFrame.TabFocus</PRE
></TD
></TR
></TABLE
@@ -1991,10 +1991,10 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN635"
->Qt Constants</A
+>TQt Constants</A
></H3
><P
->All constant values defined by Qt have equivalent constants defined to Python.</P
+>All constant values defined by TQt have equivalent constants defined to Python.</P
></DIV
><DIV
CLASS="SECT2"
@@ -2002,12 +2002,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN638"
->Qt (Qt v2+)</A
+>TQt (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->Qt</TT
+>TQt</TT
> is fully implemented.</P
></DIV
><DIV
@@ -2016,12 +2016,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN642"
->QAccel</A
+>TQAccel</A
></H3
><P
><TT
CLASS="LITERAL"
->QAccel</TT
+>TQAccel</TT
> is fully implemented.</P
></DIV
><DIV
@@ -2030,12 +2030,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN646"
->QAction (Qt v2.2+)</A
+>TQAction (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QAction</TT
+>TQAction</TT
> is fully implemented.</P
></DIV
><DIV
@@ -2044,12 +2044,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN650"
->QActionGroup (Qt v2.2+)</A
+>TQActionGroup (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QActionGroup</TT
+>TQActionGroup</TT
> is fully implemented.</P
></DIV
><DIV
@@ -2058,7 +2058,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN654"
->QApplication</A
+>TQApplication</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -2069,13 +2069,13 @@ NAME="AEN656"
></A
><CODE
CLASS="FUNCDEF"
->QApplication</CODE
+>TQApplication</CODE
>(int &amp;argc, char **argv);<P
></P
></DIV
><P
>This takes one parameter which is a list of argument strings. Arguments
-used by Qt are removed from the list.</P
+used by TQt are removed from the list.</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -2085,13 +2085,13 @@ NAME="AEN664"
></A
><CODE
CLASS="FUNCDEF"
->QApplication</CODE
+>TQApplication</CODE
>(int &amp;argc, char **argv, bool GUIenabled);<P
></P
></DIV
><P
>This takes two parameters, the first of which is a list of argument strings.
-Arguments used by Qt are removed from the list.</P
+Arguments used by TQt are removed from the list.</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -2101,13 +2101,13 @@ NAME="AEN674"
></A
><CODE
CLASS="FUNCDEF"
->QApplication</CODE
+>TQApplication</CODE
>(int &amp;argc, char **argv, Type type);<P
></P
></DIV
><P
>This takes two parameters, the first of which is a list of argument strings.
-Arguments used by Qt are removed from the list. (Qt v2.2+)</P
+Arguments used by TQt are removed from the list. (TQt v2.2+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -2133,12 +2133,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN690"
->QAssistantClient (Qt v3.1+)</A
+>TQAssistantClient (TQt v3.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QAssistantClient</TT
+>TQAssistantClient</TT
> is fully implemented.</P
></DIV
><DIV
@@ -2147,12 +2147,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN694"
->QBitmap</A
+>TQBitmap</A
></H3
><P
><TT
CLASS="LITERAL"
->QBitmap</TT
+>TQBitmap</TT
> is fully implemented.</P
></DIV
><DIV
@@ -2161,12 +2161,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN698"
->QBrush</A
+>TQBrush</A
></H3
><P
><TT
CLASS="LITERAL"
->QBrush</TT
+>TQBrush</TT
> is fully implemented, including the Python
<TT
CLASS="LITERAL"
@@ -2182,12 +2182,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN704"
->QButton</A
+>TQButton</A
></H3
><P
><TT
CLASS="LITERAL"
->QButton</TT
+>TQButton</TT
> is fully implemented.</P
></DIV
><DIV
@@ -2196,12 +2196,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN708"
->QButtonGroup</A
+>TQButtonGroup</A
></H3
><P
><TT
CLASS="LITERAL"
->QButtonGroup</TT
+>TQButtonGroup</TT
> is fully implemented.</P
></DIV
><DIV
@@ -2210,16 +2210,16 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN712"
->QByteArray</A
+>TQByteArray</A
></H3
><P
>A Python string can be used whenever a <TT
CLASS="LITERAL"
->QByteArray</TT
+>TQByteArray</TT
> can be
used. A <TT
CLASS="LITERAL"
->QByteArray</TT
+>TQByteArray</TT
> can be converted to a Python string
using the Python <TT
CLASS="LITERAL"
@@ -2234,7 +2234,7 @@ NAME="AEN718"
></A
><CODE
CLASS="FUNCDEF"
->QByteArray &#38;assign</CODE
+>TQByteArray &#38;assign</CODE
>(const char *data, uint size);<P
></P
></DIV
@@ -2324,7 +2324,7 @@ NAME="AEN762"
></A
><CODE
CLASS="FUNCDEF"
->QByteArray &#38;setRawData</CODE
+>TQByteArray &#38;setRawData</CODE
>(const char *data, uintsize);<P
></P
></DIV
@@ -2337,12 +2337,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN770"
->QCDEStyle (Qt v2+)</A
+>TQCDEStyle (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCDEStyle</TT
+>TQCDEStyle</TT
> is fully implemented.</P
></DIV
><DIV
@@ -2351,12 +2351,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN774"
->QCheckBox</A
+>TQCheckBox</A
></H3
><P
><TT
CLASS="LITERAL"
->QCheckBox</TT
+>TQCheckBox</TT
> is fully implemented.</P
></DIV
><DIV
@@ -2365,7 +2365,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN778"
->QClipboard</A
+>TQClipboard</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -2381,7 +2381,7 @@ CLASS="FUNCDEF"
></P
></DIV
><P
->Not yet implemented (Qt v1.x).</P
+>Not yet implemented (TQt v1.x).</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -2396,7 +2396,7 @@ CLASS="FUNCDEF"
></P
></DIV
><P
->Not yet implemented (Qt v1.x).</P
+>Not yet implemented (TQt v1.x).</P
></DIV
><DIV
CLASS="SECT2"
@@ -2404,7 +2404,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN794"
->QColor</A
+>TQColor</A
></H3
><P
>The Python <TT
@@ -2522,7 +2522,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN851"
->QColorDialog (Qt v2+)</A
+>TQColorDialog (TQt v2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -2533,8 +2533,8 @@ NAME="AEN853"
></A
><CODE
CLASS="FUNCDEF"
->static QRgb getRgba</CODE
->(QRgb initial, bool *ok, QWidget *parent = 0, const char *name = 0);<P
+>static TQRgb getRgba</CODE
+>(TQRgb initial, bool *ok, TQWidget *parent = 0, const char *name = 0);<P
></P
></DIV
><P
@@ -2551,7 +2551,7 @@ CLASS="LITERAL"
> parameters and returns a tuple containing the
<TT
CLASS="LITERAL"
->QRgb</TT
+>TQRgb</TT
> result and the <TT
CLASS="LITERAL"
>ok</TT
@@ -2563,12 +2563,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN870"
->QColorGroup</A
+>TQColorGroup</A
></H3
><P
><TT
CLASS="LITERAL"
->QColorGroup</TT
+>TQColorGroup</TT
> is fully implemented.</P
></DIV
><DIV
@@ -2577,12 +2577,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN874"
->QComboBox</A
+>TQComboBox</A
></H3
><P
><TT
CLASS="LITERAL"
->QComboBox</TT
+>TQComboBox</TT
> is fully implemented.</P
></DIV
><DIV
@@ -2591,7 +2591,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN878"
->QCommonStyle (Qt v2+)</A
+>TQCommonStyle (TQt v2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -2614,7 +2614,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>y</TT
-> values. (Qt v2)</P
+> values. (TQt v2)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -2625,7 +2625,7 @@ NAME="AEN890"
><CODE
CLASS="FUNCDEF"
>virtual void tabbarMetrics</CODE
->(const QTabBar *t, int &amp;hframe, int &amp;vframe, int &amp;overlap);<P
+>(const TQTabBar *t, int &amp;hframe, int &amp;vframe, int &amp;overlap);<P
></P
></DIV
><P
@@ -2643,7 +2643,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>overlap</TT
-> values. (Qt v2)</P
+> values. (TQt v2)</P
></DIV
><DIV
CLASS="SECT2"
@@ -2651,16 +2651,16 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN906"
->QCString (Qt v2+)</A
+>TQCString (TQt v2+)</A
></H3
><P
>A Python string can be used whenever a <TT
CLASS="LITERAL"
->QCString</TT
+>TQCString</TT
> can be used.
A <TT
CLASS="LITERAL"
->QCString</TT
+>TQCString</TT
> can be converted to a Python string using the
Python <TT
CLASS="LITERAL"
@@ -2675,7 +2675,7 @@ NAME="AEN912"
></A
><CODE
CLASS="FUNCDEF"
->QCString &amp;sprintf</CODE
+>TQCString &amp;sprintf</CODE
>(const char *format, ...);<P
></P
></DIV
@@ -2864,12 +2864,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN983"
->QCursor</A
+>TQCursor</A
></H3
><P
><TT
CLASS="LITERAL"
->QCursor</TT
+>TQCursor</TT
> is fully implemented.</P
></DIV
><DIV
@@ -2878,7 +2878,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN987"
->QDataStream</A
+>TQDataStream</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -2889,14 +2889,14 @@ NAME="AEN989"
></A
><CODE
CLASS="FUNCDEF"
->QDataStream &amp;readBytes</CODE
+>TQDataStream &amp;readBytes</CODE
>(const char *&amp;s, uint &amp;l);<P
></P
></DIV
><P
>This takes no parameters. The <TT
CLASS="LITERAL"
->QDataStream</TT
+>TQDataStream</TT
> result and the
data read are returned as a tuple.</P
><DIV
@@ -2908,7 +2908,7 @@ NAME="AEN998"
></A
><CODE
CLASS="FUNCDEF"
->QDataStream &amp;readRawBytes</CODE
+>TQDataStream &amp;readRawBytes</CODE
>(const char *s, uint l);<P
></P
></DIV
@@ -2919,7 +2919,7 @@ CLASS="LITERAL"
> parameter. The
<TT
CLASS="LITERAL"
->QDataStream</TT
+>TQDataStream</TT
> result and the data read are returned as a
tuple.</P
><DIV
@@ -2931,7 +2931,7 @@ NAME="AEN1008"
></A
><CODE
CLASS="FUNCDEF"
->QDataStream &amp;writeBytes</CODE
+>TQDataStream &amp;writeBytes</CODE
>(const char *s, uint len);<P
></P
></DIV
@@ -2953,7 +2953,7 @@ NAME="AEN1018"
></A
><CODE
CLASS="FUNCDEF"
->QDataStream &amp;writeRawBytes</CODE
+>TQDataStream &amp;writeRawBytes</CODE
>(const char *s, uint len);<P
></P
></DIV
@@ -2973,7 +2973,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1028"
->QDate</A
+>TQDate</A
></H3
><P
>The Python
@@ -3018,7 +3018,7 @@ CLASS="FUNCDEF"
></DIV
><P
>This takes no parameters and returns the week number and the year number as a
-tuple. (Qt v3.1+)</P
+tuple. (TQt v3.1+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -3026,12 +3026,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1044"
->QDateTime</A
+>TQDateTime</A
></H3
><P
><TT
CLASS="LITERAL"
->QDateTime</TT
+>TQDateTime</TT
> is fully implemented, including the Python
<TT
CLASS="LITERAL"
@@ -3066,12 +3066,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1055"
->QTime</A
+>TQTime</A
></H3
><P
><TT
CLASS="LITERAL"
->QTime</TT
+>TQTime</TT
> is fully implemented, including the Python
<TT
CLASS="LITERAL"
@@ -3106,12 +3106,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1066"
->QDateEdit (Qt v3+)</A
+>TQDateEdit (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDateEdit</TT
+>TQDateEdit</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3120,12 +3120,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1070"
->QTimeEdit (Qt v3+)</A
+>TQTimeEdit (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QTimeEdit</TT
+>TQTimeEdit</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3134,12 +3134,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1074"
->QDateTimeEdit (Qt v3+)</A
+>TQDateTimeEdit (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDateTimeEdit</TT
+>TQDateTimeEdit</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3148,12 +3148,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1078"
->QDesktopWidget (Qt v3+)</A
+>TQDesktopWidget (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDesktopWidget</TT
+>TQDesktopWidget</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3162,12 +3162,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1082"
->QDial (Qt v2.2+)</A
+>TQDial (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDial</TT
+>TQDial</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3176,7 +3176,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1086"
->QDialog</A
+>TQDialog</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -3203,7 +3203,7 @@ Python wrapper is garbage collected. Although this is a little inconsistent,
it ensures that the dialog is deleted without having to explicity code it
using <TT
CLASS="LITERAL"
->QObject.deleteLater()</TT
+>TQObject.deleteLater()</TT
> or other techniques.</P
></DIV
><DIV
@@ -3212,12 +3212,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1096"
->QDir</A
+>TQDir</A
></H3
><P
><TT
CLASS="LITERAL"
->QDir</TT
+>TQDir</TT
> is fully implemented, including the Python
<TT
CLASS="LITERAL"
@@ -3244,17 +3244,17 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1105"
->QFileInfoList</A
+>TQFileInfoList</A
></H3
><P
>This class isn't implemented. Whenever a <TT
CLASS="LITERAL"
->QFileInfoList</TT
+>TQFileInfoList</TT
> is
the return type of a function or the type of an argument, a Python list of
<TT
CLASS="LITERAL"
->QFileInfo</TT
+>TQFileInfo</TT
> instances is used instead.</P
></DIV
><DIV
@@ -3263,7 +3263,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1110"
->QDockArea (Qt v3+)</A
+>TQDockArea (TQt v3+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -3275,7 +3275,7 @@ NAME="AEN1112"
><CODE
CLASS="FUNCDEF"
>bool hasDockWindow const</CODE
->(QDockWindow *w, int *index = 0);<P
+>(TQDockWindow *w, int *index = 0);<P
></P
></DIV
><P
@@ -3283,7 +3283,7 @@ CLASS="FUNCDEF"
CLASS="LITERAL"
>w</TT
> parameter and returns the index of the
-QDockWIndow or -1 if the QDockArea does not contain the QDockWindow.</P
+TQDockWIndow or -1 if the TQDockArea does not contain the TQDockWindow.</P
></DIV
><DIV
CLASS="SECT2"
@@ -3291,12 +3291,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1121"
->QDockWindow (Qt v3+)</A
+>TQDockWindow (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDockWindow</TT
+>TQDockWindow</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3305,12 +3305,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1125"
->QColorDrag (Qt v2.1+)</A
+>TQColorDrag (TQt v2.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QColorDrag</TT
+>TQColorDrag</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3319,12 +3319,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1129"
->QDragObject</A
+>TQDragObject</A
></H3
><P
><TT
CLASS="LITERAL"
->QDragObject</TT
+>TQDragObject</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3333,12 +3333,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1133"
->QImageDrag</A
+>TQImageDrag</A
></H3
><P
><TT
CLASS="LITERAL"
->QImageDrag</TT
+>TQImageDrag</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3347,12 +3347,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1137"
->QStoredDrag</A
+>TQStoredDrag</A
></H3
><P
><TT
CLASS="LITERAL"
->QStoredDrag</TT
+>TQStoredDrag</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3361,12 +3361,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1141"
->QTextDrag</A
+>TQTextDrag</A
></H3
><P
><TT
CLASS="LITERAL"
->QTextDrag</TT
+>TQTextDrag</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3375,12 +3375,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1145"
->QUriDrag (Qt v2+)</A
+>TQUriDrag (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QUriDrag</TT
+>TQUriDrag</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3389,12 +3389,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1149"
->QUrlDrag (Qt v1.x)</A
+>TQUrlDrag (TQt v1.x)</A
></H3
><P
><TT
CLASS="LITERAL"
->QUrlDrag</TT
+>TQUrlDrag</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3403,12 +3403,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1153"
->QDropSite</A
+>TQDropSite</A
></H3
><P
><TT
CLASS="LITERAL"
->QDropSite</TT
+>TQDropSite</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3417,12 +3417,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1157"
->QErrorMessage (Qt v3+)</A
+>TQErrorMessage (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QErrorMessage</TT
+>TQErrorMessage</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3431,17 +3431,17 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1161"
->QEvent</A
+>TQEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QEvent</TT
+>TQEvent</TT
> is fully implemented.</P
><P
>Instances of <TT
CLASS="LITERAL"
->QEvent</TT
+>TQEvent</TT
>s are automatically converted to the
correct sub-class.</P
></DIV
@@ -3451,12 +3451,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1167"
->QChildEvent</A
+>TQChildEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QChildEvent</TT
+>TQChildEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3465,12 +3465,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1171"
->QCloseEvent</A
+>TQCloseEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QCloseEvent</TT
+>TQCloseEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3479,12 +3479,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1175"
->QIconDragEvent (Qt v3.3+)</A
+>TQIconDragEvent (TQt v3.3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QIconDragEvent</TT
+>TQIconDragEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3493,12 +3493,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1179"
->QContextMenuEvent (Qt v3+)</A
+>TQContextMenuEvent (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QContextMenuEvent</TT
+>TQContextMenuEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3507,12 +3507,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1183"
->QCustomEvent</A
+>TQCustomEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QCustomEvent</TT
+>TQCustomEvent</TT
> is fully implemented. Any Python object can be
passed as the event data and its reference count is increased.</P
></DIV
@@ -3522,12 +3522,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1187"
->QDragEnterEvent</A
+>TQDragEnterEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QDragEnterEvent</TT
+>TQDragEnterEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3536,12 +3536,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1191"
->QDragLeaveEvent</A
+>TQDragLeaveEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QDragLeaveEvent</TT
+>TQDragLeaveEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3550,12 +3550,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1195"
->QDragMoveEvent</A
+>TQDragMoveEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QDragMoveEvent</TT
+>TQDragMoveEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3564,12 +3564,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1199"
->QDropEvent</A
+>TQDropEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QDropEvent</TT
+>TQDropEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3578,12 +3578,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1203"
->QFocusEvent</A
+>TQFocusEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QFocusEvent</TT
+>TQFocusEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3592,12 +3592,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1207"
->QHideEvent</A
+>TQHideEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QHideEvent</TT
+>TQHideEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3606,12 +3606,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1211"
->QIMComposeEvent (Qt v3.1+)</A
+>TQIMComposeEvent (TQt v3.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QIMComposeEvent</TT
+>TQIMComposeEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3620,12 +3620,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1215"
->QIMEvent (Qt v3+)</A
+>TQIMEvent (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QIMEvent</TT
+>TQIMEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3634,12 +3634,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1219"
->QKeyEvent</A
+>TQKeyEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QKeyEvent</TT
+>TQKeyEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3648,12 +3648,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1223"
->QMouseEvent</A
+>TQMouseEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QMouseEvent</TT
+>TQMouseEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3662,12 +3662,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1227"
->QMoveEvent</A
+>TQMoveEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QMoveEvent</TT
+>TQMoveEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3676,12 +3676,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1231"
->QPaintEvent</A
+>TQPaintEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QPaintEvent</TT
+>TQPaintEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3690,12 +3690,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1235"
->QResizeEvent</A
+>TQResizeEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QResizeEvent</TT
+>TQResizeEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3704,12 +3704,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1239"
->QShowEvent</A
+>TQShowEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QShowEvent</TT
+>TQShowEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3718,12 +3718,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1243"
->QTabletEvent (Qt v3+)</A
+>TQTabletEvent (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QTabletEvent</TT
+>TQTabletEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3732,12 +3732,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1247"
->QTimerEvent</A
+>TQTimerEvent</A
></H3
><P
><TT
CLASS="LITERAL"
->QTimerEvent</TT
+>TQTimerEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3746,12 +3746,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1251"
->QWheelEvent (Qt v2+)</A
+>TQWheelEvent (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QWheelEvent</TT
+>TQWheelEvent</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3760,7 +3760,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1255"
->QEventLoop (Qt v3.1+)</A
+>TQEventLoop (TQt v3.1+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -3787,7 +3787,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1263"
->QFile</A
+>TQFile</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -3870,7 +3870,7 @@ CLASS="FUNCDEF"
></P
></DIV
><P
->Not yet implemented. (Qt v2+)</P
+>Not yet implemented. (TQt v2+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -3885,7 +3885,7 @@ CLASS="FUNCDEF"
></P
></DIV
><P
->Not yet implemented. (Qt v2+)</P
+>Not yet implemented. (TQt v2+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -3915,12 +3915,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1317"
->QFileDialog</A
+>TQFileDialog</A
></H3
><P
><TT
CLASS="LITERAL"
->QFileDialog</TT
+>TQFileDialog</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3929,12 +3929,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1321"
->QFileIconProvider</A
+>TQFileIconProvider</A
></H3
><P
><TT
CLASS="LITERAL"
->QFileIconProvider</TT
+>TQFileIconProvider</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3943,14 +3943,14 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1325"
->QFilePreview</A
+>TQFilePreview</A
></H3
><P
><TT
CLASS="LITERAL"
->QFilePreview</TT
+>TQFilePreview</TT
> is fully implemented. However it cannot be
-used from Python in the same way as it is used from C++ because PyQt does not
+used from Python in the same way as it is used from C++ because PyTQt does not
support multiple inheritance involving more than one wrapped class. A trick
that seems to work is to use composition rather than inheritance as in the
following code fragment.</P
@@ -3962,19 +3962,19 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
->class FilePreview(QFilePreview):
+>class FilePreview(TQFilePreview):
pass
-class Preview(QLabel):
+class Preview(TQLabel):
def __init__(self, parent=None):
- QLabel.__init__(self, parent)
+ TQLabel.__init__(self, parent)
self.preview = FilePreview()
self.preview.previewUrl = self.previewUrl</PRE
></TD
></TR
></TABLE
><P
->Note that QFilePreview cannot be instantiated directly because it is abstract.
+>Note that TQFilePreview cannot be instantiated directly because it is abstract.
Thanks to Hans-Peter Jansen for this trick.</P
></DIV
><DIV
@@ -3983,12 +3983,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1331"
->QFileInfo</A
+>TQFileInfo</A
></H3
><P
><TT
CLASS="LITERAL"
->QFileInfo</TT
+>TQFileInfo</TT
> is fully implemented.</P
></DIV
><DIV
@@ -3997,12 +3997,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1335"
->QFont</A
+>TQFont</A
></H3
><P
><TT
CLASS="LITERAL"
->QFont</TT
+>TQFont</TT
> is fully implemented, including the Python
<TT
CLASS="LITERAL"
@@ -4018,12 +4018,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1341"
->QFontDatabase (Qt v2.1+)</A
+>TQFontDatabase (TQt v2.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QFontDatabase</TT
+>TQFontDatabase</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4032,7 +4032,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1345"
->QFontDialog (Qt v2+)</A
+>TQFontDialog (TQt v2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -4043,8 +4043,8 @@ NAME="AEN1347"
></A
><CODE
CLASS="FUNCDEF"
->static QFont getFont</CODE
->(bool *ok, const QFont &#38;def, QWidget *parent = 0, const char *name = 0);<P
+>static TQFont getFont</CODE
+>(bool *ok, const TQFont &#38;def, TQWidget *parent = 0, const char *name = 0);<P
></P
></DIV
><P
@@ -4061,7 +4061,7 @@ CLASS="LITERAL"
> parameters and returns a tuple containing the
<TT
CLASS="LITERAL"
->QFont</TT
+>TQFont</TT
> result and the <TT
CLASS="LITERAL"
>ok</TT
@@ -4075,8 +4075,8 @@ NAME="AEN1364"
></A
><CODE
CLASS="FUNCDEF"
->static QFont getFont</CODE
->(bool *ok, QWidget *parent = 0, const char *name = 0);<P
+>static TQFont getFont</CODE
+>(bool *ok, TQWidget *parent = 0, const char *name = 0);<P
></P
></DIV
><P
@@ -4089,7 +4089,7 @@ CLASS="LITERAL"
> parameters
and returns a tuple containing the <TT
CLASS="LITERAL"
->QFont</TT
+>TQFont</TT
> result and the
<TT
CLASS="LITERAL"
@@ -4102,12 +4102,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1378"
->QFontInfo</A
+>TQFontInfo</A
></H3
><P
><TT
CLASS="LITERAL"
->QFontInfo</TT
+>TQFontInfo</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4116,7 +4116,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1382"
->QFontMetrics</A
+>TQFontMetrics</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -4127,8 +4127,8 @@ NAME="AEN1384"
></A
><CODE
CLASS="FUNCDEF"
->QRect boundingRect</CODE
->(int x, int y, int w, int h, int flags, const QString &amp;str, int len = -1, int tabstops = 0, int *tabarray = 0);<P
+>TQRect boundingRect</CODE
+>(int x, int y, int w, int h, int flags, const TQString &amp;str, int len = -1, int tabstops = 0, int *tabarray = 0);<P
></P
></DIV
><P
@@ -4145,8 +4145,8 @@ NAME="AEN1407"
></A
><CODE
CLASS="FUNCDEF"
->QSize size</CODE
->(int flags, const QString &amp;str, int len = -1, int tabstops = 0, int *tabarray = 0);<P
+>TQSize size</CODE
+>(int flags, const TQString &amp;str, int len = -1, int tabstops = 0, int *tabarray = 0);<P
></P
></DIV
><P
@@ -4161,12 +4161,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1422"
->QFrame</A
+>TQFrame</A
></H3
><P
><TT
CLASS="LITERAL"
->QFrame</TT
+>TQFrame</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4175,12 +4175,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1426"
->QGManager (Qt v1.x)</A
+>TQGManager (TQt v1.x)</A
></H3
><P
><TT
CLASS="LITERAL"
->QGManager</TT
+>TQGManager</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4189,12 +4189,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1430"
->QChain (Qt v1.x)</A
+>TQChain (TQt v1.x)</A
></H3
><P
><TT
CLASS="LITERAL"
->QChain</TT
+>TQChain</TT
> is implemented as an opaque class.</P
></DIV
><DIV
@@ -4203,12 +4203,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1434"
->QGrid (Qt v2+)</A
+>TQGrid (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QGrid</TT
+>TQGrid</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4217,12 +4217,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1438"
->QGridView (Qt v3+)</A
+>TQGridView (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QGridView</TT
+>TQGridView</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4231,12 +4231,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1442"
->QGroupBox</A
+>TQGroupBox</A
></H3
><P
><TT
CLASS="LITERAL"
->QGroupBox</TT
+>TQGroupBox</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4245,12 +4245,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1446"
->QHBox (Qt v2+)</A
+>TQHBox (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QHBox</TT
+>TQHBox</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4259,12 +4259,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1450"
->QHButtonGroup (Qt v2+)</A
+>TQHButtonGroup (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QHButtonGroup</TT
+>TQHButtonGroup</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4273,12 +4273,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1454"
->QHeader</A
+>TQHeader</A
></H3
><P
><TT
CLASS="LITERAL"
->QHeader</TT
+>TQHeader</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4287,12 +4287,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1458"
->QHGroupBox (Qt v2+)</A
+>TQHGroupBox (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QHGroupBox</TT
+>TQHGroupBox</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4301,12 +4301,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1462"
->QIconSet</A
+>TQIconSet</A
></H3
><P
><TT
CLASS="LITERAL"
->QIconSet</TT
+>TQIconSet</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4315,12 +4315,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1466"
->QIconFactory (Qt v3.1+)</A
+>TQIconFactory (TQt v3.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QIconFactory</TT
+>TQIconFactory</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4329,7 +4329,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1470"
->QIconView (Qt v2.1+)</A
+>TQIconView (TQt v2.1+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -4340,8 +4340,8 @@ NAME="AEN1472"
></A
><CODE
CLASS="FUNCDEF"
->QIconViewItem *makeRowLayout</CODE
->(QIconViewItem *begin, int &#38;y);<P
+>TQIconViewItem *makeRowLayout</CODE
+>(TQIconViewItem *begin, int &#38;y);<P
></P
></DIV
><P
@@ -4353,12 +4353,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1480"
->QIconViewItem (Qt v2.1+)</A
+>TQIconViewItem (TQt v2.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QIconViewItem</TT
+>TQIconViewItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4367,12 +4367,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1484"
->QIconDrag (Qt v2.1+)</A
+>TQIconDrag (TQt v2.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QIconDrag</TT
+>TQIconDrag</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4381,12 +4381,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1488"
->QIconDragItem (Qt v2.1+)</A
+>TQIconDragItem (TQt v2.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QIconDragItem</TT
+>TQIconDragItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4395,7 +4395,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1492"
->QImage</A
+>TQImage</A
></H3
><P
>The Python <TT
@@ -4415,7 +4415,7 @@ NAME="AEN1497"
></A
><CODE
CLASS="FUNCDEF"
->QImage</CODE
+>TQImage</CODE
>(const char *xpm[]);<P
></P
></DIV
@@ -4430,16 +4430,16 @@ NAME="AEN1503"
></A
><CODE
CLASS="FUNCDEF"
->QImage</CODE
->(uchar *data, int w, int h, int depth, QRgb *colorTable, int numColors, Endian bitOrder);<P
+>TQImage</CODE
+>(uchar *data, int w, int h, int depth, TQRgb *colorTable, int numColors, Endian bitOrder);<P
></P
></DIV
><P
>The <TT
CLASS="LITERAL"
>colorTable</TT
-> parameter is a list of QRgb instances or
-None. (Qt v2.1+)</P
+> parameter is a list of TQRgb instances or
+None. (TQt v2.1+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -4468,7 +4468,7 @@ NAME="AEN1528"
></A
><CODE
CLASS="FUNCDEF"
->QRgb *colorTable</CODE
+>TQRgb *colorTable</CODE
>();<P
></P
></DIV
@@ -4487,8 +4487,8 @@ NAME="AEN1534"
></A
><CODE
CLASS="FUNCDEF"
->QImage convertDepthWithPalette</CODE
->(int, QRgb *p, int pc, int cf = 0);<P
+>TQImage convertDepthWithPalette</CODE
+>(int, TQRgb *p, int pc, int cf = 0);<P
></P
></DIV
><P
@@ -4560,7 +4560,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1572"
->QImageIO</A
+>TQImageIO</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -4584,12 +4584,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1588"
->QImageTextKeyLang</A
+>TQImageTextKeyLang</A
></H3
><P
><TT
CLASS="LITERAL"
->QImageTextKeyLang</TT
+>TQImageTextKeyLang</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4598,7 +4598,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1592"
->QInputDialog (Qt v2.1+)</A
+>TQInputDialog (TQt v2.1+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -4609,8 +4609,8 @@ NAME="AEN1594"
></A
><CODE
CLASS="FUNCDEF"
->static QString getText</CODE
->(const QString &amp;caption, const QString &amp;label, const QString &amp;text = QString::null, bool *ok = 0, QWidget *parent = 0, const char *name = 0);<P
+>static TQString getText</CODE
+>(const TQString &amp;caption, const TQString &amp;label, const TQString &amp;text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);<P
></P
></DIV
><P
@@ -4620,12 +4620,12 @@ CLASS="LITERAL"
> is not passed and the returned value is a tuple of
the <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> result and the <TT
CLASS="LITERAL"
>ok</TT
> flag.
-(Qt v2.1 - v2.3.1)</P
+(TQt v2.1 - v2.3.1)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -4635,8 +4635,8 @@ NAME="AEN1613"
></A
><CODE
CLASS="FUNCDEF"
->static QString getText</CODE
->(const QString &amp;caption, const QString &amp;label, QLineEdit::EchoModeecho, const QString &amp;text = QString::null, bool *ok = 0, QWidget *parent = 0, const char *name = 0);<P
+>static TQString getText</CODE
+>(const TQString &amp;caption, const TQString &amp;label, TQLineEdit::EchoModeecho, const TQString &amp;text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);<P
></P
></DIV
><P
@@ -4646,12 +4646,12 @@ CLASS="LITERAL"
> is not passed and the returned value is a tuple of
the <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> result and the <TT
CLASS="LITERAL"
>ok</TT
> flag.
-(Qt v2.2 - v2.3.1)</P
+(TQt v2.2 - v2.3.1)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -4661,8 +4661,8 @@ NAME="AEN1634"
></A
><CODE
CLASS="FUNCDEF"
->static QString getText</CODE
->(const QString &amp;caption, const QString &amp;label, QLineEdit::EchoModeecho = QLineEdit::Normal, const QString &amp;text = QString::null, bool *ok = 0, QWidget *parent = 0, const char *name = 0);<P
+>static TQString getText</CODE
+>(const TQString &amp;caption, const TQString &amp;label, TQLineEdit::EchoModeecho = TQLineEdit::Normal, const TQString &amp;text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);<P
></P
></DIV
><P
@@ -4672,12 +4672,12 @@ CLASS="LITERAL"
> is not passed and the returned value is a tuple of
the <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> result and the <TT
CLASS="LITERAL"
>ok</TT
> flag.
-(Qt v3+)</P
+(TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -4688,7 +4688,7 @@ NAME="AEN1655"
><CODE
CLASS="FUNCDEF"
>static int getInteger</CODE
->(const QString &amp;caption, const QString &amp;label, int num = 0, int from = -2147483647, int to = 2147483647, int step = 1, bool *ok = 0, QWidget *parent = 0, const char *name = 0);<P
+>(const TQString &amp;caption, const TQString &amp;label, int num = 0, int from = -2147483647, int to = 2147483647, int step = 1, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);<P
></P
></DIV
><P
@@ -4713,7 +4713,7 @@ NAME="AEN1680"
><CODE
CLASS="FUNCDEF"
>static double getDouble</CODE
->(const QString &amp;caption, const QString &amp;label, double num = 0, double from = -2147483647, double to = 2147483647, int step = 1, bool *ok = 0, QWidget *parent = 0, const char *name = 0);<P
+>(const TQString &amp;caption, const TQString &amp;label, double num = 0, double from = -2147483647, double to = 2147483647, int step = 1, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);<P
></P
></DIV
><P
@@ -4737,8 +4737,8 @@ NAME="AEN1705"
></A
><CODE
CLASS="FUNCDEF"
->static QString getItem</CODE
->(const QString &amp;caption, const QString &amp;label, const QStringList &#38;list, int current = 0, bool editable = TRUE, bool *ok = 0, QWidget *parent = 0, const char *name = 0);<P
+>static TQString getItem</CODE
+>(const TQString &amp;caption, const TQString &amp;label, const TQStringList &#38;list, int current = 0, bool editable = TRUE, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);<P
></P
></DIV
><P
@@ -4748,7 +4748,7 @@ CLASS="LITERAL"
> is not passed and the returned value is a tuple of
the <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> result and the <TT
CLASS="LITERAL"
>ok</TT
@@ -4760,7 +4760,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1728"
->QInterlaceStyle (Qt v2.3.1+)</A
+>TQInterlaceStyle (TQt v2.3.1+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -4772,7 +4772,7 @@ NAME="AEN1730"
><CODE
CLASS="FUNCDEF"
>void scrollBarMetrics</CODE
->(const QTabBar *sb, int &amp;sliderMin, int &amp;sliderMax, int &amp;sliderLength, int &amp;buttonDim);<P
+>(const TQTabBar *sb, int &amp;sliderMin, int &amp;sliderMax, int &amp;sliderLength, int &amp;buttonDim);<P
></P
></DIV
><P
@@ -4801,12 +4801,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1749"
->QIODevice</A
+>TQIODevice</A
></H3
><P
><TT
CLASS="LITERAL"
->QIODevice</TT
+>TQIODevice</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4815,12 +4815,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1753"
->QKeySequence (Qt v3+)</A
+>TQKeySequence (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QKeySequence</TT
+>TQKeySequence</TT
> is fully implemented including the operators
<TT
CLASS="LITERAL"
@@ -4830,18 +4830,18 @@ CLASS="LITERAL"
>!=</TT
>, <TT
CLASS="LITERAL"
->QString()</TT
+>TQString()</TT
> and
<TT
CLASS="LITERAL"
>int()</TT
>. A <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> instance or a Python
integer may be used whenever a <TT
CLASS="LITERAL"
->QKeySequence</TT
+>TQKeySequence</TT
> can be used.</P
></DIV
><DIV
@@ -4850,12 +4850,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1763"
->QLabel</A
+>TQLabel</A
></H3
><P
><TT
CLASS="LITERAL"
->QLabel</TT
+>TQLabel</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4864,12 +4864,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1767"
->QLayout</A
+>TQLayout</A
></H3
><P
><TT
CLASS="LITERAL"
->QLayout</TT
+>TQLayout</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4878,12 +4878,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1771"
->QBoxLayout</A
+>TQBoxLayout</A
></H3
><P
><TT
CLASS="LITERAL"
->QBoxLayout</TT
+>TQBoxLayout</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4892,12 +4892,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1775"
->QGLayoutIterator (Qt v2+)</A
+>TQGLayoutIterator (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QGLayoutIterator</TT
+>TQGLayoutIterator</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4906,7 +4906,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1779"
->QGridLayout</A
+>TQGridLayout</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -4918,7 +4918,7 @@ NAME="AEN1781"
><CODE
CLASS="FUNCDEF"
>bool findWidget</CODE
->(QWidget *w, int *row, int *col);<P
+>(TQWidget *w, int *row, int *col);<P
></P
></DIV
><P
@@ -4936,7 +4936,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>col</TT
->. (Qt v2+)</P
+>. (TQt v2+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -4944,12 +4944,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1795"
->QHBoxLayout</A
+>TQHBoxLayout</A
></H3
><P
><TT
CLASS="LITERAL"
->QHBoxLayout</TT
+>TQHBoxLayout</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4958,12 +4958,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1799"
->QLayoutItem (Qt v2+)</A
+>TQLayoutItem (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QLayoutItem</TT
+>TQLayoutItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -4972,7 +4972,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1803"
->QLayoutIterator (Qt v2+)</A
+>TQLayoutIterator (TQt v2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -4983,14 +4983,14 @@ NAME="AEN1805"
></A
><CODE
CLASS="FUNCDEF"
->QLayoutItem *next</CODE
+>TQLayoutItem *next</CODE
>();<P
></P
></DIV
><P
>This is a wrapper around the <TT
CLASS="LITERAL"
->QLayoutIterator</TT
+>TQLayoutIterator</TT
>
<TT
CLASS="LITERAL"
@@ -5003,12 +5003,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1812"
->QSpacerItem (Qt v2+)</A
+>TQSpacerItem (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSpacerItem</TT
+>TQSpacerItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5017,12 +5017,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1816"
->QVBoxLayout</A
+>TQVBoxLayout</A
></H3
><P
><TT
CLASS="LITERAL"
->QVBoxLayout</TT
+>TQVBoxLayout</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5031,12 +5031,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1820"
->QWidgetItem (Qt v2+)</A
+>TQWidgetItem (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QWidgetItem</TT
+>TQWidgetItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5045,12 +5045,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1824"
->QLCDNumber</A
+>TQLCDNumber</A
></H3
><P
><TT
CLASS="LITERAL"
->QLCDNumber</TT
+>TQLCDNumber</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5059,12 +5059,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1828"
->QLibrary (Qt v3+)</A
+>TQLibrary (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QLibrary</TT
+>TQLibrary</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5073,7 +5073,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1832"
->QLineEdit</A
+>TQLineEdit</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -5085,7 +5085,7 @@ NAME="AEN1834"
><CODE
CLASS="FUNCDEF"
>int characterAt</CODE
->(int xpos, QChar *chr);<P
+>(int xpos, TQChar *chr);<P
></P
></DIV
><P
@@ -5096,7 +5096,7 @@ CLASS="LITERAL"
result and the <TT
CLASS="LITERAL"
>chr</TT
-> value as a tuple. (Qt v3+)</P
+> value as a tuple. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -5114,7 +5114,7 @@ CLASS="FUNCDEF"
>This has been renamed <TT
CLASS="LITERAL"
>delChar</TT
-> in Python. (Qt v2+)</P
+> in Python. (TQt v2+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -5137,7 +5137,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>end</TT
> values as a tuple.
-(Qt v3+)</P
+(TQt v3+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -5145,12 +5145,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1860"
->QList&lt;type&gt; (Qt v2)</A
+>TQList&lt;type&gt; (TQt v2)</A
></H3
><P
>Types based on the <TT
CLASS="LITERAL"
->QList</TT
+>TQList</TT
> template are automatically
converted to and from Python lists of the type.</P
></DIV
@@ -5160,7 +5160,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1864"
->QListBox</A
+>TQListBox</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -5187,7 +5187,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>yPos</TT
>.
-(Qt v1.x)</P
+(TQt v1.x)</P
></DIV
><DIV
CLASS="SECT2"
@@ -5195,12 +5195,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1877"
->QListBoxItem</A
+>TQListBoxItem</A
></H3
><P
><TT
CLASS="LITERAL"
->QListBoxItem</TT
+>TQListBoxItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5209,12 +5209,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1881"
->QListBoxPixmap</A
+>TQListBoxPixmap</A
></H3
><P
><TT
CLASS="LITERAL"
->QListBoxPixmap</TT
+>TQListBoxPixmap</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5223,12 +5223,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1885"
->QListBoxText</A
+>TQListBoxText</A
></H3
><P
><TT
CLASS="LITERAL"
->QListBoxText</TT
+>TQListBoxText</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5237,17 +5237,17 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1889"
->QListView</A
+>TQListView</A
></H3
><P
><TT
CLASS="LITERAL"
->QListView</TT
+>TQListView</TT
> is fully implemented.</P
><P
>Note that to remove a child <TT
CLASS="LITERAL"
->QListViewItem</TT
+>TQListViewItem</TT
> you must first
call <TT
CLASS="LITERAL"
@@ -5263,17 +5263,17 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1897"
->QListViewItem</A
+>TQListViewItem</A
></H3
><P
><TT
CLASS="LITERAL"
->QListViewItem</TT
+>TQListViewItem</TT
> is fully implemented.</P
><P
>Note that to remove a child <TT
CLASS="LITERAL"
->QListViewItem</TT
+>TQListViewItem</TT
> you must first
call <TT
CLASS="LITERAL"
@@ -5289,12 +5289,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1905"
->QCheckListItem</A
+>TQCheckListItem</A
></H3
><P
><TT
CLASS="LITERAL"
->QCheckListItem</TT
+>TQCheckListItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5303,12 +5303,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1909"
->QListViewItemIterator (Qt v2+)</A
+>TQListViewItemIterator (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QListViewItemIterator</TT
+>TQListViewItemIterator</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5317,7 +5317,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1913"
->QLocale (Qt v3.3+)</A
+>TQLocale (TQt v3.3+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -5502,7 +5502,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN1979"
->QMainWindow</A
+>TQMainWindow</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -5513,12 +5513,12 @@ NAME="AEN1981"
></A
><CODE
CLASS="FUNCDEF"
->QTextStream &amp;operator&lt;&lt;</CODE
->(QTextStream &amp;, const QMainWindow &amp;);<P
+>TQTextStream &amp;operator&lt;&lt;</CODE
+>(TQTextStream &amp;, const TQMainWindow &amp;);<P
></P
></DIV
><P
->This operator is fully implemented. (Qt v3+)</P
+>This operator is fully implemented. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -5528,12 +5528,12 @@ NAME="AEN1989"
></A
><CODE
CLASS="FUNCDEF"
->QTextStream &amp;operator&gt;&gt;</CODE
->(QTextStream &amp;, QMainWindow &amp;);<P
+>TQTextStream &amp;operator&gt;&gt;</CODE
+>(TQTextStream &amp;, TQMainWindow &amp;);<P
></P
></DIV
><P
->This operator is fully implemented. (Qt v3+)</P
+>This operator is fully implemented. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -5544,7 +5544,7 @@ NAME="AEN1997"
><CODE
CLASS="FUNCDEF"
>bool getLocation</CODE
->(QToolBar *tb, ToolBarDock &amp;dock, int &amp;index, bool &amp;nl, int &amp;extraOffset);<P
+>(TQToolBar *tb, ToolBarDock &amp;dock, int &amp;index, bool &amp;nl, int &amp;extraOffset);<P
></P
></DIV
><P
@@ -5565,7 +5565,7 @@ CLASS="LITERAL"
> and <TT
CLASS="LITERAL"
>extraOffset</TT
-> values. (Qt v2.1.0+)</P
+> values. (TQt v2.1.0+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -5575,15 +5575,15 @@ NAME="AEN2016"
></A
><CODE
CLASS="FUNCDEF"
->QList&lt;QToolBar&gt; toolBars</CODE
+>TQList&lt;TQToolBar&gt; toolBars</CODE
>(ToolBarDock dock);<P
></P
></DIV
><P
>This returns a list of <TT
CLASS="LITERAL"
->QToolBar</TT
-> instances. (Qt v2.1.0+)</P
+>TQToolBar</TT
+> instances. (TQt v2.1.0+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -5591,12 +5591,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2023"
->QMemArray&lt;type&gt; (Qt v3+)</A
+>TQMemArray&lt;type&gt; (TQt v3+)</A
></H3
><P
>Types based on the <TT
CLASS="LITERAL"
->QMemArray</TT
+>TQMemArray</TT
> template are automatically
converted to and from Python lists of the type.</P
></DIV
@@ -5606,12 +5606,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2027"
->QMenuBar</A
+>TQMenuBar</A
></H3
><P
><TT
CLASS="LITERAL"
->QMenuBar</TT
+>TQMenuBar</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5620,7 +5620,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2031"
->QMenuData</A
+>TQMenuData</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -5631,8 +5631,8 @@ NAME="AEN2033"
></A
><CODE
CLASS="FUNCDEF"
->QMenuItem *findItem</CODE
->(int id, QMenuData **parent);<P
+>TQMenuItem *findItem</CODE
+>(int id, TQMenuData **parent);<P
></P
></DIV
><P
@@ -5644,12 +5644,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2041"
->QCustomMenuItem (Qt v2.1+)</A
+>TQCustomMenuItem (TQt v2.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCustomMenuItem</TT
+>TQCustomMenuItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5658,13 +5658,13 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2045"
->QMenuItem</A
+>TQMenuItem</A
></H3
><P
><TT
CLASS="LITERAL"
->QMenuItem</TT
-> is an internal Qt class.</P
+>TQMenuItem</TT
+> is an internal TQt class.</P
></DIV
><DIV
CLASS="SECT2"
@@ -5672,12 +5672,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2049"
->QMessageBox</A
+>TQMessageBox</A
></H3
><P
><TT
CLASS="LITERAL"
->QMessageBox</TT
+>TQMessageBox</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5686,7 +5686,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2053"
->QMetaObject</A
+>TQMetaObject</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -5712,7 +5712,7 @@ NAME="AEN2061"
></A
><CODE
CLASS="FUNCDEF"
->const QClassInfo *classInfo const</CODE
+>const TQClassInfo *classInfo const</CODE
>(bool super = FALSE);<P
></P
></DIV
@@ -5725,12 +5725,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2067"
->QMetaProperty</A
+>TQMetaProperty</A
></H3
><P
><TT
CLASS="LITERAL"
->QMetaProperty</TT
+>TQMetaProperty</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5739,12 +5739,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2071"
->QMimeSource (Qt v2+)</A
+>TQMimeSource (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QMimeSource</TT
+>TQMimeSource</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5753,12 +5753,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2075"
->QMimeSourceFactory (Qt v2+)</A
+>TQMimeSourceFactory (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QMimeSourceFactory</TT
+>TQMimeSourceFactory</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5767,12 +5767,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2079"
->QWindowsMime (Qt v3+)</A
+>TQWindowsMime (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QWindowsMime</TT
+>TQWindowsMime</TT
> is fully implemented.</P
></DIV
><DIV
@@ -5781,7 +5781,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2083"
->QMotifPlusStyle (Qt v2.2+)</A
+>TQMotifPlusStyle (TQt v2.2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -5804,7 +5804,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>y</TT
-> values. (Qt v2)</P
+> values. (TQt v2)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -5815,7 +5815,7 @@ NAME="AEN2095"
><CODE
CLASS="FUNCDEF"
>void scrollBarMetrics</CODE
->(const QScrollBar *sb, int &amp;sliderMin, int &amp;sliderMax, int &amp;sliderLength, int &amp;buttonDim);<P
+>(const TQScrollBar *sb, int &amp;sliderMin, int &amp;sliderMax, int &amp;sliderLength, int &amp;buttonDim);<P
></P
></DIV
><P
@@ -5837,7 +5837,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>buttonDim</TT
> values.
-(Qt v2)</P
+(TQt v2)</P
></DIV
><DIV
CLASS="SECT2"
@@ -5845,7 +5845,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2114"
->QMotifStyle (Qt v2+)</A
+>TQMotifStyle (TQt v2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -5857,7 +5857,7 @@ NAME="AEN2116"
><CODE
CLASS="FUNCDEF"
>void scrollBarMetrics</CODE
->(const QTabBar *sb, int &#38;sliderMin, int &#38;sliderMax, int &#38;sliderLength, int &#38;buttonDim);<P
+>(const TQTabBar *sb, int &#38;sliderMin, int &#38;sliderMax, int &#38;sliderLength, int &#38;buttonDim);<P
></P
></DIV
><P
@@ -5879,7 +5879,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>buttonDim</TT
> values.
-(Qt v2)</P
+(TQt v2)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -5890,7 +5890,7 @@ NAME="AEN2135"
><CODE
CLASS="FUNCDEF"
>void tabbarMetrics</CODE
->(const QTabBar *t, int &#38;hframe, int &#38;vframe, int &#38;overlap);<P
+>(const TQTabBar *t, int &#38;hframe, int &#38;vframe, int &#38;overlap);<P
></P
></DIV
><P
@@ -5908,7 +5908,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>overlap</TT
-> values. (Qt v2)</P
+> values. (TQt v2)</P
></DIV
><DIV
CLASS="SECT2"
@@ -5916,7 +5916,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2151"
->QMovie</A
+>TQMovie</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -5927,8 +5927,8 @@ NAME="AEN2153"
></A
><CODE
CLASS="FUNCDEF"
->QMovie</CODE
->(QDataSource *src, int bufsize = 1024);<P
+>TQMovie</CODE
+>(TQDataSource *src, int bufsize = 1024);<P
></P
></DIV
><P
@@ -5954,7 +5954,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>data</TT
> and not
-passed as a parameter. (Qt v2.2.0+)</P
+passed as a parameter. (TQt v2.2.0+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -5962,7 +5962,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2171"
->QMultiLineEdit</A
+>TQMultiLineEdit</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -5985,7 +5985,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>col</TT
-> values. (Qt v1.x, Qt v2.x)</P
+> values. (TQt v1.x, TQt v2.x)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -6003,7 +6003,7 @@ CLASS="FUNCDEF"
>This has been renamed <TT
CLASS="LITERAL"
>delChar</TT
-> in Python. (Qt v1.x, Qt v2.x)</P
+> in Python. (TQt v1.x, TQt v2.x)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -6025,7 +6025,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>col</TT
-> values. (Qt v1.x, Qt v2.x)</P
+> values. (TQt v1.x, TQt v2.x)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -6062,12 +6062,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2215"
->QMutex (Qt v2.2+)</A
+>TQMutex (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QMutex</TT
+>TQMutex</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6076,12 +6076,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2219"
->QMutexLocker (Qt v3.1+)</A
+>TQMutexLocker (TQt v3.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QMutexLocker</TT
+>TQMutexLocker</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6090,12 +6090,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2223"
->QNetworkOperation (Qt v2.1+)</A
+>TQNetworkOperation (TQt v2.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QNetworkOperation</TT
+>TQNetworkOperation</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6104,12 +6104,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2227"
->QNetworkProtocol (Qt v2.1+)</A
+>TQNetworkProtocol (TQt v2.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QNetworkProtocol</TT
+>TQNetworkProtocol</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6118,12 +6118,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2231"
->QNetworkProtocolFactoryBase (Qt v2.1+)</A
+>TQNetworkProtocolFactoryBase (TQt v2.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QNetworkProtocolFactoryBase</TT
+>TQNetworkProtocolFactoryBase</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6132,7 +6132,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2235"
->QObject</A
+>TQObject</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -6144,7 +6144,7 @@ NAME="AEN2237"
><CODE
CLASS="FUNCDEF"
>bool disconnect</CODE
->(const QObject *receiver, const char *member = 0);<P
+>(const TQObject *receiver, const char *member = 0);<P
></P
></DIV
><P
@@ -6159,7 +6159,7 @@ NAME="AEN2245"
><CODE
CLASS="FUNCDEF"
>bool disconnect</CODE
->(const char *signal = 0, const QObject *receiver = 0, const char *member = 0);<P
+>(const char *signal = 0, const TQObject *receiver = 0, const char *member = 0);<P
></P
></DIV
><P
@@ -6174,11 +6174,11 @@ NAME="AEN2255"
><CODE
CLASS="FUNCDEF"
>static bool disconnect</CODE
->(const QObject *sender, const char *signal, const QObject *receiver, const char *member);<P
+>(const TQObject *sender, const char *signal, const TQObject *receiver, const char *member);<P
></P
></DIV
><P
->At the moment PyQt does not support the full behaviour of the corresponding Qt
+>At the moment PyTQt does not support the full behaviour of the corresponding TQt
method. In particular, specifying None (ie. 0 in C++) for the
<TT
CLASS="LITERAL"
@@ -6195,12 +6195,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2269"
->QObjectCleanupHandler (Qt v3+)</A
+>TQObjectCleanupHandler (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QObjectCleanupHandler</TT
+>TQObjectCleanupHandler</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6209,17 +6209,17 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2273"
->QObjectList</A
+>TQObjectList</A
></H3
><P
>This class isn't implemented. Whenever a <TT
CLASS="LITERAL"
->QObjectList</TT
+>TQObjectList</TT
> is the
return type of a function or the type of an argument, a Python list of
<TT
CLASS="LITERAL"
->QObject</TT
+>TQObject</TT
> instances is used instead.</P
></DIV
><DIV
@@ -6228,12 +6228,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2278"
->QPaintDeviceMetrics</A
+>TQPaintDeviceMetrics</A
></H3
><P
><TT
CLASS="LITERAL"
->QPaintDeviceMetrics</TT
+>TQPaintDeviceMetrics</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6242,7 +6242,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2282"
->QPaintDevice</A
+>TQPaintDevice</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -6254,7 +6254,7 @@ NAME="AEN2284"
><CODE
CLASS="FUNCDEF"
>virtual bool cmd</CODE
->(int, QPainter *, QPDevCmdParam *);<P
+>(int, TQPainter *, TQPDevCmdParam *);<P
></P
></DIV
><P
@@ -6266,7 +6266,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2291"
->QPainter</A
+>TQPainter</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -6277,7 +6277,7 @@ NAME="AEN2293"
></A
><CODE
CLASS="FUNCDEF"
->QRect boundingRect</CODE
+>TQRect boundingRect</CODE
>(int x, int y, int w, int h, int flags, const char *str, int len = -1, char **intern = 0);<P
></P
></DIV
@@ -6295,8 +6295,8 @@ NAME="AEN2314"
></A
><CODE
CLASS="FUNCDEF"
->QRect boundingRect</CODE
->(const QRect&#38;, int flags, const char *str, int len = -1, char **intern = 0);<P
+>TQRect boundingRect</CODE
+>(const TQRect&#38;, int flags, const char *str, int len = -1, char **intern = 0);<P
></P
></DIV
><P
@@ -6314,7 +6314,7 @@ NAME="AEN2328"
><CODE
CLASS="FUNCDEF"
>void drawText</CODE
->(int x, int y, int w, int h, int flags, const char *str, int len = -1, QRect *br = 0, char **intern = 0);<P
+>(int x, int y, int w, int h, int flags, const char *str, int len = -1, TQRect *br = 0, char **intern = 0);<P
></P
></DIV
><P
@@ -6332,7 +6332,7 @@ NAME="AEN2351"
><CODE
CLASS="FUNCDEF"
>void drawText</CODE
->(const QRect&#38;, int flags, const char *str, int len = -1, QRect *br = 0, char **intern = 0);<P
+>(const TQRect&#38;, int flags, const char *str, int len = -1, TQRect *br = 0, char **intern = 0);<P
></P
></DIV
><P
@@ -6377,12 +6377,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2378"
->QPalette</A
+>TQPalette</A
></H3
><P
><TT
CLASS="LITERAL"
->QPalette</TT
+>TQPalette</TT
> is fully implemented, including the Python
<TT
CLASS="LITERAL"
@@ -6398,7 +6398,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2384"
->QPixmap</A
+>TQPixmap</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -6409,7 +6409,7 @@ NAME="AEN2386"
></A
><CODE
CLASS="FUNCDEF"
->QPixmap</CODE
+>TQPixmap</CODE
>(const char *xpm[]);<P
></P
></DIV
@@ -6459,12 +6459,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2418"
->QPixmapCache (Qt v3+)</A
+>TQPixmapCache (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QPixmapCache</TT
+>TQPixmapCache</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6473,12 +6473,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2422"
->QPair&lt;type,type&gt; (Qt v3+)</A
+>TQPair&lt;type,type&gt; (TQt v3+)</A
></H3
><P
>Types based on the <TT
CLASS="LITERAL"
->QPair</TT
+>TQPair</TT
> template are automatically
converted to and from Python tuples of two elements.</P
></DIV
@@ -6488,12 +6488,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2426"
->QPen</A
+>TQPen</A
></H3
><P
><TT
CLASS="LITERAL"
->QPen</TT
+>TQPen</TT
> is fully implemented, including the Python
<TT
CLASS="LITERAL"
@@ -6509,7 +6509,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2432"
->QPicture</A
+>TQPicture</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -6555,7 +6555,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2449"
->QPlatinumStyle (Qt v2+)</A
+>TQPlatinumStyle (TQt v2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -6567,7 +6567,7 @@ NAME="AEN2451"
><CODE
CLASS="FUNCDEF"
>void scrollBarMetrics</CODE
->(const QTabBar *sb, int &#38;sliderMin, int &#38;sliderMax, int &#38;sliderLength, int &#38;buttonDim);<P
+>(const TQTabBar *sb, int &#38;sliderMin, int &#38;sliderMax, int &#38;sliderLength, int &#38;buttonDim);<P
></P
></DIV
><P
@@ -6589,7 +6589,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>buttonDim</TT
> values.
-(Qt v2)</P
+(TQt v2)</P
></DIV
><DIV
CLASS="SECT2"
@@ -6597,7 +6597,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2470"
->QPoint</A
+>TQPoint</A
></H3
><P
>The Python
@@ -6652,7 +6652,7 @@ NAME="AEN2485"
></A
><CODE
CLASS="FUNCDEF"
->QCOORD &amp;rx</CODE
+>TQCOORD &amp;rx</CODE
>();<P
></P
></DIV
@@ -6667,7 +6667,7 @@ NAME="AEN2490"
></A
><CODE
CLASS="FUNCDEF"
->QCOORD &amp;ry</CODE
+>TQCOORD &amp;ry</CODE
>();<P
></P
></DIV
@@ -6680,7 +6680,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2495"
->QPointArray</A
+>TQPointArray</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -6691,8 +6691,8 @@ NAME="AEN2497"
></A
><CODE
CLASS="FUNCDEF"
->QPointArray</CODE
->(int nPoints, const QCOORD *points);<P
+>TQPointArray</CODE
+>(int nPoints, const TQCOORD *points);<P
></P
></DIV
><P
@@ -6732,7 +6732,7 @@ NAME="AEN2518"
><CODE
CLASS="FUNCDEF"
>bool putPoints</CODE
->(int index, int nPoints, const QCOORD *points);<P
+>(int index, int nPoints, const TQCOORD *points);<P
></P
></DIV
><P
@@ -6765,7 +6765,7 @@ NAME="AEN2542"
><CODE
CLASS="FUNCDEF"
>bool setPoints</CODE
->(int nPoints, const QCOORD *points);<P
+>(int nPoints, const TQCOORD *points);<P
></P
></DIV
><P
@@ -6792,7 +6792,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2561"
->QPopupMenu</A
+>TQPopupMenu</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -6822,7 +6822,7 @@ NAME="AEN2569"
><CODE
CLASS="FUNCDEF"
>int exec</CODE
->(const QPoint &#38;pos, int indexAtPoint = 0);<P
+>(const TQPoint &#38;pos, int indexAtPoint = 0);<P
></P
></DIV
><P
@@ -6837,12 +6837,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2578"
->QPrintDialog (X11)</A
+>TQPrintDialog (X11)</A
></H3
><P
><TT
CLASS="LITERAL"
->QPrintDialog</TT
+>TQPrintDialog</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6851,12 +6851,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2582"
->QPrinter</A
+>TQPrinter</A
></H3
><P
><TT
CLASS="LITERAL"
->QPrinter</TT
+>TQPrinter</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6865,12 +6865,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2586"
->QProcess (Qt v3+)</A
+>TQProcess (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QProcess</TT
+>TQProcess</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6879,12 +6879,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2590"
->QProgressBar</A
+>TQProgressBar</A
></H3
><P
><TT
CLASS="LITERAL"
->QProgressBar</TT
+>TQProgressBar</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6893,12 +6893,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2594"
->QProgressDialog</A
+>TQProgressDialog</A
></H3
><P
><TT
CLASS="LITERAL"
->QProgressDialog</TT
+>TQProgressDialog</TT
> is fully implemented.
value.</P
></DIV
@@ -6908,12 +6908,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2598"
->QPtrList&lt;type&gt; (Qt v3+)</A
+>TQPtrList&lt;type&gt; (TQt v3+)</A
></H3
><P
>Types based on the <TT
CLASS="LITERAL"
->QPtrList</TT
+>TQPtrList</TT
> template are automatically
converted to and from Python lists of the type.</P
></DIV
@@ -6923,12 +6923,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2602"
->QPushButton</A
+>TQPushButton</A
></H3
><P
><TT
CLASS="LITERAL"
->QPushButton</TT
+>TQPushButton</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6937,12 +6937,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2606"
->QRadioButton</A
+>TQRadioButton</A
></H3
><P
><TT
CLASS="LITERAL"
->QRadioButton</TT
+>TQRadioButton</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6951,12 +6951,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2610"
->QRangeControl</A
+>TQRangeControl</A
></H3
><P
><TT
CLASS="LITERAL"
->QRangeControl</TT
+>TQRangeControl</TT
> is fully implemented.</P
></DIV
><DIV
@@ -6965,7 +6965,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2614"
->QRect</A
+>TQRect</A
></H3
><P
>The Python
@@ -7036,12 +7036,12 @@ NAME="AEN2649"
></A
><CODE
CLASS="FUNCDEF"
->QCOORD &amp;rBottom</CODE
+>TQCOORD &amp;rBottom</CODE
>();<P
></P
></DIV
><P
->Not implemented. (Qt v2+)</P
+>Not implemented. (TQt v2+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -7051,12 +7051,12 @@ NAME="AEN2654"
></A
><CODE
CLASS="FUNCDEF"
->QCOORD &amp;rLeft</CODE
+>TQCOORD &amp;rLeft</CODE
>();<P
></P
></DIV
><P
->Not implemented. (Qt v2+)</P
+>Not implemented. (TQt v2+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -7066,12 +7066,12 @@ NAME="AEN2659"
></A
><CODE
CLASS="FUNCDEF"
->QCOORD &amp;rRight</CODE
+>TQCOORD &amp;rRight</CODE
>();<P
></P
></DIV
><P
->Not implemented. (Qt v2+)</P
+>Not implemented. (TQt v2+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -7081,12 +7081,12 @@ NAME="AEN2664"
></A
><CODE
CLASS="FUNCDEF"
->QCOORD &amp;rTop</CODE
+>TQCOORD &amp;rTop</CODE
>();<P
></P
></DIV
><P
->Not implemented. (Qt v2+)</P
+>Not implemented. (TQt v2+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -7094,7 +7094,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2669"
->QRegExp</A
+>TQRegExp</A
></H3
><P
>The Python <TT
@@ -7133,7 +7133,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>len</TT
-> value. (Qt v1.x)</P
+> value. (TQt v1.x)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -7144,7 +7144,7 @@ NAME="AEN2688"
><CODE
CLASS="FUNCDEF"
>int match</CODE
->(const QString &#38;str, int index = 0, int *len = 0);<P
+>(const TQString &#38;str, int index = 0, int *len = 0);<P
></P
></DIV
><P
@@ -7162,7 +7162,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>len</TT
-> value. (Qt v2+)</P
+> value. (TQt v2+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -7170,7 +7170,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2702"
->QRegion</A
+>TQRegion</A
></H3
><P
>The Python
@@ -7232,7 +7232,7 @@ NAME="AEN2719"
></A
><CODE
CLASS="FUNCDEF"
->QArray&lt;QRect&gt; rects</CODE
+>TQArray&lt;TQRect&gt; rects</CODE
>();<P
></P
></DIV
@@ -7248,11 +7248,11 @@ NAME="AEN2724"
><CODE
CLASS="FUNCDEF"
>void setRects</CODE
->(QRect *rects, int num);<P
+>(TQRect *rects, int num);<P
></P
></DIV
><P
->Not yet implemented. (Qt v2.2+)</P
+>Not yet implemented. (TQt v2.2+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -7260,12 +7260,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2732"
->QScrollBar</A
+>TQScrollBar</A
></H3
><P
><TT
CLASS="LITERAL"
->QScrollBar</TT
+>TQScrollBar</TT
> is fully implemented.</P
></DIV
><DIV
@@ -7274,7 +7274,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2736"
->QScrollView</A
+>TQScrollView</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -7304,7 +7304,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>vy</TT
>
-values. (Qt v2+)</P
+values. (TQt v2+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -7333,7 +7333,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>y</TT
>
-values. (Qt v2+)</P
+values. (TQt v2+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -7341,12 +7341,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2770"
->QSemaphore (Qt v2.2+)</A
+>TQSemaphore (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSemaphore</TT
+>TQSemaphore</TT
> is fully implemented. The <TT
CLASS="LITERAL"
>+=</TT
@@ -7354,7 +7354,7 @@ CLASS="LITERAL"
and <TT
CLASS="LITERAL"
>-=</TT
-> operators have also been implemented, but require
+> operators have also been implemented, but retquire
Python v2.0 or later.</P
></DIV
><DIV
@@ -7363,12 +7363,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2776"
->QSemiModal (Qt v1, v2)</A
+>TQSemiModal (TQt v1, v2)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSemiModal</TT
+>TQSemiModal</TT
> is fully implemented.</P
></DIV
><DIV
@@ -7377,12 +7377,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2780"
->QSessionManager (Qt v2+)</A
+>TQSessionManager (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSessionManager</TT
+>TQSessionManager</TT
> is fully implemented.</P
></DIV
><DIV
@@ -7391,7 +7391,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2784"
->QSettings (Qt v3+)</A
+>TQSettings (TQt v3+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -7403,7 +7403,7 @@ NAME="AEN2786"
><CODE
CLASS="FUNCDEF"
>bool readBoolEntry</CODE
->(const QString &amp;key, bool def = 0, bool *ok = 0);<P
+>(const TQString &amp;key, bool def = 0, bool *ok = 0);<P
></P
></DIV
><P
@@ -7428,7 +7428,7 @@ NAME="AEN2799"
><CODE
CLASS="FUNCDEF"
>double readDoubleEntry</CODE
->(const QString &amp;key, double def = 0, bool *ok = 0);<P
+>(const TQString &amp;key, double def = 0, bool *ok = 0);<P
></P
></DIV
><P
@@ -7452,8 +7452,8 @@ NAME="AEN2812"
></A
><CODE
CLASS="FUNCDEF"
->QString readEntry</CODE
->(const QString &amp;key, const QString &amp;def = QString::null, bool *ok = 0);<P
+>TQString readEntry</CODE
+>(const TQString &amp;key, const TQString &amp;def = TQString::null, bool *ok = 0);<P
></P
></DIV
><P
@@ -7463,7 +7463,7 @@ CLASS="LITERAL"
> is not passed and the returned value is a tuple of
the <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> result and the <TT
CLASS="LITERAL"
>ok</TT
@@ -7477,8 +7477,8 @@ NAME="AEN2825"
></A
><CODE
CLASS="FUNCDEF"
->QStringList readListEntry</CODE
->(const QString &amp;key, bool *ok = 0);<P
+>TQStringList readListEntry</CODE
+>(const TQString &amp;key, bool *ok = 0);<P
></P
></DIV
><P
@@ -7488,7 +7488,7 @@ CLASS="LITERAL"
> is not passed and the returned value is a tuple of
the <TT
CLASS="LITERAL"
->QStringList</TT
+>TQStringList</TT
> result and the <TT
CLASS="LITERAL"
>ok</TT
@@ -7502,8 +7502,8 @@ NAME="AEN2836"
></A
><CODE
CLASS="FUNCDEF"
->QStringList readListEntry</CODE
->(const QString &amp;key, const QChar &amp;separator, bool *ok = 0);<P
+>TQStringList readListEntry</CODE
+>(const TQString &amp;key, const TQChar &amp;separator, bool *ok = 0);<P
></P
></DIV
><P
@@ -7513,7 +7513,7 @@ CLASS="LITERAL"
> is not passed and the returned value is a tuple of
the <TT
CLASS="LITERAL"
->QStringList</TT
+>TQStringList</TT
> result and the <TT
CLASS="LITERAL"
>ok</TT
@@ -7528,7 +7528,7 @@ NAME="AEN2849"
><CODE
CLASS="FUNCDEF"
>int readNumEntry</CODE
->(const QString &amp;key, int def = 0, bool *ok = 0);<P
+>(const TQString &amp;key, int def = 0, bool *ok = 0);<P
></P
></DIV
><P
@@ -7553,7 +7553,7 @@ NAME="AEN2862"
><CODE
CLASS="FUNCDEF"
>bool writeEntry</CODE
->(const QString &amp;key, bool value);<P
+>(const TQString &amp;key, bool value);<P
></P
></DIV
><P
@@ -7565,7 +7565,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2870"
->QSGIStyle (Qt v2.2+)</A
+>TQSGIStyle (TQt v2.2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -7577,7 +7577,7 @@ NAME="AEN2872"
><CODE
CLASS="FUNCDEF"
>void scrollBarMetrics</CODE
->(const QScrollBar *sb, int &amp;sliderMin, int &amp;sliderMax, int &amp;sliderLength, int &amp;buttonDim);<P
+>(const TQScrollBar *sb, int &amp;sliderMin, int &amp;sliderMax, int &amp;sliderLength, int &amp;buttonDim);<P
></P
></DIV
><P
@@ -7599,7 +7599,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>buttonDim</TT
> values.
-(Qt v2)</P
+(TQt v2)</P
></DIV
><DIV
CLASS="SECT2"
@@ -7607,12 +7607,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2891"
->QSignalMapper</A
+>TQSignalMapper</A
></H3
><P
><TT
CLASS="LITERAL"
->QSignalMapper</TT
+>TQSignalMapper</TT
> is fully implemented.</P
></DIV
><DIV
@@ -7621,12 +7621,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2895"
->QSimpleRichText (Qt v2+)</A
+>TQSimpleRichText (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSimpleRichText</TT
+>TQSimpleRichText</TT
> is fully implemented.</P
></DIV
><DIV
@@ -7635,7 +7635,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2899"
->QSize</A
+>TQSize</A
></H3
><P
>The Python
@@ -7687,7 +7687,7 @@ NAME="AEN2913"
></A
><CODE
CLASS="FUNCDEF"
->QCOORD &amp;rheight</CODE
+>TQCOORD &amp;rheight</CODE
>();<P
></P
></DIV
@@ -7702,7 +7702,7 @@ NAME="AEN2918"
></A
><CODE
CLASS="FUNCDEF"
->QCOORD &amp;rwidth</CODE
+>TQCOORD &amp;rwidth</CODE
>();<P
></P
></DIV
@@ -7715,12 +7715,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2923"
->QSizeGrip (Qt v2+)</A
+>TQSizeGrip (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSizeGrip</TT
+>TQSizeGrip</TT
> is fully implemented.</P
></DIV
><DIV
@@ -7729,12 +7729,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2927"
->QSizePolicy (Qt v2+)</A
+>TQSizePolicy (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSizePolicy</TT
+>TQSizePolicy</TT
> is fully implemented.</P
></DIV
><DIV
@@ -7743,12 +7743,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2931"
->QSlider</A
+>TQSlider</A
></H3
><P
><TT
CLASS="LITERAL"
->QSlider</TT
+>TQSlider</TT
> is fully implemented.</P
></DIV
><DIV
@@ -7757,12 +7757,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2935"
->QSocketNotifier</A
+>TQSocketNotifier</A
></H3
><P
><TT
CLASS="LITERAL"
->QSocketNotifier</TT
+>TQSocketNotifier</TT
> is fully implemented.</P
></DIV
><DIV
@@ -7771,12 +7771,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2939"
->QSound (Qt v2.2+)</A
+>TQSound (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSound</TT
+>TQSound</TT
> is fully implemented.</P
></DIV
><DIV
@@ -7785,7 +7785,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2943"
->QSpinBox</A
+>TQSpinBox</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -7816,12 +7816,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2953"
->QSplashScreen (Qt v3.2.0+)</A
+>TQSplashScreen (TQt v3.2.0+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSplashScreen</TT
+>TQSplashScreen</TT
> is fully implemented.</P
></DIV
><DIV
@@ -7830,7 +7830,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2957"
->QSplitter</A
+>TQSplitter</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -7856,7 +7856,7 @@ CLASS="LITERAL"
> and <TT
CLASS="LITERAL"
>max</TT
-> values as a tuple. (Qt v2+)</P
+> values as a tuple. (TQt v2+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -7864,12 +7864,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2972"
->QStatusBar</A
+>TQStatusBar</A
></H3
><P
><TT
CLASS="LITERAL"
->QStatusBar</TT
+>TQStatusBar</TT
> is fully implemented.</P
></DIV
><DIV
@@ -7878,7 +7878,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2976"
->QChar (Qt v2+)</A
+>TQChar (TQt v2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -7917,16 +7917,16 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN2988"
->QString</A
+>TQString</A
></H3
><P
>A Python string object (or Unicode object) can be used whenever a
<TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> can be used. A <TT
CLASS="LITERAL"
->QString</TT
+>TQString</TT
> can be
converted to a Python string object using the Python <TT
CLASS="LITERAL"
@@ -7962,12 +7962,12 @@ NAME="AEN3000"
></A
><CODE
CLASS="FUNCDEF"
->QCharRef at</CODE
+>TQCharRef at</CODE
>(uint i);<P
></P
></DIV
><P
->Not yet implemented. (Qt v2+)</P
+>Not yet implemented. (TQt v2+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -7977,12 +7977,12 @@ NAME="AEN3006"
></A
><CODE
CLASS="FUNCDEF"
->QChar constref const</CODE
+>TQChar constref const</CODE
>(uint i);<P
></P
></DIV
><P
->Not yet implemented. (Qt v2+)</P
+>Not yet implemented. (TQt v2+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -7992,12 +7992,12 @@ NAME="AEN3012"
></A
><CODE
CLASS="FUNCDEF"
->QChar &#38;ref</CODE
+>TQChar &#38;ref</CODE
>(uint i);<P
></P
></DIV
><P
->Not yet implemented. (Qt v2+)</P
+>Not yet implemented. (TQt v2+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -8007,12 +8007,12 @@ NAME="AEN3018"
></A
><CODE
CLASS="FUNCDEF"
->QString &#38;setUnicodeCodes</CODE
+>TQString &#38;setUnicodeCodes</CODE
>(const ushort *unicode_as_shorts, uint len);<P
></P
></DIV
><P
->Not yet implemented. (Qt v2.1+)</P
+>Not yet implemented. (TQt v2.1+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -8022,7 +8022,7 @@ NAME="AEN3026"
></A
><CODE
CLASS="FUNCDEF"
->QString &#38;sprintf</CODE
+>TQString &#38;sprintf</CODE
>(const char *format, ...);<P
></P
></DIV
@@ -8211,7 +8211,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3097"
->QStringList (Qt v2+)</A
+>TQStringList (TQt v2+)</A
></H3
><P
>The Python <TT
@@ -8259,7 +8259,7 @@ NAME="AEN3110"
><CODE
CLASS="FUNCDEF"
>Iterator append</CODE
->(const QString &#38;x);<P
+>(const TQString &#38;x);<P
></P
></DIV
><P
@@ -8274,7 +8274,7 @@ NAME="AEN3116"
><CODE
CLASS="FUNCDEF"
>Iterator prepend</CODE
->(const QString &#38;x);<P
+>(const TQString &#38;x);<P
></P
></DIV
><P
@@ -8286,12 +8286,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3122"
->QStrList</A
+>TQStrList</A
></H3
><P
>This class isn't implemented. Whenever a <TT
CLASS="LITERAL"
->QStrList</TT
+>TQStrList</TT
> is the
return type of a function or the type of an argument, a Python list of strings
is used instead.</P
@@ -8302,7 +8302,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3126"
->QStyle (Qt v2+)</A
+>TQStyle (TQt v2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -8325,7 +8325,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>y</TT
-> values. (Qt v2)</P
+> values. (TQt v2)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -8336,7 +8336,7 @@ NAME="AEN3138"
><CODE
CLASS="FUNCDEF"
>virtual void scrollBarMetrics</CODE
->(const QScrollBar *b, int &amp;sliderMin, int &amp;sliderMax, int &amp;sliderLength, int &amp;buttonDim);<P
+>(const TQScrollBar *b, int &amp;sliderMin, int &amp;sliderMax, int &amp;sliderLength, int &amp;buttonDim);<P
></P
></DIV
><P
@@ -8358,7 +8358,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>buttonDim</TT
> values.
-(Qt v2)</P
+(TQt v2)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -8369,7 +8369,7 @@ NAME="AEN3157"
><CODE
CLASS="FUNCDEF"
>virtual void tabbarMetrics</CODE
->(const QTabBar *t, int &amp;hframe, int &amp;vframe, int &amp;overlap);<P
+>(const TQTabBar *t, int &amp;hframe, int &amp;vframe, int &amp;overlap);<P
></P
></DIV
><P
@@ -8387,7 +8387,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>overlap</TT
-> values. (Qt v2)</P
+> values. (TQt v2)</P
></DIV
><DIV
CLASS="SECT2"
@@ -8395,12 +8395,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3173"
->QStyleOption (Qt v3+)</A
+>TQStyleOption (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QStyleOption</TT
+>TQStyleOption</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8409,12 +8409,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3177"
->QStyleSheet (Qt v2+)</A
+>TQStyleSheet (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QStyleSheet</TT
+>TQStyleSheet</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8423,12 +8423,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3181"
->QStyleSheetItem (Qt v2+)</A
+>TQStyleSheetItem (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QStyleSheetItem</TT
+>TQStyleSheetItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8437,12 +8437,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3185"
->QSyntaxHighlighter (Qt v3.1+)</A
+>TQSyntaxHighlighter (TQt v3.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSyntaxHighlighter</TT
+>TQSyntaxHighlighter</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8451,12 +8451,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3189"
->QTab</A
+>TQTab</A
></H3
><P
><TT
CLASS="LITERAL"
->QTab</TT
+>TQTab</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8465,7 +8465,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3193"
->QTabBar</A
+>TQTabBar</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -8476,14 +8476,14 @@ NAME="AEN3195"
></A
><CODE
CLASS="FUNCDEF"
->QList&lt;QTab&gt; tabList</CODE
+>TQList&lt;TQTab&gt; tabList</CODE
>();<P
></P
></DIV
><P
>This returns a list of <TT
CLASS="LITERAL"
->QTab</TT
+>TQTab</TT
> instances.</P
></DIV
><DIV
@@ -8492,12 +8492,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3201"
->QTabDialog</A
+>TQTabDialog</A
></H3
><P
><TT
CLASS="LITERAL"
->QTabDialog</TT
+>TQTabDialog</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8506,7 +8506,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3205"
->QTableView (Qt 1.x, Qt 2.x)</A
+>TQTableView (TQt 1.x, TQt 2.x)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -8565,12 +8565,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3229"
->QTabWidget (Qt v2+)</A
+>TQTabWidget (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QTabWidget</TT
+>TQTabWidget</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8579,12 +8579,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3233"
->QTextBrowser (Qt v2+)</A
+>TQTextBrowser (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QTextBrowser</TT
+>TQTextBrowser</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8593,7 +8593,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3237"
->QTextCodec (Qt v2+)</A
+>TQTextCodec (TQt v2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -8604,14 +8604,14 @@ NAME="AEN3239"
></A
><CODE
CLASS="FUNCDEF"
->virtual QCString fromUnicode</CODE
->(const QString &amp;uc, int &amp;lenInOut);<P
+>virtual TQCString fromUnicode</CODE
+>(const TQString &amp;uc, int &amp;lenInOut);<P
></P
></DIV
><P
>The returned value is a tuple of the <TT
CLASS="LITERAL"
->QCString</TT
+>TQCString</TT
> result and the
updated <TT
CLASS="LITERAL"
@@ -8624,12 +8624,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3249"
->QTextDecoder (Qt v2+)</A
+>TQTextDecoder (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QTextDecoder</TT
+>TQTextDecoder</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8638,7 +8638,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3253"
->QTextEncoder (Qt v2+)</A
+>TQTextEncoder (TQt v2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -8649,14 +8649,14 @@ NAME="AEN3255"
></A
><CODE
CLASS="FUNCDEF"
->virtual QCString fromUnicode = 0</CODE
->(const QString &amp;uc, int &amp;lenInOut);<P
+>virtual TQCString fromUnicode = 0</CODE
+>(const TQString &amp;uc, int &amp;lenInOut);<P
></P
></DIV
><P
>The returned value is a tuple of the <TT
CLASS="LITERAL"
->QCString</TT
+>TQCString</TT
> result and the
updated <TT
CLASS="LITERAL"
@@ -8669,7 +8669,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3265"
->QTextEdit (Qt v3+)</A
+>TQTextEdit (TQt v3+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -8681,7 +8681,7 @@ NAME="AEN3267"
><CODE
CLASS="FUNCDEF"
>int charAt</CODE
->(const QPoint &amp;pos, int *para = 0);<P
+>(const TQPoint &amp;pos, int *para = 0);<P
></P
></DIV
><P
@@ -8721,7 +8721,7 @@ NAME="AEN3283"
><CODE
CLASS="FUNCDEF"
>virtual bool find</CODE
->(const QString &amp;expr, bool cs, bool wo, bool forward = TRUE, int *para = 0, int *index = 0);<P
+>(const TQString &amp;expr, bool cs, bool wo, bool forward = TRUE, int *para = 0, int *index = 0);<P
></P
></DIV
><P
@@ -8802,7 +8802,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3332"
->QTextStream</A
+>TQTextStream</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -8813,7 +8813,7 @@ NAME="AEN3334"
></A
><CODE
CLASS="FUNCDEF"
->QTextStream</CODE
+>TQTextStream</CODE
>(FILE *fp, int mode);<P
></P
></DIV
@@ -8828,7 +8828,7 @@ NAME="AEN3342"
></A
><CODE
CLASS="FUNCDEF"
->QTextStream &#38;readRawBytes</CODE
+>TQTextStream &#38;readRawBytes</CODE
>(char *buf, uint len);<P
></P
></DIV
@@ -8843,7 +8843,7 @@ NAME="AEN3350"
></A
><CODE
CLASS="FUNCDEF"
->QTextStream &#38;writeRawBytes</CODE
+>TQTextStream &#38;writeRawBytes</CODE
>(const char *buf, uint len);<P
></P
></DIV
@@ -8856,7 +8856,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3358"
->QTextIStream (Qt v2+)</A
+>TQTextIStream (TQt v2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -8867,7 +8867,7 @@ NAME="AEN3360"
></A
><CODE
CLASS="FUNCDEF"
->QTextIStream</CODE
+>TQTextIStream</CODE
>(FILE *fp, int mode);<P
></P
></DIV
@@ -8880,7 +8880,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3368"
->QTextOStream (Qt v2+)</A
+>TQTextOStream (TQt v2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -8891,7 +8891,7 @@ NAME="AEN3370"
></A
><CODE
CLASS="FUNCDEF"
->QTextOStream</CODE
+>TQTextOStream</CODE
>(FILE *fp, int mode);<P
></P
></DIV
@@ -8904,12 +8904,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3378"
->QTextView (Qt v2+)</A
+>TQTextView (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QTextView</TT
+>TQTextView</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8918,12 +8918,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3382"
->QThread (Qt v2.2+)</A
+>TQThread (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QThread</TT
+>TQThread</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8932,12 +8932,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3386"
->QTimer</A
+>TQTimer</A
></H3
><P
><TT
CLASS="LITERAL"
->QTimer</TT
+>TQTimer</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8946,12 +8946,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3390"
->QToolBar</A
+>TQToolBar</A
></H3
><P
><TT
CLASS="LITERAL"
->QToolBar</TT
+>TQToolBar</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8960,12 +8960,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3394"
->QToolBox (Qt v3.2.0+)</A
+>TQToolBox (TQt v3.2.0+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QToolBox</TT
+>TQToolBox</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8974,12 +8974,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3398"
->QToolButton</A
+>TQToolButton</A
></H3
><P
><TT
CLASS="LITERAL"
->QToolButton</TT
+>TQToolButton</TT
> is fully implemented.</P
></DIV
><DIV
@@ -8988,12 +8988,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3402"
->QToolTip</A
+>TQToolTip</A
></H3
><P
><TT
CLASS="LITERAL"
->QToolTip</TT
+>TQToolTip</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9002,12 +9002,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3406"
->QToolTipGroup</A
+>TQToolTipGroup</A
></H3
><P
><TT
CLASS="LITERAL"
->QToolTipGroup</TT
+>TQToolTipGroup</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9016,12 +9016,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3410"
->QTranslator (Qt v2+)</A
+>TQTranslator (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QTranslator</TT
+>TQTranslator</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9030,12 +9030,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3414"
->QTranslatorMessage (Qt v2.2+)</A
+>TQTranslatorMessage (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QTranslatorMessage</TT
+>TQTranslatorMessage</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9044,16 +9044,16 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3418"
->QUrl (Qt v2.1+)</A
+>TQUrl (TQt v2.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QUrl</TT
+>TQUrl</TT
> is fully implemented, including the
<TT
CLASS="LITERAL"
->QString()</TT
+>TQString()</TT
>, <TT
CLASS="LITERAL"
>==</TT
@@ -9069,12 +9069,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3425"
->QUrlInfo (Qt v2.1+)</A
+>TQUrlInfo (TQt v2.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QUrlInfo</TT
+>TQUrlInfo</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9083,7 +9083,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3429"
->QUrlOperator (Qt v2.1+)</A
+>TQUrlOperator (TQt v2.1+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -9114,12 +9114,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3439"
->QUuid (Qt v3.0+)</A
+>TQUuid (TQt v3.0+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QUuid</TT
+>TQUuid</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9128,7 +9128,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3443"
->QValidator</A
+>TQValidator</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -9140,7 +9140,7 @@ NAME="AEN3445"
><CODE
CLASS="FUNCDEF"
>virtual State validate</CODE
->(QString&#38; input, int&#38; pos);<P
+>(TQString&#38; input, int&#38; pos);<P
></P
></DIV
><P
@@ -9159,7 +9159,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3455"
->QDoubleValidator</A
+>TQDoubleValidator</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -9171,7 +9171,7 @@ NAME="AEN3457"
><CODE
CLASS="FUNCDEF"
>State validate</CODE
->(QString&#38; input, int&#38; pos);<P
+>(TQString&#38; input, int&#38; pos);<P
></P
></DIV
><P
@@ -9190,7 +9190,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3467"
->QIntValidator</A
+>TQIntValidator</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -9202,7 +9202,7 @@ NAME="AEN3469"
><CODE
CLASS="FUNCDEF"
>State validate</CODE
->(QString&#38; input, int&#38; pos);<P
+>(TQString&#38; input, int&#38; pos);<P
></P
></DIV
><P
@@ -9221,7 +9221,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3479"
->QRegExpValidator (Qt v3+)</A
+>TQRegExpValidator (TQt v3+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -9233,7 +9233,7 @@ NAME="AEN3481"
><CODE
CLASS="FUNCDEF"
>virtual State validate</CODE
->(QString&#38; input, int&#38; pos);<P
+>(TQString&#38; input, int&#38; pos);<P
></P
></DIV
><P
@@ -9252,12 +9252,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3491"
->QValueList&lt;type&gt; (Qt v2+)</A
+>TQValueList&lt;type&gt; (TQt v2+)</A
></H3
><P
>Types based on the <TT
CLASS="LITERAL"
->QValueList</TT
+>TQValueList</TT
> template are automatically
converted to and from Python lists of the type.</P
></DIV
@@ -9267,7 +9267,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3495"
->QVariant (Qt v2.1+)</A
+>TQVariant (TQt v2.1+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -9278,7 +9278,7 @@ NAME="AEN3497"
></A
><CODE
CLASS="FUNCDEF"
->QVariant</CODE
+>TQVariant</CODE
>(const char *val);<P
></P
></DIV
@@ -9293,12 +9293,12 @@ NAME="AEN3503"
></A
><CODE
CLASS="FUNCDEF"
->QVariant</CODE
->(const QBitArray &amp;val);<P
+>TQVariant</CODE
+>(const TQBitArray &amp;val);<P
></P
></DIV
><P
->Not yet implemented. (Qt v3+)</P
+>Not yet implemented. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -9308,8 +9308,8 @@ NAME="AEN3509"
></A
><CODE
CLASS="FUNCDEF"
->QVariant</CODE
->(const QValueList&lt;QVariant&gt; &amp;val);<P
+>TQVariant</CODE
+>(const TQValueList&lt;TQVariant&gt; &amp;val);<P
></P
></DIV
><P
@@ -9323,8 +9323,8 @@ NAME="AEN3515"
></A
><CODE
CLASS="FUNCDEF"
->QVariant</CODE
->(const QMap&lt;QString,QVariant&gt; &amp;val);<P
+>TQVariant</CODE
+>(const TQMap&lt;TQString,TQVariant&gt; &amp;val);<P
></P
></DIV
><P
@@ -9338,12 +9338,12 @@ NAME="AEN3521"
></A
><CODE
CLASS="FUNCDEF"
->QBitArray &amp;asBitArray</CODE
+>TQBitArray &amp;asBitArray</CODE
>();<P
></P
></DIV
><P
->Not yet implemented. (Qt v3+)</P
+>Not yet implemented. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -9398,7 +9398,7 @@ NAME="AEN3541"
></A
><CODE
CLASS="FUNCDEF"
->QValueList&lt;QVariant&gt; &amp;asList</CODE
+>TQValueList&lt;TQVariant&gt; &amp;asList</CODE
>();<P
></P
></DIV
@@ -9413,7 +9413,7 @@ NAME="AEN3546"
></A
><CODE
CLASS="FUNCDEF"
->QMap&lt;QString,QVariant&gt; &amp;asMap</CODE
+>TQMap&lt;TQString,TQVariant&gt; &amp;asMap</CODE
>();<P
></P
></DIV
@@ -9443,7 +9443,7 @@ NAME="AEN3556"
></A
><CODE
CLASS="FUNCDEF"
->QValueListConstIterator&lt;QVariant&gt;listBegin const</CODE
+>TQValueListConstIterator&lt;TQVariant&gt;listBegin const</CODE
>();<P
></P
></DIV
@@ -9458,7 +9458,7 @@ NAME="AEN3561"
></A
><CODE
CLASS="FUNCDEF"
->QValueListConstIterator&lt;QVariant&gt;listEnd const</CODE
+>TQValueListConstIterator&lt;TQVariant&gt;listEnd const</CODE
>();<P
></P
></DIV
@@ -9473,7 +9473,7 @@ NAME="AEN3566"
></A
><CODE
CLASS="FUNCDEF"
->QMapConstIterator&lt;QString,QVariant&gt;mapBegin const</CODE
+>TQMapConstIterator&lt;TQString,TQVariant&gt;mapBegin const</CODE
>();<P
></P
></DIV
@@ -9488,7 +9488,7 @@ NAME="AEN3571"
></A
><CODE
CLASS="FUNCDEF"
->QMapConstIterator&lt;QString,QVariant&gt;mapEnd const</CODE
+>TQMapConstIterator&lt;TQString,TQVariant&gt;mapEnd const</CODE
>();<P
></P
></DIV
@@ -9503,8 +9503,8 @@ NAME="AEN3576"
></A
><CODE
CLASS="FUNCDEF"
->QMapConstIterator&lt;QString,QVariant&gt;mapFind const</CODE
->(const QString &#38;key);<P
+>TQMapConstIterator&lt;TQString,TQVariant&gt;mapFind const</CODE
+>(const TQString &#38;key);<P
></P
></DIV
><P
@@ -9518,7 +9518,7 @@ NAME="AEN3582"
></A
><CODE
CLASS="FUNCDEF"
->QValueListConstIterator&lt;QString&gt;stringListBegin const</CODE
+>TQValueListConstIterator&lt;TQString&gt;stringListBegin const</CODE
>();<P
></P
></DIV
@@ -9533,7 +9533,7 @@ NAME="AEN3587"
></A
><CODE
CLASS="FUNCDEF"
->QValueListConstIterator&lt;QString&gt;stringListEnd const</CODE
+>TQValueListConstIterator&lt;TQString&gt;stringListEnd const</CODE
>();<P
></P
></DIV
@@ -9548,12 +9548,12 @@ NAME="AEN3592"
></A
><CODE
CLASS="FUNCDEF"
->const QBitArray toBitArray const</CODE
+>const TQBitArray toBitArray const</CODE
>();<P
></P
></DIV
><P
->Not yet implemented. (Qt v3+)</P
+>Not yet implemented. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -9563,7 +9563,7 @@ NAME="AEN3597"
></A
><CODE
CLASS="FUNCDEF"
->const QValueList&lt;QVariant&gt;toList const</CODE
+>const TQValueList&lt;TQVariant&gt;toList const</CODE
>();<P
></P
></DIV
@@ -9578,7 +9578,7 @@ NAME="AEN3602"
></A
><CODE
CLASS="FUNCDEF"
->const QMap&lt;QString,QVariant&gt;toMap const</CODE
+>const TQMap&lt;TQString,TQVariant&gt;toMap const</CODE
>();<P
></P
></DIV
@@ -9591,12 +9591,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3607"
->QVBox (Qt v2+)</A
+>TQVBox (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QVBox</TT
+>TQVBox</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9605,12 +9605,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3611"
->QVButtonGroup (Qt v2+)</A
+>TQVButtonGroup (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QVButtonGroup</TT
+>TQVButtonGroup</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9619,12 +9619,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3615"
->QVGroupBox (Qt v2+)</A
+>TQVGroupBox (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QVGroupBox</TT
+>TQVGroupBox</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9633,12 +9633,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3619"
->QWaitCondition (Qt v2.2+)</A
+>TQWaitCondition (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QWaitCondition</TT
+>TQWaitCondition</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9647,12 +9647,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3623"
->QWhatsThis</A
+>TQWhatsThis</A
></H3
><P
><TT
CLASS="LITERAL"
->QWhatsThis</TT
+>TQWhatsThis</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9661,7 +9661,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3627"
->QWidget</A
+>TQWidget</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -9672,7 +9672,7 @@ NAME="AEN3629"
></A
><CODE
CLASS="FUNCDEF"
->QWExtra *extraData</CODE
+>TQWExtra *extraData</CODE
>();<P
></P
></DIV
@@ -9687,7 +9687,7 @@ NAME="AEN3634"
></A
><CODE
CLASS="FUNCDEF"
->QFocusData *focusData</CODE
+>TQFocusData *focusData</CODE
>();<P
></P
></DIV
@@ -9736,12 +9736,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3651"
->QWidgetList</A
+>TQWidgetList</A
></H3
><P
>This class isn't implemented. Whenever a <TT
CLASS="LITERAL"
->QWidgetList</TT
+>TQWidgetList</TT
> is the
return type of a function or the type of an argument, a Python list of
instances is used instead.</P
@@ -9752,12 +9752,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3655"
->QWidgetStack</A
+>TQWidgetStack</A
></H3
><P
><TT
CLASS="LITERAL"
->QWidgetStack</TT
+>TQWidgetStack</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9766,13 +9766,13 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3659"
->QWindow</A
+>TQWindow</A
></H3
><P
><TT
CLASS="LITERAL"
->QWindow</TT
-> is fully implemented (Qt v1.x).</P
+>TQWindow</TT
+> is fully implemented (TQt v1.x).</P
></DIV
><DIV
CLASS="SECT2"
@@ -9780,7 +9780,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3663"
->QWindowsStyle (Qt v2+)</A
+>TQWindowsStyle (TQt v2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -9803,7 +9803,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>y</TT
-> values. (Qt v2)</P
+> values. (TQt v2)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -9814,7 +9814,7 @@ NAME="AEN3675"
><CODE
CLASS="FUNCDEF"
>void scrollBarMetrics</CODE
->(const QTabBar *sb, int &#38;sliderMin, int &#38;sliderMax, int &#38;sliderLength, int &#38;buttonDim);<P
+>(const TQTabBar *sb, int &#38;sliderMin, int &#38;sliderMax, int &#38;sliderLength, int &#38;buttonDim);<P
></P
></DIV
><P
@@ -9836,7 +9836,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>buttonDim</TT
> values.
-(Qt v2)</P
+(TQt v2)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -9847,7 +9847,7 @@ NAME="AEN3694"
><CODE
CLASS="FUNCDEF"
>void tabbarMetrics</CODE
->(const QTabBar *t, int &#38;hframe, int &#38;vframe, int &#38;overlap);<P
+>(const TQTabBar *t, int &#38;hframe, int &#38;vframe, int &#38;overlap);<P
></P
></DIV
><P
@@ -9865,7 +9865,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>overlap</TT
-> values. (Qt v2)</P
+> values. (TQt v2)</P
></DIV
><DIV
CLASS="SECT2"
@@ -9873,12 +9873,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3710"
->QWindowsXPStyle (Qt v3.0.1+, Windows)</A
+>TQWindowsXPStyle (TQt v3.0.1+, Windows)</A
></H3
><P
><TT
CLASS="LITERAL"
->QWindowsXPStyle</TT
+>TQWindowsXPStyle</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9887,12 +9887,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3714"
->QWizard (Qt v2+)</A
+>TQWizard (TQt v2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QWizard</TT
+>TQWizard</TT
> is fully implemented.</P
></DIV
><DIV
@@ -9901,7 +9901,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3718"
->QWMatrix</A
+>TQWMatrix</A
></H3
><P
>The Python <TT
@@ -9924,14 +9924,14 @@ NAME="AEN3724"
></A
><CODE
CLASS="FUNCDEF"
->QWMatrix invert const</CODE
+>TQWMatrix invert const</CODE
>(bool *invertible = 0);<P
></P
></DIV
><P
>This takes no parameters and returns a tuple of the <TT
CLASS="LITERAL"
->QWMatrix</TT
+>TQWMatrix</TT
>
result and the <TT
CLASS="LITERAL"
@@ -9994,7 +9994,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>ty</TT
>
-values. (Qt v1.x)</P
+values. (TQt v1.x)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -10023,7 +10023,7 @@ CLASS="LITERAL"
CLASS="LITERAL"
>ty</TT
>
-values. (Qt v2+)</P
+values. (TQt v2+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -10031,12 +10031,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3780"
->QWorkspace (Qt v2.1+)</A
+>TQWorkspace (TQt v2.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QWorkspace</TT
+>TQWorkspace</TT
> is fully implemented.</P
></DIV
></DIV
@@ -10057,7 +10057,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3787"
->QAxBase (Windows, Qt v3+)</A
+>TQAxBase (Windows, TQt v3+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -10068,7 +10068,7 @@ NAME="AEN3789"
></A
><CODE
CLASS="FUNCDEF"
->QAxObject</CODE
+>TQAxObject</CODE
>(IUnknown *iface = 0);<P
></P
></DIV
@@ -10084,7 +10084,7 @@ NAME="AEN3795"
><CODE
CLASS="FUNCDEF"
>long queryInterface</CODE
->(const QUuid &amp;uuid, void **iface);<P
+>(const TQUuid &amp;uuid, void **iface);<P
></P
></DIV
><P
@@ -10129,11 +10129,11 @@ NAME="AEN3814"
><CODE
CLASS="FUNCDEF"
>unsigned long registerWeakActiveObject</CODE
->(const QString &amp;guid);<P
+>(const TQString &amp;guid);<P
></P
></DIV
><P
->This is a utility method provided by PyQt to make it easier to use
+>This is a utility method provided by PyTQt to make it easier to use
Mark Hammond's <TT
CLASS="LITERAL"
>win32com</TT
@@ -10149,7 +10149,7 @@ CLASS="LITERAL"
> COM function is called to
register the <TT
CLASS="LITERAL"
->QAxBase</TT
+>TQAxBase</TT
> instance as a weak object with the
<TT
CLASS="LITERAL"
@@ -10192,7 +10192,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3836"
->QAxObject (Windows, Qt v3+)</A
+>TQAxObject (Windows, TQt v3+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -10203,8 +10203,8 @@ NAME="AEN3838"
></A
><CODE
CLASS="FUNCDEF"
->QAxObject</CODE
->(IUnknown *iface, QObject *parent = 0, const char *name = 0);<P
+>TQAxObject</CODE
+>(IUnknown *iface, TQObject *parent = 0, const char *name = 0);<P
></P
></DIV
><P
@@ -10216,7 +10216,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3848"
->QAxWidget (Windows, Qt v3+)</A
+>TQAxWidget (Windows, TQt v3+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -10227,8 +10227,8 @@ NAME="AEN3850"
></A
><CODE
CLASS="FUNCDEF"
->QAxWidget</CODE
->(IUnknown *iface, QWidget *parent = 0, const char *name = 0);<P
+>TQAxWidget</CODE
+>(IUnknown *iface, TQWidget *parent = 0, const char *name = 0);<P
></P
></DIV
><P
@@ -10252,12 +10252,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3863"
->QCanvas (Qt v2.2+)</A
+>TQCanvas (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCanvas</TT
+>TQCanvas</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10266,12 +10266,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3867"
->QCanvasEllipse (Qt v2.2+)</A
+>TQCanvasEllipse (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCanvasEllipse</TT
+>TQCanvasEllipse</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10280,12 +10280,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3871"
->QCanvasItem (Qt v2.2+)</A
+>TQCanvasItem (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCanvasItem</TT
+>TQCanvasItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10294,17 +10294,17 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3875"
->QCanvasItemList (Qt v2.2+)</A
+>TQCanvasItemList (TQt v2.2+)</A
></H3
><P
>This class isn't implemented. Whenever a <TT
CLASS="LITERAL"
->QCanvasItemList</TT
+>TQCanvasItemList</TT
> is
the return type of a function or the type of an argument, a Python list of
<TT
CLASS="LITERAL"
->QCanvasItem</TT
+>TQCanvasItem</TT
> instances is used instead.</P
></DIV
><DIV
@@ -10313,12 +10313,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3880"
->QCanvasLine (Qt v2.2+)</A
+>TQCanvasLine (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCanvasLine</TT
+>TQCanvasLine</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10327,12 +10327,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3884"
->QCanvasPixmap (Qt v2.2+)</A
+>TQCanvasPixmap (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCanvasPixmap</TT
+>TQCanvasPixmap</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10341,7 +10341,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3888"
->QCanvasPixmapArray (Qt v2.2+)</A
+>TQCanvasPixmapArray (TQt v2.2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -10352,20 +10352,20 @@ NAME="AEN3890"
></A
><CODE
CLASS="FUNCDEF"
->QPixmapArray</CODE
->(QList&lt;QPixmap&gt; pixmaps, QList&lt;QPoint&gt; hotspots);<P
+>TQPixmapArray</CODE
+>(TQList&lt;TQPixmap&gt; pixmaps, TQList&lt;TQPoint&gt; hotspots);<P
></P
></DIV
><P
>The <TT
CLASS="LITERAL"
>pixmaps</TT
-> argument is a Python list of QPixmap instances,
+> argument is a Python list of TQPixmap instances,
and the <TT
CLASS="LITERAL"
>hotspots</TT
-> argument is a Python list of QPoint
-instances. (Qt v2.2.0 - Qt v2.3.1)</P
+> argument is a Python list of TQPoint
+instances. (TQt v2.2.0 - TQt v2.3.1)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -10375,16 +10375,16 @@ NAME="AEN3900"
></A
><CODE
CLASS="FUNCDEF"
->QPixmapArray</CODE
->(QValueList&lt;QPixmap&gt; pixmaps, QPointArray hotspots = QPointArray());<P
+>TQPixmapArray</CODE
+>(TQValueList&lt;TQPixmap&gt; pixmaps, TQPointArray hotspots = TQPointArray());<P
></P
></DIV
><P
>The <TT
CLASS="LITERAL"
>pixmaps</TT
-> argument is a Python list of QPixmap instances.
-(Qt v3+)</P
+> argument is a Python list of TQPixmap instances.
+(TQt v3+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -10392,12 +10392,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3909"
->QCanvasPolygon (Qt v2.2+)</A
+>TQCanvasPolygon (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCanvasPolygon</TT
+>TQCanvasPolygon</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10406,12 +10406,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3913"
->QCanvasPolygonalItem (Qt v2.2+)</A
+>TQCanvasPolygonalItem (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCanvasPolygonalItem</TT
+>TQCanvasPolygonalItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10420,12 +10420,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3917"
->QCanvasRectangle (Qt v2.2+)</A
+>TQCanvasRectangle (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCanvasRectangle</TT
+>TQCanvasRectangle</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10434,12 +10434,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3921"
->QCanvasSpline (Qt v3.0+)</A
+>TQCanvasSpline (TQt v3.0+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCanvasSpline</TT
+>TQCanvasSpline</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10448,12 +10448,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3925"
->QCanvasSprite (Qt v2.2+)</A
+>TQCanvasSprite (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCanvasSprite</TT
+>TQCanvasSprite</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10462,12 +10462,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3929"
->QCanvasText (Qt v2.2+)</A
+>TQCanvasText (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCanvasText</TT
+>TQCanvasText</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10476,12 +10476,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3933"
->QCanvasView (Qt v2.2+)</A
+>TQCanvasView (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCanvasView</TT
+>TQCanvasView</TT
> is fully implemented.</P
></DIV
></DIV
@@ -10646,7 +10646,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3992"
->QextScintillaLexerBash (QScintilla v1.4+)</A
+>QextScintillaLexerBash (TQScintilla v1.4+)</A
></H3
><P
><TT
@@ -10660,7 +10660,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN3996"
->QextScintillaLexerBatch (QScintilla v1.6+)</A
+>QextScintillaLexerBatch (TQScintilla v1.6+)</A
></H3
><P
><TT
@@ -10702,7 +10702,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4008"
->QextScintillaLexerCSS (QScintilla v1.6+)</A
+>QextScintillaLexerCSS (TQScintilla v1.6+)</A
></H3
><P
><TT
@@ -10716,7 +10716,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4012"
->QextScintillaLexerDiff (QScintilla v1.6+)</A
+>QextScintillaLexerDiff (TQScintilla v1.6+)</A
></H3
><P
><TT
@@ -10730,7 +10730,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4016"
->QextScintillaLexerHTML (QScintilla v1.1+)</A
+>QextScintillaLexerHTML (TQScintilla v1.1+)</A
></H3
><P
><TT
@@ -10786,7 +10786,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4032"
->QextScintillaLexerLua (QScintilla v1.5+)</A
+>QextScintillaLexerLua (TQScintilla v1.5+)</A
></H3
><P
><TT
@@ -10800,7 +10800,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4036"
->QextScintillaLexerMakefile (QScintilla v1.6+)</A
+>QextScintillaLexerMakefile (TQScintilla v1.6+)</A
></H3
><P
><TT
@@ -10828,7 +10828,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4044"
->QextScintillaLexerPOV (QScintilla v1.6+)</A
+>QextScintillaLexerPOV (TQScintilla v1.6+)</A
></H3
><P
><TT
@@ -10842,7 +10842,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4048"
->QextScintillaLexerProperties (QScintilla v1.6+)</A
+>QextScintillaLexerProperties (TQScintilla v1.6+)</A
></H3
><P
><TT
@@ -10870,7 +10870,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4056"
->QextScintillaLexerRuby (QScintilla v1.5+)</A
+>QextScintillaLexerRuby (TQScintilla v1.5+)</A
></H3
><P
><TT
@@ -10884,7 +10884,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4060"
->QextScintillaLexerSQL (QScintilla v1.1+)</A
+>QextScintillaLexerSQL (TQScintilla v1.1+)</A
></H3
><P
><TT
@@ -10898,7 +10898,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4064"
->QextScintillaLexerTeX (QScintilla v1.6+)</A
+>QextScintillaLexerTeX (TQScintilla v1.6+)</A
></H3
><P
><TT
@@ -10952,12 +10952,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4079"
->QGL</A
+>TQGL</A
></H3
><P
><TT
CLASS="LITERAL"
->QGL</TT
+>TQGL</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10966,12 +10966,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4083"
->QGLContext</A
+>TQGLContext</A
></H3
><P
><TT
CLASS="LITERAL"
->QGLContext</TT
+>TQGLContext</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10980,12 +10980,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4087"
->QGLFormat</A
+>TQGLFormat</A
></H3
><P
><TT
CLASS="LITERAL"
->QGLFormat</TT
+>TQGLFormat</TT
> is fully implemented.</P
></DIV
><DIV
@@ -10994,12 +10994,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4091"
->QGLWidget</A
+>TQGLWidget</A
></H3
><P
><TT
CLASS="LITERAL"
->QGLWidget</TT
+>TQGLWidget</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11008,7 +11008,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4095"
->QGLColormap (Qt v3.0+)</A
+>TQGLColormap (TQt v3.0+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -11020,7 +11020,7 @@ NAME="AEN4097"
><CODE
CLASS="FUNCDEF"
>void setEntries</CODE
->(int count, const QRgb *colors, int base = 0);<P
+>(int count, const TQRgb *colors, int base = 0);<P
></P
></DIV
><P
@@ -11044,12 +11044,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4110"
->QDns (Qt v2.2+)</A
+>TQDns (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDns</TT
+>TQDns</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11058,7 +11058,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4114"
->QFtp (Qt v2.2+)</A
+>TQFtp (TQt v2.2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -11093,7 +11093,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4127"
->QHostAddress (Qt v2.2+)</A
+>TQHostAddress (TQt v2.2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -11104,7 +11104,7 @@ NAME="AEN4129"
></A
><CODE
CLASS="FUNCDEF"
->QHostAddress</CODE
+>TQHostAddress</CODE
>(Q_UINT8 *ip6Addr);<P
></P
></DIV
@@ -11119,7 +11119,7 @@ NAME="AEN4135"
></A
><CODE
CLASS="FUNCDEF"
->QHostAddress</CODE
+>TQHostAddress</CODE
>(const Q_IPV6ADDR &amp;ip6Addr);<P
></P
></DIV
@@ -11162,7 +11162,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4153"
->QHttp (Qt v3+)</A
+>TQHttp (TQt v3+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -11197,12 +11197,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4166"
->QHttpHeader (Qt v3.1+)</A
+>TQHttpHeader (TQt v3.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QHttpHeader</TT
+>TQHttpHeader</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11211,12 +11211,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4170"
->QHttpRequestHeader (Qt v3.1+)</A
+>TQHttpRequestHeader (TQt v3.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QHttpRequestHeader</TT
+>TQHttpRequestHeader</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11225,12 +11225,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4174"
->QHttpResponseHeader (Qt v3.1+)</A
+>TQHttpResponseHeader (TQt v3.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QHttpResponseHeader</TT
+>TQHttpResponseHeader</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11239,12 +11239,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4178"
->QLocalFs (Qt v2.1+)</A
+>TQLocalFs (TQt v2.1+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QLocalFs</TT
+>TQLocalFs</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11253,12 +11253,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4182"
->QServerSocket (Qt v2.2+)</A
+>TQServerSocket (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QServerSocket</TT
+>TQServerSocket</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11267,7 +11267,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4186"
->QSocket (Qt v2.2+)</A
+>TQSocket (TQt v2.2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -11350,7 +11350,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4220"
->QSocketDevice (Qt v2.2+)</A
+>TQSocketDevice (TQt v2.2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -11419,7 +11419,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4246"
->QPEApplication</A
+>TQPEApplication</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -11430,13 +11430,13 @@ NAME="AEN4248"
></A
><CODE
CLASS="FUNCDEF"
->QApplication</CODE
+>TQApplication</CODE
>(int&#38; argc, char **argv, Type type);<P
></P
></DIV
><P
>This takes two parameters, the first of which is a list of argument strings.
-Arguments used by Qt are removed from the list.</P
+Arguments used by TQt are removed from the list.</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -11473,7 +11473,7 @@ NAME="AEN4266"
></A
><CODE
CLASS="FUNCDEF"
->virtual QString exec const</CODE
+>virtual TQString exec const</CODE
>();<P
></P
></DIV
@@ -11542,7 +11542,7 @@ NAME="AEN4286"
></A
><CODE
CLASS="FUNCDEF"
->QString exec const</CODE
+>TQString exec const</CODE
>();<P
></P
></DIV
@@ -11666,12 +11666,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4323"
->QCopEnvelope</A
+>TQCopEnvelope</A
></H3
><P
><TT
CLASS="LITERAL"
->QCopEnvelope</TT
+>TQCopEnvelope</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11680,12 +11680,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4327"
->QDawg</A
+>TQDawg</A
></H3
><P
><TT
CLASS="LITERAL"
->QDawg</TT
+>TQDawg</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11694,12 +11694,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4331"
->QPEMenuBar</A
+>TQPEMenuBar</A
></H3
><P
><TT
CLASS="LITERAL"
->QPEMenuBar</TT
+>TQPEMenuBar</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11708,12 +11708,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4335"
->QPEToolBar</A
+>TQPEToolBar</A
></H3
><P
><TT
CLASS="LITERAL"
->QPEToolBar</TT
+>TQPEToolBar</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11748,7 +11748,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4346"
->QDataBrowser (Qt v3+)</A
+>TQDataBrowser (TQt v3+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -11775,12 +11775,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4354"
->QDataTable (Qt v3+)</A
+>TQDataTable (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDataTable</TT
+>TQDataTable</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11789,12 +11789,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4358"
->QDataView (Qt v3+)</A
+>TQDataView (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDataView</TT
+>TQDataView</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11803,12 +11803,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4362"
->QEditorFactory (Qt v3+)</A
+>TQEditorFactory (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QEditorFactory</TT
+>TQEditorFactory</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11817,12 +11817,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4366"
->QSql (Qt v3+)</A
+>TQSql (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSql</TT
+>TQSql</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11831,7 +11831,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4370"
->QSqlCursor (Qt v3+)</A
+>TQSqlCursor (TQt v3+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -11861,7 +11861,7 @@ NAME="AEN4379"
><CODE
CLASS="FUNCDEF"
>virtual int del</CODE
->(const QString &amp;filter, bool invalidate = TRUE);<P
+>(const TQString &amp;filter, bool invalidate = TRUE);<P
></P
></DIV
><P
@@ -11879,7 +11879,7 @@ NAME="AEN4388"
><CODE
CLASS="FUNCDEF"
>bool exec</CODE
->(const QString &amp;query);<P
+>(const TQString &amp;query);<P
></P
></DIV
><P
@@ -11894,7 +11894,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4395"
->QSqlDatabase (Qt v3+)</A
+>TQSqlDatabase (TQt v3+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -11905,8 +11905,8 @@ NAME="AEN4397"
></A
><CODE
CLASS="FUNCDEF"
->QSqlQuery exec</CODE
->(const QString &amp;query = QString::null);<P
+>TQSqlQuery exec</CODE
+>(const TQString &amp;query = TQString::null);<P
></P
></DIV
><P
@@ -11921,12 +11921,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4404"
->QSqlDriver (Qt v3+)</A
+>TQSqlDriver (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSqlDriver</TT
+>TQSqlDriver</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11935,12 +11935,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4408"
->QSqlEditorFactory (Qt v3+)</A
+>TQSqlEditorFactory (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSqlEditorFactory</TT
+>TQSqlEditorFactory</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11949,12 +11949,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4412"
->QSqlError (Qt v3+)</A
+>TQSqlError (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSqlError</TT
+>TQSqlError</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11963,12 +11963,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4416"
->QSqlField (Qt v3+)</A
+>TQSqlField (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSqlField</TT
+>TQSqlField</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11977,12 +11977,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4420"
->QSqlFieldInfo (Qt v3+)</A
+>TQSqlFieldInfo (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSqlFieldInfo</TT
+>TQSqlFieldInfo</TT
> is fully implemented.</P
></DIV
><DIV
@@ -11991,12 +11991,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4424"
->QSqlForm (Qt v3+)</A
+>TQSqlForm (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSqlForm</TT
+>TQSqlForm</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12005,12 +12005,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4428"
->QSqlIndex (Qt v3+)</A
+>TQSqlIndex (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSqlIndex</TT
+>TQSqlIndex</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12019,18 +12019,18 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4432"
->QSqlPropertyMap (Qt v3+)</A
+>TQSqlPropertyMap (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSqlPropertyMap</TT
-> is fully implemented. However, because PyQt
+>TQSqlPropertyMap</TT
+> 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. This will
simple be ignored.</P
><P
->This problem may be addressed in a future release of PyQt.</P
+>This problem may be addressed in a future release of PyTQt.</P
></DIV
><DIV
CLASS="SECT2"
@@ -12038,7 +12038,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4437"
->QSqlQuery (Qt v3+)</A
+>TQSqlQuery (TQt v3+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -12049,12 +12049,12 @@ NAME="AEN4439"
></A
><CODE
CLASS="FUNCDEF"
->QMap&lt;QString,QVariant&gt; boundValues const</CODE
+>TQMap&lt;TQString,TQVariant&gt; boundValues const</CODE
>();<P
></P
></DIV
><P
->Not yet implemented. (Qt v3.2.0+)</P
+>Not yet implemented. (TQt v3.2.0+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -12065,7 +12065,7 @@ NAME="AEN4444"
><CODE
CLASS="FUNCDEF"
>virtual bool exec</CODE
->(const QString &amp;query);<P
+>(const TQString &amp;query);<P
></P
></DIV
><P
@@ -12090,7 +12090,7 @@ CLASS="FUNCDEF"
>This has been renamed <TT
CLASS="LITERAL"
>execQuery</TT
-> in Python. (Qt v3.1+)</P
+> in Python. (TQt v3.1+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -12098,12 +12098,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4457"
->QSqlRecord (Qt v3+)</A
+>TQSqlRecord (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSqlRecord</TT
+>TQSqlRecord</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12112,16 +12112,16 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4461"
->QSqlRecordInfo (Qt v3+)</A
+>TQSqlRecordInfo (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSqlRecordInfo</TT
+>TQSqlRecordInfo</TT
> is implemented as a Python list of
<TT
CLASS="LITERAL"
->QSqlFieldInfo</TT
+>TQSqlFieldInfo</TT
> instances.</P
></DIV
><DIV
@@ -12130,12 +12130,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4466"
->QSqlResult (Qt v3+)</A
+>TQSqlResult (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QSqlResult</TT
+>TQSqlResult</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12144,7 +12144,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4470"
->QSqlSelectCursor (Qt v3.2.0+)</A
+>TQSqlSelectCursor (TQt v3.2.0+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -12174,7 +12174,7 @@ NAME="AEN4479"
><CODE
CLASS="FUNCDEF"
>bool exec</CODE
->(const QString &amp;query);<P
+>(const TQString &amp;query);<P
></P
></DIV
><P
@@ -12201,12 +12201,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4489"
->QTable (Qt v2.2+)</A
+>TQTable (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QTable</TT
+>TQTable</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12215,12 +12215,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4493"
->QTableItem (Qt v2.2+)</A
+>TQTableItem (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QTableItem</TT
+>TQTableItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12229,12 +12229,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4497"
->QCheckTableItem (Qt v3+)</A
+>TQCheckTableItem (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QCheckTableItem</TT
+>TQCheckTableItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12243,12 +12243,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4501"
->QComboTableItem (Qt v3+)</A
+>TQComboTableItem (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QComboTableItem</TT
+>TQComboTableItem</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12257,12 +12257,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4505"
->QTableSelection (Qt v2.2+)</A
+>TQTableSelection (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QTableSelection</TT
+>TQTableSelection</TT
> is fully implemented.</P
></DIV
></DIV
@@ -12283,12 +12283,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4512"
->QWidgetFactory (Qt v3+)</A
+>TQWidgetFactory (TQt v3+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QWidgetFactory</TT
+>TQWidgetFactory</TT
> is fully implemented.</P
></DIV
></DIV
@@ -12309,12 +12309,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4519"
->QDomImplementation (Qt v2.2+)</A
+>TQDomImplementation (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomImplementation</TT
+>TQDomImplementation</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12323,12 +12323,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4523"
->QDomNode (Qt v2.2+)</A
+>TQDomNode (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomNode</TT
+>TQDomNode</TT
> is fully implemented, including the Python
<TT
CLASS="LITERAL"
@@ -12344,12 +12344,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4529"
->QDomNodeList (Qt v2.2+)</A
+>TQDomNodeList (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomNodeList</TT
+>TQDomNodeList</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12358,7 +12358,7 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4533"
->QDomDocument (Qt v2.2+)</A
+>TQDomDocument (TQt v2.2+)</A
></H3
><DIV
CLASS="FUNCSYNOPSIS"
@@ -12370,7 +12370,7 @@ NAME="AEN4535"
><CODE
CLASS="FUNCDEF"
>bool setContent</CODE
->(const QCString &amp;buffer, bool namespaceProcessing, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
+>(const TQCString &amp;buffer, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
></P
></DIV
><P
@@ -12396,7 +12396,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>errorColumn</TT
-> values. (Qt v3+)</P
+> values. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -12407,7 +12407,7 @@ NAME="AEN4555"
><CODE
CLASS="FUNCDEF"
>bool setContent</CODE
->(const QByteArray &amp;buffer, bool namespaceProcessing, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
+>(const TQByteArray &amp;buffer, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
></P
></DIV
><P
@@ -12433,7 +12433,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>errorColumn</TT
-> values. (Qt v3+)</P
+> values. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -12444,7 +12444,7 @@ NAME="AEN4575"
><CODE
CLASS="FUNCDEF"
>bool setContent</CODE
->(const QString &amp;text, bool namespaceProcessing, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
+>(const TQString &amp;text, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
></P
></DIV
><P
@@ -12470,7 +12470,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>errorColumn</TT
-> values. (Qt v3+)</P
+> values. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -12481,7 +12481,7 @@ NAME="AEN4595"
><CODE
CLASS="FUNCDEF"
>bool setContent</CODE
->(const QIODevice *dev, bool namespaceProcessing, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
+>(const TQIODevice *dev, bool namespaceProcessing, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
></P
></DIV
><P
@@ -12507,7 +12507,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>errorColumn</TT
-> values. (Qt v3+)</P
+> values. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -12518,7 +12518,7 @@ NAME="AEN4615"
><CODE
CLASS="FUNCDEF"
>bool setContent</CODE
->(const QCString &amp;buffer, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
+>(const TQCString &amp;buffer, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
></P
></DIV
><P
@@ -12540,7 +12540,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>errorColumn</TT
-> values. (Qt v3+)</P
+> values. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -12551,7 +12551,7 @@ NAME="AEN4632"
><CODE
CLASS="FUNCDEF"
>bool setContent</CODE
->(const QByteArray &amp;buffer, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
+>(const TQByteArray &amp;buffer, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
></P
></DIV
><P
@@ -12573,7 +12573,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>errorColumn</TT
-> values. (Qt v3+)</P
+> values. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -12584,7 +12584,7 @@ NAME="AEN4649"
><CODE
CLASS="FUNCDEF"
>bool setContent</CODE
->(const QString &amp;text, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
+>(const TQString &amp;text, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
></P
></DIV
><P
@@ -12606,7 +12606,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>errorColumn</TT
-> values. (Qt v3+)</P
+> values. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -12617,7 +12617,7 @@ NAME="AEN4666"
><CODE
CLASS="FUNCDEF"
>bool setContent</CODE
->(const QIODevice *dev, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
+>(const TQIODevice *dev, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
></P
></DIV
><P
@@ -12639,7 +12639,7 @@ CLASS="LITERAL"
<TT
CLASS="LITERAL"
>errorColumn</TT
-> values. (Qt v3+)</P
+> values. (TQt v3+)</P
><DIV
CLASS="FUNCSYNOPSIS"
><P
@@ -12650,11 +12650,11 @@ NAME="AEN4683"
><CODE
CLASS="FUNCDEF"
>bool setContent</CODE
->(QXmlInputSource *source, QXmlReader *reader, QString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
+>(TQXmlInputSource *source, TQXmlReader *reader, TQString *errorMsg = 0, int *errorLine = 0, int *errorColumn = 0);<P
></P
></DIV
><P
->Not yet implemented. (Qt v3.2.0+)</P
+>Not yet implemented. (TQt v3.2.0+)</P
></DIV
><DIV
CLASS="SECT2"
@@ -12662,12 +12662,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4697"
->QDomDocumentFragment (Qt v2.2+)</A
+>TQDomDocumentFragment (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomDocumentFragment</TT
+>TQDomDocumentFragment</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12676,12 +12676,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4701"
->QDomDocumentType (Qt v2.2+)</A
+>TQDomDocumentType (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomDocumentType</TT
+>TQDomDocumentType</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12690,12 +12690,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4705"
->QDomNamedNodeMap (Qt v2.2+)</A
+>TQDomNamedNodeMap (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomNamedNodeMap</TT
+>TQDomNamedNodeMap</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12704,12 +12704,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4709"
->QDomCharacterData (Qt v2.2+)</A
+>TQDomCharacterData (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomCharacterData</TT
+>TQDomCharacterData</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12718,12 +12718,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4713"
->QDomAttr (Qt v2.2+)</A
+>TQDomAttr (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomAttr</TT
+>TQDomAttr</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12732,12 +12732,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4717"
->QDomElement (Qt v2.2+)</A
+>TQDomElement (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomElement</TT
+>TQDomElement</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12746,12 +12746,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4721"
->QDomText (Qt v2.2+)</A
+>TQDomText (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomText</TT
+>TQDomText</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12760,12 +12760,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4725"
->QDomComment (Qt v2.2+)</A
+>TQDomComment (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomComment</TT
+>TQDomComment</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12774,12 +12774,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4729"
->QDomCDATASection (Qt v2.2+)</A
+>TQDomCDATASection (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomCDATASection</TT
+>TQDomCDATASection</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12788,12 +12788,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4733"
->QDomNotation (Qt v2.2+)</A
+>TQDomNotation (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomNotation</TT
+>TQDomNotation</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12802,12 +12802,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4737"
->QDomEntity (Qt v2.2+)</A
+>TQDomEntity (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomEntity</TT
+>TQDomEntity</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12816,12 +12816,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4741"
->QDomEntityReference (Qt v2.2+)</A
+>TQDomEntityReference (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomEntityReference</TT
+>TQDomEntityReference</TT
> is fully implemented.</P
></DIV
><DIV
@@ -12830,12 +12830,12 @@ CLASS="SECT2"
CLASS="SECT2"
><A
NAME="AEN4745"
->QDomProcessingInstruction (Qt v2.2+)</A
+>TQDomProcessingInstruction (TQt v2.2+)</A
></H3
><P
><TT
CLASS="LITERAL"
->QDomProcessingInstruction</TT
+>TQDomProcessingInstruction</TT
> is fully implemented.</P
></DIV
></DIV
diff --git a/doc/PyQt.sgml b/doc/PyQt.sgml
index 253db19..5f0d911 100644
--- a/doc/PyQt.sgml
+++ b/doc/PyQt.sgml
@@ -1,14 +1,14 @@
<!DOCTYPE Article PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
<Article>
<ArtHeader>
- <Title>Python Bindings for Qt (3.18.1)</Title>
+ <Title>Python Bindings for TQt (3.18.1)</Title>
<Author>
<FirstName>Phil</FirstName>
<Surname>Thompson</Surname>
</Author>
<Abstract>
<Para>
- This document describes a set of Python bindings for the Qt widget set.
+ This document describes a set of Python bindings for the TQt widget set.
Contact the author at <Email>phil@riverbankcomputing.co.uk</Email>.
</Para>
</Abstract>
@@ -17,34 +17,34 @@
<Sect1><Title>Introduction</Title>
<Para>
-PyQt is a set of Python bindings for the Qt toolkit and available for all
-platforms supported by Qt, including Windows, Linux, UNIX, MacOS/X and embedded
+PyTQt is a set of Python bindings for the TQt toolkit and available for all
+platforms supported by TQt, including Windows, Linux, UNIX, MacOS/X and embedded
systems such as the Sharp Zaurus and the Compaq iPAQ. They have been tested
-against Qt versions 1.43 to 3.3.6, Qt Non-commercial, Qtopia 1.5.0, and Python
-versions 1.5 to 2.4.2. Qt/Embedded v3 is not supported. Qt v4 is supported
-by PyQt v4.
+against TQt versions 1.43 to 3.3.6, TQt Non-commercial, TQtopia 1.5.0, and Python
+versions 1.5 to 2.4.2. TQt/Embedded v3 is not supported. TQt v4 is supported
+by PyTQt v4.
</Para>
<Para>
-PyQt is available under the GPL license for use with the GPL version of Qt, a
-a commercial license for use with the commercial version of Qt, a
-non-commercial license for use with the non-commercial version of Qt v2, and an
-educational license for use with the educational version of Qt.
+PyTQt is available under the GPL license for use with the GPL version of TQt, a
+a commercial license for use with the commercial version of TQt, a
+non-commercial license for use with the non-commercial version of TQt v2, and an
+educational license for use with the educational version of TQt.
</Para>
<Para>
-There is also an evaluation version of PyQt for Windows. This must be used
-with the corresponding evaluation version of Qt.
+There is also an evaluation version of PyTQt for Windows. This must be used
+with the corresponding evaluation version of TQt.
</Para>
<Para>
-PyQt is built using SIP (a tool for generating Python extension modules for
+PyTQt is built using SIP (a tool for generating Python extension modules for
C++ class libraries). SIP v4.6 or later must be installed in order to build
-and run this version of PyQt.
+and run this version of PyTQt.
</Para>
<Para>
-PyQt for MacOS/X requires Qt v3.1.0 or later and Python v2.3 or later.
+PyTQt for MacOS/X retquires TQt v3.1.0 or later and Python v2.3 or later.
</Para>
<Para>
@@ -62,81 +62,81 @@ user interface widgets.
<ListItem>
<Para>
<Literal>qtaxcontainer</Literal> contains a sub-set of the classes implemented
-in Qt's QAxContainer module, part of Qt's ActiveQt framework.
+in TQt's TQAxContainer module, part of TQt's ActiveTQt framework.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtcanvas</Literal> contains the classes implemented in Qt's Canvas
+<Literal>qtcanvas</Literal> contains the classes implemented in TQt's Canvas
module.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtgl</Literal> contains the classes implemented in Qt's OpenGL module.
+<Literal>qtgl</Literal> contains the classes implemented in TQt's OpenGL module.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtnetwork</Literal> contains the classes implemented in Qt's Network
+<Literal>qtnetwork</Literal> contains the classes implemented in TQt's Network
module.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtpe</Literal> contains the classes implemented in Qtopia (originally
-called the Qt Palmtop Environment). It is only supported with Qt/Embedded.
+<Literal>qtpe</Literal> contains the classes implemented in TQtopia (originally
+called the TQt Palmtop Environment). It is only supported with TQt/Embedded.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtsql</Literal> contains the classes implemented in Qt's SQL module.
+<Literal>qtsql</Literal> contains the classes implemented in TQt's SQL module.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qttable</Literal> contains the classes implemented in Qt's Table
+<Literal>qttable</Literal> contains the classes implemented in TQt's Table
module.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtui</Literal> contains the classes implemented in Qt's qui library.
-These allow GUIs to be created directly from Qt Designer's
+<Literal>qtui</Literal> contains the classes implemented in TQt's tqui library.
+These allow GUIs to be created directly from TQt Designer's
<Literal>.ui</Literal> files.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtxml</Literal> contains the classes implemented in Qt's XML module.
+<Literal>qtxml</Literal> contains the classes implemented in TQt's XML module.
</Para>
</ListItem>
<ListItem>
<Para>
<Literal>qtext</Literal> contains useful third-party classes that are not part
-of Qt. At the moment it contains bindings for QScintilla, the port to Qt of
+of TQt. At the moment it contains bindings for TQScintilla, the port to TQt of
the Scintilla programmer's editor class.
</Para>
</ListItem>
</ItemizedList>
<Para>
-PyQt also includes the <Literal>pyuic</Literal> and
-<Literal>pylupdate</Literal> utilities which correspond to the Qt
+PyTQt also includes the <Literal>pyuic</Literal> and
+<Literal>pylupdate</Literal> utilities which correspond to the TQt
<Literal>uic</Literal> and <Literal>lupdate</Literal> utilities.
-<Literal>pyuic</Literal> converts the GUI designs created with Qt Designer to
+<Literal>pyuic</Literal> converts the GUI designs created with TQt Designer to
executable Python code. <Literal>pylupdate</Literal> scans Python code,
extracts all strings that are candidates for internationalisation, and creates
-an XML file for use by Qt Linguist.
+an XML file for use by TQt Linguist.
</Para>
<Sect2><Title>Changes</Title>
@@ -147,26 +147,26 @@ The changes visible to the Python programmer in this release are as follows.
<ListItem>
<Para>
-This version requires SIP v4.4 (or later).
+This version retquires SIP v4.4 (or later).
</Para>
</ListItem>
<ListItem>
<Para>
-Concatenating Python strings and <Literal>QString</Literal>s is now supported.
+Concatenating Python strings and <Literal>TQString</Literal>s is now supported.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>QString</Literal> now supports the <Literal>*</Literal> and
+<Literal>TQString</Literal> now supports the <Literal>*</Literal> and
<Literal>*=</Literal> operators that behave as they do for Python strings.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>QString</Literal> is more interoperable with Python string and unicode
+<Literal>TQString</Literal> is more interoperable with Python string and unicode
objects. For example they can be passed as arguments to
<Literal>open()</Literal> and to most (but not all) string methods.
</Para>
@@ -174,17 +174,17 @@ objects. For example they can be passed as arguments to
<ListItem>
<Para>
-<Literal>QPopupMenu</Literal> (and sub-classes) instances now transfer
+<Literal>TQPopupMenu</Literal> (and sub-classes) instances now transfer
ownership of the menu to Python in the call to <Literal>exec_loop()</Literal>.
This means the menu's resources are all released when the Python wrapper is
garbage collected without needing to call
-<Literal>QObject.deleteLater()</Literal>.
+<Literal>TQObject.deleteLater()</Literal>.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>QObject.sender()</Literal> now handles Python signals.
+<Literal>TQObject.sender()</Literal> now handles Python signals.
</Para>
</ListItem>
@@ -204,7 +204,7 @@ The missing <Literal>MacintoshVersion</Literal> enum has been added.
<Para>
The convention for converting between a C/C++ null pointer and Python's
<Literal>None</Literal> object has now been universally applied. In previous
-versions a null pointer to, for example, a Qt list container would often be
+versions a null pointer to, for example, a TQt list container would often be
converted to an empty list rather than <Literal>None</Literal>.
</Para>
</ListItem>
@@ -214,16 +214,16 @@ converted to an empty list rather than <Literal>None</Literal>.
</Sect1>
-<Sect1><Title>Other PyQt Goodies</Title>
-<Sect2><Title>Using Qt Designer</Title>
+<Sect1><Title>Other PyTQt Goodies</Title>
+<Sect2><Title>Using TQt Designer</Title>
<Para>
-Qt Designer is a GPL'ed GUI design editor provided by Trolltech as part of Qt.
-It generates an XML description of a GUI design. Qt includes
+TQt Designer is a GPL'ed GUI design editor provided by Trolltech as part of TQt.
+It generates an XML description of a GUI design. TQt includes
<Literal>uic</Literal> which generates C++ code from that XML.
</Para>
<Para>
-PyQt includes <Literal>pyuic</Literal> which generates Python code from the
+PyTQt includes <Literal>pyuic</Literal> which generates Python code from the
same XML. The Python code is self contained and can be executed immediately.
</Para>
@@ -231,10 +231,10 @@ same XML. The Python code is self contained and can be executed immediately.
It is sometimes useful to be able to include some specific Python code in the
output generated by <Literal>pyuic</Literal>. For example, if you are using
custom widgets, <Literal>pyuic</Literal> has no way of knowing the name of the
-Python module containing the widget and so cannot generate the required
+Python module containing the widget and so cannot generate the retquired
<Literal>import</Literal> statement. To help get around this,
<Literal>pyuic</Literal> will extract any lines entered in the
-<Literal>Comment</Literal> field of Qt Designer's
+<Literal>Comment</Literal> field of TQt Designer's
<Literal>Form Settings</Literal> dialog that begin with
<Literal>Python:</Literal> and copies them to the generated output.
</Para>
@@ -264,7 +264,7 @@ from foo import bar
<Para>
Thanks to Christian Bird, <Literal>pyuic</Literal> will extract Python code
-entered using Qt Designer to implement slots. In Qt Designer, when you need to
+entered using TQt Designer to implement slots. In TQt Designer, when you need to
edit a slot and the source editor appears, enter Python code between the curly
braces. Don't worry about the correct starting indent level, each line is
prepended with a correct indentation.
@@ -285,7 +285,7 @@ Here's an example of a simple slot.
void DebMainWindowFrm::browsePushButtonClicked()
{
if self.debugging:
- QMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
+ TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
}
</ProgramListing>
@@ -294,11 +294,11 @@ Here is the resulting code when <Literal>pyuic</Literal> is run.
</Para>
<ProgramListing>
-class DebMainWindowFrm(QMainWindow):
+class DebMainWindowFrm(TQMainWindow):
...stuff...
def browsePushButtonClicked(self):
if self.debugging:
- QMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
+ TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
</ProgramListing>
<Para>
@@ -313,9 +313,9 @@ annoying when trying to code in Python.
</Para>
</Sect2>
-<Sect2><Title>Using Qt Linguist</Title>
+<Sect2><Title>Using TQt Linguist</Title>
<Para>
-Qt includes the <Literal>lupdate</Literal> program which parses C++ source
+TQt includes the <Literal>lupdate</Literal> program which parses C++ source
files converting calls to the <Literal>QT_TR_NOOP()</Literal> and
<Literal>QT_TRANSLATE_NOOP()</Literal> macros to <Literal>.ts</Literal>
language source files. The <Literal>lrelease</Literal> program is then used to
@@ -324,21 +324,21 @@ your application.
</Para>
<Para>
-Thanks to Detlev Offenbach, PyQt includes the <Literal>pylupdate</Literal>
+Thanks to Detlev Offenbach, PyTQt includes the <Literal>pylupdate</Literal>
program. This generates the same <Literal>.ts</Literal> language source files
-from your PyQt source files.
+from your PyTQt source files.
</Para>
</Sect2>
</Sect1>
-<Sect1><Title>Deploying Commercial PyQt Applications</Title>
+<Sect1><Title>Deploying Commercial PyTQt Applications</Title>
<Para>
-When deploying commercial PyQt applications it is necessary to discourage users
-from accessing the underlying PyQt modules for themselves. A user that used
+When deploying commercial PyTQt applications it is necessary to discourage users
+from accessing the underlying PyTQt modules for themselves. A user that used
the modules shipped with your application to develop new applications would
-themselves be considered a developer and would need their own commercial Qt and
-PyQt licenses.
+themselves be considered a developer and would need their own commercial TQt and
+PyTQt licenses.
</Para>
<Para>
@@ -347,13 +347,13 @@ One solution to this problem is the
package. This allows you to build Python extension modules that can only be
imported by a digitally signed custom interpreter. The package enables you to
create such an interpreter with your application embedded within it. The
-result is an interpreter that can only run your application, and PyQt modules
+result is an interpreter that can only run your application, and PyTQt modules
that can only be imported by that interpreter. You can use the package to
similarly restrict access to any extension module.
</Para>
<Para>
-In order to build PyQt with support for the VendorID package, pass the
+In order to build PyTQt with support for the VendorID package, pass the
<Literal>-i</Literal> command line flag to <Literal>configure.py</Literal>.
</Para>
</Sect1>
@@ -361,9 +361,9 @@ In order to build PyQt with support for the VendorID package, pass the
<Sect1><Title><Literal>pyqtconfig</Literal> and Build System Support</Title>
<Para>
The SIP build system (ie. the <Literal>sipconfig</Literal> module) is described
-in the SIP documentation. PyQt includes the <Literal>pyqtconfig</Literal>
+in the SIP documentation. PyTQt includes the <Literal>pyqtconfig</Literal>
module that can be used by configuration scripts of other bindings that are
-built on top of PyQt.
+built on top of PyTQt.
</Para>
<Para>
@@ -375,7 +375,7 @@ The <Literal>pyqtconfig</Literal> module contains the following classes:
<Term><Literal>Configuration(sipconfig.Configuration)</Literal></Term>
<ListItem>
<Para>
-This class encapsulates additional configuration values, specific to PyQt, that
+This class encapsulates additional configuration values, specific to PyTQt, that
can be accessed as instance variables.
</Para>
@@ -400,7 +400,7 @@ The name of the directory containing the <Literal>pyuic</Literal> and
<Term><Literal>pyqt_config_args</Literal></Term>
<ListItem>
<Para>
-The command line passed to <Literal>configure.py</Literal> when PyQt was
+The command line passed to <Literal>configure.py</Literal> when PyTQt was
configured.
</Para>
<Para></Para><Para></Para>
@@ -411,7 +411,7 @@ configured.
<Term><Literal>pyqt_mod_dir</Literal></Term>
<ListItem>
<Para>
-The name of the directory containing the PyQt modules.
+The name of the directory containing the PyTQt modules.
</Para>
<Para></Para><Para></Para>
</ListItem>
@@ -421,7 +421,7 @@ The name of the directory containing the PyQt modules.
<Term><Literal>pyqt_modules</Literal></Term>
<ListItem>
<Para>
-A string containing the names of the PyQt modules that were installed.
+A string containing the names of the PyTQt modules that were installed.
</Para>
<Para></Para><Para></Para>
</ListItem>
@@ -552,7 +552,7 @@ any module that imports the <Literal>qtxml</Literal> module.
<ListItem>
<Para>
The name of the base directory where the <Literal>.sip</Literal> files for each
-of the PyQt modules is installed. A sub-directory exists with the same name as
+of the PyTQt modules is installed. A sub-directory exists with the same name as
the module.
</Para>
<Para></Para><Para></Para>
@@ -563,7 +563,7 @@ the module.
<Term><Literal>pyqt_version</Literal></Term>
<ListItem>
<Para>
-The PyQt version as a 3 part hexadecimal number (eg. v3.10 is represented as
+The PyTQt version as a 3 part hexadecimal number (eg. v3.10 is represented as
<Literal>0x030a00</Literal>).
</Para>
<Para></Para><Para></Para>
@@ -574,7 +574,7 @@ The PyQt version as a 3 part hexadecimal number (eg. v3.10 is represented as
<Term><Literal>pyqt_version_str</Literal></Term>
<ListItem>
<Para>
-The PyQt version as a string. For development snapshots it will start with
+The PyTQt version as a string. For development snapshots it will start with
<Literal>snapshot-</Literal>.
</Para>
<Para></Para><Para></Para>
@@ -586,7 +586,7 @@ The PyQt version as a string. For development snapshots it will start with
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtModuleMakefile(sipconfig.SIPModuleMakefile)</Literal></Term>
+<Term><Literal>TQtModuleMakefile(sipconfig.SIPModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qt</Literal> module.
@@ -606,7 +606,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtAxContainerModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtAxContainerModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtaxcontainer</Literal>
@@ -627,7 +627,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtCanvasModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtCanvasModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtcanvas</Literal>
@@ -648,7 +648,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtExtModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtExtModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtext</Literal> module.
@@ -668,7 +668,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtGLModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtGLModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtgl</Literal> module.
@@ -688,7 +688,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtNetworkModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtNetworkModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtnetwork</Literal>
@@ -709,7 +709,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtTableModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtTableModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qttable</Literal>
@@ -730,7 +730,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtSQLModuleMakefile(QtTableModuleMakefile)</Literal></Term>
+<Term><Literal>TQtSQLModuleMakefile(TQtTableModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtsql</Literal> module.
@@ -750,7 +750,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtUIModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtUIModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtui</Literal> module.
@@ -770,7 +770,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtXMLModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtXMLModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtxml</Literal> module.
@@ -794,15 +794,15 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
<Sect1><Title>Things to be Aware Of</Title>
<Sect2><Title>super and Wrapped Classes</Title>
<Para>
-Internally PyQt implements a lazy technique for attribute lookup where
+Internally PyTQt implements a lazy technique for attribute lookup where
attributes are only placed in type and instance dictionaries when they are
first referenced. This technique is needed to reduce the time taken to import
-large modules such as PyQt.
+large modules such as PyTQt.
</Para>
<Para>
In most circumstances this technique is transparent to an application. The
-exception is when <Literal>super</Literal> is used with a PyQt class. The way
+exception is when <Literal>super</Literal> is used with a PyTQt class. The way
that <Literal>super</Literal> is currently implemented means that the lazy
lookup is bypassed resulting in <Literal>AttributeError</Literal> exceptions
unless the attribute has been previously referenced.
@@ -810,49 +810,49 @@ unless the attribute has been previously referenced.
<Para>
Note that this restriction applies to any class wrapped by SIP and not just
-PyQt.
+PyTQt.
</Para>
</Sect2>
-<Sect2><Title>Python Strings, Qt Strings and Unicode</Title>
+<Sect2><Title>Python Strings, TQt Strings and Unicode</Title>
<Para>
-Unicode support was added to Qt in v2.0 and to Python in v1.6. In Qt, Unicode
-support is implemented using the <Literal>QString</Literal> class. It is
-important to understand that <Literal>QString</Literal>s, Python string objects
+Unicode support was added to TQt in v2.0 and to Python in v1.6. In TQt, Unicode
+support is implemented using the <Literal>TQString</Literal> class. It is
+important to understand that <Literal>TQString</Literal>s, Python string objects
and Python Unicode objects are all different but conversions between them are
automatic in almost all cases and easy to achieve manually when needed.
</Para>
<Para>
-Whenever PyQt expects a <Literal>QString</Literal> as a function argument, a
+Whenever PyTQt expects a <Literal>TQString</Literal> as a function argument, a
Python string object or a Python Unicode object can be provided instead, and
-PyQt will do the necessary conversion automatically.
+PyTQt will do the necessary conversion automatically.
</Para>
<Para>
You may also manually convert Python string and Unicode objects to
-<Literal>QString</Literal>s by using the <Literal>QString</Literal> constructor
+<Literal>TQString</Literal>s by using the <Literal>TQString</Literal> constructor
as demonstrated in the following code fragment.
</Para>
<ProgramListing>
-qs1 = QString('Converted Python string object')
-qs2 = QString(u'Converted Python Unicode object')
+qs1 = TQString('Converted Python string object')
+qs2 = TQString(u'Converted Python Unicode object')
</ProgramListing>
<Para>
-In order to convert a <Literal>QString</Literal> to a Python string object use
+In order to convert a <Literal>TQString</Literal> to a Python string object use
the Python <Literal>str()</Literal> function. Applying
-<Literal>str()</Literal> to a null <Literal>QString</Literal> and an empty
-<Literal>QString</Literal> both result in an empty Python string object.
+<Literal>str()</Literal> to a null <Literal>TQString</Literal> and an empty
+<Literal>TQString</Literal> both result in an empty Python string object.
</Para>
<Para>
-In order to convert a <Literal>QString</Literal> to a Python Unicode object use
+In order to convert a <Literal>TQString</Literal> to a Python Unicode object use
the Python <Literal>unicode()</Literal> function. Applying
-<Literal>unicode()</Literal> to a null <Literal>QString</Literal> and an empty
-<Literal>QString</Literal> both result in an empty Python Unicode object.
+<Literal>unicode()</Literal> to a null <Literal>TQString</Literal> and an empty
+<Literal>TQString</Literal> both result in an empty Python Unicode object.
</Para>
</Sect2>
@@ -881,7 +881,7 @@ whenever it is returned by the underlying C++ code.
<Sect2><Title>Support for C++ <Literal>void *</Literal> Data Types</Title>
<Para>
-PyQt represents <Literal>void *</Literal> values as objects of type
+PyTQt represents <Literal>void *</Literal> values as objects of type
<Literal>sip.voidptr</Literal>. Such values are often used to pass the
addresses of external objects between different Python modules. To make this
easier, a Python integer (or anything that Python can convert to an integer)
@@ -901,11 +901,11 @@ method takes an integer argument which is the length of the data in bytes.
<Sect2><Title>Support for Threads</Title>
<Para>
-PyQt implements the full set of Qt's thread classes. Python, of course, also
+PyTQt implements the full set of TQt's thread classes. Python, of course, also
has its own thread extension modules. If you are using SIP v4 (or later) and
-Python v2.3.5 (or later) then PyQt does not impose any additional restrictions.
-(Read the relevant part of the Qt documentation to understand the restrictions
-imposed by the Qt API.)
+Python v2.3.5 (or later) then PyTQt does not impose any additional restrictions.
+(Read the relevant part of the TQt documentation to understand the restrictions
+imposed by the TQt API.)
</Para>
<Para>
If you are using earlier versions of either SIP or Python then it is possible
@@ -914,27 +914,27 @@ to use either of the APIs so long as you follow some simple rules.
<ItemizedList>
<ListItem>
<Para>
-If you use the Qt API then the very first <Literal>import</Literal> of one of
-the PyQt modules must be done from the main thread.
+If you use the TQt API then the very first <Literal>import</Literal> of one of
+the PyTQt modules must be done from the main thread.
</Para>
</ListItem>
<ListItem>
<Para>
-If you use the Python API then all calls to PyQt (including any
+If you use the Python API then all calls to PyTQt (including any
<Literal>import</Literal>s) must be done from one thread only. Therefore, if
-you want to make calls to PyQt from several threads then you must use the Qt
+you want to make calls to PyTQt from several threads then you must use the TQt
API.
</Para>
</ListItem>
<ListItem>
<Para>
-If you want to use both APIs in the same application then all calls to PyQt
-must be done from threads created using the Qt API.
+If you want to use both APIs in the same application then all calls to PyTQt
+must be done from threads created using the TQt API.
</Para>
</ListItem>
</ItemizedList>
<Para>
-The above comments actually apply to any SIP generated module, not just PyQt.
+The above comments actually apply to any SIP generated module, not just PyTQt.
</Para>
</Sect2>
@@ -946,8 +946,8 @@ longer be referenced from within the program:
</Para>
<ProgramListing>
-c = new QColor();
-c = new QColor();
+c = new TQColor();
+c = new TQColor();
</ProgramListing>
<Para>
@@ -956,8 +956,8 @@ the second is assigned to <Literal>c</Literal>:
</Para>
<ProgramListing>
-c = QColor()
-c = QColor()
+c = TQColor()
+c = TQColor()
</ProgramListing>
<Para>
@@ -966,29 +966,29 @@ is done within class definitions, so the code fragment would be something like:
</Para>
<ProgramListing>
-self.c1 = QColor()
-self.c2 = QColor()
+self.c1 = TQColor()
+self.c2 = TQColor()
</ProgramListing>
<Para>
-Sometimes a Qt class instance will maintain a pointer to another instance and
+Sometimes a TQt class instance will maintain a pointer to another instance and
will eventually call the destructor of that second instance. The most common
-example is that a <Literal>QObject</Literal> (and any of its sub-classes) keeps
+example is that a <Literal>TQObject</Literal> (and any of its sub-classes) keeps
pointers to its children and will automatically call their destructors. In
these cases, the corresponding Python object will also keep a reference to the
corresponding child objects.
</Para>
<Para>
-So, in the following Python fragment, the first <Literal>QLabel</Literal> is
+So, in the following Python fragment, the first <Literal>TQLabel</Literal> is
not destroyed when the second is assigned to <Literal>l</Literal> because the
-parent <Literal>QWidget</Literal> still has a reference to it.
+parent <Literal>TQWidget</Literal> still has a reference to it.
</Para>
<ProgramListing>
-p = QWidget()
-l = QLabel('First label',p)
-l = QLabel('Second label',p)
+p = TQWidget()
+l = TQLabel('First label',p)
+l = TQLabel('Second label',p)
</ProgramListing>
</Sect2>
@@ -999,9 +999,9 @@ variables. For example:
</Para>
<ProgramListing>
-tab = QTab()
+tab = TQTab()
tab.label = "First Tab"
-tab.r = QRect(10,10,75,30)
+tab.r = TQRect(10,10,75,30)
</ProgramListing>
<Para>
@@ -1019,39 +1019,39 @@ the future.
<Sect2><Title>Multiple Inheritance</Title>
<Para>
It is not possible to define a new Python class that sub-classes from more than
-one Qt class.
+one TQt class.
</Para>
</Sect2>
<Sect2><Title>i18n Support</Title>
<Para>
-Qt implements i18n support through the Qt Linguist application, the
-<Literal>QTranslator</Literal> class, and the
-<Literal>QApplication::translate()</Literal>, <Literal>QObject::tr()</Literal>
-and <Literal>QObject::trUtf8()</Literal> methods. Usually the
+TQt implements i18n support through the TQt Linguist application, the
+<Literal>TQTranslator</Literal> class, and the
+<Literal>TQApplication::translate()</Literal>, <Literal>TQObject::tr()</Literal>
+and <Literal>TQObject::trUtf8()</Literal> methods. Usually the
<Literal>tr()</Literal> method is used to obtain the correct translation of a
message. The translation process uses a message context to allow the same
message to be translated differently. <Literal>tr()</Literal> is actually
generated by <Literal>moc</Literal> and uses the hardcoded class name as the
-context. On the other hand, <Literal>QApplication::translate()</Literal>
+context. On the other hand, <Literal>TQApplication::translate()</Literal>
allows to context to be explicitly stated.
</Para>
<Para>
-Unfortunately, because of the way Qt implents <Literal>tr()</Literal> (and
-<Literal>trUtf8()</Literal>) it is not possible for PyQt to exactly reproduce
-its behavour. The PyQt implementation of <Literal>tr()</Literal> (and
+Unfortunately, because of the way TQt implents <Literal>tr()</Literal> (and
+<Literal>trUtf8()</Literal>) it is not possible for PyTQt to exactly reproduce
+its behavour. The PyTQt implementation of <Literal>tr()</Literal> (and
<Literal>trUtf8()</Literal>) uses the class name of the instance as the
context. The key difference, and the source of potential problems, is that the
-context is determined dynamically in PyQt, but is hardcoded in Qt. In other
+context is determined dynamically in PyTQt, but is hardcoded in TQt. In other
words, the context of a translation may change depending on an instance's class
hierarchy.
</Para>
<ProgramListing>
-class A(QObject):
+class A(TQObject):
def __init__(self):
- QObject.__init__(self)
+ TQObject.__init__(self)
def hello(self):
return self.tr("Hello")
@@ -1075,19 +1075,19 @@ would be <Literal>A</Literal> in both cases.
</Para>
<Para>
-The PyQt behaviour is unsatisfactory and may be changed in the future. It is
-recommended that <Literal>QApplication.translate()</Literal> be used in
+The PyTQt behaviour is unsatisfactory and may be changed in the future. It is
+recommended that <Literal>TQApplication.translate()</Literal> be used in
preference to <Literal>tr()</Literal> (and <Literal>trUtf8()</Literal>). This
-is guaranteed to work with current and future versions of PyQt and makes it
+is guaranteed to work with current and future versions of PyTQt and makes it
much easier to share message files between Python and C++ code. Below is the
alternative implementation of <Literal>A</Literal> that uses
-<Literal>QApplication.translate()</Literal>.
+<Literal>TQApplication.translate()</Literal>.
</Para>
<ProgramListing>
-class A(QObject):
+class A(TQObject):
def __init__(self):
- QObject.__init__(self)
+ TQObject.__init__(self)
def hello(self):
return qApp.translate("A","Hello")
@@ -1095,7 +1095,7 @@ class A(QObject):
<Para>
Note that the code generated by <Literal>pyuic</Literal> uses
-<Literal>QApplication.translate()</Literal>.
+<Literal>TQApplication.translate()</Literal>.
</Para>
</Sect2>
</Sect1>
@@ -1103,15 +1103,15 @@ Note that the code generated by <Literal>pyuic</Literal> uses
<Sect1><Title>Signal and Slot Support</Title>
<Para>
-A signal may be either a Qt signal (specified using
+A signal may be either a TQt signal (specified using
<Literal>SIGNAL()</Literal>) or a Python signal (specified using
<Literal>PYSIGNAL()</Literal>).
</Para>
<Para>
-A slot can be either a Python callable object, a Qt signal (specified using
+A slot can be either a Python callable object, a TQt signal (specified using
<Literal>SIGNAL()</Literal>), a Python signal (specified using
-<Literal>PYSIGNAL()</Literal>), or a Qt slot (specified using
+<Literal>PYSIGNAL()</Literal>), or a TQt slot (specified using
<Literal>SLOT()</Literal>).
</Para>
@@ -1121,28 +1121,28 @@ example:
</Para>
<ProgramListing>
-QObject.connect(a,SIGNAL("QtSig()"),pyFunction)
-QObject.connect(a,SIGNAL("QtSig()"),pyClass.pyMethod)
-QObject.connect(a,SIGNAL("QtSig()"),PYSIGNAL("PySig"))
-QObject.connect(a,SIGNAL("QtSig()"),SLOT("QtSlot()"))
-QObject.connect(a,PYSIGNAL("PySig"),pyFunction)
-QObject.connect(a,PYSIGNAL("PySig"),pyClass.pyMethod)
-QObject.connect(a,PYSIGNAL("PySig"),SIGNAL("QtSig()"))
-QObject.connect(a,PYSIGNAL("PySig"),SLOT("QtSlot()"))
+TQObject.connect(a,SIGNAL("TQtSig()"),pyFunction)
+TQObject.connect(a,SIGNAL("TQtSig()"),pyClass.pyMethod)
+TQObject.connect(a,SIGNAL("TQtSig()"),PYSIGNAL("PySig"))
+TQObject.connect(a,SIGNAL("TQtSig()"),SLOT("TQtSlot()"))
+TQObject.connect(a,PYSIGNAL("PySig"),pyFunction)
+TQObject.connect(a,PYSIGNAL("PySig"),pyClass.pyMethod)
+TQObject.connect(a,PYSIGNAL("PySig"),SIGNAL("TQtSig()"))
+TQObject.connect(a,PYSIGNAL("PySig"),SLOT("TQtSlot()"))
</ProgramListing>
<Para>
-When a slot is a Python method that corresponds to a Qt slot then a signal can
-be connected to either the Python method or the Qt slot. The following
+When a slot is a Python method that corresponds to a TQt slot then a signal can
+be connected to either the Python method or the TQt slot. The following
connections achieve the same effect.
</Para>
<ProgramListing>
-sbar = QScrollBar()
-lcd = QLCDNumber()
+sbar = TQScrollBar()
+lcd = TQLCDNumber()
-QObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd.display)
-QObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))
+TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd.display)
+TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))
</ProgramListing>
<Para>
@@ -1155,9 +1155,9 @@ Disconnecting signals works in exactly the same way.
</Para>
<Para>
-Any instance of a class that is derived from the <Literal>QObject</Literal>
+Any instance of a class that is derived from the <Literal>TQObject</Literal>
class can emit a signal using the <Literal>emit</Literal> method. This takes
-two arguments. The first is the Python or Qt signal, the second is a Python
+two arguments. The first is the Python or TQt signal, the second is a Python
tuple which are the arguments to the signal. For example:
</Para>
@@ -1176,8 +1176,8 @@ garbage collected.
</Para>
<Para>
-Qt allows a signal to be connected to a slot that requires fewer arguments than
-the signal passes. The extra arguments are quietly discarded. Python slots
+TQt allows a signal to be connected to a slot that retquires fewer arguments than
+the signal passes. The extra arguments are tquietly discarded. Python slots
can be used in the same way.
</Para>
</Sect1>
@@ -1187,9 +1187,9 @@ can be used in the same way.
<Para>
Static member functions are implemented as Python class functions.
For example the C++ static member function
-<Literal>QObject::connect()</Literal> is called from Python as
-<Literal>QObject.connect()</Literal> or <Literal>self.connect()</Literal> if
-called from a sub-class of <Literal>QObject</Literal>.
+<Literal>TQObject::connect()</Literal> is called from Python as
+<Literal>TQObject.connect()</Literal> or <Literal>self.connect()</Literal> if
+called from a sub-class of <Literal>TQObject</Literal>.
</Para>
</Sect1>
@@ -1206,9 +1206,9 @@ the enumerated type was defined in must be included. For example:
</Para>
<ProgramListing>
-Qt.SolidPattern
-QWidget.TabFocus
-QFrame.TabFocus
+TQt.SolidPattern
+TQWidget.TabFocus
+TQFrame.TabFocus
</ProgramListing>
</Sect1>
@@ -1244,63 +1244,63 @@ Classes that are not mentioned have not yet been implemented.
<Sect1><Title><Literal>qt</Literal> Module Reference</Title>
-<Sect2><Title>Qt Constants</Title>
+<Sect2><Title>TQt Constants</Title>
<Para>
-All constant values defined by Qt have equivalent constants defined to Python.
+All constant values defined by TQt have equivalent constants defined to Python.
</Para>
</Sect2>
-<Sect2><Title>Qt (Qt v2+)</Title>
+<Sect2><Title>TQt (TQt v2+)</Title>
<Para>
-<Literal>Qt</Literal> is fully implemented.
+<Literal>TQt</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QAccel</Title>
+<Sect2><Title>TQAccel</Title>
<Para>
-<Literal>QAccel</Literal> is fully implemented.
+<Literal>TQAccel</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QAction (Qt v2.2+)</Title>
+<Sect2><Title>TQAction (TQt v2.2+)</Title>
<Para>
-<Literal>QAction</Literal> is fully implemented.
+<Literal>TQAction</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QActionGroup (Qt v2.2+)</Title>
+<Sect2><Title>TQActionGroup (TQt v2.2+)</Title>
<Para>
-<Literal>QActionGroup</Literal> is fully implemented.
+<Literal>TQActionGroup</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QApplication</Title>
+<Sect2><Title>TQApplication</Title>
<FuncSynopsis>
- <FuncDef><Function>QApplication</Function></FuncDef>
+ <FuncDef><Function>TQApplication</Function></FuncDef>
<ParamDef>int &amp;<Parameter>argc</Parameter></ParamDef>
<ParamDef>char **<Parameter>argv</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes one parameter which is a list of argument strings. Arguments
-used by Qt are removed from the list.
+used by TQt are removed from the list.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QApplication</Function></FuncDef>
+ <FuncDef><Function>TQApplication</Function></FuncDef>
<ParamDef>int &amp;<Parameter>argc</Parameter></ParamDef>
<ParamDef>char **<Parameter>argv</Parameter></ParamDef>
<ParamDef>bool <Parameter>GUIenabled</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes two parameters, the first of which is a list of argument strings.
-Arguments used by Qt are removed from the list.
+Arguments used by TQt are removed from the list.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QApplication</Function></FuncDef>
+ <FuncDef><Function>TQApplication</Function></FuncDef>
<ParamDef>int &amp;<Parameter>argc</Parameter></ParamDef>
<ParamDef>char **<Parameter>argv</Parameter></ParamDef>
<ParamDef>Type <Parameter>type</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes two parameters, the first of which is a list of argument strings.
-Arguments used by Qt are removed from the list. (Qt v2.2+)
+Arguments used by TQt are removed from the list. (TQt v2.2+)
</Para>
<FuncSynopsis>
@@ -1311,41 +1311,41 @@ Arguments used by Qt are removed from the list. (Qt v2.2+)
This has been renamed to <Literal>exec_loop</Literal> in Python.
</Para>
</Sect2>
-<Sect2><Title>QAssistantClient (Qt v3.1+)</Title>
+<Sect2><Title>TQAssistantClient (TQt v3.1+)</Title>
<Para>
-<Literal>QAssistantClient</Literal> is fully implemented.
+<Literal>TQAssistantClient</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QBitmap</Title>
+<Sect2><Title>TQBitmap</Title>
<Para>
-<Literal>QBitmap</Literal> is fully implemented.
+<Literal>TQBitmap</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QBrush</Title>
+<Sect2><Title>TQBrush</Title>
<Para>
-<Literal>QBrush</Literal> is fully implemented, including the Python
+<Literal>TQBrush</Literal> is fully implemented, including the Python
<Literal>==</Literal> and <Literal>!=</Literal> operators.
</Para>
</Sect2>
-<Sect2><Title>QButton</Title>
+<Sect2><Title>TQButton</Title>
<Para>
-<Literal>QButton</Literal> is fully implemented.
+<Literal>TQButton</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QButtonGroup</Title>
+<Sect2><Title>TQButtonGroup</Title>
<Para>
-<Literal>QButtonGroup</Literal> is fully implemented.
+<Literal>TQButtonGroup</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QByteArray</Title>
+<Sect2><Title>TQByteArray</Title>
<Para>
-A Python string can be used whenever a <Literal>QByteArray</Literal> can be
-used. A <Literal>QByteArray</Literal> can be converted to a Python string
+A Python string can be used whenever a <Literal>TQByteArray</Literal> can be
+used. A <Literal>TQByteArray</Literal> can be converted to a Python string
using the Python <Literal>str()</Literal> function.
</Para>
<FuncSynopsis>
- <FuncDef>QByteArray &<Function>assign</Function></FuncDef>
+ <FuncDef>TQByteArray &<Function>assign</Function></FuncDef>
<ParamDef>const char *<Parameter>data</Parameter></ParamDef>
<ParamDef>uint <Parameter>size</Parameter></ParamDef>
</FuncSynopsis>
@@ -1397,7 +1397,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QByteArray &<Function>setRawData</Function></FuncDef>
+ <FuncDef>TQByteArray &<Function>setRawData</Function></FuncDef>
<ParamDef>const char *<Parameter>data</Parameter></ParamDef>
<ParamDef>uint<Parameter>size</Parameter></ParamDef>
</FuncSynopsis>
@@ -1405,23 +1405,23 @@ Not implemented.
Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QCDEStyle (Qt v2+)</Title>
+<Sect2><Title>TQCDEStyle (TQt v2+)</Title>
<Para>
-<Literal>QCDEStyle</Literal> is fully implemented.
+<Literal>TQCDEStyle</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCheckBox</Title>
+<Sect2><Title>TQCheckBox</Title>
<Para>
-<Literal>QCheckBox</Literal> is fully implemented.
+<Literal>TQCheckBox</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QClipboard</Title>
+<Sect2><Title>TQClipboard</Title>
<FuncSynopsis>
<FuncDef>void *<Function>data</Function> const</FuncDef>
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented (Qt v1.x).
+Not yet implemented (TQt v1.x).
</Para>
<FuncSynopsis>
@@ -1430,10 +1430,10 @@ Not yet implemented (Qt v1.x).
<ParamDef>void *<Parameter></Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented (Qt v1.x).
+Not yet implemented (TQt v1.x).
</Para>
</Sect2>
-<Sect2><Title>QColor</Title>
+<Sect2><Title>TQColor</Title>
<Para>
The Python <Literal>==</Literal> and <Literal>!=</Literal> operators are
supported.
@@ -1483,31 +1483,31 @@ This takes no parameters and returns the <Literal>r</Literal>,
<Literal>g</Literal> and <Literal>b</Literal> values as a tuple.
</Para>
</Sect2>
-<Sect2><Title>QColorDialog (Qt v2+)</Title>
+<Sect2><Title>TQColorDialog (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef>static QRgb <Function>getRgba</Function></FuncDef>
- <ParamDef>QRgb <Parameter>initial</Parameter></ParamDef>
+ <FuncDef>static TQRgb <Function>getRgba</Function></FuncDef>
+ <ParamDef>TQRgb <Parameter>initial</Parameter></ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
This takes the <Literal>initial</Literal>, <Literal>parent</Literal> and
<Literal>name</Literal> parameters and returns a tuple containing the
-<Literal>QRgb</Literal> result and the <Literal>ok</Literal> value.
+<Literal>TQRgb</Literal> result and the <Literal>ok</Literal> value.
</Para>
</Sect2>
-<Sect2><Title>QColorGroup</Title>
+<Sect2><Title>TQColorGroup</Title>
<Para>
-<Literal>QColorGroup</Literal> is fully implemented.
+<Literal>TQColorGroup</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QComboBox</Title>
+<Sect2><Title>TQComboBox</Title>
<Para>
-<Literal>QComboBox</Literal> is fully implemented.
+<Literal>TQComboBox</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCommonStyle (Qt v2+)</Title>
+<Sect2><Title>TQCommonStyle (TQt v2+)</Title>
<FuncSynopsis>
<FuncDef>virtual void <Function>getButtonShift</Function></FuncDef>
<ParamDef>int &amp;<Parameter>x</Parameter></ParamDef>
@@ -1515,12 +1515,12 @@ This takes the <Literal>initial</Literal>, <Literal>parent</Literal> and
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>x</Literal> and
-<Literal>y</Literal> values. (Qt v2)
+<Literal>y</Literal> values. (TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>virtual void <Function>tabbarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>t</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>hframe</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>vframe</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>overlap</Parameter></ParamDef>
@@ -1528,18 +1528,18 @@ This takes no parameters and returns a tuple of the <Literal>x</Literal> and
<Para>
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
-<Literal>overlap</Literal> values. (Qt v2)
+<Literal>overlap</Literal> values. (TQt v2)
</Para>
</Sect2>
-<Sect2><Title>QCString (Qt v2+)</Title>
+<Sect2><Title>TQCString (TQt v2+)</Title>
<Para>
-A Python string can be used whenever a <Literal>QCString</Literal> can be used.
-A <Literal>QCString</Literal> can be converted to a Python string using the
+A Python string can be used whenever a <Literal>TQCString</Literal> can be used.
+A <Literal>TQCString</Literal> can be converted to a Python string using the
Python <Literal>str()</Literal> function.
</Para>
<FuncSynopsis>
- <FuncDef>QCString &amp;<Function>sprintf</Function></FuncDef>
+ <FuncDef>TQCString &amp;<Function>sprintf</Function></FuncDef>
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
<ParamDef>...</ParamDef>
</FuncSynopsis>
@@ -1619,35 +1619,35 @@ This returns a tuple of the <Literal>double</Literal> result and the
<Literal>ok</Literal> value.
</Para>
</Sect2>
-<Sect2><Title>QCursor</Title>
+<Sect2><Title>TQCursor</Title>
<Para>
-<Literal>QCursor</Literal> is fully implemented.
+<Literal>TQCursor</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDataStream</Title>
+<Sect2><Title>TQDataStream</Title>
<FuncSynopsis>
- <FuncDef>QDataStream &amp;<Function>readBytes</Function></FuncDef>
+ <FuncDef>TQDataStream &amp;<Function>readBytes</Function></FuncDef>
<ParamDef>const char *&amp;<Parameter>s</Parameter></ParamDef>
<ParamDef>uint &amp;<Parameter>l</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-This takes no parameters. The <Literal>QDataStream</Literal> result and the
+This takes no parameters. The <Literal>TQDataStream</Literal> result and the
data read are returned as a tuple.
</Para>
<FuncSynopsis>
- <FuncDef>QDataStream &amp;<Function>readRawBytes</Function></FuncDef>
+ <FuncDef>TQDataStream &amp;<Function>readRawBytes</Function></FuncDef>
<ParamDef>const char *<Parameter>s</Parameter></ParamDef>
<ParamDef>uint <Parameter>l</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes only the <Literal>l</Literal> parameter. The
-<Literal>QDataStream</Literal> result and the data read are returned as a
+<Literal>TQDataStream</Literal> result and the data read are returned as a
tuple.
</Para>
<FuncSynopsis>
- <FuncDef>QDataStream &amp;<Function>writeBytes</Function></FuncDef>
+ <FuncDef>TQDataStream &amp;<Function>writeBytes</Function></FuncDef>
<ParamDef>const char *<Parameter>s</Parameter></ParamDef>
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
</FuncSynopsis>
@@ -1657,7 +1657,7 @@ parameter.
</Para>
<FuncSynopsis>
- <FuncDef>QDataStream &amp;<Function>writeRawBytes</Function></FuncDef>
+ <FuncDef>TQDataStream &amp;<Function>writeRawBytes</Function></FuncDef>
<ParamDef>const char *<Parameter>s</Parameter></ParamDef>
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
</FuncSynopsis>
@@ -1666,7 +1666,7 @@ parameter.
parameter.
</Para>
</Sect2>
-<Sect2><Title>QDate</Title>
+<Sect2><Title>TQDate</Title>
<Para>
The Python
<Literal>==</Literal>, <Literal>!=</Literal>,
@@ -1682,13 +1682,13 @@ operators are supported.
</FuncSynopsis>
<Para>
This takes no parameters and returns the week number and the year number as a
-tuple. (Qt v3.1+)
+tuple. (TQt v3.1+)
</Para>
</Sect2>
-<Sect2><Title>QDateTime</Title>
+<Sect2><Title>TQDateTime</Title>
<Para>
-<Literal>QDateTime</Literal> is fully implemented, including the Python
+<Literal>TQDateTime</Literal> is fully implemented, including the Python
<Literal>==</Literal>, <Literal>!=</Literal>,
<Literal>&lt;</Literal>, <Literal>&lt;=</Literal>,
<Literal>&gt;</Literal>, <Literal>&gt;=</Literal>
@@ -1697,9 +1697,9 @@ operators.
</Para>
</Sect2>
-<Sect2><Title>QTime</Title>
+<Sect2><Title>TQTime</Title>
<Para>
-<Literal>QTime</Literal> is fully implemented, including the Python
+<Literal>TQTime</Literal> is fully implemented, including the Python
<Literal>==</Literal>, <Literal>!=</Literal>,
<Literal>&lt;</Literal>, <Literal>&lt;=</Literal>,
<Literal>&gt;</Literal>, <Literal>&gt;=</Literal>
@@ -1707,34 +1707,34 @@ and <Literal>__nonzero__</Literal>
operators.
</Para>
</Sect2>
-<Sect2><Title>QDateEdit (Qt v3+)</Title>
+<Sect2><Title>TQDateEdit (TQt v3+)</Title>
<Para>
-<Literal>QDateEdit</Literal> is fully implemented.
+<Literal>TQDateEdit</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTimeEdit (Qt v3+)</Title>
+<Sect2><Title>TQTimeEdit (TQt v3+)</Title>
<Para>
-<Literal>QTimeEdit</Literal> is fully implemented.
+<Literal>TQTimeEdit</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDateTimeEdit (Qt v3+)</Title>
+<Sect2><Title>TQDateTimeEdit (TQt v3+)</Title>
<Para>
-<Literal>QDateTimeEdit</Literal> is fully implemented.
+<Literal>TQDateTimeEdit</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDesktopWidget (Qt v3+)</Title>
+<Sect2><Title>TQDesktopWidget (TQt v3+)</Title>
<Para>
-<Literal>QDesktopWidget</Literal> is fully implemented.
+<Literal>TQDesktopWidget</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDial (Qt v2.2+)</Title>
+<Sect2><Title>TQDial (TQt v2.2+)</Title>
<Para>
-<Literal>QDial</Literal> is fully implemented.
+<Literal>TQDial</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDialog</Title>
+<Sect2><Title>TQDialog</Title>
<FuncSynopsis>
<FuncDef>int <Function>exec</Function></FuncDef>
<ParamDef></ParamDef>
@@ -1747,235 +1747,235 @@ This method also causes ownership of the underlying C++ dialog to be transfered
to Python. This means that the C++ dialog will be deleted when the Python
wrapper is garbage collected. Although this is a little inconsistent, it
ensures that the dialog is deleted without having to explicity code it using
-<Literal>QObject.deleteLater()</Literal> or other techniques.
+<Literal>TQObject.deleteLater()</Literal> or other techniques.
</Para>
</Sect2>
-<Sect2><Title>QDir</Title>
+<Sect2><Title>TQDir</Title>
<Para>
-<Literal>QDir</Literal> is fully implemented, including the Python
+<Literal>TQDir</Literal> is fully implemented, including the Python
<Literal>len</Literal>, <Literal>[]</Literal> (for reading slices and
individual elements), <Literal>==</Literal>, <Literal>!=</Literal> and
<Literal>in</Literal> operators
</Para>
</Sect2>
-<Sect2><Title>QFileInfoList</Title>
+<Sect2><Title>TQFileInfoList</Title>
<Para>
-This class isn't implemented. Whenever a <Literal>QFileInfoList</Literal> is
+This class isn't implemented. Whenever a <Literal>TQFileInfoList</Literal> is
the return type of a function or the type of an argument, a Python list of
-<Literal>QFileInfo</Literal> instances is used instead.
+<Literal>TQFileInfo</Literal> instances is used instead.
</Para>
</Sect2>
-<Sect2><Title>QDockArea (Qt v3+)</Title>
+<Sect2><Title>TQDockArea (TQt v3+)</Title>
<FuncSynopsis>
<FuncDef>bool <Function>hasDockWindow</Function> const</FuncDef>
- <ParamDef>QDockWindow *<Parameter>w</Parameter></ParamDef>
+ <ParamDef>TQDockWindow *<Parameter>w</Parameter></ParamDef>
<ParamDef>int *<Parameter>index</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
This takes the <Literal>w</Literal> parameter and returns the index of the
-QDockWIndow or -1 if the QDockArea does not contain the QDockWindow.
+TQDockWIndow or -1 if the TQDockArea does not contain the TQDockWindow.
</Para>
</Sect2>
-<Sect2><Title>QDockWindow (Qt v3+)</Title>
+<Sect2><Title>TQDockWindow (TQt v3+)</Title>
<Para>
-<Literal>QDockWindow</Literal> is fully implemented.
+<Literal>TQDockWindow</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QColorDrag (Qt v2.1+)</Title>
+<Sect2><Title>TQColorDrag (TQt v2.1+)</Title>
<Para>
-<Literal>QColorDrag</Literal> is fully implemented.
+<Literal>TQColorDrag</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDragObject</Title>
+<Sect2><Title>TQDragObject</Title>
<Para>
-<Literal>QDragObject</Literal> is fully implemented.
+<Literal>TQDragObject</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QImageDrag</Title>
+<Sect2><Title>TQImageDrag</Title>
<Para>
-<Literal>QImageDrag</Literal> is fully implemented.
+<Literal>TQImageDrag</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QStoredDrag</Title>
+<Sect2><Title>TQStoredDrag</Title>
<Para>
-<Literal>QStoredDrag</Literal> is fully implemented.
+<Literal>TQStoredDrag</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTextDrag</Title>
+<Sect2><Title>TQTextDrag</Title>
<Para>
-<Literal>QTextDrag</Literal> is fully implemented.
+<Literal>TQTextDrag</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QUriDrag (Qt v2+)</Title>
+<Sect2><Title>TQUriDrag (TQt v2+)</Title>
<Para>
-<Literal>QUriDrag</Literal> is fully implemented.
+<Literal>TQUriDrag</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QUrlDrag (Qt v1.x)</Title>
+<Sect2><Title>TQUrlDrag (TQt v1.x)</Title>
<Para>
-<Literal>QUrlDrag</Literal> is fully implemented.
+<Literal>TQUrlDrag</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDropSite</Title>
+<Sect2><Title>TQDropSite</Title>
<Para>
-<Literal>QDropSite</Literal> is fully implemented.
+<Literal>TQDropSite</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QErrorMessage (Qt v3+)</Title>
+<Sect2><Title>TQErrorMessage (TQt v3+)</Title>
<Para>
-<Literal>QErrorMessage</Literal> is fully implemented.
+<Literal>TQErrorMessage</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QEvent</Title>
+<Sect2><Title>TQEvent</Title>
<Para>
-<Literal>QEvent</Literal> is fully implemented.
+<Literal>TQEvent</Literal> is fully implemented.
</Para>
<Para>
-Instances of <Literal>QEvent</Literal>s are automatically converted to the
+Instances of <Literal>TQEvent</Literal>s are automatically converted to the
correct sub-class.
</Para>
</Sect2>
-<Sect2><Title>QChildEvent</Title>
+<Sect2><Title>TQChildEvent</Title>
<Para>
-<Literal>QChildEvent</Literal> is fully implemented.
+<Literal>TQChildEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCloseEvent</Title>
+<Sect2><Title>TQCloseEvent</Title>
<Para>
-<Literal>QCloseEvent</Literal> is fully implemented.
+<Literal>TQCloseEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIconDragEvent (Qt v3.3+)</Title>
+<Sect2><Title>TQIconDragEvent (TQt v3.3+)</Title>
<Para>
-<Literal>QIconDragEvent</Literal> is fully implemented.
+<Literal>TQIconDragEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QContextMenuEvent (Qt v3+)</Title>
+<Sect2><Title>TQContextMenuEvent (TQt v3+)</Title>
<Para>
-<Literal>QContextMenuEvent</Literal> is fully implemented.
+<Literal>TQContextMenuEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCustomEvent</Title>
+<Sect2><Title>TQCustomEvent</Title>
<Para>
-<Literal>QCustomEvent</Literal> is fully implemented. Any Python object can be
+<Literal>TQCustomEvent</Literal> is fully implemented. Any Python object can be
passed as the event data and its reference count is increased.
</Para>
</Sect2>
-<Sect2><Title>QDragEnterEvent</Title>
+<Sect2><Title>TQDragEnterEvent</Title>
<Para>
-<Literal>QDragEnterEvent</Literal> is fully implemented.
+<Literal>TQDragEnterEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDragLeaveEvent</Title>
+<Sect2><Title>TQDragLeaveEvent</Title>
<Para>
-<Literal>QDragLeaveEvent</Literal> is fully implemented.
+<Literal>TQDragLeaveEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDragMoveEvent</Title>
+<Sect2><Title>TQDragMoveEvent</Title>
<Para>
-<Literal>QDragMoveEvent</Literal> is fully implemented.
+<Literal>TQDragMoveEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDropEvent</Title>
+<Sect2><Title>TQDropEvent</Title>
<Para>
-<Literal>QDropEvent</Literal> is fully implemented.
+<Literal>TQDropEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QFocusEvent</Title>
+<Sect2><Title>TQFocusEvent</Title>
<Para>
-<Literal>QFocusEvent</Literal> is fully implemented.
+<Literal>TQFocusEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QHideEvent</Title>
+<Sect2><Title>TQHideEvent</Title>
<Para>
-<Literal>QHideEvent</Literal> is fully implemented.
+<Literal>TQHideEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIMComposeEvent (Qt v3.1+)</Title>
+<Sect2><Title>TQIMComposeEvent (TQt v3.1+)</Title>
<Para>
-<Literal>QIMComposeEvent</Literal> is fully implemented.
+<Literal>TQIMComposeEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIMEvent (Qt v3+)</Title>
+<Sect2><Title>TQIMEvent (TQt v3+)</Title>
<Para>
-<Literal>QIMEvent</Literal> is fully implemented.
+<Literal>TQIMEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QKeyEvent</Title>
+<Sect2><Title>TQKeyEvent</Title>
<Para>
-<Literal>QKeyEvent</Literal> is fully implemented.
+<Literal>TQKeyEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMouseEvent</Title>
+<Sect2><Title>TQMouseEvent</Title>
<Para>
-<Literal>QMouseEvent</Literal> is fully implemented.
+<Literal>TQMouseEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMoveEvent</Title>
+<Sect2><Title>TQMoveEvent</Title>
<Para>
-<Literal>QMoveEvent</Literal> is fully implemented.
+<Literal>TQMoveEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QPaintEvent</Title>
+<Sect2><Title>TQPaintEvent</Title>
<Para>
-<Literal>QPaintEvent</Literal> is fully implemented.
+<Literal>TQPaintEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QResizeEvent</Title>
+<Sect2><Title>TQResizeEvent</Title>
<Para>
-<Literal>QResizeEvent</Literal> is fully implemented.
+<Literal>TQResizeEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QShowEvent</Title>
+<Sect2><Title>TQShowEvent</Title>
<Para>
-<Literal>QShowEvent</Literal> is fully implemented.
+<Literal>TQShowEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTabletEvent (Qt v3+)</Title>
+<Sect2><Title>TQTabletEvent (TQt v3+)</Title>
<Para>
-<Literal>QTabletEvent</Literal> is fully implemented.
+<Literal>TQTabletEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTimerEvent</Title>
+<Sect2><Title>TQTimerEvent</Title>
<Para>
-<Literal>QTimerEvent</Literal> is fully implemented.
+<Literal>TQTimerEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QWheelEvent (Qt v2+)</Title>
+<Sect2><Title>TQWheelEvent (TQt v2+)</Title>
<Para>
-<Literal>QWheelEvent</Literal> is fully implemented.
+<Literal>TQWheelEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QEventLoop (Qt v3.1+)</Title>
+<Sect2><Title>TQEventLoop (TQt v3.1+)</Title>
<FuncSynopsis>
<FuncDef>virtual int <Function>exec</Function></FuncDef>
<ParamDef></ParamDef>
@@ -1984,7 +1984,7 @@ passed as the event data and its reference count is increased.
This has been renamed to <Literal>exec_loop</Literal> in Python.
</Para>
</Sect2>
-<Sect2><Title>QFile</Title>
+<Sect2><Title>TQFile</Title>
<FuncSynopsis>
<FuncDef>bool <Function>open</Function></FuncDef>
<ParamDef>int <Parameter>m</Parameter></ParamDef>
@@ -2021,7 +2021,7 @@ This takes a single <Literal>maxlen</Literal> parameter. The
<ParamDef>EncoderFn <Parameter>f</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2+)
+Not yet implemented. (TQt v2+)
</Para>
<FuncSynopsis>
@@ -2029,7 +2029,7 @@ Not yet implemented. (Qt v2+)
<ParamDef>EncoderFn <Parameter>f</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2+)
+Not yet implemented. (TQt v2+)
</Para>
<FuncSynopsis>
@@ -2042,97 +2042,97 @@ Not yet implemented. (Qt v2+)
as a parameter.
</Para>
</Sect2>
-<Sect2><Title>QFileDialog</Title>
+<Sect2><Title>TQFileDialog</Title>
<Para>
-<Literal>QFileDialog</Literal> is fully implemented.
+<Literal>TQFileDialog</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QFileIconProvider</Title>
+<Sect2><Title>TQFileIconProvider</Title>
<Para>
-<Literal>QFileIconProvider</Literal> is fully implemented.
+<Literal>TQFileIconProvider</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QFilePreview</Title>
+<Sect2><Title>TQFilePreview</Title>
<Para>
-<Literal>QFilePreview</Literal> is fully implemented. However it cannot be
-used from Python in the same way as it is used from C++ because PyQt does not
+<Literal>TQFilePreview</Literal> is fully implemented. However it cannot be
+used from Python in the same way as it is used from C++ because PyTQt does not
support multiple inheritance involving more than one wrapped class. A trick
that seems to work is to use composition rather than inheritance as in the
following code fragment.
</Para>
<ProgramListing>
-class FilePreview(QFilePreview):
+class FilePreview(TQFilePreview):
pass
-class Preview(QLabel):
+class Preview(TQLabel):
def __init__(self, parent=None):
- QLabel.__init__(self, parent)
+ TQLabel.__init__(self, parent)
self.preview = FilePreview()
self.preview.previewUrl = self.previewUrl
</ProgramListing>
<Para>
-Note that QFilePreview cannot be instantiated directly because it is abstract.
+Note that TQFilePreview cannot be instantiated directly because it is abstract.
Thanks to Hans-Peter Jansen for this trick.
</Para>
</Sect2>
-<Sect2><Title>QFileInfo</Title>
+<Sect2><Title>TQFileInfo</Title>
<Para>
-<Literal>QFileInfo</Literal> is fully implemented.
+<Literal>TQFileInfo</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QFont</Title>
+<Sect2><Title>TQFont</Title>
<Para>
-<Literal>QFont</Literal> is fully implemented, including the Python
+<Literal>TQFont</Literal> is fully implemented, including the Python
<Literal>==</Literal> and <Literal>!=</Literal> operators.
</Para>
</Sect2>
-<Sect2><Title>QFontDatabase (Qt v2.1+)</Title>
+<Sect2><Title>TQFontDatabase (TQt v2.1+)</Title>
<Para>
-<Literal>QFontDatabase</Literal> is fully implemented.
+<Literal>TQFontDatabase</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QFontDialog (Qt v2+)</Title>
+<Sect2><Title>TQFontDialog (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef>static QFont <Function>getFont</Function></FuncDef>
+ <FuncDef>static TQFont <Function>getFont</Function></FuncDef>
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
- <ParamDef>const QFont &<Parameter>def</Parameter></ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>const TQFont &<Parameter>def</Parameter></ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
This takes the <Literal>def</Literal>, <Literal>parent</Literal> and
<Literal>name</Literal> parameters and returns a tuple containing the
-<Literal>QFont</Literal> result and the <Literal>ok</Literal> value.
+<Literal>TQFont</Literal> result and the <Literal>ok</Literal> value.
</Para>
<FuncSynopsis>
- <FuncDef>static QFont <Function>getFont</Function></FuncDef>
+ <FuncDef>static TQFont <Function>getFont</Function></FuncDef>
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
This takes the <Literal>parent</Literal> and <Literal>name</Literal> parameters
-and returns a tuple containing the <Literal>QFont</Literal> result and the
+and returns a tuple containing the <Literal>TQFont</Literal> result and the
<Literal>ok</Literal> value.
</Para>
</Sect2>
-<Sect2><Title>QFontInfo</Title>
+<Sect2><Title>TQFontInfo</Title>
<Para>
-<Literal>QFontInfo</Literal> is fully implemented.
+<Literal>TQFontInfo</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QFontMetrics</Title>
+<Sect2><Title>TQFontMetrics</Title>
<FuncSynopsis>
- <FuncDef>QRect <Function>boundingRect</Function></FuncDef>
+ <FuncDef>TQRect <Function>boundingRect</Function></FuncDef>
<ParamDef>int <Parameter>x</Parameter></ParamDef>
<ParamDef>int <Parameter>y</Parameter></ParamDef>
<ParamDef>int <Parameter>w</Parameter></ParamDef>
<ParamDef>int <Parameter>h</Parameter></ParamDef>
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>str</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>str</Parameter></ParamDef>
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
<ParamDef>int <Parameter>tabstops</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>tabarray</Parameter> = 0</ParamDef>
@@ -2142,9 +2142,9 @@ The <Literal>tabarray</Literal> parameter is a Python list of integers.
</Para>
<FuncSynopsis>
- <FuncDef>QSize <Function>size</Function></FuncDef>
+ <FuncDef>TQSize <Function>size</Function></FuncDef>
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>str</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>str</Parameter></ParamDef>
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
<ParamDef>int <Parameter>tabstops</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>tabarray</Parameter> = 0</ParamDef>
@@ -2153,72 +2153,72 @@ The <Literal>tabarray</Literal> parameter is a Python list of integers.
The <Literal>tabarray</Literal> parameter is a Python list of integers.
</Para>
</Sect2>
-<Sect2><Title>QFrame</Title>
+<Sect2><Title>TQFrame</Title>
<Para>
-<Literal>QFrame</Literal> is fully implemented.
+<Literal>TQFrame</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGManager (Qt v1.x)</Title>
+<Sect2><Title>TQGManager (TQt v1.x)</Title>
<Para>
-<Literal>QGManager</Literal> is fully implemented.
+<Literal>TQGManager</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QChain (Qt v1.x)</Title>
+<Sect2><Title>TQChain (TQt v1.x)</Title>
<Para>
-<Literal>QChain</Literal> is implemented as an opaque class.
+<Literal>TQChain</Literal> is implemented as an opaque class.
</Para>
</Sect2>
-<Sect2><Title>QGrid (Qt v2+)</Title>
+<Sect2><Title>TQGrid (TQt v2+)</Title>
<Para>
-<Literal>QGrid</Literal> is fully implemented.
+<Literal>TQGrid</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGridView (Qt v3+)</Title>
+<Sect2><Title>TQGridView (TQt v3+)</Title>
<Para>
-<Literal>QGridView</Literal> is fully implemented.
+<Literal>TQGridView</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGroupBox</Title>
+<Sect2><Title>TQGroupBox</Title>
<Para>
-<Literal>QGroupBox</Literal> is fully implemented.
+<Literal>TQGroupBox</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QHBox (Qt v2+)</Title>
+<Sect2><Title>TQHBox (TQt v2+)</Title>
<Para>
-<Literal>QHBox</Literal> is fully implemented.
+<Literal>TQHBox</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QHButtonGroup (Qt v2+)</Title>
+<Sect2><Title>TQHButtonGroup (TQt v2+)</Title>
<Para>
-<Literal>QHButtonGroup</Literal> is fully implemented.
+<Literal>TQHButtonGroup</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QHeader</Title>
+<Sect2><Title>TQHeader</Title>
<Para>
-<Literal>QHeader</Literal> is fully implemented.
+<Literal>TQHeader</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QHGroupBox (Qt v2+)</Title>
+<Sect2><Title>TQHGroupBox (TQt v2+)</Title>
<Para>
-<Literal>QHGroupBox</Literal> is fully implemented.
+<Literal>TQHGroupBox</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIconSet</Title>
+<Sect2><Title>TQIconSet</Title>
<Para>
-<Literal>QIconSet</Literal> is fully implemented.
+<Literal>TQIconSet</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIconFactory (Qt v3.1+)</Title>
+<Sect2><Title>TQIconFactory (TQt v3.1+)</Title>
<Para>
-<Literal>QIconFactory</Literal> is fully implemented.
+<Literal>TQIconFactory</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIconView (Qt v2.1+)</Title>
+<Sect2><Title>TQIconView (TQt v2.1+)</Title>
<FuncSynopsis>
- <FuncDef>QIconViewItem *<Function>makeRowLayout</Function></FuncDef>
- <ParamDef>QIconViewItem *<Parameter>begin</Parameter></ParamDef>
+ <FuncDef>TQIconViewItem *<Function>makeRowLayout</Function></FuncDef>
+ <ParamDef>TQIconViewItem *<Parameter>begin</Parameter></ParamDef>
<ParamDef>int &<Parameter>y</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -2226,31 +2226,31 @@ Not yet implemented.
</Para>
</Sect2>
-<Sect2><Title>QIconViewItem (Qt v2.1+)</Title>
+<Sect2><Title>TQIconViewItem (TQt v2.1+)</Title>
<Para>
-<Literal>QIconViewItem</Literal> is fully implemented.
+<Literal>TQIconViewItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIconDrag (Qt v2.1+)</Title>
+<Sect2><Title>TQIconDrag (TQt v2.1+)</Title>
<Para>
-<Literal>QIconDrag</Literal> is fully implemented.
+<Literal>TQIconDrag</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIconDragItem (Qt v2.1+)</Title>
+<Sect2><Title>TQIconDragItem (TQt v2.1+)</Title>
<Para>
-<Literal>QIconDragItem</Literal> is fully implemented.
+<Literal>TQIconDragItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QImage</Title>
+<Sect2><Title>TQImage</Title>
<Para>
The Python <Literal>==</Literal> and <Literal>!=</Literal> operators are
supported.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QImage</Function></FuncDef>
+ <FuncDef><Function>TQImage</Function></FuncDef>
<ParamDef>const char *<Parameter>xpm</Parameter>[]</ParamDef>
</FuncSynopsis>
<Para>
@@ -2258,18 +2258,18 @@ This takes a list of strings as its parameter.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QImage</Function></FuncDef>
+ <FuncDef><Function>TQImage</Function></FuncDef>
<ParamDef>uchar *<Parameter>data</Parameter></ParamDef>
<ParamDef>int <Parameter>w</Parameter></ParamDef>
<ParamDef>int <Parameter>h</Parameter></ParamDef>
<ParamDef>int <Parameter>depth</Parameter></ParamDef>
- <ParamDef>QRgb *<Parameter>colorTable</Parameter></ParamDef>
+ <ParamDef>TQRgb *<Parameter>colorTable</Parameter></ParamDef>
<ParamDef>int <Parameter>numColors</Parameter></ParamDef>
<ParamDef>Endian <Parameter>bitOrder</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-The <Literal>colorTable</Literal> parameter is a list of QRgb instances or
-None. (Qt v2.1+)
+The <Literal>colorTable</Literal> parameter is a list of TQRgb instances or
+None. (TQt v2.1+)
</Para>
<FuncSynopsis>
@@ -2282,7 +2282,7 @@ useful if passed to another Python module.
</Para>
<FuncSynopsis>
- <FuncDef>QRgb *<Function>colorTable</Function></FuncDef>
+ <FuncDef>TQRgb *<Function>colorTable</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -2291,9 +2291,9 @@ useful if passed to another Python module.
</Para>
<FuncSynopsis>
- <FuncDef>QImage <Function>convertDepthWithPalette</Function></FuncDef>
+ <FuncDef>TQImage <Function>convertDepthWithPalette</Function></FuncDef>
<ParamDef>int</ParamDef>
- <ParamDef>QRgb *<Parameter>p</Parameter></ParamDef>
+ <ParamDef>TQRgb *<Parameter>p</Parameter></ParamDef>
<ParamDef>int <Parameter>pc</Parameter></ParamDef>
<ParamDef>int <Parameter>cf</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -2332,7 +2332,7 @@ useful if passed to another Python module.
</Para>
</Sect2>
-<Sect2><Title>QImageIO</Title>
+<Sect2><Title>TQImageIO</Title>
<FuncSynopsis>
<FuncDef>static void <Function>defineIOHandler</Function></FuncDef>
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
@@ -2346,69 +2346,69 @@ Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QImageTextKeyLang</Title>
+<Sect2><Title>TQImageTextKeyLang</Title>
<Para>
-<Literal>QImageTextKeyLang</Literal> is fully implemented.
+<Literal>TQImageTextKeyLang</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QInputDialog (Qt v2.1+)</Title>
+<Sect2><Title>TQInputDialog (TQt v2.1+)</Title>
<FuncSynopsis>
- <FuncDef>static QString <Function>getText</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>caption</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>label</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>text</Parameter> = QString::null</ParamDef>
+ <FuncDef>static TQString <Function>getText</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>text</Parameter> = TQString::null</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QString</Literal> result and the <Literal>ok</Literal> flag.
-(Qt v2.1 - v2.3.1)
+the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
+(TQt v2.1 - v2.3.1)
</Para>
<FuncSynopsis>
- <FuncDef>static QString <Function>getText</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>caption</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>label</Parameter></ParamDef>
- <ParamDef>QLineEdit::EchoMode<Parameter>echo</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>text</Parameter> = QString::null</ParamDef>
+ <FuncDef>static TQString <Function>getText</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
+ <ParamDef>TQLineEdit::EchoMode<Parameter>echo</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>text</Parameter> = TQString::null</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QString</Literal> result and the <Literal>ok</Literal> flag.
-(Qt v2.2 - v2.3.1)
+the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
+(TQt v2.2 - v2.3.1)
</Para>
<FuncSynopsis>
- <FuncDef>static QString <Function>getText</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>caption</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>label</Parameter></ParamDef>
- <ParamDef>QLineEdit::EchoMode<Parameter>echo</Parameter> = QLineEdit::Normal</ParamDef>
- <ParamDef>const QString &amp;<Parameter>text</Parameter> = QString::null</ParamDef>
+ <FuncDef>static TQString <Function>getText</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
+ <ParamDef>TQLineEdit::EchoMode<Parameter>echo</Parameter> = TQLineEdit::Normal</ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>text</Parameter> = TQString::null</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QString</Literal> result and the <Literal>ok</Literal> flag.
-(Qt v3+)
+the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
+(TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>static int <Function>getInteger</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>caption</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>label</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
<ParamDef>int <Parameter>num</Parameter> = 0</ParamDef>
<ParamDef>int <Parameter>from</Parameter> = -2147483647</ParamDef>
<ParamDef>int <Parameter>to</Parameter> = 2147483647</ParamDef>
<ParamDef>int <Parameter>step</Parameter> = 1</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -2418,14 +2418,14 @@ the <Literal>int</Literal> result and the <Literal>ok</Literal> flag.
<FuncSynopsis>
<FuncDef>static double <Function>getDouble</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>caption</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>label</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
<ParamDef>double <Parameter>num</Parameter> = 0</ParamDef>
<ParamDef>double <Parameter>from</Parameter> = -2147483647</ParamDef>
<ParamDef>double <Parameter>to</Parameter> = 2147483647</ParamDef>
<ParamDef>int <Parameter>step</Parameter> = 1</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -2434,25 +2434,25 @@ the <Literal>double</Literal> result and the <Literal>ok</Literal> flag.
</Para>
<FuncSynopsis>
- <FuncDef>static QString <Function>getItem</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>caption</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>label</Parameter></ParamDef>
- <ParamDef>const QStringList &<Parameter>list</Parameter></ParamDef>
+ <FuncDef>static TQString <Function>getItem</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
+ <ParamDef>const TQStringList &<Parameter>list</Parameter></ParamDef>
<ParamDef>int <Parameter>current</Parameter> = 0</ParamDef>
<ParamDef>bool <Parameter>editable</Parameter> = TRUE</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QString</Literal> result and the <Literal>ok</Literal> flag.
+the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
</Para>
</Sect2>
-<Sect2><Title>QInterlaceStyle (Qt v2.3.1+)</Title>
+<Sect2><Title>TQInterlaceStyle (TQt v2.3.1+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>sb</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderLength</Parameter></ParamDef>
@@ -2464,115 +2464,115 @@ This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
</Para>
</Sect2>
-<Sect2><Title>QIODevice</Title>
+<Sect2><Title>TQIODevice</Title>
<Para>
-<Literal>QIODevice</Literal> is fully implemented.
+<Literal>TQIODevice</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QKeySequence (Qt v3+)</Title>
+<Sect2><Title>TQKeySequence (TQt v3+)</Title>
<Para>
-<Literal>QKeySequence</Literal> is fully implemented including the operators
-<Literal>==</Literal>, <Literal>!=</Literal>, <Literal>QString()</Literal> and
-<Literal>int()</Literal>. A <Literal>QString</Literal> instance or a Python
-integer may be used whenever a <Literal>QKeySequence</Literal> can be used.
+<Literal>TQKeySequence</Literal> is fully implemented including the operators
+<Literal>==</Literal>, <Literal>!=</Literal>, <Literal>TQString()</Literal> and
+<Literal>int()</Literal>. A <Literal>TQString</Literal> instance or a Python
+integer may be used whenever a <Literal>TQKeySequence</Literal> can be used.
</Para>
</Sect2>
-<Sect2><Title>QLabel</Title>
+<Sect2><Title>TQLabel</Title>
<Para>
-<Literal>QLabel</Literal> is fully implemented.
+<Literal>TQLabel</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QLayout</Title>
+<Sect2><Title>TQLayout</Title>
<Para>
-<Literal>QLayout</Literal> is fully implemented.
+<Literal>TQLayout</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QBoxLayout</Title>
+<Sect2><Title>TQBoxLayout</Title>
<Para>
-<Literal>QBoxLayout</Literal> is fully implemented.
+<Literal>TQBoxLayout</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGLayoutIterator (Qt v2+)</Title>
+<Sect2><Title>TQGLayoutIterator (TQt v2+)</Title>
<Para>
-<Literal>QGLayoutIterator</Literal> is fully implemented.
+<Literal>TQGLayoutIterator</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGridLayout</Title>
+<Sect2><Title>TQGridLayout</Title>
<FuncSynopsis>
<FuncDef>bool <Function>findWidget</Function></FuncDef>
- <ParamDef>QWidget *<Parameter>w</Parameter></ParamDef>
+ <ParamDef>TQWidget *<Parameter>w</Parameter></ParamDef>
<ParamDef>int *<Parameter>row</Parameter></ParamDef>
<ParamDef>int *<Parameter>col</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes the <Literal>w</Literal> parameter and returns a tuple containing
the <Literal>bool</Literal> result, <Literal>row</Literal> and
-<Literal>col</Literal>. (Qt v2+)
+<Literal>col</Literal>. (TQt v2+)
</Para>
</Sect2>
-<Sect2><Title>QHBoxLayout</Title>
+<Sect2><Title>TQHBoxLayout</Title>
<Para>
-<Literal>QHBoxLayout</Literal> is fully implemented.
+<Literal>TQHBoxLayout</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QLayoutItem (Qt v2+)</Title>
+<Sect2><Title>TQLayoutItem (TQt v2+)</Title>
<Para>
-<Literal>QLayoutItem</Literal> is fully implemented.
+<Literal>TQLayoutItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QLayoutIterator (Qt v2+)</Title>
+<Sect2><Title>TQLayoutIterator (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef>QLayoutItem *<Function>next</Function></FuncDef>
+ <FuncDef>TQLayoutItem *<Function>next</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-This is a wrapper around the <Literal>QLayoutIterator</Literal>
+This is a wrapper around the <Literal>TQLayoutIterator</Literal>
<Literal>++</Literal> operator.
</Para>
</Sect2>
-<Sect2><Title>QSpacerItem (Qt v2+)</Title>
+<Sect2><Title>TQSpacerItem (TQt v2+)</Title>
<Para>
-<Literal>QSpacerItem</Literal> is fully implemented.
+<Literal>TQSpacerItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QVBoxLayout</Title>
+<Sect2><Title>TQVBoxLayout</Title>
<Para>
-<Literal>QVBoxLayout</Literal> is fully implemented.
+<Literal>TQVBoxLayout</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QWidgetItem (Qt v2+)</Title>
+<Sect2><Title>TQWidgetItem (TQt v2+)</Title>
<Para>
-<Literal>QWidgetItem</Literal> is fully implemented.
+<Literal>TQWidgetItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QLCDNumber</Title>
+<Sect2><Title>TQLCDNumber</Title>
<Para>
-<Literal>QLCDNumber</Literal> is fully implemented.
+<Literal>TQLCDNumber</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QLibrary (Qt v3+)</Title>
+<Sect2><Title>TQLibrary (TQt v3+)</Title>
<Para>
-<Literal>QLibrary</Literal> is fully implemented.
+<Literal>TQLibrary</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QLineEdit</Title>
+<Sect2><Title>TQLineEdit</Title>
<FuncSynopsis>
<FuncDef>int <Function>characterAt</Function></FuncDef>
<ParamDef>int <Parameter>xpos</Parameter></ParamDef>
- <ParamDef>QChar *<Parameter>chr</Parameter></ParamDef>
+ <ParamDef>TQChar *<Parameter>chr</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes only the <Literal>xpos</Literal> parameter and returns the int
-result and the <Literal>chr</Literal> value as a tuple. (Qt v3+)
+result and the <Literal>chr</Literal> value as a tuple. (TQt v3+)
</Para>
<FuncSynopsis>
@@ -2580,7 +2580,7 @@ result and the <Literal>chr</Literal> value as a tuple. (Qt v3+)
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-This has been renamed <Literal>delChar</Literal> in Python. (Qt v2+)
+This has been renamed <Literal>delChar</Literal> in Python. (TQt v2+)
</Para>
<FuncSynopsis>
@@ -2591,16 +2591,16 @@ This has been renamed <Literal>delChar</Literal> in Python. (Qt v2+)
<Para>
This takes no parameters and returns the bool result and the
<Literal>start</Literal> and <Literal>end</Literal> values as a tuple.
-(Qt v3+)
+(TQt v3+)
</Para>
</Sect2>
-<Sect2><Title>QList&lt;type&gt; (Qt v2)</Title>
+<Sect2><Title>TQList&lt;type&gt; (TQt v2)</Title>
<Para>
-Types based on the <Literal>QList</Literal> template are automatically
+Types based on the <Literal>TQList</Literal> template are automatically
converted to and from Python lists of the type.
</Para>
</Sect2>
-<Sect2><Title>QListBox</Title>
+<Sect2><Title>TQListBox</Title>
<FuncSynopsis>
<FuncDef>bool <Function>itemYPos</Function></FuncDef>
<ParamDef>int <Parameter>index</Parameter></ParamDef>
@@ -2609,59 +2609,59 @@ converted to and from Python lists of the type.
<Para>
This takes the <Literal>index</Literal> parameter and returns a tuple
containing the <Literal>bool</Literal> result and <Literal>yPos</Literal>.
-(Qt v1.x)
+(TQt v1.x)
</Para>
</Sect2>
-<Sect2><Title>QListBoxItem</Title>
+<Sect2><Title>TQListBoxItem</Title>
<Para>
-<Literal>QListBoxItem</Literal> is fully implemented.
+<Literal>TQListBoxItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QListBoxPixmap</Title>
+<Sect2><Title>TQListBoxPixmap</Title>
<Para>
-<Literal>QListBoxPixmap</Literal> is fully implemented.
+<Literal>TQListBoxPixmap</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QListBoxText</Title>
+<Sect2><Title>TQListBoxText</Title>
<Para>
-<Literal>QListBoxText</Literal> is fully implemented.
+<Literal>TQListBoxText</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QListView</Title>
+<Sect2><Title>TQListView</Title>
<Para>
-<Literal>QListView</Literal> is fully implemented.
+<Literal>TQListView</Literal> is fully implemented.
</Para>
<Para>
-Note that to remove a child <Literal>QListViewItem</Literal> you must first
+Note that to remove a child <Literal>TQListViewItem</Literal> you must first
call <Literal>takeItem()</Literal> and then <Literal>del()</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QListViewItem</Title>
+<Sect2><Title>TQListViewItem</Title>
<Para>
-<Literal>QListViewItem</Literal> is fully implemented.
+<Literal>TQListViewItem</Literal> is fully implemented.
</Para>
<Para>
-Note that to remove a child <Literal>QListViewItem</Literal> you must first
+Note that to remove a child <Literal>TQListViewItem</Literal> you must first
call <Literal>takeItem()</Literal> and then <Literal>del()</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QCheckListItem</Title>
+<Sect2><Title>TQCheckListItem</Title>
<Para>
-<Literal>QCheckListItem</Literal> is fully implemented.
+<Literal>TQCheckListItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QListViewItemIterator (Qt v2+)</Title>
+<Sect2><Title>TQListViewItemIterator (TQt v2+)</Title>
<Para>
-<Literal>QListViewItemIterator</Literal> is fully implemented.
+<Literal>TQListViewItemIterator</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QLocale (Qt v3.3+)</Title>
+<Sect2><Title>TQLocale (TQt v3.3+)</Title>
<FuncSynopsis>
<FuncDef>short <Function>toShort</Function></FuncDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
@@ -2734,28 +2734,28 @@ This returns a tuple of the <Literal>double</Literal> result and the
<Literal>ok</Literal> value.
</Para>
</Sect2>
-<Sect2><Title>QMainWindow</Title>
+<Sect2><Title>TQMainWindow</Title>
<FuncSynopsis>
- <FuncDef>QTextStream &amp;<Function>operator&lt&lt;</Function></FuncDef>
- <ParamDef>QTextStream &amp;<Parameter></Parameter></ParamDef>
- <ParamDef>const QMainWindow &amp;<Parameter></Parameter></ParamDef>
+ <FuncDef>TQTextStream &amp;<Function>operator&lt&lt;</Function></FuncDef>
+ <ParamDef>TQTextStream &amp;<Parameter></Parameter></ParamDef>
+ <ParamDef>const TQMainWindow &amp;<Parameter></Parameter></ParamDef>
</FuncSynopsis>
<Para>
-This operator is fully implemented. (Qt v3+)
+This operator is fully implemented. (TQt v3+)
</Para>
<FuncSynopsis>
- <FuncDef>QTextStream &amp;<Function>operator&gt&gt;</Function></FuncDef>
- <ParamDef>QTextStream &amp;<Parameter></Parameter></ParamDef>
- <ParamDef>QMainWindow &amp;<Parameter></Parameter></ParamDef>
+ <FuncDef>TQTextStream &amp;<Function>operator&gt&gt;</Function></FuncDef>
+ <ParamDef>TQTextStream &amp;<Parameter></Parameter></ParamDef>
+ <ParamDef>TQMainWindow &amp;<Parameter></Parameter></ParamDef>
</FuncSynopsis>
<Para>
-This operator is fully implemented. (Qt v3+)
+This operator is fully implemented. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>getLocation</Function></FuncDef>
- <ParamDef>QToolBar *<Parameter>tb</Parameter></ParamDef>
+ <ParamDef>TQToolBar *<Parameter>tb</Parameter></ParamDef>
<ParamDef>ToolBarDock &amp;<Parameter>dock</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>index</Parameter></ParamDef>
<ParamDef>bool &amp;<Parameter>nl</Parameter></ParamDef>
@@ -2764,56 +2764,56 @@ This operator is fully implemented. (Qt v3+)
<Para>
This takes only the <Literal>tb</Literal> parameter and returns a tuple of the
result, <Literal>dock</Literal>, <Literal>index</Literal>,
-<Literal>nl</Literal> and <Literal>extraOffset</Literal> values. (Qt v2.1.0+)
+<Literal>nl</Literal> and <Literal>extraOffset</Literal> values. (TQt v2.1.0+)
</Para>
<FuncSynopsis>
- <FuncDef>QList&lt;QToolBar&gt; <Function>toolBars</Function></FuncDef>
+ <FuncDef>TQList&lt;TQToolBar&gt; <Function>toolBars</Function></FuncDef>
<ParamDef>ToolBarDock <Parameter>dock</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-This returns a list of <Literal>QToolBar</Literal> instances. (Qt v2.1.0+)
+This returns a list of <Literal>TQToolBar</Literal> instances. (TQt v2.1.0+)
</Para>
</Sect2>
-<Sect2><Title>QMemArray&lt;type&gt; (Qt v3+)</Title>
+<Sect2><Title>TQMemArray&lt;type&gt; (TQt v3+)</Title>
<Para>
-Types based on the <Literal>QMemArray</Literal> template are automatically
+Types based on the <Literal>TQMemArray</Literal> template are automatically
converted to and from Python lists of the type.
</Para>
</Sect2>
-<Sect2><Title>QMenuBar</Title>
+<Sect2><Title>TQMenuBar</Title>
<Para>
-<Literal>QMenuBar</Literal> is fully implemented.
+<Literal>TQMenuBar</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMenuData</Title>
+<Sect2><Title>TQMenuData</Title>
<FuncSynopsis>
- <FuncDef>QMenuItem *<Function>findItem</Function></FuncDef>
+ <FuncDef>TQMenuItem *<Function>findItem</Function></FuncDef>
<ParamDef>int <Parameter>id</Parameter></ParamDef>
- <ParamDef>QMenuData **<Parameter>parent</Parameter></ParamDef>
+ <ParamDef>TQMenuData **<Parameter>parent</Parameter></ParamDef>
</FuncSynopsis>
<Para>
Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QCustomMenuItem (Qt v2.1+)</Title>
+<Sect2><Title>TQCustomMenuItem (TQt v2.1+)</Title>
<Para>
-<Literal>QCustomMenuItem</Literal> is fully implemented.
+<Literal>TQCustomMenuItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMenuItem</Title>
+<Sect2><Title>TQMenuItem</Title>
<Para>
-<Literal>QMenuItem</Literal> is an internal Qt class.
+<Literal>TQMenuItem</Literal> is an internal TQt class.
</Para>
</Sect2>
-<Sect2><Title>QMessageBox</Title>
+<Sect2><Title>TQMessageBox</Title>
<Para>
-<Literal>QMessageBox</Literal> is fully implemented.
+<Literal>TQMessageBox</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMetaObject</Title>
+<Sect2><Title>TQMetaObject</Title>
<FuncSynopsis>
<FuncDef>int <Function>numClassInfo</Function> const</FuncDef>
<ParamDef>bool <Parameter>super</Parameter> = FALSE</ParamDef>
@@ -2823,7 +2823,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>const QClassInfo *<Function>classInfo</Function> const</FuncDef>
+ <FuncDef>const TQClassInfo *<Function>classInfo</Function> const</FuncDef>
<ParamDef>bool <Parameter>super</Parameter> = FALSE</ParamDef>
</FuncSynopsis>
<Para>
@@ -2831,29 +2831,29 @@ Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QMetaProperty</Title>
+<Sect2><Title>TQMetaProperty</Title>
<Para>
-<Literal>QMetaProperty</Literal> is fully implemented.
+<Literal>TQMetaProperty</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMimeSource (Qt v2+)</Title>
+<Sect2><Title>TQMimeSource (TQt v2+)</Title>
<Para>
-<Literal>QMimeSource</Literal> is fully implemented.
+<Literal>TQMimeSource</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMimeSourceFactory (Qt v2+)</Title>
+<Sect2><Title>TQMimeSourceFactory (TQt v2+)</Title>
<Para>
-<Literal>QMimeSourceFactory</Literal> is fully implemented.
+<Literal>TQMimeSourceFactory</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QWindowsMime (Qt v3+)</Title>
+<Sect2><Title>TQWindowsMime (TQt v3+)</Title>
<Para>
-<Literal>QWindowsMime</Literal> is fully implemented.
+<Literal>TQWindowsMime</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMotifPlusStyle (Qt v2.2+)</Title>
+<Sect2><Title>TQMotifPlusStyle (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>getButtonShift</Function></FuncDef>
<ParamDef>int &amp;<Parameter>x</Parameter></ParamDef>
@@ -2861,12 +2861,12 @@ Not implemented.
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>x</Literal> and
-<Literal>y</Literal> values. (Qt v2)
+<Literal>y</Literal> values. (TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QScrollBar *<Parameter>sb</Parameter></ParamDef>
+ <ParamDef>const TQScrollBar *<Parameter>sb</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderLength</Parameter></ParamDef>
@@ -2876,13 +2876,13 @@ This takes no parameters and returns a tuple of the <Literal>x</Literal> and
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
-(Qt v2)
+(TQt v2)
</Para>
</Sect2>
-<Sect2><Title>QMotifStyle (Qt v2+)</Title>
+<Sect2><Title>TQMotifStyle (TQt v2+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>sb</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
@@ -2892,12 +2892,12 @@ This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
-(Qt v2)
+(TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>void <Function>tabbarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>t</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
<ParamDef>int &<Parameter>hframe</Parameter></ParamDef>
<ParamDef>int &<Parameter>vframe</Parameter></ParamDef>
<ParamDef>int &<Parameter>overlap</Parameter></ParamDef>
@@ -2905,13 +2905,13 @@ This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Para>
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
-<Literal>overlap</Literal> values. (Qt v2)
+<Literal>overlap</Literal> values. (TQt v2)
</Para>
</Sect2>
-<Sect2><Title>QMovie</Title>
+<Sect2><Title>TQMovie</Title>
<FuncSynopsis>
- <FuncDef><Function>QMovie</Function></FuncDef>
- <ParamDef>QDataSource *<Parameter>src</Parameter></ParamDef>
+ <FuncDef><Function>TQMovie</Function></FuncDef>
+ <ParamDef>TQDataSource *<Parameter>src</Parameter></ParamDef>
<ParamDef>int <Parameter>bufsize</Parameter> = 1024</ParamDef>
</FuncSynopsis>
<Para>
@@ -2925,10 +2925,10 @@ Not implemented.
</FuncSynopsis>
<Para>
<Literal>length</Literal> is derived from <Literal>data</Literal> and not
-passed as a parameter. (Qt v2.2.0+)
+passed as a parameter. (TQt v2.2.0+)
</Para>
</Sect2>
-<Sect2><Title>QMultiLineEdit</Title>
+<Sect2><Title>TQMultiLineEdit</Title>
<FuncSynopsis>
<FuncDef>void <Function>cursorPosition</Function> const</FuncDef>
<ParamDef>int *<Parameter>line</Parameter></ParamDef>
@@ -2936,7 +2936,7 @@ passed as a parameter. (Qt v2.2.0+)
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>line</Literal> and
-<Literal>col</Literal> values. (Qt v1.x, Qt v2.x)
+<Literal>col</Literal> values. (TQt v1.x, TQt v2.x)
</Para>
<FuncSynopsis>
@@ -2944,7 +2944,7 @@ This takes no parameters and returns a tuple of the <Literal>line</Literal> and
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-This has been renamed <Literal>delChar</Literal> in Python. (Qt v1.x, Qt v2.x)
+This has been renamed <Literal>delChar</Literal> in Python. (TQt v1.x, TQt v2.x)
</Para>
<FuncSynopsis>
@@ -2954,7 +2954,7 @@ This has been renamed <Literal>delChar</Literal> in Python. (Qt v1.x, Qt v2.x)
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>line</Literal> and
-<Literal>col</Literal> values. (Qt v1.x, Qt v2.x)
+<Literal>col</Literal> values. (TQt v1.x, TQt v2.x)
</Para>
<FuncSynopsis>
@@ -2970,38 +2970,38 @@ This takes no parameters and returns a tuple of the bool result and the
<Literal>col2</Literal> values.
</Para>
</Sect2>
-<Sect2><Title>QMutex (Qt v2.2+)</Title>
+<Sect2><Title>TQMutex (TQt v2.2+)</Title>
<Para>
-<Literal>QMutex</Literal> is fully implemented.
+<Literal>TQMutex</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMutexLocker (Qt v3.1+)</Title>
+<Sect2><Title>TQMutexLocker (TQt v3.1+)</Title>
<Para>
-<Literal>QMutexLocker</Literal> is fully implemented.
+<Literal>TQMutexLocker</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QNetworkOperation (Qt v2.1+)</Title>
+<Sect2><Title>TQNetworkOperation (TQt v2.1+)</Title>
<Para>
-<Literal>QNetworkOperation</Literal> is fully implemented.
+<Literal>TQNetworkOperation</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QNetworkProtocol (Qt v2.1+)</Title>
+<Sect2><Title>TQNetworkProtocol (TQt v2.1+)</Title>
<Para>
-<Literal>QNetworkProtocol</Literal> is fully implemented.
+<Literal>TQNetworkProtocol</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QNetworkProtocolFactoryBase (Qt v2.1+)</Title>
+<Sect2><Title>TQNetworkProtocolFactoryBase (TQt v2.1+)</Title>
<Para>
-<Literal>QNetworkProtocolFactoryBase</Literal> is fully implemented.
+<Literal>TQNetworkProtocolFactoryBase</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QObject</Title>
+<Sect2><Title>TQObject</Title>
<FuncSynopsis>
<FuncDef>bool <Function>disconnect</Function></FuncDef>
- <ParamDef>const QObject *<Parameter>receiver</Parameter></ParamDef>
+ <ParamDef>const TQObject *<Parameter>receiver</Parameter></ParamDef>
<ParamDef>const char *<Parameter>member</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -3011,7 +3011,7 @@ Not yet implemented.
<FuncSynopsis>
<FuncDef>bool <Function>disconnect</Function></FuncDef>
<ParamDef>const char *<Parameter>signal</Parameter> = 0</ParamDef>
- <ParamDef>const QObject *<Parameter>receiver</Parameter> = 0</ParamDef>
+ <ParamDef>const TQObject *<Parameter>receiver</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>member</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -3020,49 +3020,49 @@ Not yet implemented.
<FuncSynopsis>
<FuncDef>static bool <Function>disconnect</Function></FuncDef>
- <ParamDef>const QObject *<Parameter>sender</Parameter></ParamDef>
+ <ParamDef>const TQObject *<Parameter>sender</Parameter></ParamDef>
<ParamDef>const char *<Parameter>signal</Parameter></ParamDef>
- <ParamDef>const QObject *<Parameter>receiver</Parameter></ParamDef>
+ <ParamDef>const TQObject *<Parameter>receiver</Parameter></ParamDef>
<ParamDef>const char *<Parameter>member</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-At the moment PyQt does not support the full behaviour of the corresponding Qt
+At the moment PyTQt does not support the full behaviour of the corresponding TQt
method. In particular, specifying None (ie. 0 in C++) for the
<Literal>signal</Literal> and <Literal>receiver</Literal> parameters is not yet
supported.
</Para>
</Sect2>
-<Sect2><Title>QObjectCleanupHandler (Qt v3+)</Title>
+<Sect2><Title>TQObjectCleanupHandler (TQt v3+)</Title>
<Para>
-<Literal>QObjectCleanupHandler</Literal> is fully implemented.
+<Literal>TQObjectCleanupHandler</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QObjectList</Title>
+<Sect2><Title>TQObjectList</Title>
<Para>
-This class isn't implemented. Whenever a <Literal>QObjectList</Literal> is the
+This class isn't implemented. Whenever a <Literal>TQObjectList</Literal> is the
return type of a function or the type of an argument, a Python list of
-<Literal>QObject</Literal> instances is used instead.
+<Literal>TQObject</Literal> instances is used instead.
</Para>
</Sect2>
-<Sect2><Title>QPaintDeviceMetrics</Title>
+<Sect2><Title>TQPaintDeviceMetrics</Title>
<Para>
-<Literal>QPaintDeviceMetrics</Literal> is fully implemented.
+<Literal>TQPaintDeviceMetrics</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QPaintDevice</Title>
+<Sect2><Title>TQPaintDevice</Title>
<FuncSynopsis>
<FuncDef>virtual bool <Function>cmd</Function></FuncDef>
<ParamDef>int</ParamDef>
- <ParamDef>QPainter *</ParamDef>
- <ParamDef>QPDevCmdParam *</ParamDef>
+ <ParamDef>TQPainter *</ParamDef>
+ <ParamDef>TQPDevCmdParam *</ParamDef>
</FuncSynopsis>
<Para>
Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QPainter</Title>
+<Sect2><Title>TQPainter</Title>
<FuncSynopsis>
- <FuncDef>QRect <Function>boundingRect</Function></FuncDef>
+ <FuncDef>TQRect <Function>boundingRect</Function></FuncDef>
<ParamDef>int <Parameter>x</Parameter></ParamDef>
<ParamDef>int <Parameter>y</Parameter></ParamDef>
<ParamDef>int <Parameter>w</Parameter></ParamDef>
@@ -3077,8 +3077,8 @@ The <Literal>intern</Literal> parameter is not supported.
</Para>
<FuncSynopsis>
- <FuncDef>QRect <Function>boundingRect</Function></FuncDef>
- <ParamDef>const QRect&</ParamDef>
+ <FuncDef>TQRect <Function>boundingRect</Function></FuncDef>
+ <ParamDef>const TQRect&</ParamDef>
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
<ParamDef>const char *<Parameter>str</Parameter></ParamDef>
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
@@ -3097,7 +3097,7 @@ The <Literal>intern</Literal> parameter is not supported.
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
<ParamDef>const char *<Parameter>str</Parameter></ParamDef>
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
- <ParamDef>QRect *<Parameter>br</Parameter> = 0</ParamDef>
+ <ParamDef>TQRect *<Parameter>br</Parameter> = 0</ParamDef>
<ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -3106,11 +3106,11 @@ The <Literal>intern</Literal> parameter is not supported.
<FuncSynopsis>
<FuncDef>void <Function>drawText</Function></FuncDef>
- <ParamDef>const QRect&</ParamDef>
+ <ParamDef>const TQRect&</ParamDef>
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
<ParamDef>const char *<Parameter>str</Parameter></ParamDef>
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
- <ParamDef>QRect *<Parameter>br</Parameter> = 0</ParamDef>
+ <ParamDef>TQRect *<Parameter>br</Parameter> = 0</ParamDef>
<ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -3133,15 +3133,15 @@ This takes a single parameter which is a list of tab stops.
This returns a list of tab stops.
</Para>
</Sect2>
-<Sect2><Title>QPalette</Title>
+<Sect2><Title>TQPalette</Title>
<Para>
-<Literal>QPalette</Literal> is fully implemented, including the Python
+<Literal>TQPalette</Literal> is fully implemented, including the Python
<Literal>==</Literal> and <Literal>!=</Literal> operators.
</Para>
</Sect2>
-<Sect2><Title>QPixmap</Title>
+<Sect2><Title>TQPixmap</Title>
<FuncSynopsis>
- <FuncDef><Function>QPixmap</Function></FuncDef>
+ <FuncDef><Function>TQPixmap</Function></FuncDef>
<ParamDef>const char *<Parameter>xpm</Parameter>[]</ParamDef>
</FuncSynopsis>
<Para>
@@ -3171,24 +3171,24 @@ a parameter.
Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QPixmapCache (Qt v3+)</Title>
+<Sect2><Title>TQPixmapCache (TQt v3+)</Title>
<Para>
-<Literal>QPixmapCache</Literal> is fully implemented.
+<Literal>TQPixmapCache</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QPair&lt;type,type&gt; (Qt v3+)</Title>
+<Sect2><Title>TQPair&lt;type,type&gt; (TQt v3+)</Title>
<Para>
-Types based on the <Literal>QPair</Literal> template are automatically
+Types based on the <Literal>TQPair</Literal> template are automatically
converted to and from Python tuples of two elements.
</Para>
</Sect2>
-<Sect2><Title>QPen</Title>
+<Sect2><Title>TQPen</Title>
<Para>
-<Literal>QPen</Literal> is fully implemented, including the Python
+<Literal>TQPen</Literal> is fully implemented, including the Python
<Literal>==</Literal> and <Literal>!=</Literal> operators.
</Para>
</Sect2>
-<Sect2><Title>QPicture</Title>
+<Sect2><Title>TQPicture</Title>
<FuncSynopsis>
<FuncDef>const char *<Function>data</Function></FuncDef>
<ParamDef></ParamDef>
@@ -3207,10 +3207,10 @@ Not implemented.
as a parameter.
</Para>
</Sect2>
-<Sect2><Title>QPlatinumStyle (Qt v2+)</Title>
+<Sect2><Title>TQPlatinumStyle (TQt v2+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>sb</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
@@ -3220,10 +3220,10 @@ as a parameter.
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
-(Qt v2)
+(TQt v2)
</Para>
</Sect2>
-<Sect2><Title>QPoint</Title>
+<Sect2><Title>TQPoint</Title>
<Para>
The Python
<Literal>+</Literal>, <Literal>+=</Literal>,
@@ -3235,7 +3235,7 @@ operators are supported.
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rx</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rx</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -3243,18 +3243,18 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>ry</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>ry</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QPointArray</Title>
+<Sect2><Title>TQPointArray</Title>
<FuncSynopsis>
- <FuncDef><Function>QPointArray</Function></FuncDef>
+ <FuncDef><Function>TQPointArray</Function></FuncDef>
<ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
- <ParamDef>const QCOORD *<Parameter>points</Parameter></ParamDef>
+ <ParamDef>const TQCOORD *<Parameter>points</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes a single parameter which is a list of points.
@@ -3275,7 +3275,7 @@ This takes the single parameter <Literal>i</Literal> and returns the
<FuncDef>bool <Function>putPoints</Function></FuncDef>
<ParamDef>int <Parameter>index</Parameter></ParamDef>
<ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
- <ParamDef>const QCOORD *<Parameter>points</Parameter></ParamDef>
+ <ParamDef>const TQCOORD *<Parameter>points</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes two parameters, <Literal>index</Literal> and a list of points.
@@ -3296,7 +3296,7 @@ Not implemented.
<FuncSynopsis>
<FuncDef>bool <Function>setPoints</Function></FuncDef>
<ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
- <ParamDef>const QCOORD *<Parameter>points</Parameter></ParamDef>
+ <ParamDef>const TQCOORD *<Parameter>points</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes a single parameter which is a list of points.
@@ -3313,7 +3313,7 @@ This takes a single parameter which is a list of points.
Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QPopupMenu</Title>
+<Sect2><Title>TQPopupMenu</Title>
<FuncSynopsis>
<FuncDef>int <Function>exec</Function></FuncDef>
<ParamDef></ParamDef>
@@ -3326,12 +3326,12 @@ This method also causes ownership of the underlying C++ menu to be transfered
to Python. This means that the C++ menu will be deleted when the Python
wrapper is garbage collected. Although this is a little inconsistent, it
ensures that the menu is deleted without having to explicity code it using
-<Literal>QObject.deleteLater()</Literal> or other techniques.
+<Literal>TQObject.deleteLater()</Literal> or other techniques.
</Para>
<FuncSynopsis>
<FuncDef>int <Function>exec</Function></FuncDef>
- <ParamDef>const QPoint &<Parameter>pos</Parameter></ParamDef>
+ <ParamDef>const TQPoint &<Parameter>pos</Parameter></ParamDef>
<ParamDef>int <Parameter>indexAtPoint</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -3342,57 +3342,57 @@ This method also causes ownership of the underlying C++ menu to be transfered
to Python. This means that the C++ menu will be deleted when the Python
wrapper is garbage collected. Although this is a little inconsistent, it
ensures that the menu is deleted without having to explicity code it using
-<Literal>QObject.deleteLater()</Literal> or other techniques.
+<Literal>TQObject.deleteLater()</Literal> or other techniques.
</Para>
</Sect2>
-<Sect2><Title>QPrintDialog (X11)</Title>
+<Sect2><Title>TQPrintDialog (X11)</Title>
<Para>
-<Literal>QPrintDialog</Literal> is fully implemented.
+<Literal>TQPrintDialog</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QPrinter</Title>
+<Sect2><Title>TQPrinter</Title>
<Para>
-<Literal>QPrinter</Literal> is fully implemented.
+<Literal>TQPrinter</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QProcess (Qt v3+)</Title>
+<Sect2><Title>TQProcess (TQt v3+)</Title>
<Para>
-<Literal>QProcess</Literal> is fully implemented.
+<Literal>TQProcess</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QProgressBar</Title>
+<Sect2><Title>TQProgressBar</Title>
<Para>
-<Literal>QProgressBar</Literal> is fully implemented.
+<Literal>TQProgressBar</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QProgressDialog</Title>
+<Sect2><Title>TQProgressDialog</Title>
<Para>
-<Literal>QProgressDialog</Literal> is fully implemented.
+<Literal>TQProgressDialog</Literal> is fully implemented.
value.
</Para>
</Sect2>
-<Sect2><Title>QPtrList&lt;type&gt; (Qt v2+)</Title>
+<Sect2><Title>TQPtrList&lt;type&gt; (TQt v2+)</Title>
<Para>
-Types based on the <Literal>QPtrList</Literal> template are automatically
+Types based on the <Literal>TQPtrList</Literal> template are automatically
converted to and from Python lists of the type.
</Para>
</Sect2>
-<Sect2><Title>QPushButton</Title>
+<Sect2><Title>TQPushButton</Title>
<Para>
-<Literal>QPushButton</Literal> is fully implemented.
+<Literal>TQPushButton</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QRadioButton</Title>
+<Sect2><Title>TQRadioButton</Title>
<Para>
-<Literal>QRadioButton</Literal> is fully implemented.
+<Literal>TQRadioButton</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QRangeControl</Title>
+<Sect2><Title>TQRangeControl</Title>
<Para>
-<Literal>QRangeControl</Literal> is fully implemented.
+<Literal>TQRangeControl</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QRect</Title>
+<Sect2><Title>TQRect</Title>
<Para>
The Python
<Literal>&amp;</Literal>, <Literal>&amp;=</Literal>,
@@ -3424,38 +3424,38 @@ This takes no parameters and returns a tuple containing the four values.
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rBottom</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rBottom</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-Not implemented. (Qt v2+)
+Not implemented. (TQt v2+)
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rLeft</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rLeft</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-Not implemented. (Qt v2+)
+Not implemented. (TQt v2+)
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rRight</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rRight</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-Not implemented. (Qt v2+)
+Not implemented. (TQt v2+)
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rTop</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rTop</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-Not implemented. (Qt v2+)
+Not implemented. (TQt v2+)
</Para>
</Sect2>
-<Sect2><Title>QRegExp</Title>
+<Sect2><Title>TQRegExp</Title>
<Para>
The Python <Literal>==</Literal> and <Literal>!=</Literal> operators are
supported.
@@ -3470,22 +3470,22 @@ supported.
<Para>
This takes <Literal>str</Literal> and <Literal>index</Literal> parameters and
returns a tuple of the <Literal>int</Literal> result and the
-<Literal>len</Literal> value. (Qt v1.x)
+<Literal>len</Literal> value. (TQt v1.x)
</Para>
<FuncSynopsis>
<FuncDef>int <Function>match</Function></FuncDef>
- <ParamDef>const QString &<Parameter>str</Parameter></ParamDef>
+ <ParamDef>const TQString &<Parameter>str</Parameter></ParamDef>
<ParamDef>int <Parameter>index</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>len</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
This takes <Literal>str</Literal> and <Literal>index</Literal> parameters and
returns a tuple of the <Literal>int</Literal> result and the
-<Literal>len</Literal> value. (Qt v2+)
+<Literal>len</Literal> value. (TQt v2+)
</Para>
</Sect2>
-<Sect2><Title>QRegion</Title>
+<Sect2><Title>TQRegion</Title>
<Para>
The Python
<Literal>|</Literal>, <Literal>|=</Literal>,
@@ -3498,7 +3498,7 @@ The Python
</Para>
<FuncSynopsis>
- <FuncDef>QArray&lt;QRect&gt; <Function>rects</Function></FuncDef>
+ <FuncDef>TQArray&lt;TQRect&gt; <Function>rects</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -3507,19 +3507,19 @@ Not implemented.
<FuncSynopsis>
<FuncDef>void <Function>setRects</Function></FuncDef>
- <ParamDef>QRect *<Parameter>rects</Parameter></ParamDef>
+ <ParamDef>TQRect *<Parameter>rects</Parameter></ParamDef>
<ParamDef>int <Parameter>num</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2.2+)
+Not yet implemented. (TQt v2.2+)
</Para>
</Sect2>
-<Sect2><Title>QScrollBar</Title>
+<Sect2><Title>TQScrollBar</Title>
<Para>
-<Literal>QScrollBar</Literal> is fully implemented.
+<Literal>TQScrollBar</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QScrollView</Title>
+<Sect2><Title>TQScrollView</Title>
<FuncSynopsis>
<FuncDef>void <Function>contentsToViewport</Function></FuncDef>
<ParamDef>int <Parameter>x</Parameter></ParamDef>
@@ -3530,7 +3530,7 @@ Not yet implemented. (Qt v2.2+)
<Para>
This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
returns a tuple containing the <Literal>vx</Literal> and <Literal>vy</Literal>
-values. (Qt v2+)
+values. (TQt v2+)
</Para>
<FuncSynopsis>
@@ -3543,30 +3543,30 @@ values. (Qt v2+)
<Para>
This takes the <Literal>vx</Literal> and <Literal>vy</Literal> parameters and
returns a tuple containing the <Literal>x</Literal> and <Literal>y</Literal>
-values. (Qt v2+)
+values. (TQt v2+)
</Para>
</Sect2>
-<Sect2><Title>QSemaphore (Qt v2.2+)</Title>
+<Sect2><Title>TQSemaphore (TQt v2.2+)</Title>
<Para>
-<Literal>QSemaphore</Literal> is fully implemented. The <Literal>+=</Literal>
-and <Literal>-=</Literal> operators have also been implemented, but require
+<Literal>TQSemaphore</Literal> is fully implemented. The <Literal>+=</Literal>
+and <Literal>-=</Literal> operators have also been implemented, but retquire
Python v2.0 or later.
</Para>
</Sect2>
-<Sect2><Title>QSemiModal (Qt v1, v2)</Title>
+<Sect2><Title>TQSemiModal (TQt v1, v2)</Title>
<Para>
-<Literal>QSemiModal</Literal> is fully implemented.
+<Literal>TQSemiModal</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QSessionManager (Qt v2+)</Title>
+<Sect2><Title>TQSessionManager (TQt v2+)</Title>
<Para>
-<Literal>QSessionManager</Literal> is fully implemented.
+<Literal>TQSessionManager</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QSettings (Qt v3+)</Title>
+<Sect2><Title>TQSettings (TQt v3+)</Title>
<FuncSynopsis>
<FuncDef>bool <Function>readBoolEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
<ParamDef>bool <Parameter>def</Parameter> = 0</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -3577,7 +3577,7 @@ the <Literal>bool</Literal> result and the <Literal>ok</Literal> flag.
<FuncSynopsis>
<FuncDef>double <Function>readDoubleEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
<ParamDef>double <Parameter>def</Parameter> = 0</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -3587,40 +3587,40 @@ the <Literal>double</Literal> result and the <Literal>ok</Literal> flag.
</Para>
<FuncSynopsis>
-<FuncDef>QString <Function>readEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>def</Parameter> = QString::null</ParamDef>
+<FuncDef>TQString <Function>readEntry</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>def</Parameter> = TQString::null</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QString</Literal> result and the <Literal>ok</Literal> flag.
+the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
</Para>
<FuncSynopsis>
-<FuncDef>QStringList <Function>readListEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
+<FuncDef>TQStringList <Function>readListEntry</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QStringList</Literal> result and the <Literal>ok</Literal> flag.
+the <Literal>TQStringList</Literal> result and the <Literal>ok</Literal> flag.
</Para>
<FuncSynopsis>
-<FuncDef>QStringList <Function>readListEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
- <ParamDef>const QChar &amp;<Parameter>separator</Parameter></ParamDef>
+<FuncDef>TQStringList <Function>readListEntry</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
+ <ParamDef>const TQChar &amp;<Parameter>separator</Parameter></ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QStringList</Literal> result and the <Literal>ok</Literal> flag.
+the <Literal>TQStringList</Literal> result and the <Literal>ok</Literal> flag.
</Para>
<FuncSynopsis>
<FuncDef>int <Function>readNumEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
<ParamDef>int <Parameter>def</Parameter> = 0</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -3631,17 +3631,17 @@ the <Literal>int</Literal> result and the <Literal>ok</Literal> flag.
<FuncSynopsis>
<FuncDef>bool <Function>writeEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
<ParamDef>bool <Parameter>value</Parameter></ParamDef>
</FuncSynopsis>
<Para>
Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QSGIStyle (Qt v2.2+)</Title>
+<Sect2><Title>TQSGIStyle (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QScrollBar *<Parameter>sb</Parameter></ParamDef>
+ <ParamDef>const TQScrollBar *<Parameter>sb</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderLength</Parameter></ParamDef>
@@ -3651,20 +3651,20 @@ Not implemented.
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
-(Qt v2)
+(TQt v2)
</Para>
</Sect2>
-<Sect2><Title>QSignalMapper</Title>
+<Sect2><Title>TQSignalMapper</Title>
<Para>
-<Literal>QSignalMapper</Literal> is fully implemented.
+<Literal>TQSignalMapper</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QSimpleRichText (Qt v2+)</Title>
+<Sect2><Title>TQSimpleRichText (TQt v2+)</Title>
<Para>
-<Literal>QSimpleRichText</Literal> is fully implemented.
+<Literal>TQSimpleRichText</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QSize</Title>
+<Sect2><Title>TQSize</Title>
<Para>
The Python
<Literal>+</Literal>, <Literal>+=</Literal>,
@@ -3676,7 +3676,7 @@ operators are supported.
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rheight</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rheight</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -3684,39 +3684,39 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rwidth</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rwidth</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QSizeGrip (Qt v2+)</Title>
+<Sect2><Title>TQSizeGrip (TQt v2+)</Title>
<Para>
-<Literal>QSizeGrip</Literal> is fully implemented.
+<Literal>TQSizeGrip</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QSizePolicy (Qt v2+)</Title>
+<Sect2><Title>TQSizePolicy (TQt v2+)</Title>
<Para>
-<Literal>QSizePolicy</Literal> is fully implemented.
+<Literal>TQSizePolicy</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QSlider</Title>
+<Sect2><Title>TQSlider</Title>
<Para>
-<Literal>QSlider</Literal> is fully implemented.
+<Literal>TQSlider</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QSocketNotifier</Title>
+<Sect2><Title>TQSocketNotifier</Title>
<Para>
-<Literal>QSocketNotifier</Literal> is fully implemented.
+<Literal>TQSocketNotifier</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QSound (Qt v2.2+)</Title>
+<Sect2><Title>TQSound (TQt v2.2+)</Title>
<Para>
-<Literal>QSound</Literal> is fully implemented.
+<Literal>TQSound</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QSpinBox</Title>
+<Sect2><Title>TQSpinBox</Title>
<FuncSynopsis>
<FuncDef>virtual int <Function>mapTextToValue</Function></FuncDef>
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
@@ -3726,12 +3726,12 @@ This returns a tuple of the <Literal>int</Literal> result and the modified
<Literal>ok</Literal> value.
</Para>
</Sect2>
-<Sect2><Title>QSplashScreen (Qt v3.2.0+)</Title>
+<Sect2><Title>TQSplashScreen (TQt v3.2.0+)</Title>
<Para>
-<Literal>QSplashScreen</Literal> is fully implemented.
+<Literal>TQSplashScreen</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QSplitter</Title>
+<Sect2><Title>TQSplitter</Title>
<FuncSynopsis>
<FuncDef>void <Function>getRange</Function></FuncDef>
<ParamDef>int <Parameter>id</Parameter></ParamDef>
@@ -3740,15 +3740,15 @@ This returns a tuple of the <Literal>int</Literal> result and the modified
</FuncSynopsis>
<Para>
This takes the <Literal>id</Literal> parameter and returns the
-<Literal>min</Literal> and <Literal>max</Literal> values as a tuple. (Qt v2+)
+<Literal>min</Literal> and <Literal>max</Literal> values as a tuple. (TQt v2+)
</Para>
</Sect2>
-<Sect2><Title>QStatusBar</Title>
+<Sect2><Title>TQStatusBar</Title>
<Para>
-<Literal>QStatusBar</Literal> is fully implemented.
+<Literal>TQStatusBar</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QChar (Qt v2+)</Title>
+<Sect2><Title>TQChar (TQt v2+)</Title>
<FuncSynopsis>
<FuncDef>uchar &<Function>cell</Function> const</FuncDef>
<ParamDef></ParamDef>
@@ -3766,10 +3766,10 @@ Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QString</Title>
+<Sect2><Title>TQString</Title>
<Para>
A Python string object (or Unicode object) can be used whenever a
-<Literal>QString</Literal> can be used. A <Literal>QString</Literal> can be
+<Literal>TQString</Literal> can be used. A <Literal>TQString</Literal> can be
converted to a Python string object using the Python <Literal>str()</Literal>
function, and to a Python Unicode object using the Python
<Literal>unicode()</Literal> function.
@@ -3783,40 +3783,40 @@ comparison operators are supported.
</Para>
<FuncSynopsis>
- <FuncDef>QCharRef <Function>at</Function></FuncDef>
+ <FuncDef>TQCharRef <Function>at</Function></FuncDef>
<ParamDef>uint <Parameter>i</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2+)
+Not yet implemented. (TQt v2+)
</Para>
<FuncSynopsis>
- <FuncDef>QChar <Function>constref</Function> const</FuncDef>
+ <FuncDef>TQChar <Function>constref</Function> const</FuncDef>
<ParamDef>uint <Parameter>i</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2+)
+Not yet implemented. (TQt v2+)
</Para>
<FuncSynopsis>
- <FuncDef>QChar &<Function>ref</Function></FuncDef>
+ <FuncDef>TQChar &<Function>ref</Function></FuncDef>
<ParamDef>uint <Parameter>i</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2+)
+Not yet implemented. (TQt v2+)
</Para>
<FuncSynopsis>
- <FuncDef>QString &<Function>setUnicodeCodes</Function></FuncDef>
+ <FuncDef>TQString &<Function>setUnicodeCodes</Function></FuncDef>
<ParamDef>const ushort *<Parameter>unicode_as_shorts</Parameter></ParamDef>
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2.1+)
+Not yet implemented. (TQt v2.1+)
</Para>
<FuncSynopsis>
- <FuncDef>QString &<Function>sprintf</Function></FuncDef>
+ <FuncDef>TQString &<Function>sprintf</Function></FuncDef>
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
<ParamDef>...</ParamDef>
</FuncSynopsis>
@@ -3896,7 +3896,7 @@ This returns a tuple of the <Literal>double</Literal> result and the
<Literal>ok</Literal> value.
</Para>
</Sect2>
-<Sect2><Title>QStringList (Qt v2+)</Title>
+<Sect2><Title>TQStringList (TQt v2+)</Title>
<Para>
The Python <Literal>len</Literal>, <Literal>[]</Literal> (for both reading and
writing slices and individual elements), <Literal>del</Literal> (for deleting
@@ -3907,7 +3907,7 @@ slices and individual elements), <Literal>+</Literal>, <Literal>+=</Literal>,
<FuncSynopsis>
<FuncDef>Iterator <Function>append</Function></FuncDef>
- <ParamDef>const QString &<Parameter>x</Parameter></ParamDef>
+ <ParamDef>const TQString &<Parameter>x</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This does not return a value.
@@ -3915,20 +3915,20 @@ This does not return a value.
<FuncSynopsis>
<FuncDef>Iterator <Function>prepend</Function></FuncDef>
- <ParamDef>const QString &<Parameter>x</Parameter></ParamDef>
+ <ParamDef>const TQString &<Parameter>x</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This does not return a value.
</Para>
</Sect2>
-<Sect2><Title>QStrList</Title>
+<Sect2><Title>TQStrList</Title>
<Para>
-This class isn't implemented. Whenever a <Literal>QStrList</Literal> is the
+This class isn't implemented. Whenever a <Literal>TQStrList</Literal> is the
return type of a function or the type of an argument, a Python list of strings
is used instead.
</Para>
</Sect2>
-<Sect2><Title>QStyle (Qt v2+)</Title>
+<Sect2><Title>TQStyle (TQt v2+)</Title>
<FuncSynopsis>
<FuncDef>virtual void <Function>getButtonShift</Function></FuncDef>
<ParamDef>int &amp;<Parameter>x</Parameter></ParamDef>
@@ -3936,12 +3936,12 @@ is used instead.
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>x</Literal> and
-<Literal>y</Literal> values. (Qt v2)
+<Literal>y</Literal> values. (TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>virtual void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QScrollBar *<Parameter>b</Parameter></ParamDef>
+ <ParamDef>const TQScrollBar *<Parameter>b</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderLength</Parameter></ParamDef>
@@ -3951,12 +3951,12 @@ This takes no parameters and returns a tuple of the <Literal>x</Literal> and
Thus takes only the <Literal>b</Literal> parameter and returns a tuple of the
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
-(Qt v2)
+(TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>virtual void <Function>tabbarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>t</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>hframe</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>vframe</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>overlap</Parameter></ParamDef>
@@ -3964,52 +3964,52 @@ Thus takes only the <Literal>b</Literal> parameter and returns a tuple of the
<Para>
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
-<Literal>overlap</Literal> values. (Qt v2)
+<Literal>overlap</Literal> values. (TQt v2)
</Para>
</Sect2>
-<Sect2><Title>QStyleOption (Qt v3+)</Title>
+<Sect2><Title>TQStyleOption (TQt v3+)</Title>
<Para>
-<Literal>QStyleOption</Literal> is fully implemented.
+<Literal>TQStyleOption</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QStyleSheet (Qt v2+)</Title>
+<Sect2><Title>TQStyleSheet (TQt v2+)</Title>
<Para>
-<Literal>QStyleSheet</Literal> is fully implemented.
+<Literal>TQStyleSheet</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QStyleSheetItem (Qt v2+)</Title>
+<Sect2><Title>TQStyleSheetItem (TQt v2+)</Title>
<Para>
-<Literal>QStyleSheetItem</Literal> is fully implemented.
+<Literal>TQStyleSheetItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QSyntaxHighlighter (Qt v3.1+)</Title>
+<Sect2><Title>TQSyntaxHighlighter (TQt v3.1+)</Title>
<Para>
-<Literal>QSyntaxHighlighter</Literal> is fully implemented.
+<Literal>TQSyntaxHighlighter</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTab</Title>
+<Sect2><Title>TQTab</Title>
<Para>
-<Literal>QTab</Literal> is fully implemented.
+<Literal>TQTab</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTabBar</Title>
+<Sect2><Title>TQTabBar</Title>
<FuncSynopsis>
- <FuncDef>QList&lt;QTab&gt; <Function>tabList</Function></FuncDef>
+ <FuncDef>TQList&lt;TQTab&gt; <Function>tabList</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-This returns a list of <Literal>QTab</Literal> instances.
+This returns a list of <Literal>TQTab</Literal> instances.
</Para>
</Sect2>
-<Sect2><Title>QTabDialog</Title>
+<Sect2><Title>TQTabDialog</Title>
<Para>
-<Literal>QTabDialog</Literal> is fully implemented.
+<Literal>TQTabDialog</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTableView (Qt 1.x, Qt 2.x)</Title>
+<Sect2><Title>TQTableView (TQt 1.x, TQt 2.x)</Title>
<FuncSynopsis>
<FuncDef>bool <Function>colXPos</Function></FuncDef>
<ParamDef>int <Parameter>col</Parameter></ParamDef>
@@ -4030,49 +4030,49 @@ This takes the <Literal>row</Literal> parameter and returns a tuple containing
the <Literal>bool</Literal> result and <Literal>yPos</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QTabWidget (Qt v2+)</Title>
+<Sect2><Title>TQTabWidget (TQt v2+)</Title>
<Para>
-<Literal>QTabWidget</Literal> is fully implemented.
+<Literal>TQTabWidget</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTextBrowser (Qt v2+)</Title>
+<Sect2><Title>TQTextBrowser (TQt v2+)</Title>
<Para>
-<Literal>QTextBrowser</Literal> is fully implemented.
+<Literal>TQTextBrowser</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTextCodec (Qt v2+)</Title>
+<Sect2><Title>TQTextCodec (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef>virtual QCString <Function>fromUnicode</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>uc</Parameter></ParamDef>
+ <FuncDef>virtual TQCString <Function>fromUnicode</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>uc</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>lenInOut</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-The returned value is a tuple of the <Literal>QCString</Literal> result and the
+The returned value is a tuple of the <Literal>TQCString</Literal> result and the
updated <Literal>lenInOut</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QTextDecoder (Qt v2+)</Title>
+<Sect2><Title>TQTextDecoder (TQt v2+)</Title>
<Para>
-<Literal>QTextDecoder</Literal> is fully implemented.
+<Literal>TQTextDecoder</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTextEncoder (Qt v2+)</Title>
+<Sect2><Title>TQTextEncoder (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef>virtual QCString <Function>fromUnicode</Function> = 0</FuncDef>
- <ParamDef>const QString &amp;<Parameter>uc</Parameter></ParamDef>
+ <FuncDef>virtual TQCString <Function>fromUnicode</Function> = 0</FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>uc</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>lenInOut</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-The returned value is a tuple of the <Literal>QCString</Literal> result and the
+The returned value is a tuple of the <Literal>TQCString</Literal> result and the
updated <Literal>lenInOut</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QTextEdit (Qt v3+)</Title>
+<Sect2><Title>TQTextEdit (TQt v3+)</Title>
<FuncSynopsis>
<FuncDef>int <Function>charAt</Function></FuncDef>
- <ParamDef>const QPoint &amp;<Parameter>pos</Parameter></ParamDef>
+ <ParamDef>const TQPoint &amp;<Parameter>pos</Parameter></ParamDef>
<ParamDef>int *<Parameter>para</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -4090,7 +4090,7 @@ This has been renamed <Literal>delChar</Literal> in Python.
<FuncSynopsis>
<FuncDef>virtual bool <Function>find</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>expr</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>expr</Parameter></ParamDef>
<ParamDef>bool <Parameter>cs</Parameter></ParamDef>
<ParamDef>bool <Parameter>wo</Parameter></ParamDef>
<ParamDef>bool <Parameter>forward</Parameter> = TRUE</ParamDef>
@@ -4128,9 +4128,9 @@ the <Literal>paraFrom</Literal>, <Literal>indexFrom</Literal>,
<Literal>paraTo</Literal> and <Literal>indexTo</Literal> values.
</Para>
</Sect2>
-<Sect2><Title>QTextStream</Title>
+<Sect2><Title>TQTextStream</Title>
<FuncSynopsis>
- <FuncDef><Function>QTextStream</Function></FuncDef>
+ <FuncDef><Function>TQTextStream</Function></FuncDef>
<ParamDef>FILE *<Parameter>fp</Parameter></ParamDef>
<ParamDef>int <Parameter>mode</Parameter></ParamDef>
</FuncSynopsis>
@@ -4139,7 +4139,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QTextStream &<Function>readRawBytes</Function></FuncDef>
+ <FuncDef>TQTextStream &<Function>readRawBytes</Function></FuncDef>
<ParamDef>char *<Parameter>buf</Parameter></ParamDef>
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
</FuncSynopsis>
@@ -4148,7 +4148,7 @@ Not yet implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QTextStream &<Function>writeRawBytes</Function></FuncDef>
+ <FuncDef>TQTextStream &<Function>writeRawBytes</Function></FuncDef>
<ParamDef>const char *<Parameter>buf</Parameter></ParamDef>
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
</FuncSynopsis>
@@ -4157,9 +4157,9 @@ Not yet implemented.
</Para>
</Sect2>
-<Sect2><Title>QTextIStream (Qt v2+)</Title>
+<Sect2><Title>TQTextIStream (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QTextIStream</Function></FuncDef>
+ <FuncDef><Function>TQTextIStream</Function></FuncDef>
<ParamDef>FILE *<Parameter>fp</Parameter></ParamDef>
<ParamDef>int <Parameter>mode</Parameter></ParamDef>
</FuncSynopsis>
@@ -4168,9 +4168,9 @@ Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QTextOStream (Qt v2+)</Title>
+<Sect2><Title>TQTextOStream (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QTextOStream</Function></FuncDef>
+ <FuncDef><Function>TQTextOStream</Function></FuncDef>
<ParamDef>FILE *<Parameter>fp</Parameter></ParamDef>
<ParamDef>int <Parameter>mode</Parameter></ParamDef>
</FuncSynopsis>
@@ -4178,71 +4178,71 @@ Not implemented.
Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QTextView (Qt v2+)</Title>
+<Sect2><Title>TQTextView (TQt v2+)</Title>
<Para>
-<Literal>QTextView</Literal> is fully implemented.
+<Literal>TQTextView</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QThread (Qt v2.2+)</Title>
+<Sect2><Title>TQThread (TQt v2.2+)</Title>
<Para>
-<Literal>QThread</Literal> is fully implemented.
+<Literal>TQThread</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTimer</Title>
+<Sect2><Title>TQTimer</Title>
<Para>
-<Literal>QTimer</Literal> is fully implemented.
+<Literal>TQTimer</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QToolBar</Title>
+<Sect2><Title>TQToolBar</Title>
<Para>
-<Literal>QToolBar</Literal> is fully implemented.
+<Literal>TQToolBar</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QToolBox (Qt v3.2.0+)</Title>
+<Sect2><Title>TQToolBox (TQt v3.2.0+)</Title>
<Para>
-<Literal>QToolBox</Literal> is fully implemented.
+<Literal>TQToolBox</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QToolButton</Title>
+<Sect2><Title>TQToolButton</Title>
<Para>
-<Literal>QToolButton</Literal> is fully implemented.
+<Literal>TQToolButton</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QToolTip</Title>
+<Sect2><Title>TQToolTip</Title>
<Para>
-<Literal>QToolTip</Literal> is fully implemented.
+<Literal>TQToolTip</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QToolTipGroup</Title>
+<Sect2><Title>TQToolTipGroup</Title>
<Para>
-<Literal>QToolTipGroup</Literal> is fully implemented.
+<Literal>TQToolTipGroup</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTranslator (Qt v2+)</Title>
+<Sect2><Title>TQTranslator (TQt v2+)</Title>
<Para>
-<Literal>QTranslator</Literal> is fully implemented.
+<Literal>TQTranslator</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTranslatorMessage (Qt v2.2+)</Title>
+<Sect2><Title>TQTranslatorMessage (TQt v2.2+)</Title>
<Para>
-<Literal>QTranslatorMessage</Literal> is fully implemented.
+<Literal>TQTranslatorMessage</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QUrl (Qt v2.1+)</Title>
+<Sect2><Title>TQUrl (TQt v2.1+)</Title>
<Para>
-<Literal>QUrl</Literal> is fully implemented, including the
-<Literal>QString()</Literal>, <Literal>==</Literal> and <Literal>!=</Literal>
+<Literal>TQUrl</Literal> is fully implemented, including the
+<Literal>TQString()</Literal>, <Literal>==</Literal> and <Literal>!=</Literal>
operators.
</Para>
</Sect2>
-<Sect2><Title>QUrlInfo (Qt v2.1+)</Title>
+<Sect2><Title>TQUrlInfo (TQt v2.1+)</Title>
<Para>
-<Literal>QUrlInfo</Literal> is fully implemented.
+<Literal>TQUrlInfo</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QUrlOperator (Qt v2.1+)</Title>
+<Sect2><Title>TQUrlOperator (TQt v2.1+)</Title>
<FuncSynopsis>
<FuncDef>virtual bool <Function>isDir</Function></FuncDef>
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
@@ -4252,15 +4252,15 @@ This returns a tuple of the <Literal>bool</Literal> result and the
<Literal>ok</Literal> value.
</Para>
</Sect2>
-<Sect2><Title>QUuid (Qt v3.0+)</Title>
+<Sect2><Title>TQUuid (TQt v3.0+)</Title>
<Para>
-<Literal>QUuid</Literal> is fully implemented.
+<Literal>TQUuid</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QValidator</Title>
+<Sect2><Title>TQValidator</Title>
<FuncSynopsis>
<FuncDef>virtual State <Function>validate</Function></FuncDef>
- <ParamDef>QString& <Parameter>input</Parameter></ParamDef>
+ <ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
<ParamDef>int& <Parameter>pos</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -4269,10 +4269,10 @@ updated <Literal>pos</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QDoubleValidator</Title>
+<Sect2><Title>TQDoubleValidator</Title>
<FuncSynopsis>
<FuncDef>State <Function>validate</Function></FuncDef>
- <ParamDef>QString& <Parameter>input</Parameter></ParamDef>
+ <ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
<ParamDef>int& <Parameter>pos</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -4281,10 +4281,10 @@ updated <Literal>pos</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QIntValidator</Title>
+<Sect2><Title>TQIntValidator</Title>
<FuncSynopsis>
<FuncDef>State <Function>validate</Function></FuncDef>
- <ParamDef>QString& <Parameter>input</Parameter></ParamDef>
+ <ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
<ParamDef>int& <Parameter>pos</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -4293,10 +4293,10 @@ updated <Literal>pos</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QRegExpValidator (Qt v3+)</Title>
+<Sect2><Title>TQRegExpValidator (TQt v3+)</Title>
<FuncSynopsis>
<FuncDef>virtual State <Function>validate</Function></FuncDef>
- <ParamDef>QString& <Parameter>input</Parameter></ParamDef>
+ <ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
<ParamDef>int& <Parameter>pos</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -4304,15 +4304,15 @@ The returned value is a tuple of the <Literal>State</Literal> result and the
updated <Literal>pos</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QValueList&lt;type&gt; (Qt v2+)</Title>
+<Sect2><Title>TQValueList&lt;type&gt; (TQt v2+)</Title>
<Para>
-Types based on the <Literal>QValueList</Literal> template are automatically
+Types based on the <Literal>TQValueList</Literal> template are automatically
converted to and from Python lists of the type.
</Para>
</Sect2>
-<Sect2><Title>QVariant (Qt v2.1+)</Title>
+<Sect2><Title>TQVariant (TQt v2.1+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QVariant</Function></FuncDef>
+ <FuncDef><Function>TQVariant</Function></FuncDef>
<ParamDef>const char *<Parameter>val</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -4320,35 +4320,35 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QVariant</Function></FuncDef>
- <ParamDef>const QBitArray &amp;<Parameter>val</Parameter></ParamDef>
+ <FuncDef><Function>TQVariant</Function></FuncDef>
+ <ParamDef>const TQBitArray &amp;<Parameter>val</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v3+)
+Not yet implemented. (TQt v3+)
</Para>
<FuncSynopsis>
- <FuncDef><Function>QVariant</Function></FuncDef>
- <ParamDef>const QValueList&lt;QVariant&gt; &amp;<Parameter>val</Parameter></ParamDef>
+ <FuncDef><Function>TQVariant</Function></FuncDef>
+ <ParamDef>const TQValueList&lt;TQVariant&gt; &amp;<Parameter>val</Parameter></ParamDef>
</FuncSynopsis>
<Para>
Not yet implemented.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QVariant</Function></FuncDef>
- <ParamDef>const QMap&lt;QString,QVariant&gt; &amp;<Parameter>val</Parameter></ParamDef>
+ <FuncDef><Function>TQVariant</Function></FuncDef>
+ <ParamDef>const TQMap&lt;TQString,TQVariant&gt; &amp;<Parameter>val</Parameter></ParamDef>
</FuncSynopsis>
<Para>
Not yet implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QBitArray &amp;<Function>asBitArray</Function></FuncDef>
+ <FuncDef>TQBitArray &amp;<Function>asBitArray</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v3+)
+Not yet implemented. (TQt v3+)
</Para>
<FuncSynopsis>
@@ -4376,7 +4376,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QValueList&lt;QVariant&gt; &amp;<Function>asList</Function></FuncDef>
+ <FuncDef>TQValueList&lt;TQVariant&gt; &amp;<Function>asList</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -4384,7 +4384,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QMap&lt;QString,QVariant&gt; &amp;<Function>asMap</Function></FuncDef>
+ <FuncDef>TQMap&lt;TQString,TQVariant&gt; &amp;<Function>asMap</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -4400,7 +4400,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QValueListConstIterator&lt;QVariant&gt;<Function>listBegin</Function> const</FuncDef>
+ <FuncDef>TQValueListConstIterator&lt;TQVariant&gt;<Function>listBegin</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -4408,7 +4408,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QValueListConstIterator&lt;QVariant&gt;<Function>listEnd</Function> const</FuncDef>
+ <FuncDef>TQValueListConstIterator&lt;TQVariant&gt;<Function>listEnd</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -4416,7 +4416,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QMapConstIterator&lt;QString,QVariant&gt;<Function>mapBegin</Function> const</FuncDef>
+ <FuncDef>TQMapConstIterator&lt;TQString,TQVariant&gt;<Function>mapBegin</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -4424,7 +4424,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QMapConstIterator&lt;QString,QVariant&gt;<Function>mapEnd</Function> const</FuncDef>
+ <FuncDef>TQMapConstIterator&lt;TQString,TQVariant&gt;<Function>mapEnd</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -4432,15 +4432,15 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QMapConstIterator&lt;QString,QVariant&gt;<Function>mapFind</Function> const</FuncDef>
- <ParamDef>const QString &<Parameter>key</Parameter></ParamDef>
+ <FuncDef>TQMapConstIterator&lt;TQString,TQVariant&gt;<Function>mapFind</Function> const</FuncDef>
+ <ParamDef>const TQString &<Parameter>key</Parameter></ParamDef>
</FuncSynopsis>
<Para>
Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QValueListConstIterator&lt;QString&gt;<Function>stringListBegin</Function> const</FuncDef>
+ <FuncDef>TQValueListConstIterator&lt;TQString&gt;<Function>stringListBegin</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -4448,7 +4448,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QValueListConstIterator&lt;QString&gt;<Function>stringListEnd</Function> const</FuncDef>
+ <FuncDef>TQValueListConstIterator&lt;TQString&gt;<Function>stringListEnd</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -4456,15 +4456,15 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>const QBitArray <Function>toBitArray</Function> const</FuncDef>
+ <FuncDef>const TQBitArray <Function>toBitArray</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v3+)
+Not yet implemented. (TQt v3+)
</Para>
<FuncSynopsis>
- <FuncDef>const QValueList&lt;QVariant&gt;<Function>toList</Function> const</FuncDef>
+ <FuncDef>const TQValueList&lt;TQVariant&gt;<Function>toList</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -4472,41 +4472,41 @@ Not yet implemented.
</Para>
<FuncSynopsis>
- <FuncDef>const QMap&lt;QString,QVariant&gt;<Function>toMap</Function> const</FuncDef>
+ <FuncDef>const TQMap&lt;TQString,TQVariant&gt;<Function>toMap</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
Not yet implemented.
</Para>
</Sect2>
-<Sect2><Title>QVBox (Qt v2+)</Title>
+<Sect2><Title>TQVBox (TQt v2+)</Title>
<Para>
-<Literal>QVBox</Literal> is fully implemented.
+<Literal>TQVBox</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QVButtonGroup (Qt v2+)</Title>
+<Sect2><Title>TQVButtonGroup (TQt v2+)</Title>
<Para>
-<Literal>QVButtonGroup</Literal> is fully implemented.
+<Literal>TQVButtonGroup</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QVGroupBox (Qt v2+)</Title>
+<Sect2><Title>TQVGroupBox (TQt v2+)</Title>
<Para>
-<Literal>QVGroupBox</Literal> is fully implemented.
+<Literal>TQVGroupBox</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QWaitCondition (Qt v2.2+)</Title>
+<Sect2><Title>TQWaitCondition (TQt v2.2+)</Title>
<Para>
-<Literal>QWaitCondition</Literal> is fully implemented.
+<Literal>TQWaitCondition</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QWhatsThis</Title>
+<Sect2><Title>TQWhatsThis</Title>
<Para>
-<Literal>QWhatsThis</Literal> is fully implemented.
+<Literal>TQWhatsThis</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QWidget</Title>
+<Sect2><Title>TQWidget</Title>
<FuncSynopsis>
- <FuncDef>QWExtra *<Function>extraData</Function></FuncDef>
+ <FuncDef>TQWExtra *<Function>extraData</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -4514,7 +4514,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QFocusData *<Function>focusData</Function></FuncDef>
+ <FuncDef>TQFocusData *<Function>focusData</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -4537,24 +4537,24 @@ This has been renamed to <Literal>lowerW</Literal> in Python.
This has been renamed to <Literal>raiseW</Literal> in Python.
</Para>
</Sect2>
-<Sect2><Title>QWidgetList</Title>
+<Sect2><Title>TQWidgetList</Title>
<Para>
-This class isn't implemented. Whenever a <Literal>QWidgetList</Literal> is the
+This class isn't implemented. Whenever a <Literal>TQWidgetList</Literal> is the
return type of a function or the type of an argument, a Python list of
instances is used instead.
</Para>
</Sect2>
-<Sect2><Title>QWidgetStack</Title>
+<Sect2><Title>TQWidgetStack</Title>
<Para>
-<Literal>QWidgetStack</Literal> is fully implemented.
+<Literal>TQWidgetStack</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QWindow</Title>
+<Sect2><Title>TQWindow</Title>
<Para>
-<Literal>QWindow</Literal> is fully implemented (Qt v1.x).
+<Literal>TQWindow</Literal> is fully implemented (TQt v1.x).
</Para>
</Sect2>
-<Sect2><Title>QWindowsStyle (Qt v2+)</Title>
+<Sect2><Title>TQWindowsStyle (TQt v2+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>getButtonShift</Function></FuncDef>
<ParamDef>int &<Parameter>x</Parameter></ParamDef>
@@ -4562,12 +4562,12 @@ instances is used instead.
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>x</Literal> and
-<Literal>y</Literal> values. (Qt v2)
+<Literal>y</Literal> values. (TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>sb</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
@@ -4577,12 +4577,12 @@ This takes no parameters and returns a tuple of the <Literal>x</Literal> and
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
-(Qt v2)
+(TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>void <Function>tabbarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>t</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
<ParamDef>int &<Parameter>hframe</Parameter></ParamDef>
<ParamDef>int &<Parameter>vframe</Parameter></ParamDef>
<ParamDef>int &<Parameter>overlap</Parameter></ParamDef>
@@ -4590,31 +4590,31 @@ This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Para>
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
-<Literal>overlap</Literal> values. (Qt v2)
+<Literal>overlap</Literal> values. (TQt v2)
</Para>
</Sect2>
-<Sect2><Title>QWindowsXPStyle (Qt v3.0.1+, Windows)</Title>
+<Sect2><Title>TQWindowsXPStyle (TQt v3.0.1+, Windows)</Title>
<Para>
-<Literal>QWindowsXPStyle</Literal> is fully implemented.
+<Literal>TQWindowsXPStyle</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QWizard (Qt v2+)</Title>
+<Sect2><Title>TQWizard (TQt v2+)</Title>
<Para>
-<Literal>QWizard</Literal> is fully implemented.
+<Literal>TQWizard</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QWMatrix</Title>
+<Sect2><Title>TQWMatrix</Title>
<Para>
The Python <Literal>==</Literal>, <Literal>!=</Literal> and
<Literal>*=</Literal> operators are supported.
</Para>
<FuncSynopsis>
- <FuncDef>QWMatrix <Function>invert</Function> const</FuncDef>
+ <FuncDef>TQWMatrix <Function>invert</Function> const</FuncDef>
<ParamDef>bool *<Parameter>invertible</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
-This takes no parameters and returns a tuple of the <Literal>QWMatrix</Literal>
+This takes no parameters and returns a tuple of the <Literal>TQWMatrix</Literal>
result and the <Literal>invertible</Literal> value.
</Para>
@@ -4641,7 +4641,7 @@ values.
<Para>
This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
returns a tuple containing the <Literal>tx</Literal> and <Literal>ty</Literal>
-values. (Qt v1.x)
+values. (TQt v1.x)
</Para>
<FuncSynopsis>
@@ -4654,19 +4654,19 @@ values. (Qt v1.x)
<Para>
This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
returns a tuple containing the <Literal>tx</Literal> and <Literal>ty</Literal>
-values. (Qt v2+)
+values. (TQt v2+)
</Para>
</Sect2>
-<Sect2><Title>QWorkspace (Qt v2.1+)</Title>
+<Sect2><Title>TQWorkspace (TQt v2.1+)</Title>
<Para>
-<Literal>QWorkspace</Literal> is fully implemented.
+<Literal>TQWorkspace</Literal> is fully implemented.
</Para>
</Sect2>
</Sect1>
<Sect1><Title><Literal>qtaxcontainer</Literal> Module Reference</Title>
-<Sect2><Title>QAxBase (Windows, Qt v3+)</Title>
+<Sect2><Title>TQAxBase (Windows, TQt v3+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QAxObject</Function></FuncDef>
+ <FuncDef><Function>TQAxObject</Function></FuncDef>
<ParamDef>IUnknown *<Parameter>iface</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -4675,7 +4675,7 @@ Not implemented.
<FuncSynopsis>
<FuncDef>long <Function>queryInterface</Function></FuncDef>
- <ParamDef>const QUuid &amp;<Parameter>uuid</Parameter></ParamDef>
+ <ParamDef>const TQUuid &amp;<Parameter>uuid</Parameter></ParamDef>
<ParamDef>void **<Parameter>iface</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -4700,16 +4700,16 @@ Not implemented.
<FuncSynopsis>
<FuncDef>unsigned long <Function>registerWeakActiveObject</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>guid</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>guid</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-This is a utility method provided by PyQt to make it easier to use
+This is a utility method provided by PyTQt to make it easier to use
Mark Hammond's <Literal>win32com</Literal> module to manipulate objects
created by the <Literal>qtaxcontainer</Literal> module.
</Para>
<Para>
The <Literal>RegisterActiveObject()</Literal> COM function is called to
-register the <Literal>QAxBase</Literal> instance as a weak object with the
+register the <Literal>TQAxBase</Literal> instance as a weak object with the
<Literal>guid</Literal> GUID. The revoke handle is returned.
</Para>
@@ -4724,22 +4724,22 @@ function and is called to revoke the object registered using
the revoke handle returned by <Literal>registerWeakActiveObject()</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QAxObject (Windows, Qt v3+)</Title>
+<Sect2><Title>TQAxObject (Windows, TQt v3+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QAxObject</Function></FuncDef>
+ <FuncDef><Function>TQAxObject</Function></FuncDef>
<ParamDef>IUnknown *<Parameter>iface</Parameter></ParamDef>
- <ParamDef>QObject *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQObject *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QAxWidget (Windows, Qt v3+)</Title>
+<Sect2><Title>TQAxWidget (Windows, TQt v3+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QAxWidget</Function></FuncDef>
+ <FuncDef><Function>TQAxWidget</Function></FuncDef>
<ParamDef>IUnknown *<Parameter>iface</Parameter></ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -4748,106 +4748,106 @@ Not implemented.
</Sect2>
</Sect1>
<Sect1><Title><Literal>qtcanvas</Literal> Module Reference</Title>
-<Sect2><Title>QCanvas (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvas (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvas</Literal> is fully implemented.
+<Literal>TQCanvas</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasEllipse (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasEllipse (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasEllipse</Literal> is fully implemented.
+<Literal>TQCanvasEllipse</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasItem (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasItem (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasItem</Literal> is fully implemented.
+<Literal>TQCanvasItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasItemList (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasItemList (TQt v2.2+)</Title>
<Para>
-This class isn't implemented. Whenever a <Literal>QCanvasItemList</Literal> is
+This class isn't implemented. Whenever a <Literal>TQCanvasItemList</Literal> is
the return type of a function or the type of an argument, a Python list of
-<Literal>QCanvasItem</Literal> instances is used instead.
+<Literal>TQCanvasItem</Literal> instances is used instead.
</Para>
</Sect2>
-<Sect2><Title>QCanvasLine (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasLine (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasLine</Literal> is fully implemented.
+<Literal>TQCanvasLine</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasPixmap (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasPixmap (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasPixmap</Literal> is fully implemented.
+<Literal>TQCanvasPixmap</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasPixmapArray (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasPixmapArray (TQt v2.2+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QPixmapArray</Function></FuncDef>
- <ParamDef>QList&lt;QPixmap&gt; <Parameter>pixmaps</Parameter></ParamDef>
- <ParamDef>QList&lt;QPoint&gt; <Parameter>hotspots</Parameter></ParamDef>
+ <FuncDef><Function>TQPixmapArray</Function></FuncDef>
+ <ParamDef>TQList&lt;TQPixmap&gt; <Parameter>pixmaps</Parameter></ParamDef>
+ <ParamDef>TQList&lt;TQPoint&gt; <Parameter>hotspots</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-The <Literal>pixmaps</Literal> argument is a Python list of QPixmap instances,
-and the <Literal>hotspots</Literal> argument is a Python list of QPoint
-instances. (Qt v2.2.0 - Qt v2.3.1)
+The <Literal>pixmaps</Literal> argument is a Python list of TQPixmap instances,
+and the <Literal>hotspots</Literal> argument is a Python list of TQPoint
+instances. (TQt v2.2.0 - TQt v2.3.1)
</Para>
<FuncSynopsis>
- <FuncDef><Function>QPixmapArray</Function></FuncDef>
- <ParamDef>QValueList&lt;QPixmap&gt; <Parameter>pixmaps</Parameter></ParamDef>
- <ParamDef>QPointArray <Parameter>hotspots</Parameter> = QPointArray()</ParamDef>
+ <FuncDef><Function>TQPixmapArray</Function></FuncDef>
+ <ParamDef>TQValueList&lt;TQPixmap&gt; <Parameter>pixmaps</Parameter></ParamDef>
+ <ParamDef>TQPointArray <Parameter>hotspots</Parameter> = TQPointArray()</ParamDef>
</FuncSynopsis>
<Para>
-The <Literal>pixmaps</Literal> argument is a Python list of QPixmap instances.
-(Qt v3+)
+The <Literal>pixmaps</Literal> argument is a Python list of TQPixmap instances.
+(TQt v3+)
</Para>
</Sect2>
-<Sect2><Title>QCanvasPolygon (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasPolygon (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasPolygon</Literal> is fully implemented.
+<Literal>TQCanvasPolygon</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasPolygonalItem (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasPolygonalItem (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasPolygonalItem</Literal> is fully implemented.
+<Literal>TQCanvasPolygonalItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasRectangle (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasRectangle (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasRectangle</Literal> is fully implemented.
+<Literal>TQCanvasRectangle</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasSpline (Qt v3.0+)</Title>
+<Sect2><Title>TQCanvasSpline (TQt v3.0+)</Title>
<Para>
-<Literal>QCanvasSpline</Literal> is fully implemented.
+<Literal>TQCanvasSpline</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasSprite (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasSprite (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasSprite</Literal> is fully implemented.
+<Literal>TQCanvasSprite</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasText (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasText (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasText</Literal> is fully implemented.
+<Literal>TQCanvasText</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasView (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasView (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasView</Literal> is fully implemented.
+<Literal>TQCanvasView</Literal> is fully implemented.
</Para>
</Sect2>
</Sect1>
@@ -4914,13 +4914,13 @@ This takes no parameters and returns a tuple of the values returned by the
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerBash (QScintilla v1.4+)</Title>
+<Sect2><Title>QextScintillaLexerBash (TQScintilla v1.4+)</Title>
<Para>
<Literal>QextScintillaLexerBash</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerBatch (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerBatch (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerBatch</Literal> is fully implemented.
</Para>
@@ -4938,19 +4938,19 @@ This takes no parameters and returns a tuple of the values returned by the
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerCSS (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerCSS (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerCSS</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerDiff (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerDiff (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerDiff</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerHTML (QScintilla v1.1+)</Title>
+<Sect2><Title>QextScintillaLexerHTML (TQScintilla v1.1+)</Title>
<Para>
<Literal>QextScintillaLexerHTML</Literal> is fully implemented.
</Para>
@@ -4974,13 +4974,13 @@ This takes no parameters and returns a tuple of the values returned by the
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerLua (QScintilla v1.5+)</Title>
+<Sect2><Title>QextScintillaLexerLua (TQScintilla v1.5+)</Title>
<Para>
<Literal>QextScintillaLexerLua</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerMakefile (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerMakefile (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerMakefile</Literal> is fully implemented.
</Para>
@@ -4992,13 +4992,13 @@ This takes no parameters and returns a tuple of the values returned by the
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerPOV (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerPOV (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerPOV</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerProperties (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerProperties (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerProperties</Literal> is fully implemented.
</Para>
@@ -5010,19 +5010,19 @@ This takes no parameters and returns a tuple of the values returned by the
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerRuby (QScintilla v1.5+)</Title>
+<Sect2><Title>QextScintillaLexerRuby (TQScintilla v1.5+)</Title>
<Para>
<Literal>QextScintillaLexerRuby</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerSQL (QScintilla v1.1+)</Title>
+<Sect2><Title>QextScintillaLexerSQL (TQScintilla v1.1+)</Title>
<Para>
<Literal>QextScintillaLexerSQL</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerTeX (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerTeX (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerTeX</Literal> is fully implemented.
</Para>
@@ -5041,34 +5041,34 @@ This takes no parameters and returns a tuple of the values returned by the
</Sect2>
</Sect1>
<Sect1><Title><Literal>qtgl</Literal> Module Reference</Title>
-<Sect2><Title>QGL</Title>
+<Sect2><Title>TQGL</Title>
<Para>
-<Literal>QGL</Literal> is fully implemented.
+<Literal>TQGL</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGLContext</Title>
+<Sect2><Title>TQGLContext</Title>
<Para>
-<Literal>QGLContext</Literal> is fully implemented.
+<Literal>TQGLContext</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGLFormat</Title>
+<Sect2><Title>TQGLFormat</Title>
<Para>
-<Literal>QGLFormat</Literal> is fully implemented.
+<Literal>TQGLFormat</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGLWidget</Title>
+<Sect2><Title>TQGLWidget</Title>
<Para>
-<Literal>QGLWidget</Literal> is fully implemented.
+<Literal>TQGLWidget</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGLColormap (Qt v3.0+)</Title>
+<Sect2><Title>TQGLColormap (TQt v3.0+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>setEntries</Function></FuncDef>
<ParamDef>int <Parameter>count</Parameter></ParamDef>
- <ParamDef>const QRgb *<Parameter>colors</Parameter></ParamDef>
+ <ParamDef>const TQRgb *<Parameter>colors</Parameter></ParamDef>
<ParamDef>int <Parameter>base</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -5077,12 +5077,12 @@ Not yet implemented.
</Sect2>
</Sect1>
<Sect1><Title><Literal>qtnetwork</Literal> Module Reference</Title>
-<Sect2><Title>QDns (Qt v2.2+)</Title>
+<Sect2><Title>TQDns (TQt v2.2+)</Title>
<Para>
-<Literal>QDns</Literal> is fully implemented.
+<Literal>TQDns</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QFtp (Qt v2.2+)</Title>
+<Sect2><Title>TQFtp (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
@@ -5094,9 +5094,9 @@ This takes a single <Literal>maxlen</Literal> parameter. The
<Literal>None</Literal> is returned.
</Para>
</Sect2>
-<Sect2><Title>QHostAddress (Qt v2.2+)</Title>
+<Sect2><Title>TQHostAddress (TQt v2.2+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QHostAddress</Function></FuncDef>
+ <FuncDef><Function>TQHostAddress</Function></FuncDef>
<ParamDef>Q_UINT8 *<Parameter>ip6Addr</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -5104,7 +5104,7 @@ Not yet implemented.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QHostAddress</Function></FuncDef>
+ <FuncDef><Function>TQHostAddress</Function></FuncDef>
<ParamDef>const Q_IPV6ADDR &amp;<Parameter>ip6Addr</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -5127,7 +5127,7 @@ Not yet implemented.
Not yet implemented.
</Para>
</Sect2>
-<Sect2><Title>QHttp (Qt v3+)</Title>
+<Sect2><Title>TQHttp (TQt v3+)</Title>
<FuncSynopsis>
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
@@ -5140,34 +5140,34 @@ This takes a single <Literal>maxlen</Literal> parameter. The
</Para>
</Sect2>
-<Sect2><Title>QHttpHeader (Qt v3.1+)</Title>
+<Sect2><Title>TQHttpHeader (TQt v3.1+)</Title>
<Para>
-<Literal>QHttpHeader</Literal> is fully implemented.
+<Literal>TQHttpHeader</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QHttpRequestHeader (Qt v3.1+)</Title>
+<Sect2><Title>TQHttpRequestHeader (TQt v3.1+)</Title>
<Para>
-<Literal>QHttpRequestHeader</Literal> is fully implemented.
+<Literal>TQHttpRequestHeader</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QHttpResponseHeader (Qt v3.1+)</Title>
+<Sect2><Title>TQHttpResponseHeader (TQt v3.1+)</Title>
<Para>
-<Literal>QHttpResponseHeader</Literal> is fully implemented.
+<Literal>TQHttpResponseHeader</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QLocalFs (Qt v2.1+)</Title>
+<Sect2><Title>TQLocalFs (TQt v2.1+)</Title>
<Para>
-<Literal>QLocalFs</Literal> is fully implemented.
+<Literal>TQLocalFs</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QServerSocket (Qt v2.2+)</Title>
+<Sect2><Title>TQServerSocket (TQt v2.2+)</Title>
<Para>
-<Literal>QServerSocket</Literal> is fully implemented.
+<Literal>TQServerSocket</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QSocket (Qt v2.2+)</Title>
+<Sect2><Title>TQSocket (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
@@ -5200,7 +5200,7 @@ This takes a single <Literal>maxlen</Literal> parameter. The
as a parameter.
</Para>
</Sect2>
-<Sect2><Title>QSocketDevice (Qt v2.2+)</Title>
+<Sect2><Title>TQSocketDevice (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
@@ -5225,16 +5225,16 @@ as a parameter.
</Sect1>
<Sect1><Title><Literal>qtpe</Literal> Module Reference</Title>
-<Sect2><Title>QPEApplication</Title>
+<Sect2><Title>TQPEApplication</Title>
<FuncSynopsis>
- <FuncDef><Function>QApplication</Function></FuncDef>
+ <FuncDef><Function>TQApplication</Function></FuncDef>
<ParamDef>int& <Parameter>argc</Parameter></ParamDef>
<ParamDef>char **<Parameter>argv</Parameter></ParamDef>
<ParamDef>Type <Parameter>type</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes two parameters, the first of which is a list of argument strings.
-Arguments used by Qt are removed from the list.
+Arguments used by TQt are removed from the list.
</Para>
<FuncSynopsis>
@@ -5248,7 +5248,7 @@ This has been renamed to <Literal>exec_loop</Literal> in Python.
<Sect2><Title>AppLnk</Title>
<FuncSynopsis>
- <FuncDef>virtual QString <Function>exec</Function> const</FuncDef>
+ <FuncDef>virtual TQString <Function>exec</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -5276,7 +5276,7 @@ This has been renamed to <Literal>exec_property</Literal> in Python.
<Sect2><Title>DocLnk</Title>
<FuncSynopsis>
- <FuncDef>QString <Function>exec</Function> const</FuncDef>
+ <FuncDef>TQString <Function>exec</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -5330,27 +5330,27 @@ Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QCopEnvelope</Title>
+<Sect2><Title>TQCopEnvelope</Title>
<Para>
-<Literal>QCopEnvelope</Literal> is fully implemented.
+<Literal>TQCopEnvelope</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDawg</Title>
+<Sect2><Title>TQDawg</Title>
<Para>
-<Literal>QDawg</Literal> is fully implemented.
+<Literal>TQDawg</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QPEMenuBar</Title>
+<Sect2><Title>TQPEMenuBar</Title>
<Para>
-<Literal>QPEMenuBar</Literal> is fully implemented.
+<Literal>TQPEMenuBar</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QPEToolBar</Title>
+<Sect2><Title>TQPEToolBar</Title>
<Para>
-<Literal>QPEToolBar</Literal> is fully implemented.
+<Literal>TQPEToolBar</Literal> is fully implemented.
</Para>
</Sect2>
@@ -5362,7 +5362,7 @@ Not implemented.
</Sect1>
<Sect1><Title><Literal>qtsql</Literal> Module Reference</Title>
-<Sect2><Title>QDataBrowser (Qt v3+)</Title>
+<Sect2><Title>TQDataBrowser (TQt v3+)</Title>
<FuncSynopsis>
<FuncDef>virtual void <Function>del</Function></FuncDef>
<ParamDef></ParamDef>
@@ -5371,27 +5371,27 @@ Not implemented.
This has been renamed <Literal>delOnCursor</Literal> in Python.
</Para>
</Sect2>
-<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>
-<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>
-<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>
-<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>
-<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>
@@ -5402,7 +5402,7 @@ This has been renamed <Literal>delRecords</Literal> in Python.
<FuncSynopsis>
<FuncDef>virtual int <Function>del</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>filter</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>filter</Parameter></ParamDef>
<ParamDef>bool <Parameter>invalidate</Parameter> = TRUE</ParamDef>
</FuncSynopsis>
<Para>
@@ -5411,81 +5411,81 @@ This has been renamed <Literal>delRecords</Literal> in Python.
<FuncSynopsis>
<FuncDef>bool <Function>exec</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>query</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>query</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This has been renamed <Literal>execQuery</Literal> in Python.
</Para>
</Sect2>
-<Sect2><Title>QSqlDatabase (Qt v3+)</Title>
+<Sect2><Title>TQSqlDatabase (TQt v3+)</Title>
<FuncSynopsis>
- <FuncDef>QSqlQuery <Function>exec</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>query</Parameter> = QString::null</ParamDef>
+ <FuncDef>TQSqlQuery <Function>exec</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>query</Parameter> = TQString::null</ParamDef>
</FuncSynopsis>
<Para>
This has been renamed <Literal>execStatement</Literal> in Python.
</Para>
</Sect2>
-<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>
-<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>
-<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>
-<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>
-<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>
-<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>
-<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>
-<Sect2><Title>QSqlQuery (Qt v3+)</Title>
+<Sect2><Title>TQSqlQuery (TQt v3+)</Title>
<FuncSynopsis>
- <FuncDef>QMap&lt;QString,QVariant&gt; <Function>boundValues</Function> const</FuncDef>
+ <FuncDef>TQMap&lt;TQString,TQVariant&gt; <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 &amp;<Parameter>query</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>query</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This has been renamed <Literal>execQuery</Literal> in Python.
@@ -5496,27 +5496,27 @@ 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>
-<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>
-<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>
-<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>
@@ -5527,7 +5527,7 @@ This has been renamed <Literal>delRecords</Literal> in Python.
<FuncSynopsis>
<FuncDef>bool <Function>exec</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>query</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>query</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This has been renamed <Literal>execQuery</Literal> in Python.
@@ -5535,69 +5535,69 @@ This has been renamed <Literal>execQuery</Literal> in Python.
</Sect2>
</Sect1>
<Sect1><Title><Literal>qttable</Literal> Module Reference</Title>
-<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>
</Sect1>
<Sect1><Title><Literal>qtui</Literal> Module Reference</Title>
-<Sect2><Title>QWidgetFactory (Qt v3+)</Title>
+<Sect2><Title>TQWidgetFactory (TQt v3+)</Title>
<Para>
-<Literal>QWidgetFactory</Literal> is fully implemented.
+<Literal>TQWidgetFactory</Literal> is fully implemented.
</Para>
</Sect2>
</Sect1>
<Sect1><Title><Literal>qtxml</Literal> Module Reference</Title>
-<Sect2><Title>QDomImplementation (Qt v2.2+)</Title>
+<Sect2><Title>TQDomImplementation (TQt v2.2+)</Title>
<Para>
-<Literal>QDomImplementation</Literal> is fully implemented.
+<Literal>TQDomImplementation</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomNode (Qt v2.2+)</Title>
+<Sect2><Title>TQDomNode (TQt v2.2+)</Title>
<Para>
-<Literal>QDomNode</Literal> is fully implemented, including the Python
+<Literal>TQDomNode</Literal> is fully implemented, including the Python
<Literal>==</Literal> and <Literal>!=</Literal> operators.
</Para>
</Sect2>
-<Sect2><Title>QDomNodeList (Qt v2.2+)</Title>
+<Sect2><Title>TQDomNodeList (TQt v2.2+)</Title>
<Para>
-<Literal>QDomNodeList</Literal> is fully implemented.
+<Literal>TQDomNodeList</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomDocument (Qt v2.2+)</Title>
+<Sect2><Title>TQDomDocument (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QCString &amp;<Parameter>buffer</Parameter></ParamDef>
+ <ParamDef>const TQCString &amp;<Parameter>buffer</Parameter></ParamDef>
<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -5606,14 +5606,14 @@ This takes the <Literal>buffer</Literal> and
<Literal>namespaceProcessing</Literal> parameters and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QByteArray &amp;<Parameter>buffer</Parameter></ParamDef>
+ <ParamDef>const TQByteArray &amp;<Parameter>buffer</Parameter></ParamDef>
<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -5622,14 +5622,14 @@ This takes the <Literal>buffer</Literal> and
<Literal>namespaceProcessing</Literal> parameters and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>text</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>text</Parameter></ParamDef>
<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -5638,14 +5638,14 @@ This takes the <Literal>text</Literal> and
<Literal>namespaceProcessing</Literal> parameters and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QIODevice *<Parameter>dev</Parameter></ParamDef>
+ <ParamDef>const TQIODevice *<Parameter>dev</Parameter></ParamDef>
<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -5654,13 +5654,13 @@ This takes the <Literal>dev</Literal> and
<Literal>namespaceProcessing</Literal> parameters and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QCString &amp;<Parameter>buffer</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>const TQCString &amp;<Parameter>buffer</Parameter></ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -5668,13 +5668,13 @@ containing the <Literal>bool</Literal> result and the
This takes the <Literal>buffer</Literal> parameter only and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QByteArray &amp;<Parameter>buffer</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>const TQByteArray &amp;<Parameter>buffer</Parameter></ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -5682,13 +5682,13 @@ containing the <Literal>bool</Literal> result and the
This takes the <Literal>buffer</Literal> parameter only and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>text</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>text</Parameter></ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -5696,13 +5696,13 @@ containing the <Literal>bool</Literal> result and the
This takes the <Literal>text</Literal> parameter only and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QIODevice *<Parameter>dev</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>const TQIODevice *<Parameter>dev</Parameter></ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -5710,97 +5710,97 @@ containing the <Literal>bool</Literal> result and the
This takes the <Literal>dev</Literal> parameter only and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>QXmlInputSource *<Parameter>source</Parameter></ParamDef>
- <ParamDef>QXmlReader *<Parameter>reader</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>TQXmlInputSource *<Parameter>source</Parameter></ParamDef>
+ <ParamDef>TQXmlReader *<Parameter>reader</Parameter></ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v3.2.0+)
+Not yet implemented. (TQt v3.2.0+)
</Para>
</Sect2>
-<Sect2><Title>QDomDocumentFragment (Qt v2.2+)</Title>
+<Sect2><Title>TQDomDocumentFragment (TQt v2.2+)</Title>
<Para>
-<Literal>QDomDocumentFragment</Literal> is fully implemented.
+<Literal>TQDomDocumentFragment</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomDocumentType (Qt v2.2+)</Title>
+<Sect2><Title>TQDomDocumentType (TQt v2.2+)</Title>
<Para>
-<Literal>QDomDocumentType</Literal> is fully implemented.
+<Literal>TQDomDocumentType</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomNamedNodeMap (Qt v2.2+)</Title>
+<Sect2><Title>TQDomNamedNodeMap (TQt v2.2+)</Title>
<Para>
-<Literal>QDomNamedNodeMap</Literal> is fully implemented.
+<Literal>TQDomNamedNodeMap</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomCharacterData (Qt v2.2+)</Title>
+<Sect2><Title>TQDomCharacterData (TQt v2.2+)</Title>
<Para>
-<Literal>QDomCharacterData</Literal> is fully implemented.
+<Literal>TQDomCharacterData</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomAttr (Qt v2.2+)</Title>
+<Sect2><Title>TQDomAttr (TQt v2.2+)</Title>
<Para>
-<Literal>QDomAttr</Literal> is fully implemented.
+<Literal>TQDomAttr</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomElement (Qt v2.2+)</Title>
+<Sect2><Title>TQDomElement (TQt v2.2+)</Title>
<Para>
-<Literal>QDomElement</Literal> is fully implemented.
+<Literal>TQDomElement</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomText (Qt v2.2+)</Title>
+<Sect2><Title>TQDomText (TQt v2.2+)</Title>
<Para>
-<Literal>QDomText</Literal> is fully implemented.
+<Literal>TQDomText</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomComment (Qt v2.2+)</Title>
+<Sect2><Title>TQDomComment (TQt v2.2+)</Title>
<Para>
-<Literal>QDomComment</Literal> is fully implemented.
+<Literal>TQDomComment</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomCDATASection (Qt v2.2+)</Title>
+<Sect2><Title>TQDomCDATASection (TQt v2.2+)</Title>
<Para>
-<Literal>QDomCDATASection</Literal> is fully implemented.
+<Literal>TQDomCDATASection</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomNotation (Qt v2.2+)</Title>
+<Sect2><Title>TQDomNotation (TQt v2.2+)</Title>
<Para>
-<Literal>QDomNotation</Literal> is fully implemented.
+<Literal>TQDomNotation</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomEntity (Qt v2.2+)</Title>
+<Sect2><Title>TQDomEntity (TQt v2.2+)</Title>
<Para>
-<Literal>QDomEntity</Literal> is fully implemented.
+<Literal>TQDomEntity</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomEntityReference (Qt v2.2+)</Title>
+<Sect2><Title>TQDomEntityReference (TQt v2.2+)</Title>
<Para>
-<Literal>QDomEntityReference</Literal> is fully implemented.
+<Literal>TQDomEntityReference</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomProcessingInstruction (Qt v2.2+)</Title>
+<Sect2><Title>TQDomProcessingInstruction (TQt v2.2+)</Title>
<Para>
-<Literal>QDomProcessingInstruction</Literal> is fully implemented.
+<Literal>TQDomProcessingInstruction</Literal> is fully implemented.
</Para>
</Sect2>
</Sect1>
diff --git a/doc/qtdocs.sip b/doc/qtdocs.sip
index 1113e94..52ed1ed 100644
--- a/doc/qtdocs.sip
+++ b/doc/qtdocs.sip
@@ -1,22 +1,22 @@
-// This is the SIP file for organising the PyQt documentation.
+// This is the SIP file for organising the PyTQt documentation.
//
// 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.
@@ -30,14 +30,14 @@
<!DOCTYPE Article PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
<Article>
<ArtHeader>
- <Title>Python Bindings for Qt (3.18.1)</Title>
+ <Title>Python Bindings for TQt (3.18.1)</Title>
<Author>
<FirstName>Phil</FirstName>
<Surname>Thompson</Surname>
</Author>
<Abstract>
<Para>
- This document describes a set of Python bindings for the Qt widget set.
+ This document describes a set of Python bindings for the TQt widget set.
Contact the author at <Email>phil@riverbankcomputing.co.uk</Email>.
</Para>
</Abstract>
@@ -46,34 +46,34 @@
<Sect1><Title>Introduction</Title>
<Para>
-PyQt is a set of Python bindings for the Qt toolkit and available for all
-platforms supported by Qt, including Windows, Linux, UNIX, MacOS/X and embedded
+PyTQt is a set of Python bindings for the TQt toolkit and available for all
+platforms supported by TQt, including Windows, Linux, UNIX, MacOS/X and embedded
systems such as the Sharp Zaurus and the Compaq iPAQ. They have been tested
-against Qt versions 1.43 to 3.3.6, Qt Non-commercial, Qtopia 1.5.0, and Python
-versions 1.5 to 2.4.2. Qt/Embedded v3 is not supported. Qt v4 is supported
-by PyQt v4.
+against TQt versions 1.43 to 3.3.6, TQt Non-commercial, TQtopia 1.5.0, and Python
+versions 1.5 to 2.4.2. TQt/Embedded v3 is not supported. TQt v4 is supported
+by PyTQt v4.
</Para>
<Para>
-PyQt is available under the GPL license for use with the GPL version of Qt, a
-a commercial license for use with the commercial version of Qt, a
-non-commercial license for use with the non-commercial version of Qt v2, and an
-educational license for use with the educational version of Qt.
+PyTQt is available under the GPL license for use with the GPL version of TQt, a
+a commercial license for use with the commercial version of TQt, a
+non-commercial license for use with the non-commercial version of TQt v2, and an
+educational license for use with the educational version of TQt.
</Para>
<Para>
-There is also an evaluation version of PyQt for Windows. This must be used
-with the corresponding evaluation version of Qt.
+There is also an evaluation version of PyTQt for Windows. This must be used
+with the corresponding evaluation version of TQt.
</Para>
<Para>
-PyQt is built using SIP (a tool for generating Python extension modules for
+PyTQt is built using SIP (a tool for generating Python extension modules for
C++ class libraries). SIP v4.6 or later must be installed in order to build
-and run this version of PyQt.
+and run this version of PyTQt.
</Para>
<Para>
-PyQt for MacOS/X requires Qt v3.1.0 or later and Python v2.3 or later.
+PyTQt for MacOS/X retquires TQt v3.1.0 or later and Python v2.3 or later.
</Para>
<Para>
@@ -91,81 +91,81 @@ user interface widgets.
<ListItem>
<Para>
<Literal>qtaxcontainer</Literal> contains a sub-set of the classes implemented
-in Qt's QAxContainer module, part of Qt's ActiveQt framework.
+in TQt's TQAxContainer module, part of TQt's ActiveTQt framework.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtcanvas</Literal> contains the classes implemented in Qt's Canvas
+<Literal>qtcanvas</Literal> contains the classes implemented in TQt's Canvas
module.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtgl</Literal> contains the classes implemented in Qt's OpenGL module.
+<Literal>qtgl</Literal> contains the classes implemented in TQt's OpenGL module.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtnetwork</Literal> contains the classes implemented in Qt's Network
+<Literal>qtnetwork</Literal> contains the classes implemented in TQt's Network
module.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtpe</Literal> contains the classes implemented in Qtopia (originally
-called the Qt Palmtop Environment). It is only supported with Qt/Embedded.
+<Literal>qtpe</Literal> contains the classes implemented in TQtopia (originally
+called the TQt Palmtop Environment). It is only supported with TQt/Embedded.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtsql</Literal> contains the classes implemented in Qt's SQL module.
+<Literal>qtsql</Literal> contains the classes implemented in TQt's SQL module.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qttable</Literal> contains the classes implemented in Qt's Table
+<Literal>qttable</Literal> contains the classes implemented in TQt's Table
module.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtui</Literal> contains the classes implemented in Qt's qui library.
-These allow GUIs to be created directly from Qt Designer's
+<Literal>qtui</Literal> contains the classes implemented in TQt's tqui library.
+These allow GUIs to be created directly from TQt Designer's
<Literal>.ui</Literal> files.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>qtxml</Literal> contains the classes implemented in Qt's XML module.
+<Literal>qtxml</Literal> contains the classes implemented in TQt's XML module.
</Para>
</ListItem>
<ListItem>
<Para>
<Literal>qtext</Literal> contains useful third-party classes that are not part
-of Qt. At the moment it contains bindings for QScintilla, the port to Qt of
+of TQt. At the moment it contains bindings for TQScintilla, the port to TQt of
the Scintilla programmer's editor class.
</Para>
</ListItem>
</ItemizedList>
<Para>
-PyQt also includes the <Literal>pyuic</Literal> and
-<Literal>pylupdate</Literal> utilities which correspond to the Qt
+PyTQt also includes the <Literal>pyuic</Literal> and
+<Literal>pylupdate</Literal> utilities which correspond to the TQt
<Literal>uic</Literal> and <Literal>lupdate</Literal> utilities.
-<Literal>pyuic</Literal> converts the GUI designs created with Qt Designer to
+<Literal>pyuic</Literal> converts the GUI designs created with TQt Designer to
executable Python code. <Literal>pylupdate</Literal> scans Python code,
extracts all strings that are candidates for internationalisation, and creates
-an XML file for use by Qt Linguist.
+an XML file for use by TQt Linguist.
</Para>
<Sect2><Title>Changes</Title>
@@ -176,26 +176,26 @@ The changes visible to the Python programmer in this release are as follows.
<ListItem>
<Para>
-This version requires SIP v4.4 (or later).
+This version retquires SIP v4.4 (or later).
</Para>
</ListItem>
<ListItem>
<Para>
-Concatenating Python strings and <Literal>QString</Literal>s is now supported.
+Concatenating Python strings and <Literal>TQString</Literal>s is now supported.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>QString</Literal> now supports the <Literal>*</Literal> and
+<Literal>TQString</Literal> now supports the <Literal>*</Literal> and
<Literal>*=</Literal> operators that behave as they do for Python strings.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>QString</Literal> is more interoperable with Python string and unicode
+<Literal>TQString</Literal> is more interoperable with Python string and unicode
objects. For example they can be passed as arguments to
<Literal>open()</Literal> and to most (but not all) string methods.
</Para>
@@ -203,17 +203,17 @@ objects. For example they can be passed as arguments to
<ListItem>
<Para>
-<Literal>QPopupMenu</Literal> (and sub-classes) instances now transfer
+<Literal>TQPopupMenu</Literal> (and sub-classes) instances now transfer
ownership of the menu to Python in the call to <Literal>exec_loop()</Literal>.
This means the menu's resources are all released when the Python wrapper is
garbage collected without needing to call
-<Literal>QObject.deleteLater()</Literal>.
+<Literal>TQObject.deleteLater()</Literal>.
</Para>
</ListItem>
<ListItem>
<Para>
-<Literal>QObject.sender()</Literal> now handles Python signals.
+<Literal>TQObject.sender()</Literal> now handles Python signals.
</Para>
</ListItem>
@@ -233,7 +233,7 @@ The missing <Literal>MacintoshVersion</Literal> enum has been added.
<Para>
The convention for converting between a C/C++ null pointer and Python's
<Literal>None</Literal> object has now been universally applied. In previous
-versions a null pointer to, for example, a Qt list container would often be
+versions a null pointer to, for example, a TQt list container would often be
converted to an empty list rather than <Literal>None</Literal>.
</Para>
</ListItem>
@@ -243,16 +243,16 @@ converted to an empty list rather than <Literal>None</Literal>.
</Sect1>
-<Sect1><Title>Other PyQt Goodies</Title>
-<Sect2><Title>Using Qt Designer</Title>
+<Sect1><Title>Other PyTQt Goodies</Title>
+<Sect2><Title>Using TQt Designer</Title>
<Para>
-Qt Designer is a GPL'ed GUI design editor provided by Trolltech as part of Qt.
-It generates an XML description of a GUI design. Qt includes
+TQt Designer is a GPL'ed GUI design editor provided by Trolltech as part of TQt.
+It generates an XML description of a GUI design. TQt includes
<Literal>uic</Literal> which generates C++ code from that XML.
</Para>
<Para>
-PyQt includes <Literal>pyuic</Literal> which generates Python code from the
+PyTQt includes <Literal>pyuic</Literal> which generates Python code from the
same XML. The Python code is self contained and can be executed immediately.
</Para>
@@ -260,10 +260,10 @@ same XML. The Python code is self contained and can be executed immediately.
It is sometimes useful to be able to include some specific Python code in the
output generated by <Literal>pyuic</Literal>. For example, if you are using
custom widgets, <Literal>pyuic</Literal> has no way of knowing the name of the
-Python module containing the widget and so cannot generate the required
+Python module containing the widget and so cannot generate the retquired
<Literal>import</Literal> statement. To help get around this,
<Literal>pyuic</Literal> will extract any lines entered in the
-<Literal>Comment</Literal> field of Qt Designer's
+<Literal>Comment</Literal> field of TQt Designer's
<Literal>Form Settings</Literal> dialog that begin with
<Literal>Python:</Literal> and copies them to the generated output.
</Para>
@@ -293,7 +293,7 @@ from foo import bar
<Para>
Thanks to Christian Bird, <Literal>pyuic</Literal> will extract Python code
-entered using Qt Designer to implement slots. In Qt Designer, when you need to
+entered using TQt Designer to implement slots. In TQt Designer, when you need to
edit a slot and the source editor appears, enter Python code between the curly
braces. Don't worry about the correct starting indent level, each line is
prepended with a correct indentation.
@@ -314,7 +314,7 @@ Here's an example of a simple slot.
void DebMainWindowFrm::browsePushButtonClicked()
{
if self.debugging:
- QMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
+ TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
}
</ProgramListing>
@@ -323,11 +323,11 @@ Here is the resulting code when <Literal>pyuic</Literal> is run.
</Para>
<ProgramListing>
-class DebMainWindowFrm(QMainWindow):
+class DebMainWindowFrm(TQMainWindow):
...stuff...
def browsePushButtonClicked(self):
if self.debugging:
- QMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
+ TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
</ProgramListing>
<Para>
@@ -342,9 +342,9 @@ annoying when trying to code in Python.
</Para>
</Sect2>
-<Sect2><Title>Using Qt Linguist</Title>
+<Sect2><Title>Using TQt Linguist</Title>
<Para>
-Qt includes the <Literal>lupdate</Literal> program which parses C++ source
+TQt includes the <Literal>lupdate</Literal> program which parses C++ source
files converting calls to the <Literal>QT_TR_NOOP()</Literal> and
<Literal>QT_TRANSLATE_NOOP()</Literal> macros to <Literal>.ts</Literal>
language source files. The <Literal>lrelease</Literal> program is then used to
@@ -353,21 +353,21 @@ your application.
</Para>
<Para>
-Thanks to Detlev Offenbach, PyQt includes the <Literal>pylupdate</Literal>
+Thanks to Detlev Offenbach, PyTQt includes the <Literal>pylupdate</Literal>
program. This generates the same <Literal>.ts</Literal> language source files
-from your PyQt source files.
+from your PyTQt source files.
</Para>
</Sect2>
</Sect1>
-<Sect1><Title>Deploying Commercial PyQt Applications</Title>
+<Sect1><Title>Deploying Commercial PyTQt Applications</Title>
<Para>
-When deploying commercial PyQt applications it is necessary to discourage users
-from accessing the underlying PyQt modules for themselves. A user that used
+When deploying commercial PyTQt applications it is necessary to discourage users
+from accessing the underlying PyTQt modules for themselves. A user that used
the modules shipped with your application to develop new applications would
-themselves be considered a developer and would need their own commercial Qt and
-PyQt licenses.
+themselves be considered a developer and would need their own commercial TQt and
+PyTQt licenses.
</Para>
<Para>
@@ -376,13 +376,13 @@ One solution to this problem is the
package. This allows you to build Python extension modules that can only be
imported by a digitally signed custom interpreter. The package enables you to
create such an interpreter with your application embedded within it. The
-result is an interpreter that can only run your application, and PyQt modules
+result is an interpreter that can only run your application, and PyTQt modules
that can only be imported by that interpreter. You can use the package to
similarly restrict access to any extension module.
</Para>
<Para>
-In order to build PyQt with support for the VendorID package, pass the
+In order to build PyTQt with support for the VendorID package, pass the
<Literal>-i</Literal> command line flag to <Literal>configure.py</Literal>.
</Para>
</Sect1>
@@ -390,9 +390,9 @@ In order to build PyQt with support for the VendorID package, pass the
<Sect1><Title><Literal>pyqtconfig</Literal> and Build System Support</Title>
<Para>
The SIP build system (ie. the <Literal>sipconfig</Literal> module) is described
-in the SIP documentation. PyQt includes the <Literal>pyqtconfig</Literal>
+in the SIP documentation. PyTQt includes the <Literal>pyqtconfig</Literal>
module that can be used by configuration scripts of other bindings that are
-built on top of PyQt.
+built on top of PyTQt.
</Para>
<Para>
@@ -404,7 +404,7 @@ The <Literal>pyqtconfig</Literal> module contains the following classes:
<Term><Literal>Configuration(sipconfig.Configuration)</Literal></Term>
<ListItem>
<Para>
-This class encapsulates additional configuration values, specific to PyQt, that
+This class encapsulates additional configuration values, specific to PyTQt, that
can be accessed as instance variables.
</Para>
@@ -429,7 +429,7 @@ The name of the directory containing the <Literal>pyuic</Literal> and
<Term><Literal>pyqt_config_args</Literal></Term>
<ListItem>
<Para>
-The command line passed to <Literal>configure.py</Literal> when PyQt was
+The command line passed to <Literal>configure.py</Literal> when PyTQt was
configured.
</Para>
<Para></Para><Para></Para>
@@ -440,7 +440,7 @@ configured.
<Term><Literal>pyqt_mod_dir</Literal></Term>
<ListItem>
<Para>
-The name of the directory containing the PyQt modules.
+The name of the directory containing the PyTQt modules.
</Para>
<Para></Para><Para></Para>
</ListItem>
@@ -450,7 +450,7 @@ The name of the directory containing the PyQt modules.
<Term><Literal>pyqt_modules</Literal></Term>
<ListItem>
<Para>
-A string containing the names of the PyQt modules that were installed.
+A string containing the names of the PyTQt modules that were installed.
</Para>
<Para></Para><Para></Para>
</ListItem>
@@ -581,7 +581,7 @@ any module that imports the <Literal>qtxml</Literal> module.
<ListItem>
<Para>
The name of the base directory where the <Literal>.sip</Literal> files for each
-of the PyQt modules is installed. A sub-directory exists with the same name as
+of the PyTQt modules is installed. A sub-directory exists with the same name as
the module.
</Para>
<Para></Para><Para></Para>
@@ -592,7 +592,7 @@ the module.
<Term><Literal>pyqt_version</Literal></Term>
<ListItem>
<Para>
-The PyQt version as a 3 part hexadecimal number (eg. v3.10 is represented as
+The PyTQt version as a 3 part hexadecimal number (eg. v3.10 is represented as
<Literal>0x030a00</Literal>).
</Para>
<Para></Para><Para></Para>
@@ -603,7 +603,7 @@ The PyQt version as a 3 part hexadecimal number (eg. v3.10 is represented as
<Term><Literal>pyqt_version_str</Literal></Term>
<ListItem>
<Para>
-The PyQt version as a string. For development snapshots it will start with
+The PyTQt version as a string. For development snapshots it will start with
<Literal>snapshot-</Literal>.
</Para>
<Para></Para><Para></Para>
@@ -615,7 +615,7 @@ The PyQt version as a string. For development snapshots it will start with
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtModuleMakefile(sipconfig.SIPModuleMakefile)</Literal></Term>
+<Term><Literal>TQtModuleMakefile(sipconfig.SIPModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qt</Literal> module.
@@ -635,7 +635,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtAxContainerModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtAxContainerModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtaxcontainer</Literal>
@@ -656,7 +656,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtCanvasModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtCanvasModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtcanvas</Literal>
@@ -677,7 +677,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtExtModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtExtModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtext</Literal> module.
@@ -697,7 +697,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtGLModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtGLModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtgl</Literal> module.
@@ -717,7 +717,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtNetworkModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtNetworkModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtnetwork</Literal>
@@ -738,7 +738,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtTableModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtTableModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qttable</Literal>
@@ -759,7 +759,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtSQLModuleMakefile(QtTableModuleMakefile)</Literal></Term>
+<Term><Literal>TQtSQLModuleMakefile(TQtTableModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtsql</Literal> module.
@@ -779,7 +779,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtUIModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtUIModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtui</Literal> module.
@@ -799,7 +799,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
</VarListEntry>
<VarListEntry>
-<Term><Literal>QtXMLModuleMakefile(QtModuleMakefile)</Literal></Term>
+<Term><Literal>TQtXMLModuleMakefile(TQtModuleMakefile)</Literal></Term>
<ListItem>
<Para>
The Makefile class for modules that import the <Literal>qtxml</Literal> module.
@@ -827,15 +827,15 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
<Sect1><Title>Things to be Aware Of</Title>
<Sect2><Title>super and Wrapped Classes</Title>
<Para>
-Internally PyQt implements a lazy technique for attribute lookup where
+Internally PyTQt implements a lazy technique for attribute lookup where
attributes are only placed in type and instance dictionaries when they are
first referenced. This technique is needed to reduce the time taken to import
-large modules such as PyQt.
+large modules such as PyTQt.
</Para>
<Para>
In most circumstances this technique is transparent to an application. The
-exception is when <Literal>super</Literal> is used with a PyQt class. The way
+exception is when <Literal>super</Literal> is used with a PyTQt class. The way
that <Literal>super</Literal> is currently implemented means that the lazy
lookup is bypassed resulting in <Literal>AttributeError</Literal> exceptions
unless the attribute has been previously referenced.
@@ -843,49 +843,49 @@ unless the attribute has been previously referenced.
<Para>
Note that this restriction applies to any class wrapped by SIP and not just
-PyQt.
+PyTQt.
</Para>
</Sect2>
-<Sect2><Title>Python Strings, Qt Strings and Unicode</Title>
+<Sect2><Title>Python Strings, TQt Strings and Unicode</Title>
<Para>
-Unicode support was added to Qt in v2.0 and to Python in v1.6. In Qt, Unicode
-support is implemented using the <Literal>QString</Literal> class. It is
-important to understand that <Literal>QString</Literal>s, Python string objects
+Unicode support was added to TQt in v2.0 and to Python in v1.6. In TQt, Unicode
+support is implemented using the <Literal>TQString</Literal> class. It is
+important to understand that <Literal>TQString</Literal>s, Python string objects
and Python Unicode objects are all different but conversions between them are
automatic in almost all cases and easy to achieve manually when needed.
</Para>
<Para>
-Whenever PyQt expects a <Literal>QString</Literal> as a function argument, a
+Whenever PyTQt expects a <Literal>TQString</Literal> as a function argument, a
Python string object or a Python Unicode object can be provided instead, and
-PyQt will do the necessary conversion automatically.
+PyTQt will do the necessary conversion automatically.
</Para>
<Para>
You may also manually convert Python string and Unicode objects to
-<Literal>QString</Literal>s by using the <Literal>QString</Literal> constructor
+<Literal>TQString</Literal>s by using the <Literal>TQString</Literal> constructor
as demonstrated in the following code fragment.
</Para>
<ProgramListing>
-qs1 = QString('Converted Python string object')
-qs2 = QString(u'Converted Python Unicode object')
+qs1 = TQString('Converted Python string object')
+qs2 = TQString(u'Converted Python Unicode object')
</ProgramListing>
<Para>
-In order to convert a <Literal>QString</Literal> to a Python string object use
+In order to convert a <Literal>TQString</Literal> to a Python string object use
the Python <Literal>str()</Literal> function. Applying
-<Literal>str()</Literal> to a null <Literal>QString</Literal> and an empty
-<Literal>QString</Literal> both result in an empty Python string object.
+<Literal>str()</Literal> to a null <Literal>TQString</Literal> and an empty
+<Literal>TQString</Literal> both result in an empty Python string object.
</Para>
<Para>
-In order to convert a <Literal>QString</Literal> to a Python Unicode object use
+In order to convert a <Literal>TQString</Literal> to a Python Unicode object use
the Python <Literal>unicode()</Literal> function. Applying
-<Literal>unicode()</Literal> to a null <Literal>QString</Literal> and an empty
-<Literal>QString</Literal> both result in an empty Python Unicode object.
+<Literal>unicode()</Literal> to a null <Literal>TQString</Literal> and an empty
+<Literal>TQString</Literal> both result in an empty Python Unicode object.
</Para>
</Sect2>
@@ -914,7 +914,7 @@ whenever it is returned by the underlying C++ code.
<Sect2><Title>Support for C++ <Literal>void *</Literal> Data Types</Title>
<Para>
-PyQt represents <Literal>void *</Literal> values as objects of type
+PyTQt represents <Literal>void *</Literal> values as objects of type
<Literal>sip.voidptr</Literal>. Such values are often used to pass the
addresses of external objects between different Python modules. To make this
easier, a Python integer (or anything that Python can convert to an integer)
@@ -934,11 +934,11 @@ method takes an integer argument which is the length of the data in bytes.
<Sect2><Title>Support for Threads</Title>
<Para>
-PyQt implements the full set of Qt's thread classes. Python, of course, also
+PyTQt implements the full set of TQt's thread classes. Python, of course, also
has its own thread extension modules. If you are using SIP v4 (or later) and
-Python v2.3.5 (or later) then PyQt does not impose any additional restrictions.
-(Read the relevant part of the Qt documentation to understand the restrictions
-imposed by the Qt API.)
+Python v2.3.5 (or later) then PyTQt does not impose any additional restrictions.
+(Read the relevant part of the TQt documentation to understand the restrictions
+imposed by the TQt API.)
</Para>
<Para>
If you are using earlier versions of either SIP or Python then it is possible
@@ -947,27 +947,27 @@ to use either of the APIs so long as you follow some simple rules.
<ItemizedList>
<ListItem>
<Para>
-If you use the Qt API then the very first <Literal>import</Literal> of one of
-the PyQt modules must be done from the main thread.
+If you use the TQt API then the very first <Literal>import</Literal> of one of
+the PyTQt modules must be done from the main thread.
</Para>
</ListItem>
<ListItem>
<Para>
-If you use the Python API then all calls to PyQt (including any
+If you use the Python API then all calls to PyTQt (including any
<Literal>import</Literal>s) must be done from one thread only. Therefore, if
-you want to make calls to PyQt from several threads then you must use the Qt
+you want to make calls to PyTQt from several threads then you must use the TQt
API.
</Para>
</ListItem>
<ListItem>
<Para>
-If you want to use both APIs in the same application then all calls to PyQt
-must be done from threads created using the Qt API.
+If you want to use both APIs in the same application then all calls to PyTQt
+must be done from threads created using the TQt API.
</Para>
</ListItem>
</ItemizedList>
<Para>
-The above comments actually apply to any SIP generated module, not just PyQt.
+The above comments actually apply to any SIP generated module, not just PyTQt.
</Para>
</Sect2>
@@ -979,8 +979,8 @@ longer be referenced from within the program:
</Para>
<ProgramListing>
-c = new QColor();
-c = new QColor();
+c = new TQColor();
+c = new TQColor();
</ProgramListing>
<Para>
@@ -989,8 +989,8 @@ the second is assigned to <Literal>c</Literal>:
</Para>
<ProgramListing>
-c = QColor()
-c = QColor()
+c = TQColor()
+c = TQColor()
</ProgramListing>
<Para>
@@ -999,29 +999,29 @@ is done within class definitions, so the code fragment would be something like:
</Para>
<ProgramListing>
-self.c1 = QColor()
-self.c2 = QColor()
+self.c1 = TQColor()
+self.c2 = TQColor()
</ProgramListing>
<Para>
-Sometimes a Qt class instance will maintain a pointer to another instance and
+Sometimes a TQt class instance will maintain a pointer to another instance and
will eventually call the destructor of that second instance. The most common
-example is that a <Literal>QObject</Literal> (and any of its sub-classes) keeps
+example is that a <Literal>TQObject</Literal> (and any of its sub-classes) keeps
pointers to its children and will automatically call their destructors. In
these cases, the corresponding Python object will also keep a reference to the
corresponding child objects.
</Para>
<Para>
-So, in the following Python fragment, the first <Literal>QLabel</Literal> is
+So, in the following Python fragment, the first <Literal>TQLabel</Literal> is
not destroyed when the second is assigned to <Literal>l</Literal> because the
-parent <Literal>QWidget</Literal> still has a reference to it.
+parent <Literal>TQWidget</Literal> still has a reference to it.
</Para>
<ProgramListing>
-p = QWidget()
-l = QLabel('First label',p)
-l = QLabel('Second label',p)
+p = TQWidget()
+l = TQLabel('First label',p)
+l = TQLabel('Second label',p)
</ProgramListing>
</Sect2>
@@ -1032,9 +1032,9 @@ variables. For example:
</Para>
<ProgramListing>
-tab = QTab()
+tab = TQTab()
tab.label = "First Tab"
-tab.r = QRect(10,10,75,30)
+tab.r = TQRect(10,10,75,30)
</ProgramListing>
<Para>
@@ -1052,39 +1052,39 @@ the future.
<Sect2><Title>Multiple Inheritance</Title>
<Para>
It is not possible to define a new Python class that sub-classes from more than
-one Qt class.
+one TQt class.
</Para>
</Sect2>
<Sect2><Title>i18n Support</Title>
<Para>
-Qt implements i18n support through the Qt Linguist application, the
-<Literal>QTranslator</Literal> class, and the
-<Literal>QApplication::translate()</Literal>, <Literal>QObject::tr()</Literal>
-and <Literal>QObject::trUtf8()</Literal> methods. Usually the
+TQt implements i18n support through the TQt Linguist application, the
+<Literal>TQTranslator</Literal> class, and the
+<Literal>TQApplication::translate()</Literal>, <Literal>TQObject::tr()</Literal>
+and <Literal>TQObject::trUtf8()</Literal> methods. Usually the
<Literal>tr()</Literal> method is used to obtain the correct translation of a
message. The translation process uses a message context to allow the same
message to be translated differently. <Literal>tr()</Literal> is actually
generated by <Literal>moc</Literal> and uses the hardcoded class name as the
-context. On the other hand, <Literal>QApplication::translate()</Literal>
+context. On the other hand, <Literal>TQApplication::translate()</Literal>
allows to context to be explicitly stated.
</Para>
<Para>
-Unfortunately, because of the way Qt implents <Literal>tr()</Literal> (and
-<Literal>trUtf8()</Literal>) it is not possible for PyQt to exactly reproduce
-its behavour. The PyQt implementation of <Literal>tr()</Literal> (and
+Unfortunately, because of the way TQt implents <Literal>tr()</Literal> (and
+<Literal>trUtf8()</Literal>) it is not possible for PyTQt to exactly reproduce
+its behavour. The PyTQt implementation of <Literal>tr()</Literal> (and
<Literal>trUtf8()</Literal>) uses the class name of the instance as the
context. The key difference, and the source of potential problems, is that the
-context is determined dynamically in PyQt, but is hardcoded in Qt. In other
+context is determined dynamically in PyTQt, but is hardcoded in TQt. In other
words, the context of a translation may change depending on an instance's class
hierarchy.
</Para>
<ProgramListing>
-class A(QObject):
+class A(TQObject):
def __init__(self):
- QObject.__init__(self)
+ TQObject.__init__(self)
def hello(self):
return self.tr("Hello")
@@ -1108,19 +1108,19 @@ would be <Literal>A</Literal> in both cases.
</Para>
<Para>
-The PyQt behaviour is unsatisfactory and may be changed in the future. It is
-recommended that <Literal>QApplication.translate()</Literal> be used in
+The PyTQt behaviour is unsatisfactory and may be changed in the future. It is
+recommended that <Literal>TQApplication.translate()</Literal> be used in
preference to <Literal>tr()</Literal> (and <Literal>trUtf8()</Literal>). This
-is guaranteed to work with current and future versions of PyQt and makes it
+is guaranteed to work with current and future versions of PyTQt and makes it
much easier to share message files between Python and C++ code. Below is the
alternative implementation of <Literal>A</Literal> that uses
-<Literal>QApplication.translate()</Literal>.
+<Literal>TQApplication.translate()</Literal>.
</Para>
<ProgramListing>
-class A(QObject):
+class A(TQObject):
def __init__(self):
- QObject.__init__(self)
+ TQObject.__init__(self)
def hello(self):
return qApp.translate("A","Hello")
@@ -1128,7 +1128,7 @@ class A(QObject):
<Para>
Note that the code generated by <Literal>pyuic</Literal> uses
-<Literal>QApplication.translate()</Literal>.
+<Literal>TQApplication.translate()</Literal>.
</Para>
</Sect2>
</Sect1>
@@ -1136,15 +1136,15 @@ Note that the code generated by <Literal>pyuic</Literal> uses
<Sect1><Title>Signal and Slot Support</Title>
<Para>
-A signal may be either a Qt signal (specified using
+A signal may be either a TQt signal (specified using
<Literal>SIGNAL()</Literal>) or a Python signal (specified using
<Literal>PYSIGNAL()</Literal>).
</Para>
<Para>
-A slot can be either a Python callable object, a Qt signal (specified using
+A slot can be either a Python callable object, a TQt signal (specified using
<Literal>SIGNAL()</Literal>), a Python signal (specified using
-<Literal>PYSIGNAL()</Literal>), or a Qt slot (specified using
+<Literal>PYSIGNAL()</Literal>), or a TQt slot (specified using
<Literal>SLOT()</Literal>).
</Para>
@@ -1154,28 +1154,28 @@ example:
</Para>
<ProgramListing>
-QObject.connect(a,SIGNAL("QtSig()"),pyFunction)
-QObject.connect(a,SIGNAL("QtSig()"),pyClass.pyMethod)
-QObject.connect(a,SIGNAL("QtSig()"),PYSIGNAL("PySig"))
-QObject.connect(a,SIGNAL("QtSig()"),SLOT("QtSlot()"))
-QObject.connect(a,PYSIGNAL("PySig"),pyFunction)
-QObject.connect(a,PYSIGNAL("PySig"),pyClass.pyMethod)
-QObject.connect(a,PYSIGNAL("PySig"),SIGNAL("QtSig()"))
-QObject.connect(a,PYSIGNAL("PySig"),SLOT("QtSlot()"))
+TQObject.connect(a,SIGNAL("TQtSig()"),pyFunction)
+TQObject.connect(a,SIGNAL("TQtSig()"),pyClass.pyMethod)
+TQObject.connect(a,SIGNAL("TQtSig()"),PYSIGNAL("PySig"))
+TQObject.connect(a,SIGNAL("TQtSig()"),SLOT("TQtSlot()"))
+TQObject.connect(a,PYSIGNAL("PySig"),pyFunction)
+TQObject.connect(a,PYSIGNAL("PySig"),pyClass.pyMethod)
+TQObject.connect(a,PYSIGNAL("PySig"),SIGNAL("TQtSig()"))
+TQObject.connect(a,PYSIGNAL("PySig"),SLOT("TQtSlot()"))
</ProgramListing>
<Para>
-When a slot is a Python method that corresponds to a Qt slot then a signal can
-be connected to either the Python method or the Qt slot. The following
+When a slot is a Python method that corresponds to a TQt slot then a signal can
+be connected to either the Python method or the TQt slot. The following
connections achieve the same effect.
</Para>
<ProgramListing>
-sbar = QScrollBar()
-lcd = QLCDNumber()
+sbar = TQScrollBar()
+lcd = TQLCDNumber()
-QObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd.display)
-QObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))
+TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd.display)
+TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))
</ProgramListing>
<Para>
@@ -1188,9 +1188,9 @@ Disconnecting signals works in exactly the same way.
</Para>
<Para>
-Any instance of a class that is derived from the <Literal>QObject</Literal>
+Any instance of a class that is derived from the <Literal>TQObject</Literal>
class can emit a signal using the <Literal>emit</Literal> method. This takes
-two arguments. The first is the Python or Qt signal, the second is a Python
+two arguments. The first is the Python or TQt signal, the second is a Python
tuple which are the arguments to the signal. For example:
</Para>
@@ -1209,8 +1209,8 @@ garbage collected.
</Para>
<Para>
-Qt allows a signal to be connected to a slot that requires fewer arguments than
-the signal passes. The extra arguments are quietly discarded. Python slots
+TQt allows a signal to be connected to a slot that retquires fewer arguments than
+the signal passes. The extra arguments are tquietly discarded. Python slots
can be used in the same way.
</Para>
</Sect1>
@@ -1220,9 +1220,9 @@ can be used in the same way.
<Para>
Static member functions are implemented as Python class functions.
For example the C++ static member function
-<Literal>QObject::connect()</Literal> is called from Python as
-<Literal>QObject.connect()</Literal> or <Literal>self.connect()</Literal> if
-called from a sub-class of <Literal>QObject</Literal>.
+<Literal>TQObject::connect()</Literal> is called from Python as
+<Literal>TQObject.connect()</Literal> or <Literal>self.connect()</Literal> if
+called from a sub-class of <Literal>TQObject</Literal>.
</Para>
</Sect1>
@@ -1239,9 +1239,9 @@ the enumerated type was defined in must be included. For example:
</Para>
<ProgramListing>
-Qt.SolidPattern
-QWidget.TabFocus
-QFrame.TabFocus
+TQt.SolidPattern
+TQWidget.TabFocus
+TQFrame.TabFocus
</ProgramListing>
</Sect1>
@@ -1548,13 +1548,13 @@ This takes no parameters and returns a tuple of the values returned by the
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerBash (QScintilla v1.4+)</Title>
+<Sect2><Title>QextScintillaLexerBash (TQScintilla v1.4+)</Title>
<Para>
<Literal>QextScintillaLexerBash</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerBatch (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerBatch (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerBatch</Literal> is fully implemented.
</Para>
@@ -1572,19 +1572,19 @@ This takes no parameters and returns a tuple of the values returned by the
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerCSS (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerCSS (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerCSS</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerDiff (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerDiff (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerDiff</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerHTML (QScintilla v1.1+)</Title>
+<Sect2><Title>QextScintillaLexerHTML (TQScintilla v1.1+)</Title>
<Para>
<Literal>QextScintillaLexerHTML</Literal> is fully implemented.
</Para>
@@ -1608,13 +1608,13 @@ This takes no parameters and returns a tuple of the values returned by the
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerLua (QScintilla v1.5+)</Title>
+<Sect2><Title>QextScintillaLexerLua (TQScintilla v1.5+)</Title>
<Para>
<Literal>QextScintillaLexerLua</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerMakefile (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerMakefile (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerMakefile</Literal> is fully implemented.
</Para>
@@ -1626,13 +1626,13 @@ This takes no parameters and returns a tuple of the values returned by the
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerPOV (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerPOV (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerPOV</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerProperties (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerProperties (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerProperties</Literal> is fully implemented.
</Para>
@@ -1644,19 +1644,19 @@ This takes no parameters and returns a tuple of the values returned by the
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerRuby (QScintilla v1.5+)</Title>
+<Sect2><Title>QextScintillaLexerRuby (TQScintilla v1.5+)</Title>
<Para>
<Literal>QextScintillaLexerRuby</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerSQL (QScintilla v1.1+)</Title>
+<Sect2><Title>QextScintillaLexerSQL (TQScintilla v1.1+)</Title>
<Para>
<Literal>QextScintillaLexerSQL</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QextScintillaLexerTeX (QScintilla v1.6+)</Title>
+<Sect2><Title>QextScintillaLexerTeX (TQScintilla v1.6+)</Title>
<Para>
<Literal>QextScintillaLexerTeX</Literal> is fully implemented.
</Para>
@@ -1715,16 +1715,16 @@ This takes no parameters and returns a tuple of the values returned by the
%ExportedDoc
<Sect1><Title><Literal>qtpe</Literal> Module Reference</Title>
-<Sect2><Title>QPEApplication</Title>
+<Sect2><Title>TQPEApplication</Title>
<FuncSynopsis>
- <FuncDef><Function>QApplication</Function></FuncDef>
+ <FuncDef><Function>TQApplication</Function></FuncDef>
<ParamDef>int& <Parameter>argc</Parameter></ParamDef>
<ParamDef>char **<Parameter>argv</Parameter></ParamDef>
<ParamDef>Type <Parameter>type</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes two parameters, the first of which is a list of argument strings.
-Arguments used by Qt are removed from the list.
+Arguments used by TQt are removed from the list.
</Para>
<FuncSynopsis>
@@ -1738,7 +1738,7 @@ This has been renamed to <Literal>exec_loop</Literal> in Python.
<Sect2><Title>AppLnk</Title>
<FuncSynopsis>
- <FuncDef>virtual QString <Function>exec</Function> const</FuncDef>
+ <FuncDef>virtual TQString <Function>exec</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -1766,7 +1766,7 @@ This has been renamed to <Literal>exec_property</Literal> in Python.
<Sect2><Title>DocLnk</Title>
<FuncSynopsis>
- <FuncDef>QString <Function>exec</Function> const</FuncDef>
+ <FuncDef>TQString <Function>exec</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -1820,27 +1820,27 @@ Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QCopEnvelope</Title>
+<Sect2><Title>TQCopEnvelope</Title>
<Para>
-<Literal>QCopEnvelope</Literal> is fully implemented.
+<Literal>TQCopEnvelope</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDawg</Title>
+<Sect2><Title>TQDawg</Title>
<Para>
-<Literal>QDawg</Literal> is fully implemented.
+<Literal>TQDawg</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QPEMenuBar</Title>
+<Sect2><Title>TQPEMenuBar</Title>
<Para>
-<Literal>QPEMenuBar</Literal> is fully implemented.
+<Literal>TQPEMenuBar</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QPEToolBar</Title>
+<Sect2><Title>TQPEToolBar</Title>
<Para>
-<Literal>QPEToolBar</Literal> is fully implemented.
+<Literal>TQPEToolBar</Literal> is fully implemented.
</Para>
</Sect2>
diff --git a/examples2/README b/examples2/README
index 1c1938f..a337e9b 100644
--- a/examples2/README
+++ b/examples2/README
@@ -2,9 +2,9 @@ To run these examples, make sure you have your PYTHONPATH environment variable
set if needed and explicitly set the path to python at the top of each script
if you don't have /usr/bin/env.
-The examples are written for Qt v2.x.
+The examples are written for TQt v2.x.
-A much better source of information about using PyQt is Boudewijn Rempt's
+A much better source of information about using PyTQt is Boudewijn Rempt's
book at http://stage.linuxports.com/projects/pyqt/.
Phil Thompson
diff --git a/examples2/aclock.py b/examples2/aclock.py
index 38ed36c..9fc773b 100755
--- a/examples2/aclock.py
+++ b/examples2/aclock.py
@@ -3,34 +3,34 @@
import sys
from qt import *
-def QMIN(x, y):
+def TQMIN(x, y):
if y > x: return y
return x
-class AnalogClock(QWidget):
+class AnalogClock(TQWidget):
def __init__(self, *args):
- apply(QWidget.__init__,(self,) + args)
- self.time = QTime.currentTime()
- internalTimer = QTimer(self)
+ apply(TQWidget.__init__,(self,) + args)
+ self.time = TQTime.currentTime()
+ internalTimer = TQTimer(self)
self.connect(internalTimer, SIGNAL("timeout()"), self.timeout)
internalTimer.start(5000)
def timeout(self):
- new_time = QTime.currentTime()
+ new_time = TQTime.currentTime()
if new_time.minute() != self.time.minute():
self.update()
def paintEvent(self, qe):
if not self.isVisible():
return
- self.time = QTime.currentTime()
+ self.time = TQTime.currentTime()
- pts = QPointArray()
- paint = QPainter(self)
+ pts = TQPointArray()
+ paint = TQPainter(self)
paint.setBrush(self.foregroundColor())
- cp = QPoint(self.rect().center())
- d = QMIN(self.width(), self.height())
- matrix = QWMatrix()
+ cp = TQPoint(self.rect().center())
+ d = TQMIN(self.width(), self.height())
+ matrix = TQWMatrix()
matrix.translate(cp.x(), cp.y())
matrix.scale(d/1000.0, d/1000.0)
@@ -53,7 +53,7 @@ class AnalogClock(QWidget):
paint.drawLine(450,0, 500,0)
matrix.rotate(30)
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
clock = AnalogClock()
clock.resize(100,100)
a.setMainWidget(clock)
diff --git a/examples2/addressbook.py b/examples2/addressbook.py
index d7316e3..e151996 100755
--- a/examples2/addressbook.py
+++ b/examples2/addressbook.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-# A port to PyQt of the application example from Qt v2.x.
+# A port to PyTQt of the application example from TQt v2.x.
import sys, string
@@ -76,10 +76,10 @@ fileprint = [
'dd...........ddd'
]
-class ABCentralWidget( QWidget ):
+class ABCentralWidget( TQWidget ):
def __init__( self, *args ):
- apply( QWidget.__init__, (self, ) + args )
- self.mainGrid = QGridLayout( self, 2, 1, 5, 5 )
+ apply( TQWidget.__init__, (self, ) + args )
+ self.mainGrid = TQGridLayout( self, 2, 1, 5, 5 )
self.setupTabWidget()
self.setupListView()
@@ -91,16 +91,16 @@ class ABCentralWidget( QWidget ):
if not self.listView.firstChild():
return
- f = QFile( filename )
+ f = TQFile( filename )
if not f.open( IO_WriteOnly ):
return
- t = QTextStream( f )
+ t = TQTextStream( f )
- #it = QListViewItemIterator( self.listView )
+ #it = TQListViewItemIterator( self.listView )
while not t.eof():
- item = QListViewItem( self.listView )
+ item = TQListViewItem( self.listView )
for i in range (0, 4):
t << item.text( i ) << '\n'
#for it in it.current():
@@ -113,14 +113,14 @@ class ABCentralWidget( QWidget ):
def load( self, filename ):
self.listView.clear()
- f = QFile( filename )
+ f = TQFile( filename )
if not f.open( IO_ReadOnly ):
return
- t = QTextStream( f )
+ t = TQTextStream( f )
while not t.eof():
- item = QListViewItem( self.listView )
+ item = TQListViewItem( self.listView )
for i in range (0, 4):
item.setText( i, t.readLine() )
@@ -128,53 +128,53 @@ class ABCentralWidget( QWidget ):
def setupTabWidget( self ):
- self.tabWidget = QTabWidget( self )
+ self.tabWidget = TQTabWidget( self )
- self.input = QWidget( self.tabWidget )
- self.grid1 = QGridLayout( self.input, 2, 5, 5, 5 )
+ self.input = TQWidget( self.tabWidget )
+ self.grid1 = TQGridLayout( self.input, 2, 5, 5, 5 )
- self.liFirstName = QLabel( 'First &Name', self.input )
+ self.liFirstName = TQLabel( 'First &Name', self.input )
self.liFirstName.resize( self.liFirstName.sizeHint() )
self.grid1.addWidget( self.liFirstName, 0, 0 )
- self.liLastName = QLabel( '&Last Name', self.input )
+ self.liLastName = TQLabel( '&Last Name', self.input )
self.liLastName.resize( self.liLastName.sizeHint() )
self.grid1.addWidget( self.liLastName, 0, 1 )
- self.liAddress = QLabel( '&Address', self.input )
+ self.liAddress = TQLabel( '&Address', self.input )
self.liAddress.resize( self.liAddress.sizeHint() )
self.grid1.addWidget( self.liAddress, 0, 2 )
- self.liEMail = QLabel( '&E-Mail', self.input )
+ self.liEMail = TQLabel( '&E-Mail', self.input )
self.liEMail.resize( self.liEMail.sizeHint() )
self.grid1.addWidget( self.liEMail, 0, 3 )
- self.add = QPushButton( '&Add', self.input )
+ self.add = TQPushButton( '&Add', self.input )
self.add.resize( self.add.sizeHint() )
self.grid1.addWidget( self.add, 0, 4 )
self.connect( self.add, SIGNAL( 'clicked()' ), self.addEntry )
- self.iFirstName = QLineEdit( self.input )
+ self.iFirstName = TQLineEdit( self.input )
self.iFirstName.resize( self.iFirstName.sizeHint() )
self.grid1.addWidget( self.iFirstName, 1, 0 )
self.liFirstName.setBuddy( self.iFirstName )
- self.iLastName = QLineEdit( self.input )
+ self.iLastName = TQLineEdit( self.input )
self.iLastName.resize( self.iLastName.sizeHint() )
self.grid1.addWidget( self.iLastName, 1, 1 )
self.liLastName.setBuddy( self.iLastName )
- self.iAddress = QLineEdit( self.input )
+ self.iAddress = TQLineEdit( self.input )
self.iAddress.resize( self.iAddress.sizeHint() )
self.grid1.addWidget( self.iAddress, 1, 2 )
self.liAddress.setBuddy( self.iAddress )
- self.iEMail = QLineEdit( self.input )
+ self.iEMail = TQLineEdit( self.input )
self.iEMail.resize( self.iEMail.sizeHint() )
self.grid1.addWidget( self.iEMail, 1, 3 )
self.liEMail.setBuddy( self.iEMail )
- self.change = QPushButton( '&Change', self.input )
+ self.change = TQPushButton( '&Change', self.input )
self.change.resize( self.change.sizeHint() )
self.grid1.addWidget( self.change, 1, 4 )
self.connect( self.change, SIGNAL( 'clicked()' ), self.changeEntry )
@@ -183,46 +183,46 @@ class ABCentralWidget( QWidget ):
# --------------------------------------
- self.search = QWidget( self )
- self.grid2 = QGridLayout( self.search, 2, 5, 5, 5 )
+ self.search = TQWidget( self )
+ self.grid2 = TQGridLayout( self.search, 2, 5, 5, 5 )
- self.cFirstName = QCheckBox( 'First &Name', self.search )
+ self.cFirstName = TQCheckBox( 'First &Name', self.search )
self.cFirstName.resize( self.cFirstName.sizeHint() )
self.grid2.addWidget( self.cFirstName, 0, 0 )
self.connect( self.cFirstName, SIGNAL( 'clicked()' ), self.toggleFirstName )
- self.cLastName = QCheckBox( '&Last Name', self.search )
+ self.cLastName = TQCheckBox( '&Last Name', self.search )
self.cLastName.resize( self.cLastName.sizeHint() )
self.grid2.addWidget( self.cLastName, 0, 1 )
self.connect( self.cLastName, SIGNAL( 'clicked()' ), self.toggleLastName )
- self.cAddress = QCheckBox( '&Address', self.search )
+ self.cAddress = TQCheckBox( '&Address', self.search )
self.cAddress.resize( self.cAddress.sizeHint() )
self.grid2.addWidget( self.cAddress, 0, 2 )
self.connect( self.cAddress, SIGNAL( 'clicked()' ), self.toggleAddress )
- self.cEMail = QCheckBox( '&E-Mail', self.search )
+ self.cEMail = TQCheckBox( '&E-Mail', self.search )
self.cEMail.resize( self.cEMail.sizeHint() )
self.grid2.addWidget( self.cEMail, 0, 3 )
self.connect( self.cEMail, SIGNAL( 'clicked()' ), self.toggleEMail )
- self.sFirstName = QLineEdit( self.search )
+ self.sFirstName = TQLineEdit( self.search )
self.sFirstName.resize( self.sFirstName.sizeHint() )
self.grid2.addWidget( self.sFirstName, 1, 0 )
- self.sLastName = QLineEdit( self.search )
+ self.sLastName = TQLineEdit( self.search )
self.sLastName.resize( self.sLastName.sizeHint() )
self.grid2.addWidget( self.sLastName, 1, 1 )
- self.sAddress = QLineEdit( self.search )
+ self.sAddress = TQLineEdit( self.search )
self.sAddress.resize( self.sAddress.sizeHint() )
self.grid2.addWidget( self.sAddress, 1, 2 )
- self.sEMail = QLineEdit( self.search )
+ self.sEMail = TQLineEdit( self.search )
self.sEMail.resize( self.sEMail.sizeHint() )
self.grid2.addWidget( self.sEMail, 1, 3 )
- self.find = QPushButton( '&Find', self.search )
+ self.find = TQPushButton( '&Find', self.search )
self.find.resize( self.find.sizeHint() )
self.grid2.addWidget( self.find, 1, 4 )
self.connect( self.find, SIGNAL( 'clicked()' ), self.findEntries )
@@ -238,15 +238,15 @@ class ABCentralWidget( QWidget ):
self.mainGrid.addWidget( self.tabWidget, 0, 0 )
def setupListView( self ):
- self.listView = QListView( self )
+ self.listView = TQListView( self )
self.listView.addColumn( 'First Name' )
self.listView.addColumn( 'Last Name' )
self.listView.addColumn( 'Address' )
self.listView.addColumn( 'E-Mail' )
- self.listView.setSelectionMode( QListView.Extended )
+ self.listView.setSelectionMode( TQListView.Extended )
- self.connect( self.listView, SIGNAL( 'clicked( QListViewItem* )' ), self.itemSelected )
+ self.connect( self.listView, SIGNAL( 'clicked( TQListViewItem* )' ), self.itemSelected )
self.mainGrid.addWidget( self.listView, 1, 0 )
self.listView.setAllColumnsShowFocus( TRUE )
@@ -255,7 +255,7 @@ class ABCentralWidget( QWidget ):
def addEntry( self ):
if not self.iFirstName.text().isEmpty() or not self.iLastName.text().isEmpty() or \
not self.iAddress.text().isEmpty() or not self.iEMail.text().isEmpty() :
- self.item = QListViewItem( self.listView )
+ self.item = TQListViewItem( self.listView )
self.item.setText( 0, self.iFirstName.text() )
self.item.setText( 1, self.iLastName.text() )
self.item.setText( 2, self.iAddress.text() )
@@ -332,7 +332,7 @@ class ABCentralWidget( QWidget ):
self.listView.clearSelection()
return
- it = QListViewItemIterator( self.listView )
+ it = TQListViewItemIterator( self.listView )
for it in it.current() :
select = TRUE
@@ -369,38 +369,38 @@ class ABCentralWidget( QWidget ):
it.current().repaint()
-class ABMainWindow(QMainWindow):
+class ABMainWindow(TQMainWindow):
def __init__( self ):
- QMainWindow.__init__( self, None, 'example addressbook application' )
+ TQMainWindow.__init__( self, None, 'example addressbook application' )
- self.filename = QString.null
+ self.filename = TQString.null
self.setupMenuBar()
self.setupFileTools()
self.setupStatusBar()
self.setupCentralWidget()
def setupMenuBar( self ):
- self.file = QPopupMenu( self )
+ self.file = TQPopupMenu( self )
self.menuBar().insertItem( '&File', self.file )
- openIcon = QIconSet( QPixmap( fileopen ) )
- self.file.insertItem( 'New', self.fileNew, Qt.CTRL + Qt.Key_N )
- self.file.insertItem( openIcon, 'Open', self.fileOpen, Qt.CTRL + Qt.Key_O )
+ openIcon = TQIconSet( TQPixmap( fileopen ) )
+ self.file.insertItem( 'New', self.fileNew, TQt.CTRL + TQt.Key_N )
+ self.file.insertItem( openIcon, 'Open', self.fileOpen, TQt.CTRL + TQt.Key_O )
self.file.insertSeparator()
- saveIcon = QIconSet( QPixmap( filesave ) )
- self.file.insertItem( saveIcon, 'Save', self.fileSave, Qt.CTRL + Qt.Key_S )
+ saveIcon = TQIconSet( TQPixmap( filesave ) )
+ self.file.insertItem( saveIcon, 'Save', self.fileSave, TQt.CTRL + TQt.Key_S )
self.file.insertItem( 'Save As...', self.fileSaveAs )
self.file.insertSeparator()
- printIcon = QIconSet( QPixmap( fileprint ) )
- self.file.insertItem( printIcon, 'Print...', self.filePrint, Qt.CTRL + Qt.Key_P )
+ printIcon = TQIconSet( TQPixmap( fileprint ) )
+ self.file.insertItem( printIcon, 'Print...', self.filePrint, TQt.CTRL + TQt.Key_P )
self.file.insertSeparator()
- #self.file.insertItem( 'Close', self.closeWindow, Qt.CTRL + Qt.Key_W )
- self.file.insertItem('Close', self, SLOT('close()'), Qt.CTRL+Qt.Key_W)
- self.file.insertItem( 'Quit', qApp, SLOT( 'quit()' ), Qt.CTRL + Qt.Key_Q )
+ #self.file.insertItem( 'Close', self.closeWindow, TQt.CTRL + TQt.Key_W )
+ self.file.insertItem('Close', self, SLOT('close()'), TQt.CTRL+TQt.Key_W)
+ self.file.insertItem( 'Quit', qApp, SLOT( 'quit()' ), TQt.CTRL + TQt.Key_Q )
def setupFileTools( self ):
pass
- #self.fileTools = QToolBar( self, 'file operations' )
+ #self.fileTools = TQToolBar( self, 'file operations' )
def setupStatusBar( self ):
self.statusBar().message( "Ready", 2000 )
@@ -418,7 +418,7 @@ class ABMainWindow(QMainWindow):
pass
def fileOpen( self ):
- fn = QFileDialog.getOpenFileName( QString.null, QString.null, self )
+ fn = TQFileDialog.getOpenFileName( TQString.null, TQString.null, self )
if not fn.isEmpty():
self.filename = fn
self.view.load( self.filename )
@@ -431,7 +431,7 @@ class ABMainWindow(QMainWindow):
self.view.save( self.filename )
def fileSaveAs( self ):
- fn = QFileDialog.getSaveFileName( QString.null, QString.null, self )
+ fn = TQFileDialog.getSaveFileName( TQString.null, TQString.null, self )
if not fn.isEmpty():
self.filename = fn
self.fileSave
@@ -440,7 +440,7 @@ class ABMainWindow(QMainWindow):
pass
-a = QApplication( sys.argv )
+a = TQApplication( sys.argv )
mw = ABMainWindow()
#mw.setupMenuBar()
diff --git a/examples2/application.py b/examples2/application.py
index 294c6cb..8b8f43b 100755
--- a/examples2/application.py
+++ b/examples2/application.py
@@ -94,40 +94,40 @@ You can also select the <b>Print</b> command from the <b>File</b> menu.'''
editorList = []
-class ApplicationWindow(QMainWindow):
+class ApplicationWindow(TQMainWindow):
def __init__(self):
- QMainWindow.__init__(self,None,'example application main window',Qt.WDestructiveClose)
+ TQMainWindow.__init__(self,None,'example application main window',TQt.WDestructiveClose)
- self.filename = QString.null
- self.printer = QPrinter()
+ self.filename = TQString.null
+ self.printer = TQPrinter()
- self.fileTools = QToolBar(self,'file operations')
+ self.fileTools = TQToolBar(self,'file operations')
- openIcon = QPixmap(fileopen)
- self.fileOpen = QToolButton(openIcon,'Open File',QString.null,self.load,self.fileTools,'open file')
+ openIcon = TQPixmap(fileopen)
+ self.fileOpen = TQToolButton(openIcon,'Open File',TQString.null,self.load,self.fileTools,'open file')
- saveIcon = QPixmap(filesave)
- self.fileSave = QToolButton(saveIcon,'Save File',QString.null,self.save,self.fileTools,'save file')
+ saveIcon = TQPixmap(filesave)
+ self.fileSave = TQToolButton(saveIcon,'Save File',TQString.null,self.save,self.fileTools,'save file')
- printIcon = QPixmap(fileprint)
- self.filePrint = QToolButton(printIcon,'Print File',QString.null,self.printDoc,self.fileTools,'print file')
+ printIcon = TQPixmap(fileprint)
+ self.filePrint = TQToolButton(printIcon,'Print File',TQString.null,self.printDoc,self.fileTools,'print file')
- QWhatsThis.whatsThisButton(self.fileTools)
+ TQWhatsThis.whatsThisButton(self.fileTools)
- QWhatsThis.add(self.fileOpen,fileOpenText)
- QMimeSourceFactory.defaultFactory().setPixmap('fileopen',openIcon)
- QWhatsThis.add(self.fileSave,fileSaveText)
- QWhatsThis.add(self.filePrint,filePrintText)
+ TQWhatsThis.add(self.fileOpen,fileOpenText)
+ TQMimeSourceFactory.defaultFactory().setPixmap('fileopen',openIcon)
+ TQWhatsThis.add(self.fileSave,fileSaveText)
+ TQWhatsThis.add(self.filePrint,filePrintText)
- self.file = QPopupMenu(self)
+ self.file = TQPopupMenu(self)
self.menuBar().insertItem('&File',self.file)
- self.file.insertItem('&New',self.newDoc,Qt.CTRL + Qt.Key_N)
+ self.file.insertItem('&New',self.newDoc,TQt.CTRL + TQt.Key_N)
- id = self.file.insertItem(QIconSet(openIcon),'&Open',self.load,Qt.CTRL + Qt.Key_O)
+ id = self.file.insertItem(TQIconSet(openIcon),'&Open',self.load,TQt.CTRL + TQt.Key_O)
self.file.setWhatsThis(id,fileOpenText)
- id = self.file.insertItem(QIconSet(saveIcon),'&Save',self.save,Qt.CTRL + Qt.Key_S)
+ id = self.file.insertItem(TQIconSet(saveIcon),'&Save',self.save,TQt.CTRL + TQt.Key_S)
self.file.setWhatsThis(id,fileSaveText)
id = self.file.insertItem('Save &as',self.saveAs)
@@ -135,22 +135,22 @@ class ApplicationWindow(QMainWindow):
self.file.insertSeparator()
- id = self.file.insertItem(QIconSet(printIcon),'&Print',self.printDoc,Qt.CTRL + Qt.Key_P)
+ id = self.file.insertItem(TQIconSet(printIcon),'&Print',self.printDoc,TQt.CTRL + TQt.Key_P)
self.file.setWhatsThis(id,filePrintText)
self.file.insertSeparator()
- self.file.insertItem('&Close',self,SLOT('close()'),Qt.CTRL + Qt.Key_W)
- self.file.insertItem('&Quit',qApp,SLOT('closeAllWindows()'),Qt.CTRL + Qt.Key_Q)
+ self.file.insertItem('&Close',self,SLOT('close()'),TQt.CTRL + TQt.Key_W)
+ self.file.insertItem('&Quit',qApp,SLOT('closeAllWindows()'),TQt.CTRL + TQt.Key_Q)
- self.help = QPopupMenu(self)
+ self.help = TQPopupMenu(self)
self.menuBar().insertSeparator()
self.menuBar().insertItem('&Help',self.help)
- self.help.insertItem('&About',self.about,Qt.Key_F1)
- self.help.insertItem('About &Qt',self.aboutQt)
+ self.help.insertItem('&About',self.about,TQt.Key_F1)
+ self.help.insertItem('About &TQt',self.aboutTQt)
- self.e = QMultiLineEdit(self,'editor')
+ self.e = TQMultiLineEdit(self,'editor')
self.e.setFocus()
self.setCentralWidget(self.e)
@@ -163,7 +163,7 @@ class ApplicationWindow(QMainWindow):
editorList.append(ed)
def load(self):
- fn = QFileDialog.getOpenFileName(QString.null,QString.null,self)
+ fn = TQFileDialog.getOpenFileName(TQString.null,TQString.null,self)
if fn.isEmpty():
self.statusBar().message('Loading aborted',2000)
return
@@ -208,7 +208,7 @@ class ApplicationWindow(QMainWindow):
self.statusBar().message('File %s saved' % (self.filename),2000)
def saveAs(self):
- fn = QFileDialog.getSaveFileName(QString.null,QString.null,self)
+ fn = TQFileDialog.getSaveFileName(TQString.null,TQString.null,self)
if not fn.isEmpty():
self.filename = fn
self.save()
@@ -222,12 +222,12 @@ class ApplicationWindow(QMainWindow):
if self.printer.setup(self):
self.statusBar().message('Printing...')
- p = QPainter()
+ p = TQPainter()
p.begin(self.printer)
p.setFont(self.e.font())
yPos = 0
fm = p.fontMetrics()
- metrics = QPaintDeviceMetrics(self.printer)
+ metrics = TQPaintDeviceMetrics(self.printer)
for i in range(self.e.numLines):
if Margin + yPos > metrics.height() - Margin:
@@ -236,7 +236,7 @@ class ApplicationWindow(QMainWindow):
self.printer.newPage()
yPos = 0
- p.drawText(Margin,Margin + yPos,metrics.width(),fm.lineSpacing(),Qt.ExpandTabs | Qt.DontClip,self.e.textLine(i))
+ p.drawText(Margin,Margin + yPos,metrics.width(),fm.lineSpacing(),TQt.ExpandTabs | TQt.DontClip,self.e.textLine(i))
yPos = yPos + fm.lineSpacing()
p.end()
@@ -249,7 +249,7 @@ class ApplicationWindow(QMainWindow):
ce.accept()
return
- rc = QMessageBox.information(self,'Qt Application Example',
+ rc = TQMessageBox.information(self,'TQt Application Example',
'The document has been changed since the last save.',
'Save Now','Cancel','Leave Anyway',0,1)
@@ -262,14 +262,14 @@ class ApplicationWindow(QMainWindow):
ce.ignore()
def about(self):
- QMessageBox.about(self,'Qt Application Example',
- 'This example demonstrates simple use of QMainWindow,\nQMenuBar and QToolBar.')
+ TQMessageBox.about(self,'TQt Application Example',
+ 'This example demonstrates simple use of TQMainWindow,\nTQMenuBar and TQToolBar.')
- def aboutQt(self):
- QMessageBox.aboutQt(self,'Qt Application Example')
+ def aboutTQt(self):
+ TQMessageBox.aboutTQt(self,'TQt Application Example')
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
mw = ApplicationWindow()
mw.setCaption('Document 1')
mw.show()
diff --git a/examples2/buttongroups.py b/examples2/buttongroups.py
index 47256ab..147952a 100755
--- a/examples2/buttongroups.py
+++ b/examples2/buttongroups.py
@@ -4,7 +4,7 @@
#**
#** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
#**
-#** This file is part of an example program for Qt. This example
+#** This file is part of an example program for TQt. This example
#** program may be used, distributed and modified without limitation.
#**
#*****************************************************************************/
@@ -19,58 +19,58 @@ FALSE = 0
# Creates all child widgets of the ButtonGroups window
##
-class ButtonsGroups( QWidget ):
+class ButtonsGroups( TQWidget ):
def __init__( self, *args ):
- apply( QWidget.__init__, (self,) + args )
+ apply( TQWidget.__init__, (self,) + args )
# Create Widgets which allow easy layouting
- self.vbox = QVBoxLayout( self )
- self.box1 = QHBoxLayout( self.vbox )
- self.box2 = QHBoxLayout( self.vbox )
+ self.vbox = TQVBoxLayout( self )
+ self.box1 = TQHBoxLayout( self.vbox )
+ self.box2 = TQHBoxLayout( self.vbox )
# ------- first group
# Create an exclusive button group
- self.grp1 = QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 1 (exclusive)", self )
+ self.grp1 = TQButtonGroup( 1, TQGroupBox.Horizontal, "Button Group 1 (exclusive)", self )
self.box1.addWidget( self.grp1 )
self.grp1.setExclusive( TRUE )
# insert 3 radiobuttons
- self.rb11 = QRadioButton( "&Radiobutton 1", self.grp1 )
+ self.rb11 = TQRadioButton( "&Radiobutton 1", self.grp1 )
self.rb11.setChecked( TRUE )
- QRadioButton( "R&adiobutton 2", self.grp1 )
- QRadioButton( "Ra&diobutton 3", self.grp1 )
+ TQRadioButton( "R&adiobutton 2", self.grp1 )
+ TQRadioButton( "Ra&diobutton 3", self.grp1 )
# ------- second group
# Create a non-exclusive buttongroup
- self.grp2 = QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 2 (non-exclusive)", self )
+ self.grp2 = TQButtonGroup( 1, TQGroupBox.Horizontal, "Button Group 2 (non-exclusive)", self )
self.box1.addWidget( self.grp2 )
self.grp2.setExclusive( FALSE )
# insert 3 checkboxes
- QCheckBox( "&Checkbox 1", self.grp2 )
- self.cb12 = QCheckBox( "C&heckbox 2", self.grp2 )
+ TQCheckBox( "&Checkbox 1", self.grp2 )
+ self.cb12 = TQCheckBox( "C&heckbox 2", self.grp2 )
self.cb12.setChecked( TRUE )
- self.cb13 = QCheckBox( "Triple &State Button", self.grp2 )
+ self.cb13 = TQCheckBox( "Triple &State Button", self.grp2 )
self.cb13.setTristate( TRUE )
self.cb13.setChecked( TRUE )
# ------------ third group
# create a buttongroup which is exclusive for radiobuttons and non-exclusive for all other buttons
- self.grp3 = QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 3 (Radiobutton-exclusive)", self )
+ self.grp3 = TQButtonGroup( 1, TQGroupBox.Horizontal, "Button Group 3 (Radiobutton-exclusive)", self )
self.box2.addWidget( self.grp3 )
self.grp3.setRadioButtonExclusive( TRUE )
# insert three radiobuttons
- self.rb21 = QRadioButton( "Rad&iobutton 1", self.grp3 )
- self.rb22 = QRadioButton( "Radi&obutton 2", self.grp3 )
- self.rb23 = QRadioButton( "Radio&button 3", self.grp3 )
+ self.rb21 = TQRadioButton( "Rad&iobutton 1", self.grp3 )
+ self.rb22 = TQRadioButton( "Radi&obutton 2", self.grp3 )
+ self.rb23 = TQRadioButton( "Radio&button 3", self.grp3 )
self.rb23.setChecked( TRUE )
# insert a checkbox...
- self.state = QCheckBox( "E&nable Radiobuttons", self.grp3 )
+ self.state = TQCheckBox( "E&nable Radiobuttons", self.grp3 )
self.state.setChecked( TRUE )
# ...and connect its SIGNAL clicked() with the SLOT slotChangeGrp3State()
self.connect( self.state, SIGNAL( "clicked()" ), self.slotChangeGrp3State )
@@ -78,12 +78,12 @@ class ButtonsGroups( QWidget ):
# ------------ fourth group
# create a groupbox which layouts its childs in a columns
- self.grp4 = QButtonGroup( 1, QGroupBox.Horizontal, "Groupbox with normal buttons", self )
+ self.grp4 = TQButtonGroup( 1, TQGroupBox.Horizontal, "Groupbox with normal buttons", self )
self.box2.addWidget( self.grp4 )
# insert two pushbuttons...
- QPushButton( "&Push Button", self.grp4 )
- self.tb = QPushButton( "&Toggle Button", self.grp4 )
+ TQPushButton( "&Push Button", self.grp4 )
+ self.tb = TQPushButton( "&Toggle Button", self.grp4 )
# ... and make the second one a toggle button
self.tb.setToggleButton( TRUE )
@@ -102,7 +102,7 @@ class ButtonsGroups( QWidget ):
## main program
-a = QApplication( sys.argv )
+a = TQApplication( sys.argv )
buttonsgroups = ButtonsGroups()
buttonsgroups.resize( 500, 250 )
diff --git a/examples2/dclock.py b/examples2/dclock.py
index 5382d4f..d129681 100755
--- a/examples2/dclock.py
+++ b/examples2/dclock.py
@@ -1,17 +1,17 @@
#!/usr/bin/env python
-# A port to PyQt of the dclock example from Qt v2.x.
+# A port to PyTQt of the dclock example from TQt v2.x.
import sys, string
from qt import *
-class DigitalClock(QLCDNumber):
+class DigitalClock(TQLCDNumber):
def __init__(self, parent=None, name=None):
- QLCDNumber.__init__(self, parent, name)
+ TQLCDNumber.__init__(self, parent, name)
self.showingColon = 0
- self.setFrameStyle(QFrame.Panel | QFrame.Raised)
+ self.setFrameStyle(TQFrame.Panel | TQFrame.Raised)
self.setLineWidth(2)
self.showTime()
self.normalTimer = self.startTimer(500)
@@ -25,13 +25,13 @@ class DigitalClock(QLCDNumber):
self.showTime()
def mousePressEvent(self, e):
- if e.button() == Qt.LeftButton:
+ if e.button() == TQt.LeftButton:
self.showDate()
def showDate(self):
if self.showDateTimer != -1:
return
- d = QDate.currentDate()
+ d = TQDate.currentDate()
self.display('%2d %2d' % (d.month(), d.day()))
self.showDateTimer = self.startTimer(2000)
@@ -42,7 +42,7 @@ class DigitalClock(QLCDNumber):
def showTime(self):
self.showingColon = not self.showingColon
- s = list(str(QTime.currentTime().toString())[:5]) #.left(5)
+ s = list(str(TQTime.currentTime().toString())[:5]) #.left(5)
if not self.showingColon:
s[2] = ' '
if s[0] == '0':
@@ -50,7 +50,7 @@ class DigitalClock(QLCDNumber):
s = string.join(s,'')
self.display(s)
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
clock = DigitalClock()
clock.resize(170,80)
a.setMainWidget(clock)
diff --git a/examples2/desktop.py b/examples2/desktop.py
index a1177f2..cc0c97f 100755
--- a/examples2/desktop.py
+++ b/examples2/desktop.py
@@ -25,13 +25,13 @@ maxpoints = 5
maxcurves = 8
def poly():
- d = QApplication.desktop()
+ d = TQApplication.desktop()
d.setBackgroundColor(white)
xvel = [ 0 ] * 8
yvel = [ 0 ] * 8
head = 0
tail = -maxcurves + 2
- a = QPointArray() * maxcurves
+ a = TQPointArray() * maxcurves
r = d.rect()
for i in range(maxcurves):
a[i].resize(maxpoints)
@@ -42,11 +42,11 @@ def poly():
xvel[i] = velocity(i)
yvel[i] = velocity(i)
- paint = QPainter()
+ paint = TQPainter()
paint.begin(d)
for ntimes in range(2000):
- paint.setBrush(QColor(kindaRand()%360,180,255, QColor.Hsv))
+ paint.setBrush(TQColor(kindaRand()%360,180,255, TQColor.Hsv))
paint.drawPolygon(a[head])
tail = tail + 1
if tail >= maxcurves:
@@ -81,31 +81,31 @@ def poly():
def rotate():
w = 64
h = 64
- image = QImage(w, h, 8, 128)
+ image = TQImage(w, h, 8, 128)
for i in range(128):
image.setColor(i, qRgb(i,0,0))
for y in range(h):
for x in range(w):
image.setPixel(x,y,(x+y)%128)
- pm = QPixmap()
+ pm = TQPixmap()
pm.convertFromImage(image)
#pm.optimize(1)
- d = QApplication.desktop()
+ d = TQApplication.desktop()
for i in range(0,361,2):
- m = QWMatrix()
+ m = TQWMatrix()
m.rotate(i)
rpm = pm.xForm(m)
d.setBackgroundPixmap(rpm)
d.update()
def generateStone(pm, c1, c2, c3):
- p = QPainter()
- p1 = QPen(c1, 0)
- p2 = QPen(c2, 0)
- p3 = QPen(c3, 0)
+ p = TQPainter()
+ p1 = TQPen(c1, 0)
+ p2 = TQPen(c2, 0)
+ p3 = TQPen(c3, 0)
p.begin(pm)
for i in range(pm.width()):
@@ -129,9 +129,9 @@ def drawShadeText(p, x, y, text, topColor, bottomColor, sw=2):
p.setPen(topColor)
p.drawText(x, y, text)
-class DesktopWidget(QWidget):
+class DesktopWidget(TQWidget):
def __init__(self, s, parent=None, name=''):
- QWidget.__init__(self, parent, name, WType_Desktop | WPaintDesktop)
+ TQWidget.__init__(self, parent, name, WType_Desktop | WPaintDesktop)
self.text = s
self.pm = None
@@ -140,16 +140,16 @@ class DesktopWidget(QWidget):
c2 = c1.light(104)
c3 = c1.dark(106)
if not self.pm:
- self.pm = QPixmap(64, 64)
+ self.pm = TQPixmap(64, 64)
generateStone(self.pm, c1, c2, c3)
self.setBackgroundPixmap(self.pm)
self.update()
br = self.fontMetrics().boundingRect(self.text)
- offscreen = QPixmap(br.width(), br.height())
+ offscreen = TQPixmap(br.width(), br.height())
x = self.width()/2 - br.width()/2
y = self.height()/2 - br.height()/2
offscreen.fill(self, x, y)
- p = QPainter()
+ p = TQPainter()
p.begin(offscreen)
drawShadeText(p, -br.x(), -br.y(), self.text, c2, c3, 3)
p.end()
@@ -167,8 +167,8 @@ def desktopText(s='Troll Tech'):
c2 = c1.light(104)
c3 = c1.dark(106)
- pm = QPixmap(10, 10)
- p = QPainter()
+ pm = TQPixmap(10, 10)
+ p = TQPainter()
p.begin(pm)
r = p.fontMetrics().boundingRect(s)
p.end()
@@ -188,10 +188,10 @@ def desktopText(s='Troll Tech'):
qApp.desktop().setBackgroundPixmap(pm)
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
if len(sys.argv) > 1:
- f = QFont('charter', 96, QFont.Weight.Black)
- f.setStyleHint(QFont.StyleHint.Times)
+ f = TQFont('charter', 96, TQFont.Weight.Black)
+ f.setStyleHint(TQFont.StyleHint.Times)
a.setFont(f)
validOptions = 0
if len(sys.argv) == 2:
diff --git a/examples2/dirview.py b/examples2/dirview.py
index ae232e9..66beda1 100755
--- a/examples2/dirview.py
+++ b/examples2/dirview.py
@@ -3,10 +3,10 @@
import sys
from qt import *
-class Directory(QListViewItem):
+class Directory(TQListViewItem):
def __init__(self, parent, name=None):
- apply(QListViewItem.__init__,(self,parent))
- if isinstance(parent, QListView):
+ apply(TQListViewItem.__init__,(self,parent))
+ if isinstance(parent, TQListView):
self.p = None
self.f = '/'
else:
@@ -18,7 +18,7 @@ class Directory(QListViewItem):
def setOpen(self, o):
if o and not self.childCount():
s = self.fullName()
- thisDir = QDir(s)
+ thisDir = TQDir(s)
if not thisDir.isReadable():
self.readable = 0
return
@@ -30,7 +30,7 @@ class Directory(QListViewItem):
if fileName == '.' or fileName == '..':
continue
elif f.isSymLink():
- d = QListViewItem(self, fileName, 'Symbolic Link')
+ d = TQListViewItem(self, fileName, 'Symbolic Link')
elif f.isDir():
d = Directory(self, fileName)
else:
@@ -38,14 +38,14 @@ class Directory(QListViewItem):
s = 'File'
else:
s = 'Special'
- d = QListViewItem(self, fileName, s)
+ d = TQListViewItem(self, fileName, s)
self.c.append(d)
- QListViewItem.setOpen(self, o)
+ TQListViewItem.setOpen(self, o)
def setup(self):
self.setExpandable(1)
- QListViewItem.setup(self)
+ TQListViewItem.setup(self)
def fullName(self):
if self.p:
@@ -62,8 +62,8 @@ class Directory(QListViewItem):
else:
return 'Unreadable Directory'
-a = QApplication(sys.argv)
-mw = QListView()
+a = TQApplication(sys.argv)
+mw = TQListView()
a.setMainWidget(mw)
mw.setCaption('Directory Browser')
mw.addColumn('Name')
diff --git a/examples2/dragdrop.py b/examples2/dragdrop.py
index 4cc8c73..5ea9171 100755
--- a/examples2/dragdrop.py
+++ b/examples2/dragdrop.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-# Ported to PyQt by Issac Trotts on Jan 1, 2002
+# Ported to PyTQt by Issac Trotts on Jan 1, 2002
import sys
from qt import *
@@ -9,49 +9,49 @@ import dropsite, secret
def addStuff( parent, yn_image, yn_secret = 0 ):
- tll = QVBoxLayout( parent, 10 )
+ tll = TQVBoxLayout( parent, 10 )
d = dropsite.DropSite( parent, 'dropsite' )
- d.setFrameStyle( QFrame.Sunken + QFrame.WinPanel )
+ d.setFrameStyle( TQFrame.Sunken + TQFrame.WinPanel )
tll.addWidget( d )
if yn_image:
- stuff = QPixmap()
+ stuff = TQPixmap()
if not stuff.load( "trolltech.bmp" ):
- stuff = QPixmap(20,20)
- stuff.fill(Qt.green)
+ stuff = TQPixmap(20,20)
+ stuff.fill(TQt.green)
d.setPixmap( stuff )
else:
d.setText("Drag and Drop")
- d.setFont(QFont("Helvetica",18))
+ d.setFont(TQFont("Helvetica",18))
if secret:
s = secret.SecretSource( 42, parent )
tll.addWidget( s )
- format = QLabel( "\n\n\n\nNone\n\n\n\n", parent )
+ format = TQLabel( "\n\n\n\nNone\n\n\n\n", parent )
tll.addWidget( format )
tll.activate()
parent.resize( parent.sizeHint() )
- QObject.connect( d, PYSIGNAL('message(QString &)'),
- format, SLOT('setText(QString &)') )
+ TQObject.connect( d, PYSIGNAL('message(TQString &)'),
+ format, SLOT('setText(TQString &)') )
-app = QApplication( sys.argv )
+app = TQApplication( sys.argv )
-mw = QWidget()
+mw = TQWidget()
addStuff( mw, 1 )
-mw.setCaption( "Qt Example - Drag and Drop" )
+mw.setCaption( "TQt Example - Drag and Drop" )
mw.show()
-mw2 = QWidget()
+mw2 = TQWidget()
addStuff( mw2, 0 )
-mw2.setCaption( "Qt Example - Drag and Drop" )
+mw2.setCaption( "TQt Example - Drag and Drop" )
mw2.show()
-mw3 = QWidget()
+mw3 = TQWidget()
addStuff( mw3, 1, 1 )
-mw3.setCaption( "Qt Example - Drag and Drop" )
+mw3.setCaption( "TQt Example - Drag and Drop" )
mw3.show()
-QObject.connect(qApp,SIGNAL('lastWindowClosed()'),qApp,SLOT('quit()'))
+TQObject.connect(qApp,SIGNAL('lastWindowClosed()'),qApp,SLOT('quit()'))
app.exec_loop()
diff --git a/examples2/dropsite.py b/examples2/dropsite.py
index 7897109..8dcbabc 100644
--- a/examples2/dropsite.py
+++ b/examples2/dropsite.py
@@ -6,21 +6,21 @@ from qt import *
import secret
-class DropSite(QLabel):
+class DropSite(TQLabel):
def __init__(self, parent=None, name=None):
- QLabel.__init__( self, parent, name )
+ TQLabel.__init__( self, parent, name )
self.setAcceptDrops(1)
# this is a normal event
def mousePressEvent( self, e ):
if ( self.pixmap() ) :
- drobj = QImageDrag( self.pixmap().convertToImage(), self )
- pm = QPixmap()
+ drobj = TQImageDrag( self.pixmap().convertToImage(), self )
+ pm = TQPixmap()
pm.convertFromImage(self.pixmap().convertToImage().smoothScale(
self.pixmap().width()/3,self.pixmap().height()/3))
- drobj.setPixmap(pm,QPoint(-5,-7))
+ drobj.setPixmap(pm,TQPoint(-5,-7))
else :
- drobj = QTextDrag( self.text(), self )
+ drobj = TQTextDrag( self.text(), self )
drobj.dragCopy()
def backgroundColorChange( self, qcolor ):
@@ -35,9 +35,9 @@ class DropSite(QLabel):
def dragEnterEvent( self, e ):
# Check if you want the drag...
if (secret.canDecode( e ) or
- QTextDrag.canDecode( e ) or
- QImageDrag.canDecode( e ) or
- QUriDrag.canDecode( e )):
+ TQTextDrag.canDecode( e ) or
+ TQImageDrag.canDecode( e ) or
+ TQUriDrag.canDecode( e )):
e.accept()
# Give the user some feedback...
@@ -48,41 +48,41 @@ class DropSite(QLabel):
t += "\n"
t += str(e.format( i ))
i += 1
- self.emit(PYSIGNAL('message(QString &)'), (QString(t),))
- self.setBackgroundColor(Qt.white)
+ self.emit(PYSIGNAL('message(TQString &)'), (TQString(t),))
+ self.setBackgroundColor(TQt.white)
- def dragLeaveEvent( self, QDragLeaveEvent ):
+ def dragLeaveEvent( self, TQDragLeaveEvent ):
# Give the user some feedback...
- self.emit(PYSIGNAL('message(QString &)'), (QString(''),))
- self.setBackgroundColor(Qt.lightGray)
+ self.emit(PYSIGNAL('message(TQString &)'), (TQString(''),))
+ self.setBackgroundColor(TQt.lightGray)
def dropEvent( self, e ):
- self.setBackgroundColor(Qt.lightGray)
+ self.setBackgroundColor(TQt.lightGray)
# Try to decode to the data you understand...
- str = QString()
- if ( QTextDrag.decode( e, str ) ) :
+ str = TQString()
+ if ( TQTextDrag.decode( e, str ) ) :
self.setText( str )
self.setMinimumSize( self.minimumSize().expandedTo(self.sizeHint()) )
return
- pm = QPixmap()
- if ( QImageDrag.decode( e, pm ) ) :
+ pm = TQPixmap()
+ if ( TQImageDrag.decode( e, pm ) ) :
self.setPixmap( pm )
self.setMinimumSize(self.minimumSize().expandedTo(self.sizeHint()))
return
- # QStrList strings
- #strings = QStrList()
+ # TQStrList strings
+ #strings = TQStrList()
strings = []
- if ( QUriDrag.decode( e, strings ) ) :
- m = QString("Full URLs:\n")
+ if ( TQUriDrag.decode( e, strings ) ) :
+ m = TQString("Full URLs:\n")
for u in strings:
m = m + " " + u + '\n'
- # QStringList files
+ # TQStringList files
files = []
- if ( QUriDrag.decodeLocalFiles( e, files ) ) :
+ if ( TQUriDrag.decodeLocalFiles( e, files ) ) :
m += "Files:\n"
- # for (QStringList.Iterator i=files.begin() i!=files.end() ++i)
+ # for (TQStringList.Iterator i=files.begin() i!=files.end() ++i)
for i in files:
m = m + " " + i + '\n'
self.setText( m )
diff --git a/examples2/gears.py b/examples2/gears.py
index bf5b913..3e10a67 100755
--- a/examples2/gears.py
+++ b/examples2/gears.py
@@ -129,9 +129,9 @@ def gear(inner_radius,outer_radius,width,teeth,tooth_depth):
glEnd()
##############################################################################
-class GearWidget(QGLWidget):
+class GearWidget(TQGLWidget):
def __init__(self,parent=None,name=None):
- QGLWidget.__init__(self,parent,name)
+ TQGLWidget.__init__(self,parent,name)
self.angle=0.0
self.view_rotx=0.0
@@ -223,11 +223,11 @@ class GearWidget(QGLWidget):
##############################################################################
if __name__=='__main__':
- QApplication.setColorSpec(QApplication.CustomColor)
- app=QApplication(sys.argv)
+ TQApplication.setColorSpec(TQApplication.CustomColor)
+ app=TQApplication(sys.argv)
- if not QGLFormat.hasOpenGL():
- raise 'No Qt OpenGL support.'
+ if not TQGLFormat.hasOpenGL():
+ raise 'No TQt OpenGL support.'
widget=GearWidget()
app.setMainWidget(widget)
diff --git a/examples2/menu.py b/examples2/menu.py
index 89938c3..a8efe7b 100755
--- a/examples2/menu.py
+++ b/examples2/menu.py
@@ -5,7 +5,7 @@
#**
#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
#**
-#** This file is part of an example program for PyQt. This example
+#** This file is part of an example program for PyTQt. This example
#** program may be used, distributed and modified without limitation.
#**
#*****************************************************************************/
@@ -114,35 +114,35 @@ p4_xpm = [
# Auxiliary class to provide fancy menu items with different fonts.
# Used for the "bold" and "underline" menu items in the options menu.
-#class MyMenuItem( QCustomMenuItem ):
+#class MyMenuItem( TQCustomMenuItem ):
# def __init__( self, s=None, f=None ):
-# apply( QCustomMenuItem.__init__,( self, s, f ) )
-# string = QString( s )
-# font = QFont( f )
+# apply( TQCustomMenuItem.__init__,( self, s, f ) )
+# string = TQString( s )
+# font = TQFont( f )
# def paint( self, p, TRUE, FALSE, x, y, w, h ) :
# p.setFont ( font )
-# p.drawText( x, y, w, h, Qt.AlignLeft | Qt.AlignVCenter | Qt.ShowPrefix | Qt.DontClip, string )
+# p.drawText( x, y, w, h, TQt.AlignLeft | TQt.AlignVCenter | TQt.ShowPrefix | TQt.DontClip, string )
# def sizeHint( self ):
-# return QFontMetrics( font ).size( Qt.AlignLeft | Qt.AlignVCenter | Qt.ShowPrefix | Qt.DontClip, string )
+# return TQFontMetrics( font ).size( TQt.AlignLeft | TQt.AlignVCenter | TQt.ShowPrefix | TQt.DontClip, string )
#
### Implementation of MenuExample class
#
-class MenuExample( QWidget ):
+class MenuExample( TQWidget ):
def __init__( self, parent=None, name=None ):
- apply( QWidget.__init__,(self, parent, name) )
- self.p1 = QIconSet( QPixmap ( p1_xpm ) )
- self.p2 = QIconSet( QPixmap ( p2_xpm ) )
- self.p3 = QIconSet( QPixmap ( p3_xpm ) )
- self.p4 = QIconSet( QPixmap ( p4_xpm ) )
- #openIcon = QPixmap()
- #saveIcon = QPixmap()
- #printIcon = QPixmap()
-
- self.printer = QPopupMenu( self )
+ apply( TQWidget.__init__,(self, parent, name) )
+ self.p1 = TQIconSet( TQPixmap ( p1_xpm ) )
+ self.p2 = TQIconSet( TQPixmap ( p2_xpm ) )
+ self.p3 = TQIconSet( TQPixmap ( p3_xpm ) )
+ self.p4 = TQIconSet( TQPixmap ( p4_xpm ) )
+ #openIcon = TQPixmap()
+ #saveIcon = TQPixmap()
+ #printIcon = TQPixmap()
+
+ self.printer = TQPopupMenu( self )
#CHECK_PTR( self.printer )
self.printer.insertTearOffHandle()
self.printer.insertItem( "&Print to printer", self.printDoc )
@@ -151,25 +151,25 @@ class MenuExample( QWidget ):
self.printer.insertSeparator()
self.printer.insertItem( "Printer &Setup", self.printerSetup )
- self.file = QPopupMenu( self )
+ self.file = TQPopupMenu( self )
#CHECK_PTR( self.file );
- self.file.insertItem( self.p1, "&Open", self.open, Qt.CTRL+Qt.Key_O )
- self.file.insertItem( self.p2, "&New", self.news, Qt.CTRL+Qt.Key_N )
- self.file.insertItem( self.p3, "&Save", self.save, Qt.CTRL+Qt.Key_S )
- self.file.insertItem( "&Close", self.closeDoc, Qt.CTRL+Qt.Key_W )
+ self.file.insertItem( self.p1, "&Open", self.open, TQt.CTRL+TQt.Key_O )
+ self.file.insertItem( self.p2, "&New", self.news, TQt.CTRL+TQt.Key_N )
+ self.file.insertItem( self.p3, "&Save", self.save, TQt.CTRL+TQt.Key_S )
+ self.file.insertItem( "&Close", self.closeDoc, TQt.CTRL+TQt.Key_W )
self.file.insertSeparator()
- self.file.insertItem( self.p4, "&Print", self.printer, Qt.CTRL+Qt.Key_P )
+ self.file.insertItem( self.p4, "&Print", self.printer, TQt.CTRL+TQt.Key_P )
self.file.insertSeparator()
- self.file.insertItem( "E&xit", qApp, SLOT( "quit()" ), Qt.CTRL+Qt.Key_Q )
+ self.file.insertItem( "E&xit", qApp, SLOT( "quit()" ), TQt.CTRL+TQt.Key_Q )
- self.edit = QPopupMenu( self )
+ self.edit = TQPopupMenu( self )
#CHECK_PTR( self.edit )
undoID = self.edit.insertItem( "&Undo", self.undo )
redoID = self.edit.insertItem( "&Redo", self.redo )
self.edit.setItemEnabled( undoID, TRUE )
self.edit.setItemEnabled( redoID, FALSE )
- self.options = QPopupMenu( self )
+ self.options = TQPopupMenu( self )
#CHECK_PTR( self.options )
self.options.insertTearOffHandle()
self.options.setCaption( 'Options' )
@@ -177,23 +177,23 @@ class MenuExample( QWidget ):
self.options.insertSeparator()
self.options.polish() # adjust system settings
- self.f = QFont( self.options.font() )
+ self.f = TQFont( self.options.font() )
self.f.setBold( TRUE )
self.boldID = self.options.insertItem( "&Bold" )
- self.options.setAccel( Qt.CTRL+Qt.Key_B, self.boldID )
+ self.options.setAccel( TQt.CTRL+TQt.Key_B, self.boldID )
self.options.connectItem( self.boldID, self.bold )
- self.f = QFont( self.options.font() )
+ self.f = TQFont( self.options.font() )
self.f.setUnderline( TRUE )
self.underlineID = self.options.insertItem( "&Underline" )
- self.options.setAccel( Qt.CTRL+Qt.Key_U, self.underlineID )
+ self.options.setAccel( TQt.CTRL+TQt.Key_U, self.underlineID )
self.options.connectItem( self.underlineID, self.underline )
self.isBold = FALSE
self.isUnderline = FALSE
self.options.setCheckable( TRUE )
- self.options = QPopupMenu()
+ self.options = TQPopupMenu()
#CHECK_PTR( self.options )
self.options.insertItem( "&Normal Font", self.normal )
self.options.insertSeparator()
@@ -204,28 +204,28 @@ class MenuExample( QWidget ):
self.isUnderline = FALSE
self.options.setCheckable( TRUE )
- self.help = QPopupMenu( self )
+ self.help = TQPopupMenu( self )
#CHECK_PTR( self.help )
- self.help.insertItem( "&About", self.about, Qt.CTRL+Qt.Key_H )
- self.help.insertItem( "About &Qt", self.aboutQt )
+ self.help.insertItem( "&About", self.about, TQt.CTRL+TQt.Key_H )
+ self.help.insertItem( "About &TQt", self.aboutTQt )
- self.menu = QMenuBar( self )
+ self.menu = TQMenuBar( self )
#CHECK_PTR( self.menu );
self.menu.insertItem( "&File", self.file )
self.menu.insertItem( "&Edit", self.edit )
self.menu.insertItem( "&Options", self.options )
self.menu.insertSeparator()
self.menu.insertItem( "&Help", self.help )
- self.menu.setSeparator( QMenuBar.InWindowsStyle )
+ self.menu.setSeparator( TQMenuBar.InWindowsStyle )
- self.label = QLabel( self )
+ self.label = TQLabel( self )
#CHECK_PTR( self.label )
self.label.setGeometry( 20, self.rect().center().y()-20, self.width()-40, 40 )
- self.label.setFrameStyle( QFrame.Box | QFrame.Raised )
+ self.label.setFrameStyle( TQFrame.Box | TQFrame.Raised )
self.label.setLineWidth( 1 )
- self.label.setAlignment( Qt.AlignCenter )
+ self.label.setAlignment( TQt.AlignCenter )
- self.label.setFont( QFont( "times", 12, QFont.Bold ) )
+ self.label.setFont( TQFont( "times", 12, TQFont.Bold ) )
self.connect( self, PYSIGNAL( "explain" ), self.label.setText )
#self.connect( self, PYSIGNAL( "explain(const char *)" ),
# self.label, SLOT( "setText(const char *)" ) )
@@ -268,13 +268,13 @@ class MenuExample( QWidget ):
self.emit(PYSIGNAL("explain"), ("Options/Underline selected",))
def about( self ):
- QMessageBox.about( self, "Qt Menu Example",
- "This example demonstrates simple use of Qt menus.\n"
+ TQMessageBox.about( self, "TQt Menu Example",
+ "This example demonstrates simple use of TQt menus.\n"
"You can cut and paste lines from it to your own\n"
"programs." )
- def aboutQt( self ):
- QMessageBox.aboutQt( self, "Qt Menu Example" )
+ def aboutTQt( self ):
+ TQMessageBox.aboutTQt( self, "TQt Menu Example" )
def printDoc( self ):
self.emit ( PYSIGNAL( "explain" ), ( "File/Printer/Print selected", ) )
@@ -291,7 +291,7 @@ class MenuExample( QWidget ):
def resizeEvent( self, ev ):
self.label.setGeometry( 20, self.rect().center().y()-20, self.width()-40, 40 )
-a = QApplication( sys.argv )
+a = TQApplication( sys.argv )
m = MenuExample()
a.setMainWidget( m )
diff --git a/examples2/secret.py b/examples2/secret.py
index 7023a0b..b405737 100644
--- a/examples2/secret.py
+++ b/examples2/secret.py
@@ -12,15 +12,15 @@ def decode(e):
payload = str(e.data( "secret/magic" ))
if ( str(payload) != '' ):
e.accept()
- return QString("The secret number is "+str(ord(payload)) )
+ return TQString("The secret number is "+str(ord(payload)) )
return None
-class SecretDrag(QStoredDrag):
+class SecretDrag(TQStoredDrag):
def __init__(self, secret, parent=None, name=None):
- QStoredDrag.__init__(self, 'secret/magic', parent, name)
- data = QByteArray(chr(secret))
+ TQStoredDrag.__init__(self, 'secret/magic', parent, name)
+ data = TQByteArray(chr(secret))
self.setEncodedData( data )
@@ -49,17 +49,17 @@ picture_xpm = [
]
-class SecretSource(QLabel):
+class SecretSource(TQLabel):
def __init__(self, secret, parent=None, name=None):
- QLabel.__init__(self, "Secret", parent, name)
- self.setBackgroundColor( Qt.blue.light() )
- self.setFrameStyle( QLabel.Box | QLabel.Sunken )
+ TQLabel.__init__(self, "Secret", parent, name)
+ self.setBackgroundColor( TQt.blue.light() )
+ self.setFrameStyle( TQLabel.Box | TQLabel.Sunken )
self.setMinimumHeight( self.sizeHint().height()*2 )
- self.setAlignment( QLabel.AlignCenter )
+ self.setAlignment( TQLabel.AlignCenter )
self.mySecret = secret
def mousePressEvent(self, e):
sd = SecretDrag( self.mySecret, self )
- sd.setPixmap(QPixmap(picture_xpm),QPoint(8,8))
+ sd.setPixmap(TQPixmap(picture_xpm),TQPoint(8,8))
sd.dragCopy()
self.mySecret = self.mySecret + 1
diff --git a/examples2/semaphore.py b/examples2/semaphore.py
index 5a3ab92..9aaf6d5 100755
--- a/examples2/semaphore.py
+++ b/examples2/semaphore.py
@@ -1,13 +1,13 @@
#!/usr/bin/env python
#
-# A port of the semaphore example from Qt.
+# A port of the semaphore example from TQt.
import sys
# Check if thread support was enabled.
try:
- from qt import QThread
+ from qt import TQThread
except:
print "Thread support not enabled"
sys.exit(1)
@@ -20,13 +20,13 @@ yellowSem = None
greenSem = None
-class YellowThread(QThread):
+class YellowThread(TQThread):
def __init__(self,o):
- QThread.__init__(self)
+ TQThread.__init__(self)
self.receiver = o
self.stopped = 0
- self.mutex = QMutex()
+ self.mutex = TQMutex()
def run(self):
global yellowSem, greenSem
@@ -34,9 +34,9 @@ class YellowThread(QThread):
for i in range(20):
yellowSem += 1
- event = QCustomEvent(12345)
- event.setData(QString("Yellow!"))
- QThread.postEvent(self.receiver,event)
+ event = TQCustomEvent(12345)
+ event.setData(TQString("Yellow!"))
+ TQThread.postEvent(self.receiver,event)
self.msleep(200);
greenSem -= 1
@@ -51,9 +51,9 @@ class YellowThread(QThread):
yellowSem += 1
- event = QCustomEvent(12346)
- event.setData(QString("Yellow!"))
- QThread.postEvent(self.receiver,event)
+ event = TQCustomEvent(12346)
+ event.setData(TQString("Yellow!"))
+ TQThread.postEvent(self.receiver,event)
greenSem -= 1
@@ -63,13 +63,13 @@ class YellowThread(QThread):
self.mutex.unlock()
-class GreenThread(QThread):
+class GreenThread(TQThread):
def __init__(self,o):
- QThread.__init__(self)
+ TQThread.__init__(self)
self.receiver = o
self.stopped = 0
- self.mutex = QMutex()
+ self.mutex = TQMutex()
def run(self):
global yellowSem, greenSem
@@ -77,9 +77,9 @@ class GreenThread(QThread):
for i in range(20):
greenSem += 1
- event = QCustomEvent(12345)
- event.setData(QString("Green!"))
- QThread.postEvent(self.receiver,event)
+ event = TQCustomEvent(12345)
+ event.setData(TQString("Green!"))
+ TQThread.postEvent(self.receiver,event)
self.msleep(200)
yellowSem -= 1
@@ -94,9 +94,9 @@ class GreenThread(QThread):
greenSem += 1
- event = QCustomEvent(12346)
- event.setData(QString("Green!"))
- QThread.postEvent(self.receiver,event)
+ event = TQCustomEvent(12346)
+ event.setData(TQString("Green!"))
+ TQThread.postEvent(self.receiver,event)
self.msleep(10)
yellowSem -= 1
@@ -107,24 +107,24 @@ class GreenThread(QThread):
self.mutex.unlock()
-class SemaphoreExample(QWidget):
+class SemaphoreExample(TQWidget):
def __init__(self):
- QWidget.__init__(self)
+ TQWidget.__init__(self)
self.yellowThread = YellowThread(self)
self.greenThread = GreenThread(self)
global yellowSem, greenSem
- yellowSem = QSemaphore(1)
- greenSem = QSemaphore(1)
+ yellowSem = TQSemaphore(1)
+ greenSem = TQSemaphore(1)
- self.button = QPushButton("&Ignition!",self)
+ self.button = TQPushButton("&Ignition!",self)
self.connect(self.button,SIGNAL("clicked()"),self.startExample)
- self.mlineedit = QMultiLineEdit(self)
- self.label = QLabel(self)
+ self.mlineedit = TQMultiLineEdit(self)
+ self.label = TQLabel(self)
- vbox = QVBoxLayout(self,5)
+ vbox = TQVBoxLayout(self,5)
vbox.addWidget(self.button)
vbox.addWidget(self.mlineedit)
vbox.addWidget(self.label)
@@ -151,7 +151,7 @@ class SemaphoreExample(QWidget):
def startExample(self):
if self.yellowThread.running() or self.greenThread.running():
- QMessageBox.information(self,"Sorry",
+ TQMessageBox.information(self,"Sorry",
"The threads have not completed yet, and must finish before "
"they can be started again.")
@@ -176,9 +176,9 @@ class SemaphoreExample(QWidget):
self.mlineedit.append(s)
if s.latin1() == "Green!":
- self.label.setBackgroundColor(Qt.green)
+ self.label.setBackgroundColor(TQt.green)
else:
- self.label.setBackgroundColor(Qt.yellow)
+ self.label.setBackgroundColor(TQt.yellow)
self.label.setText(s)
@@ -186,7 +186,7 @@ class SemaphoreExample(QWidget):
elif event.type() == 12346:
s = event.data()
- QMessageBox.information(self,s.latin1() + " - Finished",
+ TQMessageBox.information(self,s.latin1() + " - Finished",
"The thread creating the \"" + s.latin1() +
"\" events has finished.")
@@ -195,7 +195,7 @@ class SemaphoreExample(QWidget):
print "Unknown custom event type:", event.type()
-app = QApplication(sys.argv)
+app = TQApplication(sys.argv)
se = SemaphoreExample()
app.setMainWidget(se)
se.show()
diff --git a/examples2/splitter.py b/examples2/splitter.py
index 1c2fef7..b2e30cc 100755
--- a/examples2/splitter.py
+++ b/examples2/splitter.py
@@ -3,12 +3,12 @@
import sys
from qt import *
-class Test(QWidget):
+class Test(TQWidget):
def __init__(self, parent=None, name='Test', f=0):
- QWidget.__init__(self, parent, name, f)
+ TQWidget.__init__(self, parent, name, f)
def paintEvent(self, e):
- p = QPainter(self)
+ p = TQPainter(self)
p.setClipRect(e.rect())
d = 1000
x1 = 0
@@ -30,31 +30,31 @@ class Test(QWidget):
if __name__=="__main__":
- a = QApplication(sys.argv)
+ a = TQApplication(sys.argv)
- s1 = QSplitter(Qt.Vertical, None, "main")
- s2 = QSplitter(Qt.Horizontal, s1, "top")
+ s1 = TQSplitter(TQt.Vertical, None, "main")
+ s2 = TQSplitter(TQt.Horizontal, s1, "top")
t1 = Test(s2)
- t1.setBackgroundColor(Qt.blue.light(180))
+ t1.setBackgroundColor(TQt.blue.light(180))
t1.setMinimumSize(50,0)
t2 = Test(s2)
- t2.setBackgroundColor(Qt.green.light(180))
- s2.setResizeMode(t2, QSplitter.KeepSize)
+ t2.setBackgroundColor(TQt.green.light(180))
+ s2.setResizeMode(t2, TQSplitter.KeepSize)
s2.moveToFirst(t2)
- s3 = QSplitter(Qt.Horizontal, s1, "bottom")
+ s3 = TQSplitter(TQt.Horizontal, s1, "bottom")
t3 = Test(s3)
- t3.setBackgroundColor(Qt.red)
+ t3.setBackgroundColor(TQt.red)
t4 = Test(s3)
- t4.setBackgroundColor(Qt.white)
+ t4.setBackgroundColor(TQt.white)
t5 = Test(s3)
t5.setMaximumHeight(250)
t5.setMinimumSize(80,50)
- t5.setBackgroundColor(Qt.yellow)
+ t5.setBackgroundColor(TQt.yellow)
s1.setOpaqueResize(1)
s2.setOpaqueResize(1)
diff --git a/examples2/table.py b/examples2/table.py
index 58fd04b..f9502b7 100755
--- a/examples2/table.py
+++ b/examples2/table.py
@@ -3,12 +3,12 @@
import sys
from qt import *
-class Table(QTableView):
+class Table(TQTableView):
def __init__(self, numRows, numCols, parent=None, name=''):
- QTableView.__init__(self, parent, name)
+ TQTableView.__init__(self, parent, name)
self.curRow = self.curCol = 0
- self.setFocusPolicy(QWidget.StrongFocus)
- self.setBackgroundMode(QWidget.PaletteBase)
+ self.setFocusPolicy(TQWidget.StrongFocus)
+ self.setBackgroundMode(TQWidget.PaletteBase)
self.setNumCols(numCols)
self.setNumRows(numRows)
self.setCellWidth(100)
@@ -39,11 +39,11 @@ class Table(QTableView):
if self.hasFocus():
p.drawRect(0, 0, x2, y2)
else:
- p.setPen(Qt.DotLine)
+ p.setPen(TQt.DotLine)
p.drawRect(0, 0, x2, y2)
- p.setPen(Qt.SolidLine)
+ p.setPen(TQt.SolidLine)
- p.drawText(0,0,w,h,Qt.AlignCenter,self.contents[self.indexOf(row,col)])
+ p.drawText(0,0,w,h,TQt.AlignCenter,self.contents[self.indexOf(row,col)])
def mousePressEvent(self, me):
oldRow = self.curRow
@@ -105,7 +105,7 @@ class Table(QTableView):
numRows = 20
numCols = 20
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
v = Table(numRows, numCols)
for i in range(numRows):
for j in range(numCols):
diff --git a/examples2/themes.py b/examples2/themes.py
index b3dae55..4dace47 100755
--- a/examples2/themes.py
+++ b/examples2/themes.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-# This is a port to PyQt of the Qt v2.x example program. It does not (yet)
+# This is a port to PyTQt of the TQt v2.x example program. It does not (yet)
# include the implementation of all of the example widgets.
@@ -16,46 +16,46 @@ import os, sys
from qt import *
-class ButtonsGroups(QVBox):
+class ButtonsGroups(TQVBox):
def __init__(self, parent=None, name=None):
- QVBox.__init__(self, parent, name)
+ TQVBox.__init__(self, parent, name)
# Create widgets which allow easy layouting
- box1=QHBox(self)
- box2=QHBox(self)
+ box1=TQHBox(self)
+ box2=TQHBox(self)
# first group
# Create an exclusive button group
- grp1=QButtonGroup( 1
- , QGroupBox.Horizontal
+ grp1=TQButtonGroup( 1
+ , TQGroupBox.Horizontal
, "Button Group 1 (exclusive)"
, box1
)
grp1.setExclusive(TRUE)
# insert 3 radiobuttons
- rb11=QRadioButton("&Radiobutton 1", grp1)
+ rb11=TQRadioButton("&Radiobutton 1", grp1)
rb11.setChecked(TRUE)
- QRadioButton("R&adiobutton 2", grp1)
- QRadioButton("Ra&diobutton 3", grp1)
+ TQRadioButton("R&adiobutton 2", grp1)
+ TQRadioButton("Ra&diobutton 3", grp1)
# second group
# Create a non-exclusive buttongroup
- grp2=QButtonGroup( 1
- , QGroupBox.Horizontal
+ grp2=TQButtonGroup( 1
+ , TQGroupBox.Horizontal
, "Button Group 2 (non-exclusive)"
, box1
)
grp2.setExclusive(FALSE)
# insert 3 checkboxes
- QCheckBox("&Checkbox 1", grp2)
- cb12=QCheckBox("C&heckbox 2", grp2)
+ TQCheckBox("&Checkbox 1", grp2)
+ cb12=TQCheckBox("C&heckbox 2", grp2)
cb12.setChecked(TRUE)
- cb13=QCheckBox("Triple &State Button", grp2)
+ cb13=TQCheckBox("Triple &State Button", grp2)
cb13.setTristate(TRUE)
cb13.setChecked(TRUE)
@@ -63,21 +63,21 @@ class ButtonsGroups(QVBox):
# create a buttongroup which is exclusive for radiobuttons and
# non-exclusive for all other buttons
- grp3=QButtonGroup( 1
- , QGroupBox.Horizontal
+ grp3=TQButtonGroup( 1
+ , TQGroupBox.Horizontal
, "Button Group 3 (Radiobutton-exclusive)"
, box2
)
grp3.setRadioButtonExclusive(TRUE)
# insert three radiobuttons
- self.rb21=QRadioButton("Rad&iobutton 1", grp3)
- self.rb22=QRadioButton("Radi&obutton 2", grp3)
- self.rb23=QRadioButton("Radio&button 3", grp3)
+ self.rb21=TQRadioButton("Rad&iobutton 1", grp3)
+ self.rb22=TQRadioButton("Radi&obutton 2", grp3)
+ self.rb23=TQRadioButton("Radio&button 3", grp3)
self.rb23.setChecked(TRUE)
# insert a checkbox...
- self.state=QCheckBox("E&nable Radiobuttons", grp3)
+ self.state=TQCheckBox("E&nable Radiobuttons", grp3)
self.state.setChecked(TRUE)
# ...and connect its SIGNAL clicked() with the SLOT slotChangeGrp3State()
self.connect(self.state, SIGNAL('clicked()'),self.slotChangeGrp3State)
@@ -85,15 +85,15 @@ class ButtonsGroups(QVBox):
# fourth group
# create a groupbox which lays out its childs in a column
- grp4=QGroupBox( 1
- , QGroupBox.Horizontal
+ grp4=TQGroupBox( 1
+ , TQGroupBox.Horizontal
, "Groupbox with normal buttons"
, box2
)
# insert two pushbuttons...
- QPushButton("&Push Button", grp4)
- tb=QPushButton("&Toggle Button", grp4)
+ TQPushButton("&Push Button", grp4)
+ tb=TQPushButton("&Toggle Button", grp4)
# ...and make the second one a toggle button
tb.setToggleButton(TRUE)
@@ -105,22 +105,22 @@ class ButtonsGroups(QVBox):
self.rb23.setEnabled(self.state.isChecked())
-class LineEdits(QVBox):
+class LineEdits(TQVBox):
def __init__(self, parent=None, name=None):
- QVBox.__init__(self, parent, name)
+ TQVBox.__init__(self, parent, name)
self.setMargin(10)
# Widget for layouting
- row1=QHBox(self)
+ row1=TQHBox(self)
row1.setMargin(5)
# Create a label
- QLabel("Echo Mode: ", row1)
+ TQLabel("Echo Mode: ", row1)
# Create a Combobox with three items...
- self.combo1=QComboBox(FALSE, row1)
+ self.combo1=TQComboBox(FALSE, row1)
self.combo1.insertItem("Normal", -1)
self.combo1.insertItem("Password", -1)
self.combo1.insertItem("No Echo", -1)
@@ -129,17 +129,17 @@ class LineEdits(QVBox):
self.connect(self.combo1, SIGNAL('activated(int)'), self.slotEchoChanged)
# insert the first LineEdit
- self.lined1=QLineEdit(self)
+ self.lined1=TQLineEdit(self)
# another widget which is used for layouting
- row2=QHBox(self)
+ row2=TQHBox(self)
row2.setMargin(5)
# and the second label
- QLabel("Validator: ", row2)
+ TQLabel("Validator: ", row2)
# A second Combobox with again three items...
- self.combo2=QComboBox(FALSE, row2)
+ self.combo2=TQComboBox(FALSE, row2)
self.combo2.insertItem("No Validator", -1)
self.combo2.insertItem("Integer Validator", -1)
self.combo2.insertItem("Double Validator", -1)
@@ -147,17 +147,17 @@ class LineEdits(QVBox):
self.connect(self.combo2, SIGNAL('activated(int)'), self.slotValidatorChanged)
# and the second LineEdit
- self.lined2=QLineEdit(self)
+ self.lined2=TQLineEdit(self)
# yet another widget which is used for layouting
- row3=QHBox(self)
+ row3=TQHBox(self)
row3.setMargin(5)
# we need a label for this too
- QLabel("Alignment: ", row3)
+ TQLabel("Alignment: ", row3)
# A combo box for setting alignment
- self.combo3=QComboBox(FALSE, row3)
+ self.combo3=TQComboBox(FALSE, row3)
self.combo3.insertItem("Left", -1)
self.combo3.insertItem("Centered", -1)
self.combo3.insertItem("Right", -1)
@@ -165,18 +165,18 @@ class LineEdits(QVBox):
self.connect(self.combo3, SIGNAL('activated(int)'), self.slotAlignmentChanged)
# and the lineedit
- self.lined3=QLineEdit(self)
+ self.lined3=TQLineEdit(self)
# give the first LineEdit the focus at the beginning
self.lined1.setFocus()
def slotEchoChanged(self, i):
if i == 0:
- self.lined1.setEchoMode(QLineEdit.EchoMode.Normal)
+ self.lined1.setEchoMode(TQLineEdit.EchoMode.Normal)
elif i == 1:
- self.lined1.setEchoMode(QLineEdit.EchoMode.Password)
+ self.lined1.setEchoMode(TQLineEdit.EchoMode.Password)
elif i == 2:
- self.lined1.setEchoMode(QLineEdit.EchoMode.NoEcho)
+ self.lined1.setEchoMode(TQLineEdit.EchoMode.NoEcho)
self.lined1.setFocus()
@@ -185,10 +185,10 @@ class LineEdits(QVBox):
self.validator=None
self.lined2.setValidator(self.validator)
elif i == 1:
- self.validator=QIntValidator(self.lined2)
+ self.validator=TQIntValidator(self.lined2)
self.lined2.setValidator(self.validator)
elif i == 2:
- self.validator=QDoubleValidator(-999.0, 999.0, 2, self.lined2)
+ self.validator=TQDoubleValidator(-999.0, 999.0, 2, self.lined2)
self.lined2.setValidator(self.validator)
self.lined2.setText("")
@@ -196,40 +196,40 @@ class LineEdits(QVBox):
def slotAlignmentChanged(self, i):
if i == 0:
- self.lined3.setAlignment(Qt.AlignLeft)
+ self.lined3.setAlignment(TQt.AlignLeft)
elif i == 1:
- self.lined3.setAlignment(Qt.AlignCenter)
+ self.lined3.setAlignment(TQt.AlignCenter)
elif i == 2:
- self.lined3.setAlignment(Qt.AlignRight)
+ self.lined3.setAlignment(TQt.AlignRight)
self.lined3.setFocus()
-class ProgressBar(QVBox):
+class ProgressBar(TQVBox):
def __init__(self, parent=None, name=None):
- QVBox.__init__(self, parent, name)
+ TQVBox.__init__(self, parent, name)
- self.timer=QTimer()
+ self.timer=TQTimer()
self.setMargin(10)
# Create a radiobutton-exclusive Buttongroup which aligns its childs in two
# columns
- bg=QButtonGroup(2, QGroupBox.Horizontal, self)
+ bg=TQButtonGroup(2, TQGroupBox.Horizontal, self)
bg.setRadioButtonExclusive(TRUE)
# insert three radiobuttons which the user can use to set the speed of the
# progress and two pushbuttons to start/pause/continue and reset the
# progress
- self.slow=QRadioButton("&Slow", bg)
- self.start=QPushButton("S&tart", bg)
- self.normal=QRadioButton("&Normal", bg)
- self.reset=QPushButton("&Reset", bg)
- self.fast=QRadioButton("&Fast", bg)
+ self.slow=TQRadioButton("&Slow", bg)
+ self.start=TQPushButton("S&tart", bg)
+ self.normal=TQRadioButton("&Normal", bg)
+ self.reset=TQPushButton("&Reset", bg)
+ self.fast=TQRadioButton("&Fast", bg)
# Create the progressbar
- self.progress=QProgressBar(100, self)
+ self.progress=TQProgressBar(100, self)
# connect the clicked() SIGNALs of the pushbuttons to SLOTs
self.connect(self.start, SIGNAL('clicked()'), self.slotStart)
@@ -303,34 +303,34 @@ class ProgressBar(QVBox):
self.progress.setProgress(p+1)
-class ListBoxCombo(QVBox):
+class ListBoxCombo(TQVBox):
def __init__(self, parent=None, name=None):
- QVBox.__init__(self, parent, name)
+ TQVBox.__init__(self, parent, name)
self.setMargin(5)
- row1=QHBox(self)
+ row1=TQHBox(self)
row1.setMargin(5)
# Create a multi-selection ListBox...
- self.lb1=QListBox(row1)
+ self.lb1=TQListBox(row1)
self.lb1.setMultiSelection(TRUE)
# ...insert a pixmap item...
- self.lb1.insertItem(QPixmap("qtlogo.png"))
+ self.lb1.insertItem(TQPixmap("qtlogo.png"))
# ...and 100 text items
for i in range(100):
- str=QString("Listbox Item %1").arg(i)
+ str=TQString("Listbox Item %1").arg(i)
self.lb1.insertItem(str)
# Create a pushbutton...
- self.arrow1=QPushButton(" -> ", row1)
+ self.arrow1=TQPushButton(" -> ", row1)
# ...and connect the clicked SIGNAL with the SLOT slotLeft2Right
self.connect(self.arrow1, SIGNAL('clicked()'), self.slotLeft2Right)
# create an empty single-selection ListBox
- self.lb2=QListBox(row1)
+ self.lb2=TQListBox(row1)
def slotLeft2Right(self):
# Go through all items of the first ListBox
@@ -341,107 +341,107 @@ class ListBoxCombo(QVBox):
# ...and it is a text item...
if not item.text().isEmpty():
# ...insert an item with the same text into the second ListBox
- self.lb2.insertItem(QListBoxText(item.text()))
+ self.lb2.insertItem(TQListBoxText(item.text()))
# ...and if it is a pixmap item...
elif item.pixmap():
# ...insert an item with the same pixmap into the second ListBox
- self.lb2.insertItem(QListBoxPixmap(item.pixmap()))
+ self.lb2.insertItem(TQListBoxPixmap(item.pixmap()))
-class NorwegianWoodStyle(QMotifStyle):
+class NorwegianWoodStyle(TQMotifStyle):
def __init__(self):
- QMotifStyle.__init__(self)
+ TQMotifStyle.__init__(self)
def polish(self,o):
- if isinstance(o,QApplication):
+ if isinstance(o,TQApplication):
self.polish_qapplication(o)
- elif isinstance(o,QWidget):
+ elif isinstance(o,TQWidget):
self.polish_qwidget(o)
else:
- QMotifStyle.polish(self,o)
+ TQMotifStyle.polish(self,o)
def unPolish(self,o):
- if isinstance(o,QApplication):
+ if isinstance(o,TQApplication):
self.unPolish_qapplication(o)
- elif isinstance(o,QWidget):
+ elif isinstance(o,TQWidget):
self.unPolish_qwidget(o)
else:
- QMotifStyle.unPolish(self,o)
+ TQMotifStyle.unPolish(self,o)
def polish_qapplication(self,app):
global button_xpm, polish_xpm
self.oldPalette=app.palette()
- # we simply create a nice QColorGroup with a couple of fancy wood pixmaps
+ # we simply create a nice TQColorGroup with a couple of fancy wood pixmaps
# here and apply it to all widgets
- img=QImage(button_xpm)
- orig=QImage(img)
+ img=TQImage(button_xpm)
+ orig=TQImage(img)
orig.detach()
- button=QPixmap()
+ button=TQPixmap()
button.convertFromImage(img)
- background=QPixmap(polish_xpm)
+ background=TQPixmap(polish_xpm)
for i in range(img.numColors()):
rgb=img.color(i)
- c=QColor(rgb)
+ c=TQColor(rgb)
(r, g, b)=c.dark().rgb()
img.setColor(i,qRgb(r, g, b))
- mid=QPixmap()
+ mid=TQPixmap()
mid.convertFromImage(img)
- img=QImage(orig)
+ img=TQImage(orig)
for i in range(img.numColors()):
rgb=img.color(i)
- c=QColor(rgb)
+ c=TQColor(rgb)
(r, g, b)=c.light().rgb()
img.setColor(i,qRgb(r, g, b))
- light=QPixmap()
+ light=TQPixmap()
light.convertFromImage(img)
- img=QImage(orig)
+ img=TQImage(orig)
for i in range(img.numColors()):
rgb=img.color(i)
- c=QColor(rgb)
+ c=TQColor(rgb)
(r, g, b)=c.dark().rgb()
img.setColor(i,qRgb(r, g, b))
- dark=QPixmap()
+ dark=TQPixmap()
dark.convertFromImage(img)
- op=QPalette(QColor(212,140,95))
-
- nor=QColorGroup(QBrush(op.normal().foreground()),
- QBrush(op.normal().button(), button),
- QBrush(op.normal().light(), light),
- QBrush(op.normal().dark(), dark),
- QBrush(op.normal().mid(), mid),
- QBrush(op.normal().text()),
- QBrush(Qt.white),
- QBrush(QColor(236,182,120)),
- QBrush(op.normal().background(), background))
- disabled=QColorGroup(QBrush(op.disabled().foreground()),
- QBrush(op.disabled().button(), button),
- QBrush(op.disabled().light(), light),
- QBrush(op.disabled().dark()),
- QBrush(op.disabled().mid(), mid),
- QBrush(op.disabled().text()),
- QBrush(Qt.white),
- QBrush(QColor(236,182,120)),
- QBrush(op.disabled().background(), background))
- active=QColorGroup(QBrush(op.active().foreground()),
- QBrush(op.active().button(), button),
- QBrush(op.active().light(), light),
- QBrush(op.active().dark()),
- QBrush(op.active().mid(), mid),
- QBrush(op.active().text()),
- QBrush(Qt.white),
- QBrush(QColor(236,182,120)),
- QBrush(op.active().background(), background))
-
- app.setPalette(QPalette(nor, disabled, active), TRUE)
+ op=TQPalette(TQColor(212,140,95))
+
+ nor=TQColorGroup(TQBrush(op.normal().foreground()),
+ TQBrush(op.normal().button(), button),
+ TQBrush(op.normal().light(), light),
+ TQBrush(op.normal().dark(), dark),
+ TQBrush(op.normal().mid(), mid),
+ TQBrush(op.normal().text()),
+ TQBrush(TQt.white),
+ TQBrush(TQColor(236,182,120)),
+ TQBrush(op.normal().background(), background))
+ disabled=TQColorGroup(TQBrush(op.disabled().foreground()),
+ TQBrush(op.disabled().button(), button),
+ TQBrush(op.disabled().light(), light),
+ TQBrush(op.disabled().dark()),
+ TQBrush(op.disabled().mid(), mid),
+ TQBrush(op.disabled().text()),
+ TQBrush(TQt.white),
+ TQBrush(TQColor(236,182,120)),
+ TQBrush(op.disabled().background(), background))
+ active=TQColorGroup(TQBrush(op.active().foreground()),
+ TQBrush(op.active().button(), button),
+ TQBrush(op.active().light(), light),
+ TQBrush(op.active().dark()),
+ TQBrush(op.active().mid(), mid),
+ TQBrush(op.active().text()),
+ TQBrush(TQt.white),
+ TQBrush(TQColor(236,182,120)),
+ TQBrush(op.active().background(), background))
+
+ app.setPalette(TQPalette(nor, disabled, active), TRUE)
def unPolish_qapplication(self,app):
app.setPalette(self.oldPalette, TRUE)
@@ -450,37 +450,37 @@ class NorwegianWoodStyle(QMotifStyle):
# the polish function will set some widgets to transparent mode, to get the
# full benefit from the nice pixmaps in the color group.
- if w.inherits("QTipLabel"):
+ if w.inherits("TQTipLabel"):
return
- if w.inherits("QLCDNumber"):
+ if w.inherits("TQLCDNumber"):
return
if not w.isTopLevel():
- if w.inherits("QLabel") \
- or w.inherits("QButton") \
- or w.inherits("QComboBox") \
- or w.inherits("QGroupBox") \
- or w.inherits("QSlider") \
- or w.inherits("QTabWidget") \
- or w.inherits("QTabBar"):
+ if w.inherits("TQLabel") \
+ or w.inherits("TQButton") \
+ or w.inherits("TQComboBox") \
+ or w.inherits("TQGroupBox") \
+ or w.inherits("TQSlider") \
+ or w.inherits("TQTabWidget") \
+ or w.inherits("TQTabBar"):
w.setAutoMask(TRUE)
def unPolish_qwidget(self,w):
- if w.inherits("QTipLabel"):
+ if w.inherits("TQTipLabel"):
return
- if w.inherits("QLCDNumber"):
+ if w.inherits("TQLCDNumber"):
return
if not w.isTopLevel():
- if w.inherits("QLabel") \
- or w.inherits("QButton") \
- or w.inherits("QComboBox") \
- or w.inherits("QGroupBox") \
- or w.inherits("QSlider") \
- or w.inherits("QTabWidget") \
- or w.inherits("QTabBar"):
+ if w.inherits("TQLabel") \
+ or w.inherits("TQButton") \
+ or w.inherits("TQComboBox") \
+ or w.inherits("TQGroupBox") \
+ or w.inherits("TQSlider") \
+ or w.inherits("TQTabWidget") \
+ or w.inherits("TQTabBar"):
w.setAutoMask(FALSE)
def drawroundrect(self, p, x, y, w, h, d):
@@ -493,14 +493,14 @@ class NorwegianWoodStyle(QMotifStyle):
oldBrush=p.brush()
oldPen=p.pen()
- p.setPen(Qt.NoPen)
+ p.setPen(TQt.NoPen)
if fill != None:
newBrush=fill
else:
if sunken:
- newBrush=g.brush(QColorGroup.Mid)
+ newBrush=g.brush(TQColorGroup.Mid)
else:
- newBrush=g.brush(QColorGroup.Button)
+ newBrush=g.brush(TQColorGroup.Button)
self.drawroundrect(p, x+3, y+3, w-6, h-6, 5)
p.setBrush(oldBrush)
p.setPen(g.foreground())
@@ -508,7 +508,7 @@ class NorwegianWoodStyle(QMotifStyle):
p.setPen(oldPen)
def drawBevelButton(self, p, x, y, w, h, g, sunken=FALSE, fill=None):
- QMotifStyle.drawBevelButton(self, p, x, y, w, h, g, sunken, fill)
+ TQMotifStyle.drawBevelButton(self, p, x, y, w, h, g, sunken, fill)
def drawPushButton(self, btn, p):
g = btn.colorGroup()
@@ -516,19 +516,19 @@ class NorwegianWoodStyle(QMotifStyle):
(x1, y1, x2, y2)=btn.rect().coords()
p.setPen(g.foreground())
- p.setBrush(QBrush(g.button(),Qt.NoBrush))
+ p.setBrush(TQBrush(g.button(),TQt.NoBrush))
if btn.isDown():
- fill=g.brush(QColorGroup.Mid)
+ fill=g.brush(TQColorGroup.Mid)
elif btn.isOn():
- fill=QBrush(g.mid(),Qt.Dense4Pattern)
+ fill=TQBrush(g.mid(),TQt.Dense4Pattern)
else:
- fill=g.brush(QColorGroup.Button)
+ fill=g.brush(TQColorGroup.Button)
if btn.isDefault():
- a=QPointArray([x1, y1, x2, y1, x2, y2, x1, y2, x1, y1+1,
+ a=TQPointArray([x1, y1, x2, y1, x2, y2, x1, y2, x1, y1+1,
x2-1, y1+1, x2-1, y2-1, x1+1, y2-1, x1+1, y1+1])
- p.setPen(Qt.black)
+ p.setPen(TQt.black)
p.drawPolyline(a)
x1=x1+2
y1=y1+2
@@ -544,12 +544,12 @@ class NorwegianWoodStyle(QMotifStyle):
if btn.isMenuButton():
dx=(y1-y2-4)/3
- self.drawArrow(p, Qt.DownArrow, FALSE,
+ self.drawArrow(p, TQt.DownArrow, FALSE,
x2-dx, dx, y1, y2-y1,
g, btn.isEnabled())
- if p.brush().style != Qt.NoBrush:
- p.setBrush(Qt.NoBrush)
+ if p.brush().style != TQt.NoBrush:
+ p.setBrush(TQt.NoBrush)
def drawPushButtonLabel(self, btn, p):
r=btn.rect()
@@ -573,7 +573,7 @@ class NorwegianWoodStyle(QMotifStyle):
else:
pencolour=btn.colorGroup().buttonText()
self.drawItem(p, x, y, w, h,
- Qt.AlignCenter|Qt.ShowPrefix,
+ TQt.AlignCenter|TQt.ShowPrefix,
g, btn.isEnabled(),
btn.pixmap(), btn.text(), -1,
pencolour)
@@ -582,89 +582,89 @@ class NorwegianWoodStyle(QMotifStyle):
p.translate(-dx,-dy)
def buttonRect(self, x, y, w, h):
- return QRect(x+3, y+2, w-6, h-4)
+ return TQRect(x+3, y+2, w-6, h-4)
def drawButtonMask(self, p, x, y, w, h):
self.drawroundrect(p, x, y, w, h, 8)
-class MetalStyle(QWindowsStyle):
+class MetalStyle(TQWindowsStyle):
def __init__(self):
- QWindowsStyle.__init__(self)
+ TQWindowsStyle.__init__(self)
def polish(self,o):
- if isinstance(o,QApplication):
+ if isinstance(o,TQApplication):
self.polish_qapplication(o)
- elif isinstance(o,QWidget):
+ elif isinstance(o,TQWidget):
self.polish_qwidget(o)
else:
- QWindowsStyle.polish(self,o)
+ TQWindowsStyle.polish(self,o)
def unPolish(self,o):
- if isinstance(o,QApplication):
+ if isinstance(o,TQApplication):
self.unPolish_qapplication(o)
- elif isinstance(o,QWidget):
+ elif isinstance(o,TQWidget):
self.unPolish_qwidget(o)
else:
- QWindowsStyle.unPolish(self,o)
+ TQWindowsStyle.unPolish(self,o)
def polish_qapplication(self,app):
global stone1_xpm, stonebright_xpm
self.oldPalette=app.palette()
- # we simply create a nice QColorGroup with a couple of fancy pixmaps here
+ # we simply create a nice TQColorGroup with a couple of fancy pixmaps here
# and apply it to all widgets
- f=QFont("times", app.font().pointSize())
+ f=TQFont("times", app.font().pointSize())
f.setBold(TRUE)
f.setItalic(TRUE)
- app.setFont(f, TRUE, "QMenuBar")
- app.setFont(f, TRUE, "QPopupMenu")
-
- button=QPixmap(stone1_xpm)
- background=QPixmap(stonebright_xpm)
- dark=QPixmap(1,1)
- dark.fill(Qt.red.dark())
- mid=QPixmap(stone1_xpm)
- light=QPixmap(stone1_xpm)
+ app.setFont(f, TRUE, "TQMenuBar")
+ app.setFont(f, TRUE, "TQPopupMenu")
+
+ button=TQPixmap(stone1_xpm)
+ background=TQPixmap(stonebright_xpm)
+ dark=TQPixmap(1,1)
+ dark.fill(TQt.red.dark())
+ mid=TQPixmap(stone1_xpm)
+ light=TQPixmap(stone1_xpm)
op=app.palette()
- backCol=QColor(227,227,227)
-
- nor=QColorGroup(QBrush(op.normal().foreground()),
- QBrush(op.normal().button(), button),
- QBrush(op.normal().light(), light),
- QBrush(op.normal().dark(), dark),
- QBrush(op.normal().mid(), mid),
- QBrush(op.normal().text()),
- QBrush(Qt.white),
- QBrush(op.normal().base()),
- QBrush(backCol, background))
- nor.setColor(QColorGroup.ButtonText, Qt.white)
- nor.setColor(QColorGroup.Shadow, Qt.black)
- disabled=QColorGroup(QBrush(op.disabled().foreground()),
- QBrush(op.disabled().button(), button),
- QBrush(op.disabled().light(), light),
- QBrush(op.disabled().dark()),
- QBrush(op.disabled().mid(), mid),
- QBrush(op.disabled().text()),
- QBrush(Qt.white),
- QBrush(op.disabled().base()),
- QBrush(backCol, background))
- active=QColorGroup(QBrush(op.active().foreground()),
- QBrush(op.active().button(), button),
- QBrush(op.active().light(), light),
- QBrush(op.active().dark()),
- QBrush(op.active().mid(), mid),
- QBrush(op.active().text()),
- QBrush(Qt.white),
- QBrush(op.active().base()),
- QBrush(backCol, background))
- active.setColor(QColorGroup.ButtonText, Qt.white)
-
- newPalette=QPalette(nor, disabled, active)
+ backCol=TQColor(227,227,227)
+
+ nor=TQColorGroup(TQBrush(op.normal().foreground()),
+ TQBrush(op.normal().button(), button),
+ TQBrush(op.normal().light(), light),
+ TQBrush(op.normal().dark(), dark),
+ TQBrush(op.normal().mid(), mid),
+ TQBrush(op.normal().text()),
+ TQBrush(TQt.white),
+ TQBrush(op.normal().base()),
+ TQBrush(backCol, background))
+ nor.setColor(TQColorGroup.ButtonText, TQt.white)
+ nor.setColor(TQColorGroup.Shadow, TQt.black)
+ disabled=TQColorGroup(TQBrush(op.disabled().foreground()),
+ TQBrush(op.disabled().button(), button),
+ TQBrush(op.disabled().light(), light),
+ TQBrush(op.disabled().dark()),
+ TQBrush(op.disabled().mid(), mid),
+ TQBrush(op.disabled().text()),
+ TQBrush(TQt.white),
+ TQBrush(op.disabled().base()),
+ TQBrush(backCol, background))
+ active=TQColorGroup(TQBrush(op.active().foreground()),
+ TQBrush(op.active().button(), button),
+ TQBrush(op.active().light(), light),
+ TQBrush(op.active().dark()),
+ TQBrush(op.active().mid(), mid),
+ TQBrush(op.active().text()),
+ TQBrush(TQt.white),
+ TQBrush(op.active().base()),
+ TQBrush(backCol, background))
+ active.setColor(TQColorGroup.ButtonText, TQt.white)
+
+ newPalette=TQPalette(nor, disabled, active)
app.setPalette(newPalette, TRUE)
def unPolish_qapplication(self,app):
@@ -675,26 +675,26 @@ class MetalStyle(QWindowsStyle):
# the polish function will set some widgets to transparent mode, to get the
# full benefit from the nice pixmaps in the color group.
- if w.inherits("QPushButton"):
- w.setBackgroundMode(QWidget.NoBackground)
+ if w.inherits("TQPushButton"):
+ w.setBackgroundMode(TQWidget.NoBackground)
def unPolish_qwidget(self,w):
- if w.inherits("QPushButton"):
- w.setBackgroundMode(QWidget.PaletteButton)
+ if w.inherits("TQPushButton"):
+ w.setBackgroundMode(TQWidget.PaletteButton)
def drawButton(self, p, x, y, w, h, g, sunken=FALSE, fill=None):
global img1, metal_xpm
if not img1:
- img1=QImage(metal_xpm)
+ img1=TQImage(metal_xpm)
scaledImage=img1.smoothScale(w, h)
- pix=QPixmap()
+ pix=TQPixmap()
pix.convertFromImage(scaledImage)
p.drawPixmap(x, y, pix)
- g2=QColorGroup()
- g2.setColor(QColorGroup.Light, Qt.white)
- g2.setColor(QColorGroup.Dark, Qt.black)
+ g2=TQColorGroup()
+ g2.setColor(TQColorGroup.Light, TQt.white)
+ g2.setColor(TQColorGroup.Dark, TQt.black)
if sunken:
linewidth=2
@@ -712,19 +712,19 @@ class MetalStyle(QWindowsStyle):
(x1, y1, x2, y2)=btn.rect().coords()
p.setPen(g.foreground())
- p.setBrush(QBrush(g.button(),Qt.NoBrush))
+ p.setBrush(TQBrush(g.button(),TQt.NoBrush))
if btn.isDown():
- fill=g.brush(QColorGroup.Mid)
+ fill=g.brush(TQColorGroup.Mid)
elif btn.isOn():
- fill=QBrush(g.mid(),Qt.Dense4Pattern)
+ fill=TQBrush(g.mid(),TQt.Dense4Pattern)
else:
- fill=g.brush(QColorGroup.Button)
+ fill=g.brush(TQColorGroup.Button)
if btn.isDefault():
- a=QPointArray([x1, y1, x2, y1, x2, y2, x1, y2, x1, y1+1,
+ a=TQPointArray([x1, y1, x2, y1, x2, y2, x1, y2, x1, y1+1,
x2-1, y1+1, x2-1, y2-1, x1+1, y2-1, x1+1, y1+1])
- p.setPen(Qt.black)
+ p.setPen(TQt.black)
p.drawPolyline(a)
x1=x1+2
y1=y1+2
@@ -740,12 +740,12 @@ class MetalStyle(QWindowsStyle):
if btn.isMenuButton():
dx=(y1-y2-4)/3
- self.drawArrow(p, Qt.DownArrow, FALSE,
+ self.drawArrow(p, TQt.DownArrow, FALSE,
x2-dx, dx, y1, y2-y1,
g, btn.isEnabled())
- if p.brush().style != Qt.NoBrush:
- p.setBrush(Qt.NoBrush)
+ if p.brush().style != TQt.NoBrush:
+ p.setBrush(TQt.NoBrush)
def drawPushButtonLabel(self, btn, p):
r=btn.rect()
@@ -771,7 +771,7 @@ class MetalStyle(QWindowsStyle):
h=h-4
g=btn.colorGroup()
self.drawItem(p, x, y, w, h,
- Qt.AlignCenter|Qt.ShowPrefix,
+ TQt.AlignCenter|TQt.ShowPrefix,
g, btn.isEnabled(),
btn.pixmap(), btn.text(), -1,
pencolour)
@@ -780,20 +780,20 @@ class MetalStyle(QWindowsStyle):
p.translate(-dx,-dy)
def drawPanel(self, p, x, y, w, h, g, sunken, lineWidth, fill):
- QStyle.drawPanel(self, p, x, y, w, h, g, sunken, lineWidth, fill)
+ TQStyle.drawPanel(self, p, x, y, w, h, g, sunken, lineWidth, fill)
-class Themes(QMainWindow):
+class Themes(TQMainWindow):
- def __init__(self, parent=None, name=None, f=Qt.WType_TopLevel):
- QMainWindow.__init__(self, parent, name, f)
+ def __init__(self, parent=None, name=None, f=TQt.WType_TopLevel):
+ TQMainWindow.__init__(self, parent, name, f)
- self.appFont=QApplication.font()
- self.tabwidget=QTabWidget(self)
+ self.appFont=TQApplication.font()
+ self.tabwidget=TQTabWidget(self)
self.buttonsgroups=ButtonsGroups(self.tabwidget)
self.tabwidget.addTab(self.buttonsgroups,"Buttons/Groups")
- self.hbox=QHBox(self.tabwidget)
+ self.hbox=TQHBox(self.tabwidget)
self.hbox.setMargin(5)
self.linedits=LineEdits(self.hbox)
self.progressbar=ProgressBar(self.hbox)
@@ -803,7 +803,7 @@ class Themes(QMainWindow):
self.setCentralWidget(self.tabwidget)
- self.style=QPopupMenu(self)
+ self.style=TQPopupMenu(self)
self.style.setCheckable(TRUE)
self.menuBar().insertItem("&Style", self.style)
@@ -815,13 +815,13 @@ class Themes(QMainWindow):
self.sMotif=self.style.insertItem("M&otif", self.styleMotif)
self.sMotifPlus=self.style.insertItem("Motif P&lus", self.styleMotifPlus)
self.style.insertSeparator()
- self.style.insertItem("&Quit", qApp.quit, Qt.CTRL | Qt.Key_Q)
+ self.style.insertItem("&Quit", qApp.quit, TQt.CTRL | TQt.Key_Q)
- self.help=QPopupMenu(self)
+ self.help=TQPopupMenu(self)
self.menuBar().insertSeparator()
self.menuBar().insertItem("&Help", self.help)
- self.help.insertItem("&About", self.about, Qt.Key_F1)
- self.help.insertItem("About &Qt", self.aboutQt)
+ self.help.insertItem("&About", self.about, TQt.Key_F1)
+ self.help.insertItem("About &TQt", self.aboutTQt)
self.style=NorwegianWoodStyle()
qApp.setStyle(self.style)
@@ -846,75 +846,75 @@ class Themes(QMainWindow):
self.selectStyleMenu(self.sMetal)
def stylePlatinum(self):
- newstyle=QPlatinumStyle()
+ newstyle=TQPlatinumStyle()
qApp.setStyle(newstyle)
self.style=newstyle
- p=QPalette(QColor(239, 239, 239))
+ p=TQPalette(TQColor(239, 239, 239))
qApp.setPalette(p, TRUE)
qApp.setFont(self.appFont, TRUE)
self.selectStyleMenu(self.sPlatinum)
def styleWindows(self):
- newstyle=QWindowsStyle()
+ newstyle=TQWindowsStyle()
qApp.setStyle(newstyle)
self.style=newstyle
qApp.setFont(self.appFont, TRUE)
self.selectStyleMenu(self.sWindows)
def styleCDE(self):
- newstyle=QCDEStyle(TRUE)
+ newstyle=TQCDEStyle(TRUE)
qApp.setStyle(newstyle)
self.style=newstyle
self.selectStyleMenu(self.sCDE)
- p=QPalette(QColor(75, 123, 130))
- p.setColor(QPalette.Active, QColorGroup.Base, QColor(55, 77, 78));
- p.setColor(QPalette.Inactive, QColorGroup.Base, QColor(55, 77, 78));
- p.setColor(QPalette.Disabled, QColorGroup.Base, QColor(55, 77, 78));
- p.setColor(QPalette.Active, QColorGroup.Highlight, Qt.white);
- p.setColor(QPalette.Active, QColorGroup.HighlightedText, QColor(55, 77, 78));
- p.setColor(QPalette.Inactive, QColorGroup.Highlight, Qt.white);
- p.setColor(QPalette.Inactive, QColorGroup.HighlightedText, QColor(55, 77, 78));
- p.setColor(QPalette.Disabled, QColorGroup.Highlight, Qt.white);
- p.setColor(QPalette.Disabled, QColorGroup.HighlightedText, QColor(55, 77, 78));
- p.setColor(QPalette.Active, QColorGroup.Foreground, Qt.white);
- p.setColor(QPalette.Active, QColorGroup.Text, Qt.white);
- p.setColor(QPalette.Active, QColorGroup.ButtonText, Qt.white);
- p.setColor(QPalette.Inactive, QColorGroup.Foreground, Qt.white);
- p.setColor(QPalette.Inactive, QColorGroup.Text, Qt.white);
- p.setColor(QPalette.Inactive, QColorGroup.ButtonText, Qt.white);
- p.setColor(QPalette.Disabled, QColorGroup.Foreground, Qt.lightGray);
- p.setColor(QPalette.Disabled, QColorGroup.Text, Qt.lightGray);
- p.setColor(QPalette.Disabled, QColorGroup.ButtonText, Qt.lightGray);
+ p=TQPalette(TQColor(75, 123, 130))
+ p.setColor(TQPalette.Active, TQColorGroup.Base, TQColor(55, 77, 78));
+ p.setColor(TQPalette.Inactive, TQColorGroup.Base, TQColor(55, 77, 78));
+ p.setColor(TQPalette.Disabled, TQColorGroup.Base, TQColor(55, 77, 78));
+ p.setColor(TQPalette.Active, TQColorGroup.Highlight, TQt.white);
+ p.setColor(TQPalette.Active, TQColorGroup.HighlightedText, TQColor(55, 77, 78));
+ p.setColor(TQPalette.Inactive, TQColorGroup.Highlight, TQt.white);
+ p.setColor(TQPalette.Inactive, TQColorGroup.HighlightedText, TQColor(55, 77, 78));
+ p.setColor(TQPalette.Disabled, TQColorGroup.Highlight, TQt.white);
+ p.setColor(TQPalette.Disabled, TQColorGroup.HighlightedText, TQColor(55, 77, 78));
+ p.setColor(TQPalette.Active, TQColorGroup.Foreground, TQt.white);
+ p.setColor(TQPalette.Active, TQColorGroup.Text, TQt.white);
+ p.setColor(TQPalette.Active, TQColorGroup.ButtonText, TQt.white);
+ p.setColor(TQPalette.Inactive, TQColorGroup.Foreground, TQt.white);
+ p.setColor(TQPalette.Inactive, TQColorGroup.Text, TQt.white);
+ p.setColor(TQPalette.Inactive, TQColorGroup.ButtonText, TQt.white);
+ p.setColor(TQPalette.Disabled, TQColorGroup.Foreground, TQt.lightGray);
+ p.setColor(TQPalette.Disabled, TQColorGroup.Text, TQt.lightGray);
+ p.setColor(TQPalette.Disabled, TQColorGroup.ButtonText, TQt.lightGray);
qApp.setPalette(p, TRUE)
- qApp.setFont(QFont("times", self.appFont.pointSize()), TRUE)
+ qApp.setFont(TQFont("times", self.appFont.pointSize()), TRUE)
def styleMotif(self):
- newstyle=QMotifStyle(TRUE)
+ newstyle=TQMotifStyle(TRUE)
qApp.setStyle(newstyle)
self.style=newstyle
- p=QPalette(QColor(192, 192, 192))
+ p=TQPalette(TQColor(192, 192, 192))
qApp.setPalette(p, TRUE)
qApp.setFont(self.appFont, TRUE)
self.selectStyleMenu(self.sMotif)
def styleMotifPlus(self):
- newstyle=QMotifPlusStyle(TRUE)
+ newstyle=TQMotifPlusStyle(TRUE)
qApp.setStyle(newstyle)
self.style=newstyle
- p=QPalette(QColor(192, 192, 192))
+ p=TQPalette(TQColor(192, 192, 192))
qApp.setPalette(p, TRUE)
qApp.setFont(self.appFont, TRUE)
self.selectStyleMenu(self.sMotifPlus)
def about(self):
- QMessageBox.about(self, "Qt Themes Example",
+ TQMessageBox.about(self, "TQt Themes Example",
"<p>This example demonstrates the concept of "
"<b>generalized GUI styles </b> first introduced "
- " with the 2.0 release of Qt.</p>" )
+ " with the 2.0 release of TQt.</p>" )
- def aboutQt(self):
- QMessageBox.aboutQt(self, "Qt Themes Example")
+ def aboutTQt(self):
+ TQMessageBox.aboutTQt(self, "TQt Themes Example")
def selectStyleMenu(self, s):
self.menuBar().setItemChecked(self.sWood, FALSE)
@@ -928,12 +928,12 @@ class Themes(QMainWindow):
def main(argv):
- QApplication.setColorSpec(QApplication.CustomColor)
- QApplication.setStyle(QWindowsStyle())
- a=QApplication(sys.argv)
+ TQApplication.setColorSpec(TQApplication.CustomColor)
+ TQApplication.setStyle(TQWindowsStyle())
+ a=TQApplication(sys.argv)
themes=Themes()
- themes.setCaption('Theme (QStyle) example')
+ themes.setCaption('Theme (TQStyle) example')
themes.resize(640,400)
a.setMainWidget(themes)
themes.show()
@@ -2399,44 +2399,44 @@ metal_xpm = [
"P c #646a74",
"Q c #747a84",
"R c #6c727c",
-"DNDDDDDDDDDDNDNDNDNNiNNiNiNyiyiyqyyyyIyIcIcIcAsAsAAKAKeKememkmmmQEQEEaoaoaaFRFFFftftlfPllllpxpxpxHbbbrbrzrzrJddddOdOOjOjOnwwwwwGwGG#GCGC#CCCCCCCMCMMMhMBhB",
-"DDDNDNDNDNDNDDNDiDNDNDiyNNiNNyNyiyqyqyIyIIcIcIAcAsAseAKeKekemkmkEmEQEEoaoaoRFRFFtFtftltlPllplpxpbpbHbbrbrrzrdrdJdddOOOOjOwOwOGwwwGwGGGCGCG#CvCCMCMCCMMMMMM",
-"NNDNDNDNDNDNDiDNDNiNiNNDNNyNyqNqyqyqycyIcIcIAIAsAsAKAKKeKkKmkmkEmQQoQoEaoFoaFRtRFftftfPlPpllpxpbpbHbbbbrzrrdrdrdddOddOOwOOwOwwwwGwGwCGwCGGCvCCvCCChCMCBhMB",
-"DDiDNDNDNDiDNNNiNNDiNyNiyNiyNyyNyyyIqIIcIcIAIcAsAAseKeKemKmkmkQmEEQEoaEaoaFRoFFtttftltlPlPppxppxbpbHbrrrrzrzrdddJdOdjOOOjwOwwOGwGwGGw#CGGCvCvCCCMMCMhCMCBM",
-"iNNNiNiNiNNiDNDNNiNyNiNiNyNyiyqyqIqyIIyIcIcIcAsAsKAKAKeKeekmkmEkQQEEQaooaRoFFtRFFftltflPllllppxpHbpbHbbzrrdrdrOrOddOOjOwOOGOwGwwGwGwCGGCGCCGCCMvCCMCMMhMMB",
-"NiNNNNNNNNiNiNiNiNNNiyNyiqyNyqyyyyIyIcIcIAcAsAsAAAseKeKmkmkmkQmEEQEoaEaoRoFRRFtfttftlPtllppxpxpbpbbrbrrbrzrdddddOdOOdOOwOwwOGOGwGGGGwCGGCGCCvCvCMMCMhMBChM",
-"iNNiiNiiNiNNiNiNyiyNyNyNyyqyqyyqIqycIcIcIsIsAsAAseKeKeeeKmkmmkQQQoEQooaoFaFRFFRFtftPtlllPplpxpbpbbHbbbrrzrrdrdrdddOdwOOjOwOwwwwGwGwCGGGCGCGCGCCCMCMCMCMMMB",
-"NyNiNiNiNiNiyNiyNNyiNyqyNyyqyyqIIIIIcIcAIAcAsAsKAKKeKkmkmkmkQEQEEQaoaoaaoFRFFtftftflPlPllpxppxpbbpbbrbrzrrdrdOJOdOOOOOwOwOwwOGwGwGGw#CGCGCvCCCvMCMMMhMhBMh",
-"yNiyNyNyiyNyiNyNiyqyyiyqyqyyyIIIycIcIAsIcAsAsAKAeKeKeeKmkmkmEmQEQoEEaoRoRFRFRtFttltftlPlplppxpbpbHrbbrrrrdrddrOrdOdOdwOwOwOGwGwwGGwCGwCGCGCCvMCCMCMCCBMMMB",
-"qyNyiqyNyNyNyyqyyNyqyyqyyyqIIyIycIcIcIAcAsAAAKsKKeKemkmkmkmQkEEQEoaoaoaFFRFFtRftftlPllllpxpxpbbHpbbrrrzrzrdJrOdOOdOjOOOwOwwwOGGwGG#GGCGCGCvCCvCMCCMhMCMBMh",
-"NyqyqyNyqyqyqyNyqyqyqyyIqIIyIcIcIIcIAsIAsAsAsAeAKeKkKkKmkmEQEQEQaoEaoaRFoRFRfttftPflPlPplpxppHpbbrHbbzrrzrdrdddddOOdwOwOwwOwGwGwGwCwCGGCGCCGCCCCMMCMMMMhMB",
-"yqyqyyqyqyqyqyqyyqyyIyqIyIyIcIIcIsAIcAsAAsAKKKKeeKmemmmkmQkQEQEoEaoaoFoFRFFtFtftftltlllpplpxbpbHbbbrrrzrdrdddJdOdOOOOjOwOwwwwwGwGGGGGCGCGCvCCGMMCMMhMBCBMB",
-"yyyyyqyyqyyqyyyqyyyIyIyIIcIcIIcIAIcAsAsAsKAeAKeKekKmkkmQkmQEQEoQaooaoaFRFRtFttftPlPllPplpxpxpbpbbHrbzrrrrdrdrOddOdjOwOwOwwOGOGwGw#GGCGCGCCGCCMCCMChCMMMhMB",
-"IqyqyyqyyyqyyqIIIIqIIIIcIIcIccIscAsAsAAAKAsKeeKekmekmmkmEEEQEEoaoaoaRFoFFFtftftltlPlPplpxpxpbbbHbrbrrzrdzddddddOOOOOOwOwO#wGGwGGGCw#GCGCvCCvMCMCMMMMBCBMBM",
-"IyIIIIIIIIIIIIyIyIIIyIcIccIcIcAIAsAsAAsKsKKeKeKmeKmkmkEmQQQEQaoEaoaRoFRFRtRFtftfltlPlplxpppbbpHbbbrbrrzrdrdrJOdOdOdwOwOwwwOwwGwwGwCGCGCGCCGCCCvMCMCMMhMhMB",
+"DNDDDDDDDDDDNDNDNDNNiNNiNiNyiyiyqyyyyIyIcIcIcAsAsAAKAKeKememkmmmTQEQEEaoaoaaFRFFFftftlfPllllpxpxpxHbbbrbrzrzrJddddOdOOjOjOnwwwwwGwGG#GCGC#CCCCCCCMCMMMhMBhB",
+"DDDNDNDNDNDNDDNDiDNDNDiyNNiNNyNyiyqyqyIyIIcIcIAcAsAseAKeKekemkmkEmETQEEoaoaoRFRFFtFtftltlPllplpxpbpbHbbrbrrzrdrdJdddOOOOjOwOwOGwwwGwGGGCGCG#CvCCMCMCCMMMMMM",
+"NNDNDNDNDNDNDiDNDNiNiNNDNNyNyqNqyqyqycyIcIcIAIAsAsAKAKKeKkKmkmkEmTQQoQoEaoFoaFRtRFftftfPlPpllpxpbpbHbbbbrzrrdrdrdddOddOOwOOwOwwwwGwGwCGwCGGCvCCvCCChCMCBhMB",
+"DDiDNDNDNDiDNNNiNNDiNyNiyNiyNyyNyyyIqIIcIcIAIcAsAAseKeKemKmkmkQmEETQEoaEaoaFRoFFtttftltlPlPppxppxbpbHbrrrrzrzrdddJdOdjOOOjwOwwOGwGwGGw#CGGCvCvCCCMMCMhCMCBM",
+"iNNNiNiNiNNiDNDNNiNyNiNiNyNyiyqyqIqyIIyIcIcIcAsAsKAKAKeKeekmkmEkTQQEEQaooaRoFFtRFFftltflPllllppxpHbpbHbbzrrdrdrOrOddOOjOwOOGOwGwwGwGwCGGCGCCGCCMvCCMCMMhMMB",
+"NiNNNNNNNNiNiNiNiNNNiyNyiqyNyqyyyyIyIcIcIAcAsAsAAAseKeKmkmkmkQmEETQEoaEaoRoFRRFtfttftlPtllppxpxpbpbbrbrrbrzrdddddOdOOdOOwOwwOGOGwGGGGwCGGCGCCvCvCMMCMhMBChM",
+"iNNiiNiiNiNNiNiNyiyNyNyNyyqyqyyqIqycIcIcIsIsAsAAseKeKeeeKmkmmkTQQQoEQooaoFaFRFFRFtftPtlllPplpxpbpbbHbbbrrzrrdrdrdddOdwOOjOwOwwwwGwGwCGGGCGCGCGCCCMCMCMCMMMB",
+"NyNiNiNiNiNiyNiyNNyiNyqyNyyqyyqIIIIIcIcAIAcAsAsKAKKeKkmkmkmkTQEQEEQaoaoaaoFRFFtftftflPlPllpxppxpbbpbbrbrzrrdrdOJOdOOOOOwOwOwwOGwGwGGw#CGCGCvCCCvMCMMMhMhBMh",
+"yNiyNyNyiyNyiNyNiyqyyiyqyqyyyIIIycIcIAsIcAsAsAKAeKeKeeKmkmkmEmTQEQoEEaoRoRFRFRtFttltftlPlplppxpbpbHrbbrrrrdrddrOrdOdOdwOwOwOGwGwwGGwCGwCGCGCCvMCCMCMCCBMMMB",
+"qyNyiqyNyNyNyyqyyNyqyyqyyyqIIyIycIcIcIAcAsAAAKsKKeKemkmkmkmQkEETQEoaoaoaFFRFFtRftftlPllllpxpxpbbHpbbrrrzrzrdJrOdOOdOjOOOwOwwwOGGwGG#GGCGCGCvCCvCMCCMhMCMBMh",
+"NyqyqyNyqyqyqyNyqyqyqyyIqIIyIcIcIIcIAsIAsAsAsAeAKeKkKkKmkmETQEQEQaoEaoaRFoRFRfttftPflPlPplpxppHpbbrHbbzrrzrdrdddddOOdwOwOwwOwGwGwGwCwCGGCGCCGCCCCMMCMMMMhMB",
+"yqyqyyqyqyqyqyqyyqyyIyqIyIyIcIIcIsAIcAsAAsAKKKKeeKmemmmkmQkTQEQEoEaoaoFoFRFFtFtftftltlllpplpxbpbHbbbrrrzrdrdddJdOdOOOOjOwOwwwwwGwGGGGGCGCGCvCCGMMCMMhMBCBMB",
+"yyyyyqyyqyyqyyyqyyyIyIyIIcIcIIcIAIcAsAsAsKAeAKeKekKmkkmQkmTQEQEoQaooaoaFRFRtFttftPlPllPplpxpxpbpbbHrbzrrrrdrdrOddOdjOwOwOwwOGOGwGw#GGCGCGCCGCCMCCMChCMMMhMB",
+"IqyqyyqyyyqyyqIIIIqIIIIcIIcIccIscAsAsAAAKAsKeeKekmekmmkmEEETQEEoaoaoaRFoFFFtftftltlPlPplpxpxpbbbHbrbrrzrdzddddddOOOOOOwOwO#wGGwGGGCw#GCGCvCCvMCMCMMMMBCBMBM",
+"IyIIIIIIIIIIIIyIyIIIyIcIccIcIcAIAsAsAAsKsKKeKeKmeKmkmkEmTQQQEQaoEaoaRoFRFRtRFtftfltlPlplxpppbbpHbbbrbrrzrdrdrJOdOdOdwOwOwwwOwwGwwGwCGCGCGCCGCCCvMCMCMMhMhMB",
"IIIyIyIyIyIyIyIcIcIccIcIcAIAcAsAsAsAsKKAeKeKekKkkmkmkmQkEEEQoEoaoaoFRFRtFftftftlPlllplppxxpbpbbbrHrzrzrdrddOddOOOjOOwOwOwwGwGwG#GGGCwCGCvCCMvMCMMMhMBMBMBh",
-"cIcIcIcIcIcIcIcIcIcIcIcIAscsAIAsAAsAKAKeKeKkeKmemkmkQmQEQEQoEoaoaoFRRFFRtFttltPltPpPlppxppbpbHbHrbrrrrdrdrOrdOddOdwOjOwOGOwwGwGGwCGGvGCGCCvCCCMCMCMhCMMhMB",
-"IcIcIcIcIcIcIcIcIcIAIAcAIAAsAsAsAsKAKseKeKeKmkkmkmmQmkEQEEoaEaoaaRaoFFtFftftfPtllllppxppxbpbbbbbrrzrzrdrdddOdOdOOOOwOwwO#wGwGwG#CwCGCCvCvCCCMCMCMMMBMBhBMh",
-"IAccIcIcIcIcIccIAIAscsAsAIsAsAsAAKAeKeKeKemkemkmmkQkEQEEQoQoaoaoFoFFFRtRttftltllPlPllppxppbHbpHrbbrrrdrddrddOdOOOjOOwwOwwwwGwGGwGGGCGCGCCCvCvMCMhCMMhMMMBB",
-"csAIAsAsAsAAsAsAcsAIAAsAsAAAAAKKsKKKeKeKkeKmkmkmkQmEQEQoEaoaoaoRRFRFRtfFftftPlPlPlppxpxpbbHprrbrrzrzrdrdrOOddOOjOwOwOwO#OGwGwG#CwCGGCGCGCGMCMCMMMMBCBMBMhB",
-"IAsAIAIsIAsIAIAIAsAsAsAsAsAsKsAKeAeeKeKemkmkmkmkQmEQEQEaQoEaoaFoRFRtFFtttftlfltPplplppxpHpbbbbrbbrzrrdrdOdddOdOOOOwOwOwwGwGwGGwGGGCGCvCvCCMCCMCMCMhMMhMBMB",
-"sAsAsAsAsAsAsAsAsAsAsAAAKAKKKeKeKeKeekmKkmkmkmQmEQEQEEoEaoaoaoRFaFFRttftftltlPlpllpxpxpbxbpbHrbrrrrdzdrdrOdOdOjOjOwOwwwOGwwGGGCwGCGCGCCCGMCCMCMMhMBMBMBhBu",
-"sAAsAsAAAsAAsAAsAAAAAsKsKKsAeKKeKeeKkKmkmkmkmmQEkEQEoQaooaoaRFoRFRFFfFtftftlPlPlplpxpbpbpbbrbrbrzrzrdrdOddOdOOOOOOwOwOwwwwGwGwGGGCGGCGCGCCMvCMMCMMCMMBMuMB",
-"AAsAAAAsAAAsAAsKAsKKAKKKeKeKeKeKekkmmemkmmkQmkEQEQEEoEoaoaoRoFRFFttRtftfftlPtllpPpxpxpbbHbHbbrrzrzrdrddrOddOOjOwOwOwO#wGOGGGw#CGCGCCvCvMCvCMMMCMhBMhhMBMBu",
-"KKAKKsAKKsAKAKKAKKKKKeAeKeKkKeeekKmKmkmkmkmQEEQEQEoQaoaoaoFaFRFFRFFtfttltlllllplpxpppbpbpbbrbrbrrrdrdrdddOdOdOOOwOwOwGOwGGwGwCwGGCGGCGCCMCMCCMMMMCBMBMBMBB",
-"eAeKKeKKKKKKeKAeKAeeKeKeKeeKkmkmKmkmkmkmQmEQQEQEooQaooaoaRoFRFRFttfttfftlPPlpPppxppxbxbHbrbbrzrzrdrddddOddOOjOwOwOwwwOGwGwGGGGGC#CGCCCvCGMCMMCMhMMMhBMhBuB",
-"eKeKeKKeKeeKeKeKeeeKeKeKeKmemkKkmkmkmkQQkEkEEQoEQEaEaoaFoaRFRFFRftFftftPltlPlllxppxpbpbpbHbrbrrzrzdrdrdJOdOdOOOOwOwOwwwwGwG#wCGGCGCvCGCCMCMCMhMMCBMBMBMBMB",
-"KeKeKeeKeKeKeKeKeKeKekkkmekmKmmkmmkQQmEQEQEQEEoQaooaoaoRFFFRFFtFtftftlllPllpppppxpxbpbbrbrbrrzrrdrdddOddOdOjOwOwOwO#wGwGwGGGCwGCGCGCvCCvCMCCMCMhBCMhBMBuBu",
-"kkKeeKeKeeKeKkKkkkkkKmKmkkmkmkkmmkEmmEkQEQEQoQaoaoaoaaFoFRRFFRtFfttltPtfllPllxlpxpbpbpbHbrbrzrrdrdrdrddOdOOOOdwOwOwwGOwwGw#wGGCGCGCGCCCMCMCMMMMMMhMBMMBMBB",
-"KmekmekekKmememKmKmemkmkmmkmmmmkQQmkEEQEQoEoaEoEaoaaoFRRFFFRttfttfftllllPlppppxpxpbbHbbrbrrrrzrzdrOddOddOOjOwOwOwwOwwGGGGGCGCGG#CGCCvCvCMCMMChMBMBMMBhBuBu",
-"ekmKkmkmkmkkkmkkmkmkmkmkmkmkmkQQEQEEQEQoEEaQoaoaoaoFRFoRFRFtFtFftPtfPltPplplxppxpbbpbHbHrbzrzrrdrdddJddOOdOOOjOwOw#OwwGwwGwGwCGCGCCGCCMCvMCMMMhCMMBMBuBMBB",
-"kmkmkmkmkmkmkmkmkmkmkmmkmQmQQEEmkEQEQEEoQooaooaaRoFRoFFFFttFftftftlltllplPpppxpxpbpbbrbrbrrrzrdrddrOdOOOdjOwOwOwwOGGwGwG#GCGCG#CvCvCMGMCMCMMCMBMBMhBMBMBuB",
-"mkmmmkmmkmmkmmkmmkmmmkQmQkQEkQEQEEQoEooEaEaoaoaoFaRFFRtRtRtfttftPltPllPllplxpxpbpHbbHbrbrrzrdrddrddOdddOOOOOwOwOwwwwwGwGGGGGGGCGCCGCCMCMCMChMhCMMBMMBuBuBB",
-"QQQkQmkmmkmmkQQmkQQkEQEQEQEQEEQEoQoEoaQaoaoaaaoFRoFRFFFtFfttfftlftllPplppxpxpxpbbbprbrbrrrzrzdrdddddOOOjOjwOwOwwOGwOGwG#GCwC#CGCGCCvCCCMCMMMMBMBhMBhBMBMBu",
-"EkmEkQQkQQkQQEkQEEQEmQkEQEQEEQoEQoEaQaoaoaoaoRFRRFFFRtRftFftftltllPllPlxppxpbpbbpbbHrbrbzrrdrrddrOdOdOdOOOOwOwOwwwGGGGwGwGGGCGCvCCvCCMvCMMCMhMMMMBuMBuBuBB",
-"QEQEQEQEQEQEmQEQmEQEQEEQEEQEoEaQaoaooaoaoRRFFoFRFFRFtFtFftftlPflPlplppppxpxpbxpbbbrbbrrrrzrzdrddOdJOdOOjOwOwOwwOGwwGwG#CGCGCGCGCGCCMvCMMMCMhBCBhBMBMBMBBuB",
-"EQEQEQEQEQEQEEQEEEQEEQEEQEoQaQooEaoaoaoaFoaoRFRFFRtFftftftftltltlPlPplxppxpbpbbHbHbrbzrzrdrdrddOrdOdOjOdwOwOwwOwGwGwGGwGwC#GCGCvCMGCCMCCMMMMMMMBMMBMBuBuBB",
-"QEEQEEQEEQEEQEQEQEEQooaooaoaooaoaoaaaoRFoFFFRFFFttFttftftPtlPllplpplpxppxpbHbpbbrbrbrrrzrzdrddrOdOdOOOOwOOwOwO#wO#wGGwCGGGCGCGCCvCMCMCMMMChBChMMBhBMBBuBBB",
+"cIcIcIcIcIcIcIcIcIcIcIcIAscsAIAsAAsAKAKeKeKkeKmemkmkQmTQEQEQoEoaoaoFRRFFRtFttltPltPpPlppxppbpbHbHrbrrrrdrdrOrdOddOdwOjOwOGOwwGwGGwCGGvGCGCCvCCCMCMCMhCMMhMB",
+"IcIcIcIcIcIcIcIcIcIAIAcAIAAsAsAsAsKAKseKeKeKmkkmkmmQmkETQEEoaEaoaaRaoFFtFftftfPtllllppxppxbpbbbbbrrzrzrdrdddOdOdOOOOwOwwO#wGwGwG#CwCGCCvCvCCCMCMCMMMBMBhBMh",
+"IAccIcIcIcIcIccIAIAscsAsAIsAsAsAAKAeKeKeKemkemkmmkQkETQEEQoQoaoaoFoFFFRtRttftltllPlPllppxppbHbpHrbbrrrdrddrddOdOOOjOOwwOwwwwGwGGwGGGCGCGCCCvCvMCMhCMMhMMMBB",
+"csAIAsAsAsAAsAsAcsAIAAsAsAAAAAKKsKKKeKeKkeKmkmkmkQmETQEQoEaoaoaoRRFRFRtfFftftPlPlPlppxpxpbbHprrbrrzrzrdrdrOOddOOjOwOwOwO#OGwGwG#CwCGGCGCGCGMCMCMMMMBCBMBMhB",
+"IAsAIAIsIAsIAIAIAsAsAsAsAsAsKsAKeAeeKeKemkmkmkmkQmETQEQEaQoEaoaFoRFRtFFtttftlfltPplplppxpHpbbbbrbbrzrrdrdOdddOdOOOOwOwOwwGwGwGGwGGGCGCvCvCCMCCMCMCMhMMhMBMB",
+"sAsAsAsAsAsAsAsAsAsAsAAAKAKKKeKeKeKeekmKkmkmkmQmETQEQEEoEaoaoaoRFaFFRttftftltlPlpllpxpxpbxbpbHrbrrrrdzdrdrOdOdOjOjOwOwwwOGwwGGGCwGCGCGCCCGMCCMCMMhMBMBMBhBu",
+"sAAsAsAAAsAAsAAsAAAAAsKsKKsAeKKeKeeKkKmkmkmkmmTQEkETQEoQaooaoaRFoRFRFFfFtftftlPlPlplpxpbpbpbbrbrbrzrzrdrdOddOdOOOOOOwOwOwwwwGwGwGGGCGGCGCGCCMvCMMCMMCMMBMuMB",
+"AAsAAAAsAAAsAAsKAsKKAKKKeKeKeKeKekkmmemkmmkQmkETQEQEEoEoaoaoRoFRFFttRtftfftlPtllpPpxpxpbbHbHbbrrzrzrdrddrOddOOjOwOwOwO#wGOGGGw#CGCGCCvCvMCvCMMMCMhBMhhMBMBu",
+"KKAKKsAKKsAKAKKAKKKKKeAeKeKkKeeekKmKmkmkmkmTQEEQETQEoQaoaoaoFaFRFFRFFtfttltlllllplpxpppbpbpbbrbrbrrrdrdrdddOdOdOOOwOwOwGOwGGwGwCwGGCGGCGCCMCMCCMMMMCBMBMBMBB",
+"eAeKKeKKKKKKeKAeKAeeKeKeKeeKkmkmKmkmkmkmQmETQQEQEooQaooaoaRoFRFRFttfttfftlPPlpPppxppxbxbHbrbbrzrzrdrddddOddOOjOwOwOwwwOGwGwGGGGGC#CGCCCvCGMCMMCMhMMMhBMhBuB",
+"eKeKeKKeKeeKeKeKeeeKeKeKeKmemkKkmkmkmkTQQkEkEEQoETQEaEaoaFoaRFRFFRftFftftPltlPlllxppxpbpbpbHbrbrrzrzdrdrdJOdOdOOOOwOwOwwwwGwG#wCGGCGCvCGCCMCMCMhMMCBMBMBMBMB",
+"KeKeKeeKeKeKeKeKeKeKekkkmekmKmmkmmkTQQmETQEQETQEEoQaooaoaoRFFFRFFtFtftftlllPllpppppxpxbpbbrbrbrrzrrdrdddOddOdOjOwOwOwO#wGwGwGGGCwGCGCGCvCCvCMCCMCMhBCMhBMBuBu",
+"kkKeeKeKeeKeKkKkkkkkKmKmkkmkmkkmmkEmmEkTQEQEQoQaoaoaoaaFoFRRFFRtFfttltPtfllPllxlpxpbpbpbHbrbrzrrdrdrdrddOdOOOOdwOwOwwGOwwGw#wGGCGCGCGCCCMCMCMMMMMMhMBMMBMBB",
+"KmekmekekKmememKmKmemkmkmmkmmmmkTQQmkEETQEQoEoaEoEaoaaoFRRFFFRttfttfftllllPlppppxpxpbbHbbrbrrrrzrzdrOddOddOOjOwOwOwwOwwGGGGGCGCGG#CGCCvCvCMCMMChMBMBMMBhBuBu",
+"ekmKkmkmkmkkkmkkmkmkmkmkmkmkmkTQQEQEETQEQoEEaQoaoaoaoFRFoRFRFtFtFftPtfPltPplplxppxpbbpbHbHrbzrzrrdrdddJddOOdOOOjOwOw#OwwGwwGwGwCGCGCCGCCMCvMCMMMhCMMBMBuBMBB",
+"kmkmkmkmkmkmkmkmkmkmkmmkmQmTQQEEmkETQEQEEoQooaooaaRoFRoFFFFttFftftftlltllplPpppxpxpbpbbrbrbrrrzrdrddrOdOOOdjOwOwOwwOGGwGwG#GCGCG#CvCvCMGMCMCMMCMBMBMhBMBMBuB",
+"mkmmmkmmkmmkmmkmmkmmmkQmQkTQEkQETQEEQoEooEaEaoaoaoFaRFFRtRtRtfttftPltPllPllplxpxpbpHbbHbrbrrzrdrddrddOdddOOOOOwOwOwwwwwGwGGGGGGGCGCCGCCMCMCMChMhCMMBMMBuBuBB",
+"TQQQkQmkmmkmmkTQQmkTQQkETQEQETQEQEETQEoQoEoaQaoaoaaaoFRoFRFFFtFfttfftlftllPplppxpxpxpbbbprbrbrrrzrzdrdddddOOOjOjwOwOwwOGwOGwG#GCwC#CGCGCCvCCCMCMMMMBMBhMBhBMBMBu",
+"EkmEkTQQkQQkTQQEkTQEEQEmQkETQEQEEQoEQoEaQaoaoaoaoRFRRFFFRtRftFftftltllPllPlxppxpbpbbpbbHrbrbzrrdrrddrOdOdOdOOOOwOwOwwwGGGGwGwGGGCGCvCCvCCMvCMMCMhMMMMBuMBuBuBB",
+"TQEQETQEQETQEQEmTQEQmETQEQEETQEEQEoEaQaoaooaoaoRRFFoFRFFRFtFtFftftlPflPlplppppxpxpbxpbbbrbbrrrrzrzdrddOdJOdOOjOwOwOwwOGwwGwG#CGCGCGCGCGCCMvCMMMCMhBCBhBMBMBMBBuB",
+"ETQEQETQEQETQEQEETQEEETQEEQEETQEoQaQooEaoaoaoaFoaoRFRFFRtFftftftftltltlPlPplxppxpbpbbHbHbrbzrzrdrdrddOrdOdOjOdwOwOwwOwGwGwGGwGwC#GCGCvCMGCCMCCMMMMMMMBMMBMBuBuBB",
+"TQEEQEETQEEQEETQEQETQEEQooaooaoaooaoaoaaaoRFoFFFRFFFttFttftftPtlPllplpplpxppxpbHbpbbrbrbrrrzrzdrddrOdOdOOOOwOOwOwO#wO#wGGwCGGGCGCGCCvCMCMCMMMChBChMMBhBMBBuBBB",
"EaoEoEoQoEoQoEoEoooEaEoQaoEoaoaoaoaoRFoRFRRRFtRtRttfttftltPltlPlPllpxppxpxbpbbbHbrbrrrzrrdrOrdOdOdOdOjOOwOjwOwwGGwGwGGG#GCGCGCCGCCvCMCMChMMMMBhBMBMBuuBBuL",
"oQaoaoEaEoaEoaoaoaQaoaoaoaaoaaoRRoFFRFRFRFFFFtFtfFftftftlPlPlPlpppplpxxpbpbbHbrbrbrrzrzrdrddddddOdOOOOwOwOwwwwOGwGwG#CwCGGCGCvCCCGMCMCMMMMBCMMBMhBuBBBuBBB",
"oaoaQoaooaEaoQaooaoaoaoaoaoaoaFoaRFoaRFRFFRttRfttftftltfPltlllplllxpxpxpxbHbpHbrbrbrzrrdzddrdOdOdOOjOjOwOwO#OwGwGwGGGwGGGCGCGCCvCMCMCMMChMMMhBMMBMBuMBuBuL",
diff --git a/examples2/trolltech.bmp b/examples2/trolltech.bmp
index 220861e..9f399c7 100644
--- a/examples2/trolltech.bmp
+++ b/examples2/trolltech.bmp
Binary files differ
diff --git a/examples2/trolltech.gif b/examples2/trolltech.gif
index f674369..7b0b8c9 100644
--- a/examples2/trolltech.gif
+++ b/examples2/trolltech.gif
Binary files differ
diff --git a/examples2/tt-logo.png b/examples2/tt-logo.png
index a0d9e34..1e51bfe 100644
--- a/examples2/tt-logo.png
+++ b/examples2/tt-logo.png
Binary files differ
diff --git a/examples2/tut1.py b/examples2/tut1.py
index 2eca8c5..43649bf 100755
--- a/examples2/tut1.py
+++ b/examples2/tut1.py
@@ -1,14 +1,14 @@
#!/usr/bin/env python
-# Qt tutorial 1.
+# TQt tutorial 1.
import sys
from qt import *
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
-hello = QPushButton("Hello world!",None)
+hello = TQPushButton("Hello world!",None)
hello.resize(100,30)
a.setMainWidget(hello)
diff --git a/examples2/tut10.py b/examples2/tut10.py
index 0470a85..c852626 100755
--- a/examples2/tut10.py
+++ b/examples2/tut10.py
@@ -1,17 +1,17 @@
#!/usr/bin/env python
-# Qt tutorial 10.
+# TQt tutorial 10.
import sys
from qt import *
-class LCDRange(QVBox):
+class LCDRange(TQVBox):
def __init__(self,parent=None,name=None):
- QVBox.__init__(self,parent,name)
+ TQVBox.__init__(self,parent,name)
- lcd = QLCDNumber(2,self,'lcd')
- self.slider = QSlider(Qt.Horizontal,self,'slider')
+ lcd = TQLCDNumber(2,self,'lcd')
+ self.slider = TQSlider(TQt.Horizontal,self,'slider')
self.slider.setRange(0,99)
self.slider.setValue(0)
self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)'))
@@ -31,13 +31,13 @@ class LCDRange(QVBox):
self.slider.setRange(minVal,maxVal)
-class CannonField(QWidget):
+class CannonField(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
self.ang = 45
self.f = 0
- self.setPalette(QPalette(QColor(250,250,200)))
+ self.setPalette(TQPalette(TQColor(250,250,200)))
def angle(self):
return self.ang
@@ -69,38 +69,38 @@ class CannonField(QWidget):
return
cr = self.cannonRect()
- pix = QPixmap(cr.size())
+ pix = TQPixmap(cr.size())
pix.fill(self,cr.topLeft())
- p = QPainter(pix)
+ p = TQPainter(pix)
- p.setBrush(Qt.blue)
- p.setPen(Qt.NoPen)
+ p.setBrush(TQt.blue)
+ p.setPen(TQt.NoPen)
p.translate(0,pix.height() - 1)
- p.drawPie(QRect(-35,-35,70,70),0,90 * 16)
+ p.drawPie(TQRect(-35,-35,70,70),0,90 * 16)
p.rotate(-self.ang)
- p.drawRect(QRect(33,-4,15,8))
+ p.drawRect(TQRect(33,-4,15,8))
p.end()
p.begin(self)
p.drawPixmap(cr.topLeft(),pix)
def cannonRect(self):
- r = QRect(0,0,50,50)
+ r = TQRect(0,0,50,50)
r.moveBottomLeft(self.rect().bottomLeft())
return r
def sizePolicy(self):
- return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding)
+ return TQSizePolicy(TQSizePolicy.Expanding,TQSizePolicy.Expanding)
-class MyWidget(QWidget):
+class MyWidget(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
- quit = QPushButton('&Quit',self,'quit')
- quit.setFont(QFont('Times',18,QFont.Bold))
+ quit = TQPushButton('&Quit',self,'quit')
+ quit.setFont(TQFont('Times',18,TQFont.Bold))
self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()'))
self.angle = LCDRange(self,'angle')
@@ -117,13 +117,13 @@ class MyWidget(QWidget):
self.connect(self.force,PYSIGNAL('valueChanged(int)'),self.cannonField.setForce)
self.connect(self.cannonField,PYSIGNAL('forceChanged(int)'),self.force.setValue)
- grid = QGridLayout(self,2,2,10)
+ grid = TQGridLayout(self,2,2,10)
grid.addWidget(quit,0,0)
grid.addWidget(self.cannonField,1,1)
grid.setColStretch(1,10)
- leftBox = QVBoxLayout()
+ leftBox = TQVBoxLayout()
grid.addLayout(leftBox,1,0)
@@ -135,8 +135,8 @@ class MyWidget(QWidget):
self.angle.setFocus()
-QApplication.setColorSpec(QApplication.CustomColor)
-a = QApplication(sys.argv)
+TQApplication.setColorSpec(TQApplication.CustomColor)
+a = TQApplication(sys.argv)
w = MyWidget()
w.setGeometry(100,100,500,355)
diff --git a/examples2/tut11.py b/examples2/tut11.py
index 32fb436..6d1dc67 100755
--- a/examples2/tut11.py
+++ b/examples2/tut11.py
@@ -1,18 +1,18 @@
#!/usr/bin/env python
-# Qt tutorial 11.
+# TQt tutorial 11.
import sys
import math
from qt import *
-class LCDRange(QVBox):
+class LCDRange(TQVBox):
def __init__(self,parent=None,name=None):
- QVBox.__init__(self,parent,name)
+ TQVBox.__init__(self,parent,name)
- lcd = QLCDNumber(2,self,'lcd')
- self.slider = QSlider(Qt.Horizontal,self,'slider')
+ lcd = TQLCDNumber(2,self,'lcd')
+ self.slider = TQSlider(TQt.Horizontal,self,'slider')
self.slider.setRange(0,99)
self.slider.setValue(0)
self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)'))
@@ -32,23 +32,23 @@ class LCDRange(QVBox):
self.slider.setRange(minVal,maxVal)
-class CannonField(QWidget):
+class CannonField(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
self.ang = 45
self.f = 0
self.timerCount = 0
- self.autoShootTimer = QTimer(self,'movement handler')
+ self.autoShootTimer = TQTimer(self,'movement handler')
self.connect(self.autoShootTimer,SIGNAL('timeout()'),self.moveShot)
self.shoot_ang = 0
self.shoot_f = 0
- self.setPalette(QPalette(QColor(250,250,200)))
+ self.setPalette(TQPalette(TQColor(250,250,200)))
- self.barrelRect = QRect(33,-4,15,8)
+ self.barrelRect = TQRect(33,-4,15,8)
def angle(self):
return self.ang
@@ -85,7 +85,7 @@ class CannonField(QWidget):
self.autoShootTimer.start(50)
def moveShot(self):
- r = QRegion(self.shotRect())
+ r = TQRegion(self.shotRect())
self.timerCount = self.timerCount + 1
shotR = self.shotRect()
@@ -93,13 +93,13 @@ class CannonField(QWidget):
if shotR.x() > self.width() or shotR.y() > self.height():
self.autoShootTimer.stop()
else:
- r = r.unite(QRegion(shotR))
+ r = r.unite(TQRegion(shotR))
self.repaint(r)
def paintEvent(self,ev):
updateR = ev.rect()
- p = QPainter(self)
+ p = TQPainter(self)
if updateR.intersects(self.cannonRect()):
self.paintCannon(p)
@@ -108,21 +108,21 @@ class CannonField(QWidget):
self.paintShot(p)
def paintShot(self,p):
- p.setBrush(Qt.black)
- p.setPen(Qt.NoPen)
+ p.setBrush(TQt.black)
+ p.setPen(TQt.NoPen)
p.drawRect(self.shotRect())
def paintCannon(self,p):
cr = self.cannonRect()
- pix = QPixmap(cr.size())
+ pix = TQPixmap(cr.size())
pix.fill(self,cr.topLeft())
- tmp = QPainter(pix)
- tmp.setBrush(Qt.blue)
- tmp.setPen(Qt.NoPen)
+ tmp = TQPainter(pix)
+ tmp.setBrush(TQt.blue)
+ tmp.setPen(TQt.NoPen)
tmp.translate(0,pix.height() - 1)
- tmp.drawPie(QRect(-35,-35,70,70),0,90 * 16)
+ tmp.drawPie(TQRect(-35,-35,70,70),0,90 * 16)
tmp.rotate(-self.ang)
tmp.drawRect(self.barrelRect)
tmp.end()
@@ -130,7 +130,7 @@ class CannonField(QWidget):
p.drawPixmap(cr.topLeft(),pix)
def cannonRect(self):
- r = QRect(0,0,50,50)
+ r = TQRect(0,0,50,50)
r.moveBottomLeft(self.rect().bottomLeft())
return r
@@ -148,20 +148,20 @@ class CannonField(QWidget):
x = x0 + velx * time
y = y0 + vely * time - 0.5 * gravity * time * time
- r = QRect(0,0,6,6)
- r.moveCenter(QPoint(x,self.height() - 1 - y))
+ r = TQRect(0,0,6,6)
+ r.moveCenter(TQPoint(x,self.height() - 1 - y))
return r
def sizePolicy(self):
- return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding)
+ return TQSizePolicy(TQSizePolicy.Expanding,TQSizePolicy.Expanding)
-class MyWidget(QWidget):
+class MyWidget(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
- quit = QPushButton('&Quit',self,'quit')
- quit.setFont(QFont('Times',18,QFont.Bold))
+ quit = TQPushButton('&Quit',self,'quit')
+ quit.setFont(TQFont('Times',18,TQFont.Bold))
self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()'))
self.angle = LCDRange(self,'angle')
@@ -178,22 +178,22 @@ class MyWidget(QWidget):
self.connect(self.force,PYSIGNAL('valueChanged(int)'),self.cannonField.setForce)
self.connect(self.cannonField,PYSIGNAL('forceChanged(int)'),self.force.setValue)
- shoot = QPushButton('&Shoot',self,'shoot')
- shoot.setFont(QFont('Times',18,QFont.Bold))
+ shoot = TQPushButton('&Shoot',self,'shoot')
+ shoot.setFont(TQFont('Times',18,TQFont.Bold))
self.connect(shoot,SIGNAL('clicked()'),self.cannonField.shoot)
- grid = QGridLayout(self,2,2,10)
+ grid = TQGridLayout(self,2,2,10)
grid.addWidget(quit,0,0)
grid.addWidget(self.cannonField,1,1)
grid.setColStretch(1,10)
- leftBox = QVBoxLayout()
+ leftBox = TQVBoxLayout()
grid.addLayout(leftBox,1,0)
leftBox.addWidget(self.angle)
leftBox.addWidget(self.force)
- topBox = QHBoxLayout()
+ topBox = TQHBoxLayout()
grid.addLayout(topBox,0,1)
topBox.addWidget(shoot)
topBox.addStretch(1)
@@ -203,8 +203,8 @@ class MyWidget(QWidget):
self.angle.setFocus()
-QApplication.setColorSpec(QApplication.CustomColor)
-a = QApplication(sys.argv)
+TQApplication.setColorSpec(TQApplication.CustomColor)
+a = TQApplication(sys.argv)
w = MyWidget()
w.setGeometry(100,100,500,355)
diff --git a/examples2/tut12.py b/examples2/tut12.py
index 65490ca..e52af95 100755
--- a/examples2/tut12.py
+++ b/examples2/tut12.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-# Qt tutorial 12.
+# TQt tutorial 12.
import sys
import math
@@ -8,17 +8,17 @@ import random
from qt import *
-class LCDRange(QVBox):
+class LCDRange(TQVBox):
def __init__(self,s=None,parent=None,name=None):
- QVBox.__init__(self,parent,name)
+ TQVBox.__init__(self,parent,name)
- lcd = QLCDNumber(2,self,'lcd')
- self.slider = QSlider(Qt.Horizontal,self,'slider')
+ lcd = TQLCDNumber(2,self,'lcd')
+ self.slider = TQSlider(TQt.Horizontal,self,'slider')
self.slider.setRange(0,99)
self.slider.setValue(0)
- self.label = QLabel(' ',self,'label')
- self.label.setAlignment(Qt.AlignCenter)
+ self.label = TQLabel(' ',self,'label')
+ self.label.setAlignment(TQt.AlignCenter)
self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)'))
self.connect(self.slider,SIGNAL('valueChanged(int)'),self,PYSIGNAL('valueChanged(int)'))
@@ -46,24 +46,24 @@ class LCDRange(QVBox):
self.label.setText(s)
-class CannonField(QWidget):
+class CannonField(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
self.ang = 45
self.f = 0
self.timerCount = 0
- self.autoShootTimer = QTimer(self,'movement handler')
+ self.autoShootTimer = TQTimer(self,'movement handler')
self.connect(self.autoShootTimer,SIGNAL('timeout()'),self.moveShot)
self.shoot_ang = 0
self.shoot_f = 0
- self.target = QPoint(0,0)
+ self.target = TQPoint(0,0)
- self.setPalette(QPalette(QColor(250,250,200)))
+ self.setPalette(TQPalette(TQColor(250,250,200)))
- self.barrelRect = QRect(33,-4,15,8)
+ self.barrelRect = TQRect(33,-4,15,8)
self.newTarget()
@@ -102,12 +102,12 @@ class CannonField(QWidget):
self.autoShootTimer.start(50)
def newTarget(self):
- r = QRegion(self.targetRect())
- self.target = QPoint(random.randint(200,390),random.randint(10,265))
- self.repaint(r.unite(QRegion(self.targetRect())))
+ r = TQRegion(self.targetRect())
+ self.target = TQPoint(random.randint(200,390),random.randint(10,265))
+ self.repaint(r.unite(TQRegion(self.targetRect())))
def moveShot(self):
- r = QRegion(self.shotRect())
+ r = TQRegion(self.shotRect())
self.timerCount = self.timerCount + 1
shotR = self.shotRect()
@@ -119,13 +119,13 @@ class CannonField(QWidget):
self.autoShootTimer.stop()
self.emit(PYSIGNAL('missed()'),())
else:
- r = r.unite(QRegion(shotR))
+ r = r.unite(TQRegion(shotR))
self.repaint(r)
def paintEvent(self,ev):
updateR = ev.rect()
- p = QPainter(self)
+ p = TQPainter(self)
if updateR.intersects(self.cannonRect()):
self.paintCannon(p)
@@ -137,26 +137,26 @@ class CannonField(QWidget):
self.paintTarget(p)
def paintShot(self,p):
- p.setBrush(Qt.black)
- p.setPen(Qt.NoPen)
+ p.setBrush(TQt.black)
+ p.setPen(TQt.NoPen)
p.drawRect(self.shotRect())
def paintTarget(self,p):
- p.setBrush(Qt.red)
- p.setPen(Qt.black)
+ p.setBrush(TQt.red)
+ p.setPen(TQt.black)
p.drawRect(self.targetRect())
def paintCannon(self,p):
cr = self.cannonRect()
- pix = QPixmap(cr.size())
+ pix = TQPixmap(cr.size())
pix.fill(self,cr.topLeft())
- tmp = QPainter(pix)
- tmp.setBrush(Qt.blue)
- tmp.setPen(Qt.NoPen)
+ tmp = TQPainter(pix)
+ tmp.setBrush(TQt.blue)
+ tmp.setPen(TQt.NoPen)
tmp.translate(0,pix.height() - 1)
- tmp.drawPie(QRect(-35,-35,70,70),0,90 * 16)
+ tmp.drawPie(TQRect(-35,-35,70,70),0,90 * 16)
tmp.rotate(-self.ang)
tmp.drawRect(self.barrelRect)
tmp.end()
@@ -164,7 +164,7 @@ class CannonField(QWidget):
p.drawPixmap(cr.topLeft(),pix)
def cannonRect(self):
- r = QRect(0,0,50,50)
+ r = TQRect(0,0,50,50)
r.moveBottomLeft(self.rect().bottomLeft())
return r
@@ -182,25 +182,25 @@ class CannonField(QWidget):
x = x0 + velx * time
y = y0 + vely * time - 0.5 * gravity * time * time
- r = QRect(0,0,6,6)
- r.moveCenter(QPoint(x,self.height() - 1 - y))
+ r = TQRect(0,0,6,6)
+ r.moveCenter(TQPoint(x,self.height() - 1 - y))
return r
def targetRect(self):
- r = QRect(0,0,20,10)
- r.moveCenter(QPoint(self.target.x(),self.height() - 1 - self.target.y()))
+ r = TQRect(0,0,20,10)
+ r.moveCenter(TQPoint(self.target.x(),self.height() - 1 - self.target.y()))
return r
def sizePolicy(self):
- return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding)
+ return TQSizePolicy(TQSizePolicy.Expanding,TQSizePolicy.Expanding)
-class MyWidget(QWidget):
+class MyWidget(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
- quit = QPushButton('&Quit',self,'quit')
- quit.setFont(QFont('Times',18,QFont.Bold))
+ quit = TQPushButton('&Quit',self,'quit')
+ quit.setFont(TQFont('Times',18,TQFont.Bold))
self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()'))
self.angle = LCDRange('ANGLE',self,'angle')
@@ -217,22 +217,22 @@ class MyWidget(QWidget):
self.connect(self.force,PYSIGNAL('valueChanged(int)'),self.cannonField.setForce)
self.connect(self.cannonField,PYSIGNAL('forceChanged(int)'),self.force.setValue)
- shoot = QPushButton('&Shoot',self,'shoot')
- shoot.setFont(QFont('Times',18,QFont.Bold))
+ shoot = TQPushButton('&Shoot',self,'shoot')
+ shoot.setFont(TQFont('Times',18,TQFont.Bold))
self.connect(shoot,SIGNAL('clicked()'),self.cannonField.shoot)
- grid = QGridLayout(self,2,2,10)
+ grid = TQGridLayout(self,2,2,10)
grid.addWidget(quit,0,0)
grid.addWidget(self.cannonField,1,1)
grid.setColStretch(1,10)
- leftBox = QVBoxLayout()
+ leftBox = TQVBoxLayout()
grid.addLayout(leftBox,1,0)
leftBox.addWidget(self.angle)
leftBox.addWidget(self.force)
- topBox = QHBoxLayout()
+ topBox = TQHBoxLayout()
grid.addLayout(topBox,0,1)
topBox.addWidget(shoot)
topBox.addStretch(1)
@@ -242,8 +242,8 @@ class MyWidget(QWidget):
self.angle.setFocus()
-QApplication.setColorSpec(QApplication.CustomColor)
-a = QApplication(sys.argv)
+TQApplication.setColorSpec(TQApplication.CustomColor)
+a = TQApplication(sys.argv)
w = MyWidget()
w.setGeometry(100,100,500,355)
diff --git a/examples2/tut13.py b/examples2/tut13.py
index 7231a7a..0ac9a00 100755
--- a/examples2/tut13.py
+++ b/examples2/tut13.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-# Qt tutorial 13.
+# TQt tutorial 13.
import sys
import math
@@ -8,24 +8,24 @@ import random
from qt import *
-class LCDRange(QWidget):
+class LCDRange(TQWidget):
def __init__(self,s=None,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
- lcd = QLCDNumber(2,self,'lcd')
- self.slider = QSlider(Qt.Horizontal,self,'slider')
+ lcd = TQLCDNumber(2,self,'lcd')
+ self.slider = TQSlider(TQt.Horizontal,self,'slider')
self.slider.setRange(0,99)
self.slider.setValue(0)
- self.label = QLabel(' ',self,'label')
- self.label.setAlignment(Qt.AlignCenter)
+ self.label = TQLabel(' ',self,'label')
+ self.label.setAlignment(TQt.AlignCenter)
self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)'))
self.connect(self.slider,SIGNAL('valueChanged(int)'),self,PYSIGNAL('valueChanged(int)'))
self.setFocusProxy(self.slider)
- l = QVBoxLayout(self)
+ l = TQVBoxLayout(self)
l.addWidget(lcd,1)
l.addWidget(self.slider)
l.addWidget(self.label)
@@ -51,25 +51,25 @@ class LCDRange(QWidget):
self.label.setText(s)
-class CannonField(QWidget):
+class CannonField(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
self.ang = 45
self.f = 0
self.timerCount = 0
- self.autoShootTimer = QTimer(self,'movement handler')
+ self.autoShootTimer = TQTimer(self,'movement handler')
self.connect(self.autoShootTimer,SIGNAL('timeout()'),self.moveShot)
self.shoot_ang = 0
self.shoot_f = 0
- self.target = QPoint(0,0)
+ self.target = TQPoint(0,0)
self.gameEnded = 0
- self.setPalette(QPalette(QColor(250,250,200)))
+ self.setPalette(TQPalette(TQColor(250,250,200)))
- self.barrelRect = QRect(33,-4,15,8)
+ self.barrelRect = TQRect(33,-4,15,8)
self.newTarget()
@@ -109,9 +109,9 @@ class CannonField(QWidget):
self.emit(PYSIGNAL('canShoot(bool)'),(0,))
def newTarget(self):
- r = QRegion(self.targetRect())
- self.target = QPoint(random.randint(200,390),random.randint(10,265))
- self.repaint(r.unite(QRegion(self.targetRect())))
+ r = TQRegion(self.targetRect())
+ self.target = TQPoint(random.randint(200,390),random.randint(10,265))
+ self.repaint(r.unite(TQRegion(self.targetRect())))
def gameOver(self):
return self.gameEnded
@@ -132,7 +132,7 @@ class CannonField(QWidget):
self.emit(PYSIGNAL('canShoot(bool)'),(1,))
def moveShot(self):
- r = QRegion(self.shotRect())
+ r = TQRegion(self.shotRect())
self.timerCount = self.timerCount + 1
shotR = self.shotRect()
@@ -146,18 +146,18 @@ class CannonField(QWidget):
self.emit(PYSIGNAL('missed()'),())
self.emit(PYSIGNAL('canShoot(bool)'),(1,))
else:
- r = r.unite(QRegion(shotR))
+ r = r.unite(TQRegion(shotR))
self.repaint(r)
def paintEvent(self,ev):
updateR = ev.rect()
- p = QPainter(self)
+ p = TQPainter(self)
if self.gameEnded:
- p.setPen(Qt.black)
- p.setFont(QFont('Courier',48,QFont.Bold))
- p.drawText(self.rect(),Qt.AlignCenter,'Game Over')
+ p.setPen(TQt.black)
+ p.setFont(TQFont('Courier',48,TQFont.Bold))
+ p.drawText(self.rect(),TQt.AlignCenter,'Game Over')
if updateR.intersects(self.cannonRect()):
self.paintCannon(p)
@@ -169,26 +169,26 @@ class CannonField(QWidget):
self.paintTarget(p)
def paintShot(self,p):
- p.setBrush(Qt.black)
- p.setPen(Qt.NoPen)
+ p.setBrush(TQt.black)
+ p.setPen(TQt.NoPen)
p.drawRect(self.shotRect())
def paintTarget(self,p):
- p.setBrush(Qt.red)
- p.setPen(Qt.black)
+ p.setBrush(TQt.red)
+ p.setPen(TQt.black)
p.drawRect(self.targetRect())
def paintCannon(self,p):
cr = self.cannonRect()
- pix = QPixmap(cr.size())
+ pix = TQPixmap(cr.size())
pix.fill(self,cr.topLeft())
- tmp = QPainter(pix)
- tmp.setBrush(Qt.blue)
- tmp.setPen(Qt.NoPen)
+ tmp = TQPainter(pix)
+ tmp.setBrush(TQt.blue)
+ tmp.setPen(TQt.NoPen)
tmp.translate(0,pix.height() - 1)
- tmp.drawPie(QRect(-35,-35,70,70),0,90 * 16)
+ tmp.drawPie(TQRect(-35,-35,70,70),0,90 * 16)
tmp.rotate(-self.ang)
tmp.drawRect(self.barrelRect)
tmp.end()
@@ -196,7 +196,7 @@ class CannonField(QWidget):
p.drawPixmap(cr.topLeft(),pix)
def cannonRect(self):
- r = QRect(0,0,50,50)
+ r = TQRect(0,0,50,50)
r.moveBottomLeft(self.rect().bottomLeft())
return r
@@ -214,28 +214,28 @@ class CannonField(QWidget):
x = x0 + velx * time
y = y0 + vely * time - 0.5 * gravity * time * time
- r = QRect(0,0,6,6)
- r.moveCenter(QPoint(x,self.height() - 1 - y))
+ r = TQRect(0,0,6,6)
+ r.moveCenter(TQPoint(x,self.height() - 1 - y))
return r
def targetRect(self):
- r = QRect(0,0,20,10)
- r.moveCenter(QPoint(self.target.x(),self.height() - 1 - self.target.y()))
+ r = TQRect(0,0,20,10)
+ r.moveCenter(TQPoint(self.target.x(),self.height() - 1 - self.target.y()))
return r
def isShooting(self):
return self.autoShootTimer.isActive()
def sizePolicy(self):
- return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding)
+ return TQSizePolicy(TQSizePolicy.Expanding,TQSizePolicy.Expanding)
-class GameBoard(QWidget):
+class GameBoard(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
- quit = QPushButton('&Quit',self,'quit')
- quit.setFont(QFont('Times',18,QFont.Bold))
+ quit = TQPushButton('&Quit',self,'quit')
+ quit.setFont(TQFont('Times',18,TQFont.Bold))
self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()'))
self.angle = LCDRange('ANGLE',self,'angle')
@@ -255,31 +255,31 @@ class GameBoard(QWidget):
self.connect(self.cannonField,PYSIGNAL('hit()'),self.hit)
self.connect(self.cannonField,PYSIGNAL('missed()'),self.missed)
- self.shoot = QPushButton('&Shoot',self,'shoot')
- self.shoot.setFont(QFont('Times',18,QFont.Bold))
+ self.shoot = TQPushButton('&Shoot',self,'shoot')
+ self.shoot.setFont(TQFont('Times',18,TQFont.Bold))
self.connect(self.shoot,SIGNAL('clicked()'),self.fire)
self.connect(self.cannonField,PYSIGNAL('canShoot(bool)'),self.shoot,SLOT('setEnabled(bool)'))
- restart = QPushButton('&New Game',self,'newgame')
- restart.setFont(QFont('Times',18,QFont.Bold))
+ restart = TQPushButton('&New Game',self,'newgame')
+ restart.setFont(TQFont('Times',18,TQFont.Bold))
self.connect(restart,SIGNAL('clicked()'),self.newGame)
- self.hits = QLCDNumber(2,self,'hits')
- self.shotsLeft = QLCDNumber(2,self,'shotsleft')
- hitsL = QLabel('HITS',self,'hitsLabel')
- shotsLeftL = QLabel('SHOTS LEFT',self,'shotsleftLabel')
+ self.hits = TQLCDNumber(2,self,'hits')
+ self.shotsLeft = TQLCDNumber(2,self,'shotsleft')
+ hitsL = TQLabel('HITS',self,'hitsLabel')
+ shotsLeftL = TQLabel('SHOTS LEFT',self,'shotsleftLabel')
- grid = QGridLayout(self,2,2,10)
+ grid = TQGridLayout(self,2,2,10)
grid.addWidget(quit,0,0)
grid.addWidget(self.cannonField,1,1)
grid.setColStretch(1,10)
- leftBox = QVBoxLayout()
+ leftBox = TQVBoxLayout()
grid.addLayout(leftBox,1,0)
leftBox.addWidget(self.angle)
leftBox.addWidget(self.force)
- topBox = QHBoxLayout()
+ topBox = TQHBoxLayout()
grid.addLayout(topBox,0,1)
topBox.addWidget(self.shoot)
topBox.addWidget(self.hits)
@@ -319,8 +319,8 @@ class GameBoard(QWidget):
self.cannonField.newTarget()
-QApplication.setColorSpec(QApplication.CustomColor)
-a = QApplication(sys.argv)
+TQApplication.setColorSpec(TQApplication.CustomColor)
+a = TQApplication(sys.argv)
gb = GameBoard()
gb.setGeometry(100,100,500,355)
diff --git a/examples2/tut14.py b/examples2/tut14.py
index aeb4ca6..8a75538 100755
--- a/examples2/tut14.py
+++ b/examples2/tut14.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-# Qt tutorial 14.
+# TQt tutorial 14.
import sys
import math
@@ -8,24 +8,24 @@ import random
from qt import *
-class LCDRange(QWidget):
+class LCDRange(TQWidget):
def __init__(self,s=None,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
- lcd = QLCDNumber(2,self,'lcd')
- self.slider = QSlider(Qt.Horizontal,self,'slider')
+ lcd = TQLCDNumber(2,self,'lcd')
+ self.slider = TQSlider(TQt.Horizontal,self,'slider')
self.slider.setRange(0,99)
self.slider.setValue(0)
- self.label = QLabel(' ',self,'label')
- self.label.setAlignment(Qt.AlignCenter)
+ self.label = TQLabel(' ',self,'label')
+ self.label.setAlignment(TQt.AlignCenter)
self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)'))
self.connect(self.slider,SIGNAL('valueChanged(int)'),self,PYSIGNAL('valueChanged(int)'))
self.setFocusProxy(self.slider)
- l = QVBoxLayout(self)
+ l = TQVBoxLayout(self)
l.addWidget(lcd,1)
l.addWidget(self.slider)
l.addWidget(self.label)
@@ -51,26 +51,26 @@ class LCDRange(QWidget):
self.label.setText(s)
-class CannonField(QWidget):
+class CannonField(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
self.ang = 45
self.f = 0
self.timerCount = 0
- self.autoShootTimer = QTimer(self,'movement handler')
+ self.autoShootTimer = TQTimer(self,'movement handler')
self.connect(self.autoShootTimer,SIGNAL('timeout()'),self.moveShot)
self.shoot_ang = 0
self.shoot_f = 0
- self.target = QPoint(0,0)
+ self.target = TQPoint(0,0)
self.gameEnded = 0
self.barrelPressed = 0
- self.setPalette(QPalette(QColor(250,250,200)))
+ self.setPalette(TQPalette(TQColor(250,250,200)))
- self.barrelRect = QRect(33,-4,15,8)
+ self.barrelRect = TQRect(33,-4,15,8)
self.newTarget()
@@ -110,9 +110,9 @@ class CannonField(QWidget):
self.emit(PYSIGNAL('canShoot(bool)'),(0,))
def newTarget(self):
- r = QRegion(self.targetRect())
- self.target = QPoint(random.randint(200,390),random.randint(10,265))
- self.repaint(r.unite(QRegion(self.targetRect())))
+ r = TQRegion(self.targetRect())
+ self.target = TQPoint(random.randint(200,390),random.randint(10,265))
+ self.repaint(r.unite(TQRegion(self.targetRect())))
def gameOver(self):
return self.gameEnded
@@ -133,7 +133,7 @@ class CannonField(QWidget):
self.emit(PYSIGNAL('canShoot(bool)'),(1,))
def moveShot(self):
- r = QRegion(self.shotRect())
+ r = TQRegion(self.shotRect())
self.timerCount = self.timerCount + 1
shotR = self.shotRect()
@@ -147,12 +147,12 @@ class CannonField(QWidget):
self.emit(PYSIGNAL('missed()'),())
self.emit(PYSIGNAL('canShoot(bool)'),(1,))
else:
- r = r.unite(QRegion(shotR))
+ r = r.unite(TQRegion(shotR))
self.repaint(r)
def mousePressEvent(self,ev):
- if ev.button() != Qt.LeftButton:
+ if ev.button() != TQt.LeftButton:
return
if self.barrelHit(ev.pos()):
self.barrelPressed = 1
@@ -169,17 +169,17 @@ class CannonField(QWidget):
self.setAngle(int(round(rad * 180 / math.pi)))
def mouseReleaseEvent(self,ev):
- if ev.button() == Qt.LeftButton:
+ if ev.button() == TQt.LeftButton:
self.barrelPressed = 0
def paintEvent(self,ev):
updateR = ev.rect()
- p = QPainter(self)
+ p = TQPainter(self)
if self.gameEnded:
- p.setPen(Qt.black)
- p.setFont(QFont('Courier',48,QFont.Bold))
- p.drawText(self.rect(),Qt.AlignCenter,'Game Over')
+ p.setPen(TQt.black)
+ p.setFont(TQFont('Courier',48,TQFont.Bold))
+ p.drawText(self.rect(),TQt.AlignCenter,'Game Over')
if updateR.intersects(self.cannonRect()):
self.paintCannon(p)
@@ -194,31 +194,31 @@ class CannonField(QWidget):
self.paintTarget(p)
def paintShot(self,p):
- p.setBrush(Qt.black)
- p.setPen(Qt.NoPen)
+ p.setBrush(TQt.black)
+ p.setPen(TQt.NoPen)
p.drawRect(self.shotRect())
def paintTarget(self,p):
- p.setBrush(Qt.red)
- p.setPen(Qt.black)
+ p.setBrush(TQt.red)
+ p.setPen(TQt.black)
p.drawRect(self.targetRect())
def paintBarrier(self,p):
- p.setBrush(Qt.yellow)
- p.setPen(Qt.black)
+ p.setBrush(TQt.yellow)
+ p.setPen(TQt.black)
p.drawRect(self.barrierRect())
def paintCannon(self,p):
cr = self.cannonRect()
- pix = QPixmap(cr.size())
+ pix = TQPixmap(cr.size())
pix.fill(self,cr.topLeft())
- tmp = QPainter(pix)
- tmp.setBrush(Qt.blue)
- tmp.setPen(Qt.NoPen)
+ tmp = TQPainter(pix)
+ tmp.setBrush(TQt.blue)
+ tmp.setPen(TQt.NoPen)
tmp.translate(0,pix.height() - 1)
- tmp.drawPie(QRect(-35,-35,70,70),0,90 * 16)
+ tmp.drawPie(TQRect(-35,-35,70,70),0,90 * 16)
tmp.rotate(-self.ang)
tmp.drawRect(self.barrelRect)
tmp.end()
@@ -226,7 +226,7 @@ class CannonField(QWidget):
p.drawPixmap(cr.topLeft(),pix)
def cannonRect(self):
- r = QRect(0,0,50,50)
+ r = TQRect(0,0,50,50)
r.moveBottomLeft(self.rect().bottomLeft())
return r
@@ -244,20 +244,20 @@ class CannonField(QWidget):
x = x0 + velx * time
y = y0 + vely * time - 0.5 * gravity * time * time
- r = QRect(0,0,6,6)
- r.moveCenter(QPoint(x,self.height() - 1 - y))
+ r = TQRect(0,0,6,6)
+ r.moveCenter(TQPoint(x,self.height() - 1 - y))
return r
def targetRect(self):
- r = QRect(0,0,20,10)
- r.moveCenter(QPoint(self.target.x(),self.height() - 1 - self.target.y()))
+ r = TQRect(0,0,20,10)
+ r.moveCenter(TQPoint(self.target.x(),self.height() - 1 - self.target.y()))
return r
def barrierRect(self):
- return QRect(145,self.height() - 100,15,100)
+ return TQRect(145,self.height() - 100,15,100)
def barrelHit(self,p):
- mtx = QWMatrix()
+ mtx = TQWMatrix()
mtx.translate(0,self.height() - 1)
mtx.rotate(-self.ang)
(mtx, invertable) = mtx.invert()
@@ -267,15 +267,15 @@ class CannonField(QWidget):
return self.autoShootTimer.isActive()
def sizePolicy(self):
- return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding)
+ return TQSizePolicy(TQSizePolicy.Expanding,TQSizePolicy.Expanding)
-class GameBoard(QWidget):
+class GameBoard(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
- quit = QPushButton('&Quit',self,'quit')
- quit.setFont(QFont('Times',18,QFont.Bold))
+ quit = TQPushButton('&Quit',self,'quit')
+ quit.setFont(TQFont('Times',18,TQFont.Bold))
self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()'))
self.angle = LCDRange('ANGLE',self,'angle')
@@ -284,8 +284,8 @@ class GameBoard(QWidget):
self.force = LCDRange('FORCE',self,'force')
self.force.setRange(10,50)
- box = QVBox(self,'cannonFrame')
- box.setFrameStyle(QFrame.WinPanel | QFrame.Sunken)
+ box = TQVBox(self,'cannonFrame')
+ box.setFrameStyle(TQFrame.WinPanel | TQFrame.Sunken)
self.cannonField = CannonField(box,'cannonField')
@@ -298,36 +298,36 @@ class GameBoard(QWidget):
self.connect(self.cannonField,PYSIGNAL('hit()'),self.hit)
self.connect(self.cannonField,PYSIGNAL('missed()'),self.missed)
- self.shoot = QPushButton('&Shoot',self,'shoot')
- self.shoot.setFont(QFont('Times',18,QFont.Bold))
+ self.shoot = TQPushButton('&Shoot',self,'shoot')
+ self.shoot.setFont(TQFont('Times',18,TQFont.Bold))
self.connect(self.shoot,SIGNAL('clicked()'),self.fire)
self.connect(self.cannonField,PYSIGNAL('canShoot(bool)'),self.shoot,SLOT('setEnabled(bool)'))
- restart = QPushButton('&New Game',self,'newgame')
- restart.setFont(QFont('Times',18,QFont.Bold))
+ restart = TQPushButton('&New Game',self,'newgame')
+ restart.setFont(TQFont('Times',18,TQFont.Bold))
self.connect(restart,SIGNAL('clicked()'),self.newGame)
- self.hits = QLCDNumber(2,self,'hits')
- self.shotsLeft = QLCDNumber(2,self,'shotsleft')
- hitsL = QLabel('HITS',self,'hitsLabel')
- shotsLeftL = QLabel('SHOTS LEFT',self,'shotsleftLabel')
+ self.hits = TQLCDNumber(2,self,'hits')
+ self.shotsLeft = TQLCDNumber(2,self,'shotsleft')
+ hitsL = TQLabel('HITS',self,'hitsLabel')
+ shotsLeftL = TQLabel('SHOTS LEFT',self,'shotsleftLabel')
- accel = QAccel(self)
- accel.connectItem(accel.insertItem(Qt.Key_Enter),self.fire)
- accel.connectItem(accel.insertItem(Qt.Key_Return),self.fire)
- accel.connectItem(accel.insertItem(Qt.CTRL + Qt.Key_Q),qApp,SLOT('quit()'))
+ accel = TQAccel(self)
+ accel.connectItem(accel.insertItem(TQt.Key_Enter),self.fire)
+ accel.connectItem(accel.insertItem(TQt.Key_Return),self.fire)
+ accel.connectItem(accel.insertItem(TQt.CTRL + TQt.Key_Q),qApp,SLOT('quit()'))
- grid = QGridLayout(self,2,2,10)
+ grid = TQGridLayout(self,2,2,10)
grid.addWidget(quit,0,0)
grid.addWidget(box,1,1)
grid.setColStretch(1,10)
- leftBox = QVBoxLayout()
+ leftBox = TQVBoxLayout()
grid.addLayout(leftBox,1,0)
leftBox.addWidget(self.angle)
leftBox.addWidget(self.force)
- topBox = QHBoxLayout()
+ topBox = TQHBoxLayout()
grid.addLayout(topBox,0,1)
topBox.addWidget(self.shoot)
topBox.addWidget(self.hits)
@@ -367,8 +367,8 @@ class GameBoard(QWidget):
self.cannonField.newTarget()
-QApplication.setColorSpec(QApplication.CustomColor)
-a = QApplication(sys.argv)
+TQApplication.setColorSpec(TQApplication.CustomColor)
+a = TQApplication(sys.argv)
gb = GameBoard()
gb.setGeometry(100,100,500,355)
diff --git a/examples2/tut2.py b/examples2/tut2.py
index a31b784..48ddb89 100755
--- a/examples2/tut2.py
+++ b/examples2/tut2.py
@@ -1,18 +1,18 @@
#!/usr/bin/env python
-# Qt tutorial 2.
+# TQt tutorial 2.
import sys
from qt import *
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
-quit = QPushButton("Quit",None)
+quit = TQPushButton("Quit",None)
quit.resize(75,30)
-quit.setFont(QFont("Times",18,QFont.Bold))
+quit.setFont(TQFont("Times",18,TQFont.Bold))
-QObject.connect(quit,SIGNAL("clicked()"),a,SLOT("quit()"))
+TQObject.connect(quit,SIGNAL("clicked()"),a,SLOT("quit()"))
a.setMainWidget(quit)
quit.show()
diff --git a/examples2/tut3.py b/examples2/tut3.py
index 2cc3576..5284840 100755
--- a/examples2/tut3.py
+++ b/examples2/tut3.py
@@ -1,19 +1,19 @@
#!/usr/bin/env python
-# Qt tutorial 3.
+# TQt tutorial 3.
import sys
from qt import *
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
-box = QVBox()
+box = TQVBox()
box.resize(200,120)
-quit = QPushButton("Quit",box)
-quit.setFont(QFont("Times",18,QFont.Bold))
+quit = TQPushButton("Quit",box)
+quit.setFont(TQFont("Times",18,TQFont.Bold))
-QObject.connect(quit,SIGNAL("clicked()"),a,SLOT("quit()"))
+TQObject.connect(quit,SIGNAL("clicked()"),a,SLOT("quit()"))
a.setMainWidget(box)
box.show()
diff --git a/examples2/tut4.py b/examples2/tut4.py
index 23c44d0..7cafd36 100755
--- a/examples2/tut4.py
+++ b/examples2/tut4.py
@@ -1,26 +1,26 @@
#!/usr/bin/env python
-# Qt tutorial 4.
+# TQt tutorial 4.
import sys
from qt import *
-class MyWidget(QWidget):
+class MyWidget(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
self.setMinimumSize(200,120)
self.setMaximumSize(200,120)
- quit = QPushButton("Quit",self,"quit")
+ quit = TQPushButton("Quit",self,"quit")
quit.setGeometry(62,40,75,30)
- quit.setFont(QFont("Times",18,QFont.Bold))
+ quit.setFont(TQFont("Times",18,TQFont.Bold))
self.connect(quit,SIGNAL("clicked()"),qApp,SLOT("quit()"))
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
w = MyWidget()
w.setGeometry(100,100,200,120)
diff --git a/examples2/tut5.py b/examples2/tut5.py
index 01c20aa..e7662fb 100755
--- a/examples2/tut5.py
+++ b/examples2/tut5.py
@@ -1,30 +1,30 @@
#!/usr/bin/env python
-# Qt tutorial 5.
+# TQt tutorial 5.
import sys
from qt import *
-class MyWidget(QVBox):
+class MyWidget(TQVBox):
def __init__(self,parent=None,name=None):
- QVBox.__init__(self,parent,name)
+ TQVBox.__init__(self,parent,name)
- quit = QPushButton("Quit",self,"quit")
- quit.setFont(QFont("Times",18,QFont.Bold))
+ quit = TQPushButton("Quit",self,"quit")
+ quit.setFont(TQFont("Times",18,TQFont.Bold))
self.connect(quit,SIGNAL("clicked()"),qApp,SLOT("quit()"))
- lcd = QLCDNumber(2,self,"lcd")
+ lcd = TQLCDNumber(2,self,"lcd")
- slider = QSlider(Qt.Horizontal,self,"slider")
+ slider = TQSlider(TQt.Horizontal,self,"slider")
slider.setRange(0,99)
slider.setValue(0)
self.connect(slider,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
w = MyWidget()
a.setMainWidget(w)
diff --git a/examples2/tut6.py b/examples2/tut6.py
index 38f07d8..3108345 100755
--- a/examples2/tut6.py
+++ b/examples2/tut6.py
@@ -1,39 +1,39 @@
#!/usr/bin/env python
-# Qt tutorial 6.
+# TQt tutorial 6.
import sys
from qt import *
-class LCDRange(QVBox):
+class LCDRange(TQVBox):
def __init__(self,parent=None,name=None):
- QVBox.__init__(self,parent,name)
+ TQVBox.__init__(self,parent,name)
- lcd = QLCDNumber(2,self,"lcd")
- slider = QSlider(Qt.Horizontal,self,"slider")
+ lcd = TQLCDNumber(2,self,"lcd")
+ slider = TQSlider(TQt.Horizontal,self,"slider")
slider.setRange(0,99)
slider.setValue(0)
self.connect(slider,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))
-class MyWidget(QVBox):
+class MyWidget(TQVBox):
def __init__(self,parent=None,name=None):
- QVBox.__init__(self,parent,name)
+ TQVBox.__init__(self,parent,name)
- quit = QPushButton("Quit",self,"quit")
- quit.setFont(QFont("Times",18,QFont.Bold))
+ quit = TQPushButton("Quit",self,"quit")
+ quit.setFont(TQFont("Times",18,TQFont.Bold))
self.connect(quit,SIGNAL("clicked()"),qApp,SLOT("quit()"))
- grid = QGrid(4,self)
+ grid = TQGrid(4,self)
for c in range(4):
for r in range(4):
LCDRange(grid)
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
w = MyWidget()
a.setMainWidget(w)
diff --git a/examples2/tut7.py b/examples2/tut7.py
index d40ae74..2c03e89 100755
--- a/examples2/tut7.py
+++ b/examples2/tut7.py
@@ -1,17 +1,17 @@
#!/usr/bin/env python
-# Qt tutorial 7.
+# TQt tutorial 7.
import sys
from qt import *
-class LCDRange(QVBox):
+class LCDRange(TQVBox):
def __init__(self,parent=None,name=None):
- QVBox.__init__(self,parent,name)
+ TQVBox.__init__(self,parent,name)
- lcd = QLCDNumber(2,self,'lcd')
- self.slider = QSlider(Qt.Horizontal,self,'slider')
+ lcd = TQLCDNumber(2,self,'lcd')
+ self.slider = TQSlider(TQt.Horizontal,self,'slider')
self.slider.setRange(0,99)
self.slider.setValue(0)
self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)'))
@@ -24,16 +24,16 @@ class LCDRange(QVBox):
self.slider.setValue(value)
-class MyWidget(QVBox):
+class MyWidget(TQVBox):
def __init__(self,parent=None,name=None):
- QVBox.__init__(self,parent,name)
+ TQVBox.__init__(self,parent,name)
- quit = QPushButton("Quit",self,"quit")
- quit.setFont(QFont("Times",18,QFont.Bold))
+ quit = TQPushButton("Quit",self,"quit")
+ quit.setFont(TQFont("Times",18,TQFont.Bold))
self.connect(quit,SIGNAL("clicked()"),qApp,SLOT("quit()"))
- grid = QGrid(4,self)
+ grid = TQGrid(4,self)
self.lcdlist = []
previous = None
@@ -49,7 +49,7 @@ class MyWidget(QVBox):
self.lcdlist.append(lr)
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
w = MyWidget()
a.setMainWidget(w)
diff --git a/examples2/tut8.py b/examples2/tut8.py
index 045a4ef..2c16d22 100755
--- a/examples2/tut8.py
+++ b/examples2/tut8.py
@@ -1,17 +1,17 @@
#!/usr/bin/env python
-# Qt tutorial 8.
+# TQt tutorial 8.
import sys
from qt import *
-class LCDRange(QVBox):
+class LCDRange(TQVBox):
def __init__(self,parent=None,name=None):
- QVBox.__init__(self,parent,name)
+ TQVBox.__init__(self,parent,name)
- lcd = QLCDNumber(2,self,'lcd')
- self.slider = QSlider(Qt.Horizontal,self,'slider')
+ lcd = TQLCDNumber(2,self,'lcd')
+ self.slider = TQSlider(TQt.Horizontal,self,'slider')
self.slider.setRange(0,99)
self.slider.setValue(0)
self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)'))
@@ -31,12 +31,12 @@ class LCDRange(QVBox):
self.slider.setRange(minVal,maxVal)
-class CannonField(QWidget):
+class CannonField(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
self.ang = 45
- self.setPalette(QPalette(QColor(250,250,200)))
+ self.setPalette(TQPalette(TQColor(250,250,200)))
def angle(self):
return self.ang
@@ -53,19 +53,19 @@ class CannonField(QWidget):
self.emit(PYSIGNAL('angleChanged(int)'),(self.ang,))
def paintEvent(self,ev):
- p = QPainter(self)
+ p = TQPainter(self)
p.drawText(200,200,'Angle = %d' % (self.ang))
def sizePolicy(self):
- return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding)
+ return TQSizePolicy(TQSizePolicy.Expanding,TQSizePolicy.Expanding)
-class MyWidget(QWidget):
+class MyWidget(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
- quit = QPushButton('Quit',self,'quit')
- quit.setFont(QFont('Times',18,QFont.Bold))
+ quit = TQPushButton('Quit',self,'quit')
+ quit.setFont(TQFont('Times',18,TQFont.Bold))
self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()'))
self.angle = LCDRange(self,'angle')
@@ -76,10 +76,10 @@ class MyWidget(QWidget):
self.connect(self.angle,PYSIGNAL('valueChanged(int)'),self.cannonField.setAngle)
self.connect(self.cannonField,PYSIGNAL('angleChanged(int)'),self.angle.setValue)
- grid = QGridLayout(self,2,2,10)
+ grid = TQGridLayout(self,2,2,10)
grid.addWidget(quit,0,0)
- grid.addWidget(self.angle,1,0,Qt.AlignTop)
+ grid.addWidget(self.angle,1,0,TQt.AlignTop)
grid.addWidget(self.cannonField,1,1)
grid.setColStretch(1,10)
@@ -87,7 +87,7 @@ class MyWidget(QWidget):
self.angle.setFocus()
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
w = MyWidget()
w.setGeometry(100,100,500,355)
diff --git a/examples2/tut9.py b/examples2/tut9.py
index 16c7d69..fdcd9f0 100755
--- a/examples2/tut9.py
+++ b/examples2/tut9.py
@@ -1,17 +1,17 @@
#!/usr/bin/env python
-# Qt tutorial 9.
+# TQt tutorial 9.
import sys
from qt import *
-class LCDRange(QVBox):
+class LCDRange(TQVBox):
def __init__(self,parent=None,name=None):
- QVBox.__init__(self,parent,name)
+ TQVBox.__init__(self,parent,name)
- lcd = QLCDNumber(2,self,'lcd')
- self.slider = QSlider(Qt.Horizontal,self,'slider')
+ lcd = TQLCDNumber(2,self,'lcd')
+ self.slider = TQSlider(TQt.Horizontal,self,'slider')
self.slider.setRange(0,99)
self.slider.setValue(0)
self.connect(self.slider,SIGNAL('valueChanged(int)'),lcd,SLOT('display(int)'))
@@ -31,12 +31,12 @@ class LCDRange(QVBox):
self.slider.setRange(minVal,maxVal)
-class CannonField(QWidget):
+class CannonField(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
self.ang = 45
- self.setPalette(QPalette(QColor(250,250,200)))
+ self.setPalette(TQPalette(TQColor(250,250,200)))
def angle(self):
return self.ang
@@ -53,26 +53,26 @@ class CannonField(QWidget):
self.emit(PYSIGNAL('angleChanged(int)'),(self.ang,))
def paintEvent(self,ev):
- p = QPainter(self)
+ p = TQPainter(self)
- p.setBrush(Qt.blue)
- p.setPen(Qt.NoPen)
+ p.setBrush(TQt.blue)
+ p.setPen(TQt.NoPen)
p.translate(0,self.rect().bottom())
- p.drawPie(QRect(-35,-35,70,70),0,90 * 16)
+ p.drawPie(TQRect(-35,-35,70,70),0,90 * 16)
p.rotate(-self.ang)
- p.drawRect(QRect(33,-4,15,8))
+ p.drawRect(TQRect(33,-4,15,8))
def sizePolicy(self):
- return QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding)
+ return TQSizePolicy(TQSizePolicy.Expanding,TQSizePolicy.Expanding)
-class MyWidget(QWidget):
+class MyWidget(TQWidget):
def __init__(self,parent=None,name=None):
- QWidget.__init__(self,parent,name)
+ TQWidget.__init__(self,parent,name)
- quit = QPushButton('&Quit',self,'quit')
- quit.setFont(QFont('Times',18,QFont.Bold))
+ quit = TQPushButton('&Quit',self,'quit')
+ quit.setFont(TQFont('Times',18,TQFont.Bold))
self.connect(quit,SIGNAL('clicked()'),qApp,SLOT('quit()'))
self.angle = LCDRange(self,'angle')
@@ -83,10 +83,10 @@ class MyWidget(QWidget):
self.connect(self.angle,PYSIGNAL('valueChanged(int)'),self.cannonField.setAngle)
self.connect(self.cannonField,PYSIGNAL('angleChanged(int)'),self.angle.setValue)
- grid = QGridLayout(self,2,2,10)
+ grid = TQGridLayout(self,2,2,10)
grid.addWidget(quit,0,0)
- grid.addWidget(self.angle,1,0,Qt.AlignTop)
+ grid.addWidget(self.angle,1,0,TQt.AlignTop)
grid.addWidget(self.cannonField,1,1)
grid.setColStretch(1,10)
@@ -94,8 +94,8 @@ class MyWidget(QWidget):
self.angle.setFocus()
-QApplication.setColorSpec(QApplication.CustomColor)
-a = QApplication(sys.argv)
+TQApplication.setColorSpec(TQApplication.CustomColor)
+a = TQApplication(sys.argv)
w = MyWidget()
w.setGeometry(100,100,500,355)
diff --git a/examples2/widgets.py b/examples2/widgets.py
index 7b85ab3..59d9249 100755
--- a/examples2/widgets.py
+++ b/examples2/widgets.py
@@ -5,31 +5,31 @@ import sys, string
from qt import *
#
-## Constructs an analog clock widget that uses an internal QTimer.
+## Constructs an analog clock widget that uses an internal TQTimer.
#
-def QMIN( x, y ):
+def TQMIN( x, y ):
if y > x:
return y
return x
#
-## Constructs an analog clock widget that uses an internal QTimer.
+## Constructs an analog clock widget that uses an internal TQTimer.
#
-class AnalogClock( QWidget ):
+class AnalogClock( TQWidget ):
def __init__( self, *args ):
- apply( QWidget.__init__, (self,) + args )
- self.time = QTime.currentTime() # get current time
- internalTimer = QTimer( self ) # create internal timer
+ apply( TQWidget.__init__, (self,) + args )
+ self.time = TQTime.currentTime() # get current time
+ internalTimer = TQTimer( self ) # create internal timer
self.connect( internalTimer, SIGNAL("timeout()"), self.timeout )
internalTimer.start( 5000 ) # emit signal every 5 seconds
#
-## The QTimer::timeout() signal is received by this slot.
+## The TQTimer::timeout() signal is received by this slot.
#
def timeout( self ):
- new_time = QTime.currentTime() # get the current time
+ new_time = TQTime.currentTime() # get the current time
if new_time.minute() != self.time.minute(): # minute has changed
self.update()
@@ -39,16 +39,16 @@ class AnalogClock( QWidget ):
def paintEvent( self, qe ): # paint clock
if not self.isVisible(): # is is invisible
return
- self.time = QTime.currentTime() # save current time
+ self.time = TQTime.currentTime() # save current time
- pts = QPointArray()
- paint = QPainter( self )
+ pts = TQPointArray()
+ paint = TQPainter( self )
paint.setBrush( self.foregroundColor() ) # fill with foreground color
- cp = QPoint( self.rect().center() ) # widget center point
- d = QMIN( self.width(), self.height() ) # we want a circular clock
+ cp = TQPoint( self.rect().center() ) # widget center point
+ d = TQMIN( self.width(), self.height() ) # we want a circular clock
- matrix = QWMatrix() # setup transformation matrix
+ matrix = TQWMatrix() # setup transformation matrix
matrix.translate( cp.x(), cp.y() ) # origin at widget center
matrix.scale( d / 1000.0, d / 1000.0 ) # scale coordinate system
@@ -72,11 +72,11 @@ class AnalogClock( QWidget ):
matrix.rotate( 30 )
-class DigitalClock( QLCDNumber ):
+class DigitalClock( TQLCDNumber ):
def __init__( self, *args ):
- apply( QLCDNumber.__init__,(self,) + args )
+ apply( TQLCDNumber.__init__,(self,) + args )
self.showingColon = 0
- self.setFrameStyle(QFrame.Panel | QFrame.Raised)
+ self.setFrameStyle(TQFrame.Panel | TQFrame.Raised)
self.setLineWidth( 2 )
self.showTime()
self.normalTimer = self.startTimer( 500 )
@@ -90,13 +90,13 @@ class DigitalClock( QLCDNumber ):
self.showTime()
def mousePressEvent( self, e ):
- if e.button() == Qt.LeftButton:
+ if e.button() == TQt.LeftButton:
self.showDate()
def showDate( self ):
if self.showDateTimer != -1:
return
- d = QDate.currentDate()
+ d = TQDate.currentDate()
self.display('%2d %2d' % (d.month(), d.day()))
self.showDateTimer = self.startTimer(2000)
@@ -107,7 +107,7 @@ class DigitalClock( QLCDNumber ):
def showTime( self ):
self.showingColon = not self.showingColon
- s = list(str(QTime.currentTime().toString())[:5]) #.left(5)
+ s = list(str(TQTime.currentTime().toString())[:5]) #.left(5)
if not self.showingColon:
s[2] = ' '
if s[0] == '0':
@@ -115,7 +115,7 @@ class DigitalClock( QLCDNumber ):
s = string.join(s,'')
self.display( s )
- def QMIN( x, y ):
+ def TQMIN( x, y ):
if y > x:
return y
return x
@@ -125,43 +125,43 @@ FALSE = 0
MOVIEFILENAME = "trolltech.gif"
#
-# WidgetView contains lots of Qt widgets.
+# WidgetView contains lots of TQt widgets.
#
-class WidgetView ( QWidget ):
+class WidgetView ( TQWidget ):
def __init__( self, *args ):
- apply( QWidget.__init__, (self,) + args )
+ apply( TQWidget.__init__, (self,) + args )
# Set the window caption/title
- self.setCaption( "Qt Widgets Demo Application" )
+ self.setCaption( "TQt Widgets Demo Application" )
# Install an application-global event filter
qApp.installEventFilter( self )
# Create a layout to position the widgets
- self.topLayout = QVBoxLayout( self, 10 )
+ self.topLayout = TQVBoxLayout( self, 10 )
# Create a grid layout to hold most of the widgets
- self.grid = QGridLayout( 6, 3 )
+ self.grid = TQGridLayout( 6, 3 )
# This layout will get all of the stretch
self.topLayout.addLayout( self.grid, 10 )
# Create a menubar
- self.menubar = QMenuBar( self )
- #self.menubar.setSeparator( QMenuBar.InWindowsStyle )
+ self.menubar = TQMenuBar( self )
+ #self.menubar.setSeparator( TQMenuBar.InWindowsStyle )
self.menubar.setSeparator( 1 )
# Create an easter egg
- QToolTip.add( self.menubar, QRect( 0, 0, 2, 2 ), "easter egg" )
+ TQToolTip.add( self.menubar, TQRect( 0, 0, 2, 2 ), "easter egg" )
- self.popup = QPopupMenu()
+ self.popup = TQPopupMenu()
self.id = self.popup.insertItem( "&New" )
self.popup.setItemEnabled( self.id, FALSE )
self.id = self.popup.insertItem( "&Open" )
self.popup.setItemEnabled( self.id, FALSE )
self.popup.insertSeparator()
- self.popup.insertItem( "&Quit", qApp, SLOT("quit()"), Qt.CTRL+Qt.Key_Q )
+ self.popup.insertItem( "&Quit", qApp, SLOT("quit()"), TQt.CTRL+TQt.Key_Q )
self.menubar.insertItem( "&File", self.popup )
@@ -177,63 +177,63 @@ class WidgetView ( QWidget ):
self.grid.addWidget( self.dclock, 1, 2 )
# Give the dclock widget a blue palette
- col = QColor()
+ col = TQColor()
col.setRgb( 0xaa, 0xbe, 0xff )
- self.dclock.setPalette( QPalette( col ) )
+ self.dclock.setPalette( TQPalette( col ) )
# make tool tips for both of them
- QToolTip.add( self.aclock, "custom widget: analog clock" )
- QToolTip.add( self.dclock, "custom widget: digital clock" )
+ TQToolTip.add( self.aclock, "custom widget: analog clock" )
+ TQToolTip.add( self.dclock, "custom widget: digital clock" )
# Create a push button.
- self.pb = QPushButton( self, "button1" ) # create button 1
+ self.pb = TQPushButton( self, "button1" ) # create button 1
self.pb.setText( "Push button 1" )
self.pb.setFixedHeight( self.pb.sizeHint().height() )
- self.grid.addWidget( self.pb, 0, 0, Qt.AlignVCenter )
+ self.grid.addWidget( self.pb, 0, 0, TQt.AlignVCenter )
self.connect( self.pb, SIGNAL("clicked()"), self.button1Clicked )
- QToolTip.add( self.pb, "push button 1" )
- self.pm = QPixmap()
+ TQToolTip.add( self.pb, "push button 1" )
+ self.pm = TQPixmap()
self.pix = self.pm.load( "qt.png" ) # load pixmap for button 2
if not self.pix:
- QMessageBox.information( None, "Qt Widgets Example",
+ TQMessageBox.information( None, "TQt Widgets Example",
"Could not load the file \"qt.png\", which\n"
"contains an icon used...\n\n"
"The text \"line 42\" will be substituted.",
- QMessageBox.Ok + QMessageBox.Default )
+ TQMessageBox.Ok + TQMessageBox.Default )
- # Create a label containing a QMovie
- self.movielabel = QLabel( self, "label0" )
- self.movie = QMovie( MOVIEFILENAME )
+ # Create a label containing a TQMovie
+ self.movielabel = TQLabel( self, "label0" )
+ self.movie = TQMovie( MOVIEFILENAME )
self.movie.connectStatus( self.movieStatus )
self.movie.connectUpdate( self.movieUpdate )
- self.movielabel.setFrameStyle( QFrame.Box | QFrame.Plain )
+ self.movielabel.setFrameStyle( TQFrame.Box | TQFrame.Plain )
self.movielabel.setMovie( self.movie )
self.movielabel.setMargin( 0 )
self.movielabel.setFixedSize( 128 + self.movielabel.frameWidth() * 2,
64 + self.movielabel.frameWidth() * 2 )
- self.grid.addWidget( self.movielabel, 0, 1, Qt.AlignCenter )
- QToolTip.add( self.movielabel, "movie" )
+ self.grid.addWidget( self.movielabel, 0, 1, TQt.AlignCenter )
+ TQToolTip.add( self.movielabel, "movie" )
# Create a group of check boxes
- self.bg = QButtonGroup( self, "checkGroup" )
+ self.bg = TQButtonGroup( self, "checkGroup" )
self.bg.setTitle( "Check Boxes" )
self.grid.addWidget( self.bg, 1, 0 )
# Create a layout for the check boxes
- self.vbox = QVBoxLayout(self.bg, 10)
+ self.vbox = TQVBoxLayout(self.bg, 10)
self.vbox.addSpacing( self.bg.fontMetrics().height() )
self.cb = range(3)
- self.cb[0] = QCheckBox( self.bg )
+ self.cb[0] = TQCheckBox( self.bg )
self.cb[0].setText( "Read" )
self.vbox.addWidget( self.cb[0] )
self.cb[0].setMinimumSize( self.cb[0].sizeHint() )
- self.cb[1] = QCheckBox( self.bg )
+ self.cb[1] = TQCheckBox( self.bg )
self.cb[1].setText( "Write" )
self.vbox.addWidget( self.cb[1] )
self.cb[1].setMinimumSize( self.cb[1].sizeHint() )
- self.cb[2] = QCheckBox( self.bg )
+ self.cb[2] = TQCheckBox( self.bg )
self.cb[2].setText( "Execute" )
self.cb[2].setMinimumSize( self.cb[2].sizeHint() )
self.vbox.addWidget( self.cb[2] )
@@ -242,44 +242,44 @@ class WidgetView ( QWidget ):
self.connect( self.bg, SIGNAL("clicked(int)"), self.checkBoxClicked )
- QToolTip.add( self.cb[0], "check box 1" )
- QToolTip.add( self.cb[1], "check box 2" )
- QToolTip.add( self.cb[2], "check box 3" )
+ TQToolTip.add( self.cb[0], "check box 1" )
+ TQToolTip.add( self.cb[1], "check box 2" )
+ TQToolTip.add( self.cb[2], "check box 3" )
# Create a group of radio buttons
- self.bg = QButtonGroup( self, "radioGroup" )
+ self.bg = TQButtonGroup( self, "radioGroup" )
self.bg.setTitle( "Radio buttons" )
self.grid.addWidget( self.bg, 1, 1 )
# Create a layout for the radio buttons
- self.vbox = QVBoxLayout( self.bg, 10 )
+ self.vbox = TQVBoxLayout( self.bg, 10 )
self.vbox.addSpacing( self.bg.fontMetrics().height() )
- self.rb = QRadioButton( self.bg )
+ self.rb = TQRadioButton( self.bg )
self.rb.setText( "&AM" )
self.rb.setChecked( TRUE )
self.vbox.addWidget( self.rb )
self.rb.setMinimumSize( self.rb.sizeHint() )
- QToolTip.add( self.rb, "radio button 1" )
- self.rb = QRadioButton( self.bg )
+ TQToolTip.add( self.rb, "radio button 1" )
+ self.rb = TQRadioButton( self.bg )
self.rb.setText( "&FM" )
self.vbox.addWidget( self.rb )
self.rb.setMinimumSize( self.rb.sizeHint() )
- QToolTip.add( self.rb, "radio button 2" )
- self.rb = QRadioButton( self.bg )
+ TQToolTip.add( self.rb, "radio button 2" )
+ self.rb = TQRadioButton( self.bg )
self.rb.setText( "&Short Wave" )
self.vbox.addWidget( self.rb )
self.rb.setMinimumSize( self.rb.sizeHint() )
self.vbox.activate()
self.connect( self.bg, SIGNAL("clicked(int)"), self.radioButtonClicked )
- QToolTip.add( self.rb, "radio button 3" )
+ TQToolTip.add( self.rb, "radio button 3" )
# Create a list box
- self.lb = QListBox( self, "listBox" )
+ self.lb = TQListBox( self, "listBox" )
for i in range( 0, 100, 1 ): # fill list box
- txt = QString()
+ txt = TQString()
txt = "line %d" % i
if i == 42 and self.pix:
self.lb.insertItem( self.pm )
@@ -288,26 +288,26 @@ class WidgetView ( QWidget ):
self.grid.addMultiCellWidget( self.lb, 2, 4, 0, 0 )
self.connect( self.lb, SIGNAL("selected(int)"), self.listBoxItemSelected )
- QToolTip.add( self.lb, "list box" )
+ TQToolTip.add( self.lb, "list box" )
- self.vbox = QVBoxLayout( 8 )
+ self.vbox = TQVBoxLayout( 8 )
self.grid.addLayout( self.vbox, 2, 1 )
# Create a slider
- self.sb = QSlider( 0, 300, 1, 100, QSlider.Horizontal, self, "Slider" )
- #self.sb.setTickmarks( QSlider.Below )
+ self.sb = TQSlider( 0, 300, 1, 100, TQSlider.Horizontal, self, "Slider" )
+ #self.sb.setTickmarks( TQSlider.Below )
self.sb.setTickmarks( 1 )
self.sb.setTickInterval( 10 )
- #self.sb.setFocusPolicy( QWidget.TabFocus )
+ #self.sb.setFocusPolicy( TQWidget.TabFocus )
self.sb.setFocusPolicy( 1 )
self.sb.setFixedHeight( self.sb.sizeHint().height() )
self.vbox.addWidget( self.sb )
self.connect( self.sb, SIGNAL("valueChanged(int)"), self.sliderValueChanged )
- QToolTip.add( self.sb, "slider" )
+ TQToolTip.add( self.sb, "slider" )
# Create a combo box
- self.combo = QComboBox( FALSE, self, "comboBox" )
+ self.combo = TQComboBox( FALSE, self, "comboBox" )
self.combo.insertItem( "darkBlue" )
self.combo.insertItem( "darkRed" )
self.combo.insertItem( "darkGreen" )
@@ -316,10 +316,10 @@ class WidgetView ( QWidget ):
self.combo.setFixedHeight( self.combo.sizeHint().height() )
self.vbox.addWidget( self.combo )
self.connect( self.combo, SIGNAL("activated(int)"), self.comboBoxItemActivated )
- QToolTip.add( self.combo, "read-only combo box" )
+ TQToolTip.add( self.combo, "read-only combo box" )
# Create an editable combo box
- self.edCombo = QComboBox( TRUE, self, "edComboBox" )
+ self.edCombo = TQComboBox( TRUE, self, "edComboBox" )
self.edCombo.insertItem( "Permutable" )
self.edCombo.insertItem( "Malleable" )
self.edCombo.insertItem( "Adaptable" )
@@ -327,50 +327,50 @@ class WidgetView ( QWidget ):
self.edCombo.insertItem( "Inconstant" )
self.edCombo.setFixedHeight( self.edCombo.sizeHint().height() )
self.vbox.addWidget( self.edCombo )
- self.connect( self.edCombo, SIGNAL("activated(const QString &)"), self.edComboBoxItemActivated)
- QToolTip.add( self.edCombo, "editable combo box" )
+ self.connect( self.edCombo, SIGNAL("activated(const TQString &)"), self.edComboBoxItemActivated)
+ TQToolTip.add( self.edCombo, "editable combo box" )
self.edCombo.setAutoCompletion( TRUE )
self.vbox.addStretch( 1 )
- self.vbox = QVBoxLayout( 8 )
+ self.vbox = TQVBoxLayout( 8 )
self.grid.addLayout( self.vbox, 2, 2 )
# Create a spin box
- self.spin = QSpinBox( 0, 10, 1, self, "spin" )
+ self.spin = TQSpinBox( 0, 10, 1, self, "spin" )
self.spin.setSuffix( " mm" )
self.spin.setSpecialValueText( "Auto" )
self.spin.setMinimumSize( self.spin.sizeHint() )
- self.connect( self.spin, SIGNAL( "valueChanged(const QString &)" ), self.spinBoxValueChanged )
- QToolTip.add( self.spin, "spin box" )
+ self.connect( self.spin, SIGNAL( "valueChanged(const TQString &)" ), self.spinBoxValueChanged )
+ TQToolTip.add( self.spin, "spin box" )
self.vbox.addWidget( self.spin )
self.vbox.addStretch( 1 )
# Create a multi line edit
- self.mle = QMultiLineEdit( self, "multiLineEdit" )
+ self.mle = TQMultiLineEdit( self, "multiLineEdit" )
self.grid.addMultiCellWidget( self.mle, 3, 3, 1, 2 )
self.mle.setMinimumHeight( self.mle.fontMetrics().height() * 3 )
- self.mle.setText("This is a QMultiLineEdit widget,\n"
+ self.mle.setText("This is a TQMultiLineEdit widget,\n"
"useful for small multi-line\n"
"input fields.")
- QToolTip.add( self.mle, "multi line editor" )
+ TQToolTip.add( self.mle, "multi line editor" )
# Create a single line edit
- self.le = QLineEdit( self, "lineEdit" )
+ self.le = TQLineEdit( self, "lineEdit" )
self.grid.addMultiCellWidget( self.le, 4, 4, 1, 2 )
self.le.setFixedHeight( self.le.sizeHint().height() )
- self.connect( self.le, SIGNAL("textChanged(const QString &)"), self.lineEditTextChanged )
- QToolTip.add( self.le, "single line editor" )
+ self.connect( self.le, SIGNAL("textChanged(const TQString &)"), self.lineEditTextChanged )
+ TQToolTip.add( self.le, "single line editor" )
- # Create a horizontal line (sort of QFrame) above the message line
- self.separator = QFrame( self, "separatorLine" )
- self.separator.setFrameStyle( QFrame.HLine | QFrame.Sunken )
+ # Create a horizontal line (sort of TQFrame) above the message line
+ self.separator = TQFrame( self, "separatorLine" )
+ self.separator.setFrameStyle( TQFrame.HLine | TQFrame.Sunken )
self.separator.setFixedHeight( self.separator.sizeHint().height() )
self.grid.addMultiCellWidget( self.separator, 5, 5, 0, 2 )
- QToolTip.add( self.separator, "tool tips on a separator! wow!" )
+ TQToolTip.add( self.separator, "tool tips on a separator! wow!" )
self.grid.setRowStretch( 0, 0 )
self.grid.setRowStretch( 1, 0 )
@@ -386,24 +386,24 @@ class WidgetView ( QWidget ):
# Create an label and a message in a plain widget
# The message is updated when buttons are clicked etc.
- self.hbox = QHBoxLayout()
+ self.hbox = TQHBoxLayout()
self.topLayout.addLayout( self.hbox )
- self.msgLabel = QLabel( self, "msgLabel" )
+ self.msgLabel = TQLabel( self, "msgLabel" )
self.msgLabel.setText( "Message:" )
- self.msgLabel.setAlignment( Qt.AlignHCenter | Qt.AlignVCenter )
+ self.msgLabel.setAlignment( TQt.AlignHCenter | TQt.AlignVCenter )
self.msgLabel.setFixedSize( self.msgLabel.sizeHint() )
self.hbox.addWidget( self.msgLabel )
- QToolTip.add( self.msgLabel, "label 1" )
+ TQToolTip.add( self.msgLabel, "label 1" )
- self.msg = QLabel( self, "message" )
- self.msg.setFrameStyle( QFrame.Panel | QFrame.Sunken )
- self.msg.setAlignment( Qt.AlignCenter )
- self.msg.setFont( QFont( "times", 12, QFont.Bold ) )
+ self.msg = TQLabel( self, "message" )
+ self.msg.setFrameStyle( TQFrame.Panel | TQFrame.Sunken )
+ self.msg.setAlignment( TQt.AlignCenter )
+ self.msg.setFont( TQFont( "times", 12, TQFont.Bold ) )
self.msg.setText( "Message" )
self.msg.setFixedHeight( self.msg.sizeHint().height() )
self.msg.setText( "" )
self.hbox.addWidget( self.msg, 5 )
- QToolTip.add( self.msg, "label 2" )
+ TQToolTip.add( self.msg, "label 2" )
self.topLayout.activate()
@@ -415,19 +415,19 @@ class WidgetView ( QWidget ):
self.setIcon( self.movie.framePixmap() )
def movieStatus( self, s ):
- if s == QMovie.SourceEmpty or s == QMovie.UnrecognizedFormat:
- pm = QPixmap('tt-logo.png')
+ if s == TQMovie.SourceEmpty or s == TQMovie.UnrecognizedFormat:
+ pm = TQPixmap('tt-logo.png')
self.movielabel.setPixmap(pm)
self.movielabel.setFixedSize(pm.size())
else:
if ( self.movielabel.movie() ): # for flicker-free animation:
- self.movielabel.setBackgroundMode( QWidget.NoBackground )
+ self.movielabel.setBackgroundMode( TQWidget.NoBackground )
def button1Clicked( self ):
self.msg.setText( "The first push button was clicked" )
def checkBoxClicked( self, id ):
- txt = QString()
+ txt = TQString()
txt = "Check box %s clicked : " % str(id)
chk = ["-","-","-"]
if self.cb[0].isChecked():
@@ -440,40 +440,40 @@ class WidgetView ( QWidget ):
self.msg.setText( txt )
def edComboBoxItemActivated( self, text):
- txt = QString()
+ txt = TQString()
txt = "Editable Combo Box set to %s" % text
self.msg.setText( txt )
def radioButtonClicked( self, id ):
- txt = QString()
+ txt = TQString()
txt = "Radio button #%d clicked" % id
self.msg.setText( txt )
def listBoxItemSelected( self, index ):
- txt = QString()
+ txt = TQString()
txt = "List box item %d selected" % index
self.msg.setText( txt )
def sliderValueChanged( self, value ):
- txt = QString()
+ txt = TQString()
txt = "Movie set to %d%% of normal speed" % value
self.msg.setText( txt )
self.movie.setSpeed( value )
def comboBoxItemActivated( self, index ):
- txt = QString()
+ txt = TQString()
txt = "Comboxo box item %d activated" % index
self.msg.setText( txt )
if index == 0:
- QApplication.setWinStyleHighlightColor( Qt.darkBlue )
+ TQApplication.setWinStyleHighlightColor( TQt.darkBlue )
elif index == 1:
- QApplication.setWinStyleHighlightColor( Qt.darkRed )
+ TQApplication.setWinStyleHighlightColor( TQt.darkRed )
elif index == 2:
- QApplication.setWinStyleHighlightColor( Qt.darkGreen )
+ TQApplication.setWinStyleHighlightColor( TQt.darkGreen )
elif index == 3:
- QApplication.setWinStyleHighlightColor( Qt.blue )
+ TQApplication.setWinStyleHighlightColor( TQt.blue )
elif index == 4:
- QApplication.setWinStyleHighlightColor( Qt.red )
+ TQApplication.setWinStyleHighlightColor( TQt.red )
def lineEditTextChanged( self, newText ):
self.msg.setText("Line edit text: " + unicode(newText))
@@ -487,24 +487,24 @@ class WidgetView ( QWidget ):
#def eventFilter( self, event ):
# identify_now = TRUE
# if event.type() == Event_MouseButtonPress and identify_now:
- # e = QMouseEvent( event )
- # if (e.button() == Qt.RightButton) and (e.state() & Qt.ControlButton) != 0:
- # txt = QString( "The clicked widget is a\n" )
- # txt = txt + QObect.className()
+ # e = TQMouseEvent( event )
+ # if (e.button() == TQt.RightButton) and (e.state() & TQt.ControlButton) != 0:
+ # txt = TQString( "The clicked widget is a\n" )
+ # txt = txt + TQObect.className()
# txt = txt + "\nThe widget's name is\n"
- # if QObject.name():
- # txt = txt + QObject.name()
+ # if TQObject.name():
+ # txt = txt + TQObject.name()
# else:
# txt = txt + "<no name>"
# identify_now = FALSE # don't do it in message box
- # QMessageBox.message( "Identify Widget", txt, 0, QObject )
+ # TQMessageBox.message( "Identify Widget", txt, 0, TQObject )
# identify_now = TRUE; # allow it again
# return FALSE # don't eat event
################################################################################################
-#QApplication.setColourSpec( QApplication.CustomColor )
-a = QApplication( sys.argv )
+#TQApplication.setColourSpec( TQApplication.CustomColor )
+a = TQApplication( sys.argv )
w = WidgetView()
a.setMainWidget( w )
diff --git a/examples3/README b/examples3/README
index 4a8f9eb..fcebe5f 100644
--- a/examples3/README
+++ b/examples3/README
@@ -2,9 +2,9 @@ To run these examples, make sure you have your PYTHONPATH environment variable
set if needed and explicitly set the path to python at the top of each script
if you don't have /usr/bin/env.
-The examples are written for Qt v3.x.
+The examples are written for TQt v3.x.
-A much better source of information about using PyQt is Boudewijn Rempt's
+A much better source of information about using PyTQt is Boudewijn Rempt's
book at http://stage.linuxports.com/projects/pyqt/.
diff --git a/examples3/SQL/README b/examples3/SQL/README
index 9dfc5d4..6e28f6e 100644
--- a/examples3/SQL/README
+++ b/examples3/SQL/README
@@ -1,27 +1,27 @@
-This directory contains some translated sql examples from Qt 3.x.
+This directory contains some translated sql examples from TQt 3.x.
runform1.py, form1.ui:
- A simple designer generated QDataTable. Run "pyuic form1.ui -o form1.py".
+ A simple designer generated TQDataTable. Run "pyuic form1.ui -o form1.py".
runform2.py, form2.ui:
- A simple designer generated QDataBrowser. Run "pyuic form2.ui -o form2.py".
+ A simple designer generated TQDataBrowser. Run "pyuic form2.ui -o form2.py".
sqlcustom1.py:
- QSqlForm based form with a simple custom editor forcing all input to
+ TQSqlForm based form with a simple custom editor forcing all input to
be uppercase
sqltable4.py:
- Custom QDataTable with reimplemented paintField method, combined with
- a QComboBox based custom field editor (StatusPicker), gathering its
+ Custom TQDataTable with reimplemented paintField method, combined with
+ a TQComboBox based custom field editor (StatusPicker), gathering its
items from a different table (status) and a calculated column (monsalary).
- Note, that QSqlEditorFactory based field editors are somewhat restricted,
- because Qt's Q_PROPERTY feature isn't supported, yet. I've circumvented
+ Note, that TQSqlEditorFactory based field editors are somewhat restricted,
+ because TQt's Q_PROPERTY feature isn't supported, yet. I've circumvented
this limitation by choosing the status table ids corresponding to the
- index in the QComboBox.
+ index in the TQComboBox.
sqlsubclass5.py:
@@ -34,11 +34,11 @@ sqlsubclass5.py:
runsqlex.py, sqlex.ui, sqlex.ui.h, connect.ui, connect.ui.h:
- This one is a most advanced example, showing the use of a QSqlCursor
- driven by QSqlQuery and iterating through database tables and fields.
+ This one is a most advanced example, showing the use of a TQSqlCursor
+ driven by TQSqlQuery and iterating through database tables and fields.
Definitely worth a look.
-Unfortunately you will have to make sure that these prerequisites are met
+Unfortunately you will have to make sure that these preretquisites are met
before trying the examples:
- Install MySQL or PostgreSQL and any development packages
@@ -49,7 +49,7 @@ before trying the examples:
- For MySQL, run: mysql -u user -p password < testdb_mysql.sql
- For PostgreSQL, run: psql -U user template1 -f testdb_pg.sql
- - Build Qt with the mysql and/or psql modules activated.
+ - Build TQt with the mysql and/or psql modules activated.
Now you should be ready for the fun part. You can run dbconnect.py from
a command line and try to connect to the database. If all went well,
@@ -64,7 +64,7 @@ DB_PASSWORD = "pass"
The dbconnect.py script is generated from dbconnect.ui, which was created
with qt's designer. You can find it also in Boudewijn Rempt's book
-"GUI Programming with Python, using the Qt Toolkit". Although you won't find
+"GUI Programming with Python, using the TQt Toolkit". Although you won't find
the SQL widgets discussed there, for the simple reason of the book being
written before they appeared, it is a valuable source for anybody new in
this area.
diff --git a/examples3/SQL/connect.ui b/examples3/SQL/connect.ui
index cc41920..d33a783 100644
--- a/examples3/SQL/connect.ui
+++ b/examples3/SQL/connect.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>ConnectDialog</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>ConnectDialog</cstring>
</property>
@@ -25,7 +25,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>GroupBox3</cstring>
</property>
@@ -42,12 +42,12 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>editDatabase</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel3</cstring>
</property>
@@ -58,7 +58,7 @@
<cstring>comboDatabase</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="3" column="1">
+ <widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>editPassword</cstring>
</property>
@@ -66,7 +66,7 @@
<enum>Password</enum>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel4</cstring>
</property>
@@ -77,7 +77,7 @@
<cstring>editUsername</cstring>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>TextLabel4_2</cstring>
</property>
@@ -88,22 +88,22 @@
<cstring>editPassword</cstring>
</property>
</widget>
- <widget class="QComboBox" row="0" column="1">
+ <widget class="TQComboBox" row="0" column="1">
<property name="name">
<cstring>comboDriver</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="2" column="1">
+ <widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>editUsername</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="4" column="1">
+ <widget class="TQLineEdit" row="4" column="1">
<property name="name">
<cstring>editHostname</cstring>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>TextLabel5</cstring>
</property>
@@ -114,7 +114,7 @@
<cstring>editHostname</cstring>
</property>
</widget>
- <widget class="QLabel" row="5" column="0">
+ <widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>TextLabel5_2</cstring>
</property>
@@ -125,7 +125,7 @@
<cstring>portSpinBox</cstring>
</property>
</widget>
- <widget class="QSpinBox" row="5" column="1">
+ <widget class="TQSpinBox" row="5" column="1">
<property name="name">
<cstring>portSpinBox</cstring>
</property>
@@ -142,7 +142,7 @@
<number>-1</number>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
@@ -155,7 +155,7 @@
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout25</cstring>
</property>
@@ -180,7 +180,7 @@
<enum>Expanding</enum>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>PushButton1</cstring>
</property>
@@ -191,7 +191,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>PushButton2</cstring>
</property>
diff --git a/examples3/SQL/connect.ui.h b/examples3/SQL/connect.ui.h
index cbeeabd..9d994ff 100644
--- a/examples3/SQL/connect.ui.h
+++ b/examples3/SQL/connect.ui.h
@@ -1,7 +1,7 @@
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
-** If you wish to add, delete or rename slots use Qt Designer which will
+** If you wish to add, delete or rename slots use TQt Designer which will
** update this file, preserving your code. Create an init() slot in place of
** a constructor, and a destroy() slot in place of a destructor.
*****************************************************************************/
@@ -9,10 +9,10 @@
void ConnectDialog::init()
{
-from qtsql import QSqlDatabase
+from qtsql import TQSqlDatabase
#qDebug("ConnectDialog init")
self.comboDriver.clear()
-self.comboDriver.insertStringList(QSqlDatabase.drivers())
+self.comboDriver.insertStringList(TQSqlDatabase.drivers())
}
void ConnectDialog::destroy()
diff --git a/examples3/SQL/dbconnect.py b/examples3/SQL/dbconnect.py
index fdae7de..6986d08 100755
--- a/examples3/SQL/dbconnect.py
+++ b/examples3/SQL/dbconnect.py
@@ -12,19 +12,19 @@ FALSE = 0
def createConnection():
driver = DB_DRIVER
- # all qt examples use QSqlDatabase::addDatabase, but
+ # all qt examples use TQSqlDatabase::addDatabase, but
# this never returns NULL in my experience
- drivers = map(str, QSqlDatabase.drivers())
+ drivers = map(str, TQSqlDatabase.drivers())
if driver in drivers:
dlg = dbConnect(driver)
#TODO: make connection parameters accessible
return dlg.exec_loop()
else:
- QMessageBox.warning(None, "Database Error",
+ TQMessageBox.warning(None, "Database Error",
"<%s> database driver not found!\n\n"
"Please make sure, that this database adaptor\n"
- "is available in your Qt installation.\n" %
- (driver), QMessageBox.Abort | QMessageBox.Escape)
+ "is available in your TQt installation.\n" %
+ (driver), TQMessageBox.Abort | TQMessageBox.Escape)
return FALSE
class dbConnect(frmConnect):
@@ -50,7 +50,7 @@ class dbConnect(frmConnect):
self.database = self.cmbDatabase.currentText()
self.username = self.txtName.text()
self.password = self.txtPasswd.text()
- db = QSqlDatabase.addDatabase(self.dbdriver)
+ db = TQSqlDatabase.addDatabase(self.dbdriver)
if db:
db.setHostName(self.hostname)
db.setDatabaseName(self.database)
@@ -59,7 +59,7 @@ class dbConnect(frmConnect):
if db.open():
frmConnect.accept(self)
else:
- QMessageBox.warning(self, "Database Error",
+ TQMessageBox.warning(self, "Database Error",
"Cannot open %s database on %s!\n\n%s\n%s\n" %
(self.database, self.hostname,
db.lastError().driverText(),
@@ -67,15 +67,15 @@ class dbConnect(frmConnect):
def buttonHelp_clicked(self):
- QMessageBox.information(self, "About Connecting",
+ TQMessageBox.information(self, "About Connecting",
"Here you specify userid, password, host and database\n"
- "for the PyQt sql examples. If you encounter any problems,\n"
+ "for the PyTQt sql examples. If you encounter any problems,\n"
"please read the README file in this folder before posting.\n\n"
"Thanks,\nHans-Peter Jansen <hpj@urpla.net>\n")
if __name__ == "__main__":
- app = QApplication(sys.argv)
+ app = TQApplication(sys.argv)
if createConnection():
print "ok"
else:
diff --git a/examples3/SQL/dbpar.py b/examples3/SQL/dbpar.py
index 90e9270..19e6d9b 100644
--- a/examples3/SQL/dbpar.py
+++ b/examples3/SQL/dbpar.py
@@ -3,8 +3,8 @@
# you can create a local_dbpar.py module with definitons
# of your own parameters to overrule these defaults
-#DB_DRIVER = "QPSQL7"
-DB_DRIVER = "QMYSQL3"
+#DB_DRIVER = "TQPSQL7"
+DB_DRIVER = "TQMYSQL3"
# list of servers
DB_HOSTNAMES = ["localhost"]
# list of databases
diff --git a/examples3/SQL/form1.ui b/examples3/SQL/form1.ui
index 38b3cb2..118a84e 100644
--- a/examples3/SQL/form1.ui
+++ b/examples3/SQL/form1.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>Form1</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -15,7 +15,7 @@
<property name="caption">
<string>Form1</string>
</property>
- <widget class="QDataTable">
+ <widget class="TQDataTable">
<column>
<property name="text">
<string>Forename</string>
diff --git a/examples3/SQL/form2.ui b/examples3/SQL/form2.ui
index ffe2beb..4856e39 100644
--- a/examples3/SQL/form2.ui
+++ b/examples3/SQL/form2.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>Form2</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>Form2</cstring>
</property>
@@ -15,7 +15,7 @@
<property name="caption">
<string>Form2</string>
</property>
- <widget class="QDataBrowser">
+ <widget class="TQDataBrowser">
<property name="name">
<cstring>DataBrowser1</cstring>
</property>
@@ -49,7 +49,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>Layout2</cstring>
</property>
@@ -63,7 +63,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>labelSurname</cstring>
</property>
@@ -71,9 +71,9 @@
<string>Surname</string>
</property>
</widget>
- <widget class="QSpinBox" row="1" column="3">
+ <widget class="TQSpinBox" row="1" column="3">
<property name="name">
- <cstring>QSpinBoxStatusid</cstring>
+ <cstring>TQSpinBoxStatusid</cstring>
</property>
<property name="maxValue">
<number>2147483647</number>
@@ -86,9 +86,9 @@
</stringlist>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
- <cstring>QLineEditSurname</cstring>
+ <cstring>TQLineEditSurname</cstring>
</property>
<property name="database" stdset="0">
<stringlist>
@@ -98,7 +98,7 @@
</stringlist>
</property>
</widget>
- <widget class="QLabel" row="1" column="2">
+ <widget class="TQLabel" row="1" column="2">
<property name="name">
<cstring>labelStatusid</cstring>
</property>
@@ -106,7 +106,7 @@
<string>Statusid</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>labelForename</cstring>
</property>
@@ -114,9 +114,9 @@
<string>Forename</string>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="3">
+ <widget class="TQLineEdit" row="0" column="3">
<property name="name">
- <cstring>QLineEditSalary</cstring>
+ <cstring>TQLineEditSalary</cstring>
</property>
<property name="alignment">
<set>AlignRight</set>
@@ -129,7 +129,7 @@
</stringlist>
</property>
</widget>
- <widget class="QLabel" row="0" column="2">
+ <widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>labelSalary</cstring>
</property>
@@ -137,9 +137,9 @@
<string>Salary</string>
</property>
</widget>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
- <cstring>QLineEditForename</cstring>
+ <cstring>TQLineEditForename</cstring>
</property>
<property name="database" stdset="0">
<stringlist>
@@ -151,7 +151,7 @@
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget" row="1" column="0">
+ <widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
<cstring>Layout3</cstring>
</property>
@@ -165,7 +165,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>PushButtonFirst</cstring>
</property>
@@ -173,7 +173,7 @@
<string>|&lt; &amp;First</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>PushButtonPrev</cstring>
</property>
@@ -181,7 +181,7 @@
<string>&lt;&lt; &amp;Prev</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>PushButtonNext</cstring>
</property>
@@ -189,7 +189,7 @@
<string>&amp;Next &gt;&gt;</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>PushButtonLast</cstring>
</property>
@@ -199,7 +199,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="2" column="0">
+ <widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
<cstring>Layout4</cstring>
</property>
@@ -213,7 +213,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>PushButtonInsert</cstring>
</property>
@@ -221,7 +221,7 @@
<string>&amp;Insert</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>PushButtonUpdate</cstring>
</property>
@@ -229,7 +229,7 @@
<string>&amp;Update</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>PushButtonDelete</cstring>
</property>
@@ -311,10 +311,10 @@
</connection>
</connections>
<tabstops>
- <tabstop>QLineEditForename</tabstop>
- <tabstop>QLineEditSurname</tabstop>
- <tabstop>QLineEditSalary</tabstop>
- <tabstop>QSpinBoxStatusid</tabstop>
+ <tabstop>TQLineEditForename</tabstop>
+ <tabstop>TQLineEditSurname</tabstop>
+ <tabstop>TQLineEditSalary</tabstop>
+ <tabstop>TQSpinBoxStatusid</tabstop>
<tabstop>PushButtonFirst</tabstop>
<tabstop>PushButtonPrev</tabstop>
<tabstop>PushButtonNext</tabstop>
diff --git a/examples3/SQL/frmconnect.py b/examples3/SQL/frmconnect.py
index 23cd067..92cf3f6 100644
--- a/examples3/SQL/frmconnect.py
+++ b/examples3/SQL/frmconnect.py
@@ -1,7 +1,7 @@
# Form implementation generated from reading ui file 'frmconnect.ui'
#
# Created: Sam Jul 6 12:47:10 2002
-# by: The PyQt User Interface Compiler (pyuic)
+# by: The PyTQt User Interface Compiler (pyuic)
#
# WARNING! All changes made in this file will be lost!
@@ -9,9 +9,9 @@
from qt import *
-class frmConnect(QDialog):
+class frmConnect(TQDialog):
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
- QDialog.__init__(self,parent,name,modal,fl)
+ TQDialog.__init__(self,parent,name,modal,fl)
if name == None:
self.setName("frmConnect")
@@ -20,85 +20,85 @@ class frmConnect(QDialog):
self.setCaption(self.trUtf8("Connecting"))
self.setSizeGripEnabled(1)
- frmConnectLayout = QGridLayout(self,1,1,11,6,"frmConnectLayout")
+ frmConnectLayout = TQGridLayout(self,1,1,11,6,"frmConnectLayout")
- Layout7 = QVBoxLayout(None,0,6,"Layout7")
+ Layout7 = TQVBoxLayout(None,0,6,"Layout7")
- self.buttonOK = QPushButton(self,"buttonOK")
+ self.buttonOK = TQPushButton(self,"buttonOK")
self.buttonOK.setText(self.trUtf8("&OK"))
self.buttonOK.setAutoDefault(1)
self.buttonOK.setDefault(1)
- QToolTip.add(self.buttonOK,self.trUtf8("Connect to Database"))
+ TQToolTip.add(self.buttonOK,self.trUtf8("Connect to Database"))
Layout7.addWidget(self.buttonOK)
- self.buttonCancel = QPushButton(self,"buttonCancel")
+ self.buttonCancel = TQPushButton(self,"buttonCancel")
self.buttonCancel.setText(self.trUtf8("&Cancel"))
- QToolTip.add(self.buttonCancel,self.trUtf8("Cancel Connecting"))
+ TQToolTip.add(self.buttonCancel,self.trUtf8("Cancel Connecting"))
Layout7.addWidget(self.buttonCancel)
- self.buttonHelp = QPushButton(self,"buttonHelp")
+ self.buttonHelp = TQPushButton(self,"buttonHelp")
self.buttonHelp.setText(self.trUtf8("&Help"))
- QToolTip.add(self.buttonHelp,self.trUtf8("About Connecting"))
+ TQToolTip.add(self.buttonHelp,self.trUtf8("About Connecting"))
Layout7.addWidget(self.buttonHelp)
- spacer = QSpacerItem(0,0,QSizePolicy.Minimum,QSizePolicy.Expanding)
+ spacer = TQSpacerItem(0,0,TQSizePolicy.Minimum,TQSizePolicy.Expanding)
Layout7.addItem(spacer)
frmConnectLayout.addLayout(Layout7,0,1)
- self.grpConnection = QGroupBox(self,"grpConnection")
+ self.grpConnection = TQGroupBox(self,"grpConnection")
self.grpConnection.setTitle(self.trUtf8(""))
- self.grpConnection.setColumnLayout(0,Qt.Vertical)
+ self.grpConnection.setColumnLayout(0,TQt.Vertical)
self.grpConnection.layout().setSpacing(6)
self.grpConnection.layout().setMargin(11)
- grpConnectionLayout = QGridLayout(self.grpConnection.layout())
- grpConnectionLayout.setAlignment(Qt.AlignTop)
+ grpConnectionLayout = TQGridLayout(self.grpConnection.layout())
+ grpConnectionLayout.setAlignment(TQt.AlignTop)
- self.txtName = QLineEdit(self.grpConnection,"txtName")
+ self.txtName = TQLineEdit(self.grpConnection,"txtName")
self.txtName.setMaxLength(16)
- QToolTip.add(self.txtName,self.trUtf8("Database User ID"))
+ TQToolTip.add(self.txtName,self.trUtf8("Database User ID"))
grpConnectionLayout.addWidget(self.txtName,0,1)
- self.lblDatabase = QLabel(self.grpConnection,"lblDatabase")
+ self.lblDatabase = TQLabel(self.grpConnection,"lblDatabase")
self.lblDatabase.setText(self.trUtf8("&Database"))
grpConnectionLayout.addWidget(self.lblDatabase,3,0)
- self.lblServer = QLabel(self.grpConnection,"lblServer")
+ self.lblServer = TQLabel(self.grpConnection,"lblServer")
self.lblServer.setText(self.trUtf8("&Server"))
grpConnectionLayout.addWidget(self.lblServer,2,0)
- self.lblName = QLabel(self.grpConnection,"lblName")
+ self.lblName = TQLabel(self.grpConnection,"lblName")
self.lblName.setText(self.trUtf8("&Name"))
grpConnectionLayout.addWidget(self.lblName,0,0)
- self.cmbDatabase = QComboBox(0,self.grpConnection,"cmbDatabase")
+ self.cmbDatabase = TQComboBox(0,self.grpConnection,"cmbDatabase")
self.cmbDatabase.setEditable(1)
self.cmbDatabase.setAutoCompletion(1)
self.cmbDatabase.setDuplicatesEnabled(0)
- QToolTip.add(self.cmbDatabase,self.trUtf8("Database Name"))
+ TQToolTip.add(self.cmbDatabase,self.trUtf8("Database Name"))
grpConnectionLayout.addWidget(self.cmbDatabase,3,1)
- self.txtPasswd = QLineEdit(self.grpConnection,"txtPasswd")
+ self.txtPasswd = TQLineEdit(self.grpConnection,"txtPasswd")
self.txtPasswd.setMaxLength(16)
- self.txtPasswd.setEchoMode(QLineEdit.Password)
- QToolTip.add(self.txtPasswd,self.trUtf8("Database User Password"))
+ self.txtPasswd.setEchoMode(TQLineEdit.Password)
+ TQToolTip.add(self.txtPasswd,self.trUtf8("Database User Password"))
grpConnectionLayout.addWidget(self.txtPasswd,1,1)
- self.lblPasswd = QLabel(self.grpConnection,"lblPasswd")
+ self.lblPasswd = TQLabel(self.grpConnection,"lblPasswd")
self.lblPasswd.setText(self.trUtf8("&Password"))
grpConnectionLayout.addWidget(self.lblPasswd,1,0)
- self.cmbServer = QComboBox(0,self.grpConnection,"cmbServer")
+ self.cmbServer = TQComboBox(0,self.grpConnection,"cmbServer")
self.cmbServer.setEditable(1)
self.cmbServer.setAutoCompletion(1)
self.cmbServer.setDuplicatesEnabled(0)
- QToolTip.add(self.cmbServer,self.trUtf8("Database Server Address"))
+ TQToolTip.add(self.cmbServer,self.trUtf8("Database Server Address"))
grpConnectionLayout.addWidget(self.cmbServer,2,1)
diff --git a/examples3/SQL/frmconnect.ui b/examples3/SQL/frmconnect.ui
index a6fc15c..f2017ee 100644
--- a/examples3/SQL/frmconnect.ui
+++ b/examples3/SQL/frmconnect.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>frmConnect</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>frmConnect</cstring>
</property>
@@ -28,7 +28,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLayoutWidget" row="0" column="1">
+ <widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
<cstring>Layout7</cstring>
</property>
@@ -42,7 +42,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonOK</cstring>
</property>
@@ -59,7 +59,7 @@
<string>Connect to Database</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonCancel</cstring>
</property>
@@ -70,7 +70,7 @@
<string>Cancel Connecting</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonHelp</cstring>
</property>
@@ -94,7 +94,7 @@
</spacer>
</vbox>
</widget>
- <widget class="QGroupBox" row="0" column="0">
+ <widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>grpConnection</cstring>
</property>
@@ -111,7 +111,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>txtName</cstring>
</property>
@@ -122,7 +122,7 @@
<string>Database User ID</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>lblDatabase</cstring>
</property>
@@ -133,7 +133,7 @@
<cstring>cmbDatabase</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>lblServer</cstring>
</property>
@@ -144,7 +144,7 @@
<cstring>cmbServer</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>lblName</cstring>
</property>
@@ -155,7 +155,7 @@
<cstring>txtName</cstring>
</property>
</widget>
- <widget class="QComboBox" row="3" column="1">
+ <widget class="TQComboBox" row="3" column="1">
<property name="name">
<cstring>cmbDatabase</cstring>
</property>
@@ -172,7 +172,7 @@
<string>Database Name</string>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>txtPasswd</cstring>
</property>
@@ -186,7 +186,7 @@
<string>Database User Password</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>lblPasswd</cstring>
</property>
@@ -197,7 +197,7 @@
<cstring>txtPasswd</cstring>
</property>
</widget>
- <widget class="QComboBox" row="2" column="1">
+ <widget class="TQComboBox" row="2" column="1">
<property name="name">
<cstring>cmbServer</cstring>
</property>
diff --git a/examples3/SQL/runform1.py b/examples3/SQL/runform1.py
index d5760ce..b2b9951 100755
--- a/examples3/SQL/runform1.py
+++ b/examples3/SQL/runform1.py
@@ -11,9 +11,9 @@ class mainWindow(Form1):
Form1.__init__(self,parent,name,fl)
if __name__ == "__main__":
- a = QApplication(sys.argv)
+ a = TQApplication(sys.argv)
if createConnection():
- QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
+ TQObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
w = mainWindow()
a.setMainWidget(w)
w.show()
diff --git a/examples3/SQL/runform2.py b/examples3/SQL/runform2.py
index ba0ca4a..485eed3 100755
--- a/examples3/SQL/runform2.py
+++ b/examples3/SQL/runform2.py
@@ -11,9 +11,9 @@ class mainWindow(Form2):
Form2.__init__(self,parent,name,fl)
if __name__ == "__main__":
- a = QApplication(sys.argv)
+ a = TQApplication(sys.argv)
if createConnection():
- QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
+ TQObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
w = mainWindow()
a.setMainWidget(w)
w.show()
diff --git a/examples3/SQL/runsqlex.py b/examples3/SQL/runsqlex.py
index 7f2afa7..09f567d 100755
--- a/examples3/SQL/runsqlex.py
+++ b/examples3/SQL/runsqlex.py
@@ -13,30 +13,30 @@ TRUE = 1
FALSE = 0
def showError(err, parent):
- errStr = QString("The database reported an error:\n\n")
+ errStr = TQString("The database reported an error:\n\n")
if not err.databaseText().isEmpty():
errStr.append(err.databaseText())
errStr.append("\n")
if not err.driverText().isEmpty():
errStr.append(err.driverText())
errStr.append("\n")
- QMessageBox.warning(parent, "Error", errStr)
+ TQMessageBox.warning(parent, "Error", errStr)
-class CustomSqlCursor(QSqlCursor):
+class CustomSqlCursor(TQSqlCursor):
def __init__(self, query = None, autopopulate = TRUE, db = None):
- QSqlCursor.__init__(self, None, autopopulate, db)
+ TQSqlCursor.__init__(self, None, autopopulate, db)
self.execQuery(query)
if self.isSelect() and autopopulate:
fields = self.driver().recordInfo(self)
for f in fields:
self.append(f)
- self.setMode(QSqlCursor.ReadOnly)
+ self.setMode(TQSqlCursor.ReadOnly)
- def select(self, filter, sort = QSqlIndex()):
+ def select(self, filter, sort = TQSqlIndex()):
return self.execQuery(self.lastQuery())
def primaryIndex(self, prime = TRUE):
- return QSqlIndex()
+ return TQSqlIndex()
def insert(self, invalidate = TRUE):
return FALSE
@@ -68,21 +68,21 @@ class MainWindow(SqlEx):
if str(self.conDiag.comboDriver.text(i)) == DB_DRIVER:
self.conDiag.comboDriver.setCurrentItem(i)
break
- if self.conDiag.exec_loop() != QDialog.Accepted:
+ if self.conDiag.exec_loop() != TQDialog.Accepted:
return
if self.dt.sqlCursor():
self.dt.setSqlCursor()
# close old connection (if any)
- if QSqlDatabase.contains("SqlEx"):
- oldDb = QSqlDatabase.database("SqlEx")
+ if TQSqlDatabase.contains("SqlEx"):
+ oldDb = TQSqlDatabase.database("SqlEx")
oldDb.close()
- QSqlDatabase.removeDatabase("SqlEx")
+ TQSqlDatabase.removeDatabase("SqlEx")
# open the new connection
- db = QSqlDatabase.addDatabase(self.conDiag.comboDriver.currentText(), "SqlEx")
+ db = TQSqlDatabase.addDatabase(self.conDiag.comboDriver.currentText(), "SqlEx")
if not db:
- QMessageBox.warning(self, "Error", "Could not open database")
+ TQMessageBox.warning(self, "Error", "Could not open database")
return
db.setHostName(self.conDiag.editHostname.text())
@@ -98,15 +98,15 @@ class MainWindow(SqlEx):
tables = db.tables()
for t in tables:
- lvi = QListViewItem(self.lv, t)
+ lvi = TQListViewItem(self.lv, t)
fields = db.recordInfo(t)
for f in fields:
req = "?"
- if f.isRequired() > 0:
+ if f.isRetquired() > 0:
req = "Yes"
- elif f.isRequired() == 0:
+ elif f.isRetquired() == 0:
req = "No"
- fi = QListViewItem(lvi, f.name(), QVariant.typeToName(f.type()), req)
+ fi = TQListViewItem(lvi, f.name(), TQVariant.typeToName(f.type()), req)
lvi.insertItem(fi)
self.lv.insertItem(lvi)
@@ -114,11 +114,11 @@ class MainWindow(SqlEx):
def execQuery(self):
cursor = CustomSqlCursor(self.te.text(), TRUE,
- QSqlDatabase.database("SqlEx", TRUE))
+ TQSqlDatabase.database("SqlEx", TRUE))
if cursor.isSelect():
self.dt.setSqlCursor(cursor, TRUE, TRUE)
self.dt.refresh()
- txt = QString("Query OK")
+ txt = TQString("Query OK")
if cursor.size() >= 0:
txt.append(", returned rows: %s" % cursor.size())
self.lbl.setText(txt)
@@ -134,16 +134,16 @@ class MainWindow(SqlEx):
i = item.parent()
if not i:
i = item
- cursor = QSqlCursor(i.text(0), TRUE, QSqlDatabase.database("SqlEx", TRUE))
+ cursor = TQSqlCursor(i.text(0), TRUE, TQSqlDatabase.database("SqlEx", TRUE))
self.dt.setSqlCursor(cursor, TRUE, TRUE)
self.dt.setSort(cursor.primaryIndex())
- self.dt.refresh(QDataTable.RefreshAll)
+ self.dt.refresh(TQDataTable.RefreshAll)
self.lbl.setText("Displaying table %s" % i.text(0))
if __name__ == "__main__":
- a = QApplication(sys.argv)
- QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
+ a = TQApplication(sys.argv)
+ TQObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
w = MainWindow()
a.setMainWidget(w)
w.show()
diff --git a/examples3/SQL/sqlcustom1.py b/examples3/SQL/sqlcustom1.py
index cacb010..f708c1e 100755
--- a/examples3/SQL/sqlcustom1.py
+++ b/examples3/SQL/sqlcustom1.py
@@ -5,7 +5,7 @@
#**
#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
#**
-#** This file is part of an example program for PyQt. This example
+#** This file is part of an example program for PyTQt. This example
#** program may be used, distributed and modified without limitation.
#**
#*****************************************************************************/
@@ -19,10 +19,10 @@ from dbconnect import createConnection
TRUE = 1
FALSE = 0
-class CustomEdit(QLineEdit):
+class CustomEdit(TQLineEdit):
def __init__(self, parent = None, name = None):
- QLineEdit.__init__(self, parent, name)
- QObject.connect(self, SIGNAL("textChanged(const QString &)"),
+ TQLineEdit.__init__(self, parent, name)
+ TQObject.connect(self, SIGNAL("textChanged(const TQString &)"),
self.changed)
def changed(self, line):
@@ -33,20 +33,20 @@ class CustomEdit(QLineEdit):
self.setText(self.upperLineText)
-class FormDialog(QDialog):
+class FormDialog(TQDialog):
def __init__(self):
- QDialog.__init__(self)
- forenameLabel = QLabel("Forename:", self)
+ TQDialog.__init__(self)
+ forenameLabel = TQLabel("Forename:", self)
forenameEdit = CustomEdit(self)
- surnameLabel = QLabel("Surname:", self)
+ surnameLabel = TQLabel("Surname:", self)
surnameEdit = CustomEdit(self)
- salaryLabel = QLabel("Salary:", self)
- salaryEdit = QLineEdit(self)
- salaryEdit.setAlignment(Qt.AlignRight)
- saveButton = QPushButton("&Save", self)
+ salaryLabel = TQLabel("Salary:", self)
+ salaryEdit = TQLineEdit(self)
+ salaryEdit.setAlignment(TQt.AlignRight)
+ saveButton = TQPushButton("&Save", self)
self.connect(saveButton, SIGNAL("clicked()"), self.save)
- grid = QGridLayout(self)
+ grid = TQGridLayout(self)
grid.addWidget(forenameLabel, 0, 0)
grid.addWidget(forenameEdit, 0, 1)
grid.addWidget(surnameLabel, 1, 0)
@@ -56,17 +56,17 @@ class FormDialog(QDialog):
grid.addWidget(saveButton, 3, 0)
grid.activate()
- self.staffCursor = QSqlCursor("staff")
+ self.staffCursor = TQSqlCursor("staff")
self.staffCursor.setTrimmed("forename", TRUE)
self.staffCursor.setTrimmed("surname", TRUE)
self.idIndex = self.staffCursor.index("id")
self.staffCursor.select(self.idIndex)
self.staffCursor.first()
- self.propMap = QSqlPropertyMap()
+ self.propMap = TQSqlPropertyMap()
self.propMap.insert(forenameEdit.className(), "upperLine")
- self.sqlForm = QSqlForm()
+ self.sqlForm = TQSqlForm()
self.sqlForm.setRecord(self.staffCursor.primeUpdate())
self.sqlForm.installPropertyMap(self.propMap)
self.sqlForm.insert(forenameEdit, "forename")
@@ -82,7 +82,7 @@ class FormDialog(QDialog):
if __name__=='__main__':
- app = QApplication( sys.argv )
+ app = TQApplication( sys.argv )
if createConnection():
formDialog = FormDialog()
diff --git a/examples3/SQL/sqlex.ui b/examples3/SQL/sqlex.ui
index 022fed9..5b9303d 100644
--- a/examples3/SQL/sqlex.ui
+++ b/examples3/SQL/sqlex.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>SqlEx</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>SqlEx</cstring>
</property>
@@ -25,7 +25,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLayoutWidget" row="1" column="0">
+ <widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
<cstring>Layout23</cstring>
</property>
@@ -39,7 +39,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lbl</cstring>
</property>
@@ -47,7 +47,7 @@
<string>Press "Connect" to open a database</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>conBtn</cstring>
</property>
@@ -71,21 +71,21 @@
</widget>
</hbox>
</widget>
- <widget class="QSplitter" row="0" column="0">
+ <widget class="TQSplitter" row="0" column="0">
<property name="name">
<cstring>vsplit</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
- <widget class="QSplitter">
+ <widget class="TQSplitter">
<property name="name">
<cstring>hsplit</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
- <widget class="QListView">
+ <widget class="TQListView">
<column>
<property name="text">
<string>Tables</string>
@@ -110,7 +110,7 @@
</column>
<column>
<property name="text">
- <string>Required</string>
+ <string>Retquired</string>
</property>
<property name="clickable">
<bool>true</bool>
@@ -135,7 +135,7 @@
<enum>LastColumn</enum>
</property>
</widget>
- <widget class="QDataTable">
+ <widget class="TQDataTable">
<property name="name">
<cstring>dt</cstring>
</property>
@@ -144,7 +144,7 @@
</property>
</widget>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>gb</cstring>
</property>
@@ -161,7 +161,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>Layout22</cstring>
</property>
@@ -175,12 +175,12 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QTextEdit">
+ <widget class="TQTextEdit">
<property name="name">
<cstring>te</cstring>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout21</cstring>
</property>
@@ -205,7 +205,7 @@
<enum>Expanding</enum>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>submitBtn</cstring>
</property>
@@ -227,7 +227,7 @@
<string>&amp;Submit</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>clearBtn</cstring>
</property>
@@ -273,15 +273,15 @@
</connection>
<connection>
<sender>lv</sender>
- <signal>returnPressed(QListViewItem*)</signal>
+ <signal>returnPressed(TQListViewItem*)</signal>
<receiver>SqlEx</receiver>
- <slot>showTable(QListViewItem*)</slot>
+ <slot>showTable(TQListViewItem*)</slot>
</connection>
<connection>
<sender>lv</sender>
- <signal>doubleClicked(QListViewItem*)</signal>
+ <signal>doubleClicked(TQListViewItem*)</signal>
<receiver>SqlEx</receiver>
- <slot>showTable(QListViewItem*)</slot>
+ <slot>showTable(TQListViewItem*)</slot>
</connection>
<connection>
<sender>submitBtn</sender>
@@ -296,7 +296,7 @@
<slots>
<slot>init()</slot>
<slot>dbConnect()</slot>
- <slot>showTable( QListViewItem * )</slot>
+ <slot>showTable( TQListViewItem * )</slot>
<slot>execQuery()</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
diff --git a/examples3/SQL/sqlex.ui.h b/examples3/SQL/sqlex.ui.h
index 1acdc5d..07edcd0 100644
--- a/examples3/SQL/sqlex.ui.h
+++ b/examples3/SQL/sqlex.ui.h
@@ -1,7 +1,7 @@
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
-** If you wish to add, delete or rename slots use Qt Designer which will
+** If you wish to add, delete or rename slots use TQt Designer which will
** update this file, preserving your code. Create an init() slot in place of
** a constructor, and a destroy() slot in place of a destructor.
*****************************************************************************/
@@ -10,8 +10,8 @@
void SqlEx::init()
{
self.hsplit.setSizes([250])
-self.hsplit.setResizeMode(self.lv, QSplitter.KeepSize)
-self.vsplit.setResizeMode(self.gb, QSplitter.KeepSize)
+self.hsplit.setResizeMode(self.lv, TQSplitter.KeepSize)
+self.vsplit.setResizeMode(self.gb, TQSplitter.KeepSize)
self.submitBtn.setEnabled(0)
}
@@ -22,7 +22,7 @@ void SqlEx::dbConnect()
}
-void SqlEx::showTable( QListViewItem * )
+void SqlEx::showTable( TQListViewItem * )
{
}
diff --git a/examples3/SQL/sqlsubclass5.py b/examples3/SQL/sqlsubclass5.py
index 137ff93..07cc90a 100755
--- a/examples3/SQL/sqlsubclass5.py
+++ b/examples3/SQL/sqlsubclass5.py
@@ -5,7 +5,7 @@
#**
#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
#**
-#** This file is part of an example program for PyQt. This example
+#** This file is part of an example program for PyTQt. This example
#** program may be used, distributed and modified without limitation.
#**
#*****************************************************************************/
@@ -19,16 +19,16 @@ from dbconnect import createConnection
TRUE = 1
FALSE = 0
-class CustomTable(QDataTable):
+class CustomTable(TQDataTable):
def __init__(self, cursor, autoPopulate = FALSE, parent = None, name = None):
- QDataTable.__init__(self, cursor, autoPopulate, parent, name)
+ TQDataTable.__init__(self, cursor, autoPopulate, parent, name)
def paintField(self, p, field, cr, b):
if not field:
return
fn = str(field.name())
if fn == "pricesid":
- query = QSqlQuery("SELECT name FROM prices WHERE id=%s" %
+ query = TQSqlQuery("SELECT name FROM prices WHERE id=%s" %
field.value().toString())
value = ""
if query.next():
@@ -37,78 +37,78 @@ class CustomTable(QDataTable):
self.fieldAlignment(field), value)
elif fn == "quantity":
p.drawText(2, 2, cr.width()-6, cr.height()-4,
- Qt.AlignRight|Qt.AlignVCenter, field.value().toString())
+ TQt.AlignRight|TQt.AlignVCenter, field.value().toString())
elif fn in ("price", "cost"):
v = field.value().toDouble()
if v < 0:
- p.setPen(QColor("red"))
- value = QString(u"%.2f \u20ac" % v)
+ p.setPen(TQColor("red"))
+ value = TQString(u"%.2f \u20ac" % v)
p.drawText(2, 2, cr.width()-6, cr.height()-4,
- Qt.AlignRight|Qt.AlignVCenter, value)
+ TQt.AlignRight|TQt.AlignVCenter, value)
elif fn == "paiddate":
if field.value().toDate().isNull():
- v = QString("not yet")
- p.setPen(QColor("red"))
+ v = TQString("not yet")
+ p.setPen(TQColor("red"))
else:
- v = field.value().toDate().toString(Qt.LocalDate)
+ v = field.value().toDate().toString(TQt.LocalDate)
p.drawText(2, 2, cr.width()-4, cr.height()-4,
- Qt.AlignHCenter|Qt.AlignVCenter, v)
+ TQt.AlignHCenter|TQt.AlignVCenter, v)
else:
- QDataTable.paintField(self, p, field, cr, b)
+ TQDataTable.paintField(self, p, field, cr, b)
-class InvoiceItemCursor(QSqlCursor):
+class InvoiceItemCursor(TQSqlCursor):
def __init__(self):
- QSqlCursor.__init__(self, "invoiceitem")
+ TQSqlCursor.__init__(self, "invoiceitem")
- productPrice = QSqlFieldInfo("price", QVariant.Double)
+ productPrice = TQSqlFieldInfo("price", TQVariant.Double)
self.append(productPrice)
self.setCalculated(productPrice.name(), TRUE)
- productCost = QSqlFieldInfo("cost", QVariant.Double)
+ productCost = TQSqlFieldInfo("cost", TQVariant.Double)
self.append(productCost)
self.setCalculated(productCost.name(), TRUE)
def calculateField(self, name):
fn = str(name)
if fn == "productname":
- query = QSqlQuery("SELECT name FROM prices WHERE id=%d;" %
+ query = TQSqlQuery("SELECT name FROM prices WHERE id=%d;" %
(self.field("pricesid").value().toInt()))
if query.next():
return query.value(0)
elif fn == "price":
- query = QSqlQuery("SELECT price FROM prices WHERE id=%d;" %
+ query = TQSqlQuery("SELECT price FROM prices WHERE id=%d;" %
(self.field("pricesid").value().toInt()))
if query.next():
return query.value(0)
elif fn == "cost":
- query = QSqlQuery("SELECT price FROM prices WHERE id=%d;" %
+ query = TQSqlQuery("SELECT price FROM prices WHERE id=%d;" %
(self.field("pricesid").value().toInt()))
if query.next():
- return QVariant(query.value(0).toDouble() *
+ return TQVariant(query.value(0).toDouble() *
self.value("quantity").toDouble())
- return QVariant(QString.null)
+ return TQVariant(TQString.null)
def primeInsert(self):
buffer = self.editBuffer()
- buffer.setValue("id", QVariant(0))
- buffer.setValue("paiddate", QVariant(QDate.currentDate()))
- buffer.setValue("quantity", QVariant(1))
+ buffer.setValue("id", TQVariant(0))
+ buffer.setValue("paiddate", TQVariant(TQDate.currentDate()))
+ buffer.setValue("quantity", TQVariant(1))
return buffer
-class ProductPicker(QComboBox):
+class ProductPicker(TQComboBox):
def __init__(self, parent = None, name = None):
- QComboBox.__init__(self, parent, name)
- cur = QSqlCursor("prices")
+ TQComboBox.__init__(self, parent, name)
+ cur = TQSqlCursor("prices")
cur.select(cur.index("id"))
while cur.next():
self.insertItem(cur.value("name").toString(), cur.value("id").toInt())
-class CustomSqlEditorFactory(QSqlEditorFactory):
+class CustomSqlEditorFactory(TQSqlEditorFactory):
def __init__(self):
- QSqlEditorFactory.__init__(self)
+ TQSqlEditorFactory.__init__(self)
def createEditor(self, parent, field):
try:
@@ -116,13 +116,13 @@ class CustomSqlEditorFactory(QSqlEditorFactory):
return ProductPicker(parent)
except AttributeError:
pass
- return QSqlEditorFactory.createEditor(self, parent, field)
+ return TQSqlEditorFactory.createEditor(self, parent, field)
class Table(CustomTable):
def __init__(self):
self.invoiceItemCursor = InvoiceItemCursor()
- QDataTable.__init__(self, self.invoiceItemCursor)
- self.propMap = QSqlPropertyMap()
+ TQDataTable.__init__(self, self.invoiceItemCursor)
+ self.propMap = TQSqlPropertyMap()
self.editorFactory = CustomSqlEditorFactory()
self.propMap.insert("ProductPicker", "pricesid")
self.installPropertyMap(self.propMap)
@@ -141,7 +141,7 @@ class Table(CustomTable):
if __name__=='__main__':
- app = QApplication(sys.argv)
+ app = TQApplication(sys.argv)
if createConnection():
t = Table()
app.setMainWidget(t)
diff --git a/examples3/SQL/sqltable4.py b/examples3/SQL/sqltable4.py
index 8f488d3..001e897 100755
--- a/examples3/SQL/sqltable4.py
+++ b/examples3/SQL/sqltable4.py
@@ -5,7 +5,7 @@
#**
#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
#**
-#** This file is part of an example program for PyQt. This example
+#** This file is part of an example program for PyTQt. This example
#** program may be used, distributed and modified without limitation.
#**
#*****************************************************************************/
@@ -19,9 +19,9 @@ from dbconnect import createConnection
TRUE = 1
FALSE = 0
-class CustomTable(QDataTable):
+class CustomTable(TQDataTable):
def __init__(self, cursor, autoPopulate = FALSE, parent = None, name = None):
- QDataTable.__init__(self, cursor, autoPopulate, parent, name)
+ TQDataTable.__init__(self, cursor, autoPopulate, parent, name)
def paintField(self, p, field, cr, b):
if not field:
@@ -30,13 +30,13 @@ class CustomTable(QDataTable):
if fn in ("salary", "monsalary"):
v = field.value().toDouble()
if v < 0:
- p.setPen(QColor("red"))
- value = QString(u"%.2f \u20ac" % v)
+ p.setPen(TQColor("red"))
+ value = TQString(u"%.2f \u20ac" % v)
#print unicode(value).encode("iso-8859-15")
p.drawText(2, 2, cr.width()-6, cr.height()-4,
- Qt.AlignRight|Qt.AlignVCenter, value)
+ TQt.AlignRight|TQt.AlignVCenter, value)
elif fn == "statusid":
- query = QSqlQuery("SELECT name FROM status WHERE id=%s" %
+ query = TQSqlQuery("SELECT name FROM status WHERE id=%s" %
field.value().toString())
value = ""
if query.next():
@@ -44,21 +44,21 @@ class CustomTable(QDataTable):
p.drawText(2, 2, cr.width()-4, cr.height()-4,
self.fieldAlignment(field), value)
else:
- QDataTable.paintField(self, p, field, cr, b)
+ TQDataTable.paintField(self, p, field, cr, b)
-class StatusPicker(QComboBox):
+class StatusPicker(TQComboBox):
def __init__(self, parent = None, name = None):
- QComboBox.__init__(self, parent, name)
- cur = QSqlCursor("status")
+ TQComboBox.__init__(self, parent, name)
+ cur = TQSqlCursor("status")
cur.select(cur.index("id"))
while cur.next():
self.insertItem(cur.value("name").toString(), cur.value("id").toInt())
-class CustomSqlEditorFactory(QSqlEditorFactory):
+class CustomSqlEditorFactory(TQSqlEditorFactory):
def __init__(self):
- QSqlEditorFactory.__init__(self)
+ TQSqlEditorFactory.__init__(self)
def createEditor(self, parent, field):
try:
@@ -66,28 +66,28 @@ class CustomSqlEditorFactory(QSqlEditorFactory):
return StatusPicker(parent)
except AttributeError:
pass
- return QSqlEditorFactory.createEditor(self, parent, field)
+ return TQSqlEditorFactory.createEditor(self, parent, field)
-class StaffCursor(QSqlCursor):
+class StaffCursor(TQSqlCursor):
def __init__(self):
- QSqlCursor.__init__(self, "staff")
- monSalary = QSqlFieldInfo("monsalary", QVariant.Double)
+ TQSqlCursor.__init__(self, "staff")
+ monSalary = TQSqlFieldInfo("monsalary", TQVariant.Double)
self.append(monSalary)
self.setCalculated(monSalary.name(), TRUE)
def calculateField(self, name):
if str(name) == "monsalary":
- return QVariant(self.value("salary").toDouble() / 12)
- return QVariant(QString.null)
+ return TQVariant(self.value("salary").toDouble() / 12)
+ return TQVariant(TQString.null)
class Table(CustomTable):
def __init__(self):
- #self.staffCursor = QSqlCursor("staff")
+ #self.staffCursor = TQSqlCursor("staff")
self.staffCursor = StaffCursor()
- QDataTable.__init__(self, self.staffCursor)
- self.propMap = QSqlPropertyMap()
+ TQDataTable.__init__(self, self.staffCursor)
+ self.propMap = TQSqlPropertyMap()
self.editorFactory = CustomSqlEditorFactory()
self.propMap.insert("StatusPicker", "statusid")
self.installPropertyMap(self.propMap)
@@ -98,15 +98,15 @@ class Table(CustomTable):
("monsalary","Monthly Salary"),
("statusid", "Status")):
self.addColumn(cn, ch)
- self.order = QStringList("surname")
+ self.order = TQStringList("surname")
self.order.append("forename")
self.setSort(self.order)
self.refresh()
if __name__=='__main__':
- app = QApplication(sys.argv)
- #app.setFont(QFont("Verdana", 11))
+ app = TQApplication(sys.argv)
+ #app.setFont(TQFont("Verdana", 11))
if createConnection():
t = Table()
diff --git a/examples3/SQL/testdb_pg.sql b/examples3/SQL/testdb_pg.sql
index 73a4270..ef0479f 100644
--- a/examples3/SQL/testdb_pg.sql
+++ b/examples3/SQL/testdb_pg.sql
@@ -93,34 +93,34 @@ CREATE TABLE "invoiceitem" (
--
-- TOC Entry ID 2 (OID 17351)
--
--- Name: people_id_seq Type: SEQUENCE Owner: postgres
+-- Name: people_id_seq Type: SETQUENCE Owner: postgres
--
-CREATE SEQUENCE "people_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
+CREATE SETQUENCE "people_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
--
-- TOC Entry ID 4 (OID 17353)
--
--- Name: staff_id_seq Type: SEQUENCE Owner: postgres
+-- Name: staff_id_seq Type: SETQUENCE Owner: postgres
--
-CREATE SEQUENCE "staff_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
+CREATE SETQUENCE "staff_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
--
-- TOC Entry ID 6 (OID 17355)
--
--- Name: creditors_id_seq Type: SEQUENCE Owner: postgres
+-- Name: creditors_id_seq Type: SETQUENCE Owner: postgres
--
-CREATE SEQUENCE "creditors_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
+CREATE SETQUENCE "creditors_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
--
-- TOC Entry ID 8 (OID 17357)
--
--- Name: invoice_id_seq Type: SEQUENCE Owner: postgres
+-- Name: invoice_id_seq Type: SETQUENCE Owner: postgres
--
-CREATE SEQUENCE "invoice_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
+CREATE SETQUENCE "invoice_id_seq" start 1 increment 1 maxvalue 2147483647 minvalue 1 cache 1;
--
-- Data for TOC Entry ID 28 (OID 17332)
@@ -201,7 +201,7 @@ COPY "invoiceitem" FROM stdin;
--
-- TOC Entry ID 3 (OID 17351)
--
--- Name: people_id_seq Type: SEQUENCE SET Owner: postgres
+-- Name: people_id_seq Type: SETQUENCE SET Owner: postgres
--
SELECT setval ('"people_id_seq"', 1, false);
@@ -209,7 +209,7 @@ SELECT setval ('"people_id_seq"', 1, false);
--
-- TOC Entry ID 5 (OID 17353)
--
--- Name: staff_id_seq Type: SEQUENCE SET Owner: postgres
+-- Name: staff_id_seq Type: SETQUENCE SET Owner: postgres
--
SELECT setval ('"staff_id_seq"', 8, true);
@@ -217,7 +217,7 @@ SELECT setval ('"staff_id_seq"', 8, true);
--
-- TOC Entry ID 7 (OID 17355)
--
--- Name: creditors_id_seq Type: SEQUENCE SET Owner: postgres
+-- Name: creditors_id_seq Type: SETQUENCE SET Owner: postgres
--
SELECT setval ('"creditors_id_seq"', 1, false);
@@ -225,7 +225,7 @@ SELECT setval ('"creditors_id_seq"', 1, false);
--
-- TOC Entry ID 9 (OID 17357)
--
--- Name: invoice_id_seq Type: SEQUENCE SET Owner: postgres
+-- Name: invoice_id_seq Type: SETQUENCE SET Owner: postgres
--
SELECT setval ('"invoice_id_seq"', 1, false);
diff --git a/examples3/aclock.py b/examples3/aclock.py
index 38ed36c..9fc773b 100755
--- a/examples3/aclock.py
+++ b/examples3/aclock.py
@@ -3,34 +3,34 @@
import sys
from qt import *
-def QMIN(x, y):
+def TQMIN(x, y):
if y > x: return y
return x
-class AnalogClock(QWidget):
+class AnalogClock(TQWidget):
def __init__(self, *args):
- apply(QWidget.__init__,(self,) + args)
- self.time = QTime.currentTime()
- internalTimer = QTimer(self)
+ apply(TQWidget.__init__,(self,) + args)
+ self.time = TQTime.currentTime()
+ internalTimer = TQTimer(self)
self.connect(internalTimer, SIGNAL("timeout()"), self.timeout)
internalTimer.start(5000)
def timeout(self):
- new_time = QTime.currentTime()
+ new_time = TQTime.currentTime()
if new_time.minute() != self.time.minute():
self.update()
def paintEvent(self, qe):
if not self.isVisible():
return
- self.time = QTime.currentTime()
+ self.time = TQTime.currentTime()
- pts = QPointArray()
- paint = QPainter(self)
+ pts = TQPointArray()
+ paint = TQPainter(self)
paint.setBrush(self.foregroundColor())
- cp = QPoint(self.rect().center())
- d = QMIN(self.width(), self.height())
- matrix = QWMatrix()
+ cp = TQPoint(self.rect().center())
+ d = TQMIN(self.width(), self.height())
+ matrix = TQWMatrix()
matrix.translate(cp.x(), cp.y())
matrix.scale(d/1000.0, d/1000.0)
@@ -53,7 +53,7 @@ class AnalogClock(QWidget):
paint.drawLine(450,0, 500,0)
matrix.rotate(30)
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
clock = AnalogClock()
clock.resize(100,100)
a.setMainWidget(clock)
diff --git a/examples3/addressbook.py b/examples3/addressbook.py
index d7316e3..e151996 100755
--- a/examples3/addressbook.py
+++ b/examples3/addressbook.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-# A port to PyQt of the application example from Qt v2.x.
+# A port to PyTQt of the application example from TQt v2.x.
import sys, string
@@ -76,10 +76,10 @@ fileprint = [
'dd...........ddd'
]
-class ABCentralWidget( QWidget ):
+class ABCentralWidget( TQWidget ):
def __init__( self, *args ):
- apply( QWidget.__init__, (self, ) + args )
- self.mainGrid = QGridLayout( self, 2, 1, 5, 5 )
+ apply( TQWidget.__init__, (self, ) + args )
+ self.mainGrid = TQGridLayout( self, 2, 1, 5, 5 )
self.setupTabWidget()
self.setupListView()
@@ -91,16 +91,16 @@ class ABCentralWidget( QWidget ):
if not self.listView.firstChild():
return
- f = QFile( filename )
+ f = TQFile( filename )
if not f.open( IO_WriteOnly ):
return
- t = QTextStream( f )
+ t = TQTextStream( f )
- #it = QListViewItemIterator( self.listView )
+ #it = TQListViewItemIterator( self.listView )
while not t.eof():
- item = QListViewItem( self.listView )
+ item = TQListViewItem( self.listView )
for i in range (0, 4):
t << item.text( i ) << '\n'
#for it in it.current():
@@ -113,14 +113,14 @@ class ABCentralWidget( QWidget ):
def load( self, filename ):
self.listView.clear()
- f = QFile( filename )
+ f = TQFile( filename )
if not f.open( IO_ReadOnly ):
return
- t = QTextStream( f )
+ t = TQTextStream( f )
while not t.eof():
- item = QListViewItem( self.listView )
+ item = TQListViewItem( self.listView )
for i in range (0, 4):
item.setText( i, t.readLine() )
@@ -128,53 +128,53 @@ class ABCentralWidget( QWidget ):
def setupTabWidget( self ):
- self.tabWidget = QTabWidget( self )
+ self.tabWidget = TQTabWidget( self )
- self.input = QWidget( self.tabWidget )
- self.grid1 = QGridLayout( self.input, 2, 5, 5, 5 )
+ self.input = TQWidget( self.tabWidget )
+ self.grid1 = TQGridLayout( self.input, 2, 5, 5, 5 )
- self.liFirstName = QLabel( 'First &Name', self.input )
+ self.liFirstName = TQLabel( 'First &Name', self.input )
self.liFirstName.resize( self.liFirstName.sizeHint() )
self.grid1.addWidget( self.liFirstName, 0, 0 )
- self.liLastName = QLabel( '&Last Name', self.input )
+ self.liLastName = TQLabel( '&Last Name', self.input )
self.liLastName.resize( self.liLastName.sizeHint() )
self.grid1.addWidget( self.liLastName, 0, 1 )
- self.liAddress = QLabel( '&Address', self.input )
+ self.liAddress = TQLabel( '&Address', self.input )
self.liAddress.resize( self.liAddress.sizeHint() )
self.grid1.addWidget( self.liAddress, 0, 2 )
- self.liEMail = QLabel( '&E-Mail', self.input )
+ self.liEMail = TQLabel( '&E-Mail', self.input )
self.liEMail.resize( self.liEMail.sizeHint() )
self.grid1.addWidget( self.liEMail, 0, 3 )
- self.add = QPushButton( '&Add', self.input )
+ self.add = TQPushButton( '&Add', self.input )
self.add.resize( self.add.sizeHint() )
self.grid1.addWidget( self.add, 0, 4 )
self.connect( self.add, SIGNAL( 'clicked()' ), self.addEntry )
- self.iFirstName = QLineEdit( self.input )
+ self.iFirstName = TQLineEdit( self.input )
self.iFirstName.resize( self.iFirstName.sizeHint() )
self.grid1.addWidget( self.iFirstName, 1, 0 )
self.liFirstName.setBuddy( self.iFirstName )
- self.iLastName = QLineEdit( self.input )
+ self.iLastName = TQLineEdit( self.input )
self.iLastName.resize( self.iLastName.sizeHint() )
self.grid1.addWidget( self.iLastName, 1, 1 )
self.liLastName.setBuddy( self.iLastName )
- self.iAddress = QLineEdit( self.input )
+ self.iAddress = TQLineEdit( self.input )
self.iAddress.resize( self.iAddress.sizeHint() )
self.grid1.addWidget( self.iAddress, 1, 2 )
self.liAddress.setBuddy( self.iAddress )
- self.iEMail = QLineEdit( self.input )
+ self.iEMail = TQLineEdit( self.input )
self.iEMail.resize( self.iEMail.sizeHint() )
self.grid1.addWidget( self.iEMail, 1, 3 )
self.liEMail.setBuddy( self.iEMail )
- self.change = QPushButton( '&Change', self.input )
+ self.change = TQPushButton( '&Change', self.input )
self.change.resize( self.change.sizeHint() )
self.grid1.addWidget( self.change, 1, 4 )
self.connect( self.change, SIGNAL( 'clicked()' ), self.changeEntry )
@@ -183,46 +183,46 @@ class ABCentralWidget( QWidget ):
# --------------------------------------
- self.search = QWidget( self )
- self.grid2 = QGridLayout( self.search, 2, 5, 5, 5 )
+ self.search = TQWidget( self )
+ self.grid2 = TQGridLayout( self.search, 2, 5, 5, 5 )
- self.cFirstName = QCheckBox( 'First &Name', self.search )
+ self.cFirstName = TQCheckBox( 'First &Name', self.search )
self.cFirstName.resize( self.cFirstName.sizeHint() )
self.grid2.addWidget( self.cFirstName, 0, 0 )
self.connect( self.cFirstName, SIGNAL( 'clicked()' ), self.toggleFirstName )
- self.cLastName = QCheckBox( '&Last Name', self.search )
+ self.cLastName = TQCheckBox( '&Last Name', self.search )
self.cLastName.resize( self.cLastName.sizeHint() )
self.grid2.addWidget( self.cLastName, 0, 1 )
self.connect( self.cLastName, SIGNAL( 'clicked()' ), self.toggleLastName )
- self.cAddress = QCheckBox( '&Address', self.search )
+ self.cAddress = TQCheckBox( '&Address', self.search )
self.cAddress.resize( self.cAddress.sizeHint() )
self.grid2.addWidget( self.cAddress, 0, 2 )
self.connect( self.cAddress, SIGNAL( 'clicked()' ), self.toggleAddress )
- self.cEMail = QCheckBox( '&E-Mail', self.search )
+ self.cEMail = TQCheckBox( '&E-Mail', self.search )
self.cEMail.resize( self.cEMail.sizeHint() )
self.grid2.addWidget( self.cEMail, 0, 3 )
self.connect( self.cEMail, SIGNAL( 'clicked()' ), self.toggleEMail )
- self.sFirstName = QLineEdit( self.search )
+ self.sFirstName = TQLineEdit( self.search )
self.sFirstName.resize( self.sFirstName.sizeHint() )
self.grid2.addWidget( self.sFirstName, 1, 0 )
- self.sLastName = QLineEdit( self.search )
+ self.sLastName = TQLineEdit( self.search )
self.sLastName.resize( self.sLastName.sizeHint() )
self.grid2.addWidget( self.sLastName, 1, 1 )
- self.sAddress = QLineEdit( self.search )
+ self.sAddress = TQLineEdit( self.search )
self.sAddress.resize( self.sAddress.sizeHint() )
self.grid2.addWidget( self.sAddress, 1, 2 )
- self.sEMail = QLineEdit( self.search )
+ self.sEMail = TQLineEdit( self.search )
self.sEMail.resize( self.sEMail.sizeHint() )
self.grid2.addWidget( self.sEMail, 1, 3 )
- self.find = QPushButton( '&Find', self.search )
+ self.find = TQPushButton( '&Find', self.search )
self.find.resize( self.find.sizeHint() )
self.grid2.addWidget( self.find, 1, 4 )
self.connect( self.find, SIGNAL( 'clicked()' ), self.findEntries )
@@ -238,15 +238,15 @@ class ABCentralWidget( QWidget ):
self.mainGrid.addWidget( self.tabWidget, 0, 0 )
def setupListView( self ):
- self.listView = QListView( self )
+ self.listView = TQListView( self )
self.listView.addColumn( 'First Name' )
self.listView.addColumn( 'Last Name' )
self.listView.addColumn( 'Address' )
self.listView.addColumn( 'E-Mail' )
- self.listView.setSelectionMode( QListView.Extended )
+ self.listView.setSelectionMode( TQListView.Extended )
- self.connect( self.listView, SIGNAL( 'clicked( QListViewItem* )' ), self.itemSelected )
+ self.connect( self.listView, SIGNAL( 'clicked( TQListViewItem* )' ), self.itemSelected )
self.mainGrid.addWidget( self.listView, 1, 0 )
self.listView.setAllColumnsShowFocus( TRUE )
@@ -255,7 +255,7 @@ class ABCentralWidget( QWidget ):
def addEntry( self ):
if not self.iFirstName.text().isEmpty() or not self.iLastName.text().isEmpty() or \
not self.iAddress.text().isEmpty() or not self.iEMail.text().isEmpty() :
- self.item = QListViewItem( self.listView )
+ self.item = TQListViewItem( self.listView )
self.item.setText( 0, self.iFirstName.text() )
self.item.setText( 1, self.iLastName.text() )
self.item.setText( 2, self.iAddress.text() )
@@ -332,7 +332,7 @@ class ABCentralWidget( QWidget ):
self.listView.clearSelection()
return
- it = QListViewItemIterator( self.listView )
+ it = TQListViewItemIterator( self.listView )
for it in it.current() :
select = TRUE
@@ -369,38 +369,38 @@ class ABCentralWidget( QWidget ):
it.current().repaint()
-class ABMainWindow(QMainWindow):
+class ABMainWindow(TQMainWindow):
def __init__( self ):
- QMainWindow.__init__( self, None, 'example addressbook application' )
+ TQMainWindow.__init__( self, None, 'example addressbook application' )
- self.filename = QString.null
+ self.filename = TQString.null
self.setupMenuBar()
self.setupFileTools()
self.setupStatusBar()
self.setupCentralWidget()
def setupMenuBar( self ):
- self.file = QPopupMenu( self )
+ self.file = TQPopupMenu( self )
self.menuBar().insertItem( '&File', self.file )
- openIcon = QIconSet( QPixmap( fileopen ) )
- self.file.insertItem( 'New', self.fileNew, Qt.CTRL + Qt.Key_N )
- self.file.insertItem( openIcon, 'Open', self.fileOpen, Qt.CTRL + Qt.Key_O )
+ openIcon = TQIconSet( TQPixmap( fileopen ) )
+ self.file.insertItem( 'New', self.fileNew, TQt.CTRL + TQt.Key_N )
+ self.file.insertItem( openIcon, 'Open', self.fileOpen, TQt.CTRL + TQt.Key_O )
self.file.insertSeparator()
- saveIcon = QIconSet( QPixmap( filesave ) )
- self.file.insertItem( saveIcon, 'Save', self.fileSave, Qt.CTRL + Qt.Key_S )
+ saveIcon = TQIconSet( TQPixmap( filesave ) )
+ self.file.insertItem( saveIcon, 'Save', self.fileSave, TQt.CTRL + TQt.Key_S )
self.file.insertItem( 'Save As...', self.fileSaveAs )
self.file.insertSeparator()
- printIcon = QIconSet( QPixmap( fileprint ) )
- self.file.insertItem( printIcon, 'Print...', self.filePrint, Qt.CTRL + Qt.Key_P )
+ printIcon = TQIconSet( TQPixmap( fileprint ) )
+ self.file.insertItem( printIcon, 'Print...', self.filePrint, TQt.CTRL + TQt.Key_P )
self.file.insertSeparator()
- #self.file.insertItem( 'Close', self.closeWindow, Qt.CTRL + Qt.Key_W )
- self.file.insertItem('Close', self, SLOT('close()'), Qt.CTRL+Qt.Key_W)
- self.file.insertItem( 'Quit', qApp, SLOT( 'quit()' ), Qt.CTRL + Qt.Key_Q )
+ #self.file.insertItem( 'Close', self.closeWindow, TQt.CTRL + TQt.Key_W )
+ self.file.insertItem('Close', self, SLOT('close()'), TQt.CTRL+TQt.Key_W)
+ self.file.insertItem( 'Quit', qApp, SLOT( 'quit()' ), TQt.CTRL + TQt.Key_Q )
def setupFileTools( self ):
pass
- #self.fileTools = QToolBar( self, 'file operations' )
+ #self.fileTools = TQToolBar( self, 'file operations' )
def setupStatusBar( self ):
self.statusBar().message( "Ready", 2000 )
@@ -418,7 +418,7 @@ class ABMainWindow(QMainWindow):
pass
def fileOpen( self ):
- fn = QFileDialog.getOpenFileName( QString.null, QString.null, self )
+ fn = TQFileDialog.getOpenFileName( TQString.null, TQString.null, self )
if not fn.isEmpty():
self.filename = fn
self.view.load( self.filename )
@@ -431,7 +431,7 @@ class ABMainWindow(QMainWindow):
self.view.save( self.filename )
def fileSaveAs( self ):
- fn = QFileDialog.getSaveFileName( QString.null, QString.null, self )
+ fn = TQFileDialog.getSaveFileName( TQString.null, TQString.null, self )
if not fn.isEmpty():
self.filename = fn
self.fileSave
@@ -440,7 +440,7 @@ class ABMainWindow(QMainWindow):
pass
-a = QApplication( sys.argv )
+a = TQApplication( sys.argv )
mw = ABMainWindow()
#mw.setupMenuBar()
diff --git a/examples3/application.py b/examples3/application.py
index f5c027d..c0224f3 100755
--- a/examples3/application.py
+++ b/examples3/application.py
@@ -94,40 +94,40 @@ You can also select the <b>Print</b> command from the <b>File</b> menu.'''
editorList = []
-class ApplicationWindow(QMainWindow):
+class ApplicationWindow(TQMainWindow):
def __init__(self):
- QMainWindow.__init__(self,None,'example application main window',Qt.WDestructiveClose)
+ TQMainWindow.__init__(self,None,'example application main window',TQt.WDestructiveClose)
- self.filename = QString.null
- self.printer = QPrinter()
+ self.filename = TQString.null
+ self.printer = TQPrinter()
- self.fileTools = QToolBar(self,'file operations')
+ self.fileTools = TQToolBar(self,'file operations')
- openIcon = QPixmap(fileopen)
- self.fileOpen = QToolButton(QIconSet(openIcon),'Open File',QString.null,self.load,self.fileTools,'open file')
+ openIcon = TQPixmap(fileopen)
+ self.fileOpen = TQToolButton(TQIconSet(openIcon),'Open File',TQString.null,self.load,self.fileTools,'open file')
- saveIcon = QPixmap(filesave)
- self.fileSave = QToolButton(QIconSet(saveIcon),'Save File',QString.null,self.save,self.fileTools,'save file')
+ saveIcon = TQPixmap(filesave)
+ self.fileSave = TQToolButton(TQIconSet(saveIcon),'Save File',TQString.null,self.save,self.fileTools,'save file')
- printIcon = QPixmap(fileprint)
- self.filePrint = QToolButton(QIconSet(printIcon),'Print File',QString.null,self.printDoc,self.fileTools,'print file')
+ printIcon = TQPixmap(fileprint)
+ self.filePrint = TQToolButton(TQIconSet(printIcon),'Print File',TQString.null,self.printDoc,self.fileTools,'print file')
- QWhatsThis.whatsThisButton(self.fileTools)
+ TQWhatsThis.whatsThisButton(self.fileTools)
- QWhatsThis.add(self.fileOpen,fileOpenText)
- QMimeSourceFactory.defaultFactory().setPixmap('fileopen',openIcon)
- QWhatsThis.add(self.fileSave,fileSaveText)
- QWhatsThis.add(self.filePrint,filePrintText)
+ TQWhatsThis.add(self.fileOpen,fileOpenText)
+ TQMimeSourceFactory.defaultFactory().setPixmap('fileopen',openIcon)
+ TQWhatsThis.add(self.fileSave,fileSaveText)
+ TQWhatsThis.add(self.filePrint,filePrintText)
- self.file = QPopupMenu(self)
+ self.file = TQPopupMenu(self)
self.menuBar().insertItem('&File',self.file)
- self.file.insertItem('&New',self.newDoc,Qt.CTRL + Qt.Key_N)
+ self.file.insertItem('&New',self.newDoc,TQt.CTRL + TQt.Key_N)
- id = self.file.insertItem(QIconSet(openIcon),'&Open',self.load,Qt.CTRL + Qt.Key_O)
+ id = self.file.insertItem(TQIconSet(openIcon),'&Open',self.load,TQt.CTRL + TQt.Key_O)
self.file.setWhatsThis(id,fileOpenText)
- id = self.file.insertItem(QIconSet(saveIcon),'&Save',self.save,Qt.CTRL + Qt.Key_S)
+ id = self.file.insertItem(TQIconSet(saveIcon),'&Save',self.save,TQt.CTRL + TQt.Key_S)
self.file.setWhatsThis(id,fileSaveText)
id = self.file.insertItem('Save &as',self.saveAs)
@@ -135,22 +135,22 @@ class ApplicationWindow(QMainWindow):
self.file.insertSeparator()
- id = self.file.insertItem(QIconSet(printIcon),'&Print',self.printDoc,Qt.CTRL + Qt.Key_P)
+ id = self.file.insertItem(TQIconSet(printIcon),'&Print',self.printDoc,TQt.CTRL + TQt.Key_P)
self.file.setWhatsThis(id,filePrintText)
self.file.insertSeparator()
- self.file.insertItem('&Close',self,SLOT('close()'),Qt.CTRL + Qt.Key_W)
- self.file.insertItem('&Quit',qApp,SLOT('closeAllWindows()'),Qt.CTRL + Qt.Key_Q)
+ self.file.insertItem('&Close',self,SLOT('close()'),TQt.CTRL + TQt.Key_W)
+ self.file.insertItem('&Quit',qApp,SLOT('closeAllWindows()'),TQt.CTRL + TQt.Key_Q)
- self.help = QPopupMenu(self)
+ self.help = TQPopupMenu(self)
self.menuBar().insertSeparator()
self.menuBar().insertItem('&Help',self.help)
- self.help.insertItem('&About',self.about,Qt.Key_F1)
- self.help.insertItem('About &Qt',self.aboutQt)
+ self.help.insertItem('&About',self.about,TQt.Key_F1)
+ self.help.insertItem('About &TQt',self.aboutTQt)
- self.e = QMultiLineEdit(self,'editor')
+ self.e = TQMultiLineEdit(self,'editor')
self.e.setFocus()
self.setCentralWidget(self.e)
@@ -163,7 +163,7 @@ class ApplicationWindow(QMainWindow):
editorList.append(ed)
def load(self):
- fn = QFileDialog.getOpenFileName(QString.null,QString.null,self)
+ fn = TQFileDialog.getOpenFileName(TQString.null,TQString.null,self)
if fn.isEmpty():
self.statusBar().message('Loading aborted',2000)
return
@@ -208,7 +208,7 @@ class ApplicationWindow(QMainWindow):
self.statusBar().message('File %s saved' % (self.filename),2000)
def saveAs(self):
- fn = QFileDialog.getSaveFileName(QString.null,QString.null,self)
+ fn = TQFileDialog.getSaveFileName(TQString.null,TQString.null,self)
if not fn.isEmpty():
self.filename = fn
self.save()
@@ -222,12 +222,12 @@ class ApplicationWindow(QMainWindow):
if self.printer.setup(self):
self.statusBar().message('Printing...')
- p = QPainter()
+ p = TQPainter()
p.begin(self.printer)
p.setFont(self.e.font())
yPos = 0
fm = p.fontMetrics()
- metrics = QPaintDeviceMetrics(self.printer)
+ metrics = TQPaintDeviceMetrics(self.printer)
for i in range(self.e.numLines):
if Margin + yPos > metrics.height() - Margin:
@@ -236,7 +236,7 @@ class ApplicationWindow(QMainWindow):
self.printer.newPage()
yPos = 0
- p.drawText(Margin,Margin + yPos,metrics.width(),fm.lineSpacing(),Qt.ExpandTabs | Qt.DontClip,self.e.textLine(i))
+ p.drawText(Margin,Margin + yPos,metrics.width(),fm.lineSpacing(),TQt.ExpandTabs | TQt.DontClip,self.e.textLine(i))
yPos = yPos + fm.lineSpacing()
p.end()
@@ -249,7 +249,7 @@ class ApplicationWindow(QMainWindow):
ce.accept()
return
- rc = QMessageBox.information(self,'Qt Application Example',
+ rc = TQMessageBox.information(self,'TQt Application Example',
'The document has been changed since the last save.',
'Save Now','Cancel','Leave Anyway',0,1)
@@ -262,14 +262,14 @@ class ApplicationWindow(QMainWindow):
ce.ignore()
def about(self):
- QMessageBox.about(self,'Qt Application Example',
- 'This example demonstrates simple use of QMainWindow,\nQMenuBar and QToolBar.')
+ TQMessageBox.about(self,'TQt Application Example',
+ 'This example demonstrates simple use of TQMainWindow,\nTQMenuBar and TQToolBar.')
- def aboutQt(self):
- QMessageBox.aboutQt(self,'Qt Application Example')
+ def aboutTQt(self):
+ TQMessageBox.aboutTQt(self,'TQt Application Example')
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
mw = ApplicationWindow()
mw.setCaption('Document 1')
mw.show()
diff --git a/examples3/biff.py b/examples3/biff.py
index ee5bfe3..1758a7e 100755
--- a/examples3/biff.py
+++ b/examples3/biff.py
@@ -5,7 +5,7 @@ from qt import *
if QT_VERSION < 0x030100:
- print "This example requires Qt v3.1.0 or later."
+ print "This example retquires TQt v3.1.0 or later."
sys.exit(1)
@@ -122,12 +122,12 @@ nomail_bmp_data = [
"++++++++++++++++++++++++++++++++++++++++++++++++"
]
-class Biff(QWidget):
+class Biff(TQWidget):
def __init__(self):
- QWidget.__init__(self, None, "Biff - example application")
+ TQWidget.__init__(self, None, "Biff - example application")
mail = os.getenv("MAIL")
- fi = QFileInfo(mail);
+ fi = TQFileInfo(mail);
if not fi.exists():
s = "/var/spool/mail/"+os.getenv("USER")
fi.setFile(s)
@@ -140,14 +140,14 @@ class Biff(QWidget):
self.setMaximumSize(48, 48)
self.resize(48, 48)
- self.hasNewMail = QPixmap(hasmail_bmp_data)
- self.noNewMail = QPixmap(nomail_bmp_data)
+ self.hasNewMail = TQPixmap(hasmail_bmp_data)
+ self.noNewMail = TQPixmap(nomail_bmp_data)
self.gotMail = FALSE
self.lastModified = fi.lastModified()
def timerEvent(self, te):
- fi = QFileInfo(self.mailbox)
+ fi = TQFileInfo(self.mailbox)
newState = ( fi.lastModified().toTime_t() != self.lastModified.toTime_t() and fi.lastModified().toTime_t() > fi.lastRead().toTime_t())
if newState != self.gotMail:
if self.gotMail == TRUE:
@@ -162,11 +162,11 @@ class Biff(QWidget):
bitBlt(self, 0, 0, self.noNewMail)
def mousePressEvent(self, me):
- fi = QFileInfo(self.mailbox)
+ fi = TQFileInfo(self.mailbox)
lastModified = fi.lastModified()
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
b = Biff()
a.setMainWidget(b)
b.show()
diff --git a/examples3/bigtable.py b/examples3/bigtable.py
index da17619..61fcb71 100755
--- a/examples3/bigtable.py
+++ b/examples3/bigtable.py
@@ -5,7 +5,7 @@
#**
#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
#**
-#** This file is part of an example program for PyQt. This example
+#** This file is part of an example program for PyTQt. This example
#** program may be used, distributed and modified without limitation.
#**
#*****************************************************************************/
@@ -21,9 +21,9 @@ FALSE = 0
numRows = 1000000
numCols = 1000000
-class MyTable(QTable):
+class MyTable(TQTable):
def __init__(self, r, c):
- QTable.__init__(self, r, c)
+ TQTable.__init__(self, r, c)
self.items = {}
self.widgets = {}
self.setCaption("This is a big table with 1.000.000x1.000.000 cells...")
@@ -64,7 +64,7 @@ class MyTable(QTable):
if __name__ == '__main__':
- app = QApplication(sys.argv)
+ app = TQApplication(sys.argv)
table = MyTable(numRows, numCols)
app.setMainWidget(table)
diff --git a/examples3/buttongroups.py b/examples3/buttongroups.py
index c998a88..65b8a96 100755
--- a/examples3/buttongroups.py
+++ b/examples3/buttongroups.py
@@ -4,7 +4,7 @@
#**
#** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
#**
-#** This file is part of an example program for Qt. This example
+#** This file is part of an example program for TQt. This example
#** program may be used, distributed and modified without limitation.
#**
#*****************************************************************************/
@@ -19,58 +19,58 @@ FALSE = 0
# Creates all child widgets of the ButtonGroups window
##
-class ButtonsGroups( QWidget ):
+class ButtonsGroups( TQWidget ):
def __init__( self, *args ):
- apply( QWidget.__init__, (self,) + args )
+ apply( TQWidget.__init__, (self,) + args )
# Create Widgets which allow easy layouting
- self.vbox = QVBoxLayout( self, 11, 6 )
- self.box1 = QHBoxLayout( self.vbox )
- self.box2 = QHBoxLayout( self.vbox )
+ self.vbox = TQVBoxLayout( self, 11, 6 )
+ self.box1 = TQHBoxLayout( self.vbox )
+ self.box2 = TQHBoxLayout( self.vbox )
# ------- first group
# Create an exclusive button group
- self.grp1 = QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 1 (exclusive)", self )
+ self.grp1 = TQButtonGroup( 1, TQGroupBox.Horizontal, "Button Group 1 (exclusive)", self )
self.box1.addWidget( self.grp1 )
self.grp1.setExclusive( TRUE )
# insert 3 radiobuttons
- self.rb11 = QRadioButton( "&Radiobutton 1", self.grp1 )
+ self.rb11 = TQRadioButton( "&Radiobutton 1", self.grp1 )
self.rb11.setChecked( TRUE )
- QRadioButton( "R&adiobutton 2", self.grp1 )
- QRadioButton( "Ra&diobutton 3", self.grp1 )
+ TQRadioButton( "R&adiobutton 2", self.grp1 )
+ TQRadioButton( "Ra&diobutton 3", self.grp1 )
# ------- second group
# Create a non-exclusive buttongroup
- self.grp2 = QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 2 (non-exclusive)", self )
+ self.grp2 = TQButtonGroup( 1, TQGroupBox.Horizontal, "Button Group 2 (non-exclusive)", self )
self.box1.addWidget( self.grp2 )
self.grp2.setExclusive( FALSE )
# insert 3 checkboxes
- QCheckBox( "&Checkbox 1", self.grp2 )
- self.cb12 = QCheckBox( "C&heckbox 2", self.grp2 )
+ TQCheckBox( "&Checkbox 1", self.grp2 )
+ self.cb12 = TQCheckBox( "C&heckbox 2", self.grp2 )
self.cb12.setChecked( TRUE )
- self.cb13 = QCheckBox( "Triple &State Button", self.grp2 )
+ self.cb13 = TQCheckBox( "Triple &State Button", self.grp2 )
self.cb13.setTristate( TRUE )
self.cb13.setChecked( TRUE )
# ------------ third group
# create a buttongroup which is exclusive for radiobuttons and non-exclusive for all other buttons
- self.grp3 = QButtonGroup( 1, QGroupBox.Horizontal, "Button Group 3 (Radiobutton-exclusive)", self )
+ self.grp3 = TQButtonGroup( 1, TQGroupBox.Horizontal, "Button Group 3 (Radiobutton-exclusive)", self )
self.box2.addWidget( self.grp3 )
self.grp3.setRadioButtonExclusive( TRUE )
# insert three radiobuttons
- self.rb21 = QRadioButton( "Rad&iobutton 1", self.grp3 )
- self.rb22 = QRadioButton( "Radi&obutton 2", self.grp3 )
- self.rb23 = QRadioButton( "Radio&button 3", self.grp3 )
+ self.rb21 = TQRadioButton( "Rad&iobutton 1", self.grp3 )
+ self.rb22 = TQRadioButton( "Radi&obutton 2", self.grp3 )
+ self.rb23 = TQRadioButton( "Radio&button 3", self.grp3 )
self.rb23.setChecked( TRUE )
# insert a checkbox...
- self.state = QCheckBox( "E&nable Radiobuttons", self.grp3 )
+ self.state = TQCheckBox( "E&nable Radiobuttons", self.grp3 )
self.state.setChecked( TRUE )
# ...and connect its SIGNAL clicked() with the SLOT slotChangeGrp3State()
self.connect( self.state, SIGNAL( "clicked()" ), self.slotChangeGrp3State )
@@ -78,24 +78,24 @@ class ButtonsGroups( QWidget ):
# ------------ fourth group
# create a groupbox which layouts its childs in a columns
- self.grp4 = QButtonGroup( 1, QGroupBox.Horizontal, "Groupbox with normal buttons", self )
+ self.grp4 = TQButtonGroup( 1, TQGroupBox.Horizontal, "Groupbox with normal buttons", self )
self.box2.addWidget( self.grp4 )
# insert two pushbuttons...
- QPushButton( "&Push Button", self.grp4 )
- self.tb2 = QPushButton( "&Toggle Button", self.grp4 )
+ TQPushButton( "&Push Button", self.grp4 )
+ self.tb2 = TQPushButton( "&Toggle Button", self.grp4 )
# ... and make the second one a toggle button
self.tb2.setToggleButton( TRUE )
self.tb2.setOn( TRUE )
# ... and make the third one a flat button
- self.tb3 = QPushButton( "&Flat Button", self.grp4 )
+ self.tb3 = TQPushButton( "&Flat Button", self.grp4 )
self.tb3.setFlat( TRUE )
# .. and the fourth a button with a menu
- self.tb4 = QPushButton( "Popup Button", self.grp4 )
- menu = QPopupMenu(self.tb4)
+ self.tb4 = TQPushButton( "Popup Button", self.grp4 )
+ menu = TQPopupMenu(self.tb4)
menu.insertItem("Item1", 0)
menu.insertItem("Item2", 0)
menu.insertItem("Item3", 0)
@@ -114,7 +114,7 @@ class ButtonsGroups( QWidget ):
## main program
-a = QApplication( sys.argv )
+a = TQApplication( sys.argv )
buttonsgroups = ButtonsGroups()
buttonsgroups.resize( 500, 250 )
diff --git a/examples3/canvas/butterfly.png b/examples3/canvas/butterfly.png
index d8912d2..5d82201 100644
--- a/examples3/canvas/butterfly.png
+++ b/examples3/canvas/butterfly.png
Binary files differ
diff --git a/examples3/canvas/canvas.py b/examples3/canvas/canvas.py
index 178a6e6..7d36592 100755
--- a/examples3/canvas/canvas.py
+++ b/examples3/canvas/canvas.py
@@ -8,22 +8,22 @@ import random
True = 1
False = 0
-butterfly_fn = QString.null
+butterfly_fn = TQString.null
butterflyimg = []
-logo_fn = QString.null
+logo_fn = TQString.null
logoimg = []
bouncy_logo = None
views = []
-class ImageItem(QCanvasRectangle):
+class ImageItem(TQCanvasRectangle):
def __init__(self,img,canvas):
- QCanvasRectangle.__init__(self,canvas)
+ TQCanvasRectangle.__init__(self,canvas)
self.imageRTTI=984376
self.image=img
- self.pixmap=QPixmap()
+ self.pixmap=TQPixmap()
self.setSize(self.image.width(), self.image.height())
- self.pixmap.convertFromImage(self.image, Qt.OrderedAlphaDither);
+ self.pixmap.convertFromImage(self.image, TQt.OrderedAlphaDither);
def rtti(self):
return self.imageRTTI
@@ -40,13 +40,13 @@ class ImageItem(QCanvasRectangle):
p.drawPixmap( self.x(), self.y(), self.pixmap )
-class NodeItem(QCanvasEllipse):
+class NodeItem(TQCanvasEllipse):
def __init__(self,canvas):
- QCanvasEllipse.__init__(self,6,6,canvas)
+ TQCanvasEllipse.__init__(self,6,6,canvas)
self.__inList=[]
self.__outList=[]
- self.setPen(QPen(Qt.black))
- self.setBrush(QBrush(Qt.red))
+ self.setPen(TQPen(TQt.black))
+ self.setBrush(TQBrush(TQt.red))
self.setZ(128)
def addInEdge(self,edge):
@@ -56,19 +56,19 @@ class NodeItem(QCanvasEllipse):
self.__outList.append(edge)
def moveBy(self,dx,dy):
- QCanvasEllipse.moveBy(self,dx,dy)
+ TQCanvasEllipse.moveBy(self,dx,dy)
for each_edge in self.__inList:
each_edge.setToPoint( int(self.x()), int(self.y()) )
for each_edge in self.__outList:
each_edge.setFromPoint( int(self.x()), int(self.y()) )
-class EdgeItem(QCanvasLine):
+class EdgeItem(TQCanvasLine):
__c=0
def __init__(self,fromNode, toNode,canvas):
- QCanvasLine.__init__(self,canvas)
+ TQCanvasLine.__init__(self,canvas)
self.__c=self.__c+1
- self.setPen(QPen(Qt.black))
- self.setBrush(QBrush(Qt.red))
+ self.setPen(TQPen(TQt.black))
+ self.setBrush(TQBrush(TQt.red))
fromNode.addOutEdge(self)
toNode.addInEdge(self)
self.setPoints(int(fromNode.x()),int(fromNode.y()), int(toNode.x()), int(toNode.y()))
@@ -87,15 +87,15 @@ class EdgeItem(QCanvasLine):
pass
-class FigureEditor(QCanvasView):
+class FigureEditor(TQCanvasView):
def __init__(self,c,parent,name,f):
- QCanvasView.__init__(self,c,parent,name,f)
+ TQCanvasView.__init__(self,c,parent,name,f)
self.__moving=0
self.__moving_start= 0
- def contentsMousePressEvent(self,e): # QMouseEvent e
+ def contentsMousePressEvent(self,e): # TQMouseEvent e
point = self.inverseWorldMatrix().map(e.pos())
- ilist = self.canvas().collisions(point) #QCanvasItemList ilist
+ ilist = self.canvas().collisions(point) #TQCanvasItemList ilist
for each_item in ilist:
if each_item.rtti()==984376:
if not each_item.hit(point):
@@ -121,14 +121,14 @@ class FigureEditor(QCanvasView):
self.canvas().update()
-class BouncyLogo(QCanvasSprite):
+class BouncyLogo(TQCanvasSprite):
def __init__(self,canvas):
# Make sure the logo exists.
global bouncy_logo
if bouncy_logo is None:
- bouncy_logo=QCanvasPixmapArray("qt-trans.xpm")
+ bouncy_logo=TQCanvasPixmapArray("qt-trans.xpm")
- QCanvasSprite.__init__(self,None,canvas)
+ TQCanvasSprite.__init__(self,None,canvas)
self.setSequence(bouncy_logo)
self.setAnimated(True)
self.initPos()
@@ -194,65 +194,65 @@ class BouncyLogo(QCanvasSprite):
self.setVelocity(vx,vy)
elif stage==1:
- QCanvasItem.advance(self,stage)
+ TQCanvasItem.advance(self,stage)
-class Main (QMainWindow):
+class Main (TQMainWindow):
def __init__(self,c,parent,name,f=0):
- QMainWindow.__init__(self,parent,name,f)
+ TQMainWindow.__init__(self,parent,name,f)
self.editor=FigureEditor(c,self,name,f)
- self.printer=QPrinter()
+ self.printer=TQPrinter()
self.dbf_id=0
self.canvas=c
self.mainCount=0
- file=QPopupMenu(self.menuBar())
- file.insertItem("&Fill canvas", self.init, Qt.CTRL+Qt.Key_F)
- file.insertItem("&Erase canvas", self.clear, Qt.CTRL+Qt.Key_E)
- file.insertItem("&New view", self.newView, Qt.CTRL+Qt.Key_N)
+ file=TQPopupMenu(self.menuBar())
+ file.insertItem("&Fill canvas", self.init, TQt.CTRL+TQt.Key_F)
+ file.insertItem("&Erase canvas", self.clear, TQt.CTRL+TQt.Key_E)
+ file.insertItem("&New view", self.newView, TQt.CTRL+TQt.Key_N)
file.insertSeparator();
- file.insertItem("&Print", self._print, Qt.CTRL+Qt.Key_P)
+ file.insertItem("&Print", self._print, TQt.CTRL+TQt.Key_P)
file.insertSeparator()
- file.insertItem("E&xit", qApp, SLOT("quit()"), Qt.CTRL+Qt.Key_Q)
+ file.insertItem("E&xit", qApp, SLOT("quit()"), TQt.CTRL+TQt.Key_Q)
self.menuBar().insertItem("&File", file)
- edit = QPopupMenu(self.menuBar() )
- edit.insertItem("Add &Circle", self.addCircle, Qt.ALT+Qt.Key_C)
- edit.insertItem("Add &Hexagon", self.addHexagon, Qt.ALT+Qt.Key_H)
- edit.insertItem("Add &Polygon", self.addPolygon, Qt.ALT+Qt.Key_P)
- edit.insertItem("Add Spl&ine", self.addSpline, Qt.ALT+Qt.Key_I)
- edit.insertItem("Add &Text", self.addText, Qt.ALT+Qt.Key_T)
- edit.insertItem("Add &Line", self.addLine, Qt.ALT+Qt.Key_L)
- edit.insertItem("Add &Rectangle", self.addRectangle, Qt.ALT+Qt.Key_R)
- edit.insertItem("Add &Sprite", self.addSprite, Qt.ALT+Qt.Key_S)
- edit.insertItem("Create &Mesh", self.addMesh, Qt.ALT+Qt.Key_M )
- edit.insertItem("Add &Alpha-blended image", self.addButterfly, Qt.ALT+Qt.Key_A)
+ edit = TQPopupMenu(self.menuBar() )
+ edit.insertItem("Add &Circle", self.addCircle, TQt.ALT+TQt.Key_C)
+ edit.insertItem("Add &Hexagon", self.addHexagon, TQt.ALT+TQt.Key_H)
+ edit.insertItem("Add &Polygon", self.addPolygon, TQt.ALT+TQt.Key_P)
+ edit.insertItem("Add Spl&ine", self.addSpline, TQt.ALT+TQt.Key_I)
+ edit.insertItem("Add &Text", self.addText, TQt.ALT+TQt.Key_T)
+ edit.insertItem("Add &Line", self.addLine, TQt.ALT+TQt.Key_L)
+ edit.insertItem("Add &Rectangle", self.addRectangle, TQt.ALT+TQt.Key_R)
+ edit.insertItem("Add &Sprite", self.addSprite, TQt.ALT+TQt.Key_S)
+ edit.insertItem("Create &Mesh", self.addMesh, TQt.ALT+TQt.Key_M )
+ edit.insertItem("Add &Alpha-blended image", self.addButterfly, TQt.ALT+TQt.Key_A)
self.menuBar().insertItem("&Edit", edit)
- view = QPopupMenu(self.menuBar() );
- view.insertItem("&Enlarge", self.enlarge, Qt.SHIFT+Qt.CTRL+Qt.Key_Plus);
- view.insertItem("Shr&ink", self.shrink, Qt.SHIFT+Qt.CTRL+Qt.Key_Minus);
+ view = TQPopupMenu(self.menuBar() );
+ view.insertItem("&Enlarge", self.enlarge, TQt.SHIFT+TQt.CTRL+TQt.Key_Plus);
+ view.insertItem("Shr&ink", self.shrink, TQt.SHIFT+TQt.CTRL+TQt.Key_Minus);
view.insertSeparator();
- view.insertItem("&Rotate clockwise", self.rotateClockwise, Qt.CTRL+Qt.Key_PageDown);
- view.insertItem("Rotate &counterclockwise", self.rotateCounterClockwise, Qt.CTRL+Qt.Key_PageUp);
- view.insertItem("&Zoom in", self.zoomIn, Qt.CTRL+Qt.Key_Plus);
- view.insertItem("Zoom &out", self.zoomOut, Qt.CTRL+Qt.Key_Minus);
- view.insertItem("Translate left", self.moveL, Qt.CTRL+Qt.Key_Left);
- view.insertItem("Translate right", self.moveR, Qt.CTRL+Qt.Key_Right);
- view.insertItem("Translate up", self.moveU, Qt.CTRL+Qt.Key_Up);
- view.insertItem("Translate down", self.moveD, Qt.CTRL+Qt.Key_Down);
- view.insertItem("&Mirror", self.mirror, Qt.CTRL+Qt.Key_Home);
+ view.insertItem("&Rotate clockwise", self.rotateClockwise, TQt.CTRL+TQt.Key_PageDown);
+ view.insertItem("Rotate &counterclockwise", self.rotateCounterClockwise, TQt.CTRL+TQt.Key_PageUp);
+ view.insertItem("&Zoom in", self.zoomIn, TQt.CTRL+TQt.Key_Plus);
+ view.insertItem("Zoom &out", self.zoomOut, TQt.CTRL+TQt.Key_Minus);
+ view.insertItem("Translate left", self.moveL, TQt.CTRL+TQt.Key_Left);
+ view.insertItem("Translate right", self.moveR, TQt.CTRL+TQt.Key_Right);
+ view.insertItem("Translate up", self.moveU, TQt.CTRL+TQt.Key_Up);
+ view.insertItem("Translate down", self.moveD, TQt.CTRL+TQt.Key_Down);
+ view.insertItem("&Mirror", self.mirror, TQt.CTRL+TQt.Key_Home);
self.menuBar().insertItem("&View", view)
- self.options = QPopupMenu( self.menuBar() );
+ self.options = TQPopupMenu( self.menuBar() );
self.dbf_id = self.options.insertItem("Double buffer", self.toggleDoubleBuffer)
self.options.setItemChecked(self.dbf_id, True)
self.menuBar().insertItem("&Options",self.options)
self.menuBar().insertSeparator();
- help = QPopupMenu( self.menuBar() )
- help.insertItem("&About", self.help, Qt.Key_F1)
- help.insertItem("&About Qt", self.aboutQt, Qt.Key_F2)
+ help = TQPopupMenu( self.menuBar() )
+ help.insertItem("&About", self.help, TQt.Key_F1)
+ help.insertItem("&About TQt", self.aboutTQt, TQt.Key_F2)
help.setItemChecked(self.dbf_id, True)
self.menuBar().insertItem("&Help",help)
@@ -279,7 +279,7 @@ class Main (QMainWindow):
self.addLogo()
def newView(self):
- m=Main(self.canvas,None,"new windiw",Qt.WDestructiveClose)
+ m=Main(self.canvas,None,"new windiw",TQt.WDestructiveClose)
qApp.setMainWidget(m)
m.show()
qApp.setMainWidget(None)
@@ -289,10 +289,10 @@ class Main (QMainWindow):
self.editor.clear()
def help(self):
- QMessageBox.information(None, "PyQt Canvas Example",
- "<h3>The PyQt QCanvas classes example</h3><hr>"
- "<p>This is the PyQt implementation of "
- "Qt canvas example.</p> by Sadi Kose "
+ TQMessageBox.information(None, "PyTQt Canvas Example",
+ "<h3>The PyTQt TQCanvas classes example</h3><hr>"
+ "<p>This is the PyTQt implementation of "
+ "TQt canvas example.</p> by Sadi Kose "
"<i>(kose@nuvox.net)</i><hr>"
"<ul>"
"<li> Press ALT-S for some sprites."
@@ -302,8 +302,8 @@ class Main (QMainWindow):
"<li> Read the code!"
"</ul>","Dismiss")
- def aboutQt(self):
- QMessageBox.aboutQt(self,"PyQt Canvas Example")
+ def aboutTQt(self):
+ TQMessageBox.aboutTQt(self,"PyTQt Canvas Example")
def toggleDoubleBuffer(self):
s = not self.options.isItemChecked(self.dbf_id)
@@ -363,10 +363,10 @@ class Main (QMainWindow):
def _print(self):
if not self.printer:
- self.printer = QPrinter()
+ self.printer = TQPrinter()
if self.printer.setup(self) :
- pp=QPainter(self.printer)
- self.canvas.drawArea(QRect(0,0,self.canvas.width(),self.canvas.height()),pp,False)
+ pp=TQPainter(self.printer)
+ self.canvas.drawArea(TQRect(0,0,self.canvas.width(),self.canvas.height()),pp,False)
def addSprite(self):
i = BouncyLogo(self.canvas)
@@ -377,15 +377,15 @@ class Main (QMainWindow):
if butterfly_fn.isEmpty():
return
if not butterflyimg:
- butterflyimg.append(QImage())
+ butterflyimg.append(TQImage())
butterflyimg[0].load(butterfly_fn)
- butterflyimg.append(QImage())
+ butterflyimg.append(TQImage())
butterflyimg[1] = butterflyimg[0].smoothScale( int(butterflyimg[0].width()*0.75),
int(butterflyimg[0].height()*0.75) )
- butterflyimg.append(QImage())
+ butterflyimg.append(TQImage())
butterflyimg[2] = butterflyimg[0].smoothScale( int(butterflyimg[0].width()*0.5),
int(butterflyimg[0].height()*0.5) )
- butterflyimg.append(QImage())
+ butterflyimg.append(TQImage())
butterflyimg[3] = butterflyimg[0].smoothScale( int(butterflyimg[0].width()*0.25),
int(butterflyimg[0].height()*0.25) )
@@ -399,15 +399,15 @@ class Main (QMainWindow):
if logo_fn.isEmpty():
return;
if not logoimg:
- logoimg.append(QImage())
+ logoimg.append(TQImage())
logoimg[0].load( logo_fn )
- logoimg.append(QImage())
+ logoimg.append(TQImage())
logoimg[1] = logoimg[0].smoothScale( int(logoimg[0].width()*0.75),
int(logoimg[0].height()*0.75) )
- logoimg.append(QImage())
+ logoimg.append(TQImage())
logoimg[2] = logoimg[0].smoothScale( int(logoimg[0].width()*0.5),
int(logoimg[0].height()*0.5) )
- logoimg.append(QImage())
+ logoimg.append(TQImage())
logoimg[3] = logoimg[0].smoothScale( int(logoimg[0].width()*0.25),
int(logoimg[0].height()*0.25) );
@@ -418,79 +418,79 @@ class Main (QMainWindow):
i.show()
def addCircle(self):
- i = QCanvasEllipse(50,50,self.canvas)
- i.setBrush( QBrush(QColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8) ))
+ i = TQCanvasEllipse(50,50,self.canvas)
+ i.setBrush( TQBrush(TQColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8) ))
i.move(self.canvas.width()*random.random()%self.canvas.width(),self.canvas.width()*random.random()%self.canvas.height())
i.setZ(256*random.random()%256)
i.show()
def addHexagon(self):
- i = QCanvasPolygon(self.canvas)
+ i = TQCanvasPolygon(self.canvas)
size = canvas.width() / 25
- pa=QPointArray(6)
- pa.setPoint(0,QPoint(2*size,0))
- pa.setPoint(1,QPoint(size,-size*173/100))
- pa.setPoint(2,QPoint(-size,-size*173/100))
- pa.setPoint(3,QPoint(-2*size,0))
- pa.setPoint(4,QPoint(-size,size*173/100))
- pa.setPoint(5,QPoint(size,size*173/100))
+ pa=TQPointArray(6)
+ pa.setPoint(0,TQPoint(2*size,0))
+ pa.setPoint(1,TQPoint(size,-size*173/100))
+ pa.setPoint(2,TQPoint(-size,-size*173/100))
+ pa.setPoint(3,TQPoint(-2*size,0))
+ pa.setPoint(4,TQPoint(-size,size*173/100))
+ pa.setPoint(5,TQPoint(size,size*173/100))
i.setPoints(pa)
- i.setBrush( QBrush(QColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8) ))
+ i.setBrush( TQBrush(TQColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8) ))
i.move(self.canvas.width()*random.random()%self.canvas.width(),self.canvas.width()*random.random()%self.canvas.height())
i.setZ(256*random.random()%256)
i.show()
def addPolygon(self):
- i = QCanvasPolygon(self.canvas)
+ i = TQCanvasPolygon(self.canvas)
size = self.canvas.width()/2
- pa=QPointArray(6)
- pa.setPoint(0, QPoint(0,0))
- pa.setPoint(1, QPoint(size,size/5))
- pa.setPoint(2, QPoint(size*4/5,size))
- pa.setPoint(3, QPoint(size/6,size*5/4))
- pa.setPoint(4, QPoint(size*3/4,size*3/4))
- pa.setPoint(5, QPoint(size*3/4,size/4))
+ pa=TQPointArray(6)
+ pa.setPoint(0, TQPoint(0,0))
+ pa.setPoint(1, TQPoint(size,size/5))
+ pa.setPoint(2, TQPoint(size*4/5,size))
+ pa.setPoint(3, TQPoint(size/6,size*5/4))
+ pa.setPoint(4, TQPoint(size*3/4,size*3/4))
+ pa.setPoint(5, TQPoint(size*3/4,size/4))
i.setPoints(pa)
- i.setBrush(QBrush( QColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8)) )
+ i.setBrush(TQBrush( TQColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8)) )
i.move(self.canvas.width()*random.random()%self.canvas.width(),self.canvas.width()*random.random()%self.canvas.height())
i.setZ(256*random.random()%256)
i.show()
def addSpline(self):
- i = QCanvasSpline(self.canvas)
+ i = TQCanvasSpline(self.canvas)
size = canvas.width()/6
- pa=QPointArray(12)
- pa.setPoint(0,QPoint(0,0))
- pa.setPoint(1,QPoint(size/2,0))
- pa.setPoint(2,QPoint(size,size/2))
- pa.setPoint(3,QPoint(size,size))
- pa.setPoint(4,QPoint(size,size*3/2))
- pa.setPoint(5,QPoint(size/2,size*2))
- pa.setPoint(6,QPoint(0,size*2))
- pa.setPoint(7,QPoint(-size/2,size*2))
- pa.setPoint(8,QPoint(size/4,size*3/2))
- pa.setPoint(9,QPoint(0,size))
- pa.setPoint(10,QPoint(-size/4,size/2))
- pa.setPoint(11,QPoint(-size/2,0))
+ pa=TQPointArray(12)
+ pa.setPoint(0,TQPoint(0,0))
+ pa.setPoint(1,TQPoint(size/2,0))
+ pa.setPoint(2,TQPoint(size,size/2))
+ pa.setPoint(3,TQPoint(size,size))
+ pa.setPoint(4,TQPoint(size,size*3/2))
+ pa.setPoint(5,TQPoint(size/2,size*2))
+ pa.setPoint(6,TQPoint(0,size*2))
+ pa.setPoint(7,TQPoint(-size/2,size*2))
+ pa.setPoint(8,TQPoint(size/4,size*3/2))
+ pa.setPoint(9,TQPoint(0,size))
+ pa.setPoint(10,TQPoint(-size/4,size/2))
+ pa.setPoint(11,TQPoint(-size/2,0))
i.setControlPoints(pa)
- i.setBrush( QBrush(QColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8) ))
+ i.setBrush( TQBrush(TQColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8) ))
i.move(self.canvas.width()*random.random()%self.canvas.width(),self.canvas.width()*random.random()%self.canvas.height())
i.setZ(256*random.random()%256)
i.show()
def addText(self):
- i = QCanvasText(self.canvas)
- i.setText("QCanvasText")
+ i = TQCanvasText(self.canvas)
+ i.setText("TQCanvasText")
i.move(self.canvas.width()*random.random()%self.canvas.width(),self.canvas.width()*random.random()%self.canvas.height())
i.setZ(256*random.random()%256)
i.show()
def addLine(self):
- i = QCanvasLine(self.canvas);
+ i = TQCanvasLine(self.canvas);
i.setPoints( self.canvas.width()*random.random()%self.canvas.width(), self.canvas.width()*random.random()%self.canvas.height(),
self.canvas.width()*random.random()%self.canvas.width(), self.canvas.width()*random.random()%self.canvas.height() )
- i.setPen( QPen(QColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8), 6) )
+ i.setPen( TQPen(TQColor(256*random.random()%32*8,256*random.random()%32*8,256*random.random()%32*8), 6) )
i.setZ(256*random.random()%256)
i.show()
@@ -505,9 +505,9 @@ class Main (QMainWindow):
y0 = 0;
if not self.tb:
- self.tb = QBrush( Qt.red )
+ self.tb = TQBrush( TQt.red )
if not self.tp:
- self.tp = QPen( Qt.black )
+ self.tp = TQPen( TQt.black )
nodecount = 0;
@@ -519,7 +519,7 @@ class Main (QMainWindow):
cols = w / dist
#ifndef QT_NO_PROGRESSDIALOG
- #progress=QProgressDialog( "Creating mesh...", "Abort", rows,
+ #progress=TQProgressDialog( "Creating mesh...", "Abort", rows,
# self, "progress", True );
#endif
@@ -566,12 +566,12 @@ class Main (QMainWindow):
#// qDebug( "%d nodes, %d edges", nodecount, EdgeItem::count() );
def addRectangle(self):
- i = QCanvasRectangle( self.canvas.width()*random.random()%self.canvas.width(),
+ i = TQCanvasRectangle( self.canvas.width()*random.random()%self.canvas.width(),
self.canvas.width()*random.random()%self.canvas.height(),
self.canvas.width()/5,self.canvas.width()/5,self.canvas)
z = 256*random.random()%256
- i.setBrush( QBrush(QColor(z,z,z) ))
- i.setPen( QPen(QColor(self.canvas.width()*random.random()%32*8,
+ i.setBrush( TQBrush(TQColor(z,z,z) ))
+ i.setPen( TQPen(TQColor(self.canvas.width()*random.random()%32*8,
self.canvas.width()*random.random()%32*8,
self.canvas.width()*random.random()%32*8), 6) )
i.setZ(z)
@@ -579,26 +579,26 @@ class Main (QMainWindow):
if __name__=='__main__':
- app=QApplication(sys.argv)
+ app=TQApplication(sys.argv)
if len(sys.argv) > 1:
- butterfly_fn=QString(sys.argv[1])
+ butterfly_fn=TQString(sys.argv[1])
else:
- butterfly_fn=QString("butterfly.png")
+ butterfly_fn=TQString("butterfly.png")
if len(sys.argv) > 2:
- logo_fn = QString(sys.argv[2])
+ logo_fn = TQString(sys.argv[2])
else:
- logo_fn=QString("qtlogo.png")
+ logo_fn=TQString("qtlogo.png")
- canvas=QCanvas(800,600)
+ canvas=TQCanvas(800,600)
canvas.setAdvancePeriod(30)
m=Main(canvas,None,"pyqt canvas example")
m.resize(m.sizeHint())
qApp.setMainWidget(m)
- m.setCaption("Qt Canvas Example ported to PyQt")
- if QApplication.desktop().width() > m.width() + 10 and QApplication.desktop().height() > m.height() + 30:
+ m.setCaption("TQt Canvas Example ported to PyTQt")
+ if TQApplication.desktop().width() > m.width() + 10 and TQApplication.desktop().height() > m.height() + 30:
m.show()
else:
m.showMaximized()
@@ -607,7 +607,7 @@ if __name__=='__main__':
#// m.help();
qApp.setMainWidget(None);
- QObject.connect( qApp, SIGNAL("lastWindowClosed()"), qApp, SLOT("quit()") )
+ TQObject.connect( qApp, SIGNAL("lastWindowClosed()"), qApp, SLOT("quit()") )
app.exec_loop()
diff --git a/examples3/canvas/qtlogo.png b/examples3/canvas/qtlogo.png
index a48b1a1..5961457 100644
--- a/examples3/canvas/qtlogo.png
+++ b/examples3/canvas/qtlogo.png
Binary files differ
diff --git a/examples3/checklists.py b/examples3/checklists.py
index 12a3cdb..d6378e6 100755
--- a/examples3/checklists.py
+++ b/examples3/checklists.py
@@ -9,21 +9,21 @@ from qt import *
TRUE = 1
FALSE = 0
-class CheckLists(QWidget):
+class CheckLists(TQWidget):
def __init__(self, *args):
- apply( QWidget.__init__, (self, ) + args )
+ apply( TQWidget.__init__, (self, ) + args )
- lay = QHBoxLayout(self)
+ lay = TQHBoxLayout(self)
lay.setMargin(5)
- vbox1 = QVBoxLayout(lay)
+ vbox1 = TQVBoxLayout(lay)
vbox1.setMargin(5)
# First child: a Label
- vbox1.addWidget(QLabel("Check some items!", self))
+ vbox1.addWidget(TQLabel("Check some items!", self))
# Second child: the ListView
- self.lv1 = QListView(self)
+ self.lv1 = TQListView(self)
vbox1.addWidget(self.lv1)
self.lv1.addColumn("Items")
self.lv1.setRootIsDecorated(TRUE)
@@ -32,10 +32,10 @@ class CheckLists(QWidget):
parentList = []
- parentList.append( QListViewItem( self.lv1, "Parent Item 1" ) )
- parentList.append( QListViewItem( self.lv1, "Parent Item 2" ) )
- parentList.append( QListViewItem( self.lv1, "Parent Item 3" ) )
- parentList.append( QListViewItem( self.lv1, "Parent Item 4" ) )
+ parentList.append( TQListViewItem( self.lv1, "Parent Item 1" ) )
+ parentList.append( TQListViewItem( self.lv1, "Parent Item 2" ) )
+ parentList.append( TQListViewItem( self.lv1, "Parent Item 3" ) )
+ parentList.append( TQListViewItem( self.lv1, "Parent Item 4" ) )
num = 0
@@ -47,49 +47,49 @@ class CheckLists(QWidget):
# ...and create 5 checkable child ListViewItems for each parent item
for j in range(5):
- ci = QCheckListItem( it, QString("%1. Child of Parent %2").arg( j ).arg( i ), QCheckListItem.CheckBox )
+ ci = TQCheckListItem( it, TQString("%1. Child of Parent %2").arg( j ).arg( i ), TQCheckListItem.CheckBox )
self.childList1.append(ci)
# Create another widget for layouting
- tmp1 = QVBoxLayout( lay )
+ tmp1 = TQVBoxLayout( lay )
tmp1.setMargin( 5 )
# create a pushbutton
- copy1 = QPushButton( " -> ", self )
+ copy1 = TQPushButton( " -> ", self )
tmp1.addWidget( copy1 )
copy1.setMaximumWidth( copy1.sizeHint().width() );
# connect the SIGNAL clicked() of the pushbutton with the SLOT copy1to2()
self.connect( copy1, SIGNAL('clicked()'), self.copy1to2 )
# another widget for layouting
- vbox2 = QVBoxLayout( lay )
+ vbox2 = TQVBoxLayout( lay )
vbox2.setMargin( 5 )
# and another label
- vbox2.addWidget( QLabel( "Check one item!", self ) )
+ vbox2.addWidget( TQLabel( "Check one item!", self ) )
# create the second listview
- self.lv2 = QListView( self )
+ self.lv2 = TQListView( self )
vbox2.addWidget( self.lv2 )
self.lv2.addColumn( "Items" )
self.lv2.setRootIsDecorated( TRUE )
# another widget needed for layouting only
- tmp2 = QVBoxLayout( lay )
+ tmp2 = TQVBoxLayout( lay )
tmp2.setMargin( 5 )
# create another pushbutton...
- copy2 = QPushButton( " -> ", self )
+ copy2 = TQPushButton( " -> ", self )
lay.addWidget( copy2 )
copy2.setMaximumWidth( copy2.sizeHint().width() )
# ...and connect its clicked() SIGNAL to the copy2to3() SLOT
self.connect( copy2, SIGNAL('clicked()'), self.copy2to3 )
- tmp3 = QVBoxLayout( lay )
+ tmp3 = TQVBoxLayout( lay )
tmp3.setMargin( 5 )
# and create a label which will be at the right of the window
- self.label = QLabel( "No Item yet...", self )
+ self.label = TQLabel( "No Item yet...", self )
tmp3.addWidget( self.label )
def copy1to2(self):
@@ -97,7 +97,7 @@ class CheckLists(QWidget):
# Insert first a controller Item into the second ListView. Always if Radio-ListViewItems
# are inserted into a Listview, the parent item of these MUST be a controller Item!
- item = QCheckListItem( self.lv2, "Controller", QCheckListItem.Controller )
+ item = TQCheckListItem( self.lv2, "Controller", TQCheckListItem.Controller )
item.setOpen( TRUE )
self.listChild2 = []
@@ -107,7 +107,7 @@ class CheckLists(QWidget):
# ...if the item is checked...
if it.isOn():
# ...insert a Radio-ListViewItem with the same text into the second ListView
- ri = QCheckListItem(item , it.text(0), QCheckListItem.RadioButton)
+ ri = TQCheckListItem(item , it.text(0), TQCheckListItem.RadioButton)
self.listChild2.append(ri)
if item.firstChild() != None:
@@ -125,11 +125,11 @@ class CheckLists(QWidget):
# ...set the text of the item to the label
self.label.setText( it.text( 0 ) )
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
checkLists = CheckLists()
checkLists.resize(700, 400)
-checkLists.setCaption("PyQt example - CheckLists")
+checkLists.setCaption("PyTQt example - CheckLists")
a.setMainWidget(checkLists)
checkLists.show()
diff --git a/examples3/cursor.py b/examples3/cursor.py
index d5bbbe1..c9f42bc 100755
--- a/examples3/cursor.py
+++ b/examples3/cursor.py
@@ -4,7 +4,7 @@
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
-** This file is part of an example program for Qt. This example
+** This file is part of an example program for TQt. This example
** program may be used, distributed and modified without limitation.
**
***************************************************************************"""
@@ -47,9 +47,9 @@ cm_bits = "\x00\x00\x00\x00\x00\xf8\x1f\x00\x00\xfe\x3f\x00" \
"\x00\xfe\x3f\x00\x00\xf8\x0f\x00"
# The CursorView contains many labels with different cursors.
-class CursorView( QWidget ): # cursor view
+class CursorView( TQWidget ): # cursor view
def __init__( self ):
- QWidget.__init__( self )
+ TQWidget.__init__( self )
# Constructs a cursor view.
#enum CursorShape { ArrowCursor, UpArrowCursor, CrossCursor, WaitCursor, IbeamCursor, SizeVerCursor, SizeHorCursor, SizeBDiagCursor, SizeFDiagCursor, SizeAllCursor, BlankCursor, SplitVCursor, SplitHCursor, PointingHandCursor, ForbiddenCursor, WhatsThisCursor, LastCursor = WhatsThisCursor, BitmapCursor = 24 }
@@ -74,37 +74,37 @@ class CursorView( QWidget ): # cursor view
self.setCaption( "CursorView" ) # set window caption
- grid = QGridLayout( self, 5, 4, 20 )
+ grid = TQGridLayout( self, 5, 4, 20 )
i=0
for y in range( 0, 4, 1 ) : # create the small labels
for x in range( 0, 4, 1 ) :
- label = QLabel( self )
- label.setCursor( QCursor(i) )
+ label = TQLabel( self )
+ label.setCursor( TQCursor(i) )
label.setText( shape[i] );
label.setAlignment( self.AlignCenter )
- label.setFrameStyle( QFrame.Box | QFrame.Raised )
+ label.setFrameStyle( TQFrame.Box | TQFrame.Raised )
grid.addWidget( label, x, y )
- QToolTip.add( label, name[i] )
+ TQToolTip.add( label, name[i] )
i += 1
- cb = QBitmap( cb_width, cb_height, cb_bits, True )
- cm = QBitmap( cm_width, cm_height, cm_bits, True )
- custom = QCursor( cb, cm ) # create bitmap cursor
+ cb = TQBitmap( cb_width, cb_height, cb_bits, True )
+ cm = TQBitmap( cm_width, cm_height, cm_bits, True )
+ custom = TQCursor( cb, cm ) # create bitmap cursor
- label = QLabel( self ) # create the big label
+ label = TQLabel( self ) # create the big label
label.setCursor( custom )
label.setText( "Custom bitmap cursor" )
- QToolTip.add( label, "custom bitmap cursor" )
+ TQToolTip.add( label, "custom bitmap cursor" )
label.setAlignment( self.AlignCenter )
- label.setFrameStyle( QFrame.Box | QFrame.Sunken )
+ label.setFrameStyle( TQFrame.Box | TQFrame.Sunken )
grid.addMultiCellWidget( label, 4, 4, 0, 3 )
# Create and display a CursorView.
def main( args ):
- a = QApplication(sys.argv) # application object
+ a = TQApplication(sys.argv) # application object
v = CursorView() # cursor view
- v.setCaption( "Qt Example - Cursors" )
+ v.setCaption( "TQt Example - Cursors" )
a.setMainWidget( v )
v.show()
diff --git a/examples3/dclock.py b/examples3/dclock.py
index 5382d4f..d129681 100755
--- a/examples3/dclock.py
+++ b/examples3/dclock.py
@@ -1,17 +1,17 @@
#!/usr/bin/env python
-# A port to PyQt of the dclock example from Qt v2.x.
+# A port to PyTQt of the dclock example from TQt v2.x.
import sys, string
from qt import *
-class DigitalClock(QLCDNumber):
+class DigitalClock(TQLCDNumber):
def __init__(self, parent=None, name=None):
- QLCDNumber.__init__(self, parent, name)
+ TQLCDNumber.__init__(self, parent, name)
self.showingColon = 0
- self.setFrameStyle(QFrame.Panel | QFrame.Raised)
+ self.setFrameStyle(TQFrame.Panel | TQFrame.Raised)
self.setLineWidth(2)
self.showTime()
self.normalTimer = self.startTimer(500)
@@ -25,13 +25,13 @@ class DigitalClock(QLCDNumber):
self.showTime()
def mousePressEvent(self, e):
- if e.button() == Qt.LeftButton:
+ if e.button() == TQt.LeftButton:
self.showDate()
def showDate(self):
if self.showDateTimer != -1:
return
- d = QDate.currentDate()
+ d = TQDate.currentDate()
self.display('%2d %2d' % (d.month(), d.day()))
self.showDateTimer = self.startTimer(2000)
@@ -42,7 +42,7 @@ class DigitalClock(QLCDNumber):
def showTime(self):
self.showingColon = not self.showingColon
- s = list(str(QTime.currentTime().toString())[:5]) #.left(5)
+ s = list(str(TQTime.currentTime().toString())[:5]) #.left(5)
if not self.showingColon:
s[2] = ' '
if s[0] == '0':
@@ -50,7 +50,7 @@ class DigitalClock(QLCDNumber):
s = string.join(s,'')
self.display(s)
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
clock = DigitalClock()
clock.resize(170,80)
a.setMainWidget(clock)
diff --git a/examples3/desktop.py b/examples3/desktop.py
index 7036248..46c41dc 100755
--- a/examples3/desktop.py
+++ b/examples3/desktop.py
@@ -26,13 +26,13 @@ maxpoints = 5
maxcurves = 8
def poly():
- d = QApplication.desktop()
- d.setEraseColor(Qt.white)
+ d = TQApplication.desktop()
+ d.setEraseColor(TQt.white)
xvel = [ 0 ] * maxpoints
yvel = [ 0 ] * maxpoints
head = 0
tail = -maxcurves + 2
- a = [ QPointArray() ] * maxcurves
+ a = [ TQPointArray() ] * maxcurves
r = d.rect()
for i in range(maxcurves):
a[i].resize(maxpoints)
@@ -43,11 +43,11 @@ def poly():
xvel[i] = velocity(i)
yvel[i] = velocity(i)
- paint = QPainter()
+ paint = TQPainter()
paint.begin(d)
for ntimes in range(2000):
- paint.setBrush(QColor(kindaRand()%360,180,255, QColor.Hsv))
+ paint.setBrush(TQColor(kindaRand()%360,180,255, TQColor.Hsv))
paint.drawPolygon(a[head])
tail = tail + 1
if tail >= maxcurves:
@@ -82,31 +82,31 @@ def poly():
def rotate():
w = 64
h = 64
- image = QImage(w, h, 8, 128)
+ image = TQImage(w, h, 8, 128)
for i in range(128):
image.setColor(i, qRgb(i,0,0))
for y in range(h):
for x in range(w):
image.setPixel(x,y,(x+y)%128)
- pm = QPixmap()
+ pm = TQPixmap()
pm.convertFromImage(image)
- pm.setOptimization(QPixmap.BestOptim)
+ pm.setOptimization(TQPixmap.BestOptim)
- d = QApplication.desktop()
+ d = TQApplication.desktop()
for i in range(0,361,2):
- m = QWMatrix()
+ m = TQWMatrix()
m.rotate(i)
rpm = pm.xForm(m)
d.setErasePixmap(rpm)
d.update()
def generateStone(pm, c1, c2, c3):
- p = QPainter()
- p1 = QPen(c1, 0)
- p2 = QPen(c2, 0)
- p3 = QPen(c3, 0)
+ p = TQPainter()
+ p1 = TQPen(c1, 0)
+ p2 = TQPen(c2, 0)
+ p3 = TQPen(c3, 0)
p.begin(pm)
for i in range(pm.width()):
@@ -130,9 +130,9 @@ def drawShadeText(p, x, y, text, topColor, bottomColor, sw=2):
p.setPen(topColor)
p.drawText(x, y, text)
-class DesktopWidget(QWidget):
+class DesktopWidget(TQWidget):
def __init__(self, s, parent=None, name=''):
- QWidget.__init__(self, parent, name, Qt.WType_Desktop | Qt.WPaintDesktop)
+ TQWidget.__init__(self, parent, name, TQt.WType_Desktop | TQt.WPaintDesktop)
self.text = s
self.pm = None
@@ -141,16 +141,16 @@ class DesktopWidget(QWidget):
c2 = c1.light(104)
c3 = c1.dark(106)
if not self.pm:
- self.pm = QPixmap(64, 64)
+ self.pm = TQPixmap(64, 64)
generateStone(self.pm, c1, c2, c3)
self.setErasePixmap(self.pm)
self.update()
br = self.fontMetrics().boundingRect(self.text)
- offscreen = QPixmap(br.width(), br.height())
+ offscreen = TQPixmap(br.width(), br.height())
x = self.width()/2 - br.width()/2
y = self.height()/2 - br.height()/2
offscreen.fill(self, x, y)
- p = QPainter()
+ p = TQPainter()
p.begin(offscreen)
drawShadeText(p, -br.x(), -br.y(), self.text, c2, c3, 3)
p.end()
@@ -168,8 +168,8 @@ def desktopText(s='Trolltech'):
c2 = c1.light(104)
c3 = c1.dark(106)
- pm = QPixmap(10, 10)
- p = QPainter()
+ pm = TQPixmap(10, 10)
+ p = TQPainter()
p.begin(pm)
r = p.fontMetrics().boundingRect(s)
p.end()
@@ -189,10 +189,10 @@ def desktopText(s='Trolltech'):
qApp.desktop().setErasePixmap(pm)
-a = QApplication(sys.argv)
+a = TQApplication(sys.argv)
if len(sys.argv) > 1:
- f = QFont('charter', 96, QFont.Black)
- f.setStyleHint(QFont.Times)
+ f = TQFont('charter', 96, TQFont.Black)
+ f.setStyleHint(TQFont.Times)
a.setFont(f)
validOptions = 0
diff --git a/examples3/dirview.py b/examples3/dirview.py
index eb5393e..1783d51 100755
--- a/examples3/dirview.py
+++ b/examples3/dirview.py
@@ -6,7 +6,7 @@
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
** Some corrections by M. Biermaier (http://www.office-m.at)
**
-** This file is part of an example program for Qt. This example
+** This file is part of an example program for TQt. This example
** program may be used, distributed and modified without limitation.
**
***************************************************************************"""
@@ -136,9 +136,9 @@ folderClosed = None
folderOpened = None
fileNormal = None
-class FileItem( QListViewItem ) :
- def __init__( self, parent=None, s1=QString.null, s2=QString.null ):
- QListViewItem.__init__( self, parent, s1, s2 )
+class FileItem( TQListViewItem ) :
+ def __init__( self, parent=None, s1=TQString.null, s2=TQString.null ):
+ TQListViewItem.__init__( self, parent, s1, s2 )
self.pix = None
def setPixmap( self, p ) :
@@ -153,22 +153,22 @@ class FileItem( QListViewItem ) :
else : return self.pix;
# Class Directory
-class Directory( QListViewItem ) :
- def __init__( self, parent=None, filename=QString.null, col2=QString.null ):
- QListViewItem.__init__( self, parent, filename, col2 )
+class Directory( TQListViewItem ) :
+ def __init__( self, parent=None, filename=TQString.null, col2=TQString.null ):
+ TQListViewItem.__init__( self, parent, filename, col2 )
self.pix = None
global folderLocked, folderClosed, folderOpened, fileNormal
self.showDirsOnly = False
- if isinstance(parent, QListView):
+ if isinstance(parent, TQListView):
self.p = None
self.showDirsOnly = parent.showDirsOnly()
- self.f = QFile( QString('/') )
+ self.f = TQFile( TQString('/') )
else:
self.p = parent
self.showDirsOnly = parent.showDirsOnly
- self.f = QFile( QString(filename) )
+ self.f = TQFile( TQString(filename) )
- self.readable = QDir( self.fullName() ).isReadable()
+ self.readable = TQDir( self.fullName() ).isReadable()
if not self.readable : self.setPixmap( folderLocked )
else : self.setPixmap( folderClosed )
@@ -188,8 +188,8 @@ class Directory( QListViewItem ) :
else : self.setPixmap( folderClosed )
if o and not self.childCount() :
- s = QString( self.fullName() )
- thisDir = QDir( s )
+ s = TQString( self.fullName() )
+ thisDir = TQDir( s )
if not thisDir.isReadable() :
self.readable = False
self.setExpandable( False )
@@ -198,7 +198,7 @@ class Directory( QListViewItem ) :
self.listView().setUpdatesEnabled( False )
files = thisDir.entryInfoList()
if files :
- fi = QFileInfo()
+ fi = TQFileInfo()
for it in files:
fi = it
if str(fi.fileName()) == "." or str(fi.fileName()) == ".." :
@@ -214,14 +214,14 @@ class Directory( QListViewItem ) :
item.setPixmap( fileNormal )
self.listView().setUpdatesEnabled( True )
- QListViewItem.setOpen( self, o )
+ TQListViewItem.setOpen( self, o )
def setup( self ):
self.setExpandable( True )
- QListViewItem.setup( self )
+ TQListViewItem.setup( self )
def fullName( self ):
- s = QString()
+ s = TQString()
if self.p :
s = self.p.fullName()
s.append( self.f.name() )
@@ -237,27 +237,27 @@ class Directory( QListViewItem ) :
# Class DirectoryView
-class DirectoryView( QListView ):
+class DirectoryView( TQListView ):
def __init__( self, parent=None, name=None, sdo=False ):
- QListView.__init__( self, parent, name )
+ TQListView.__init__( self, parent, name )
self.dirsOnly = sdo
self.oldCurrent = 0
self.dropItem = 0
- self.presspos = QPoint(0,0)
+ self.presspos = TQPoint(0,0)
self.mousePressed = False
- global folderLocked, folderClosed, folderOpened, fileNormal #= QPixmap()
+ global folderLocked, folderClosed, folderOpened, fileNormal #= TQPixmap()
self.autoopenTime = 750
- self.autoopen_timer = QTimer( self )
+ self.autoopen_timer = TQTimer( self )
if not folderLocked :
- folderLocked = QPixmap( folder_locked )
- folderClosed = QPixmap( folder_closed_xpm )
- folderOpened = QPixmap( folder_open_xpm )
- fileNormal = QPixmap( pix_file )
+ folderLocked = TQPixmap( folder_locked )
+ folderClosed = TQPixmap( folder_closed_xpm )
+ folderOpened = TQPixmap( folder_open_xpm )
+ fileNormal = TQPixmap( pix_file )
- self.connect( self, SIGNAL("doubleClicked(QListViewItem *)"),
+ self.connect( self, SIGNAL("doubleClicked(TQListViewItem *)"),
self.slotFolderSelected )
- self.connect( self, SIGNAL("returnPressed(QListViewItem *)"),
+ self.connect( self, SIGNAL("returnPressed(TQListViewItem *)"),
self.slotFolderSelected )
self.setAcceptDrops( True )
@@ -272,7 +272,7 @@ class DirectoryView( QListView ):
if not i or not self.showDirsOnly():
return
dir = i
- self.emit( PYSIGNAL("folderSelected(const QString &)"), (dir.fullName(), ) )
+ self.emit( PYSIGNAL("folderSelected(const TQString &)"), (dir.fullName(), ) )
def openFolder( self ):
self.autoopen_timer.stop()
@@ -281,7 +281,7 @@ class DirectoryView( QListView ):
self.dropItem.repaint()
def contentsDragEnterEvent( self, e ):
- if not QUriDrag.canDecode(e) :
+ if not TQUriDrag.canDecode(e) :
e.ignore()
return
self.oldCurrent = self.currentItem()
@@ -291,7 +291,7 @@ class DirectoryView( QListView ):
self.autoopen_timer.start( self.autoopenTime )
def contentsDragMoveEvent( self, e ) :
- if not QUriDrag.canDecode(e) :
+ if not TQUriDrag.canDecode(e) :
e.ignore()
return
vp = self.contentsToViewport( e.pos() )
@@ -304,11 +304,11 @@ class DirectoryView( QListView ):
self.dropItem = i
self.autoopen_timer.start( self.autoopenTime )
- if e.action() == QDropEvent.Copy:
+ if e.action() == TQDropEvent.Copy:
pass
- elif e.action() == QDropEvent.Move:
+ elif e.action() == TQDropEvent.Move:
e.acceptAction()
- elif e.action() == QDropEvent.Link:
+ elif e.action() == TQDropEvent.Link:
e.acceptAction()
else:
pass
@@ -317,7 +317,7 @@ class DirectoryView( QListView ):
self.autoopen_timer.stop()
self.dropItem = 0
- def contentsDragLeaveEvent( self, QDragLeaveEvent ) :
+ def contentsDragLeaveEvent( self, TQDragLeaveEvent ) :
self.autoopen_timer.stop()
self.dropItem = 0
@@ -326,23 +326,23 @@ class DirectoryView( QListView ):
def contentsDropEvent( self, e ):
self.autoopen_timer.stop()
- if not QUriDrag.canDecode(e) :
+ if not TQUriDrag.canDecode(e) :
e.ignore()
return
item = self.itemAt( self.contentsToViewport(e.pos()) )
if item :
- lst = QStringList()
- QUriDrag.decodeLocalFiles( e, lst )
- if e.action() == QDropEvent.Copy:
- s = QString("Copy")
- elif e.action() == QDropEvent.Move:
- s = QString("Move")
+ lst = TQStringList()
+ TQUriDrag.decodeLocalFiles( e, lst )
+ if e.action() == TQDropEvent.Copy:
+ s = TQString("Copy")
+ elif e.action() == TQDropEvent.Move:
+ s = TQString("Move")
e.acceptAction()
- elif e.action() == QDropEvent.Link:
- s = QString("Link")
+ elif e.action() == TQDropEvent.Link:
+ s = TQString("Link")
e.acceptAction()
else:
- s = QString("Unknown")
+ s = TQString("Unknown")
s += "\n\n"
e.accept()
@@ -353,12 +353,12 @@ class DirectoryView( QListView ):
s += "\nTo\n\n "
s += self.fullPath(item)
- QMessageBox.information( self, "Drop target", s, "Not implemented" )
+ TQMessageBox.information( self, "Drop target", s, "Not implemented" )
else :
e.ignore()
def fullPath( self, item ):
- fullpath = QString( item.text(0) )
+ fullpath = TQString( item.text(0) )
item = item.parent()
while item:
newpath = item.text(0)
@@ -373,8 +373,8 @@ class DirectoryView( QListView ):
return fullpath
def contentsMousePressEvent( self, e ) :
- QListView.contentsMousePressEvent( self, e )
- p = QPoint( self.contentsToViewport( e.pos() ) )
+ TQListView.contentsMousePressEvent( self, e )
+ p = TQPoint( self.contentsToViewport( e.pos() ) )
i = self.itemAt( p )
if i :
# if the user clicked into the root decoration of the item, don't try to start a drag!
@@ -387,30 +387,30 @@ class DirectoryView( QListView ):
self.mousePressed = True
def contentsMouseMoveEvent( self, e ):
- offset = QPoint( self.presspos.x() - e.pos().x(),
+ offset = TQPoint( self.presspos.x() - e.pos().x(),
self.presspos.y() - e.pos().y() )
- if self.mousePressed and (offset).manhattanLength() > QApplication.startDragDistance() :
+ if self.mousePressed and (offset).manhattanLength() > TQApplication.startDragDistance() :
self.mousePressed = False
item = self.itemAt( self.contentsToViewport(self.presspos) )
if item :
source = self.fullPath(item)
- if QFile.exists(source) :
- ud = QUriDrag(self.viewport())
- ud.setFileNames( QStringList (source) )
+ if TQFile.exists(source) :
+ ud = TQUriDrag(self.viewport())
+ ud.setFileNames( TQStringList (source) )
if ud.drag() :
- QMessageBox.information( self, "Drag source",
- QString("Delete ")+source, "Not implemented" )
+ TQMessageBox.information( self, "Drag source",
+ TQString("Delete ")+source, "Not implemented" )
- def contentsMouseReleaseEvent( self, QMouseEvent ):
+ def contentsMouseReleaseEvent( self, TQMouseEvent ):
self.mousePressed = False
def setDir( self, s ):
- it = QListViewItem( self )
+ it = TQListViewItem( self )
it.setOpen(False)
- thisDir = QDir( s )
- it = QListViewItem( self )
+ thisDir = TQDir( s )
+ it = TQListViewItem( self )
it.setOpen(False)
- lst = QStringList( QStringList.split( "/", s ) )
+ lst = TQStringList( TQStringList.split( "/", s ) )
listview2 = []
listview2.extend( lst )
@@ -425,14 +425,14 @@ class DirectoryView( QListView ):
self.setCurrentItem( item )
def main( args ):
- a = QApplication( args )
+ a = TQApplication( args )
mw = DirectoryView()
mw.addColumn( "Name" )
mw.addColumn( "Type" )
mw.setTreeStepSize( 20 )
- roots = QDir.drives()
+ roots = TQDir.drives()
if roots :
for it in roots:
fi = it
@@ -441,7 +441,7 @@ def main( args ):
root.setOpen( True ) # be interesting
mw.resize( 400, 400 )
- mw.setCaption( "Qt Example - Directory Browser" )
+ mw.setCaption( "TQt Example - Directory Browser" )
mw.setAllColumnsShowFocus( True )
a.setMainWidget( mw )
mw.show()
diff --git a/examples3/dragdrop.py b/examples3/dragdrop.py
index 4cc8c73..5ea9171 100755
--- a/examples3/dragdrop.py
+++ b/examples3/dragdrop.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-# Ported to PyQt by Issac Trotts on Jan 1, 2002
+# Ported to PyTQt by Issac Trotts on Jan 1, 2002
import sys
from qt import *
@@ -9,49 +9,49 @@ import dropsite, secret
def addStuff( parent, yn_image, yn_secret = 0 ):
- tll = QVBoxLayout( parent, 10 )
+ tll = TQVBoxLayout( parent, 10 )
d = dropsite.DropSite( parent, 'dropsite' )
- d.setFrameStyle( QFrame.Sunken + QFrame.WinPanel )
+ d.setFrameStyle( TQFrame.Sunken + TQFrame.WinPanel )
tll.addWidget( d )
if yn_image:
- stuff = QPixmap()
+ stuff = TQPixmap()
if not stuff.load( "trolltech.bmp" ):
- stuff = QPixmap(20,20)
- stuff.fill(Qt.green)
+ stuff = TQPixmap(20,20)
+ stuff.fill(TQt.green)
d.setPixmap( stuff )
else:
d.setText("Drag and Drop")
- d.setFont(QFont("Helvetica",18))
+ d.setFont(TQFont("Helvetica",18))
if secret:
s = secret.SecretSource( 42, parent )
tll.addWidget( s )
- format = QLabel( "\n\n\n\nNone\n\n\n\n", parent )
+ format = TQLabel( "\n\n\n\nNone\n\n\n\n", parent )
tll.addWidget( format )
tll.activate()
parent.resize( parent.sizeHint() )
- QObject.connect( d, PYSIGNAL('message(QString &)'),
- format, SLOT('setText(QString &)') )
+ TQObject.connect( d, PYSIGNAL('message(TQString &)'),
+ format, SLOT('setText(TQString &)') )
-app = QApplication( sys.argv )
+app = TQApplication( sys.argv )
-mw = QWidget()
+mw = TQWidget()
addStuff( mw, 1 )
-mw.setCaption( "Qt Example - Drag and Drop" )
+mw.setCaption( "TQt Example - Drag and Drop" )
mw.show()
-mw2 = QWidget()
+mw2 = TQWidget()
addStuff( mw2, 0 )
-mw2.setCaption( "Qt Example - Drag and Drop" )
+mw2.setCaption( "TQt Example - Drag and Drop" )
mw2.show()
-mw3 = QWidget()
+mw3 = TQWidget()
addStuff( mw3, 1, 1 )
-mw3.setCaption( "Qt Example - Drag and Drop" )
+mw3.setCaption( "TQt Example - Drag and Drop" )
mw3.show()
-QObject.connect(qApp,SIGNAL('lastWindowClosed()'),qApp,SLOT('quit()'))
+TQObject.connect(qApp,SIGNAL('lastWindowClosed()'),qApp,SLOT('quit()'))
app.exec_loop()
diff --git a/examples3/drawlines.py b/examples3/drawlines.py
index 3e21db7..bdbe814 100755
--- a/examples3/drawlines.py
+++ b/examples3/drawlines.py
@@ -13,10 +13,10 @@ MAXCOLORS = 40;
# ConnectWidget - draws connected lines
#
-class ConnectWidget(QWidget):
+class ConnectWidget(TQWidget):
def __init__(self):
- QWidget.__init__(self)
- self.setEraseColor( Qt.white ) # white background
+ TQWidget.__init__(self)
+ self.setEraseColor( TQt.white ) # white background
self.count = 0;
self.down = FALSE
@@ -24,15 +24,15 @@ class ConnectWidget(QWidget):
self.colors = []
for i in range(MAXPOINTS): # init arrays
- self.points.append(QPoint())
+ self.points.append(TQPoint())
for i in range(MAXCOLORS):
- self.colors.append(QColor( random.randint(0,255), random.randint(0,255), random.randint(0,255) ))
+ self.colors.append(TQColor( random.randint(0,255), random.randint(0,255), random.randint(0,255) ))
#
# Handles paint events for the connect widget.
#
def paintEvent(self, pe):
- paint = QPainter( self )
+ paint = TQPainter( self )
for i in range(self.count-1): # connect all points
for j in range(i+1, self.count):
paint.setPen( self.colors[random.randint(0,MAXCOLORS-1)] ) # set random pen color
@@ -58,17 +58,17 @@ class ConnectWidget(QWidget):
#
def mouseMoveEvent(self, me):
if self.down and self.count < MAXPOINTS:
- paint = QPainter( self )
- self.points[self.count] = QPoint(me.pos()) # add point
+ paint = TQPainter( self )
+ self.points[self.count] = TQPoint(me.pos()) # add point
paint.drawPoint( me.pos() ) # plot point
self.count = self.count+1
#
# Create and display a ConnectWidget.
#
-a = QApplication( sys.argv )
+a = TQApplication( sys.argv )
connect = ConnectWidget()
-connect.setCaption( "PyQt Example - Draw lines")
+connect.setCaption( "PyTQt Example - Draw lines")
a.setMainWidget( connect )
connect.show()
a.exec_loop()
diff --git a/examples3/dropsite.py b/examples3/dropsite.py
index 11d9707..523f7d0 100644
--- a/examples3/dropsite.py
+++ b/examples3/dropsite.py
@@ -6,21 +6,21 @@ from qt import *
import secret
-class DropSite(QLabel):
+class DropSite(TQLabel):
def __init__(self, parent=None, name=None):
- QLabel.__init__( self, parent, name )
+ TQLabel.__init__( self, parent, name )
self.setAcceptDrops(1)
# this is a normal event
def mousePressEvent( self, e ):
if ( self.pixmap() ) :
- drobj = QImageDrag( self.pixmap().convertToImage(), self )
- pm = QPixmap()
+ drobj = TQImageDrag( self.pixmap().convertToImage(), self )
+ pm = TQPixmap()
pm.convertFromImage(self.pixmap().convertToImage().smoothScale(
self.pixmap().width()/3,self.pixmap().height()/3))
- drobj.setPixmap(pm,QPoint(-5,-7))
+ drobj.setPixmap(pm,TQPoint(-5,-7))
else :
- drobj = QTextDrag( self.text(), self )
+ drobj = TQTextDrag( self.text(), self )
drobj.dragCopy()
def backgroundColorChange( self, qcolor ):
@@ -35,9 +35,9 @@ class DropSite(QLabel):
def dragEnterEvent( self, e ):
# Check if you want the drag...
if (secret.canDecode( e ) or
- QTextDrag.canDecode( e ) or
- QImageDrag.canDecode( e ) or
- QUriDrag.canDecode( e )):
+ TQTextDrag.canDecode( e ) or
+ TQImageDrag.canDecode( e ) or
+ TQUriDrag.canDecode( e )):
e.accept()
# Give the user some feedback...
@@ -48,41 +48,41 @@ class DropSite(QLabel):
t += "\n"
t += str(e.format( i ))
i += 1
- self.emit(PYSIGNAL('message(QString &)'), (QString(t),))
- self.setEraseColor(Qt.white)
+ self.emit(PYSIGNAL('message(TQString &)'), (TQString(t),))
+ self.setEraseColor(TQt.white)
- def dragLeaveEvent( self, QDragLeaveEvent ):
+ def dragLeaveEvent( self, TQDragLeaveEvent ):
# Give the user some feedback...
- self.emit(PYSIGNAL('message(QString &)'), (QString(''),))
- self.setEraseColor(Qt.lightGray)
+ self.emit(PYSIGNAL('message(TQString &)'), (TQString(''),))
+ self.setEraseColor(TQt.lightGray)
def dropEvent( self, e ):
- self.setEraseColor(Qt.lightGray)
+ self.setEraseColor(TQt.lightGray)
# Try to decode to the data you understand...
- str = QString()
- if ( QTextDrag.decode( e, str ) ) :
+ str = TQString()
+ if ( TQTextDrag.decode( e, str ) ) :
self.setText( str )
self.setMinimumSize( self.minimumSize().expandedTo(self.sizeHint()) )
return
- pm = QPixmap()
- if ( QImageDrag.decode( e, pm ) ) :
+ pm = TQPixmap()
+ if ( TQImageDrag.decode( e, pm ) ) :
self.setPixmap( pm )
self.setMinimumSize(self.minimumSize().expandedTo(self.sizeHint()))
return
- # QStrList strings
- #strings = QStrList()
+ # TQStrList strings
+ #strings = TQStrList()
strings = []
- if ( QUriDrag.decode( e, strings ) ) :
- m = QString("Full URLs:\n")
+ if ( TQUriDrag.decode( e, strings ) ) :
+ m = TQString("Full URLs:\n")
for u in strings:
m = m + " " + u + '\n'
- # QStringList files
+ # TQStringList files
files = []
- if ( QUriDrag.decodeLocalFiles( e, files ) ) :
+ if ( TQUriDrag.decodeLocalFiles( e, files ) ) :
m += "Files:\n"
- # for (QStringList.Iterator i=files.begin() i!=files.end() ++i)
+ # for (TQStringList.Iterator i=files.begin() i!=files.end() ++i)
for i in files:
m = m + " " + i + '\n'
self.setText( m )
diff --git a/examples3/fontdisplayer.py b/examples3/fontdisplayer.py
index f6015df..b11e520 100755
--- a/examples3/fontdisplayer.py
+++ b/examples3/fontdisplayer.py
@@ -5,7 +5,7 @@
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
-** This file is part of an example program for Qt. This example
+** This file is part of an example program for TQt. This example
** program may be used, distributed and modified without limitation.
**
***************************************************************************"""
@@ -13,35 +13,35 @@
import sys
from qt import *
-class FontRowTable( QFrame ):
+class FontRowTable( TQFrame ):
def __init__( self, parent=None, name=None ):
- QFrame.__init__( self, parent, name )
+ TQFrame.__init__( self, parent, name )
self.setBackgroundMode(self.PaletteBase)
self.setFrameStyle(self.Panel|self.Sunken)
self.setMargin(8)
self.setRow(0)
self.row = 0
- self.tablefont = QFont( QApplication.font() )
+ self.tablefont = TQFont( TQApplication.font() )
def sizeHint( self ) :
- width = 16*self.cellSize().width()+QSize(2,2).width()*(self.margin()+self.frameWidth())
- height = 16*self.cellSize().height()+QSize(2,2).height()*(self.margin()+self.frameWidth())
- return QSize(width,height)
+ width = 16*self.cellSize().width()+TQSize(2,2).width()*(self.margin()+self.frameWidth())
+ height = 16*self.cellSize().height()+TQSize(2,2).height()*(self.margin()+self.frameWidth())
+ return TQSize(width,height)
def cellSize( self ) :
fm = self.fontMetrics()
- return QSize( fm.maxWidth(), fm.lineSpacing() + 1 )
+ return TQSize( fm.maxWidth(), fm.lineSpacing() + 1 )
def paintEvent( self, e ):
- QFrame.paintEvent(self, e)
- p = QPainter(self)
+ TQFrame.paintEvent(self, e)
+ p = TQPainter(self)
p.setClipRegion(e.region())
- r = QRect(e.rect())
+ r = TQRect(e.rect())
fm = self.fontMetrics()
ml = self.frameWidth() + self.margin() + 1 + max(0,-fm.minLeftBearing())
mt = self.frameWidth() + self.margin()
- cell = QSize((self.width()-15-ml)/16,(self.height()-15-mt)/16)
+ cell = TQSize((self.width()-15-ml)/16,(self.height()-15-mt)/16)
if not cell.width() or not cell.height() :
return
@@ -53,11 +53,11 @@ class FontRowTable( QFrame ):
h = fm.height()
- body = QColor(255,255,192);
- negative = QColor(255,192,192);
- positive = QColor(192,192,255);
- rnegative = QColor(255,128,128);
- rpositive = QColor(128,128,255);
+ body = TQColor(255,255,192);
+ negative = TQColor(255,192,192);
+ positive = TQColor(192,192,255);
+ rnegative = TQColor(255,128,128);
+ rpositive = TQColor(128,128,255);
for j in range(minj, maxj+1, 1) :
for i in range(mini, maxi+1, 1) :
@@ -65,7 +65,7 @@ class FontRowTable( QFrame ):
x = i*cell.width()
y = j*cell.height()
- ch = QChar(j*16+i) #,self.row) # just accept one argument!!!
+ ch = TQChar(j*16+i) #,self.row) # just accept one argument!!!
if fm.inFont(ch) :
w = fm.width(ch)
@@ -75,7 +75,7 @@ class FontRowTable( QFrame ):
x += ml
y += mt+h
- p.fillRect(x,y,w,-h,QBrush(body))
+ p.fillRect(x,y,w,-h,TQBrush(body))
if w :
if l :
@@ -83,15 +83,15 @@ class FontRowTable( QFrame ):
else: sign = positive
if l > 0: lsign = 0
else: lsign = 1
- p.fillRect(x+lsign, y-h/2, abs(l),-h/2, QBrush(sign))
+ p.fillRect(x+lsign, y-h/2, abs(l),-h/2, TQBrush(sign))
if r :
if r < 0: sign = rnegative
else: sign = rpositive
if r > 0: rsign = r
else: rsign = 0
- p.fillRect(x+w-rsign,y+2, abs(r),-h/2, QBrush(sign))
- s = QString( ch )
- p.setPen(QPen(Qt.black))
+ p.fillRect(x+w-rsign,y+2, abs(r),-h/2, TQBrush(sign))
+ s = TQString( ch )
+ p.setPen(TQPen(TQt.black))
p.drawText(x,y,s)
def setRow( self, r ) :
@@ -99,47 +99,47 @@ class FontRowTable( QFrame ):
fm = self.fontMetrics()
str = " minLB=%d minRB=%d maxW=%d" % (fm.minLeftBearing(), fm.minRightBearing(), fm.maxWidth())
- self.emit( PYSIGNAL("fontInformation"), ( QString(str), ) )
+ self.emit( PYSIGNAL("fontInformation"), ( TQString(str), ) )
self.update()
def chooseFont( self ) :
ok = 0
- oldfont = QFont( self.tablefont )
- self.tablefont, ok = QFontDialog.getFont(oldfont, self)
+ oldfont = TQFont( self.tablefont )
+ self.tablefont, ok = TQFontDialog.getFont(oldfont, self)
if ok:
self.setFont(self.tablefont)
else:
self.tablefont = oldfont
-class FontDisplayer( QMainWindow ) :
+class FontDisplayer( TQMainWindow ) :
def __init__( self, parent=None, name=None ):
- QMainWindow.__init__( self, parent, name )
+ TQMainWindow.__init__( self, parent, name )
table = FontRowTable(self)
- controls = QToolBar(self)
+ controls = TQToolBar(self)
- QLabel(self.tr("Row:"), controls)
- self.row = QSpinBox(0,255,1,controls)
+ TQLabel(self.tr("Row:"), controls)
+ self.row = TQSpinBox(0,255,1,controls)
controls.addSeparator()
- fontbutton = QPushButton(self.tr("Font..."), controls)
- status = QStatusBar(self)
+ fontbutton = TQPushButton(self.tr("Font..."), controls)
+ status = TQStatusBar(self)
self.connect( self.row, SIGNAL("valueChanged(int)"), table.setRow )
self.connect( fontbutton, SIGNAL("clicked()"), table.chooseFont )
self.connect( table, PYSIGNAL("fontInformation"),
- status, SLOT("message(const QString&)") )
+ status, SLOT("message(const TQString&)") )
table.setRow(0)
self.setCentralWidget(table)
def main( args ):
# Use an interesting font
- QApplication.setFont(QFont("unifont",16))
- app = QApplication(sys.argv)
+ TQApplication.setFont(TQFont("unifont",16))
+ app = TQApplication(sys.argv)
m = FontDisplayer()
- sh = QSize( m.centralWidget().sizeHint() )
+ sh = TQSize( m.centralWidget().sizeHint() )
m.resize(sh.width(), sh.height() + 3 * m.statusBar().height())
app.setMainWidget(m);
- m.setCaption("Qt Example - QFD");
+ m.setCaption("TQt Example - TQFD");
m.show()
app.exec_loop()
diff --git a/examples3/fonts.py b/examples3/fonts.py
index d3166ce..84dffb4 100755
--- a/examples3/fonts.py
+++ b/examples3/fonts.py
@@ -5,7 +5,7 @@
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
-** This file is part of an example program for Qt. This example
+** This file is part of an example program for TQt. This example
** program may be used, distributed and modified without limitation.
**
***************************************************************************"""
@@ -13,46 +13,46 @@
import sys
from qt import *
-class Viewer( QWidget ):
+class Viewer( TQWidget ):
def __init__( self ):
- QWidget.__init__( self )
+ TQWidget.__init__( self )
self.setFontSubstitutions()
- #greeting_heb = QString.fromUtf8( "\327\251\327\234\327\225\327\235" )
+ #greeting_heb = TQString.fromUtf8( "\327\251\327\234\327\225\327\235" )
greeting_heb = unicode( '\327\251\327\234\327\225\327\235','utf8' )
- #greeting_ru = QString.fromUtf8( "\320\227\320\264\321\200\320\260\320\262\321\201\321\202\320\262\321\203\320\271\321\202\320\265" )
+ #greeting_ru = TQString.fromUtf8( "\320\227\320\264\321\200\320\260\320\262\321\201\321\202\320\262\321\203\320\271\321\202\320\265" )
greeting_ru = unicode('\320\227\320\264\321\200\320\260\320\262\321\201\321\202\320\262\321\203\320\271\321\202\320\265','utf8' )
greeting_en = "Hello"
- self.greetings = QTextView( self, "textview" )
+ self.greetings = TQTextView( self, "textview" )
self.greetings.setText( greeting_en + "\n" +
greeting_ru + "\n" +
greeting_heb )
- self.fontInfo = QTextView( self, "fontinfo" )
+ self.fontInfo = TQTextView( self, "fontinfo" )
self.setDefault()
- self.defaultButton = QPushButton( "Default", self, "pushbutton1" )
- self.defaultButton.setFont( QFont( "times" ) )
+ self.defaultButton = TQPushButton( "Default", self, "pushbutton1" )
+ self.defaultButton.setFont( TQFont( "times" ) )
self.connect( self.defaultButton, SIGNAL("clicked()"), self.setDefault )
- self.sansSerifButton = QPushButton( "Sans Serif", self, "pushbutton2" )
- self.sansSerifButton.setFont( QFont( "Helvetica", 12 ) )
+ self.sansSerifButton = TQPushButton( "Sans Serif", self, "pushbutton2" )
+ self.sansSerifButton.setFont( TQFont( "Helvetica", 12 ) )
self.connect( self.sansSerifButton, SIGNAL("clicked()"), self.setSansSerif )
- self.italicsButton = QPushButton( "Italics", self, "pushbutton3" )
- self.italicsButton.setFont( QFont( "lucida", 12, QFont.Bold, True ) )
+ self.italicsButton = TQPushButton( "Italics", self, "pushbutton3" )
+ self.italicsButton.setFont( TQFont( "lucida", 12, TQFont.Bold, True ) )
self.connect( self.italicsButton, SIGNAL("clicked()"), self.setItalics )
self.layout()
def setDefault( self ):
- font = QFont( "Bavaria" )
+ font = TQFont( "Bavaria" )
font.setPointSize( 24 )
- font.setWeight( QFont.Bold )
+ font.setWeight( TQFont.Bold )
font.setUnderline( True )
self.greetings.setFont( font )
@@ -60,17 +60,17 @@ class Viewer( QWidget ):
self.showFontInfo( font )
def setSansSerif( self ):
- font = QFont( "Newyork", 18 )
- font.setStyleHint( QFont.SansSerif )
+ font = TQFont( "Newyork", 18 )
+ font.setStyleHint( TQFont.SansSerif )
self.greetings.setFont( font )
self.showFontInfo( font )
def setItalics( self ):
- font = QFont( "Tokyo" )
+ font = TQFont( "Tokyo" )
font.setPointSize( 32 )
- font.setWeight( QFont.Bold )
+ font.setWeight( TQFont.Bold )
font.setItalic( True )
self.greetings.setFont( font )
@@ -78,12 +78,12 @@ class Viewer( QWidget ):
self.showFontInfo( font )
def showFontInfo( self, font ):
- info = QFontInfo( font )
+ info = TQFontInfo( font )
messageText = "Font requested: \"" + str(font.family()) + "\" " \
- + str(QString.number( font.pointSize() )) + "pt<BR>" \
+ + str(TQString.number( font.pointSize() )) + "pt<BR>" \
+ "Font used: \"" + str(info.family()) + "\" " \
- + str(QString.number( info.pointSize() )) + "pt<P>"
+ + str(TQString.number( info.pointSize() )) + "pt<P>"
if not self.substitutes.isEmpty() :
messageText += "The following substitutions exist for " + \
@@ -98,24 +98,24 @@ class Viewer( QWidget ):
self.fontInfo.setText( messageText )
def setFontSubstitutions( self ):
- self.substitutes = QStringList()
+ self.substitutes = TQStringList()
self.substitutes.append( "Times" )
self.substitutes.append( "Mincho" )
self.substitutes.append( "Arabic Newspaper" )
self.substitutes.append( "crox" )
- #QFont.insertSubstitutions( "Bavaria", self.substitutes )
- QFont.insertSubstitution( "Bavaria", "Times" )
- QFont.insertSubstitution( "Tokyo", "Lucida" )
+ #TQFont.insertSubstitutions( "Bavaria", self.substitutes )
+ TQFont.insertSubstitution( "Bavaria", "Times" )
+ TQFont.insertSubstitution( "Tokyo", "Lucida" )
- # For those who prefer to use Qt Designer for creating GUIs
+ # For those who prefer to use TQt Designer for creating GUIs
# the following function might not be of particular interest:
# all it does is creating the widget layout.
def layout( self ):
- textViewContainer = QHBoxLayout()
+ textViewContainer = TQHBoxLayout()
textViewContainer.addWidget( self.greetings )
textViewContainer.addWidget( self.fontInfo )
- buttonContainer = QHBoxLayout()
+ buttonContainer = TQHBoxLayout()
buttonContainer.addWidget( self.defaultButton )
buttonContainer.addWidget( self.sansSerifButton )
buttonContainer.addWidget( self.italicsButton )
@@ -131,17 +131,17 @@ class Viewer( QWidget ):
self.sansSerifButton.setFixedHeight( maxButtonHeight )
self.italicsButton.setFixedHeight( maxButtonHeight )
- container = QVBoxLayout( self )
+ container = TQVBoxLayout( self )
container.addLayout( textViewContainer )
container.addLayout( buttonContainer )
self.resize( 700, 250 )
def main( args ):
- app = QApplication(sys.argv) # application object
+ app = TQApplication(sys.argv) # application object
textViewer = Viewer()
- textViewer.setCaption( "Qt Example - Simple QFont Demo" )
+ textViewer.setCaption( "TQt Example - Simple TQFont Demo" )
app.setMainWidget( textViewer )
textViewer.show()
diff --git a/examples3/gears.py b/examples3/gears.py
index c89a7a2..a9f6bba 100755
--- a/examples3/gears.py
+++ b/examples3/gears.py
@@ -129,9 +129,9 @@ def gear(inner_radius,outer_radius,width,teeth,tooth_depth):
glEnd()
##############################################################################
-class GearWidget(QGLWidget):
+class GearWidget(TQGLWidget):
def __init__(self,parent=None,name=None):
- QGLWidget.__init__(self,parent,name)
+ TQGLWidget.__init__(self,parent,name)
self.angle=0.0
self.view_rotx=0.0
@@ -223,11 +223,11 @@ class GearWidget(QGLWidget):
##############################################################################
if __name__=='__main__':
- QApplication.setColorSpec(QApplication.CustomColor)
- app=QApplication(sys.argv)
+ TQApplication.setColorSpec(TQApplication.CustomColor)
+ app=TQApplication(sys.argv)
- if not QGLFormat.hasOpenGL():
- raise 'No Qt OpenGL support.'
+ if not TQGLFormat.hasOpenGL():
+ raise 'No TQt OpenGL support.'
widget=GearWidget()
app.setMainWidget(widget)
diff --git a/examples3/i18n/i18n.py b/examples3/i18n/i18n.py
index 06cc97f..8595d0b 100755
--- a/examples3/i18n/i18n.py
+++ b/examples3/i18n/i18n.py
@@ -9,16 +9,16 @@ from qt import *
from mywidget import MyWidget
-class QVDialog(QDialog):
+class TQVDialog(TQDialog):
def __init__(self, parent=None, name=None, modal=0, flags=0):
- QDialog.__init__(self, parent, name, modal, flags)
+ TQDialog.__init__(self, parent, name, modal, flags)
- self.vb = QVBoxLayout(self, 8)
+ self.vb = TQVBoxLayout(self, 8)
self.vb.setAutoAdd(1)
self.hb = None
self.map = {}
- #self.sm = QSignalMapper(self)
+ #self.sm = TQSignalMapper(self)
self.connect(self, PYSIGNAL('mapped(int)'), self.done)
def addButtons(self, cancel=None, ok=None, mid1=None, mid2=None, mid3=None):
@@ -43,8 +43,8 @@ class QVDialog(QDialog):
def addButton(self, text, result):
if self.hb is None:
- self.hb = QHBox(self)
- c = QPushButton(text, self.hb)
+ self.hb = TQHBox(self)
+ c = TQPushButton(text, self.hb)
self.setMapping(c, result)
self.connect(c, SIGNAL('clicked()'), self.mapit)
@@ -61,13 +61,13 @@ wlist = [] # keep reference to widgets
def showLang(lang):
global translator
- qApp.setPalette(QPalette(QColor(220-randint(0,64),220-randint(0,64),220-randint(0,64))))
+ qApp.setPalette(TQPalette(TQColor(220-randint(0,64),220-randint(0,64),220-randint(0,64))))
language = "mywidget_"+lang+".qm"
- fi = QFileInfo(language)
+ fi = TQFileInfo(language)
if not fi.exists():
- QMessageBox.warning(None, "File error",
+ TQMessageBox.warning(None, "File error",
"Cannot find translation for language: "+lang+\
"\n(try eg. 'de' or 'en')")
return None
@@ -76,16 +76,16 @@ def showLang(lang):
qApp.removeTranslator(translator)
translator = None
- translator = QTranslator(None)
+ translator = TQTranslator(None)
translator.load(language,".")
qApp.installTranslator(translator)
m = MyWidget()
- m.setCaption("PyQt Example - i18n - " + unicode(m.caption()))
+ m.setCaption("PyTQt Example - i18n - " + unicode(m.caption()))
wlist.append(m)
return m
def main(argv):
- app = QApplication(argv)
+ app = TQApplication(argv)
qm = ["cs", "de", "el", "en", "eo", "fr", "it", "jp", "ko", "no", "ru", "zh"]
@@ -94,16 +94,16 @@ def main(argv):
lang = argv[1]
if (len(argv) != 2) or (lang == "all"):
- dlg = QVDialog(None, None, 1)
+ dlg = TQVDialog(None, None, 1)
qmb = []
r = 0
if lang == "all":
r=2
else:
- bg = QButtonGroup(4, Qt.Vertical, "Choose Locales", dlg)
- loc = QTextCodec.locale()
+ bg = TQButtonGroup(4, TQt.Vertical, "Choose Locales", dlg)
+ loc = TQTextCodec.locale()
for i in range(0,len(qm)):
- qmb.append(QCheckBox(qm[i], bg))
+ qmb.append(TQCheckBox(qm[i], bg))
qmb[i].setChecked(str(loc) == qm[i])
dlg.addButtons("Cancel","OK","All")
r = dlg.exec_loop()
@@ -138,7 +138,7 @@ def main(argv):
lang = argv[1]
m = showLang(lang)
app.setMainWidget(m)
- m.setCaption("PyQt Example - i18n")
+ m.setCaption("PyTQt Example - i18n")
m.show()
return app.exec_loop()
diff --git a/examples3/i18n/mywidget.py b/examples3/i18n/mywidget.py
index 60e267a..f69cebf 100644
--- a/examples3/i18n/mywidget.py
+++ b/examples3/i18n/mywidget.py
@@ -2,32 +2,32 @@
from qt import *
-class MyWidget(QMainWindow):
+class MyWidget(TQMainWindow):
def __init__(self, parent=None, name=None):
- QMainWindow.__init__(self, parent, name)
+ TQMainWindow.__init__(self, parent, name)
- self.central = QVBox(self)
+ self.central = TQVBox(self)
self.central.setMargin(5)
self.central.setSpacing(5)
self.setCentralWidget(self.central)
self.setCaption(self.trUtf8("""Internationalization Example"""))
- self.file = QPopupMenu(self)
+ self.file = TQPopupMenu(self)
self.file.insertItem(self.trUtf8("E&xit"), qApp, SLOT("quit()"),
- QKeySequence(self.trUtf8("Ctrl+Q","File|Quit")))
+ TQKeySequence(self.trUtf8("Ctrl+Q","File|Quit")))
self.menuBar().insertItem(self.trUtf8("&File"), self.file)
self.statusBar().message(self.trUtf8('''Language: English'''))
- self.label = QLabel(self.trUtf8("The Main Window"), self.central)
+ self.label = TQLabel(self.trUtf8("The Main Window"), self.central)
- self.gbox = QButtonGroup(1, QGroupBox.Horizontal,
+ self.gbox = TQButtonGroup(1, TQGroupBox.Horizontal,
self.trUtf8("View"), self.central)
- rb = QRadioButton(qApp.translate('MyWidget','Perspective'), self.gbox)
- rb = QRadioButton(qApp.translate('MyWidget','Isometric'), self.gbox)
- rb = QRadioButton(qApp.translate('MyWidget','Oblique'), self.gbox)
+ rb = TQRadioButton(qApp.translate('MyWidget','Perspective'), self.gbox)
+ rb = TQRadioButton(qApp.translate('MyWidget','Isometric'), self.gbox)
+ rb = TQRadioButton(qApp.translate('MyWidget','Oblique'), self.gbox)
self.initChoices(self.central)
@@ -38,10 +38,10 @@ class MyWidget(QMainWindow):
]
def initChoices(self, parent):
- self.lb = QListBox(parent)
+ self.lb = TQListBox(parent)
for ch in self.choices:
self.lb.insertItem(self.trUtf8(ch))
def closeEvent(self, e):
- QWidget.closeEvent(self, e)
+ TQWidget.closeEvent(self, e)
self.emit(PYSIGNAL('closed'), ())
diff --git a/examples3/i18n/mywidget_cs.ts b/examples3/i18n/mywidget_cs.ts
index 4cf61f1..2b82f04 100644
--- a/examples3/i18n/mywidget_cs.ts
+++ b/examples3/i18n/mywidget_cs.ts
@@ -55,14 +55,14 @@
</message>
</context>
<context encoding="UTF-8">
- <name>QAccel</name>
+ <name>TQAccel</name>
<message encoding="UTF-8">
<source>Ctrl</source>
<translation type="obsolete">Ctrl</translation>
</message>
</context>
<context>
- <name>QVDialog</name>
+ <name>TQVDialog</name>
<message>
<source>OK</source>
<translation type="unfinished"></translation>
diff --git a/examples3/i18n/mywidget_de.ts b/examples3/i18n/mywidget_de.ts
index d114b8b..0a60c2b 100644
--- a/examples3/i18n/mywidget_de.ts
+++ b/examples3/i18n/mywidget_de.ts
@@ -56,7 +56,7 @@
</message>
</context>
<context>
- <name>QVDialog</name>
+ <name>TQVDialog</name>
<message>
<source>OK</source>
<translation>OK</translation>
diff --git a/examples3/i18n/mywidget_el.ts b/examples3/i18n/mywidget_el.ts
index 59fb228..0d7a5dc 100644
--- a/examples3/i18n/mywidget_el.ts
+++ b/examples3/i18n/mywidget_el.ts
@@ -55,7 +55,7 @@
</message>
</context>
<context>
- <name>QVDialog</name>
+ <name>TQVDialog</name>
<message>
<source>OK</source>
<translation type="unfinished"></translation>
diff --git a/examples3/i18n/mywidget_en.ts b/examples3/i18n/mywidget_en.ts
index f231669..30a6e66 100644
--- a/examples3/i18n/mywidget_en.ts
+++ b/examples3/i18n/mywidget_en.ts
@@ -56,7 +56,7 @@
</message>
</context>
<context>
- <name>QVDialog</name>
+ <name>TQVDialog</name>
<message>
<source>OK</source>
<translation type="unfinished"></translation>
diff --git a/examples3/i18n/mywidget_eo.ts b/examples3/i18n/mywidget_eo.ts
index 381870d..f4eaef4 100644
--- a/examples3/i18n/mywidget_eo.ts
+++ b/examples3/i18n/mywidget_eo.ts
@@ -59,7 +59,7 @@
</message>
</context>
<context>
- <name>QVDialog</name>
+ <name>TQVDialog</name>
<message>
<source>OK</source>
<translation type="unfinished"></translation>
diff --git a/examples3/i18n/mywidget_fr.ts b/examples3/i18n/mywidget_fr.ts
index a029084..3fa0191 100644
--- a/examples3/i18n/mywidget_fr.ts
+++ b/examples3/i18n/mywidget_fr.ts
@@ -55,7 +55,7 @@
</message>
</context>
<context>
- <name>QVDialog</name>
+ <name>TQVDialog</name>
<message>
<source>OK</source>
<translation type="unfinished"></translation>
diff --git a/examples3/i18n/mywidget_it.ts b/examples3/i18n/mywidget_it.ts
index a450deb..4fa708c 100644
--- a/examples3/i18n/mywidget_it.ts
+++ b/examples3/i18n/mywidget_it.ts
@@ -59,7 +59,7 @@
</message>
</context>
<context>
- <name>QVDialog</name>
+ <name>TQVDialog</name>
<message>
<source>OK</source>
<translation type="unfinished"></translation>
diff --git a/examples3/i18n/mywidget_jp.ts b/examples3/i18n/mywidget_jp.ts
index 2a7345f..029dd0e 100644
--- a/examples3/i18n/mywidget_jp.ts
+++ b/examples3/i18n/mywidget_jp.ts
@@ -55,7 +55,7 @@
</message>
</context>
<context>
- <name>QVDialog</name>
+ <name>TQVDialog</name>
<message>
<source>OK</source>
<translation type="unfinished"></translation>
diff --git a/examples3/i18n/mywidget_ko.ts b/examples3/i18n/mywidget_ko.ts
index acc8f9b..632f8a7 100644
--- a/examples3/i18n/mywidget_ko.ts
+++ b/examples3/i18n/mywidget_ko.ts
@@ -55,7 +55,7 @@
</message>
</context>
<context>
- <name>QVDialog</name>
+ <name>TQVDialog</name>
<message>
<source>OK</source>
<translation type="unfinished"></translation>
diff --git a/examples3/i18n/mywidget_no.ts b/examples3/i18n/mywidget_no.ts
index 341c664..b91293c 100644
--- a/examples3/i18n/mywidget_no.ts
+++ b/examples3/i18n/mywidget_no.ts
@@ -55,7 +55,7 @@
</message>
</context>
<context>
- <name>QVDialog</name>
+ <name>TQVDialog</name>
<message>
<source>OK</source>
<translation type="unfinished"></translation>
diff --git a/examples3/i18n/mywidget_ru.ts b/examples3/i18n/mywidget_ru.ts
index 07070b0..d279ed1 100644
--- a/examples3/i18n/mywidget_ru.ts
+++ b/examples3/i18n/mywidget_ru.ts
@@ -55,7 +55,7 @@
</message>
</context>
<context>
- <name>QVDialog</name>
+ <name>TQVDialog</name>
<message>
<source>OK</source>
<translation type="unfinished"></translation>
diff --git a/examples3/i18n/mywidget_zh.ts b/examples3/i18n/mywidget_zh.ts
index 8b015d6..0dcb2df 100644
--- a/examples3/i18n/mywidget_zh.ts
+++ b/examples3/i18n/mywidget_zh.ts
@@ -55,7 +55,7 @@
</message>
</context>
<context>
- <name>QVDialog</name>
+ <name>TQVDialog</name>
<message>
<source>OK</source>
<translation type="unfinished"></translation>
diff --git a/examples3/lineedits.py b/examples3/lineedits.py
index 7d1a37a..5ff9538 100755
--- a/examples3/lineedits.py
+++ b/examples3/lineedits.py
@@ -5,7 +5,7 @@
#**
#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
#**
-#** This file is part of an example program for PyQt. This example
+#** This file is part of an example program for PyTQt. This example
#** program may be used, distributed and modified without limitation.
#**
#*****************************************************************************/
@@ -16,37 +16,37 @@ from qt import *
TRUE = 1
FALSE = 0
-class LineEdits(QGroupBox):
+class LineEdits(TQGroupBox):
def __init__(self, parent = None, name = None):
- QGroupBox.__init__(self, 0, Qt.Horizontal, "Line Edits", parent, name)
+ TQGroupBox.__init__(self, 0, TQt.Horizontal, "Line Edits", parent, name)
self.setMargin(10)
- box = QVBoxLayout(self.layout())
+ box = TQVBoxLayout(self.layout())
- row1 = QHBoxLayout(box)
+ row1 = TQHBoxLayout(box)
row1.setMargin(5)
- label = QLabel("Echo Mode: ", self)
+ label = TQLabel("Echo Mode: ", self)
row1.addWidget(label)
- combo1 = QComboBox(FALSE, self)
+ combo1 = TQComboBox(FALSE, self)
row1.addWidget(combo1)
combo1.insertItem("Normal", -1)
combo1.insertItem("Password", -1)
combo1.insertItem("No Echo", -1)
self.connect(combo1, SIGNAL("activated(int)"), self.slotEchoChanged)
- self.lined1 = QLineEdit(self)
+ self.lined1 = TQLineEdit(self)
box.addWidget(self.lined1)
- row2 = QHBoxLayout(box)
+ row2 = TQHBoxLayout(box)
row2.setMargin(5)
- label = QLabel("Validator: ", self)
+ label = TQLabel("Validator: ", self)
row2.addWidget(label)
- combo2 = QComboBox(FALSE, self)
+ combo2 = TQComboBox(FALSE, self)
row2.addWidget(combo2)
combo2.insertItem("No Validator", -1)
combo2.insertItem("Integer Validator", -1)
@@ -54,49 +54,49 @@ class LineEdits(QGroupBox):
self.connect(combo2, SIGNAL("activated(int)"), self.slotValidatorChanged)
- self.lined2 = QLineEdit(self)
+ self.lined2 = TQLineEdit(self)
box.addWidget(self.lined2)
- row3 = QHBoxLayout(box)
+ row3 = TQHBoxLayout(box)
row3.setMargin(5)
- label = QLabel("Alignment: ", self)
+ label = TQLabel("Alignment: ", self)
row3.addWidget(label)
- combo3 = QComboBox(FALSE, self)
+ combo3 = TQComboBox(FALSE, self)
row3.addWidget(combo3)
combo3.insertItem("Left", -1)
combo3.insertItem("Centered", -1)
combo3.insertItem("Right", -1)
self.connect(combo3, SIGNAL("activated(int)"), self.slotAlignmentChanged)
- self.lined3 = QLineEdit(self)
+ self.lined3 = TQLineEdit(self)
box.addWidget(self.lined3)
- row4 = QHBox(self)
+ row4 = TQHBox(self)
box.addWidget(row4)
row4.setMargin(5)
- QLabel("Read-Only: ", row4)
+ TQLabel("Read-Only: ", row4)
- combo4 = QComboBox(FALSE, row4)
+ combo4 = TQComboBox(FALSE, row4)
combo4.insertItem("False", -1)
combo4.insertItem("True", -1)
self.connect(combo4, SIGNAL("activated(int)"), self.slotReadOnlyChanged)
- self.lined4 = QLineEdit(self)
+ self.lined4 = TQLineEdit(self)
box.addWidget(self.lined4)
self.lined1.setFocus()
def slotEchoChanged(self, i):
if i == 0:
- self.lined1.setEchoMode(QLineEdit.Normal)
+ self.lined1.setEchoMode(TQLineEdit.Normal)
elif i == 1:
- self.lined1.setEchoMode(QLineEdit.Password)
+ self.lined1.setEchoMode(TQLineEdit.Password)
elif i == 2:
- self.lined1.setEchoMode(QLineEdit.NoEcho)
+ self.lined1.setEchoMode(TQLineEdit.NoEcho)
self.lined1.setFocus()
@@ -104,20 +104,20 @@ class LineEdits(QGroupBox):
if i == 0:
self.lined2.setValidator(None)
elif i == 1:
- self.lined2.setValidator(QIntValidator(self.lined2))
+ self.lined2.setValidator(TQIntValidator(self.lined2))
elif i == 2:
- self.lined2.setValidator(QDoubleValidator(-999.0, 999.0, 2, self.lined2))
+ self.lined2.setValidator(TQDoubleValidator(-999.0, 999.0, 2, self.lined2))
self.lined2.setText("")
self.lined2.setFocus()
def slotAlignmentChanged(self, i):
if i == 0:
- self.lined3.setAlignment(QLineEdit.AlignLeft)
+ self.lined3.setAlignment(TQLineEdit.AlignLeft)
elif i == 1:
- self.lined3.setAlignment(QLineEdit.AlignCenter)
+ self.lined3.setAlignment(TQLineEdit.AlignCenter)
elif i == 2:
- self.lined3.setAlignment(QLineEdit.AlignRight)
+ self.lined3.setAlignment(TQLineEdit.AlignRight)
self.lined3.setFocus()
@@ -131,10 +131,10 @@ class LineEdits(QGroupBox):
if __name__=='__main__':
- app = QApplication( sys.argv )
+ app = TQApplication( sys.argv )
lineedits = LineEdits()
- lineedits.setCaption("Lineedits - PyQt Example")
+ lineedits.setCaption("Lineedits - PyTQt Example")
lineedits.show()
app.setMainWidget(lineedits)
app.exec_loop()
diff --git a/examples3/listbox.py b/examples3/listbox.py
index 624935d..c83add0 100755
--- a/examples3/listbox.py
+++ b/examples3/listbox.py
@@ -5,7 +5,7 @@
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
-** This file is part of an example program for Qt. This example
+** This file is part of an example program for TQt. This example
** program may be used, distributed and modified without limitation.
**
***************************************************************************"""
@@ -16,42 +16,42 @@ from qt import *
FALSE = 0
TRUE = 1
-class ListBoxDemo( QWidget ):
+class ListBoxDemo( TQWidget ):
def __init__( self, parent=None, name=None ):
- QWidget.__init__( self, parent, name )
+ TQWidget.__init__( self, parent, name )
b = FALSE
- g = QGridLayout( self, 2, 2, 6 )
+ g = TQGridLayout( self, 2, 2, 6 )
- g.addWidget( QLabel( "<b>Configuration:</b>", self ), 0, 0 )
- g.addWidget( QLabel( "<b>Result:</b>", self ), 0, 1 )
+ g.addWidget( TQLabel( "<b>Configuration:</b>", self ), 0, 0 )
+ g.addWidget( TQLabel( "<b>Result:</b>", self ), 0, 1 )
- self.l = QListBox( self )
+ self.l = TQListBox( self )
g.addWidget( self.l, 1, 1 )
- self.l.setFocusPolicy( QWidget.StrongFocus )
+ self.l.setFocusPolicy( TQWidget.StrongFocus )
- v = QVBoxLayout( )
+ v = TQVBoxLayout( )
g.addLayout( v, 1, 0 )
- bg = QButtonGroup( self, None )
+ bg = TQButtonGroup( self, None )
- b = QRadioButton( "Fixed number of columns,\n"
+ b = TQRadioButton( "Fixed number of columns,\n"
"as many rows as needed.",
self )
bg.insert( b )
v.addWidget( b )
b.setChecked( TRUE )
self.connect( b, SIGNAL("clicked()"), self.setNumCols )
- h = QHBoxLayout()
+ h = TQHBoxLayout()
v.addLayout( h )
h.addSpacing( 30 )
h.addSpacing( 100 )
- h.addWidget( QLabel( "Columns:", self ) )
- self.columns = QSpinBox( self )
+ h.addWidget( TQLabel( "Columns:", self ) )
+ self.columns = TQSpinBox( self )
h.addWidget( self.columns )
v.addSpacing( 12 )
- b = QRadioButton( "As many columns as fit on-screen,\n"
+ b = TQRadioButton( "As many columns as fit on-screen,\n"
"as many rows as needed.",
self )
bg.insert( b )
@@ -60,24 +60,24 @@ class ListBoxDemo( QWidget ):
v.addSpacing( 12 )
- b = QRadioButton( "Fixed number of rows,\n"
+ b = TQRadioButton( "Fixed number of rows,\n"
"as many columns as needed.",
self )
bg.insert( b )
v.addWidget( b )
self.connect( b, SIGNAL("clicked()"), self.setNumRows )
- h = QHBoxLayout()
+ h = TQHBoxLayout()
v.addLayout( h )
h.addSpacing( 30 )
h.addSpacing( 100 )
- h.addWidget( QLabel( "Rows:", self ) )
- self.rows = QSpinBox( self )
+ h.addWidget( TQLabel( "Rows:", self ) )
+ self.rows = TQSpinBox( self )
self.rows.setEnabled( FALSE )
h.addWidget( self.rows )
v.addSpacing( 12 )
- b = QRadioButton( "As many rows as fit on-screen,\n"
+ b = TQRadioButton( "As many rows as fit on-screen,\n"
"as many columns as needed.",
self )
bg.insert( b )
@@ -86,25 +86,25 @@ class ListBoxDemo( QWidget ):
v.addSpacing( 12 )
- cb = QCheckBox( "Variable-height rows", self )
+ cb = TQCheckBox( "Variable-height rows", self )
cb.setChecked( TRUE )
self.connect( cb, SIGNAL("toggled(bool)"), self.setVariableHeight )
v.addWidget( cb )
v.addSpacing( 6 )
- cb = QCheckBox( "Variable-width columns", self )
+ cb = TQCheckBox( "Variable-width columns", self )
self.connect( cb, SIGNAL("toggled(bool)"), self.setVariableWidth )
v.addWidget( cb )
- cb = QCheckBox( "Extended-Selection", self )
+ cb = TQCheckBox( "Extended-Selection", self )
self.connect( cb, SIGNAL("toggled(bool)"), self.setMultiSelection )
v.addWidget( cb )
- pb = QPushButton( "Sort ascending", self )
+ pb = TQPushButton( "Sort ascending", self )
self.connect( pb, SIGNAL("clicked()"), self.sortAscending )
v.addWidget( pb )
- pb = QPushButton( "Sort descending", self )
+ pb = TQPushButton( "Sort descending", self )
self.connect( pb, SIGNAL("clicked()"), self.sortDescending )
v.addWidget( pb )
@@ -113,7 +113,7 @@ class ListBoxDemo( QWidget ):
i = 0
while i <= 2560:
i+=1
- self.l.insertItem( str(QString.fromLatin1( "Item " )) + str(QString.number( i )), i )
+ self.l.insertItem( str(TQString.fromLatin1( "Item " )) + str(TQString.number( i )), i )
self.columns.setRange( 1, 256 )
self.columns.setValue( 1 )
self.rows.setRange( 1, 256 )
@@ -136,12 +136,12 @@ class ListBoxDemo( QWidget ):
def setRowsByHeight( self ):
self.columns.setEnabled( FALSE )
self.rows.setEnabled( FALSE )
- self.l.setRowMode( QListBox.FitToHeight )
+ self.l.setRowMode( TQListBox.FitToHeight )
def setColsByWidth( self ):
self.columns.setEnabled( FALSE )
self.rows.setEnabled( FALSE )
- self.l.setColumnMode( QListBox.FitToWidth )
+ self.l.setColumnMode( TQListBox.FitToWidth )
def setVariableWidth( self, b ):
self.l.setVariableWidth( b )
@@ -152,9 +152,9 @@ class ListBoxDemo( QWidget ):
def setMultiSelection( self, b ):
self.l.clearSelection()
if b :
- self.l.setSelectionMode( QListBox.Extended )
+ self.l.setSelectionMode( TQListBox.Extended )
else:
- self.l.setSelectionMode( QListBox.Single )
+ self.l.setSelectionMode( TQListBox.Single )
def sortAscending( self ):
self.l.sort( TRUE )
@@ -164,9 +164,9 @@ class ListBoxDemo( QWidget ):
def main( args ):
- a = QApplication( args )
+ a = TQApplication( args )
t = ListBoxDemo()
- t.setCaption( "Qt Example - Listbox" )
+ t.setCaption( "TQt Example - Listbox" )
a.setMainWidget( t )
t.show()
diff --git a/examples3/listboxcombo.py b/examples3/listboxcombo.py
index 6958089..1a39310 100755
--- a/examples3/listboxcombo.py
+++ b/examples3/listboxcombo.py
@@ -5,7 +5,7 @@
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
-** This file is part of an example program for Qt. This example
+** This file is part of an example program for TQt. This example
** program may be used, distributed and modified without limitation.
**
***************************************************************************"""
@@ -16,84 +16,84 @@ from qt import *
FALSE = 0
TRUE = 1
-class ListBoxCombo( QVBox ):
+class ListBoxCombo( TQVBox ):
# Constructor
# Creates child widgets of the ListBoxCombo widget
def __init__( self, parent=None, name=None ):
- QVBox.__init__( self, parent, name )
+ TQVBox.__init__( self, parent, name )
self.setMargin( 5 )
self.setSpacing( 5 )
i = 0
- row1 = QHBox( self )
+ row1 = TQHBox( self )
row1.setSpacing( 5 )
# Create a multi-selection ListBox...
- self.lb1 = QListBox( row1 )
- self.lb1.setSelectionMode( QListBox.Multi )
+ self.lb1 = TQListBox( row1 )
+ self.lb1.setSelectionMode( TQListBox.Multi )
# ...insert a pixmap item...
- xpm = QPixmap( "qtlogo.png" )
- txt = QString()
- QListBoxPixmap( self.lb1, xpm, txt )
+ xpm = TQPixmap( "qtlogo.png" )
+ txt = TQString()
+ TQListBoxPixmap( self.lb1, xpm, txt )
# ...and 100 text items
for i in range(0, 100, 1) :
- xpm = QPixmap()
- txt = QString( "Listbox Item %1" ).arg( i )
+ xpm = TQPixmap()
+ txt = TQString( "Listbox Item %1" ).arg( i )
if not i % 4 :
- xpm = QPixmap( "fileopen.xpm" )
- QListBoxPixmap( self.lb1, xpm, txt )
+ xpm = TQPixmap( "fileopen.xpm" )
+ TQListBoxPixmap( self.lb1, xpm, txt )
# Create a pushbutton...
- arrow1 = QPushButton( " -> ", row1 )
+ arrow1 = TQPushButton( " -> ", row1 )
# ...and connect the clicked SIGNAL with the SLOT slotLeft2Right
self.connect( arrow1, SIGNAL("clicked()"), self.slotLeft2Right )
# create an empty single-selection ListBox
- self.lb2 = QListBox( row1 )
+ self.lb2 = TQListBox( row1 )
- row2 = QHBox( self )
+ row2 = TQHBox( self )
row2.setSpacing( 5 )
- box1 = QVBox( row2 )
+ box1 = TQVBox( row2 )
box1.setSpacing( 5 )
# Create a non-editable Combobox and a label below...
- cb1 = QComboBox( FALSE, box1 )
- self.label1 = QLabel( "Current Item: Combobox Item 0", box1 )
+ cb1 = TQComboBox( FALSE, box1 )
+ self.label1 = TQLabel( "Current Item: Combobox Item 0", box1 )
self.label1.setMaximumHeight( self.label1.sizeHint().height() * 2 )
- self.label1.setFrameStyle( QFrame.Panel | QFrame.Sunken )
+ self.label1.setFrameStyle( TQFrame.Panel | TQFrame.Sunken )
#...and insert 50 items into the Combobox
for i in range( 0, 50, 1 ) :
- txt = str( QString( "Combobox Item %1" ).arg( i ) )
+ txt = str( TQString( "Combobox Item %1" ).arg( i ) )
if i % 9 :
cb1.insertItem( txt )
else :
cb1.listBox().insertItem( MyListBoxItem() )
- box2 = QVBox( row2 )
+ box2 = TQVBox( row2 )
box2.setSpacing( 5 )
# Create an editable Combobox and a label below...
- cb2 = QComboBox( TRUE, box2 )
- self.label2 = QLabel( "Current Item: Combobox Item 0", box2 )
+ cb2 = TQComboBox( TRUE, box2 )
+ self.label2 = TQLabel( "Current Item: Combobox Item 0", box2 )
self.label2.setMaximumHeight( self.label2.sizeHint().height() * 2 )
- self.label2.setFrameStyle( QFrame.Panel | QFrame.Sunken )
+ self.label2.setFrameStyle( TQFrame.Panel | TQFrame.Sunken )
# ... and insert 50 items into the Combobox
for i in range(0, 50, 1 ) :
- txt = str(QString( "Combobox Item %1" ).arg( i ))
+ txt = str(TQString( "Combobox Item %1" ).arg( i ))
if not i % 4 :
- cb2.insertItem( QPixmap( "fileopen.xpm" ), txt )
+ cb2.insertItem( TQPixmap( "fileopen.xpm" ), txt )
else :
cb2.insertItem( txt )
# Connect the activated SIGNALs of the Comboboxes with SLOTs
- self.connect( cb1, SIGNAL("activated( const QString & )"), self.slotCombo1Activated )
- self.connect( cb2, SIGNAL("activated( const QString & )"), self.slotCombo2Activated )
+ self.connect( cb1, SIGNAL("activated( const TQString & )"), self.slotCombo1Activated )
+ self.connect( cb2, SIGNAL("activated( const TQString & )"), self.slotCombo2Activated )
""" SLOT slotLeft2Right
* Copies all selected items of the first ListBox into the second ListBox
@@ -112,24 +112,24 @@ class ListBoxCombo( QVBox ):
elif item.text().isEmpty() :
self.lb2.insertItem( item.pixmap() )
- """ SLOT slotCombo1Activated( const QString &s )
+ """ SLOT slotCombo1Activated( const TQString &s )
* Sets the text of the item which the user just selected in the
* first Combobox (and is now the value of s) to the first Label.
"""
def slotCombo1Activated( self, s ) :
- self.label1.setText( str(QString( "Current Item: %1" ).arg( s ) ) )
+ self.label1.setText( str(TQString( "Current Item: %1" ).arg( s ) ) )
- """ SLOT slotCombo2Activated( const QString &s )
+ """ SLOT slotCombo2Activated( const TQString &s )
* Sets the text of the item which the user just selected in the
* second Combobox (and is now the value of s) to the second Label.
"""
def slotCombo2Activated( self, s ) :
- self.label2.setText( str(QString( "Current Item: %1" ).arg( s ) ) )
+ self.label2.setText( str(TQString( "Current Item: %1" ).arg( s ) ) )
-class MyListBoxItem( QListBoxItem ):
+class MyListBoxItem( TQListBoxItem ):
def __init__( self, parent=None, name=None ):
- QListBoxItem.__init__( self, parent, name )
+ TQListBoxItem.__init__( self, parent, name )
self.setCustomHighlighting( TRUE )
def paint( self, painter ):
@@ -137,27 +137,27 @@ class MyListBoxItem( QListBoxItem ):
in_list_box = 0
if self.listBox() and self.listBox().viewport() == painter.device():
in_list_box = 1
- r = QRect( 0, 0, self.width( self.listBox() ), self.height( self.listBox() ) )
- brush = QBrush( Qt.red, Qt.SolidPattern )
+ r = TQRect( 0, 0, self.width( self.listBox() ), self.height( self.listBox() ) )
+ brush = TQBrush( TQt.red, TQt.SolidPattern )
if in_list_box and isSelected():
painter.eraseRect( r )
painter.fillRect( 5, 5, self.width( self.listBox() ) - 10, self.height( self.listBox() ) - 10, brush )
if in_list_box and isCurrent():
- self.listBox().style().drawPrimitive( QStyle.PE_FocusRect, painter, r, self.listBox().colorGroup() )
+ self.listBox().style().drawPrimitive( TQStyle.PE_FocusRect, painter, r, self.listBox().colorGroup() )
- def width( self, QListBox ):
+ def width( self, TQListBox ):
return 100
- def height( self, QListBox ):
+ def height( self, TQListBox ):
return 16
def main( args ):
- a = QApplication( args )
+ a = TQApplication( args )
listboxcombo = ListBoxCombo()
listboxcombo.resize( 400, 270 )
- listboxcombo.setCaption( "Qt Example - Listboxes and Comboboxes" )
+ listboxcombo.setCaption( "TQt Example - Listboxes and Comboboxes" )
a.setMainWidget( listboxcombo )
listboxcombo.show();
diff --git a/examples3/marble.png b/examples3/marble.png
index 49ea309..c81145c 100644
--- a/examples3/marble.png
+++ b/examples3/marble.png
Binary files differ
diff --git a/examples3/mdi.py b/examples3/mdi.py
index 2c1d121..3ff7e2e 100755
--- a/examples3/mdi.py
+++ b/examples3/mdi.py
@@ -118,39 +118,39 @@ You can also select the <b>Print</b> command from the <b>File</b> menu.'''
True=1
False=0
-class ApplicationWindow(QMainWindow):
+class ApplicationWindow(TQMainWindow):
def __init__(self):
- QMainWindow.__init__(self,None,'example application main window',Qt.WDestructiveClose)
+ TQMainWindow.__init__(self,None,'example application main window',TQt.WDestructiveClose)
- self.filename = QString.null
- self.printer = QPrinter()
+ self.filename = TQString.null
+ self.printer = TQPrinter()
- self.fileTools = QToolBar(self,'file operations')
+ self.fileTools = TQToolBar(self,'file operations')
- openIcon = QPixmap(fileopen)
- self.fileOpen = QToolButton(QIconSet(openIcon),'Open File',QString.null,self.load,self.fileTools,'open file')
+ openIcon = TQPixmap(fileopen)
+ self.fileOpen = TQToolButton(TQIconSet(openIcon),'Open File',TQString.null,self.load,self.fileTools,'open file')
- saveIcon = QPixmap(filesave)
- self.fileSave = QToolButton(QIconSet(saveIcon),'Save File',QString.null,self.save,self.fileTools,'save file')
- printIcon = QPixmap(fileprint)
- self.filePrint = QToolButton(QIconSet(printIcon),'Print File',QString.null,self.printDoc,self.fileTools,'print file')
+ saveIcon = TQPixmap(filesave)
+ self.fileSave = TQToolButton(TQIconSet(saveIcon),'Save File',TQString.null,self.save,self.fileTools,'save file')
+ printIcon = TQPixmap(fileprint)
+ self.filePrint = TQToolButton(TQIconSet(printIcon),'Print File',TQString.null,self.printDoc,self.fileTools,'print file')
- QWhatsThis.whatsThisButton(self.fileTools)
+ TQWhatsThis.whatsThisButton(self.fileTools)
- QWhatsThis.add(self.fileOpen,fileOpenText)
- QMimeSourceFactory.defaultFactory().setPixmap('fileopen',openIcon)
- QWhatsThis.add(self.fileSave,fileSaveText)
- QWhatsThis.add(self.filePrint,filePrintText)
+ TQWhatsThis.add(self.fileOpen,fileOpenText)
+ TQMimeSourceFactory.defaultFactory().setPixmap('fileopen',openIcon)
+ TQWhatsThis.add(self.fileSave,fileSaveText)
+ TQWhatsThis.add(self.filePrint,filePrintText)
- self.file = QPopupMenu(self)
+ self.file = TQPopupMenu(self)
self.menuBar().insertItem('&File',self.file)
- self.file.insertItem('&New',self.newDoc,Qt.CTRL + Qt.Key_N)
+ self.file.insertItem('&New',self.newDoc,TQt.CTRL + TQt.Key_N)
- id = self.file.insertItem(QIconSet(openIcon),'&Open',self.load,Qt.CTRL + Qt.Key_O)
+ id = self.file.insertItem(TQIconSet(openIcon),'&Open',self.load,TQt.CTRL + TQt.Key_O)
self.file.setWhatsThis(id,fileOpenText)
- id = self.file.insertItem(QIconSet(saveIcon),'&Save',self.save,Qt.CTRL + Qt.Key_S)
+ id = self.file.insertItem(TQIconSet(saveIcon),'&Save',self.save,TQt.CTRL + TQt.Key_S)
self.file.setWhatsThis(id,fileSaveText)
id = self.file.insertItem('Save &as',self.saveAs)
@@ -158,35 +158,35 @@ class ApplicationWindow(QMainWindow):
self.file.insertSeparator()
- id = self.file.insertItem(QIconSet(printIcon),'&Print',self.printDoc,Qt.CTRL + Qt.Key_P)
+ id = self.file.insertItem(TQIconSet(printIcon),'&Print',self.printDoc,TQt.CTRL + TQt.Key_P)
self.file.setWhatsThis(id,filePrintText)
self.file.insertSeparator()
- self.file.insertItem('&Close',self,SLOT('close()'),Qt.CTRL + Qt.Key_W)
- self.file.insertItem('&Quit',qApp,SLOT('closeAllWindows()'),Qt.CTRL + Qt.Key_Q)
+ self.file.insertItem('&Close',self,SLOT('close()'),TQt.CTRL + TQt.Key_W)
+ self.file.insertItem('&Quit',qApp,SLOT('closeAllWindows()'),TQt.CTRL + TQt.Key_Q)
self.menuBar().insertSeparator()
- self.windows = QPopupMenu( self )
+ self.windows = TQPopupMenu( self )
self.windows.setCheckable( True )
self.connect( self.windows, SIGNAL( "aboutToShow()" ),
self.windowsMenuAboutToShow )
self.menuBar().insertItem( "&Windows", self.windows )
- self.help = QPopupMenu(self)
+ self.help = TQPopupMenu(self)
self.menuBar().insertSeparator()
self.menuBar().insertItem('&Help',self.help)
- self.help.insertItem('&About',self.about,Qt.Key_F1)
- self.help.insertItem('About &Qt',self.aboutQt)
+ self.help.insertItem('&About',self.about,TQt.Key_F1)
+ self.help.insertItem('About &TQt',self.aboutTQt)
self.help.insertSeparator()
- self.help.insertItem( "What's &This", self, SLOT("whatsThis()"), Qt.SHIFT+Qt.Key_F1)
+ self.help.insertItem( "What's &This", self, SLOT("whatsThis()"), TQt.SHIFT+TQt.Key_F1)
self.menuBar().insertSeparator()
- self.vb = QVBox( self )
- self.vb.setFrameStyle( QFrame.StyledPanel | QFrame.Sunken )
- self.ws = QWorkspace( self.vb )
+ self.vb = TQVBox( self )
+ self.vb.setFrameStyle( TQFrame.StyledPanel | TQFrame.Sunken )
+ self.ws = TQWorkspace( self.vb )
self.ws.setScrollBarsEnabled( True )
self.setCentralWidget( self.vb )
@@ -194,10 +194,10 @@ class ApplicationWindow(QMainWindow):
#self.resize(450,600)
def newDoc(self):
- w = MDIWindow( self.ws, "", Qt.WDestructiveClose )
- self.connect( w, PYSIGNAL( "message" ), self.statusBar(), SLOT( "message(const QString&, int )") )
+ w = MDIWindow( self.ws, "", TQt.WDestructiveClose )
+ self.connect( w, PYSIGNAL( "message" ), self.statusBar(), SLOT( "message(const TQString&, int )") )
w.setCaption("unnamed document")
- w.setIcon( QPixmap(document) )
+ w.setIcon( TQPixmap(document) )
# show the very first window in maximized mode
if len(self.ws.windowList())==0:
w.showMaximized()
@@ -206,7 +206,7 @@ class ApplicationWindow(QMainWindow):
return w
def load(self):
- fn = QFileDialog.getOpenFileName( QString.null, QString.null, self )
+ fn = TQFileDialog.getOpenFileName( TQString.null, TQString.null, self )
if not fn.isEmpty():
w = self.newDoc()
w.load( fn )
@@ -234,12 +234,12 @@ class ApplicationWindow(QMainWindow):
m.close()
def about(self):
- QMessageBox.about( self, "Qt Application Example",
+ TQMessageBox.about( self, "TQt Application Example",
"This example demonstrates simple use of\n "
- "Qt's Multiple Document Interface (MDI).")
+ "TQt's Multiple Document Interface (MDI).")
- def aboutQt(self):
- QMessageBox.aboutQt( self, "Qt Application Example" )
+ def aboutTQt(self):
+ TQMessageBox.aboutTQt( self, "TQt Application Example" )
def windowsMenuAboutToShow(self):
self.windows.clear()
@@ -264,42 +264,42 @@ class ApplicationWindow(QMainWindow):
w.setFocus()
-class MDIWindow( QMainWindow):
+class MDIWindow( TQMainWindow):
def __init__(self,parent, name, wflags ):
- QMainWindow.__init__(self,parent, name, wflags )
+ TQMainWindow.__init__(self,parent, name, wflags )
self.mmovie = 0
- self.medit = QMultiLineEdit( self )
+ self.medit = TQMultiLineEdit( self )
self.setFocusProxy( self.medit )
self.setCentralWidget( self.medit );
def load(self, fn ):
self.filename = fn
- self.f=QFile( self.filename )
+ self.f=TQFile( self.filename )
if not self.f.open( IO_ReadOnly ):
return
if fn.contains(".gif"):
- tmp=QWidget(self)
+ tmp=TQWidget(self)
self.setFocusProxy(tmp)
self.setCentralWidget(tmp)
self.medit.hide()
del self.medit
- qm=QMovie(fn)
+ qm=TQMovie(fn)
#ifdef Q_WS_QWS // temporary speed-test hack
#qm->setDisplayWidget(tmp);
#endif
- tmp.setBackgroundMode(QWidget.NoBackground)
+ tmp.setBackgroundMode(TQWidget.NoBackground)
tmp.show()
self.mmovie=qm
else :
self.mmovie = 0
- t=QTextStream(self.f)
+ t=TQTextStream(self.f)
s = t.read()
self.medit.setText( s )
self.f.close()
self.setCaption( self.filename )
- self.emit(PYSIGNAL( "message"),(QString("Loaded document %1").arg(self.filename),2000 ))
+ self.emit(PYSIGNAL( "message"),(TQString("Loaded document %1").arg(self.filename),2000 ))
def save(self):
if self.filename.isEmpty():
@@ -308,53 +308,53 @@ class MDIWindow( QMainWindow):
text = self.medit.text()
output=open(str(self.filename),'w')
output.write(str(text))
- #emit message( QString("Could not write to %1").arg(filename), 2000 );
+ #emit message( TQString("Could not write to %1").arg(filename), 2000 );
#return
output.close()
self.setCaption(self.filename)
- self.emit(PYSIGNAL( "message"),(QString("File %1 saved").arg(self.filename),2000 ))
+ self.emit(PYSIGNAL( "message"),(TQString("File %1 saved").arg(self.filename),2000 ))
def saveAs(self):
- fn = QFileDialog.getSaveFileName( self.filename, QString.null, self )
+ fn = TQFileDialog.getSaveFileName( self.filename, TQString.null, self )
if not fn.isEmpty():
self.filename = fn
self.save()
else :
- self.emit(PYSIGNAL( "message"),(QString("Saving aborted"),2000 ))
+ self.emit(PYSIGNAL( "message"),(TQString("Saving aborted"),2000 ))
def printDoc(self,printer):
Margin = 10
pageNo = 1
if printer.setup(self):
- self.emit(PYSIGNAL( "message"),(QString("Printing..."),2000 ))
- p = QPainter()
+ self.emit(PYSIGNAL( "message"),(TQString("Printing..."),2000 ))
+ p = TQPainter()
p.begin(printer)
p.setFont(self.medit.font())
yPos = 0
fm = p.fontMetrics()
- metrics = QPaintDeviceMetrics(printer)
+ metrics = TQPaintDeviceMetrics(printer)
for i in range(self.medit.numLines()):
if Margin + yPos > metrics.height() - Margin:
pageNo = pageNo + 1
- self.emit(PYSIGNAL( "message"),(QString("Printing (page %1) ...").arg(pageNo),2000 ))
+ self.emit(PYSIGNAL( "message"),(TQString("Printing (page %1) ...").arg(pageNo),2000 ))
printer.newPage()
yPos = 0
- p.drawText(Margin,Margin + yPos,metrics.width(),fm.lineSpacing(),Qt.ExpandTabs | Qt.DontClip,self.medit.textLine(i))
+ p.drawText(Margin,Margin + yPos,metrics.width(),fm.lineSpacing(),TQt.ExpandTabs | TQt.DontClip,self.medit.textLine(i))
yPos = yPos + fm.lineSpacing()
p.end()
- self.emit(PYSIGNAL( "message"),(QString("Printing completed"),2000 ))
+ self.emit(PYSIGNAL( "message"),(TQString("Printing completed"),2000 ))
else:
- self.emit(PYSIGNAL( "message"),(QString("Printing aborted"),2000 ))
+ self.emit(PYSIGNAL( "message"),(TQString("Printing aborted"),2000 ))
if __name__=='__main__':
- a = QApplication(sys.argv)
+ a = TQApplication(sys.argv)
mw = ApplicationWindow()
- mw.setCaption("PyQt Example - Multiple Documents Interface (MDI)")
+ mw.setCaption("PyTQt Example - Multiple Documents Interface (MDI)")
mw.show()
a.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()'))
a.exec_loop()
diff --git a/examples3/menu.py b/examples3/menu.py
index baab2a6..bb3f998 100755
--- a/examples3/menu.py
+++ b/examples3/menu.py
@@ -5,7 +5,7 @@
#**
#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
#**
-#** This file is part of an example program for PyQt. This example
+#** This file is part of an example program for PyTQt. This example
#** program may be used, distributed and modified without limitation.
#**
#*****************************************************************************/
@@ -92,30 +92,30 @@ p3_xpm = [
# Auxiliary class to provide fancy menu items with different fonts.
# Used for the "bold" and "underline" menu items in the options menu.
-class MyMenuItem( QCustomMenuItem ):
+class MyMenuItem( TQCustomMenuItem ):
def __init__( self, s, f ):
- QCustomMenuItem.__init__( self )
+ TQCustomMenuItem.__init__( self )
self.string = s
self.font = f
def paint( self, p, cg, act, enabled, x, y, w, h ) :
p.setFont ( self.font )
- p.drawText( x, y, w, h, Qt.AlignLeft | Qt.AlignVCenter | Qt.ShowPrefix | Qt.DontClip, self.string )
+ p.drawText( x, y, w, h, TQt.AlignLeft | TQt.AlignVCenter | TQt.ShowPrefix | TQt.DontClip, self.string )
def sizeHint( self ):
- return QFontMetrics( self.font ).size( Qt.AlignLeft | Qt.AlignVCenter | Qt.ShowPrefix | Qt.DontClip, self.string )
+ return TQFontMetrics( self.font ).size( TQt.AlignLeft | TQt.AlignVCenter | TQt.ShowPrefix | TQt.DontClip, self.string )
# Implementation of MenuExample class
-class MenuExample( QWidget ):
+class MenuExample( TQWidget ):
def __init__( self, parent=None, name=None ):
- QWidget.__init__( self, parent, name )
- self.p1 = QIconSet( QPixmap ( p1_xpm ) )
- self.p2 = QIconSet( QPixmap ( p2_xpm ) )
- self.p3 = QIconSet( QPixmap ( p3_xpm ) )
+ TQWidget.__init__( self, parent, name )
+ self.p1 = TQIconSet( TQPixmap ( p1_xpm ) )
+ self.p2 = TQIconSet( TQPixmap ( p2_xpm ) )
+ self.p3 = TQIconSet( TQPixmap ( p3_xpm ) )
- self.printer = QPopupMenu( self )
+ self.printer = TQPopupMenu( self )
self.printer.insertTearOffHandle()
self.printer.insertItem( "&Print to printer", self.printDoc )
self.printer.insertItem( "Print to &file", self.printFile )
@@ -123,23 +123,23 @@ class MenuExample( QWidget ):
self.printer.insertSeparator()
self.printer.insertItem( "Printer &Setup", self.printerSetup )
- self.file = QPopupMenu( self )
- self.file.insertItem( self.p1, "&Open", self.open, Qt.CTRL+Qt.Key_O )
- self.file.insertItem( self.p2, "&New", self.news, Qt.CTRL+Qt.Key_N )
- self.file.insertItem( self.p3, "&Save", self.save, Qt.CTRL+Qt.Key_S )
- self.file.insertItem( "&Close", self.closeDoc, Qt.CTRL+Qt.Key_W )
+ self.file = TQPopupMenu( self )
+ self.file.insertItem( self.p1, "&Open", self.open, TQt.CTRL+TQt.Key_O )
+ self.file.insertItem( self.p2, "&New", self.news, TQt.CTRL+TQt.Key_N )
+ self.file.insertItem( self.p3, "&Save", self.save, TQt.CTRL+TQt.Key_S )
+ self.file.insertItem( "&Close", self.closeDoc, TQt.CTRL+TQt.Key_W )
self.file.insertSeparator()
- self.file.insertItem( "&Print", self.printer, Qt.CTRL+Qt.Key_P )
+ self.file.insertItem( "&Print", self.printer, TQt.CTRL+TQt.Key_P )
self.file.insertSeparator()
- self.file.insertItem( "E&xit", qApp, SLOT( "quit()" ), Qt.CTRL+Qt.Key_Q )
+ self.file.insertItem( "E&xit", qApp, SLOT( "quit()" ), TQt.CTRL+TQt.Key_Q )
- self.edit = QPopupMenu( self )
+ self.edit = TQPopupMenu( self )
undoID = self.edit.insertItem( "&Undo", self.undo )
redoID = self.edit.insertItem( "&Redo", self.redo )
self.edit.setItemEnabled( undoID, FALSE )
self.edit.setItemEnabled( redoID, FALSE )
- self.options = QPopupMenu( self )
+ self.options = TQPopupMenu( self )
self.options.insertTearOffHandle()
self.options.setCaption( "Options" )
self.options.insertItem( "&Normal Font", self.normal )
@@ -149,63 +149,63 @@ class MenuExample( QWidget ):
f = self.options.font()
f.setBold( TRUE )
self.boldID = self.options.insertItem( MyMenuItem( "Bold", f ) )
- self.options.setAccel( Qt.CTRL+Qt.Key_B, self.boldID )
+ self.options.setAccel( TQt.CTRL+TQt.Key_B, self.boldID )
self.options.connectItem( self.boldID, self.bold )
f = self.options.font()
f.setUnderline( TRUE )
self.underlineID = self.options.insertItem( MyMenuItem( "Underline", f ) )
- self.options.setAccel( Qt.CTRL+Qt.Key_U, self.underlineID )
+ self.options.setAccel( TQt.CTRL+TQt.Key_U, self.underlineID )
self.options.connectItem( self.underlineID, self.underline )
self.isBold = FALSE
self.isUnderline = FALSE
self.options.setCheckable( TRUE )
- self.help = QPopupMenu( self )
- self.help.insertItem( "&About", self.about, Qt.CTRL+Qt.Key_H )
- self.help.insertItem( "About &Qt", self.aboutQt )
+ self.help = TQPopupMenu( self )
+ self.help.insertItem( "&About", self.about, TQt.CTRL+TQt.Key_H )
+ self.help.insertItem( "About &TQt", self.aboutTQt )
- self.menu = QMenuBar( self )
+ self.menu = TQMenuBar( self )
self.menu.insertItem( "&File", self.file )
self.menu.insertItem( "&Edit", self.edit )
self.menu.insertItem( "&Options", self.options )
self.menu.insertSeparator()
self.menu.insertItem( "&Help", self.help )
- self.menu.setSeparator( QMenuBar.InWindowsStyle )
+ self.menu.setSeparator( TQMenuBar.InWindowsStyle )
- msg = QLabel( self )
+ msg = TQLabel( self )
msg.setText( "A context menu is available.\n"
"Invoke it by right-clicking or by"
" pressing the 'context' button." )
msg.setGeometry( 0, self.height() - 60, self.width(), 60 )
- msg.setAlignment( Qt.AlignCenter )
+ msg.setAlignment( TQt.AlignCenter )
- self.label = QLabel( self )
+ self.label = TQLabel( self )
self.label.setGeometry( 20, self.rect().center().y()-20, self.width()-40, 40 )
- self.label.setFrameStyle( QFrame.Box | QFrame.Raised )
+ self.label.setFrameStyle( TQFrame.Box | TQFrame.Raised )
self.label.setLineWidth( 1 )
- self.label.setAlignment( Qt.AlignCenter )
+ self.label.setAlignment( TQt.AlignCenter )
- self.connect( self, PYSIGNAL( "explain" ), self.label, SLOT( "setText(const QString &" ) )
+ self.connect( self, PYSIGNAL( "explain" ), self.label, SLOT( "setText(const TQString &" ) )
self.setMinimumSize( 100, 80 )
- self.setFocusPolicy( QWidget.ClickFocus )
+ self.setFocusPolicy( TQWidget.ClickFocus )
def contextMenuEvent(self, cmev):
- contextMenu = QPopupMenu( self )
- caption = QLabel( "<font color=darkblue><u><b>Context Menu</b></u></font>", self )
- caption.setAlignment( Qt.AlignCenter )
+ contextMenu = TQPopupMenu( self )
+ caption = TQLabel( "<font color=darkblue><u><b>Context Menu</b></u></font>", self )
+ caption.setAlignment( TQt.AlignCenter )
contextMenu.insertItem( caption )
- contextMenu.insertItem( "&New", self.news, Qt.CTRL+Qt.Key_N )
- contextMenu.insertItem( "&Open...", self.open, Qt.CTRL+Qt.Key_O )
- contextMenu.insertItem( "&Save", self.save, Qt.CTRL+Qt.Key_S )
- submenu = QPopupMenu( self )
+ contextMenu.insertItem( "&New", self.news, TQt.CTRL+TQt.Key_N )
+ contextMenu.insertItem( "&Open...", self.open, TQt.CTRL+TQt.Key_O )
+ contextMenu.insertItem( "&Save", self.save, TQt.CTRL+TQt.Key_S )
+ submenu = TQPopupMenu( self )
submenu.insertItem( "&Print to printer", self.printDoc )
submenu.insertItem( "Print to &file", self.printFile )
submenu.insertItem( "Print to fa&x", self.fax )
contextMenu.insertItem( "&Print", submenu )
- contextMenu.exec_loop( QCursor.pos() )
+ contextMenu.exec_loop( TQCursor.pos() )
def open( self ):
self.emit( PYSIGNAL( "explain" ), ( "File/Open selected", ) )
@@ -228,7 +228,7 @@ class MenuExample( QWidget ):
def normal( self ):
self.isBold = FALSE
self.isUnderline = FALSE
- font = QFont()
+ font = TQFont()
self.label.setFont( font )
self.options.setItemChecked( self.boldID, self.isBold )
self.options.setItemChecked( self.underlineID, self.isUnderline )
@@ -236,7 +236,7 @@ class MenuExample( QWidget ):
def bold( self ):
self.isBold = not self.isBold
- font = QFont()
+ font = TQFont()
font.setBold( self.isBold )
font.setUnderline( self.isUnderline )
self.label.setFont( font )
@@ -245,7 +245,7 @@ class MenuExample( QWidget ):
def underline( self ):
self.isUnderline = not self.isUnderline
- font = QFont()
+ font = TQFont()
font.setBold( self.isBold )
font.setUnderline( self.isUnderline )
self.label.setFont( font )
@@ -253,13 +253,13 @@ class MenuExample( QWidget ):
self.emit( PYSIGNAL("explain"), ( "Options/Underline selected", ))
def about( self ):
- QMessageBox.about( self, "Qt Menu Example",
- "This example demonstrates simple use of Qt menus.\n"
+ TQMessageBox.about( self, "TQt Menu Example",
+ "This example demonstrates simple use of TQt menus.\n"
"You can cut and paste lines from it to your own\n"
"programs." )
- def aboutQt( self ):
- QMessageBox.aboutQt( self, "Qt Menu Example" )
+ def aboutTQt( self ):
+ TQMessageBox.aboutTQt( self, "TQt Menu Example" )
def printDoc( self ):
self.emit( PYSIGNAL( "explain" ), ( "File/Printer/Print selected", ) )
@@ -277,10 +277,10 @@ class MenuExample( QWidget ):
self.label.setGeometry( 20, self.rect().center().y()-20, self.width()-40, 40 )
-a = QApplication( sys.argv )
+a = TQApplication( sys.argv )
m = MenuExample()
-m.setCaption( "Qt Examples - Menus" )
+m.setCaption( "TQt Examples - Menus" )
a.setMainWidget( m )
m.show()
a.exec_loop()
diff --git a/examples3/progress.py b/examples3/progress.py
index 001be45..cb852b9 100755
--- a/examples3/progress.py
+++ b/examples3/progress.py
@@ -5,10 +5,10 @@
#**
#** Copyright (C) 1992-2005 Trolltech AS. All rights reserved.
#**
-#** This file is part of an example program for Qt. This example
+#** This file is part of an example program for TQt. This example
#** program may be used, distributed and modified without limitation.
#**
-#** Converted to PyQt3 by Hans-Peter Jansen <hpj@urpla.net>
+#** Converted to PyTQt3 by Hans-Peter Jansen <hpj@urpla.net>
#**
#*****************************************************************************/
@@ -16,11 +16,11 @@ import sys
from qt import *
from random import randint
-class AnimatedThingy(QLabel):
+class AnimatedThingy(TQLabel):
def __init__(self, parent, s):
- QLabel.__init__(self, parent)
- self.label = QString(s)
- self.setEraseColor(Qt.white)
+ TQLabel.__init__(self, parent)
+ self.label = TQString(s)
+ self.setEraseColor(TQt.white)
self.label.append("\n... and wasting CPU\nwith this animation!\n")
self.step = 0
self.nqix = 10
@@ -41,14 +41,14 @@ class AnimatedThingy(QLabel):
def show(self):
if not self.isVisible():
self.startTimer(self.tdelay)
- QWidget.show(self)
+ TQWidget.show(self)
def hide(self):
- QWidget.hide(self)
+ TQWidget.hide(self)
self.killTimers()
def sizeHint(self):
- return QSize(120, 100)
+ return TQSize(120, 100)
def timerEvent(self, e):
p, pn = self._painter()
@@ -77,24 +77,24 @@ class AnimatedThingy(QLabel):
self._drawtxt(p)
def _painter(self):
- p = QPainter(self)
- # we need to create a new pen from p.pen() with QPen() in order
+ p = TQPainter(self)
+ # we need to create a new pen from p.pen() with TQPen() in order
# to make it fully functional (changes are discarded otherwise)
- pn = QPen(p.pen())
+ pn = TQPen(p.pen())
pn.setWidth(self.lwidth)
p.setPen(pn)
return p, pn
def _drawqix(self, p, pn, step):
# rainbow effect
- pn.setColor(QColor((step * 255)/self.nqix, 255, 255, QColor.Hsv))
+ pn.setColor(TQColor((step * 255)/self.nqix, 255, 255, TQColor.Hsv))
p.setPen(pn)
p.drawLine(self.ox[step][0], self.oy[step][0],
self.ox[step][1], self.oy[step][1])
def _drawtxt(self, p):
p.setPen(self.colorGroup().text())
- p.drawText(self.rect(), Qt.AlignCenter, self.label)
+ p.drawText(self.rect(), TQt.AlignCenter, self.label)
def _inc(self, x, dx, b):
x += dx
@@ -107,9 +107,9 @@ class AnimatedThingy(QLabel):
return x, dx
-class CPUWaster(QWidget):
+class CPUWaster(TQWidget):
def __init__(self):
- QWidget.__init__(self)
+ TQWidget.__init__(self)
self.first_draw_item = 1000
self.last_draw_item = 1006
self.rects = 0
@@ -117,38 +117,38 @@ class CPUWaster(QWidget):
self.default_label = 0
self.got_stop = False
self.pb = None # non modal progress dialog
- self.menubar = menubar = QMenuBar(self, "menu")
- self.file_ = file_ = QPopupMenu()
+ self.menubar = menubar = TQMenuBar(self, "menu")
+ self.file_ = file_ = TQPopupMenu()
menubar.insertItem("&File", file_)
for i in range(self.first_draw_item, self.last_draw_item + 1):
file_.insertItem(self.drawItemText(i), i)
- file_.setAccel(QKeySequence(
+ file_.setAccel(TQKeySequence(
"Ctrl+%s" % (i - self.first_draw_item)), i)
self.connect(menubar, SIGNAL("activated(int)"), self.doMenuItem)
file_.insertSeparator()
- file_.insertItem("Quit", qApp, SLOT("quit()"), QKeySequence("Ctrl+Q"))
- self.options = options = QPopupMenu()
+ file_.insertItem("Quit", qApp, SLOT("quit()"), TQKeySequence("Ctrl+Q"))
+ self.options = options = TQPopupMenu()
menubar.insertItem("&Options", options)
self.ld_id = options.insertItem("Loop driven", self.loopDriven,
- QKeySequence("Alt+L"))
+ TQKeySequence("Alt+L"))
self.td_id = options.insertItem("Timer driven", self.timerDriven,
- QKeySequence("Alt+T"))
+ TQKeySequence("Alt+T"))
options.insertSeparator()
self.dl_id = options.insertItem("Default label", self.defaultLabel,
- QKeySequence("Alt+D"))
+ TQKeySequence("Alt+D"))
self.cl_id = options.insertItem("Custom label", self.customLabel,
- QKeySequence("Alt+C"))
+ TQKeySequence("Alt+C"))
options.insertSeparator()
self.md_id = options.insertItem("No minimum duration",
self.toggleMinimumDuration,
- QKeySequence("Alt+M"))
+ TQKeySequence("Alt+M"))
options.setCheckable(True)
# default option settings
self.timerDriven()
self.customLabel()
self.toggleMinimumDuration()
self.resize(400, 300)
- self.setEraseColor(Qt.black)
+ self.setEraseColor(TQt.black)
def drawItemRects(self, id_):
r = 100
@@ -160,7 +160,7 @@ class CPUWaster(QWidget):
return r
def drawItemText(self, id_):
- return QString("%d Rectangles" % self.drawItemRects(id_))
+ return TQString("%d Rectangles" % self.drawItemRects(id_))
def enableDrawingItems(self, yes):
for i in range(self.first_draw_item, self.last_draw_item + 1):
@@ -199,7 +199,7 @@ class CPUWaster(QWidget):
self.got_stop = True
def newProgressDialog(self, label, steps, modal):
- d = QProgressDialog(label, "Cancel", steps, self, "progress", modal)
+ d = TQProgressDialog(label, "Cancel", steps, self, "progress", modal)
if self.options.isItemChecked(self.md_id):
d.setMinimumDuration(0)
if not self.default_label:
@@ -223,7 +223,7 @@ class CPUWaster(QWidget):
else: # loop driven with modal progress dialog
lpb = self.newProgressDialog("Drawing rectangles.\n"
"Using loop.", n, True)
- p = QPainter(self)
+ p = TQPainter(self)
for i in range(n):
lpb.setProgress(i)
if lpb.wasCancelled():
@@ -237,7 +237,7 @@ class CPUWaster(QWidget):
if not self.got_stop:
self.pb.setProgress(self.pb.totalSteps() - self.rects)
self.rects -= 1
- p = QPainter(self)
+ p = TQPainter(self)
self._draw(p)
if not self.rects or self.got_stop:
@@ -254,19 +254,19 @@ class CPUWaster(QWidget):
ww = self.width()
wh = self.height()
if ww > 8 and wh > 8:
- c = QColor(randint(0, 255), randint(0, 255), randint(0, 255))
+ c = TQColor(randint(0, 255), randint(0, 255), randint(0, 255))
x = randint(0, ww - 8)
y = randint(0, wh - 8)
w = randint(0, ww - x)
h = randint(0, wh - y)
- p.fillRect(x, y, w, h, QBrush(c))
+ p.fillRect(x, y, w, h, TQBrush(c))
def _clear(self, p):
- p.fillRect(0, 0, self.width(), self.height(), QBrush(self.eraseColor()))
+ p.fillRect(0, 0, self.width(), self.height(), TQBrush(self.eraseColor()))
if __name__ == "__main__":
- app = QApplication(sys.argv)
+ app = TQApplication(sys.argv)
try:
n = int(sys.argv[1])
except:
diff --git a/examples3/progressbar.py b/examples3/progressbar.py
index beca2b6..9887a97 100755
--- a/examples3/progressbar.py
+++ b/examples3/progressbar.py
@@ -5,7 +5,7 @@
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
-** This file is part of an example program for Qt. This example
+** This file is part of an example program for TQt. This example
** program may be used, distributed and modified without limitation.
**
**************************************************************************"""
@@ -17,43 +17,43 @@ from qt import *
FALSE = 0
TRUE = 1
-class ProgressBar( QButtonGroup ):
+class ProgressBar( TQButtonGroup ):
# Constructor
# Creates child widgets of the ProgressBar widget
def __init__( self, parent=None, name=None ):
- QButtonGroup.__init__( self, 0, Qt.Horizontal, "Progress Bar", parent, name )
+ TQButtonGroup.__init__( self, 0, TQt.Horizontal, "Progress Bar", parent, name )
- self.timer = QTimer()
+ self.timer = TQTimer()
self.setMargin( 10 )
- toplayout = QGridLayout( self.layout(), 2, 2, 5)
+ toplayout = TQGridLayout( self.layout(), 2, 2, 5)
self.setRadioButtonExclusive( TRUE )
# insert three radiobuttons which the user can use
# to set the speed of the progress and two pushbuttons
# to start/pause/continue and reset the progress
- self.slow = QRadioButton( "&Slow", self )
- self.normal = QRadioButton( "&Normal", self )
- self.fast = QRadioButton( "&Fast", self )
- vb1 = QVBoxLayout( )
+ self.slow = TQRadioButton( "&Slow", self )
+ self.normal = TQRadioButton( "&Normal", self )
+ self.fast = TQRadioButton( "&Fast", self )
+ vb1 = TQVBoxLayout( )
toplayout.addLayout( vb1, 0, 0 )
vb1.addWidget( self.slow )
vb1.addWidget( self.normal )
vb1.addWidget( self.fast )
# two push buttons, one for start, for for reset.
- self.start = QPushButton( "&Start", self )
- self.reset = QPushButton( "&Reset", self )
+ self.start = TQPushButton( "&Start", self )
+ self.reset = TQPushButton( "&Reset", self )
- vb2 = QVBoxLayout()
+ vb2 = TQVBoxLayout()
toplayout.addLayout( vb2, 0, 1 )
vb2.addWidget( self.start )
vb2.addWidget( self.reset )
# Create the progressbar
- self.progress = QProgressBar( 100, self )
- #self.progress.setStyle( QMotifStyle() )
+ self.progress = TQProgressBar( 100, self )
+ #self.progress.setStyle( TQMotifStyle() )
toplayout.addMultiCellWidget( self.progress, 1, 1, 0, 1 )
# connect the clicked() SIGNALs of the pushbuttons to SLOTs
@@ -139,13 +139,13 @@ class ProgressBar( QButtonGroup ):
self.progress.setProgress( p )
- #QPushButton *start, *pause, *reset;
+ #TQPushButton *start, *pause, *reset;
def main( args ):
- a = QApplication( args )
+ a = TQApplication( args )
progressbar = ProgressBar()
- progressbar.setCaption("Qt Example - ProgressBar")
+ progressbar.setCaption("TQt Example - ProgressBar")
a.setMainWidget(progressbar)
progressbar.show()
diff --git a/examples3/qdir.py b/examples3/qdir.py
index 0da10eb..03cc5c9 100755
--- a/examples3/qdir.py
+++ b/examples3/qdir.py
@@ -57,9 +57,9 @@ home = [
]
-class PixmapView(QScrollView):
+class PixmapView(TQScrollView):
def __init__(self, parent):
- QScrollView.__init__(self, parent)
+ TQScrollView.__init__(self, parent)
self.pixmap = None
self.viewport().setBackgroundMode(self.PaletteBase)
@@ -69,36 +69,36 @@ class PixmapView(QScrollView):
self.viewport().repaint(False)
def drawContents(self, p, cx, cy, cw, ch):
- p.fillRect(cx, cy, cw, ch, self.colorGroup().brush(QColorGroup.Base))
+ p.fillRect(cx, cy, cw, ch, self.colorGroup().brush(TQColorGroup.Base))
p.drawPixmap(0, 0, self.pixmap)
-class Preview(QWidgetStack):
+class Preview(TQWidgetStack):
def __init__(self, parent):
- QWidgetStack.__init__(self, parent)
- self.normalText = QMultiLineEdit(self)
+ TQWidgetStack.__init__(self, parent)
+ self.normalText = TQMultiLineEdit(self)
self.normalText.setReadOnly(True)
- self.html = QTextView(self)
+ self.html = TQTextView(self)
self.pixmap = PixmapView(self)
self.raiseWidget(self.normalText)
def showPreview(self, url, size):
if url.isLocalFile():
path = url.path()
- fi = QFileInfo(path)
+ fi = TQFileInfo(path)
if fi.isFile() and fi.size() > size * 1000:
self.normalText.setText(
"The File\n%s\nis too large, so I don't show it!" % path)
self.raiseWidget(self.normalText)
return
- pix = QPixmap(path)
+ pix = TQPixmap(path)
if pix.isNull():
if fi.isFile():
err = False
try:
text = open(path.latin1(), "r").read()
except IOError, msg:
- text = QString(str(msg))
+ text = TQString(str(msg))
err = True
if not err and fi.extension().lower().contains("htm"):
url = self.html.mimeSourceFactory().makeAbsolute(
@@ -121,28 +121,28 @@ class Preview(QWidgetStack):
self.raiseWidget(self.normalText)
-# We can't instantiate QFilePreview directly because it is abstract. Note that
+# We can't instantiate TQFilePreview directly because it is abstract. Note that
# the previewUrl() abstract is patched in later to work around the fact that
# you can't multiply inherit from more than one wrapped class.
-class FilePreview(QFilePreview):
+class FilePreview(TQFilePreview):
pass
-class PreviewWidget(QVBox):
+class PreviewWidget(TQVBox):
def __init__(self, parent):
- QVBox.__init__(self, parent)
+ TQVBox.__init__(self, parent)
self.setSpacing( 5 )
self.setMargin( 5 )
- row = QHBox(self)
+ row = TQHBox(self)
row.setSpacing(5)
- QLabel("Only show files smaller than: ", row)
- self.sizeSpinBox = QSpinBox(1, 10000, 1, row)
+ TQLabel("Only show files smaller than: ", row)
+ self.sizeSpinBox = TQSpinBox(1, 10000, 1, row)
self.sizeSpinBox.setSuffix(" KB")
self.sizeSpinBox.setValue(128)
row.setFixedHeight(10 + self.sizeSpinBox.sizeHint().height())
self.__preview = Preview(self)
# workaround sip inability of multiple inheritance
- # create a local QFilePreview instance and redirect
+ # create a local TQFilePreview instance and redirect
# the method, which is called on preview, to us
self.preview = FilePreview()
self.preview.previewUrl = self.previewUrl
@@ -151,9 +151,9 @@ class PreviewWidget(QVBox):
self.__preview.showPreview(url, self.sizeSpinBox.value())
-class CustomFileDialog(QFileDialog):
+class CustomFileDialog(TQFileDialog):
def __init__(self, preview = False):
- QFileDialog.__init__(self, None, None, True)
+ TQFileDialog.__init__(self, None, None, True)
self.bookmarkFile = ".pybookmarks"
self.bookmarkList = []
if os.path.exists(self.bookmarkFile):
@@ -169,10 +169,10 @@ class CustomFileDialog(QFileDialog):
root.setOpen(True)
self.dirView.setFixedWidth(200)
self.addLeftWidget(self.dirView)
- p = QPushButton(self)
- p.setPixmap(QPixmap(bookmarks))
- QToolTip.add(p, "Bookmarks")
- self.bookmarkMenu = QPopupMenu(self)
+ p = TQPushButton(self)
+ p.setPixmap(TQPixmap(bookmarks))
+ TQToolTip.add(p, "Bookmarks")
+ self.bookmarkMenu = TQPopupMenu(self)
self.connect(self.bookmarkMenu, SIGNAL("activated(int)"),
self.bookmarkChosen)
self.addId = self.bookmarkMenu.insertItem("Add bookmark")
@@ -181,13 +181,13 @@ class CustomFileDialog(QFileDialog):
self.bookmarkMenu.insertItem(l)
p.setPopup(self.bookmarkMenu)
self.addToolButton(p, True)
- self.connect(self.dirView, PYSIGNAL("folderSelected(const QString &)"),
+ self.connect(self.dirView, PYSIGNAL("folderSelected(const TQString &)"),
self.setDir2)
- self.connect(self, SIGNAL("dirEntered(const QString &)"),
+ self.connect(self, SIGNAL("dirEntered(const TQString &)"),
self.dirView.setDir)
- b = QToolButton(self)
- QToolTip.add(b, "Go Home!")
- b.setPixmap(QPixmap(home))
+ b = TQToolButton(self)
+ TQToolTip.add(b, "Go Home!")
+ b.setPixmap(TQPixmap(home))
self.connect(b, SIGNAL("clicked()"), self.goHome)
self.addToolButton(b)
@@ -195,8 +195,8 @@ class CustomFileDialog(QFileDialog):
self.setContentsPreviewEnabled(True)
pw = PreviewWidget(self)
self.setContentsPreview(pw, pw.preview)
- self.setViewMode(QFileDialog.List)
- self.setPreviewMode(QFileDialog.Contents)
+ self.setViewMode(TQFileDialog.List)
+ self.setPreviewMode(TQFileDialog.Contents)
w = self.width()
h = self.height()
@@ -211,10 +211,10 @@ class CustomFileDialog(QFileDialog):
open(self.bookmarkFile, "wb").write(pickle.dumps(self.bookmarkList))
except IOError, msg:
print msg
- return QFileDialog.done(self, r)
+ return TQFileDialog.done(self, r)
def showEvent(self, e):
- QFileDialog.showEvent(self, e)
+ TQFileDialog.showEvent(self, e)
self.dirView.setDir(self.dirPath())
def setDir2(self, path):
@@ -250,7 +250,7 @@ if __name__ == '__main__':
usage: qdir [--any | --dir | --custom] [--preview] [--default f] {--filter f} [caption ...]
--any Get any filename, need not exist.
--dir Return a directory rather than a file.
- --custom Opens a customized QFileDialog with
+ --custom Opens a customized TQFileDialog with
dir browser, bookmark menu, etc.
--preview Show a preview widget.
--default f Start from directory/file f.
@@ -261,12 +261,12 @@ usage: qdir [--any | --dir | --custom] [--preview] [--default f] {--filter f} [c
def main():
options = ["help", "any", "dir", "custom", "preview", "default=", "filter="]
- mode = QFileDialog.ExistingFile
+ mode = TQFileDialog.ExistingFile
preview = False
custom = False
start = None
- filter = QString.null
- app = QApplication(sys.argv)
+ filter = TQString.null
+ app = TQApplication(sys.argv)
try:
optlist, args = getopt.getopt(sys.argv[1:], "h", options)
@@ -277,9 +277,9 @@ usage: qdir [--any | --dir | --custom] [--preview] [--default f] {--filter f} [c
if opt in ("-h", "--help"):
usage()
elif opt == "--any":
- mode = QFileDialog.AnyFile
+ mode = TQFileDialog.AnyFile
elif opt == "--dir":
- mode = QFileDialog.Directory
+ mode = TQFileDialog.Directory
elif opt == "--default":
start = par
elif opt == "--filter":
@@ -290,27 +290,27 @@ usage: qdir [--any | --dir | --custom] [--preview] [--default f] {--filter f} [c
custom = True
if args:
caption = " ".join(args)
- elif mode == QFileDialog.Directory:
+ elif mode == TQFileDialog.Directory:
caption = "Choose directory..."
else:
caption = "Choose file..."
if not start:
- start = QDir.currentDirPath()
+ start = TQDir.currentDirPath()
if not custom:
- fd = QFileDialog(QString.null, filter, None, None, True)
+ fd = TQFileDialog(TQString.null, filter, None, None, True)
fd.setMode(mode)
if preview:
fd.setContentsPreviewEnabled(True)
pw = PreviewWidget(fd)
fd.setContentsPreview(pw, pw.preview)
- fd.setViewMode(QFileDialog.List)
- fd.setPreviewMode(QFileDialog.Contents)
+ fd.setViewMode(TQFileDialog.List)
+ fd.setPreviewMode(TQFileDialog.Contents)
w = fd.width()
h = fd.height()
fd.resize(w + w / 3, h + h / 4)
fd.setCaption(caption)
fd.setSelection(start)
- if fd.exec_loop() == QDialog.Accepted:
+ if fd.exec_loop() == TQDialog.Accepted:
print "%s\n" % fd.selectedFile().latin1()
return 0
else:
diff --git a/examples3/qmag.py b/examples3/qmag.py
index f27da2c..d52a48c 100755
--- a/examples3/qmag.py
+++ b/examples3/qmag.py
@@ -5,7 +5,7 @@
#**
#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
#**
-#** This file is part of an example program for PyQt. This example
+#** This file is part of an example program for PyTQt. This example
#** program may be used, distributed and modified without limitation.
#**
#*****************************************************************************/
@@ -25,25 +25,25 @@ refreshrates = [
timer = (0, 20, 250, 333, 500, 1000, 2000, 3000, 5000, 10000)
-class MagWidget(QWidget):
+class MagWidget(TQWidget):
def __init__(self, qApp, parent = None, name = None):
self.qApp = qApp
- QWidget.__init__(self, parent, name)
- self.pm = QPixmap() # pixmap magnified
- self.p = QPixmap() # pixmap
- self.image = QImage() # image of pixmap (for RGB)
+ TQWidget.__init__(self, parent, name)
+ self.pm = TQPixmap() # pixmap magnified
+ self.p = TQPixmap() # pixmap
+ self.image = TQImage() # image of pixmap (for RGB)
self.z = 0 # zoom factor
self.r = 0 # autorefresh rate (index into refreshrates)
self.grabbing = FALSE # TRUE if currently grabbing
self.grabx = -1
self.graby = -1
- self.zoom = QComboBox(FALSE, self)
+ self.zoom = TQComboBox(FALSE, self)
self.zoom.insertStrList(zoomfactors, len(zoomfactors))
self.connect(self.zoom, SIGNAL("activated(int)"),
self.setZoom)
- self.refresh = QComboBox(FALSE, self)
+ self.refresh = TQComboBox(FALSE, self)
self.refresh.insertStrList(refreshrates, len(refreshrates))
self.connect(self.refresh, SIGNAL("activated(int)"),
self.setRefresh)
@@ -63,21 +63,21 @@ class MagWidget(QWidget):
w = max(cw, w)
self.refresh.setGeometry(x, 2, w + 30, h)
- self.saveButton = QPushButton(self)
+ self.saveButton = TQPushButton(self)
self.connect(self.saveButton, SIGNAL("clicked()"), self.save)
self.saveButton.setText("Save")
self.saveButton.setGeometry(x + w + 30 + 2, 2,
10 + self.saveButton.fontMetrics().width("Save"), h)
- self.quitButton = QPushButton(self)
+ self.quitButton = TQPushButton(self)
self.connect(self.quitButton, SIGNAL("clicked()"), self.qApp, SLOT("quit()"))
self.quitButton.setText("Quit")
self.quitButton.setGeometry(self.saveButton.geometry().right() + 2, 2,
10 + self.quitButton.fontMetrics().width("Quit"), h)
- self.rgb = QLabel(self)
+ self.rgb = TQLabel(self)
self.rgb.setText("")
- self.rgb.setAlignment(Qt.AlignVCenter)
+ self.rgb.setAlignment(TQt.AlignVCenter)
self.rgb.resize(self.width(), self.rgb.fontMetrics().height() + 4)
self.yoffset = self.zoom.height() + 4 + self.rgb.height()
@@ -89,7 +89,7 @@ class MagWidget(QWidget):
self.setMouseTracking(TRUE)
self.grabx = self.qApp.desktop().width() / 2
self.graby = self.qApp.desktop().height() / 2
- self.grabAround(QPoint(self.grabx, self.graby))
+ self.grabAround(TQPoint(self.grabx, self.graby))
#self.zoom.setCurrentItem(1) # grabAround sets zoom factor
#self.setZoom(1)
@@ -113,7 +113,7 @@ class MagWidget(QWidget):
def save(self):
if not self.p.isNull():
self.killTimers()
- fn = QFileDialog.getSaveFileName()
+ fn = TQFileDialog.getSaveFileName()
if not fn.isEmpty():
self.p.save(fn, "BMP")
if self.r:
@@ -132,19 +132,19 @@ class MagWidget(QWidget):
x = self.grabx - w / 2
y = self.graby - h / 2
- if x + w > QApplication.desktop().width():
- x = QApplication.desktop().width() - w
+ if x + w > TQApplication.desktop().width():
+ x = TQApplication.desktop().width() - w
elif x < 0:
x = 0
- if y + h > QApplication.desktop().height():
- y = QApplication.desktop().height() - h
+ if y + h > TQApplication.desktop().height():
+ y = TQApplication.desktop().height() - h
elif y < 0:
y = 0
- self.p = QPixmap.grabWindow(QApplication.desktop().winId(), x, y, w, h)
+ self.p = TQPixmap.grabWindow(TQApplication.desktop().winId(), x, y, w, h)
self.image = self.p.convertToImage()
- m = QWMatrix()
+ m = TQWMatrix()
#print "z:", self.z
m.scale(float(self.z), float(self.z))
self.pm = self.p.xForm(m)
@@ -152,7 +152,7 @@ class MagWidget(QWidget):
def paintEvent(self, e):
if not self.pm.isNull():
- paint = QPainter(self)
+ paint = TQPainter(self)
paint.drawPixmap(0, self.zoom.height() + 4, self.pm,
0, 0, self.width(), self.height() - self.yoffset)
@@ -160,7 +160,7 @@ class MagWidget(QWidget):
if not self.grabbing:
self.grabbing = TRUE
self.killTimers()
- self.grabMouse(Qt.crossCursor)
+ self.grabMouse(TQt.crossCursor)
self.grabx = -1
self.graby = -1
else:
@@ -181,8 +181,8 @@ class MagWidget(QWidget):
if w > 10 and h > 10:
pz = 1
while w*pz*h*pz < self.width()*(self.height()-self.yoffset) and \
- w*pz < QApplication.desktop().width() and \
- h*pz < QApplication.desktop().height():
+ w*pz < TQApplication.desktop().width() and \
+ h*pz < TQApplication.desktop().height():
pz += 1
if (w*pz*h*pz - self.width()*(self.height()-self.yoffset)) > \
(self.width()*(self.height()-self.yoffset) - w*(pz-1)*h*(pz-1)):
@@ -226,7 +226,7 @@ class MagWidget(QWidget):
self.width(), self.rgb.height())
if __name__=='__main__':
- app = QApplication( sys.argv )
+ app = TQApplication( sys.argv )
m = MagWidget(app)
app.setMainWidget(m)
m.show()
diff --git a/examples3/qtlogo.png b/examples3/qtlogo.png
index 0dc05a0..4b97130 100644
--- a/examples3/qtlogo.png
+++ b/examples3/qtlogo.png
Binary files differ
diff --git a/examples3/rangecontrols.py b/examples3/rangecontrols.py
index a47b8ff..6250bf4 100755
--- a/examples3/rangecontrols.py
+++ b/examples3/rangecontrols.py
@@ -5,7 +5,7 @@
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
-** This file is part of an example program for Qt. This example
+** This file is part of an example program for TQt. This example
** program may be used, distributed and modified without limitation.
**
***************************************************************************"""
@@ -15,61 +15,61 @@ from qt import *
INT_MAX = sys.maxint
-class RangeControls( QVBox ):
+class RangeControls( TQVBox ):
def __init__( self, parent=None, name=None ):
- QVBox.__init__( self, parent, name )
+ TQVBox.__init__( self, parent, name )
- row1 = QHBox( self )
- cell2 = QVBox( row1 )
+ row1 = TQHBox( self )
+ cell2 = TQVBox( row1 )
cell2.setMargin( 10 )
- cell2.setFrameStyle( QFrame.WinPanel | QFrame.Sunken )
+ cell2.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken )
- QWidget( cell2 )
+ TQWidget( cell2 )
- label1 = QLabel( QString( "Enter a value between\n%1 and %2:" ).arg( -INT_MAX ).arg( INT_MAX ), cell2 )
+ label1 = TQLabel( TQString( "Enter a value between\n%1 and %2:" ).arg( -INT_MAX ).arg( INT_MAX ), cell2 )
label1.setMaximumHeight( label1.sizeHint().height() )
- sb1 = QSpinBox( -INT_MAX, INT_MAX, 1, cell2 )
+ sb1 = TQSpinBox( -INT_MAX, INT_MAX, 1, cell2 )
sb1.setValue( 0 )
- label2 = QLabel( "Enter a zoom value:", cell2 )
+ label2 = TQLabel( "Enter a zoom value:", cell2 )
label2.setMaximumHeight( label2.sizeHint().height() )
- sb2 = QSpinBox( 0, 1000, 10, cell2 )
+ sb2 = TQSpinBox( 0, 1000, 10, cell2 )
sb2.setSuffix( " %" )
sb2.setSpecialValueText( "Automatic" )
- label3 = QLabel( "Enter a price:", cell2 )
+ label3 = TQLabel( "Enter a price:", cell2 )
label3.setMaximumHeight( label3.sizeHint().height() )
- sb3 = QSpinBox( 0, INT_MAX, 1, cell2 )
+ sb3 = TQSpinBox( 0, INT_MAX, 1, cell2 )
sb3.setPrefix( "$" )
sb3.setValue( 355 )
- QWidget( cell2 )
+ TQWidget( cell2 )
- row2 = QHBox( self )
+ row2 = TQHBox( self )
- cell3 = QVBox( row2 )
+ cell3 = TQVBox( row2 )
cell3.setMargin( 10 )
- cell3.setFrameStyle( QFrame.WinPanel | QFrame.Sunken )
- hslider = QSlider( 0, 64, 1, 33, Qt.Horizontal, cell3 )
- lcd2 = QLCDNumber( 2, cell3 )
+ cell3.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken )
+ hslider = TQSlider( 0, 64, 1, 33, TQt.Horizontal, cell3 )
+ lcd2 = TQLCDNumber( 2, cell3 )
lcd2.display( 33 )
- lcd2.setSegmentStyle( QLCDNumber.Filled )
+ lcd2.setSegmentStyle( TQLCDNumber.Filled )
self.connect( hslider, SIGNAL("valueChanged( int )"), lcd2, SLOT("display( int )") )
- cell4 = QHBox( row2 )
- cell4.setFrameStyle( QFrame.WinPanel | QFrame.Sunken )
+ cell4 = TQHBox( row2 )
+ cell4.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken )
cell4.setMargin( 10 )
- vslider = QSlider( 0, 64, 1, 8, Qt.Vertical, cell4 )
- lcd3 = QLCDNumber( 3, cell4 )
+ vslider = TQSlider( 0, 64, 1, 8, TQt.Vertical, cell4 )
+ lcd3 = TQLCDNumber( 3, cell4 )
lcd3.display( 8 )
self.connect( vslider, SIGNAL("valueChanged( int )"), lcd3, SLOT("display( int )") )
def main( args ):
- a = QApplication( args )
+ a = TQApplication( args )
rangecontrols = RangeControls()
rangecontrols.resize( 500, 300 )
- rangecontrols.setCaption( "Qt Example - Range Control Widgets" );
+ rangecontrols.setCaption( "TQt Example - Range Control Widgets" );
a.setMainWidget( rangecontrols )
rangecontrols.show()
diff --git a/examples3/richtext.py b/examples3/richtext.py
index 592213d..f7eb73e 100755
--- a/examples3/richtext.py
+++ b/examples3/richtext.py
@@ -5,7 +5,7 @@
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
-** This file is part of an example program for Qt. This example
+** This file is part of an example program for TQt. This example
** program may be used, distributed and modified without limitation.
**
***************************************************************************"""
@@ -70,16 +70,16 @@ sayings = [
0
]
-class MyRichText( QVBox ):
+class MyRichText( TQVBox ):
def __init__( self, parent = None, name = None ):
- QVBox.__init__( self, parent, name )
+ TQVBox.__init__( self, parent, name )
self.setMargin( 5 )
- self.view = QTextView( self )
+ self.view = TQTextView( self )
#self.view.setText( "This is a <b>Test</b> with <i>italic</i> <u>stuff</u>" )
- paper = QBrush()
- paper.setPixmap( QPixmap( "marble.png" ) )
+ paper = TQBrush()
+ paper.setPixmap( TQPixmap( "marble.png" ) )
if paper.pixmap() != 0 :
self.view.setPaper( paper )
else :
@@ -88,12 +88,12 @@ class MyRichText( QVBox ):
self.view.setText( sayings[0] )
self.view.setMinimumSize( 450, 250 )
- buttons = QHBox( self )
+ buttons = TQHBox( self )
buttons.setMargin( 5 )
- self.bClose = QPushButton( "&Close", buttons )
- self.bPrev = QPushButton( "<< &Prev", buttons )
- self.bNext = QPushButton( "&Next >>", buttons )
+ self.bClose = TQPushButton( "&Close", buttons )
+ self.bPrev = TQPushButton( "<< &Prev", buttons )
+ self.bNext = TQPushButton( "&Next >>", buttons )
self.bPrev.setEnabled( False )
@@ -122,11 +122,11 @@ class MyRichText( QVBox ):
self.bPrev.setEnabled( True )
def main( args ):
- a = QApplication(sys.argv) # application object
+ a = TQApplication(sys.argv) # application object
richtext = MyRichText()
richtext.resize( 450, 350 );
- richtext.setCaption( "Qt Example - Richtext" )
+ richtext.setCaption( "TQt Example - Richtext" )
a.setMainWidget( richtext )
richtext.show()
diff --git a/examples3/secret.py b/examples3/secret.py
index d6d2b6d..434664b 100644
--- a/examples3/secret.py
+++ b/examples3/secret.py
@@ -12,15 +12,15 @@ def decode(e):
payload = str(e.data( "secret/magic" ))
if ( str(payload) != '' ):
e.accept()
- return QString("The secret number is "+str(ord(payload)) )
+ return TQString("The secret number is "+str(ord(payload)) )
return None
-class SecretDrag(QStoredDrag):
+class SecretDrag(TQStoredDrag):
def __init__(self, secret, parent=None, name=None):
- QStoredDrag.__init__(self, 'secret/magic', parent, name)
- data = QByteArray(chr(secret))
+ TQStoredDrag.__init__(self, 'secret/magic', parent, name)
+ data = TQByteArray(chr(secret))
self.setEncodedData( data )
@@ -49,17 +49,17 @@ picture_xpm = [
]
-class SecretSource(QLabel):
+class SecretSource(TQLabel):
def __init__(self, secret, parent=None, name=None):
- QLabel.__init__(self, "Secret", parent, name)
- self.setEraseColor( Qt.blue.light() )
- self.setFrameStyle( QLabel.Box | QLabel.Sunken )
+ TQLabel.__init__(self, "Secret", parent, name)
+ self.setEraseColor( TQt.blue.light() )
+ self.setFrameStyle( TQLabel.Box | TQLabel.Sunken )
self.setMinimumHeight( self.sizeHint().height()*2 )
- self.setAlignment( QLabel.AlignCenter )
+ self.setAlignment( TQLabel.AlignCenter )
self.mySecret = secret
def mousePressEvent(self, e):
sd = SecretDrag( self.mySecret, self )
- sd.setPixmap(QPixmap(picture_xpm),QPoint(8,8))
+ sd.setPixmap(TQPixmap(picture_xpm),TQPoint(8,8))
sd.dragCopy()
self.mySecret = self.mySecret + 1
diff --git a/examples3/semaphore.py b/examples3/semaphore.py
index ac8b231..68128d7 100755
--- a/examples3/semaphore.py
+++ b/examples3/semaphore.py
@@ -1,13 +1,13 @@
#!/usr/bin/env python
#
-# A port of the semaphore example from Qt.
+# A port of the semaphore example from TQt.
import sys
# Check if thread support was enabled.
try:
- from qt import QThread
+ from qt import TQThread
except:
print "Thread support not enabled"
sys.exit(1)
@@ -20,13 +20,13 @@ yellowSem = None
greenSem = None
-class YellowThread(QThread):
+class YellowThread(TQThread):
def __init__(self,o):
- QThread.__init__(self)
+ TQThread.__init__(self)
self.receiver = o
self.stopped = 0
- self.mutex = QMutex()
+ self.mutex = TQMutex()
def run(self):
global yellowSem, greenSem
@@ -34,9 +34,9 @@ class YellowThread(QThread):
for i in range(20):
yellowSem += 1
- event = QCustomEvent(12345)
- event.setData(QString("Yellow!"))
- QThread.postEvent(self.receiver,event)
+ event = TQCustomEvent(12345)
+ event.setData(TQString("Yellow!"))
+ TQThread.postEvent(self.receiver,event)
self.msleep(200);
greenSem -= 1
@@ -51,9 +51,9 @@ class YellowThread(QThread):
yellowSem += 1
- event = QCustomEvent(12346)
- event.setData(QString("Yellow!"))
- QThread.postEvent(self.receiver,event)
+ event = TQCustomEvent(12346)
+ event.setData(TQString("Yellow!"))
+ TQThread.postEvent(self.receiver,event)
greenSem -= 1
@@ -63,13 +63,13 @@ class YellowThread(QThread):
self.mutex.unlock()
-class GreenThread(QThread):
+class GreenThread(TQThread):
def __init__(self,o):
- QThread.__init__(self)
+ TQThread.__init__(self)
self.receiver = o
self.stopped = 0
- self.mutex = QMutex()
+ self.mutex = TQMutex()
def run(self):
global yellowSem, greenSem
@@ -77,9 +77,9 @@ class GreenThread(QThread):
for i in range(20):
greenSem += 1
- event = QCustomEvent(12345)
- event.setData(QString("Green!"))
- QThread.postEvent(self.receiver,event)
+ event = TQCustomEvent(12345)
+ event.setData(TQString("Green!"))
+ TQThread.postEvent(self.receiver,event)
self.msleep(200)
yellowSem -= 1
@@ -94,9 +94,9 @@ class GreenThread(QThread):
greenSem += 1
- event = QCustomEvent(12346)
- event.setData(QString("Green!"))
- QThread.postEvent(self.receiver,event)
+ event = TQCustomEvent(12346)
+ event.setData(TQString("Green!"))
+ TQThread.postEvent(self.receiver,event)
self.msleep(10)
yellowSem -= 1
@@ -107,24 +107,24 @@ class GreenThread(QThread):
self.mutex.unlock()
-class SemaphoreExample(QWidget):
+class SemaphoreExample(TQWidget):
def __init__(self):
- QWidget.__init__(self)
+ TQWidget.__init__(self)
self.yellowThread = YellowThread(self)
self.greenThread = GreenThread(self)
global yellowSem, greenSem
- yellowSem = QSemaphore(1)
- greenSem = QSemaphore(1)
+ yellowSem = TQSemaphore(1)
+ greenSem = TQSemaphore(1)
- self.button = QPushButton("&Ignition!",self)
+ self.button = TQPushButton("&Ignition!",self)
self.connect(self.button,SIGNAL("clicked()"),self.startExample)
- self.mlineedit = QMultiLineEdit(self)
- self.label = QLabel(self)
+ self.mlineedit = TQMultiLineEdit(self)
+ self.label = TQLabel(self)
- vbox = QVBoxLayout(self,5)
+ vbox = TQVBoxLayout(self,5)
vbox.addWidget(self.button)
vbox.addWidget(self.mlineedit)
vbox.addWidget(self.label)
@@ -151,7 +151,7 @@ class SemaphoreExample(QWidget):
def startExample(self):
if self.yellowThread.running() or self.greenThread.running():
- QMessageBox.information(self,"Sorry",
+ TQMessageBox.information(self,"Sorry",
"The threads have not completed yet, and must finish before "
"they can be started again.")
@@ -176,9 +176,9 @@ class SemaphoreExample(QWidget):
self.mlineedit.append(s)
if s.latin1() == "Green!":
- self.label.setEraseColor(Qt.green)
+ self.label.setEraseColor(TQt.green)
else:
- self.label.setEraseColor(Qt.yellow)
+ self.label.setEraseColor(TQt.yellow)
self.label.setText(s)
@@ -186,7 +186,7 @@ class SemaphoreExample(QWidget):
elif event.type() == 12346:
s = event.data()
- QMessageBox.information(self,s.latin1() + " - Finished",
+ TQMessageBox.information(self,s.latin1() + " - Finished",
"The thread creating the \"" + s.latin1() +
"\" events has finished.")
@@ -195,7 +195,7 @@ class SemaphoreExample(QWidget):
print "Unknown custom event type:", event.type()
-app = QApplication(sys.argv)
+app = TQApplication(sys.argv)
se = SemaphoreExample()
app.setMainWidget(se)
se.show()
diff --git a/examples3/smalltable.py b/examples3/smalltable.py
index 83e74bf..2fbda72 100755
--- a/examples3/smalltable.py
+++ b/examples3/smalltable.py
@@ -5,7 +5,7 @@
#**
#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
#**
-#** This file is part of an example program for PyQt. This example
+#** This file is part of an example program for PyTQt. This example
#** program may be used, distributed and modified without limitation.
#**
#*****************************************************************************/
@@ -22,9 +22,9 @@ numRows = 30
numCols = 10
if __name__ == '__main__':
- app = QApplication(sys.argv)
+ app = TQApplication(sys.argv)
- table = QTable(numRows, numCols)
+ table = TQTable(numRows, numCols)
header = table.horizontalHeader()
@@ -33,23 +33,23 @@ if __name__ == '__main__':
header.setLabel(5, "Combos")
header.setMovingEnabled(TRUE)
- img = QImage("trolltech.bmp")
- pix = QPixmap(img.scaleHeight(table.rowHeight(3)))
+ img = TQImage("trolltech.bmp")
+ pix = TQPixmap(img.scaleHeight(table.rowHeight(3)))
table.setPixmap(3, 2, pix)
table.setText(3, 2, "A Pixmap")
- comboEntries = QStringList("one")
+ comboEntries = TQStringList("one")
comboEntries.append("two")
comboEntries.append("three")
comboEntries.append("four")
for i in range(numRows):
- item = QComboTableItem(table, comboEntries, FALSE)
+ item = TQComboTableItem(table, comboEntries, FALSE)
item.setCurrentItem(i % 4)
table.setItem(i, 5, item)
for i in range(numRows):
- table.setItem(i, 1, QCheckTableItem(table, "Check me"))
+ table.setItem(i, 1, TQCheckTableItem(table, "Check me"))
table.setCaption("Small table example")
table.show()
diff --git a/examples3/splitter.py b/examples3/splitter.py
index 3cee9cf..33d1aa2 100755
--- a/examples3/splitter.py
+++ b/examples3/splitter.py
@@ -3,12 +3,12 @@
import sys
from qt import *
-class Test(QWidget):
+class Test(TQWidget):
def __init__(self, parent=None, name='Test', f=0):
- QWidget.__init__(self, parent, name, f)
+ TQWidget.__init__(self, parent, name, f)
def paintEvent(self, e):
- p = QPainter(self)
+ p = TQPainter(self)
p.setClipRect(e.rect())
d = 1000
x1 = 0
@@ -30,31 +30,31 @@ class Test(QWidget):
if __name__=="__main__":
- a = QApplication(sys.argv)
+ a = TQApplication(sys.argv)
- s1 = QSplitter(Qt.Vertical, None, "main")
- s2 = QSplitter(Qt.Horizontal, s1, "top")
+ s1 = TQSplitter(TQt.Vertical, None, "main")
+ s2 = TQSplitter(TQt.Horizontal, s1, "top")
t1 = Test(s2)
- t1.setEraseColor(Qt.blue.light(180))
+ t1.setEraseColor(TQt.blue.light(180))
t1.setMinimumSize(50,0)
t2 = Test(s2)
- t2.setEraseColor(Qt.green.light(180))
- s2.setResizeMode(t2, QSplitter.KeepSize)
+ t2.setEraseColor(TQt.green.light(180))
+ s2.setResizeMode(t2, TQSplitter.KeepSize)
s2.moveToFirst(t2)
- s3 = QSplitter(Qt.Horizontal, s1, "bottom")
+ s3 = TQSplitter(TQt.Horizontal, s1, "bottom")
t3 = Test(s3)
- t3.setEraseColor(Qt.red)
+ t3.setEraseColor(TQt.red)
t4 = Test(s3)
- t4.setEraseColor(Qt.white)
+ t4.setEraseColor(TQt.white)
t5 = Test(s3)
t5.setMaximumHeight(250)
t5.setMinimumSize(80,50)
- t5.setEraseColor(Qt.yellow)
+ t5.setEraseColor(TQt.yellow)
s1.setOpaqueResize(1)
s2.setOpaqueResize(1)
diff --git a/examples3/tabdialog.py b/examples3/tabdialog.py
index 0d37cc5..fe1ecd7 100755
--- a/examples3/tabdialog.py
+++ b/examples3/tabdialog.py
@@ -5,7 +5,7 @@
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
-** This file is part of an example program for Qt. This example
+** This file is part of an example program for TQt. This example
** program may be used, distributed and modified without limitation.
**
***************************************************************************"""
@@ -13,100 +13,100 @@
import sys
from qt import *
-class TabDialog( QTabDialog ):
+class TabDialog( TQTabDialog ):
def __init__( self, parent=None, name=None, filename=None ):
- QTabDialog.__init__( self, parent, name )
- self.filename = QString( filename )
- self.fileinfo = QFileInfo( filename )
+ TQTabDialog.__init__( self, parent, name )
+ self.filename = TQString( filename )
+ self.fileinfo = TQFileInfo( filename )
self.setupTab1()
self.setupTab2()
self.setupTab3()
self.connect( self, SIGNAL("applyButtonPressed()"), qApp, SLOT("quit()" ) )
def setupTab1( self ):
- tab1 = QVBox( self )
+ tab1 = TQVBox( self )
tab1.setMargin( 5 )
- QLabel( "Filename:", tab1 )
- fname = QLineEdit( self.filename, tab1 )
+ TQLabel( "Filename:", tab1 )
+ fname = TQLineEdit( self.filename, tab1 )
fname.setFocus()
- QLabel( "Path:", tab1 )
- path = QLabel( self.fileinfo.dirPath( True ), tab1 )
- path.setFrameStyle( QFrame.Panel | QFrame.Sunken )
+ TQLabel( "Path:", tab1 )
+ path = TQLabel( self.fileinfo.dirPath( True ), tab1 )
+ path.setFrameStyle( TQFrame.Panel | TQFrame.Sunken )
- QLabel( "Size:", tab1 )
- size = QLabel( QString( "%1 KB" ).arg( self.fileinfo.size() ), tab1 )
- size.setFrameStyle( QFrame.Panel | QFrame.Sunken )
+ TQLabel( "Size:", tab1 )
+ size = TQLabel( TQString( "%1 KB" ).arg( self.fileinfo.size() ), tab1 )
+ size.setFrameStyle( TQFrame.Panel | TQFrame.Sunken )
- QLabel( "Last Read:", tab1 )
- lread = QLabel( self.fileinfo.lastRead().toString(), tab1 )
- lread.setFrameStyle( QFrame.Panel | QFrame.Sunken )
+ TQLabel( "Last Read:", tab1 )
+ lread = TQLabel( self.fileinfo.lastRead().toString(), tab1 )
+ lread.setFrameStyle( TQFrame.Panel | TQFrame.Sunken )
- QLabel( "Last Modified:", tab1 )
- lmodif = QLabel( self.fileinfo.lastModified().toString(), tab1 )
- lmodif.setFrameStyle( QFrame.Panel | QFrame.Sunken )
+ TQLabel( "Last Modified:", tab1 )
+ lmodif = TQLabel( self.fileinfo.lastModified().toString(), tab1 )
+ lmodif.setFrameStyle( TQFrame.Panel | TQFrame.Sunken )
self.addTab( tab1, "General" )
def setupTab2( self ):
- tab2 = QVBox( self )
+ tab2 = TQVBox( self )
tab2.setMargin( 5 )
- bg = QButtonGroup( 1, QGroupBox.Horizontal, "Permissions", tab2 )
+ bg = TQButtonGroup( 1, TQGroupBox.Horizontal, "Permissions", tab2 )
- readable = QCheckBox( "Readable", bg )
+ readable = TQCheckBox( "Readable", bg )
if self.fileinfo.isReadable() :
readable.setChecked( True )
- writable = QCheckBox( "Writeable", bg )
+ writable = TQCheckBox( "Writeable", bg )
if self.fileinfo.isWritable() :
writable.setChecked( True )
- executable = QCheckBox( "Executable", bg )
+ executable = TQCheckBox( "Executable", bg )
if self.fileinfo.isExecutable() :
executable.setChecked( True )
- bg2 = QButtonGroup( 2, QGroupBox.Horizontal, "Owner", tab2 )
+ bg2 = TQButtonGroup( 2, TQGroupBox.Horizontal, "Owner", tab2 )
- QLabel( "Owner", bg2 )
- owner = QLabel( self.fileinfo.owner(), bg2 )
- owner.setFrameStyle( QFrame.Panel | QFrame.Sunken )
+ TQLabel( "Owner", bg2 )
+ owner = TQLabel( self.fileinfo.owner(), bg2 )
+ owner.setFrameStyle( TQFrame.Panel | TQFrame.Sunken )
- QLabel( "Group", bg2 )
- group = QLabel( self.fileinfo.group(), bg2 )
- group.setFrameStyle( QFrame.Panel | QFrame.Sunken )
+ TQLabel( "Group", bg2 )
+ group = TQLabel( self.fileinfo.group(), bg2 )
+ group.setFrameStyle( TQFrame.Panel | TQFrame.Sunken )
self.addTab( tab2, "Permissions" )
def setupTab3( self ):
- tab3 = QVBox( self )
+ tab3 = TQVBox( self )
tab3.setMargin( 5 )
tab3.setSpacing( 5 )
- QLabel( QString( "Open %1 with:" ).arg( self.filename ), tab3 )
+ TQLabel( TQString( "Open %1 with:" ).arg( self.filename ), tab3 )
- prgs = QListBox( tab3 )
+ prgs = TQListBox( tab3 )
for i in range( 0, 30, 1 ) :
- prg = QString( "Application %1" ).arg( i )
+ prg = TQString( "Application %1" ).arg( i )
prgs.insertItem( prg )
prgs.setCurrentItem( 3 )
- QCheckBox( QString( "Open files with the extension '%1' always with this application" ).arg( self.fileinfo.extension() ), tab3 )
+ TQCheckBox( TQString( "Open files with the extension '%1' always with this application" ).arg( self.fileinfo.extension() ), tab3 )
self.addTab( tab3, "Applications" )
def main( args ):
- a = QApplication(sys.argv)
+ a = TQApplication(sys.argv)
#sys.argv.append("tabdialog.py") # to test uncomment this line
if len(sys.argv) < 2:
- filename = QString(".")
+ filename = TQString(".")
else:
- filename = QString(sys.argv[1])
+ filename = TQString(sys.argv[1])
tabdialog = TabDialog( None, "tabdialog", filename )
tabdialog.resize( 450, 350 );
- tabdialog.setCaption( "Qt Example - Tabbed Dialog" )
+ tabdialog.setCaption( "TQt Example - Tabbed Dialog" )
a.setMainWidget( tabdialog )
tabdialog.show()
diff --git a/examples3/tablestatistics.py b/examples3/tablestatistics.py
index 49f82ae..c0aa072 100755
--- a/examples3/tablestatistics.py
+++ b/examples3/tablestatistics.py
@@ -5,7 +5,7 @@
#**
#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
#**
-#** This file is part of an example program for PyQt. This example
+#** This file is part of an example program for PyTQt. This example
#** program may be used, distributed and modified without limitation.
#**
#*****************************************************************************/
@@ -36,9 +36,9 @@ dirs = (
"canvas",
)
-class Table(QTable):
+class Table(TQTable):
def __init__(self):
- QTable.__init__(self, 0, TB_COLS)
+ TQTable.__init__(self, 0, TB_COLS)
self.setSorting(TRUE)
self.horizontalHeader().setLabel(TB_FILE, self.tr("File"))
self.horizontalHeader().setLabel(TB_SIZE, self.tr("Size (bytes)"))
@@ -50,12 +50,12 @@ class Table(QTable):
self.connect(self, SIGNAL("valueChanged(int, int)"), self.recalcSum)
def initTable(self):
- # read all the Qt source and header files into a list
+ # read all the TQt source and header files into a list
all = []
qtdir = os.getenv("QTDIR")
for i in dirs:
- dir = QDir(os.path.join(qtdir, "src", i))
- lst = QStringList(dir.entryList("*.cpp; *.h"))
+ dir = TQDir(os.path.join(qtdir, "src", i))
+ lst = TQStringList(dir.entryList("*.cpp; *.h"))
for f in lst:
if f.contains("moc"):
continue
@@ -69,9 +69,9 @@ class Table(QTable):
# insert the data into the table
for it in all:
self.setText(i, TB_FILE, it)
- f = QFile(os.path.join(qtdir, "src", str(it)))
+ f = TQFile(os.path.join(qtdir, "src", str(it)))
self.setText(i, TB_SIZE, str(f.size()))
- ci = ComboItem(self, QTableItem.WhenCurrent)
+ ci = ComboItem(self, TQTableItem.WhenCurrent)
self.setItem(i, TB_FLAG, ci)
i = i + 1
sum += f.size()
@@ -91,9 +91,9 @@ class Table(QTable):
def displaySum(self, sum):
# insert calculated data
- i1 = TableItem(self, QTableItem.Never, self.tr("Sum"))
+ i1 = TableItem(self, TQTableItem.Never, self.tr("Sum"))
self.setItem(self.numRows()-1, TB_FILE, i1)
- i2 = TableItem(self, QTableItem.Never, str(sum))
+ i2 = TableItem(self, TQTableItem.Never, str(sum))
self.setItem(self.numRows()-1, TB_SIZE, i2)
def sortColumn(self, col, ascending, wholeRows):
@@ -101,35 +101,35 @@ class Table(QTable):
self.clearCell(self.numRows()-1, TB_FILE)
self.clearCell(self.numRows()-1, TB_SIZE)
# do sort
- QTable.sortColumn(self, col, ascending, TRUE)
+ TQTable.sortColumn(self, col, ascending, TRUE)
# re-insert sum row
self.recalcSum(0, TB_SIZE)
-class TableItem(QTableItem):
+class TableItem(TQTableItem):
def __init__(self, *args):
- apply(QTableItem.__init__, (self,) + args)
+ apply(TQTableItem.__init__, (self,) + args)
def paint(self, p, cg, cr, selected):
- g = QColorGroup(cg)
+ g = TQColorGroup(cg)
# last row is the sum row - we want to make it more visible by
# using a red background
if self.row() == self.table().numRows()-1:
- g.setColor(QColorGroup.Base, QColor("red"))
- QTableItem.paint(self, p, g, cr, selected)
+ g.setColor(TQColorGroup.Base, TQColor("red"))
+ TQTableItem.paint(self, p, g, cr, selected)
-class ComboItem(QTableItem):
+class ComboItem(TQTableItem):
def __init__(self, t, et):
- QTableItem.__init__(self, t, et, "Yes")
+ TQTableItem.__init__(self, t, et, "Yes")
self.cb = None
# we do not want this item to be replaced
self.setReplaceable(FALSE)
def createEditor(self):
# create an editor - a combobox in our case
- self.cb = QComboBox(self.table().viewport())
- QObject.connect(self.cb, SIGNAL("activated(int)"),
+ self.cb = TQComboBox(self.table().viewport())
+ TQObject.connect(self.cb, SIGNAL("activated(int)"),
self.table(), SLOT("doValueChanged()"))
self.cb.insertItem("Yes")
self.cb.insertItem("No")
@@ -143,10 +143,10 @@ class ComboItem(QTableItem):
def setContentFromEditor(self, w):
# the user changed the value of the combobox, so synchronize the
# value of the item (its text), with the value of the combobox
- if w.inherits("QComboBox"):
+ if w.inherits("TQComboBox"):
self.setText(w.currentText())
else:
- QTableItem.setContentFromEditor(self, w)
+ TQTableItem.setContentFromEditor(self, w)
def setText(self, s):
# initialize the combobox from the text
@@ -155,11 +155,11 @@ class ComboItem(QTableItem):
self.cb.setCurrentItem(1)
else:
self.cb.setCurrentItem(0)
- QTableItem.setText(self, s)
+ TQTableItem.setText(self, s)
if __name__ == '__main__':
- app = QApplication(sys.argv)
+ app = TQApplication(sys.argv)
t = Table()
t.setCaption("Statistics")
diff --git a/examples3/tooltip.py b/examples3/tooltip.py
index 7eadb7f..040d548 100755
--- a/examples3/tooltip.py
+++ b/examples3/tooltip.py
@@ -5,7 +5,7 @@
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
-** This file is part of an example program for Qt. This example
+** This file is part of an example program for TQt. This example
** program may be used, distributed and modified without limitation.
**
***************************************************************************"""
@@ -14,25 +14,25 @@ import sys
from qt import *
from random import random
-class DynamicTip( QToolTip ):
+class DynamicTip( TQToolTip ):
def __init__( self, parent ):
- QToolTip.__init__( self, parent )
+ TQToolTip.__init__( self, parent )
def maybeTip( self, pos ):
#if not self.parent.inherits( "TellMe" ):
- if QToolTip(self).parentWidget().inherits( "TellMe" ) :
+ if TQToolTip(self).parentWidget().inherits( "TellMe" ) :
return
- r = QRect( QToolTip(self).parentWidget().tip(pos) )
+ r = TQRect( TQToolTip(self).parentWidget().tip(pos) )
if not r.isValid():
return
- s = QString( "position: %d,%d" % (r.center().x(), r.center().y()) )
- QToolTip(self).tip( r, s )
+ s = TQString( "position: %d,%d" % (r.center().x(), r.center().y()) )
+ TQToolTip(self).tip( r, s )
-class TellMe( QWidget ):
+class TellMe( TQWidget ):
def __init__( self, parent=None, name=None ):
- QWidget.__init__( self, parent, name )
+ TQWidget.__init__( self, parent, name )
self.setMinimumSize( 30, 30 )
self.r1 = self.randomRect()
@@ -41,23 +41,23 @@ class TellMe( QWidget ):
self.t = DynamicTip( self )
- QToolTip.add( self, self.r3, "this color is called red" ) # <- helpful
+ TQToolTip.add( self, self.r3, "this color is called red" ) # <- helpful
def paintEvent( self, e ):
- p = QPainter( self )
+ p = TQPainter( self )
# I try to be efficient here, and repaint only what's needed
if e.rect().intersects( self.r1 ):
- p.setBrush( Qt.blue )
+ p.setBrush( TQt.blue )
p.drawRect( self.r1 )
if e.rect().intersects( self.r2 ):
- p.setBrush( Qt.blue )
+ p.setBrush( TQt.blue )
p.drawRect( self.r2 )
if e.rect().intersects( self.r3 ):
- p.setBrush( Qt.red )
+ p.setBrush( TQt.red )
p.drawRect( self.r3 )
def mousePressEvent( self, e ):
@@ -76,7 +76,7 @@ class TellMe( QWidget ):
self.r2 = self.randomRect()
def randomRect( self ):
- return QRect( random() * (self.width() - 20), random() * (self.height() - 20), 20, 20 )
+ return TQRect( random() * (self.width() - 20), random() * (self.height() - 20), 20, 20 )
def tip( self, p ):
@@ -85,17 +85,17 @@ class TellMe( QWidget ):
elif self.r2.contains( p ):
return self.r2
else:
- return QRect( 0,0, -1,-1 )
+ return TQRect( 0,0, -1,-1 )
def __del__( self ):
del self.t
self.t = None
def main( args ):
- a = QApplication( args )
+ a = TQApplication( args )
mw = TellMe()
- mw.setCaption( "Qt Example - Dynamic Tool Tips" )
+ mw.setCaption( "TQt Example - Dynamic Tool Tips" )
a.setMainWidget( mw )
mw.show()
diff --git a/examples3/trolltech.bmp b/examples3/trolltech.bmp
index 220861e..9f399c7 100644
--- a/examples3/trolltech.bmp
+++ b/examples3/trolltech.bmp
Binary files differ
diff --git a/examples3/trolltech.gif b/examples3/trolltech.gif
index f674369..7b0b8c9 100644
--- a/examples3/trolltech.gif
+++ b/examples3/trolltech.gif
Binary files differ
diff --git a/examples3/tt-logo.png b/examples3/tt-logo.png
index a0d9e34..1e51bfe 100644
--- a/examples3/tt-logo.png
+++ b/examples3/tt-logo.png
Binary files differ
diff --git a/examples3/tut1.py b/examples3/tut1.py
index 982e984..34dada8 100755
--- a/examples3/tut1.py
+++ b/examples3/tut1.py
@@ -1,14 +1,14 @@
#!/usr/bin/env python
-# Qt tutorial 1.
+# TQt tutorial 1.
import sys
import qt
-a = qt.QApplication(sys.argv)
+a = qt.TQApplication(sys.argv)
-hello = qt.QPushButton("Hello world!", None)
+hello = qt.TQPushButton("Hello world!", None)
hello.resize(100, 30)
a.setMainWidget(hello)
diff --git a/examples3/tut10.py b/examples3/tut10.py
index 182d04d..919ea7e 100755
--- a/examples3/tut10.py
+++ b/examples3/tut10.py
@@ -1,17 +1,17 @@
#!/usr/bin/env python
-# Qt tutorial 10.
+# TQt tutorial 10.
import sys
import qt
-class LCDRange(qt.QVBox):
+class LCDRange(qt.TQVBox):
def __init__(self, parent=None, name=None):
- qt.QVBox.__init__(self, parent, name)
+ qt.TQVBox.__init__(self, parent, name)
- lcd = qt.QLCDNumber(2, self, "lcd")
- self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider")
+ lcd = qt.TQLCDNumber(2, self, "lcd")
+ self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider")
self.slider.setRange(0, 99)
self.slider.setValue(0)
self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)"))
@@ -31,13 +31,13 @@ class LCDRange(qt.QVBox):
self.slider.setRange(minVal, maxVal)
-class CannonField(qt.QWidget):
+class CannonField(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
self.ang = 45
self.f = 0
- self.setPalette(qt.QPalette(qt.QColor(250, 250, 200)))
+ self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200)))
def angle(self):
return self.ang
@@ -69,38 +69,38 @@ class CannonField(qt.QWidget):
return
cr = self.cannonRect()
- pix = qt.QPixmap(cr.size())
+ pix = qt.TQPixmap(cr.size())
pix.fill(self, cr.topLeft())
- p = qt.QPainter(pix)
+ p = qt.TQPainter(pix)
- p.setBrush(qt.Qt.blue)
- p.setPen(qt.Qt.NoPen)
+ p.setBrush(qt.TQt.blue)
+ p.setPen(qt.TQt.NoPen)
p.translate(0, pix.height() - 1)
- p.drawPie(qt.QRect(-35, -35, 70, 70), 0, 90 * 16)
+ p.drawPie(qt.TQRect(-35, -35, 70, 70), 0, 90 * 16)
p.rotate(-self.ang)
- p.drawRect(qt.QRect(33, -4, 15, 8))
+ p.drawRect(qt.TQRect(33, -4, 15, 8))
p.end()
p.begin(self)
p.drawPixmap(cr.topLeft(), pix)
def cannonRect(self):
- r = qt.QRect(0, 0, 50, 50)
+ r = qt.TQRect(0, 0, 50, 50)
r.moveBottomLeft(self.rect().bottomLeft())
return r
def sizePolicy(self):
- return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding)
+ return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding)
-class MyWidget(qt.QWidget):
+class MyWidget(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
- quit = qt.QPushButton("&Quit", self, "quit")
- quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ quit = qt.TQPushButton("&Quit", self, "quit")
+ quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
self.angle = LCDRange(self, "angle")
@@ -117,13 +117,13 @@ class MyWidget(qt.QWidget):
self.connect(self.force, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce)
self.connect(self.cannonField, qt.PYSIGNAL("forceChanged(int)"), self.force.setValue)
- grid = qt.QGridLayout(self, 2, 2, 10)
+ grid = qt.TQGridLayout(self, 2, 2, 10)
grid.addWidget(quit, 0, 0)
grid.addWidget(self.cannonField, 1, 1)
grid.setColStretch(1, 10)
- leftBox = qt.QVBoxLayout()
+ leftBox = qt.TQVBoxLayout()
grid.addLayout(leftBox, 1, 0)
@@ -135,8 +135,8 @@ class MyWidget(qt.QWidget):
self.angle.setFocus()
-qt.QApplication.setColorSpec(qt.QApplication.CustomColor)
-a = qt.QApplication(sys.argv)
+qt.TQApplication.setColorSpec(qt.TQApplication.CustomColor)
+a = qt.TQApplication(sys.argv)
w = MyWidget()
w.setGeometry(100, 100, 500, 355)
diff --git a/examples3/tut11.py b/examples3/tut11.py
index 95d5066..305994f 100755
--- a/examples3/tut11.py
+++ b/examples3/tut11.py
@@ -1,18 +1,18 @@
#!/usr/bin/env python
-# Qt tutorial 11.
+# TQt tutorial 11.
import sys
import math
import qt
-class LCDRange(qt.QVBox):
+class LCDRange(qt.TQVBox):
def __init__(self, parent=None, name=None):
- qt.QVBox.__init__(self, parent, name)
+ qt.TQVBox.__init__(self, parent, name)
- lcd = qt.QLCDNumber(2, self, "lcd")
- self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider")
+ lcd = qt.TQLCDNumber(2, self, "lcd")
+ self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider")
self.slider.setRange(0, 99)
self.slider.setValue(0)
self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)"))
@@ -32,23 +32,23 @@ class LCDRange(qt.QVBox):
self.slider.setRange(minVal, maxVal)
-class CannonField(qt.QWidget):
+class CannonField(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
self.ang = 45
self.f = 0
self.timerCount = 0
- self.autoShootTimer = qt.QTimer(self, "movement handler")
+ self.autoShootTimer = qt.TQTimer(self, "movement handler")
self.connect(self.autoShootTimer, qt.SIGNAL("timeout()"), self.moveShot)
self.shoot_ang = 0
self.shoot_f = 0
- self.setPalette(qt.QPalette(qt.QColor(250, 250, 200)))
+ self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200)))
- self.barrelRect = qt.QRect(33, -4, 15, 8)
+ self.barrelRect = qt.TQRect(33, -4, 15, 8)
def angle(self):
return self.ang
@@ -85,7 +85,7 @@ class CannonField(qt.QWidget):
self.autoShootTimer.start(50)
def moveShot(self):
- r = qt.QRegion(self.shotRect())
+ r = qt.TQRegion(self.shotRect())
self.timerCount = self.timerCount + 1
shotR = self.shotRect()
@@ -93,13 +93,13 @@ class CannonField(qt.QWidget):
if shotR.x() > self.width() or shotR.y() > self.height():
self.autoShootTimer.stop()
else:
- r = r.unite(qt.QRegion(shotR))
+ r = r.unite(qt.TQRegion(shotR))
self.repaint(r)
def paintEvent(self, ev):
updateR = ev.rect()
- p = qt.QPainter(self)
+ p = qt.TQPainter(self)
if updateR.intersects(self.cannonRect()):
self.paintCannon(p)
@@ -108,21 +108,21 @@ class CannonField(qt.QWidget):
self.paintShot(p)
def paintShot(self, p):
- p.setBrush(qt.Qt.black)
- p.setPen(qt.Qt.NoPen)
+ p.setBrush(qt.TQt.black)
+ p.setPen(qt.TQt.NoPen)
p.drawRect(self.shotRect())
def paintCannon(self, p):
cr = self.cannonRect()
- pix = qt.QPixmap(cr.size())
+ pix = qt.TQPixmap(cr.size())
pix.fill(self, cr.topLeft())
- tmp = qt.QPainter(pix)
- tmp.setBrush(qt.Qt.blue)
- tmp.setPen(qt.Qt.NoPen)
+ tmp = qt.TQPainter(pix)
+ tmp.setBrush(qt.TQt.blue)
+ tmp.setPen(qt.TQt.NoPen)
tmp.translate(0, pix.height() - 1)
- tmp.drawPie(qt.QRect(-35, -35, 70, 70), 0, 90 * 16)
+ tmp.drawPie(qt.TQRect(-35, -35, 70, 70), 0, 90 * 16)
tmp.rotate(-self.ang)
tmp.drawRect(self.barrelRect)
tmp.end()
@@ -130,7 +130,7 @@ class CannonField(qt.QWidget):
p.drawPixmap(cr.topLeft(), pix)
def cannonRect(self):
- r = qt.QRect(0, 0, 50, 50)
+ r = qt.TQRect(0, 0, 50, 50)
r.moveBottomLeft(self.rect().bottomLeft())
return r
@@ -148,20 +148,20 @@ class CannonField(qt.QWidget):
x = x0 + velx * time
y = y0 + vely * time - 0.5 * gravity * time * time
- r = qt.QRect(0, 0, 6, 6)
- r.moveCenter(qt.QPoint(x, self.height() - 1 - y))
+ r = qt.TQRect(0, 0, 6, 6)
+ r.moveCenter(qt.TQPoint(x, self.height() - 1 - y))
return r
def sizePolicy(self):
- return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding)
+ return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding)
-class MyWidget(qt.QWidget):
+class MyWidget(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
- quit = qt.QPushButton("&Quit", self, "quit")
- quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ quit = qt.TQPushButton("&Quit", self, "quit")
+ quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
self.angle = LCDRange(self, "angle")
@@ -178,22 +178,22 @@ class MyWidget(qt.QWidget):
self.connect(self.force, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce)
self.connect(self.cannonField, qt.PYSIGNAL("forceChanged(int)"), self.force.setValue)
- shoot = qt.QPushButton("&Shoot", self, "shoot")
- shoot.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ shoot = qt.TQPushButton("&Shoot", self, "shoot")
+ shoot.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(shoot, qt.SIGNAL("clicked()"), self.cannonField.shoot)
- grid = qt.QGridLayout(self, 2, 2, 10)
+ grid = qt.TQGridLayout(self, 2, 2, 10)
grid.addWidget(quit, 0, 0)
grid.addWidget(self.cannonField, 1, 1)
grid.setColStretch(1, 10)
- leftBox = qt.QVBoxLayout()
+ leftBox = qt.TQVBoxLayout()
grid.addLayout(leftBox, 1, 0)
leftBox.addWidget(self.angle)
leftBox.addWidget(self.force)
- topBox = qt.QHBoxLayout()
+ topBox = qt.TQHBoxLayout()
grid.addLayout(topBox, 0, 1)
topBox.addWidget(shoot)
topBox.addStretch(1)
@@ -203,8 +203,8 @@ class MyWidget(qt.QWidget):
self.angle.setFocus()
-qt.QApplication.setColorSpec(qt.QApplication.CustomColor)
-a = qt.QApplication(sys.argv)
+qt.TQApplication.setColorSpec(qt.TQApplication.CustomColor)
+a = qt.TQApplication(sys.argv)
w = MyWidget()
w.setGeometry(100, 100, 500, 355)
diff --git a/examples3/tut12.py b/examples3/tut12.py
index 818afd3..a16b088 100755
--- a/examples3/tut12.py
+++ b/examples3/tut12.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-# Qt tutorial 12.
+# TQt tutorial 12.
import sys
import math
@@ -8,17 +8,17 @@ import random
import qt
-class LCDRange(qt.QVBox):
+class LCDRange(qt.TQVBox):
def __init__(self, s=None, parent=None, name=None):
- qt.QVBox.__init__(self, parent, name)
+ qt.TQVBox.__init__(self, parent, name)
- lcd = qt.QLCDNumber(2, self, "lcd")
- self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider")
+ lcd = qt.TQLCDNumber(2, self, "lcd")
+ self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider")
self.slider.setRange(0, 99)
self.slider.setValue(0)
- self.label = qt.QLabel(" ", self, "label")
- self.label.setAlignment(qt.Qt.AlignCenter)
+ self.label = qt.TQLabel(" ", self, "label")
+ self.label.setAlignment(qt.TQt.AlignCenter)
self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)"))
self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)"))
@@ -47,24 +47,24 @@ class LCDRange(qt.QVBox):
self.label.setText(s)
-class CannonField(qt.QWidget):
+class CannonField(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
self.ang = 45
self.f = 0
self.timerCount = 0
- self.autoShootTimer = qt.QTimer(self, "movement handler")
+ self.autoShootTimer = qt.TQTimer(self, "movement handler")
self.connect(self.autoShootTimer, qt.SIGNAL("timeout()"), self.moveShot)
self.shoot_ang = 0
self.shoot_f = 0
- self.target = qt.QPoint(0, 0)
+ self.target = qt.TQPoint(0, 0)
- self.setPalette(qt.QPalette(qt.QColor(250, 250, 200)))
+ self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200)))
- self.barrelRect = qt.QRect(33, -4, 15, 8)
+ self.barrelRect = qt.TQRect(33, -4, 15, 8)
self.newTarget()
@@ -103,12 +103,12 @@ class CannonField(qt.QWidget):
self.autoShootTimer.start(50)
def newTarget(self):
- r = qt.QRegion(self.targetRect())
- self.target = qt.QPoint(random.randint(200, 390), random.randint(10, 265))
- self.repaint(r.unite(qt.QRegion(self.targetRect())))
+ r = qt.TQRegion(self.targetRect())
+ self.target = qt.TQPoint(random.randint(200, 390), random.randint(10, 265))
+ self.repaint(r.unite(qt.TQRegion(self.targetRect())))
def moveShot(self):
- r = qt.QRegion(self.shotRect())
+ r = qt.TQRegion(self.shotRect())
self.timerCount = self.timerCount + 1
shotR = self.shotRect()
@@ -120,13 +120,13 @@ class CannonField(qt.QWidget):
self.autoShootTimer.stop()
self.emit(qt.PYSIGNAL("missed()"), ())
else:
- r = r.unite(qt.QRegion(shotR))
+ r = r.unite(qt.TQRegion(shotR))
self.repaint(r)
def paintEvent(self, ev):
updateR = ev.rect()
- p = qt.QPainter(self)
+ p = qt.TQPainter(self)
if updateR.intersects(self.cannonRect()):
self.paintCannon(p)
@@ -138,26 +138,26 @@ class CannonField(qt.QWidget):
self.paintTarget(p)
def paintShot(self, p):
- p.setBrush(qt.Qt.black)
- p.setPen(qt.Qt.NoPen)
+ p.setBrush(qt.TQt.black)
+ p.setPen(qt.TQt.NoPen)
p.drawRect(self.shotRect())
def paintTarget(self, p):
- p.setBrush(qt.Qt.red)
- p.setPen(qt.Qt.black)
+ p.setBrush(qt.TQt.red)
+ p.setPen(qt.TQt.black)
p.drawRect(self.targetRect())
def paintCannon(self, p):
cr = self.cannonRect()
- pix = qt.QPixmap(cr.size())
+ pix = qt.TQPixmap(cr.size())
pix.fill(self, cr.topLeft())
- tmp = qt.QPainter(pix)
- tmp.setBrush(qt.Qt.blue)
- tmp.setPen(qt.Qt.NoPen)
+ tmp = qt.TQPainter(pix)
+ tmp.setBrush(qt.TQt.blue)
+ tmp.setPen(qt.TQt.NoPen)
tmp.translate(0, pix.height() - 1)
- tmp.drawPie(qt.QRect(-35, -35, 70, 70), 0, 90 * 16)
+ tmp.drawPie(qt.TQRect(-35, -35, 70, 70), 0, 90 * 16)
tmp.rotate(-self.ang)
tmp.drawRect(self.barrelRect)
tmp.end()
@@ -165,7 +165,7 @@ class CannonField(qt.QWidget):
p.drawPixmap(cr.topLeft(), pix)
def cannonRect(self):
- r = qt.QRect(0, 0, 50, 50)
+ r = qt.TQRect(0, 0, 50, 50)
r.moveBottomLeft(self.rect().bottomLeft())
return r
@@ -183,25 +183,25 @@ class CannonField(qt.QWidget):
x = x0 + velx * time
y = y0 + vely * time - 0.5 * gravity * time * time
- r = qt.QRect(0, 0, 6, 6)
- r.moveCenter(qt.QPoint(x, self.height() - 1 - y))
+ r = qt.TQRect(0, 0, 6, 6)
+ r.moveCenter(qt.TQPoint(x, self.height() - 1 - y))
return r
def targetRect(self):
- r = qt.QRect(0, 0, 20, 10)
- r.moveCenter(qt.QPoint(self.target.x(), self.height() - 1 - self.target.y()))
+ r = qt.TQRect(0, 0, 20, 10)
+ r.moveCenter(qt.TQPoint(self.target.x(), self.height() - 1 - self.target.y()))
return r
def sizePolicy(self):
- return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding)
+ return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding)
-class MyWidget(qt.QWidget):
+class MyWidget(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
- quit = qt.QPushButton("&Quit", self, "quit")
- quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ quit = qt.TQPushButton("&Quit", self, "quit")
+ quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
self.angle = LCDRange("ANGLE", self, "angle")
@@ -218,22 +218,22 @@ class MyWidget(qt.QWidget):
self.connect(self.force, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce)
self.connect(self.cannonField, qt.PYSIGNAL("forceChanged(int)"), self.force.setValue)
- shoot = qt.QPushButton("&Shoot", self, "shoot")
- shoot.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ shoot = qt.TQPushButton("&Shoot", self, "shoot")
+ shoot.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(shoot, qt.SIGNAL("clicked()"), self.cannonField.shoot)
- grid = qt.QGridLayout(self, 2, 2, 10)
+ grid = qt.TQGridLayout(self, 2, 2, 10)
grid.addWidget(quit, 0, 0)
grid.addWidget(self.cannonField, 1, 1)
grid.setColStretch(1, 10)
- leftBox = qt.QVBoxLayout()
+ leftBox = qt.TQVBoxLayout()
grid.addLayout(leftBox, 1, 0)
leftBox.addWidget(self.angle)
leftBox.addWidget(self.force)
- topBox = qt.QHBoxLayout()
+ topBox = qt.TQHBoxLayout()
grid.addLayout(topBox, 0, 1)
topBox.addWidget(shoot)
topBox.addStretch(1)
@@ -243,8 +243,8 @@ class MyWidget(qt.QWidget):
self.angle.setFocus()
-qt.QApplication.setColorSpec(qt.QApplication.CustomColor)
-a = qt.QApplication(sys.argv)
+qt.TQApplication.setColorSpec(qt.TQApplication.CustomColor)
+a = qt.TQApplication(sys.argv)
w = MyWidget()
w.setGeometry(100, 100, 500, 355)
diff --git a/examples3/tut13.py b/examples3/tut13.py
index a973ea7..5514a2e 100755
--- a/examples3/tut13.py
+++ b/examples3/tut13.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-# Qt tutorial 13.
+# TQt tutorial 13.
import sys
import math
@@ -8,24 +8,24 @@ import random
import qt
-class LCDRange(qt.QWidget):
+class LCDRange(qt.TQWidget):
def __init__(self, s=None, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
- lcd = qt.QLCDNumber(2, self, "lcd")
- self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider")
+ lcd = qt.TQLCDNumber(2, self, "lcd")
+ self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider")
self.slider.setRange(0, 99)
self.slider.setValue(0)
- self.label = qt.QLabel(" ", self, "label")
- self.label.setAlignment(qt.Qt.AlignCenter)
+ self.label = qt.TQLabel(" ", self, "label")
+ self.label.setAlignment(qt.TQt.AlignCenter)
self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)"))
self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)"))
self.setFocusProxy(self.slider)
- l = qt.QVBoxLayout(self)
+ l = qt.TQVBoxLayout(self)
l.addWidget(lcd, 1)
l.addWidget(self.slider)
l.addWidget(self.label)
@@ -52,25 +52,25 @@ class LCDRange(qt.QWidget):
self.label.setText(s)
-class CannonField(qt.QWidget):
+class CannonField(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
self.ang = 45
self.f = 0
self.timerCount = 0
- self.autoShootTimer = qt.QTimer(self, "movement handler")
+ self.autoShootTimer = qt.TQTimer(self, "movement handler")
self.connect(self.autoShootTimer, qt.SIGNAL("timeout()"), self.moveShot)
self.shoot_ang = 0
self.shoot_f = 0
- self.target = qt.QPoint(0, 0)
+ self.target = qt.TQPoint(0, 0)
self.gameEnded = 0
- self.setPalette(qt.QPalette(qt.QColor(250, 250, 200)))
+ self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200)))
- self.barrelRect = qt.QRect(33, -4, 15, 8)
+ self.barrelRect = qt.TQRect(33, -4, 15, 8)
self.newTarget()
@@ -110,9 +110,9 @@ class CannonField(qt.QWidget):
self.emit(qt.PYSIGNAL("canShoot(bool)"), (0, ))
def newTarget(self):
- r = qt.QRegion(self.targetRect())
- self.target = qt.QPoint(random.randint(200, 390), random.randint(10, 265))
- self.repaint(r.unite(qt.QRegion(self.targetRect())))
+ r = qt.TQRegion(self.targetRect())
+ self.target = qt.TQPoint(random.randint(200, 390), random.randint(10, 265))
+ self.repaint(r.unite(qt.TQRegion(self.targetRect())))
def gameOver(self):
return self.gameEnded
@@ -133,7 +133,7 @@ class CannonField(qt.QWidget):
self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, ))
def moveShot(self):
- r = qt.QRegion(self.shotRect())
+ r = qt.TQRegion(self.shotRect())
self.timerCount = self.timerCount + 1
shotR = self.shotRect()
@@ -147,18 +147,18 @@ class CannonField(qt.QWidget):
self.emit(qt.PYSIGNAL("missed()"), ())
self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, ))
else:
- r = r.unite(qt.QRegion(shotR))
+ r = r.unite(qt.TQRegion(shotR))
self.repaint(r)
def paintEvent(self, ev):
updateR = ev.rect()
- p = qt.QPainter(self)
+ p = qt.TQPainter(self)
if self.gameEnded:
- p.setPen(qt.Qt.black)
- p.setFont(qt.QFont("Courier", 48, qt.QFont.Bold))
- p.drawText(self.rect(), qt.Qt.AlignCenter, "Game Over")
+ p.setPen(qt.TQt.black)
+ p.setFont(qt.TQFont("Courier", 48, qt.TQFont.Bold))
+ p.drawText(self.rect(), qt.TQt.AlignCenter, "Game Over")
if updateR.intersects(self.cannonRect()):
self.paintCannon(p)
@@ -170,26 +170,26 @@ class CannonField(qt.QWidget):
self.paintTarget(p)
def paintShot(self, p):
- p.setBrush(qt.Qt.black)
- p.setPen(qt.Qt.NoPen)
+ p.setBrush(qt.TQt.black)
+ p.setPen(qt.TQt.NoPen)
p.drawRect(self.shotRect())
def paintTarget(self, p):
- p.setBrush(qt.Qt.red)
- p.setPen(qt.Qt.black)
+ p.setBrush(qt.TQt.red)
+ p.setPen(qt.TQt.black)
p.drawRect(self.targetRect())
def paintCannon(self, p):
cr = self.cannonRect()
- pix = qt.QPixmap(cr.size())
+ pix = qt.TQPixmap(cr.size())
pix.fill(self, cr.topLeft())
- tmp = qt.QPainter(pix)
- tmp.setBrush(qt.Qt.blue)
- tmp.setPen(qt.Qt.NoPen)
+ tmp = qt.TQPainter(pix)
+ tmp.setBrush(qt.TQt.blue)
+ tmp.setPen(qt.TQt.NoPen)
tmp.translate(0, pix.height() - 1)
- tmp.drawPie(qt.QRect(-35, -35, 70, 70), 0, 90 * 16)
+ tmp.drawPie(qt.TQRect(-35, -35, 70, 70), 0, 90 * 16)
tmp.rotate(-self.ang)
tmp.drawRect(self.barrelRect)
tmp.end()
@@ -197,7 +197,7 @@ class CannonField(qt.QWidget):
p.drawPixmap(cr.topLeft(), pix)
def cannonRect(self):
- r = qt.QRect(0, 0, 50, 50)
+ r = qt.TQRect(0, 0, 50, 50)
r.moveBottomLeft(self.rect().bottomLeft())
return r
@@ -215,28 +215,28 @@ class CannonField(qt.QWidget):
x = x0 + velx * time
y = y0 + vely * time - 0.5 * gravity * time * time
- r = qt.QRect(0, 0, 6, 6)
- r.moveCenter(qt.QPoint(x, self.height() - 1 - y))
+ r = qt.TQRect(0, 0, 6, 6)
+ r.moveCenter(qt.TQPoint(x, self.height() - 1 - y))
return r
def targetRect(self):
- r = qt.QRect(0, 0, 20, 10)
- r.moveCenter(qt.QPoint(self.target.x(), self.height() - 1 - self.target.y()))
+ r = qt.TQRect(0, 0, 20, 10)
+ r.moveCenter(qt.TQPoint(self.target.x(), self.height() - 1 - self.target.y()))
return r
def isShooting(self):
return self.autoShootTimer.isActive()
def sizePolicy(self):
- return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding)
+ return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding)
-class GameBoard(qt.QWidget):
+class GameBoard(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
- quit = qt.QPushButton("&Quit", self, "quit")
- quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ quit = qt.TQPushButton("&Quit", self, "quit")
+ quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
self.angle = LCDRange("ANGLE", self, "angle")
@@ -256,31 +256,31 @@ class GameBoard(qt.QWidget):
self.connect(self.cannonField, qt.PYSIGNAL("hit()"), self.hit)
self.connect(self.cannonField, qt.PYSIGNAL("missed()"), self.missed)
- self.shoot = qt.QPushButton("&Shoot", self, "shoot")
- self.shoot.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ self.shoot = qt.TQPushButton("&Shoot", self, "shoot")
+ self.shoot.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(self.shoot, qt.SIGNAL("clicked()"), self.fire)
self.connect(self.cannonField, qt.PYSIGNAL("canShoot(bool)"), self.shoot, qt.SLOT("setEnabled(bool)"))
- restart = qt.QPushButton("&New Game", self, "newgame")
- restart.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ restart = qt.TQPushButton("&New Game", self, "newgame")
+ restart.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(restart, qt.SIGNAL("clicked()"), self.newGame)
- self.hits = qt.QLCDNumber(2, self, "hits")
- self.shotsLeft = qt.QLCDNumber(2, self, "shotsleft")
- hitsL = qt.QLabel("HITS", self, "hitsLabel")
- shotsLeftL = qt.QLabel("SHOTS LEFT", self, "shotsleftLabel")
+ self.hits = qt.TQLCDNumber(2, self, "hits")
+ self.shotsLeft = qt.TQLCDNumber(2, self, "shotsleft")
+ hitsL = qt.TQLabel("HITS", self, "hitsLabel")
+ shotsLeftL = qt.TQLabel("SHOTS LEFT", self, "shotsleftLabel")
- grid = qt.QGridLayout(self, 2, 2, 10)
+ grid = qt.TQGridLayout(self, 2, 2, 10)
grid.addWidget(quit, 0, 0)
grid.addWidget(self.cannonField, 1, 1)
grid.setColStretch(1, 10)
- leftBox = qt.QVBoxLayout()
+ leftBox = qt.TQVBoxLayout()
grid.addLayout(leftBox, 1, 0)
leftBox.addWidget(self.angle)
leftBox.addWidget(self.force)
- topBox = qt.QHBoxLayout()
+ topBox = qt.TQHBoxLayout()
grid.addLayout(topBox, 0, 1)
topBox.addWidget(self.shoot)
topBox.addWidget(self.hits)
@@ -320,8 +320,8 @@ class GameBoard(qt.QWidget):
self.cannonField.newTarget()
-qt.QApplication.setColorSpec(qt.QApplication.CustomColor)
-a = qt.QApplication(sys.argv)
+qt.TQApplication.setColorSpec(qt.TQApplication.CustomColor)
+a = qt.TQApplication(sys.argv)
gb = GameBoard()
gb.setGeometry(100, 100, 500, 355)
diff --git a/examples3/tut14.py b/examples3/tut14.py
index f046757..c442767 100755
--- a/examples3/tut14.py
+++ b/examples3/tut14.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-# Qt tutorial 14.
+# TQt tutorial 14.
import sys
import math
@@ -8,24 +8,24 @@ import random
import qt
-class LCDRange(qt.QWidget):
+class LCDRange(qt.TQWidget):
def __init__(self, s=None, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
- lcd = qt.QLCDNumber(2, self, "lcd")
- self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider")
+ lcd = qt.TQLCDNumber(2, self, "lcd")
+ self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider")
self.slider.setRange(0, 99)
self.slider.setValue(0)
- self.label = qt.QLabel(" ", self, "label")
- self.label.setAlignment(qt.Qt.AlignCenter)
+ self.label = qt.TQLabel(" ", self, "label")
+ self.label.setAlignment(qt.TQt.AlignCenter)
self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)"))
self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)"))
self.setFocusProxy(self.slider)
- l = qt.QVBoxLayout(self)
+ l = qt.TQVBoxLayout(self)
l.addWidget(lcd, 1)
l.addWidget(self.slider)
l.addWidget(self.label)
@@ -52,26 +52,26 @@ class LCDRange(qt.QWidget):
self.label.setText(s)
-class CannonField(qt.QWidget):
+class CannonField(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
self.ang = 45
self.f = 0
self.timerCount = 0
- self.autoShootTimer = qt.QTimer(self, "movement handler")
+ self.autoShootTimer = qt.TQTimer(self, "movement handler")
self.connect(self.autoShootTimer, qt.SIGNAL("timeout()"), self.moveShot)
self.shoot_ang = 0
self.shoot_f = 0
- self.target = qt.QPoint(0, 0)
+ self.target = qt.TQPoint(0, 0)
self.gameEnded = 0
self.barrelPressed = 0
- self.setPalette(qt.QPalette(qt.QColor(250, 250, 200)))
+ self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200)))
- self.barrelRect = qt.QRect(33, -4, 15, 8)
+ self.barrelRect = qt.TQRect(33, -4, 15, 8)
self.newTarget()
@@ -111,9 +111,9 @@ class CannonField(qt.QWidget):
self.emit(qt.PYSIGNAL("canShoot(bool)"), (0, ))
def newTarget(self):
- r = qt.QRegion(self.targetRect())
- self.target = qt.QPoint(random.randint(200, 390), random.randint(10, 265))
- self.repaint(r.unite(qt.QRegion(self.targetRect())))
+ r = qt.TQRegion(self.targetRect())
+ self.target = qt.TQPoint(random.randint(200, 390), random.randint(10, 265))
+ self.repaint(r.unite(qt.TQRegion(self.targetRect())))
def gameOver(self):
return self.gameEnded
@@ -134,7 +134,7 @@ class CannonField(qt.QWidget):
self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, ))
def moveShot(self):
- r = qt.QRegion(self.shotRect())
+ r = qt.TQRegion(self.shotRect())
self.timerCount = self.timerCount + 1
shotR = self.shotRect()
@@ -148,12 +148,12 @@ class CannonField(qt.QWidget):
self.emit(qt.PYSIGNAL("missed()"), ())
self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, ))
else:
- r = r.unite(qt.QRegion(shotR))
+ r = r.unite(qt.TQRegion(shotR))
self.repaint(r)
def mousePressEvent(self, ev):
- if ev.button() != qt.Qt.LeftButton:
+ if ev.button() != qt.TQt.LeftButton:
return
if self.barrelHit(ev.pos()):
self.barrelPressed = 1
@@ -170,17 +170,17 @@ class CannonField(qt.QWidget):
self.setAngle(int(round(rad * 180 / math.pi)))
def mouseReleaseEvent(self, ev):
- if ev.button() == qt.Qt.LeftButton:
+ if ev.button() == qt.TQt.LeftButton:
self.barrelPressed = 0
def paintEvent(self, ev):
updateR = ev.rect()
- p = qt.QPainter(self)
+ p = qt.TQPainter(self)
if self.gameEnded:
- p.setPen(qt.Qt.black)
- p.setFont(qt.QFont("Courier", 48, qt.QFont.Bold))
- p.drawText(self.rect(), qt.Qt.AlignCenter, "Game Over")
+ p.setPen(qt.TQt.black)
+ p.setFont(qt.TQFont("Courier", 48, qt.TQFont.Bold))
+ p.drawText(self.rect(), qt.TQt.AlignCenter, "Game Over")
if updateR.intersects(self.cannonRect()):
self.paintCannon(p)
@@ -195,31 +195,31 @@ class CannonField(qt.QWidget):
self.paintTarget(p)
def paintShot(self, p):
- p.setBrush(qt.Qt.black)
- p.setPen(qt.Qt.NoPen)
+ p.setBrush(qt.TQt.black)
+ p.setPen(qt.TQt.NoPen)
p.drawRect(self.shotRect())
def paintTarget(self, p):
- p.setBrush(qt.Qt.red)
- p.setPen(qt.Qt.black)
+ p.setBrush(qt.TQt.red)
+ p.setPen(qt.TQt.black)
p.drawRect(self.targetRect())
def paintBarrier(self, p):
- p.setBrush(qt.Qt.yellow)
- p.setPen(qt.Qt.black)
+ p.setBrush(qt.TQt.yellow)
+ p.setPen(qt.TQt.black)
p.drawRect(self.barrierRect())
def paintCannon(self, p):
cr = self.cannonRect()
- pix = qt.QPixmap(cr.size())
+ pix = qt.TQPixmap(cr.size())
pix.fill(self, cr.topLeft())
- tmp = qt.QPainter(pix)
- tmp.setBrush(qt.Qt.blue)
- tmp.setPen(qt.Qt.NoPen)
+ tmp = qt.TQPainter(pix)
+ tmp.setBrush(qt.TQt.blue)
+ tmp.setPen(qt.TQt.NoPen)
tmp.translate(0, pix.height() - 1)
- tmp.drawPie(qt.QRect(-35, -35, 70, 70), 0, 90 * 16)
+ tmp.drawPie(qt.TQRect(-35, -35, 70, 70), 0, 90 * 16)
tmp.rotate(-self.ang)
tmp.drawRect(self.barrelRect)
tmp.end()
@@ -227,7 +227,7 @@ class CannonField(qt.QWidget):
p.drawPixmap(cr.topLeft(), pix)
def cannonRect(self):
- r = qt.QRect(0, 0, 50, 50)
+ r = qt.TQRect(0, 0, 50, 50)
r.moveBottomLeft(self.rect().bottomLeft())
return r
@@ -245,20 +245,20 @@ class CannonField(qt.QWidget):
x = x0 + velx * time
y = y0 + vely * time - 0.5 * gravity * time * time
- r = qt.QRect(0, 0, 6, 6)
- r.moveCenter(qt.QPoint(x, self.height() - 1 - y))
+ r = qt.TQRect(0, 0, 6, 6)
+ r.moveCenter(qt.TQPoint(x, self.height() - 1 - y))
return r
def targetRect(self):
- r = qt.QRect(0, 0, 20, 10)
- r.moveCenter(qt.QPoint(self.target.x(), self.height() - 1 - self.target.y()))
+ r = qt.TQRect(0, 0, 20, 10)
+ r.moveCenter(qt.TQPoint(self.target.x(), self.height() - 1 - self.target.y()))
return r
def barrierRect(self):
- return qt.QRect(145, self.height() - 100, 15, 100)
+ return qt.TQRect(145, self.height() - 100, 15, 100)
def barrelHit(self, p):
- mtx = qt.QWMatrix()
+ mtx = qt.TQWMatrix()
mtx.translate(0, self.height() - 1)
mtx.rotate(-self.ang)
(mtx, invertable) = mtx.invert()
@@ -268,15 +268,15 @@ class CannonField(qt.QWidget):
return self.autoShootTimer.isActive()
def sizePolicy(self):
- return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding)
+ return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding)
-class GameBoard(qt.QWidget):
+class GameBoard(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
- quit = qt.QPushButton("&Quit", self, "quit")
- quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ quit = qt.TQPushButton("&Quit", self, "quit")
+ quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
self.angle = LCDRange("ANGLE", self, "angle")
@@ -285,8 +285,8 @@ class GameBoard(qt.QWidget):
self.force = LCDRange("FORCE", self, "force")
self.force.setRange(10, 50)
- box = qt.QVBox(self, "cannonFrame")
- box.setFrameStyle(qt.QFrame.WinPanel | qt.QFrame.Sunken)
+ box = qt.TQVBox(self, "cannonFrame")
+ box.setFrameStyle(qt.TQFrame.WinPanel | qt.TQFrame.Sunken)
self.cannonField = CannonField(box, "cannonField")
@@ -299,36 +299,36 @@ class GameBoard(qt.QWidget):
self.connect(self.cannonField, qt.PYSIGNAL("hit()"), self.hit)
self.connect(self.cannonField, qt.PYSIGNAL("missed()"), self.missed)
- self.shoot = qt.QPushButton("&Shoot", self, "shoot")
- self.shoot.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ self.shoot = qt.TQPushButton("&Shoot", self, "shoot")
+ self.shoot.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(self.shoot, qt.SIGNAL("clicked()"), self.fire)
self.connect(self.cannonField, qt.PYSIGNAL("canShoot(bool)"), self.shoot, qt.SLOT("setEnabled(bool)"))
- restart = qt.QPushButton("&New Game", self, "newgame")
- restart.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ restart = qt.TQPushButton("&New Game", self, "newgame")
+ restart.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(restart, qt.SIGNAL("clicked()"), self.newGame)
- self.hits = qt.QLCDNumber(2, self, "hits")
- self.shotsLeft = qt.QLCDNumber(2, self, "shotsleft")
- hitsL = qt.QLabel("HITS", self, "hitsLabel")
- shotsLeftL = qt.QLabel("SHOTS LEFT", self, "shotsleftLabel")
+ self.hits = qt.TQLCDNumber(2, self, "hits")
+ self.shotsLeft = qt.TQLCDNumber(2, self, "shotsleft")
+ hitsL = qt.TQLabel("HITS", self, "hitsLabel")
+ shotsLeftL = qt.TQLabel("SHOTS LEFT", self, "shotsleftLabel")
- accel = qt.QAccel(self)
- accel.connectItem(accel.insertItem(qt.Qt.Key_Enter), self.fire)
- accel.connectItem(accel.insertItem(qt.Qt.Key_Return), self.fire)
- accel.connectItem(accel.insertItem(qt.Qt.CTRL + qt.Qt.Key_Q), qt.qApp, qt.SLOT("quit()"))
+ accel = qt.TQAccel(self)
+ accel.connectItem(accel.insertItem(qt.TQt.Key_Enter), self.fire)
+ accel.connectItem(accel.insertItem(qt.TQt.Key_Return), self.fire)
+ accel.connectItem(accel.insertItem(qt.TQt.CTRL + qt.TQt.Key_Q), qt.qApp, qt.SLOT("quit()"))
- grid = qt.QGridLayout(self, 2, 2, 10)
+ grid = qt.TQGridLayout(self, 2, 2, 10)
grid.addWidget(quit, 0, 0)
grid.addWidget(box, 1, 1)
grid.setColStretch(1, 10)
- leftBox = qt.QVBoxLayout()
+ leftBox = qt.TQVBoxLayout()
grid.addLayout(leftBox, 1, 0)
leftBox.addWidget(self.angle)
leftBox.addWidget(self.force)
- topBox = qt.QHBoxLayout()
+ topBox = qt.TQHBoxLayout()
grid.addLayout(topBox, 0, 1)
topBox.addWidget(self.shoot)
topBox.addWidget(self.hits)
@@ -368,8 +368,8 @@ class GameBoard(qt.QWidget):
self.cannonField.newTarget()
-qt.QApplication.setColorSpec(qt.QApplication.CustomColor)
-a = qt.QApplication(sys.argv)
+qt.TQApplication.setColorSpec(qt.TQApplication.CustomColor)
+a = qt.TQApplication(sys.argv)
gb = GameBoard()
gb.setGeometry(100, 100, 500, 355)
diff --git a/examples3/tut2.py b/examples3/tut2.py
index 8b6a076..0234d48 100755
--- a/examples3/tut2.py
+++ b/examples3/tut2.py
@@ -1,18 +1,18 @@
#!/usr/bin/env python
-# Qt tutorial 2.
+# TQt tutorial 2.
import sys
import qt
-a = qt.QApplication(sys.argv)
+a = qt.TQApplication(sys.argv)
-quit = qt.QPushButton("Quit", None)
+quit = qt.TQPushButton("Quit", None)
quit.resize(75, 30)
-quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
-qt.QObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()"))
+qt.TQObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()"))
a.setMainWidget(quit)
quit.show()
diff --git a/examples3/tut3.py b/examples3/tut3.py
index 9b73954..4f69461 100755
--- a/examples3/tut3.py
+++ b/examples3/tut3.py
@@ -1,20 +1,20 @@
#!/usr/bin/env python
-# Qt tutorial 3.
+# TQt tutorial 3.
import sys
import qt
-a = qt.QApplication(sys.argv)
+a = qt.TQApplication(sys.argv)
-box = qt.QVBox()
+box = qt.TQVBox()
box.resize(200, 120)
-quit = qt.QPushButton("Quit", box)
-quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+quit = qt.TQPushButton("Quit", box)
+quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
-qt.QObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()"))
+qt.TQObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()"))
a.setMainWidget(box)
box.show()
diff --git a/examples3/tut4.py b/examples3/tut4.py
index 9ad05c7..968d325 100755
--- a/examples3/tut4.py
+++ b/examples3/tut4.py
@@ -1,26 +1,26 @@
#!/usr/bin/env python
-# Qt tutorial 4.
+# TQt tutorial 4.
import sys
import qt
-class MyWidget(qt.QWidget):
+class MyWidget(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
self.setMinimumSize(200, 120)
self.setMaximumSize(200, 120)
- quit = qt.QPushButton("Quit", self, "quit")
+ quit = qt.TQPushButton("Quit", self, "quit")
quit.setGeometry(62, 40, 75, 30)
- quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
-a = qt.QApplication(sys.argv)
+a = qt.TQApplication(sys.argv)
w = MyWidget()
w.setGeometry(100, 100, 200, 120)
diff --git a/examples3/tut5.py b/examples3/tut5.py
index 88a2447..f084cdb 100755
--- a/examples3/tut5.py
+++ b/examples3/tut5.py
@@ -1,30 +1,30 @@
#!/usr/bin/env python
-# Qt tutorial 5.
+# TQt tutorial 5.
import sys
import qt
-class MyWidget(qt.QVBox):
+class MyWidget(qt.TQVBox):
def __init__(self, parent=None, name=None):
- qt.QVBox.__init__(self, parent, name)
+ qt.TQVBox.__init__(self, parent, name)
- quit = qt.QPushButton("Quit", self, "quit")
- quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ quit = qt.TQPushButton("Quit", self, "quit")
+ quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
- lcd = qt.QLCDNumber(2, self, "lcd")
+ lcd = qt.TQLCDNumber(2, self, "lcd")
- slider = qt.QSlider(qt.Qt.Horizontal, self, "slider")
+ slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider")
slider.setRange(0, 99)
slider.setValue(0)
self.connect(slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)"))
-a = qt.QApplication(sys.argv)
+a = qt.TQApplication(sys.argv)
w = MyWidget()
a.setMainWidget(w)
diff --git a/examples3/tut6.py b/examples3/tut6.py
index 785edfe..022e408 100755
--- a/examples3/tut6.py
+++ b/examples3/tut6.py
@@ -1,39 +1,39 @@
#!/usr/bin/env python
-# Qt tutorial 6.
+# TQt tutorial 6.
import sys
import qt
-class LCDRange(qt.QVBox):
+class LCDRange(qt.TQVBox):
def __init__(self, parent=None, name=None):
- qt.QVBox.__init__(self, parent, name)
+ qt.TQVBox.__init__(self, parent, name)
- lcd = qt.QLCDNumber(2, self, "lcd")
- slider = qt.QSlider(qt.Qt.Horizontal, self, "slider")
+ lcd = qt.TQLCDNumber(2, self, "lcd")
+ slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider")
slider.setRange(0, 99)
slider.setValue(0)
self.connect(slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)"))
-class MyWidget(qt.QVBox):
+class MyWidget(qt.TQVBox):
def __init__(self, parent=None, name=None):
- qt.QVBox.__init__(self, parent, name)
+ qt.TQVBox.__init__(self, parent, name)
- quit = qt.QPushButton("Quit", self, "quit")
- quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ quit = qt.TQPushButton("Quit", self, "quit")
+ quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
- grid = qt.QGrid(4, self)
+ grid = qt.TQGrid(4, self)
for c in range(4):
for r in range(4):
LCDRange(grid)
-a = qt.QApplication(sys.argv)
+a = qt.TQApplication(sys.argv)
w = MyWidget()
a.setMainWidget(w)
diff --git a/examples3/tut7.py b/examples3/tut7.py
index 400505e..20e5455 100755
--- a/examples3/tut7.py
+++ b/examples3/tut7.py
@@ -1,17 +1,17 @@
#!/usr/bin/env python
-# Qt tutorial 7.
+# TQt tutorial 7.
import sys
import qt
-class LCDRange(qt.QVBox):
+class LCDRange(qt.TQVBox):
def __init__(self, parent=None, name=None):
- qt.QVBox.__init__(self, parent, name)
+ qt.TQVBox.__init__(self, parent, name)
- lcd = qt.QLCDNumber(2, self, "lcd")
- self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider")
+ lcd = qt.TQLCDNumber(2, self, "lcd")
+ self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider")
self.slider.setRange(0, 99)
self.slider.setValue(0)
self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)"))
@@ -24,16 +24,16 @@ class LCDRange(qt.QVBox):
self.slider.setValue(value)
-class MyWidget(qt.QVBox):
+class MyWidget(qt.TQVBox):
def __init__(self, parent=None, name=None):
- qt.QVBox.__init__(self, parent, name)
+ qt.TQVBox.__init__(self, parent, name)
- quit = qt.QPushButton("Quit", self, "quit")
- quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ quit = qt.TQPushButton("Quit", self, "quit")
+ quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
- grid = qt.QGrid(4, self)
+ grid = qt.TQGrid(4, self)
self.lcdlist = []
previous = None
@@ -49,7 +49,7 @@ class MyWidget(qt.QVBox):
self.lcdlist.append(lr)
-a = qt.QApplication(sys.argv)
+a = qt.TQApplication(sys.argv)
w = MyWidget()
a.setMainWidget(w)
diff --git a/examples3/tut8.py b/examples3/tut8.py
index f7dd156..2bbc7b9 100755
--- a/examples3/tut8.py
+++ b/examples3/tut8.py
@@ -1,17 +1,17 @@
#!/usr/bin/env python
-# Qt tutorial 8.
+# TQt tutorial 8.
import sys
import qt
-class LCDRange(qt.QVBox):
+class LCDRange(qt.TQVBox):
def __init__(self, parent=None, name=None):
- qt.QVBox.__init__(self, parent, name)
+ qt.TQVBox.__init__(self, parent, name)
- lcd = qt.QLCDNumber(2, self, "lcd")
- self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider")
+ lcd = qt.TQLCDNumber(2, self, "lcd")
+ self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider")
self.slider.setRange(0, 99)
self.slider.setValue(0)
self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)"))
@@ -32,12 +32,12 @@ class LCDRange(qt.QVBox):
self.slider.setRange(minVal, maxVal)
-class CannonField(qt.QWidget):
+class CannonField(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
self.ang = 45
- self.setPalette(qt.QPalette(qt.QColor(250, 250, 200)))
+ self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200)))
def angle(self):
return self.ang
@@ -54,19 +54,19 @@ class CannonField(qt.QWidget):
self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, ))
def paintEvent(self, ev):
- p = qt.QPainter(self)
+ p = qt.TQPainter(self)
p.drawText(200, 200, "Angle = %d" % (self.ang))
def sizePolicy(self):
- return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding)
+ return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding)
-class MyWidget(qt.QWidget):
+class MyWidget(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
- quit = qt.QPushButton("Quit", self, "quit")
- quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ quit = qt.TQPushButton("Quit", self, "quit")
+ quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
self.angle = LCDRange(self, "angle")
@@ -77,10 +77,10 @@ class MyWidget(qt.QWidget):
self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle)
self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue)
- grid = qt.QGridLayout(self, 2, 2, 10)
+ grid = qt.TQGridLayout(self, 2, 2, 10)
grid.addWidget(quit, 0, 0)
- grid.addWidget(self.angle, 1, 0, qt.Qt.AlignTop)
+ grid.addWidget(self.angle, 1, 0, qt.TQt.AlignTop)
grid.addWidget(self.cannonField, 1, 1)
grid.setColStretch(1, 10)
@@ -88,7 +88,7 @@ class MyWidget(qt.QWidget):
self.angle.setFocus()
-a = qt.QApplication(sys.argv)
+a = qt.TQApplication(sys.argv)
w = MyWidget()
w.setGeometry(100, 100, 500, 355)
diff --git a/examples3/tut9.py b/examples3/tut9.py
index aba7ddc..6c1880a 100755
--- a/examples3/tut9.py
+++ b/examples3/tut9.py
@@ -1,17 +1,17 @@
#!/usr/bin/env python
-# Qt tutorial 9.
+# TQt tutorial 9.
import sys
import qt
-class LCDRange(qt.QVBox):
+class LCDRange(qt.TQVBox):
def __init__(self, parent=None, name=None):
- qt.QVBox.__init__(self, parent, name)
+ qt.TQVBox.__init__(self, parent, name)
- lcd = qt.QLCDNumber(2, self, "lcd")
- self.slider = qt.QSlider(qt.Qt.Horizontal, self, "slider")
+ lcd = qt.TQLCDNumber(2, self, "lcd")
+ self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider")
self.slider.setRange(0, 99)
self.slider.setValue(0)
self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)"))
@@ -31,12 +31,12 @@ class LCDRange(qt.QVBox):
self.slider.setRange(minVal, maxVal)
-class CannonField(qt.QWidget):
+class CannonField(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
self.ang = 45
- self.setPalette(qt.QPalette(qt.QColor(250, 250, 200)))
+ self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200)))
def angle(self):
return self.ang
@@ -53,26 +53,26 @@ class CannonField(qt.QWidget):
self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, ))
def paintEvent(self, ev):
- p = qt.QPainter(self)
+ p = qt.TQPainter(self)
- p.setBrush(qt.Qt.blue)
- p.setPen(qt.Qt.NoPen)
+ p.setBrush(qt.TQt.blue)
+ p.setPen(qt.TQt.NoPen)
p.translate(0, self.rect().bottom())
- p.drawPie(qt.QRect(-35, -35, 70, 70), 0, 90 * 16)
+ p.drawPie(qt.TQRect(-35, -35, 70, 70), 0, 90 * 16)
p.rotate(-self.ang)
- p.drawRect(qt.QRect(33, -4, 15, 8))
+ p.drawRect(qt.TQRect(33, -4, 15, 8))
def sizePolicy(self):
- return qt.QSizePolicy(qt.QSizePolicy.Expanding, qt.QSizePolicy.Expanding)
+ return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding)
-class MyWidget(qt.QWidget):
+class MyWidget(qt.TQWidget):
def __init__(self, parent=None, name=None):
- qt.QWidget.__init__(self, parent, name)
+ qt.TQWidget.__init__(self, parent, name)
- quit = qt.QPushButton("&Quit", self, "quit")
- quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
+ quit = qt.TQPushButton("&Quit", self, "quit")
+ quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
self.connect(quit, qt.SIGNAL("clicked()"), qt.qApp, qt.SLOT("quit()"))
self.angle = LCDRange(self, "angle")
@@ -83,10 +83,10 @@ class MyWidget(qt.QWidget):
self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle)
self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue)
- grid = qt.QGridLayout(self, 2, 2, 10)
+ grid = qt.TQGridLayout(self, 2, 2, 10)
grid.addWidget(quit, 0, 0)
- grid.addWidget(self.angle, 1, 0, qt.Qt.AlignTop)
+ grid.addWidget(self.angle, 1, 0, qt.TQt.AlignTop)
grid.addWidget(self.cannonField, 1, 1)
grid.setColStretch(1, 10)
@@ -94,8 +94,8 @@ class MyWidget(qt.QWidget):
self.angle.setFocus()
-qt.QApplication.setColorSpec(qt.QApplication.CustomColor)
-a = qt.QApplication(sys.argv)
+qt.TQApplication.setColorSpec(qt.TQApplication.CustomColor)
+a = qt.TQApplication(sys.argv)
w = MyWidget()
w.setGeometry(100, 100, 500, 355)
diff --git a/examples3/webbrowser/mainwindow.py b/examples3/webbrowser/mainwindow.py
index 6afdfc8..c88be2f 100644
--- a/examples3/webbrowser/mainwindow.py
+++ b/examples3/webbrowser/mainwindow.py
@@ -3,13 +3,13 @@
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created: Sun Dec 5 14:50:47 2004
-# by: The PyQt User Interface Compiler (pyuic) snapshot-20041203
+# by: The PyTQt User Interface Compiler (pyuic) snapshot-20041203
#
# WARNING! All changes made in this file will be lost!
from qt import *
-from qtaxcontainer import QAxWidget
+from qtaxcontainer import TQAxWidget
image0_data = [
"32 32 3 1",
@@ -51,7 +51,7 @@ image0_data = [
]
image1_data = [
"32 32 142 2",
-"Qt c None",
+"TQt c None",
"#O c #0010f7",
"#P c #0021ef",
"#R c #0021f7",
@@ -193,19 +193,19 @@ image1_data = [
".v c #efffff",
".p c #f7ffff",
".g c #ffffff",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQt.#.a.b.c.aQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQt.d.e.f.g.h.iQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQt.d.j.k.g.g.l.mQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQt.a.n.o.g.p.q.r.mQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQt.s.t.u.g.g.v.w.x.y.mQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQt.z.A.g.g.v.B.x.r.C.DQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQt.E.a.F.g.g.v.G.r.H.H.I.JQtQtQtQtQtQtQtQtQtQt.s.s.K.K.KQtQt",
-"QtQt.L.M.N.g.g.q.x.H.O.y.P.P.Q.LQtQtQt.s.s.K.a.R.S.T.U.V.V.Q.W.X",
-"Qt.#.Q.Y.g.g.Z.0.O.y.P.P.P.P.1.2.3.4.S.e.c.5.f.6.N.l.7.8.Z.0.9.T",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.#.a.b.c.aTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQt.d.e.f.g.h.iTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQt.d.j.k.g.g.l.mTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQt.a.n.o.g.p.q.r.mTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQt.s.t.u.g.g.v.w.x.y.mTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQt.z.A.g.g.v.B.x.r.C.DTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQt.E.a.F.g.g.v.G.r.H.H.I.JTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.s.s.K.K.KTQtTQt",
+"TQtTQt.L.M.N.g.g.q.x.H.O.y.P.P.Q.LTQtTQtTQt.s.s.K.a.R.S.T.U.V.V.Q.W.X",
+"TQt.#.Q.Y.g.g.Z.0.O.y.P.P.P.P.1.2.3.4.S.e.c.5.f.6.N.l.7.8.Z.0.9.T",
".s.W#..g.p.Z###a.O.P.P.I.I.P#b#c#d#e.B#f#g.7.8.8.q#h#i.r.H#j#k#l",
".e#e.g#m.G#d.O.y.P.I.I.I.I.I.I.H.6####.0.r.H#a.O#c.I#n.I#j.1#o#p",
".5.p#f.x.0.O.y.P.I.I.I.I.I.I.I.I.I.I.I.I.I.I.I.I.I.C.C.C#b#q#r#s",
@@ -213,22 +213,22 @@ image1_data = [
"#y#z#j.I.I.P.I.I.C.C.C.I.I.C.C#j#b#v#v#b#j#j#j#b#j#v#b#v#A#B#C#p",
"#D#E#k#q#A#j.C.I.C.I.C.C.C.I#F#G#k#k#H#G#I#B.1.1#J#K#K.1#q#z#x#L",
".s#M#N#r#z#K#b#u.C#u.C.C.I.I#B#O#P#Q#E#P#R#S#T#x#r#r#H.9#U#G#T#V",
-"QtQt.z#N#r#I.1#v#j#u#j.C#u.I#W#X#D.s#Y#D#Z#0#1#2#Q#P#P#N#N#T#E#3",
-"QtQt.s#4#5#x#H#B#K#v#j#j#j#j#6QtQtQtQtQtQtQt.s.s.d.X#7#8#9a..X.s",
-"QtQtQtQt.da##S#k#z#J#v#b#j#vaaQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQt.Eab#x#o#I#K#v#vac.iQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQt.sad#E#rae#q#K#wafQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQt.#.Lagah#k#U#kafQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQt#4#Q#T#xahaiQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQt#4adajakalQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"
+"TQtTQt.z#N#r#I.1#v#j#u#j.C#u.I#W#X#D.s#Y#D#Z#0#1#2#Q#P#P#N#N#T#E#3",
+"TQtTQt.s#4#5#x#H#B#K#v#j#j#j#j#6TQtTQtTQtTQtTQtTQtTQt.s.s.d.X#7#8#9a..X.s",
+"TQtTQtTQtTQt.da##S#k#z#J#v#b#j#vaaTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQt.Eab#x#o#I#K#v#vac.iTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQt.sad#E#rae#q#K#wafTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQt.#.Lagah#k#U#kafTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQt#4#Q#T#xahaiTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQt#4adajakalTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt"
]
image2_data = [
"32 32 142 2",
-"Qt c None",
+"TQt c None",
"#Y c #0018e7",
"aa c #0018ef",
"#E c #0018ff",
@@ -370,18 +370,18 @@ image2_data = [
".5 c #e7ffff",
".4 c #efffff",
".3 c #f7ffff",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.a.b.c.#QtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.d.e.f.g.h.iQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.j.k.l.m.n.o.pQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.d.f.q.r.m.s.t.cQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.u.q.v.m.r.m.w.x.y.#QtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.u.z.z.z.z.m.m.A.B.C.DQtQtQtQt",
-"QtQt.#.E.F.#.#QtQtQtQtQtQtQtQtQtQt.j.G.H.z.H.z.m.m.I.n.J.KQtQtQt",
-".L.M.N.O.P.Q.R.S.T.U.E.#.#QtQtQt.V.W.X.H.Y.H.H.z.z.z.Z.g.0.VQtQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.#.a.b.c.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.d.e.f.g.h.iTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.j.k.l.m.n.o.pTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.d.f.q.r.m.s.t.cTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.u.q.v.m.r.m.w.x.y.#TQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.u.z.z.z.z.m.m.A.B.C.DTQtTQtTQtTQt",
+"TQtTQt.#.E.F.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.j.G.H.z.H.z.m.m.I.n.J.KTQtTQtTQt",
+".L.M.N.O.P.Q.R.S.T.U.E.#.#TQtTQtTQt.V.W.X.H.Y.H.H.z.z.z.Z.g.0.VTQtTQt",
".1.2.3.4.5.k.6.2.Y.7.8.a.9#.###a#b.Y.G.G.G.G.Y.G.Y.H.z#c.n#d.u.#",
".b#e#f#g#h#i.f#h#g#g#j#k#k#k.e.4.4#l#c.X.G.G.G.G.G.G.G.H.H#m#n#o",
"#p.m#q.r.m.m.m.z#r.m.z.m.r.q.q.q.m.H.G.G.X#c.G.G.G.X.X.X.X.7#s.J",
@@ -389,19 +389,19 @@ image2_data = [
"#t.H.r.z.Y.G#c.X.X.X.7.X.X.X.X.X.X.X.X.X.X.X.X.X.7.A#u#v#w#x#y#z",
"#A.I.m.H.X.X.X.A.A#B.A#B#u#u#u#u#B.X#c.X.X.X.X.A.A#u.w#C.g#D#E#F",
"#G.s.G.A.w#v#H#w#C.n#x#s#I#y#y#y#J#H.X.7.X.X.7.A#u.w#w#J#y#K#L.U",
-"#M.x.n#N#D#O#P#K#K#Q#Q#R#S#T#U#U#V#W.A.X.A.A#B#u.w.n#D#P#E#L.VQt",
-"#X.h#V#Q#Y#R#S#U#Z#0#1.p.#.#.#.#.V#2.s.7.A#u#u.w#3#D#P#E#4#5QtQt",
-"QtQt#6#1#7.D.#.#QtQtQtQtQtQtQtQtQt#6#8#B#u.w#9#s#ya.#E#F.V.#QtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.8#9#H#w#s#Wa#aa#2#XQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#ab#w#C#N#W#K#Eac.#QtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtad.Pae#J#Wa##Vaf#XQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#ag#W#P#Eah#6QtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#ai#K#Eaj.jQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#akalak.iQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"
+"#M.x.n#N#D#O#P#K#K#Q#Q#R#S#T#U#U#V#W.A.X.A.A#B#u.w.n#D#P#E#L.VTQt",
+"#X.h#V#Q#Y#R#S#U#Z#0#1.p.#.#.#.#.V#2.s.7.A#u#u.w#3#D#P#E#4#5TQtTQt",
+"TQtTQt#6#1#7.D.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQt#6#8#B#u.w#9#s#ya.#E#F.V.#TQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.#.8#9#H#w#s#Wa#aa#2#XTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.#ab#w#C#N#W#K#Eac.#TQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtad.Pae#J#Wa##Vaf#XTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.#ag#W#P#Eah#6TQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.#ai#K#Eaj.jTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.#akalak.iTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt"
]
image3_data = [
"25 25 2 1",
@@ -473,7 +473,7 @@ image4_data = [
]
image5_data = [
"32 32 211 2",
-"Qt c None",
+"TQt c None",
"aJ c #000000",
"#W c #080800",
"#N c #100800",
@@ -684,42 +684,42 @@ image5_data = [
"aA c #efde29",
"#Z c #f7e729",
"#0 c #f7e739",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.aQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQt.b.c.d.eQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQt.f.g.h.i.bQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQt.j.k.l.e.m.nQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQt.b.a.o.p.q.r.s.tQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQt.u.v.w.k.x.y.z.A.bQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQt.t.k.B.C.k.D.E.F.G.HQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQt.b.#.#.o.I.b.c.J.K.L.M.tQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQt.a.N.O.P.Q.R.o.S.T.U.V.s.bQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQt.t.N.P.W.k.X.R.P.Y.i.A.Z.0.1QtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQt.b.x.2.w.3.4.I.j.#.5.6.L.F.7.0.cQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQt.n.8.9.p#..o.4.x.x.x##.s#a#b.s#c.bQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQt.t.D.##d#e.h#f.o.P.2.2#g###h.A.z#i.KQtQtQtQtQtQtQt",
-"QtQtQtQtQtQt.b#j.P.f.P#k.q.4.X#l#m#n.n#o.J.6#p#i#q.cQtQtQtQtQtQt",
-"QtQtQtQtQtQt.W#m#k.O#m#r.5.k#s#t#m.q#r.U.E.T#p#u#i.M.eQtQtQtQtQt",
-"QtQtQtQtQt.b.x#r.o.t#v.f.o.4.l#l#w#x.f.i#o.E###a.m#y.nQtQtQtQtQt",
-"QtQtQtQtQt.b.e.c#d.o#z.u.q#f.I.q.#.#.2#A.U.m#B#h.h.j.bQtQtQtQtQt",
-"QtQtQtQtQtQtQtQt.b#C#D#E#F#G#G#G#H#I#J#K#L#M#N.iQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQt.b#O#P#Q#R#S#T#U#L#M#V#W#N#V#V.iQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQt.b#X#Y#Z#0#0#1#2#3#4#5#6#7#M#V#AQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQt.b#8#9a.a#aaaaabac#3adaeaf#7#M.JQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQt.bagaha.a##1aaaa#2aiajakalaman#AQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtaoapa.a#aaaqaraq#3aj#5afamas.JQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtatauava#aw#V#W#Max#4ayafazan.JQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtatahaAaB#W#N#M#V#V#RaCalazas.JQtQtQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQt.baDap#Z#Q#N#M#V#M#N#6akafaEaFaG.E#h.JQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtaHaIahaAaB#W#W#N#WaJ#6aKalamaF#WaJaJ#yQtQtQtQtQt",
-"QtQtQtQtQtQtQt.qaLaIahavaM#WaJ#W#DaN#RaealaOan#NaNaPaQQtQtQtQtQt",
-"QtQtQtQtQtQt.jaRaSaTaUavaB#WaNaPaLaVaWaeaX#6aYaZa0a1a2QtQtQtQtQt",
-"QtQtQtQtQt.ba3a4a5a5aVa6a1aZa7aSaSa5a8a9a4a5b.b#a5a5.kQtQtQtQtQt",
-"QtQtQtQtQtbaa7a7aVa0b.b#a7b#a0a7a7a7aSaSa7b.aVa0aVaR.#QtQtQtQtQt",
-"QtQtQtQtQtbbbcbdbebebfbgbhbhbibjbjbkbkblbmbmbnbobpbq.bQtQtQtQtQt"
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.#.aTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.b.c.d.eTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.f.g.h.i.bTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.j.k.l.e.m.nTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.b.a.o.p.q.r.s.tTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.u.v.w.k.x.y.z.A.bTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.t.k.B.C.k.D.E.F.G.HTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.b.#.#.o.I.b.c.J.K.L.M.tTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQt.a.N.O.P.Q.R.o.S.T.U.V.s.bTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQt.t.N.P.W.k.X.R.P.Y.i.A.Z.0.1TQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQt.b.x.2.w.3.4.I.j.#.5.6.L.F.7.0.cTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQt.n.8.9.p#..o.4.x.x.x##.s#a#b.s#c.bTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQt.t.D.##d#e.h#f.o.P.2.2#g###h.A.z#i.KTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQt.b#j.P.f.P#k.q.4.X#l#m#n.n#o.J.6#p#i#q.cTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQt.W#m#k.O#m#r.5.k#s#t#m.q#r.U.E.T#p#u#i.M.eTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQt.b.x#r.o.t#v.f.o.4.l#l#w#x.f.i#o.E###a.m#y.nTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQt.b.e.c#d.o#z.u.q#f.I.q.#.#.2#A.U.m#B#h.h.j.bTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQt.b#C#D#E#F#G#G#G#H#I#J#K#L#M#N.iTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQt.b#O#P#Q#R#S#T#U#L#M#V#W#N#V#V.iTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQt.b#X#Y#Z#0#0#1#2#3#4#5#6#7#M#V#ATQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQt.b#8#9a.a#aaaaabac#3adaeaf#7#M.JTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQt.bagaha.a##1aaaa#2aiajakalaman#ATQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtaoapa.a#aaaqaraq#3aj#5afamas.JTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtatauava#aw#V#W#Max#4ayafazan.JTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtatahaAaB#W#N#M#V#V#RaCalazas.JTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQt.baDap#Z#Q#N#M#V#M#N#6akafaEaFaG.E#h.JTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtaHaIahaAaB#W#W#N#WaJ#6aKalamaF#WaJaJ#yTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQt.qaLaIahavaM#WaJ#W#DaN#RaealaOan#NaNaPaTQTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQt.jaRaSaTaUavaB#WaNaPaLaVaWaeaX#6aYaZa0a1a2TQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQt.ba3a4a5a5aVa6a1aZa7aSaSa5a8a9a4a5b.b#a5a5.kTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtbaa7a7aVa0b.b#a7b#a0a7a7a7aSaSa7b.aVa0aVaR.#TQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtbbbcbdbebebfbgbhbhbibjbjbkbkblbmbmbnbobpbq.bTQtTQtTQtTQtTQt"
]
image6_data = [
"22 22 165 2",
-"Qt c None",
+"TQt c None",
".h c #000000",
".o c #010101",
"aF c #030303",
@@ -884,84 +884,84 @@ image6_data = [
".B c #fdfdfd",
".j c #fefefe",
".i c #ffffff",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
-"QtQtQtQtQt.#.a.b.c.d.d.e.f.g.hQtQtQtQtQtQtQt",
-"QtQtQtQt.#.i.i.i.i.i.i.i.i.i.h.hQtQtQtQtQtQt",
-"QtQtQtQt.a.j.j.j.j.j.j.i.i.i.h.k.hQtQtQtQtQt",
-"QtQtQtQt.l.m.n.o.p.q.r.s.j.i.h.t.u.hQtQtQtQt",
-"QtQtQtQt.e.v.w.x.y.z.A.n.B.B.h.C.D.E.hQtQtQt",
-"QtQtQt.h.h.h.h.h.F.G.H.I.n.J.h.h.h.h.h.hQtQt",
-"QtQt.h.K.L.M.N.O.h.P.Q.R.S.n.T.j.U.V.W.hQtQt",
-"Qt.h.X.Y.Z.0.1.2.3.h.4.5.6.q.r.s.7.v.8.hQtQt",
-"Qt.h.9#..###.F.F.F#a.h#b#c#d.m.j.7.v#c.hQtQt",
-"Qt.h#e#f.a#g#h#i#j#k.h#l#m.r#n#o.7.v#c.hQtQt",
-"Qt.h#p#q.a#r.F.F.F#s.h#t#u.x.n.j.7.v#c.hQtQt",
-"Qt.h#v#w.##x#y#z#A#B.h#C#m#m.q#o.7.v#c.hQtQt",
-"QtQt.h#D.Z#E.F.F#F.h#G#H#I#J.A.7.m.v#c.hQtQt",
-"QtQtQt.h#K#L#M#N.h#O#P#Q#R#m.q#S#T#d#c.hQtQt",
-"QtQtQtQt.h.h.h.h.Z#U#V#W#X#Y#Z#0.S#1#2.hQtQt",
-"QtQtQtQt#3.t.v.x#4#5#6#7#8#9a.a#aaabac.hQtQt",
-"QtQtQtQt.6ad.kae.yafagahaiajakalamana..oQtQt",
-"QtQtQtQt.haeaoapaqaqarasatauavawaxayaz.oQtQt",
-"QtQtQtQtQt.h.h.h.h.haA.oaBaCaiaD.HaEaFQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtaGaHaIQtQtQtQtQtQt",
-"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQt.#.a.b.c.d.d.e.f.g.hTQtTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQt.#.i.i.i.i.i.i.i.i.i.h.hTQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQt.a.j.j.j.j.j.j.i.i.i.h.k.hTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQt.l.m.n.o.p.q.r.s.j.i.h.t.u.hTQtTQtTQtTQt",
+"TQtTQtTQtTQt.e.v.w.x.y.z.A.n.B.B.h.C.D.E.hTQtTQtTQt",
+"TQtTQtTQt.h.h.h.h.h.F.G.H.I.n.J.h.h.h.h.h.hTQtTQt",
+"TQtTQt.h.K.L.M.N.O.h.P.Q.R.S.n.T.j.U.V.W.hTQtTQt",
+"TQt.h.X.Y.Z.0.1.2.3.h.4.5.6.q.r.s.7.v.8.hTQtTQt",
+"TQt.h.9#..###.F.F.F#a.h#b#c#d.m.j.7.v#c.hTQtTQt",
+"TQt.h#e#f.a#g#h#i#j#k.h#l#m.r#n#o.7.v#c.hTQtTQt",
+"TQt.h#p#q.a#r.F.F.F#s.h#t#u.x.n.j.7.v#c.hTQtTQt",
+"TQt.h#v#w.##x#y#z#A#B.h#C#m#m.q#o.7.v#c.hTQtTQt",
+"TQtTQt.h#D.Z#E.F.F#F.h#G#H#I#J.A.7.m.v#c.hTQtTQt",
+"TQtTQtTQt.h#K#L#M#N.h#O#P#Q#R#m.q#S#T#d#c.hTQtTQt",
+"TQtTQtTQtTQt.h.h.h.h.Z#U#V#W#X#Y#Z#0.S#1#2.hTQtTQt",
+"TQtTQtTQtTQt#3.t.v.x#4#5#6#7#8#9a.a#aaabac.hTQtTQt",
+"TQtTQtTQtTQt.6ad.kae.yafagahaiajakalamana..oTQtTQt",
+"TQtTQtTQtTQt.haeaoapaqaqarasatauavawaxayaz.oTQtTQt",
+"TQtTQtTQtTQtTQt.h.h.h.h.haA.oaBaCaiaD.HaEaFTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtaGaHaITQtTQtTQtTQtTQtTQt",
+"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt"
]
-class MainWindow(QMainWindow):
+class MainWindow(TQMainWindow):
def __init__(self,parent = None,name = None,fl = 0):
- QMainWindow.__init__(self,parent,name,fl)
+ TQMainWindow.__init__(self,parent,name,fl)
self.statusBar()
- self.image0 = QPixmap(image0_data)
- self.image1 = QPixmap(image1_data)
- self.image2 = QPixmap(image2_data)
- self.image3 = QPixmap(image3_data)
- self.image4 = QPixmap(image4_data)
- self.image5 = QPixmap(image5_data)
- self.image6 = QPixmap(image6_data)
+ self.image0 = TQPixmap(image0_data)
+ self.image1 = TQPixmap(image1_data)
+ self.image2 = TQPixmap(image2_data)
+ self.image3 = TQPixmap(image3_data)
+ self.image4 = TQPixmap(image4_data)
+ self.image5 = TQPixmap(image5_data)
+ self.image6 = TQPixmap(image6_data)
if not name:
self.setName("MainWindow")
- self.setCentralWidget(QWidget(self,"qt_central_widget"))
- MainWindowLayout = QHBoxLayout(self.centralWidget(),0,6,"MainWindowLayout")
+ self.setCentralWidget(TQWidget(self,"qt_central_widget"))
+ MainWindowLayout = TQHBoxLayout(self.centralWidget(),0,6,"MainWindowLayout")
- self.Frame3 = QFrame(self.centralWidget(),"Frame3")
- self.Frame3.setFrameShape(QFrame.StyledPanel)
- self.Frame3.setFrameShadow(QFrame.Sunken)
- Frame3Layout = QVBoxLayout(self.Frame3,1,0,"Frame3Layout")
+ self.Frame3 = TQFrame(self.centralWidget(),"Frame3")
+ self.Frame3.setFrameShape(TQFrame.StyledPanel)
+ self.Frame3.setFrameShadow(TQFrame.Sunken)
+ Frame3Layout = TQVBoxLayout(self.Frame3,1,0,"Frame3Layout")
- self.WebBrowser = QAxWidget(self.Frame3,"WebBrowser")
+ self.WebBrowser = TQAxWidget(self.Frame3,"WebBrowser")
self.WebBrowser.setControl("{8856F961-340A-11D0-A96B-00C04FD705A2}")
- self.WebBrowser.setFocusPolicy(QAxWidget.StrongFocus)
+ self.WebBrowser.setFocusPolicy(TQAxWidget.StrongFocus)
Frame3Layout.addWidget(self.WebBrowser)
MainWindowLayout.addWidget(self.Frame3)
- self.actionGo = QAction(self,"actionGo")
- self.actionGo.setIconSet(QIconSet(self.image0))
- self.actionBack = QAction(self,"actionBack")
- self.actionBack.setIconSet(QIconSet(self.image1))
- self.actionForward = QAction(self,"actionForward")
- self.actionForward.setIconSet(QIconSet(self.image2))
- self.actionStop = QAction(self,"actionStop")
- self.actionStop.setIconSet(QIconSet(self.image3))
- self.actionRefresh = QAction(self,"actionRefresh")
- self.actionRefresh.setIconSet(QIconSet(self.image4))
- self.actionHome = QAction(self,"actionHome")
- self.actionHome.setIconSet(QIconSet(self.image5))
- self.actionFileClose = QAction(self,"actionFileClose")
- self.FileNewGroup = QActionGroup(self,"FileNewGroup")
+ self.actionGo = TQAction(self,"actionGo")
+ self.actionGo.setIconSet(TQIconSet(self.image0))
+ self.actionBack = TQAction(self,"actionBack")
+ self.actionBack.setIconSet(TQIconSet(self.image1))
+ self.actionForward = TQAction(self,"actionForward")
+ self.actionForward.setIconSet(TQIconSet(self.image2))
+ self.actionStop = TQAction(self,"actionStop")
+ self.actionStop.setIconSet(TQIconSet(self.image3))
+ self.actionRefresh = TQAction(self,"actionRefresh")
+ self.actionRefresh.setIconSet(TQIconSet(self.image4))
+ self.actionHome = TQAction(self,"actionHome")
+ self.actionHome.setIconSet(TQIconSet(self.image5))
+ self.actionFileClose = TQAction(self,"actionFileClose")
+ self.FileNewGroup = TQActionGroup(self,"FileNewGroup")
self.FileNewGroup.setUsesDropDown(1)
- self.actionNewWindow = QAction(self.FileNewGroup,"actionNewWindow")
- self.actionSearch = QAction(self,"actionSearch")
- self.actionSearch.setIconSet(QIconSet(self.image6))
- self.actionAbout = QAction(self,"actionAbout")
- self.actionAboutQt = QAction(self,"actionAboutQt")
+ self.actionNewWindow = TQAction(self.FileNewGroup,"actionNewWindow")
+ self.actionSearch = TQAction(self,"actionSearch")
+ self.actionSearch.setIconSet(TQIconSet(self.image6))
+ self.actionAbout = TQAction(self,"actionAbout")
+ self.actionAboutTQt = TQAction(self,"actionAboutTQt")
- self.Toolbar = QToolBar(QString(""),self,Qt.DockTop)
+ self.Toolbar = TQToolBar(TQString(""),self,TQt.DockTop)
self.actionBack.addTo(self.Toolbar)
self.actionForward.addTo(self.Toolbar)
@@ -970,37 +970,37 @@ class MainWindow(QMainWindow):
self.actionHome.addTo(self.Toolbar)
self.Toolbar.addSeparator()
self.actionSearch.addTo(self.Toolbar)
- self.Toolbar_2 = QToolBar(QString(""),self,Qt.DockTop)
+ self.Toolbar_2 = TQToolBar(TQString(""),self,TQt.DockTop)
self.Toolbar_2.setHorizontallyStretchable(1)
- self.lblAddress = QLabel(self.Toolbar_2,"lblAddress")
+ self.lblAddress = TQLabel(self.Toolbar_2,"lblAddress")
- self.addressEdit = QLineEdit(self.Toolbar_2,"addressEdit")
+ self.addressEdit = TQLineEdit(self.Toolbar_2,"addressEdit")
self.actionGo.addTo(self.Toolbar_2)
- self.menubar = QMenuBar(self,"menubar")
+ self.menubar = TQMenuBar(self,"menubar")
- self.PopupMenu = QPopupMenu(self)
- self.FileNewGroup_2 = QPopupMenu(self)
- self.PopupMenu.setAccel(QString.null,self.PopupMenu.insertItem(self.FileNewGroup.iconSet(),self.__tr("New"),self.FileNewGroup_2))
+ self.PopupMenu = TQPopupMenu(self)
+ self.FileNewGroup_2 = TQPopupMenu(self)
+ self.PopupMenu.setAccel(TQString.null,self.PopupMenu.insertItem(self.FileNewGroup.iconSet(),self.__tr("New"),self.FileNewGroup_2))
self.actionNewWindow.addTo(self.FileNewGroup_2)
self.PopupMenu.insertSeparator()
self.actionFileClose.addTo(self.PopupMenu)
- self.menubar.insertItem(QString(""),self.PopupMenu,1)
+ self.menubar.insertItem(TQString(""),self.PopupMenu,1)
- self.unnamed = QPopupMenu(self)
+ self.unnamed = TQPopupMenu(self)
self.actionAbout.addTo(self.unnamed)
- self.actionAboutQt.addTo(self.unnamed)
- self.menubar.insertItem(QString(""),self.unnamed,2)
+ self.actionAboutTQt.addTo(self.unnamed)
+ self.menubar.insertItem(TQString(""),self.unnamed,2)
self.languageChange()
- self.resize(QSize(812,605).expandedTo(self.minimumSizeHint()))
- self.clearWState(Qt.WState_Polished)
+ self.resize(TQSize(812,605).expandedTo(self.minimumSizeHint()))
+ self.clearWState(TQt.WState_Polished)
self.connect(self.actionHome,SIGNAL("activated()"),self.WebBrowser,SLOT("GoHome()"))
self.connect(self.actionRefresh,SIGNAL("activated()"),self.WebBrowser,SLOT("Refresh()"))
@@ -1011,21 +1011,21 @@ class MainWindow(QMainWindow):
self.connect(self.actionFileClose,SIGNAL("activated()"),self.close)
self.connect(self.actionSearch,SIGNAL("activated()"),self.WebBrowser,SLOT("GoSearch()"))
self.connect(self.addressEdit,SIGNAL("returnPressed()"),self.go)
- self.connect(self.WebBrowser,SIGNAL("NavigateComplete(const QString&)"),self.addressEdit.setText)
- self.connect(self.WebBrowser,SIGNAL("TitleChange(const QString&)"),self.setTitle)
- self.connect(self.WebBrowser,SIGNAL("NavigateComplete(const QString&)"),self.navigateComplete)
+ self.connect(self.WebBrowser,SIGNAL("NavigateComplete(const TQString&)"),self.addressEdit.setText)
+ self.connect(self.WebBrowser,SIGNAL("TitleChange(const TQString&)"),self.setTitle)
+ self.connect(self.WebBrowser,SIGNAL("NavigateComplete(const TQString&)"),self.navigateComplete)
self.connect(self.WebBrowser,SIGNAL("CommandStateChange(int,bool)"),self.setCommandState)
- self.connect(self.WebBrowser,SIGNAL("BeforeNavigate(const QString&,int,const QString&,const QVariant&,const QString&,bool&)"),self.navigateBegin)
+ self.connect(self.WebBrowser,SIGNAL("BeforeNavigate(const TQString&,int,const TQString&,const TQVariant&,const TQString&,bool&)"),self.navigateBegin)
self.connect(self.actionStop,SIGNAL("activated()"),self.navigateComplete)
self.connect(self.actionNewWindow,SIGNAL("activated()"),self.newWindow)
self.connect(self.actionAbout,SIGNAL("activated()"),self.aboutSlot)
- self.connect(self.actionAboutQt,SIGNAL("activated()"),self.aboutQtSlot)
+ self.connect(self.actionAboutTQt,SIGNAL("activated()"),self.aboutTQtSlot)
self.init()
def languageChange(self):
- self.setCaption(self.__tr("Qt WebBrowser"))
+ self.setCaption(self.__tr("TQt WebBrowser"))
self.WebBrowser.setControl(self.__tr("{8856F961-340A-11D0-A96B-00C04FD705A2}"))
self.actionGo.setText(self.__tr("Go"))
self.actionGo.setMenuText(self.__tr("Go"))
@@ -1051,8 +1051,8 @@ class MainWindow(QMainWindow):
self.actionSearch.setMenuText(self.__tr("Search"))
self.actionAbout.setText(self.__tr("About"))
self.actionAbout.setMenuText(self.__tr("About"))
- self.actionAboutQt.setText(self.__tr("About Qt"))
- self.actionAboutQt.setMenuText(self.__tr("About Qt"))
+ self.actionAboutTQt.setText(self.__tr("About TQt"))
+ self.actionAboutTQt.setMenuText(self.__tr("About TQt"))
self.Toolbar.setLabel(self.__tr("Toolbar"))
self.Toolbar_2.setLabel(self.__tr("Toolbar_2"))
self.lblAddress.setText(self.__tr("Address"))
@@ -1076,7 +1076,7 @@ class MainWindow(QMainWindow):
pass
def setTitle(self,a0):
- print "MainWindow.setTitle(const QString&): Not implemented yet"
+ print "MainWindow.setTitle(const TQString&): Not implemented yet"
def setCommandState(self,a0,a1):
print "MainWindow.setCommandState(int,bool): Not implemented yet"
@@ -1090,8 +1090,8 @@ class MainWindow(QMainWindow):
def aboutSlot(self):
print "MainWindow.aboutSlot(): Not implemented yet"
- def aboutQtSlot(self):
- print "MainWindow.aboutQtSlot(): Not implemented yet"
+ def aboutTQtSlot(self):
+ print "MainWindow.aboutTQtSlot(): Not implemented yet"
def __tr(self,s,c = None):
return qApp.translate("MainWindow",s,c)
diff --git a/examples3/webbrowser/mainwindow.ui b/examples3/webbrowser/mainwindow.ui
index 1689e8a..ec38e1c 100644
--- a/examples3/webbrowser/mainwindow.ui
+++ b/examples3/webbrowser/mainwindow.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>MainWindow</class>
-<widget class="QMainWindow">
+<widget class="TQMainWindow">
<property name="name">
<cstring>MainWindow</cstring>
</property>
@@ -13,7 +13,7 @@
</rect>
</property>
<property name="caption">
- <string>Qt WebBrowser</string>
+ <string>TQt WebBrowser</string>
</property>
<hbox>
<property name="name">
@@ -25,7 +25,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QFrame">
+ <widget class="TQFrame">
<property name="name">
<cstring>Frame3</cstring>
</property>
@@ -45,7 +45,7 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QAxWidget">
+ <widget class="TQAxWidget">
<property name="name">
<cstring>WebBrowser</cstring>
</property>
@@ -74,7 +74,7 @@
</item>
<item text="&amp;Help" name="unnamed">
<action name="actionAbout"/>
- <action name="actionAboutQt"/>
+ <action name="actionAboutTQt"/>
</item>
</menubar>
<toolbars>
@@ -103,7 +103,7 @@
<property name="label">
<string>Toolbar_2</string>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblAddress</cstring>
</property>
@@ -111,7 +111,7 @@
<string>Address</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>addressEdit</cstring>
</property>
@@ -245,10 +245,10 @@
</action>
<action>
<property name="name">
- <cstring>actionAboutQt</cstring>
+ <cstring>actionAboutTQt</cstring>
</property>
<property name="text">
- <string>About Qt</string>
+ <string>About TQt</string>
</property>
</action>
</actions>
@@ -332,19 +332,19 @@
</connection>
<connection>
<sender>WebBrowser</sender>
- <signal>NavigateComplete(const QString&amp;)</signal>
+ <signal>NavigateComplete(const TQString&amp;)</signal>
<receiver>addressEdit</receiver>
- <slot>setText(const QString&amp;)</slot>
+ <slot>setText(const TQString&amp;)</slot>
</connection>
<connection>
<sender>WebBrowser</sender>
- <signal>TitleChange(const QString&amp;)</signal>
+ <signal>TitleChange(const TQString&amp;)</signal>
<receiver>MainWindow</receiver>
- <slot>setTitle(const QString&amp;)</slot>
+ <slot>setTitle(const TQString&amp;)</slot>
</connection>
<connection>
<sender>WebBrowser</sender>
- <signal>NavigateComplete(const QString&amp;)</signal>
+ <signal>NavigateComplete(const TQString&amp;)</signal>
<receiver>MainWindow</receiver>
<slot>navigateComplete()</slot>
</connection>
@@ -356,7 +356,7 @@
</connection>
<connection>
<sender>WebBrowser</sender>
- <signal>BeforeNavigate(const QString&amp;,int,const QString&amp;,const QVariant&amp;,const QString&amp;,bool&amp;)</signal>
+ <signal>BeforeNavigate(const TQString&amp;,int,const TQString&amp;,const TQVariant&amp;,const TQString&amp;,bool&amp;)</signal>
<receiver>MainWindow</receiver>
<slot>navigateBegin()</slot>
</connection>
@@ -379,29 +379,29 @@
<slot>aboutSlot()</slot>
</connection>
<connection>
- <sender>actionAboutQt</sender>
+ <sender>actionAboutTQt</sender>
<signal>activated()</signal>
<receiver>MainWindow</receiver>
- <slot>aboutQtSlot()</slot>
+ <slot>aboutTQtSlot()</slot>
</connection>
</connections>
<forwards>
- <forward>class QProgressBar</forward>
+ <forward>class TQProgressBar</forward>
</forwards>
<variables>
- <variable>QProgressBar *pb;</variable>
+ <variable>TQProgressBar *pb;</variable>
</variables>
<slots>
<slot>go()</slot>
<slot>newWindow()</slot>
<slot>setProgress( int a, int b )</slot>
<slot>init()</slot>
- <slot>setTitle( const QString &amp; title )</slot>
+ <slot>setTitle( const TQString &amp; title )</slot>
<slot>setCommandState( int cmd, bool on )</slot>
<slot>navigateComplete()</slot>
<slot>navigateBegin()</slot>
<slot>aboutSlot()</slot>
- <slot>aboutQtSlot()</slot>
+ <slot>aboutTQtSlot()</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
diff --git a/examples3/webbrowser/webbrowser.py b/examples3/webbrowser/webbrowser.py
index bd1462e..17155b4 100644
--- a/examples3/webbrowser/webbrowser.py
+++ b/examples3/webbrowser/webbrowser.py
@@ -1,7 +1,7 @@
# Copyright (C) 2001-2002 Trolltech AS. All rights reserved.
# Copyright (C) 2004 Riverbank Computing Ltd. All rights reserved.
#
-# This file is part of an example program for the ActiveQt integration.
+# This file is part of an example program for the ActiveTQt integration.
# This example program may be used, distributed and modified without
# limitation.
@@ -15,13 +15,13 @@ import mainwindow
class MainWindowImpl(mainwindow.MainWindow):
def init(self):
- self.pb = qt.QProgressBar(self.statusBar())
+ self.pb = qt.TQProgressBar(self.statusBar())
self.pb.setPercentageVisible(False)
self.pb.hide()
self.statusBar().addWidget(self.pb, 0, True)
self.connect(self.WebBrowser, qt.SIGNAL("ProgressChange(int,int)"), self.setProgress)
- self.connect(self.WebBrowser, qt.SIGNAL("StatusTextChange(const QString&)"), self.statusBar(), qt.SLOT("message(const QString&)"))
+ self.connect(self.WebBrowser, qt.SIGNAL("StatusTextChange(const TQString&)"), self.statusBar(), qt.SLOT("message(const TQString&)"))
self.WebBrowser.dynamicCall("GoHome()");
@@ -29,10 +29,10 @@ class MainWindowImpl(mainwindow.MainWindow):
def go(self):
self.actionStop.setEnabled(True)
- self.WebBrowser.dynamicCall("Navigate(const QString&)", qt.QVariant(self.addressEdit.text()))
+ self.WebBrowser.dynamicCall("Navigate(const TQString&)", qt.TQVariant(self.addressEdit.text()))
def setTitle(self, title):
- self.setCaption("Qt WebBrowser - " + title.latin1())
+ self.setCaption("TQt WebBrowser - " + title.latin1())
def setProgress(self, a, b):
if a <= 0 or b <= 0:
@@ -69,17 +69,17 @@ class MainWindowImpl(mainwindow.MainWindow):
self.subwindows += window
def aboutSlot(self):
- qt.QMessageBox.about(self, self.tr("About WebBrowser"), self.tr(
-"""This Example has been created using the ActiveQt integration into Qt Designer.
-It demonstrates the use of QAxWidget to embed the Internet Explorer ActiveX
-control into a Qt application."""))
+ qt.TQMessageBox.about(self, self.tr("About WebBrowser"), self.tr(
+"""This Example has been created using the ActiveTQt integration into TQt Designer.
+It demonstrates the use of TQAxWidget to embed the Internet Explorer ActiveX
+control into a TQt application."""))
- def aboutQtSlot(self):
- qt.QMessageBox.aboutQt(self, self.tr("About Qt"))
+ def aboutTQtSlot(self):
+ qt.TQMessageBox.aboutTQt(self, self.tr("About TQt"))
def main(args):
- a = qt.QApplication(args)
+ a = qt.TQApplication(args)
w = MainWindowImpl()
a.setMainWidget(w)
w.show()
diff --git a/examples3/widgets.py b/examples3/widgets.py
index 470f24e..c0927b2 100755
--- a/examples3/widgets.py
+++ b/examples3/widgets.py
@@ -5,31 +5,31 @@ import sys, string
from qt import *
#
-## Constructs an analog clock widget that uses an internal QTimer.
+## Constructs an analog clock widget that uses an internal TQTimer.
#
-def QMIN( x, y ):
+def TQMIN( x, y ):
if y > x:
return y
return x
#
-## Constructs an analog clock widget that uses an internal QTimer.
+## Constructs an analog clock widget that uses an internal TQTimer.
#
-class AnalogClock( QWidget ):
+class AnalogClock( TQWidget ):
def __init__( self, *args ):
- apply( QWidget.__init__, (self,) + args )
- self.time = QTime.currentTime() # get current time
- internalTimer = QTimer( self ) # create internal timer
+ apply( TQWidget.__init__, (self,) + args )
+ self.time = TQTime.currentTime() # get current time
+ internalTimer = TQTimer( self ) # create internal timer
self.connect( internalTimer, SIGNAL("timeout()"), self.timeout )
internalTimer.start( 5000 ) # emit signal every 5 seconds
#
-## The QTimer::timeout() signal is received by this slot.
+## The TQTimer::timeout() signal is received by this slot.
#
def timeout( self ):
- new_time = QTime.currentTime() # get the current time
+ new_time = TQTime.currentTime() # get the current time
if new_time.minute() != self.time.minute(): # minute has changed
self.update()
@@ -39,16 +39,16 @@ class AnalogClock( QWidget ):
def paintEvent( self, qe ): # paint clock
if not self.isVisible(): # is is invisible
return
- self.time = QTime.currentTime() # save current time
+ self.time = TQTime.currentTime() # save current time
- pts = QPointArray()
- paint = QPainter( self )
+ pts = TQPointArray()
+ paint = TQPainter( self )
paint.setBrush( self.foregroundColor() ) # fill with foreground color
- cp = QPoint( self.rect().center() ) # widget center point
- d = QMIN( self.width(), self.height() ) # we want a circular clock
+ cp = TQPoint( self.rect().center() ) # widget center point
+ d = TQMIN( self.width(), self.height() ) # we want a circular clock
- matrix = QWMatrix() # setup transformation matrix
+ matrix = TQWMatrix() # setup transformation matrix
matrix.translate( cp.x(), cp.y() ) # origin at widget center
matrix.scale( d / 1000.0, d / 1000.0 ) # scale coordinate system
@@ -72,11 +72,11 @@ class AnalogClock( QWidget ):
matrix.rotate( 30 )
-class DigitalClock( QLCDNumber ):
+class DigitalClock( TQLCDNumber ):
def __init__( self, *args ):
- apply( QLCDNumber.__init__,(self,) + args )
+ apply( TQLCDNumber.__init__,(self,) + args )
self.showingColon = 0
- self.setFrameStyle(QFrame.Panel | QFrame.Raised)
+ self.setFrameStyle(TQFrame.Panel | TQFrame.Raised)
self.setLineWidth( 2 )
self.showTime()
self.normalTimer = self.startTimer( 500 )
@@ -90,13 +90,13 @@ class DigitalClock( QLCDNumber ):
self.showTime()
def mousePressEvent( self, e ):
- if e.button() == Qt.LeftButton:
+ if e.button() == TQt.LeftButton:
self.showDate()
def showDate( self ):
if self.showDateTimer != -1:
return
- d = QDate.currentDate()
+ d = TQDate.currentDate()
self.display('%2d %2d' % (d.month(), d.day()))
self.showDateTimer = self.startTimer(2000)
@@ -107,7 +107,7 @@ class DigitalClock( QLCDNumber ):
def showTime( self ):
self.showingColon = not self.showingColon
- s = list(str(QTime.currentTime().toString())[:5]) #.left(5)
+ s = list(str(TQTime.currentTime().toString())[:5]) #.left(5)
if not self.showingColon:
s[2] = ' '
if s[0] == '0':
@@ -115,7 +115,7 @@ class DigitalClock( QLCDNumber ):
s = string.join(s,'')
self.display( s )
- def QMIN( x, y ):
+ def TQMIN( x, y ):
if y > x:
return y
return x
@@ -125,42 +125,42 @@ FALSE = 0
MOVIEFILENAME = "trolltech.gif"
#
-# WidgetView contains lots of Qt widgets.
+# WidgetView contains lots of TQt widgets.
#
-class WidgetView ( QWidget ):
+class WidgetView ( TQWidget ):
def __init__( self, *args ):
- apply( QWidget.__init__, (self,) + args )
+ apply( TQWidget.__init__, (self,) + args )
# Set the window caption/title
- self.setCaption( "Qt Widgets Demo Application" )
+ self.setCaption( "TQt Widgets Demo Application" )
# Install an application-global event filter
qApp.installEventFilter( self )
# Create a layout to position the widgets
- self.topLayout = QVBoxLayout( self, 10 )
+ self.topLayout = TQVBoxLayout( self, 10 )
# Create a grid layout to hold most of the widgets
- self.grid = QGridLayout( 6, 3 )
+ self.grid = TQGridLayout( 6, 3 )
# This layout will get all of the stretch
self.topLayout.addLayout( self.grid, 10 )
# Create a menubar
- self.menubar = QMenuBar( self )
- self.menubar.setSeparator( QMenuBar.InWindowsStyle )
+ self.menubar = TQMenuBar( self )
+ self.menubar.setSeparator( TQMenuBar.InWindowsStyle )
# Create an easter egg
- QToolTip.add( self.menubar, QRect( 0, 0, 2, 2 ), "easter egg" )
+ TQToolTip.add( self.menubar, TQRect( 0, 0, 2, 2 ), "easter egg" )
- self.popup = QPopupMenu()
+ self.popup = TQPopupMenu()
self.id = self.popup.insertItem( "&New" )
self.popup.setItemEnabled( self.id, FALSE )
self.id = self.popup.insertItem( "&Open" )
self.popup.setItemEnabled( self.id, FALSE )
self.popup.insertSeparator()
- self.popup.insertItem( "&Quit", qApp, SLOT("quit()"), Qt.CTRL+Qt.Key_Q )
+ self.popup.insertItem( "&Quit", qApp, SLOT("quit()"), TQt.CTRL+TQt.Key_Q )
self.menubar.insertItem( "&File", self.popup )
@@ -176,63 +176,63 @@ class WidgetView ( QWidget ):
self.grid.addWidget( self.dclock, 1, 2 )
# Give the dclock widget a blue palette
- col = QColor()
+ col = TQColor()
col.setRgb( 0xaa, 0xbe, 0xff )
- self.dclock.setPalette( QPalette( col ) )
+ self.dclock.setPalette( TQPalette( col ) )
# make tool tips for both of them
- QToolTip.add( self.aclock, "custom widget: analog clock" )
- QToolTip.add( self.dclock, "custom widget: digital clock" )
+ TQToolTip.add( self.aclock, "custom widget: analog clock" )
+ TQToolTip.add( self.dclock, "custom widget: digital clock" )
# Create a push button.
- self.pb = QPushButton( self, "button1" ) # create button 1
+ self.pb = TQPushButton( self, "button1" ) # create button 1
self.pb.setText( "Push button 1" )
self.pb.setFixedHeight( self.pb.sizeHint().height() )
- self.grid.addWidget( self.pb, 0, 0, Qt.AlignVCenter )
+ self.grid.addWidget( self.pb, 0, 0, TQt.AlignVCenter )
self.connect( self.pb, SIGNAL("clicked()"), self.button1Clicked )
- QToolTip.add( self.pb, "push button 1" )
- self.pm = QPixmap()
+ TQToolTip.add( self.pb, "push button 1" )
+ self.pm = TQPixmap()
self.pix = self.pm.load( "qt.png" ) # load pixmap for button 2
if not self.pix:
- QMessageBox.information( None, "Qt Widgets Example",
+ TQMessageBox.information( None, "TQt Widgets Example",
"Could not load the file \"qt.png\", which\n"
"contains an icon used...\n\n"
"The text \"line 42\" will be substituted.",
- QMessageBox.Ok + QMessageBox.Default )
+ TQMessageBox.Ok + TQMessageBox.Default )
- # Create a label containing a QMovie
- self.movielabel = QLabel( self, "label0" )
- self.movie = QMovie( MOVIEFILENAME )
+ # Create a label containing a TQMovie
+ self.movielabel = TQLabel( self, "label0" )
+ self.movie = TQMovie( MOVIEFILENAME )
self.movie.connectStatus( self.movieStatus )
self.movie.connectUpdate( self.movieUpdate )
- self.movielabel.setFrameStyle( QFrame.Box | QFrame.Plain )
+ self.movielabel.setFrameStyle( TQFrame.Box | TQFrame.Plain )
self.movielabel.setMovie( self.movie )
self.movielabel.setMargin( 0 )
self.movielabel.setFixedSize( 128 + self.movielabel.frameWidth() * 2,
64 + self.movielabel.frameWidth() * 2 )
- self.grid.addWidget( self.movielabel, 0, 1, Qt.AlignCenter )
- QToolTip.add( self.movielabel, "movie" )
+ self.grid.addWidget( self.movielabel, 0, 1, TQt.AlignCenter )
+ TQToolTip.add( self.movielabel, "movie" )
# Create a group of check boxes
- self.bg = QButtonGroup( self, "checkGroup" )
+ self.bg = TQButtonGroup( self, "checkGroup" )
self.bg.setTitle( "Check Boxes" )
self.grid.addWidget( self.bg, 1, 0 )
# Create a layout for the check boxes
- self.vbox = QVBoxLayout(self.bg, 10)
+ self.vbox = TQVBoxLayout(self.bg, 10)
self.vbox.addSpacing( self.bg.fontMetrics().height() )
self.cb = range(3)
- self.cb[0] = QCheckBox( self.bg )
+ self.cb[0] = TQCheckBox( self.bg )
self.cb[0].setText( "Read" )
self.vbox.addWidget( self.cb[0] )
self.cb[0].setMinimumSize( self.cb[0].sizeHint() )
- self.cb[1] = QCheckBox( self.bg )
+ self.cb[1] = TQCheckBox( self.bg )
self.cb[1].setText( "Write" )
self.vbox.addWidget( self.cb[1] )
self.cb[1].setMinimumSize( self.cb[1].sizeHint() )
- self.cb[2] = QCheckBox( self.bg )
+ self.cb[2] = TQCheckBox( self.bg )
self.cb[2].setText( "Execute" )
self.cb[2].setMinimumSize( self.cb[2].sizeHint() )
self.vbox.addWidget( self.cb[2] )
@@ -241,44 +241,44 @@ class WidgetView ( QWidget ):
self.connect( self.bg, SIGNAL("clicked(int)"), self.checkBoxClicked )
- QToolTip.add( self.cb[0], "check box 1" )
- QToolTip.add( self.cb[1], "check box 2" )
- QToolTip.add( self.cb[2], "check box 3" )
+ TQToolTip.add( self.cb[0], "check box 1" )
+ TQToolTip.add( self.cb[1], "check box 2" )
+ TQToolTip.add( self.cb[2], "check box 3" )
# Create a group of radio buttons
- self.bg = QButtonGroup( self, "radioGroup" )
+ self.bg = TQButtonGroup( self, "radioGroup" )
self.bg.setTitle( "Radio buttons" )
self.grid.addWidget( self.bg, 1, 1 )
# Create a layout for the radio buttons
- self.vbox = QVBoxLayout( self.bg, 10 )
+ self.vbox = TQVBoxLayout( self.bg, 10 )
self.vbox.addSpacing( self.bg.fontMetrics().height() )
- self.rb = QRadioButton( self.bg )
+ self.rb = TQRadioButton( self.bg )
self.rb.setText( "&AM" )
self.rb.setChecked( TRUE )
self.vbox.addWidget( self.rb )
self.rb.setMinimumSize( self.rb.sizeHint() )
- QToolTip.add( self.rb, "radio button 1" )
- self.rb = QRadioButton( self.bg )
+ TQToolTip.add( self.rb, "radio button 1" )
+ self.rb = TQRadioButton( self.bg )
self.rb.setText( "&FM" )
self.vbox.addWidget( self.rb )
self.rb.setMinimumSize( self.rb.sizeHint() )
- QToolTip.add( self.rb, "radio button 2" )
- self.rb = QRadioButton( self.bg )
+ TQToolTip.add( self.rb, "radio button 2" )
+ self.rb = TQRadioButton( self.bg )
self.rb.setText( "&Short Wave" )
self.vbox.addWidget( self.rb )
self.rb.setMinimumSize( self.rb.sizeHint() )
self.vbox.activate()
self.connect( self.bg, SIGNAL("clicked(int)"), self.radioButtonClicked )
- QToolTip.add( self.rb, "radio button 3" )
+ TQToolTip.add( self.rb, "radio button 3" )
# Create a list box
- self.lb = QListBox( self, "listBox" )
+ self.lb = TQListBox( self, "listBox" )
for i in range( 0, 100, 1 ): # fill list box
- txt = QString()
+ txt = TQString()
txt = "line %d" % i
if i == 42 and self.pix:
self.lb.insertItem( self.pm )
@@ -287,24 +287,24 @@ class WidgetView ( QWidget ):
self.grid.addMultiCellWidget( self.lb, 2, 4, 0, 0 )
self.connect( self.lb, SIGNAL("selected(int)"), self.listBoxItemSelected )
- QToolTip.add( self.lb, "list box" )
+ TQToolTip.add( self.lb, "list box" )
- self.vbox = QVBoxLayout( 8 )
+ self.vbox = TQVBoxLayout( 8 )
self.grid.addLayout( self.vbox, 2, 1 )
# Create a slider
- self.sb = QSlider( 0, 300, 1, 100, QSlider.Horizontal, self, "Slider" )
- self.sb.setTickmarks( QSlider.Below )
+ self.sb = TQSlider( 0, 300, 1, 100, TQSlider.Horizontal, self, "Slider" )
+ self.sb.setTickmarks( TQSlider.Below )
self.sb.setTickInterval( 10 )
- self.sb.setFocusPolicy( QWidget.TabFocus )
+ self.sb.setFocusPolicy( TQWidget.TabFocus )
self.sb.setFixedHeight( self.sb.sizeHint().height() )
self.vbox.addWidget( self.sb )
self.connect( self.sb, SIGNAL("valueChanged(int)"), self.sliderValueChanged )
- QToolTip.add( self.sb, "slider" )
+ TQToolTip.add( self.sb, "slider" )
# Create a combo box
- self.combo = QComboBox( FALSE, self, "comboBox" )
+ self.combo = TQComboBox( FALSE, self, "comboBox" )
self.combo.insertItem( "darkBlue" )
self.combo.insertItem( "darkRed" )
self.combo.insertItem( "darkGreen" )
@@ -313,10 +313,10 @@ class WidgetView ( QWidget ):
self.combo.setFixedHeight( self.combo.sizeHint().height() )
self.vbox.addWidget( self.combo )
self.connect( self.combo, SIGNAL("activated(int)"), self.comboBoxItemActivated )
- QToolTip.add( self.combo, "read-only combo box" )
+ TQToolTip.add( self.combo, "read-only combo box" )
# Create an editable combo box
- self.edCombo = QComboBox( TRUE, self, "edComboBox" )
+ self.edCombo = TQComboBox( TRUE, self, "edComboBox" )
self.edCombo.insertItem( "Permutable" )
self.edCombo.insertItem( "Malleable" )
self.edCombo.insertItem( "Adaptable" )
@@ -324,50 +324,50 @@ class WidgetView ( QWidget ):
self.edCombo.insertItem( "Inconstant" )
self.edCombo.setFixedHeight( self.edCombo.sizeHint().height() )
self.vbox.addWidget( self.edCombo )
- self.connect( self.edCombo, SIGNAL("activated(const QString &)"), self.edComboBoxItemActivated)
- QToolTip.add( self.edCombo, "editable combo box" )
+ self.connect( self.edCombo, SIGNAL("activated(const TQString &)"), self.edComboBoxItemActivated)
+ TQToolTip.add( self.edCombo, "editable combo box" )
self.edCombo.setAutoCompletion( TRUE )
self.vbox.addStretch( 1 )
- self.vbox = QVBoxLayout( 8 )
+ self.vbox = TQVBoxLayout( 8 )
self.grid.addLayout( self.vbox, 2, 2 )
# Create a spin box
- self.spin = QSpinBox( 0, 10, 1, self, "spin" )
+ self.spin = TQSpinBox( 0, 10, 1, self, "spin" )
self.spin.setSuffix( " mm" )
self.spin.setSpecialValueText( "Auto" )
self.spin.setMinimumSize( self.spin.sizeHint() )
- self.connect( self.spin, SIGNAL( "valueChanged(const QString &)" ), self.spinBoxValueChanged )
- QToolTip.add( self.spin, "spin box" )
+ self.connect( self.spin, SIGNAL( "valueChanged(const TQString &)" ), self.spinBoxValueChanged )
+ TQToolTip.add( self.spin, "spin box" )
self.vbox.addWidget( self.spin )
self.vbox.addStretch( 1 )
# Create a multi line edit
- self.mle = QMultiLineEdit( self, "multiLineEdit" )
+ self.mle = TQMultiLineEdit( self, "multiLineEdit" )
self.grid.addMultiCellWidget( self.mle, 3, 3, 1, 2 )
self.mle.setMinimumHeight( self.mle.fontMetrics().height() * 3 )
- self.mle.setText("This is a QMultiLineEdit widget,\n"
+ self.mle.setText("This is a TQMultiLineEdit widget,\n"
"useful for small multi-line\n"
"input fields.")
- QToolTip.add( self.mle, "multi line editor" )
+ TQToolTip.add( self.mle, "multi line editor" )
# Create a single line edit
- self.le = QLineEdit( self, "lineEdit" )
+ self.le = TQLineEdit( self, "lineEdit" )
self.grid.addMultiCellWidget( self.le, 4, 4, 1, 2 )
self.le.setFixedHeight( self.le.sizeHint().height() )
- self.connect( self.le, SIGNAL("textChanged(const QString &)"), self.lineEditTextChanged )
- QToolTip.add( self.le, "single line editor" )
+ self.connect( self.le, SIGNAL("textChanged(const TQString &)"), self.lineEditTextChanged )
+ TQToolTip.add( self.le, "single line editor" )
- # Create a horizontal line (sort of QFrame) above the message line
- self.separator = QFrame( self, "separatorLine" )
- self.separator.setFrameStyle( QFrame.HLine | QFrame.Sunken )
+ # Create a horizontal line (sort of TQFrame) above the message line
+ self.separator = TQFrame( self, "separatorLine" )
+ self.separator.setFrameStyle( TQFrame.HLine | TQFrame.Sunken )
self.separator.setFixedHeight( self.separator.sizeHint().height() )
self.grid.addMultiCellWidget( self.separator, 5, 5, 0, 2 )
- QToolTip.add( self.separator, "tool tips on a separator! wow!" )
+ TQToolTip.add( self.separator, "tool tips on a separator! wow!" )
self.grid.setRowStretch( 0, 0 )
self.grid.setRowStretch( 1, 0 )
@@ -383,24 +383,24 @@ class WidgetView ( QWidget ):
# Create an label and a message in a plain widget
# The message is updated when buttons are clicked etc.
- self.hbox = QHBoxLayout()
+ self.hbox = TQHBoxLayout()
self.topLayout.addLayout( self.hbox )
- self.msgLabel = QLabel( self, "msgLabel" )
+ self.msgLabel = TQLabel( self, "msgLabel" )
self.msgLabel.setText( "Message:" )
- self.msgLabel.setAlignment( Qt.AlignHCenter | Qt.AlignVCenter )
+ self.msgLabel.setAlignment( TQt.AlignHCenter | TQt.AlignVCenter )
self.msgLabel.setFixedSize( self.msgLabel.sizeHint() )
self.hbox.addWidget( self.msgLabel )
- QToolTip.add( self.msgLabel, "label 1" )
+ TQToolTip.add( self.msgLabel, "label 1" )
- self.msg = QLabel( self, "message" )
- self.msg.setFrameStyle( QFrame.Panel | QFrame.Sunken )
- self.msg.setAlignment( Qt.AlignCenter )
- self.msg.setFont( QFont( "times", 12, QFont.Bold ) )
+ self.msg = TQLabel( self, "message" )
+ self.msg.setFrameStyle( TQFrame.Panel | TQFrame.Sunken )
+ self.msg.setAlignment( TQt.AlignCenter )
+ self.msg.setFont( TQFont( "times", 12, TQFont.Bold ) )
self.msg.setText( "Message" )
self.msg.setFixedHeight( self.msg.sizeHint().height() )
self.msg.setText( "" )
self.hbox.addWidget( self.msg, 5 )
- QToolTip.add( self.msg, "label 2" )
+ TQToolTip.add( self.msg, "label 2" )
self.topLayout.activate()
@@ -412,13 +412,13 @@ class WidgetView ( QWidget ):
self.setIcon( self.movie.framePixmap() )
def movieStatus( self, s ):
- if s == QMovie.SourceEmpty or s == QMovie.UnrecognizedFormat:
- pm = QPixmap('tt-logo.png')
+ if s == TQMovie.SourceEmpty or s == TQMovie.UnrecognizedFormat:
+ pm = TQPixmap('tt-logo.png')
self.movielabel.setPixmap(pm)
self.movielabel.setFixedSize(pm.size())
else:
if ( self.movielabel.movie() ): # for flicker-free animation:
- self.movielabel.setBackgroundMode( QWidget.NoBackground )
+ self.movielabel.setBackgroundMode( TQWidget.NoBackground )
def button1Clicked( self ):
self.msg.setText( "The first push button was clicked" )
@@ -450,18 +450,18 @@ class WidgetView ( QWidget ):
def comboBoxItemActivated( self, index ):
self.msg.setText( "Combo box item %d activated" % index )
- p = QApplication.palette()
+ p = TQApplication.palette()
if index == 0:
- p.setColor( QColorGroup.Highlight, Qt.darkBlue )
+ p.setColor( TQColorGroup.Highlight, TQt.darkBlue )
elif index == 1:
- p.setColor( QColorGroup.Highlight, Qt.darkRed )
+ p.setColor( TQColorGroup.Highlight, TQt.darkRed )
elif index == 2:
- p.setColor( QColorGroup.Highlight, Qt.darkGreen )
+ p.setColor( TQColorGroup.Highlight, TQt.darkGreen )
elif index == 3:
- p.setColor( QColorGroup.Highlight, Qt.blue )
+ p.setColor( TQColorGroup.Highlight, TQt.blue )
elif index == 4:
- p.setColor( QColorGroup.Highlight, Qt.red )
- QApplication.setPalette( p, TRUE )
+ p.setColor( TQColorGroup.Highlight, TQt.red )
+ TQApplication.setPalette( p, TRUE )
def lineEditTextChanged( self, newText ):
self.msg.setText("Line edit text: " + unicode(newText))
@@ -475,24 +475,24 @@ class WidgetView ( QWidget ):
#def eventFilter( self, event ):
# identify_now = TRUE
# if event.type() == Event_MouseButtonPress and identify_now:
- # e = QMouseEvent( event )
- # if (e.button() == Qt.RightButton) and (e.state() & Qt.ControlButton) != 0:
- # txt = QString( "The clicked widget is a\n" )
- # txt = txt + QObect.className()
+ # e = TQMouseEvent( event )
+ # if (e.button() == TQt.RightButton) and (e.state() & TQt.ControlButton) != 0:
+ # txt = TQString( "The clicked widget is a\n" )
+ # txt = txt + TQObect.className()
# txt = txt + "\nThe widget's name is\n"
- # if QObject.name():
- # txt = txt + QObject.name()
+ # if TQObject.name():
+ # txt = txt + TQObject.name()
# else:
# txt = txt + "<no name>"
# identify_now = FALSE # don't do it in message box
- # QMessageBox.message( "Identify Widget", txt, 0, QObject )
+ # TQMessageBox.message( "Identify Widget", txt, 0, TQObject )
# identify_now = TRUE; # allow it again
# return FALSE # don't eat event
################################################################################################
-#QApplication.setColourSpec( QApplication.CustomColor )
-a = QApplication( sys.argv )
+#TQApplication.setColourSpec( TQApplication.CustomColor )
+a = TQApplication( sys.argv )
w = WidgetView()
a.setMainWidget( w )
diff --git a/pylupdate3/LICENSE.GPL b/pylupdate3/LICENSE.GPL
index c7aea18..fc80518 100644
--- a/pylupdate3/LICENSE.GPL
+++ b/pylupdate3/LICENSE.GPL
@@ -109,9 +109,9 @@ above, provided that you also meet all of these conditions:
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
+ the Program is not retquired to print an announcement.)
-These requirements apply to the modified work as a whole. If
+These retquirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
@@ -177,7 +177,7 @@ However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
- 5. You are not required to accept this License, since you have not
+ 5. You are not retquired to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
@@ -263,14 +263,14 @@ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+TO THE TQUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+ 12. IN NO EVENT UNLESS RETQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSETQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
diff --git a/pylupdate3/fetchtr.cpp b/pylupdate3/fetchtr.cpp
index 609dbc1..74f683d 100644
--- a/pylupdate3/fetchtr.cpp
+++ b/pylupdate3/fetchtr.cpp
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2002 Detlev Offenbach <detlev@die-offenbachs.de>
**
-** This is a modified version of lupdate. The original is part of Qt-Linguist.
+** This is a modified version of lupdate. The original is part of TQt-Linguist.
** The copyright of the original file can be found below.
**
** This version is modified to handle python sources.
@@ -18,7 +18,7 @@
**
** fetchtr.cpp
**
-** This file is part of Qt Linguist.
+** This file is part of TQt Linguist.
**
** See the file LICENSE included in the distribution for the usage
** and distribution terms.
@@ -44,8 +44,8 @@
static const char MagicComment[] = "TRANSLATOR ";
-static QMap<QCString, int> needs_Q_OBJECT;
-static QMap<QCString, int> lacks_Q_OBJECT;
+static TQMap<TQCString, int> needs_Q_OBJECT;
+static TQMap<TQCString, int> lacks_Q_OBJECT;
/*
The first part of this source file is the python tokenizer. We skip
@@ -62,7 +62,7 @@ enum { Tok_Eof, Tok_class, Tok_return, Tok_tr,
The tokenizer maintains the following global variables. The names
should be self-explanatory.
*/
-static QCString yyFileName;
+static TQCString yyFileName;
static int yyCh;
static char yyIdent[128];
static size_t yyIdentLen;
@@ -78,7 +78,7 @@ static int yyCurLineNo;
static FILE *yyInFile;
// the string to read from and current position in the string (otherwise)
-static QString yyInStr;
+static TQString yyInStr;
static int yyInPos;
static int buf;
@@ -225,7 +225,7 @@ static int getToken()
yyCh = getChar();
if ( yyCh == 'x' ) {
- QCString hex = "0";
+ TQCString hex = "0";
yyCh = getChar();
while ( isxdigit(yyCh) ) {
@@ -236,7 +236,7 @@ static int getToken()
if ( yyStringLen < sizeof(yyString) - 1 )
yyString[yyStringLen++] = (char) n;
} else if ( yyCh >= '0' && yyCh < '8' ) {
- QCString oct = "";
+ TQCString oct = "";
do {
oct += (char) yyCh;
@@ -316,7 +316,7 @@ static bool match( int t )
return matches;
}
-static bool matchString( QCString *s )
+static bool matchString( TQCString *s )
{
bool matches = ( yyTok == Tok_String );
*s = "";
@@ -330,10 +330,10 @@ static bool matchString( QCString *s )
static bool matchEncoding( bool *utf8 )
{
if ( yyTok == Tok_Ident ) {
- if ( strcmp(yyIdent, "QApplication") == 0 ) {
+ if ( strcmp(yyIdent, "TQApplication") == 0 ) {
yyTok = getToken();
}
- *utf8 = QString( yyIdent ).endsWith( QString("UTF8") );
+ *utf8 = TQString( yyIdent ).endsWith( TQString("UTF8") );
yyTok = getToken();
return TRUE;
} else {
@@ -344,12 +344,12 @@ static bool matchEncoding( bool *utf8 )
static void parse( MetaTranslator *tor, const char *initialContext,
const char *defaultContext )
{
- QMap<QCString, QCString> qualifiedContexts;
- QCString context;
- QCString text;
- QCString com;
- QCString functionContext = initialContext;
- QCString prefix;
+ TQMap<TQCString, TQCString> qualifiedContexts;
+ TQCString context;
+ TQCString text;
+ TQCString com;
+ TQCString functionContext = initialContext;
+ TQCString prefix;
bool utf8 = FALSE;
yyTok = getToken();
@@ -380,7 +380,7 @@ static void parse( MetaTranslator *tor, const char *initialContext,
if ( qualifiedContexts.contains(context) )
context = qualifiedContexts[context];
tor->insert( MetaTranslatorMessage(context, text, com,
- QString::null, utf8) );
+ TQString::null, utf8) );
}
}
break;
@@ -400,7 +400,7 @@ static void parse( MetaTranslator *tor, const char *initialContext,
matchEncoding(&utf8) &&
match(Tok_RightParen))) )
tor->insert( MetaTranslatorMessage(context, text, com,
- QString::null, utf8) );
+ TQString::null, utf8) );
}
break;
case Tok_Ident:
@@ -423,7 +423,7 @@ static void parse( MetaTranslator *tor, const char *initialContext,
context = com.left( k );
com.remove( 0, k + 1 );
tor->insert( MetaTranslatorMessage(context, "", com,
- QString::null, FALSE) );
+ TQString::null, FALSE) );
}
}
yyTok = getToken();
diff --git a/pylupdate3/main.cpp b/pylupdate3/main.cpp
index 427fed5..63f54c0 100644
--- a/pylupdate3/main.cpp
+++ b/pylupdate3/main.cpp
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2002 Detlev Offenbach <detlev@die-offenbachs.de>
**
-** This is a modified version of lupdate. The original is part of Qt-Linguist.
+** This is a modified version of lupdate. The original is part of TQt-Linguist.
** The copyright of the original file can be found below.
**
** This version is modified to handle python sources.
@@ -18,7 +18,7 @@
**
** main.cpp
**
-** This file is part of Qt Linguist.
+** This file is part of TQt Linguist.
**
** See the file LICENSE included in the distribution for the usage
** and distribution terms.
@@ -47,7 +47,7 @@ extern void fetchtr_py( const char *fileName, MetaTranslator *tor,
extern void merge( MetaTranslator *tor, const MetaTranslator *virginTor,
bool verbose );
-typedef QValueList<MetaTranslatorMessage> TML;
+typedef TQValueList<MetaTranslatorMessage> TML;
static void printUsage()
{
@@ -85,39 +85,39 @@ int main( int argc, char **argv )
}
numProFiles++;
- QFile f( argv[i] );
+ TQFile f( argv[i] );
if ( !f.open(IO_ReadOnly) ) {
qWarning( "pylupdate error: Cannot open project file '%s': %s",
argv[i], strerror(errno) );
return 1;
}
- QTextStream t( &f );
- QString fullText = t.read();
+ TQTextStream t( &f );
+ TQString fullText = t.read();
f.close();
MetaTranslator fetchedTor;
- QString defaultContext = "@default";
- QCString codec;
- QStringList translatorFiles;
- QStringList::Iterator tf;
+ TQString defaultContext = "@default";
+ TQCString codec;
+ TQStringList translatorFiles;
+ TQStringList::Iterator tf;
- QMap<QString, QString> tagMap = proFileTagMap( fullText );
- QMap<QString, QString>::Iterator it;
+ TQMap<TQString, TQString> tagMap = proFileTagMap( fullText );
+ TQMap<TQString, TQString>::Iterator it;
for ( it = tagMap.begin(); it != tagMap.end(); ++it ) {
- QStringList toks = QStringList::split( QChar(' '), it.data() );
- QStringList::Iterator t;
+ TQStringList toks = TQStringList::split( TQChar(' '), it.data() );
+ TQStringList::Iterator t;
for ( t = toks.begin(); t != toks.end(); ++t ) {
- if ( it.key() == QString("SOURCES") ) {
+ if ( it.key() == TQString("SOURCES") ) {
fetchtr_py( *t, &fetchedTor,
defaultContext, TRUE );
metSomething = TRUE;
- } else if ( it.key() == QString("TRANSLATIONS") ) {
+ } else if ( it.key() == TQString("TRANSLATIONS") ) {
translatorFiles.append( *t );
metSomething = TRUE;
- } else if ( it.key() == QString("CODEC") ) {
+ } else if ( it.key() == TQString("CODEC") ) {
codec = (*t).latin1();
}
}
diff --git a/pylupdate3/merge.cpp b/pylupdate3/merge.cpp
index c569c93..d40c92c 100644
--- a/pylupdate3/merge.cpp
+++ b/pylupdate3/merge.cpp
@@ -3,7 +3,7 @@
**
** merge.cpp
**
-** This file is part of Qt Linguist.
+** This file is part of TQt Linguist.
**
** See the file LICENSE included in the distribution for the usage
** and distribution terms.
@@ -21,7 +21,7 @@ extern void applyNumberHeuristic( MetaTranslator *tor, bool verbose );
// defined in sametexth.cpp
extern void applySameTextHeuristic( MetaTranslator *tor, bool verbose );
-typedef QValueList<MetaTranslatorMessage> TML;
+typedef TQValueList<MetaTranslatorMessage> TML;
/*
Merges two MetaTranslator objects into the first one. The first one is a set
@@ -47,7 +47,7 @@ void merge( MetaTranslator *tor, const MetaTranslator *virginTor, bool verbose )
MetaTranslatorMessage m = *it;
// skip context comment
- if ( !QCString((*it).sourceText()).isEmpty() ) {
+ if ( !TQCString((*it).sourceText()).isEmpty() ) {
if ( !virginTor->contains((*it).context(), (*it).sourceText(),
(*it).comment()) ) {
newType = MetaTranslatorMessage::Obsolete;
@@ -86,7 +86,7 @@ void merge( MetaTranslator *tor, const MetaTranslator *virginTor, bool verbose )
if ( !tor->contains((*it).context(), (*it).sourceText(),
(*it).comment()) ) {
tor->insert( *it );
- if ( !QCString((*it).sourceText()).isEmpty() )
+ if ( !TQCString((*it).sourceText()).isEmpty() )
neww++;
}
}
diff --git a/pylupdate3/metatranslator.cpp b/pylupdate3/metatranslator.cpp
index c3d0673..4b67c32 100644
--- a/pylupdate3/metatranslator.cpp
+++ b/pylupdate3/metatranslator.cpp
@@ -3,7 +3,7 @@
**
** metatranslator.cpp
**
-** This file is part of Qt Linguist.
+** This file is part of TQt Linguist.
**
** See the file LICENSE included in the distribution for the usage
** and distribution terms.
@@ -25,20 +25,20 @@
#include "metatranslator.h"
-static bool encodingIsUtf8( const QXmlAttributes& atts )
+static bool encodingIsUtf8( const TQXmlAttributes& atts )
{
for ( int i = 0; i < atts.length(); i++ ) {
// utf8="true" is a pre-3.0 syntax
- if ( atts.qName(i) == QString("utf8") ) {
- return ( atts.value(i) == QString("true") );
- } else if ( atts.qName(i) == QString("encoding") ) {
- return ( atts.value(i) == QString("UTF-8") );
+ if ( atts.qName(i) == TQString("utf8") ) {
+ return ( atts.value(i) == TQString("true") );
+ } else if ( atts.qName(i) == TQString("encoding") ) {
+ return ( atts.value(i) == TQString("UTF-8") );
}
}
return FALSE;
}
-class TsHandler : public QXmlDefaultHandler
+class TsHandler : public TQXmlDefaultHandler
{
public:
TsHandler( MetaTranslator *translator )
@@ -46,38 +46,38 @@ public:
inMessage( FALSE ), ferrorCount( 0 ), contextIsUtf8( FALSE ),
messageIsUtf8( FALSE ) { }
- virtual bool startElement( const QString& namespaceURI,
- const QString& localName, const QString& qName,
- const QXmlAttributes& atts );
- virtual bool endElement( const QString& namespaceURI,
- const QString& localName, const QString& qName );
- virtual bool characters( const QString& ch );
- virtual bool fatalError( const QXmlParseException& exception );
+ virtual bool startElement( const TQString& namespaceURI,
+ const TQString& localName, const TQString& qName,
+ const TQXmlAttributes& atts );
+ virtual bool endElement( const TQString& namespaceURI,
+ const TQString& localName, const TQString& qName );
+ virtual bool characters( const TQString& ch );
+ virtual bool fatalError( const TQXmlParseException& exception );
private:
MetaTranslator *tor;
MetaTranslatorMessage::Type type;
bool inMessage;
- QString context;
- QString source;
- QString comment;
- QString translation;
+ TQString context;
+ TQString source;
+ TQString comment;
+ TQString translation;
- QString accum;
+ TQString accum;
int ferrorCount;
bool contextIsUtf8;
bool messageIsUtf8;
};
-bool TsHandler::startElement( const QString& /* namespaceURI */,
- const QString& /* localName */,
- const QString& qName,
- const QXmlAttributes& atts )
+bool TsHandler::startElement( const TQString& /* namespaceURI */,
+ const TQString& /* localName */,
+ const TQString& qName,
+ const TQXmlAttributes& atts )
{
- if ( qName == QString("byte") ) {
+ if ( qName == TQString("byte") ) {
for ( int i = 0; i < atts.length(); i++ ) {
- if ( atts.qName(i) == QString("value") ) {
- QString value = atts.value( i );
+ if ( atts.qName(i) == TQString("value") ) {
+ TQString value = atts.value( i );
int base = 10;
if ( value.startsWith("x") ) {
base = 16;
@@ -85,29 +85,29 @@ bool TsHandler::startElement( const QString& /* namespaceURI */,
}
int n = value.toUInt( 0, base );
if ( n != 0 )
- accum += QChar( n );
+ accum += TQChar( n );
}
}
} else {
- if ( qName == QString("context") ) {
+ if ( qName == TQString("context") ) {
context.truncate( 0 );
source.truncate( 0 );
comment.truncate( 0 );
translation.truncate( 0 );
contextIsUtf8 = encodingIsUtf8( atts );
- } else if ( qName == QString("message") ) {
+ } else if ( qName == TQString("message") ) {
inMessage = TRUE;
type = MetaTranslatorMessage::Finished;
source.truncate( 0 );
comment.truncate( 0 );
translation.truncate( 0 );
messageIsUtf8 = encodingIsUtf8( atts );
- } else if ( qName == QString("translation") ) {
+ } else if ( qName == TQString("translation") ) {
for ( int i = 0; i < atts.length(); i++ ) {
- if ( atts.qName(i) == QString("type") ) {
- if ( atts.value(i) == QString("unfinished") )
+ if ( atts.qName(i) == TQString("type") ) {
+ if ( atts.value(i) == TQString("unfinished") )
type = MetaTranslatorMessage::Unfinished;
- else if ( atts.value(i) == QString("obsolete") )
+ else if ( atts.value(i) == TQString("obsolete") )
type = MetaTranslatorMessage::Obsolete;
else
type = MetaTranslatorMessage::Finished;
@@ -119,33 +119,33 @@ bool TsHandler::startElement( const QString& /* namespaceURI */,
return TRUE;
}
-bool TsHandler::endElement( const QString& /* namespaceURI */,
- const QString& /* localName */,
- const QString& qName )
+bool TsHandler::endElement( const TQString& /* namespaceURI */,
+ const TQString& /* localName */,
+ const TQString& qName )
{
- if ( qName == QString("codec") || qName == QString("defaultcodec") ) {
+ if ( qName == TQString("codec") || qName == TQString("defaultcodec") ) {
// "codec" is a pre-3.0 syntax
tor->setCodec( accum );
- } else if ( qName == QString("name") ) {
+ } else if ( qName == TQString("name") ) {
context = accum;
- } else if ( qName == QString("source") ) {
+ } else if ( qName == TQString("source") ) {
source = accum;
- } else if ( qName == QString("comment") ) {
+ } else if ( qName == TQString("comment") ) {
if ( inMessage ) {
comment = accum;
} else {
if ( contextIsUtf8 )
tor->insert( MetaTranslatorMessage(context.utf8(), "",
- accum.utf8(), QString::null, TRUE,
+ accum.utf8(), TQString::null, TRUE,
MetaTranslatorMessage::Unfinished) );
else
tor->insert( MetaTranslatorMessage(context.ascii(), "",
- accum.ascii(), QString::null, FALSE,
+ accum.ascii(), TQString::null, FALSE,
MetaTranslatorMessage::Unfinished) );
}
- } else if ( qName == QString("translation") ) {
+ } else if ( qName == TQString("translation") ) {
translation = accum;
- } else if ( qName == QString("message") ) {
+ } else if ( qName == TQString("message") ) {
if ( messageIsUtf8 )
tor->insert( MetaTranslatorMessage(context.utf8(), source.utf8(),
comment.utf8(), translation,
@@ -159,56 +159,56 @@ bool TsHandler::endElement( const QString& /* namespaceURI */,
return TRUE;
}
-bool TsHandler::characters( const QString& ch )
+bool TsHandler::characters( const TQString& ch )
{
- QString t = ch;
- t.replace( QRegExp(QChar('\r')), "" );
+ TQString t = ch;
+ t.replace( TQRegExp(TQChar('\r')), "" );
accum += t;
return TRUE;
}
-bool TsHandler::fatalError( const QXmlParseException& exception )
+bool TsHandler::fatalError( const TQXmlParseException& exception )
{
if ( ferrorCount++ == 0 ) {
- QString msg;
+ TQString msg;
msg.sprintf( "Parse error at line %d, column %d (%s).",
exception.lineNumber(), exception.columnNumber(),
exception.message().latin1() );
if ( qApp == 0 )
qWarning( "XML error: %s", msg.latin1() );
else
- QMessageBox::information( qApp->mainWidget(),
- QObject::tr("Qt Linguist"), msg );
+ TQMessageBox::information( qApp->mainWidget(),
+ TQObject::tr("TQt Linguist"), msg );
}
return FALSE;
}
-static QString numericEntity( int ch )
+static TQString numericEntity( int ch )
{
- return QString( ch <= 0x20 ? "<byte value=\"x%1\"/>" : "&#x%1;" )
+ return TQString( ch <= 0x20 ? "<byte value=\"x%1\"/>" : "&#x%1;" )
.arg( ch, 0, 16 );
}
-static QString protect( const QCString& str )
+static TQString protect( const TQCString& str )
{
- QString result;
+ TQString result;
int len = (int) str.length();
for ( int k = 0; k < len; k++ ) {
switch( str[k] ) {
case '\"':
- result += QString( "&quot;" );
+ result += TQString( "&quot;" );
break;
case '&':
- result += QString( "&amp;" );
+ result += TQString( "&amp;" );
break;
case '>':
- result += QString( "&gt;" );
+ result += TQString( "&gt;" );
break;
case '<':
- result += QString( "&lt;" );
+ result += TQString( "&lt;" );
break;
case '\'':
- result += QString( "&apos;" );
+ result += TQString( "&apos;" );
break;
default:
if ( (uchar) str[k] < 0x20 && str[k] != '\n' )
@@ -220,19 +220,19 @@ static QString protect( const QCString& str )
return result;
}
-static QString evilBytes( const QCString& str, bool utf8 )
+static TQString evilBytes( const TQCString& str, bool utf8 )
{
if ( utf8 ) {
return protect( str );
} else {
- QString result;
- QCString t = protect( str ).latin1();
+ TQString result;
+ TQCString t = protect( str ).latin1();
int len = (int) t.length();
for ( int k = 0; k < len; k++ ) {
if ( (uchar) t[k] >= 0x7f )
result += numericEntity( (uchar) t[k] );
else
- result += QChar( t[k] );
+ result += TQChar( t[k] );
}
return result;
}
@@ -246,9 +246,9 @@ MetaTranslatorMessage::MetaTranslatorMessage()
MetaTranslatorMessage::MetaTranslatorMessage( const char *context,
const char *sourceText,
const char *comment,
- const QString& translation,
+ const TQString& translation,
bool utf8, Type type )
- : QTranslatorMessage( context, sourceText, comment, translation ),
+ : TQTranslatorMessage( context, sourceText, comment, translation ),
utfeight( FALSE ), ty( type )
{
/*
@@ -281,14 +281,14 @@ MetaTranslatorMessage::MetaTranslatorMessage( const char *context,
}
MetaTranslatorMessage::MetaTranslatorMessage( const MetaTranslatorMessage& m )
- : QTranslatorMessage( m ), utfeight( m.utfeight ), ty( m.ty )
+ : TQTranslatorMessage( m ), utfeight( m.utfeight ), ty( m.ty )
{
}
MetaTranslatorMessage& MetaTranslatorMessage::operator=(
const MetaTranslatorMessage& m )
{
- QTranslatorMessage::operator=( m );
+ TQTranslatorMessage::operator=( m );
utfeight = m.utfeight;
ty = m.ty;
return *this;
@@ -330,23 +330,23 @@ MetaTranslator& MetaTranslator::operator=( const MetaTranslator& tor )
return *this;
}
-bool MetaTranslator::load( const QString& filename )
+bool MetaTranslator::load( const TQString& filename )
{
mm.clear();
- QFile f( filename );
+ TQFile f( filename );
if ( !f.open(IO_ReadOnly) )
return FALSE;
- QTextStream t( &f );
- QXmlInputSource in( t );
- QXmlSimpleReader reader;
+ TQTextStream t( &f );
+ TQXmlInputSource in( t );
+ TQXmlSimpleReader reader;
// don't click on these!
reader.setFeature( "http://xml.org/sax/features/namespaces", FALSE );
reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", TRUE );
reader.setFeature( "http://trolltech.com/xml/features/report-whitespace"
"-only-CharData", FALSE );
- QXmlDefaultHandler *hand = new TsHandler( this );
+ TQXmlDefaultHandler *hand = new TsHandler( this );
reader.setContentHandler( hand );
reader.setErrorHandler( hand );
@@ -360,14 +360,14 @@ bool MetaTranslator::load( const QString& filename )
return ok;
}
-bool MetaTranslator::save( const QString& filename ) const
+bool MetaTranslator::save( const TQString& filename ) const
{
- QFile f( filename );
+ TQFile f( filename );
if ( !f.open(IO_WriteOnly) )
return FALSE;
- QTextStream t( &f );
- t.setCodec( QTextCodec::codecForName("ISO-8859-1") );
+ TQTextStream t( &f );
+ t.setCodec( TQTextCodec::codecForName("ISO-8859-1") );
t << "<!DOCTYPE TS><TS>\n";
if ( codecName != "ISO-8859-1" )
@@ -377,19 +377,19 @@ bool MetaTranslator::save( const QString& filename ) const
TMMInv inv;
TMMInv::Iterator i;
bool contextIsUtf8 = m.key().utf8();
- QCString context = m.key().context();
- QCString comment = "";
+ TQCString context = m.key().context();
+ TQCString comment = "";
do {
- if ( QCString(m.key().sourceText()).isEmpty() ) {
+ if ( TQCString(m.key().sourceText()).isEmpty() ) {
if ( m.key().type() != MetaTranslatorMessage::Obsolete ) {
contextIsUtf8 = m.key().utf8();
- comment = QCString( m.key().comment() );
+ comment = TQCString( m.key().comment() );
}
} else {
inv.insert( *m, m.key() );
}
- } while ( ++m != mm.end() && QCString(m.key().context()) == context );
+ } while ( ++m != mm.end() && TQCString(m.key().context()) == context );
t << "<context";
if ( contextIsUtf8 )
@@ -409,7 +409,7 @@ bool MetaTranslator::save( const QString& filename ) const
<< " <source>" << evilBytes( (*i).sourceText(),
(*i).utf8() )
<< "</source>\n";
- if ( !QCString((*i).comment()).isEmpty() )
+ if ( !TQCString((*i).comment()).isEmpty() )
t << " <comment>" << evilBytes( (*i).comment(),
(*i).utf8() )
<< "</comment>\n";
@@ -429,9 +429,9 @@ bool MetaTranslator::save( const QString& filename ) const
return TRUE;
}
-bool MetaTranslator::release( const QString& filename, bool verbose ) const
+bool MetaTranslator::release( const TQString& filename, bool verbose ) const
{
- QTranslator tor( 0 );
+ TQTranslator tor( 0 );
int finished = 0;
int unfinished = 0;
int untranslated = 0;
@@ -451,7 +451,7 @@ bool MetaTranslator::release( const QString& filename, bool verbose ) const
}
}
- bool saved = tor.save( filename, QTranslator::Stripped );
+ bool saved = tor.save( filename, TQTranslator::Stripped );
if ( saved && verbose )
qWarning( " %d finished, %d unfinished and %d untranslated messages",
finished, unfinished, untranslated );
@@ -494,7 +494,7 @@ void MetaTranslator::stripEmptyContexts()
TMM::Iterator m = mm.begin();
while ( m != mm.end() ) {
- if ( QCString(m.key().sourceText()).isEmpty() ) {
+ if ( TQCString(m.key().sourceText()).isEmpty() ) {
TMM::Iterator n = m;
++n;
// the context comment is followed by other messages
@@ -514,22 +514,22 @@ void MetaTranslator::setCodec( const char *name )
const int latin1 = 4;
codecName = name;
- codec = QTextCodec::codecForName( name );
+ codec = TQTextCodec::codecForName( name );
if ( codec == 0 || codec->mibEnum() == latin1 )
codec = 0;
}
-QString MetaTranslator::toUnicode( const char *str, bool utf8 ) const
+TQString MetaTranslator::toUnicode( const char *str, bool utf8 ) const
{
if ( utf8 )
- return QString::fromUtf8( str );
+ return TQString::fromUtf8( str );
else if ( codec == 0 )
- return QString( str );
+ return TQString( str );
else
return codec->toUnicode( str );
}
-QValueList<MetaTranslatorMessage> MetaTranslator::messages() const
+TQValueList<MetaTranslatorMessage> MetaTranslator::messages() const
{
int n = mm.count();
TMM::ConstIterator *t = new TMM::ConstIterator[n + 1];
@@ -537,7 +537,7 @@ QValueList<MetaTranslatorMessage> MetaTranslator::messages() const
for ( m = mm.begin(); m != mm.end(); ++m )
t[*m] = m;
- QValueList<MetaTranslatorMessage> val;
+ TQValueList<MetaTranslatorMessage> val;
for ( int i = 0; i < n; i++ )
val.append( t[i].key() );
@@ -545,9 +545,9 @@ QValueList<MetaTranslatorMessage> MetaTranslator::messages() const
return val;
}
-QValueList<MetaTranslatorMessage> MetaTranslator::translatedMessages() const
+TQValueList<MetaTranslatorMessage> MetaTranslator::translatedMessages() const
{
- QValueList<MetaTranslatorMessage> val;
+ TQValueList<MetaTranslatorMessage> val;
TMM::ConstIterator m;
for ( m = mm.begin(); m != mm.end(); ++m ) {
if ( m.key().type() == MetaTranslatorMessage::Finished )
diff --git a/pylupdate3/metatranslator.h b/pylupdate3/metatranslator.h
index a071207..5bf3961 100644
--- a/pylupdate3/metatranslator.h
+++ b/pylupdate3/metatranslator.h
@@ -3,7 +3,7 @@
**
** metatranslator.h
**
-** This file is part of Qt Linguist.
+** This file is part of TQt Linguist.
**
** See the file LICENSE included in the distribution for the usage
** and distribution terms.
@@ -22,9 +22,9 @@
#include <qtranslator.h>
#include <qvaluelist.h>
-class QTextCodec;
+class TQTextCodec;
-class MetaTranslatorMessage : public QTranslatorMessage
+class MetaTranslatorMessage : public TQTranslatorMessage
{
public:
enum Type { Unfinished, Finished, Obsolete };
@@ -32,7 +32,7 @@ public:
MetaTranslatorMessage();
MetaTranslatorMessage( const char *context, const char *sourceText,
const char *comment,
- const QString& translation = QString::null,
+ const TQString& translation = TQString::null,
bool utf8 = FALSE, Type type = Unfinished );
MetaTranslatorMessage( const MetaTranslatorMessage& m );
@@ -66,9 +66,9 @@ public:
MetaTranslator& operator=( const MetaTranslator& tor );
- bool load( const QString& filename );
- bool save( const QString& filename ) const;
- bool release( const QString& filename, bool verbose = FALSE ) const;
+ bool load( const TQString& filename );
+ bool save( const TQString& filename ) const;
+ bool release( const TQString& filename, bool verbose = FALSE ) const;
bool contains( const char *context, const char *sourceText,
const char *comment ) const;
@@ -78,18 +78,18 @@ public:
void stripEmptyContexts();
void setCodec( const char *name );
- QString toUnicode( const char *str, bool utf8 ) const;
+ TQString toUnicode( const char *str, bool utf8 ) const;
- QValueList<MetaTranslatorMessage> messages() const;
- QValueList<MetaTranslatorMessage> translatedMessages() const;
+ TQValueList<MetaTranslatorMessage> messages() const;
+ TQValueList<MetaTranslatorMessage> translatedMessages() const;
private:
- typedef QMap<MetaTranslatorMessage, int> TMM;
- typedef QMap<int, MetaTranslatorMessage> TMMInv;
+ typedef TQMap<MetaTranslatorMessage, int> TMM;
+ typedef TQMap<int, MetaTranslatorMessage> TMMInv;
TMM mm;
- QCString codecName;
- QTextCodec *codec;
+ TQCString codecName;
+ TQTextCodec *codec;
};
#endif
diff --git a/pylupdate3/numberh.cpp b/pylupdate3/numberh.cpp
index 6704803..7c5f7ee 100644
--- a/pylupdate3/numberh.cpp
+++ b/pylupdate3/numberh.cpp
@@ -3,7 +3,7 @@
**
** numberh.cpp
**
-** This file is part of Qt Linguist.
+** This file is part of TQt Linguist.
**
** See the file LICENSE included in the distribution for the usage
** and distribution terms.
@@ -22,8 +22,8 @@
#include <ctype.h>
#include <metatranslator.h>
-typedef QMap<QCString, MetaTranslatorMessage> TMM;
-typedef QValueList<MetaTranslatorMessage> TML;
+typedef TQMap<TQCString, MetaTranslatorMessage> TMM;
+typedef TQValueList<MetaTranslatorMessage> TML;
static bool isDigitFriendly( int c )
{
@@ -49,9 +49,9 @@ static int numberLength( const char *s )
Returns a version of 'key' where all numbers have been replaced by zeroes. If
there were none, returns "".
*/
-static QCString zeroKey( const char *key )
+static TQCString zeroKey( const char *key )
{
- QCString zeroed( strlen(key) + 1 );
+ TQCString zeroed( strlen(key) + 1 );
char *z = zeroed.data();
int i = 0, j = 0;
int len;
@@ -75,17 +75,17 @@ static QCString zeroKey( const char *key )
return "";
}
-static QString translationAttempt( const QString& oldTranslation,
+static TQString translationAttempt( const TQString& oldTranslation,
const char *oldSource,
const char *newSource )
{
int p = zeroKey( oldSource ).contains( '0' );
int oldSourceLen = qstrlen( oldSource );
- QString attempt;
- QStringList oldNumbers;
- QStringList newNumbers;
- QMemArray<bool> met( p );
- QMemArray<int> matchedYet( p );
+ TQString attempt;
+ TQStringList oldNumbers;
+ TQStringList newNumbers;
+ TQMemArray<bool> met( p );
+ TQMemArray<int> matchedYet( p );
int i, j;
int k = 0, ell, best;
int m, n;
@@ -103,8 +103,8 @@ static QString translationAttempt( const QString& oldTranslation,
m = numberLength( oldSource + i );
n = numberLength( newSource + j );
if ( m > 0 ) {
- oldNumbers.append( QCString(oldSource + i, m + 1) );
- newNumbers.append( QCString(newSource + j, n + 1) );
+ oldNumbers.append( TQCString(oldSource + i, m + 1) );
+ newNumbers.append( TQCString(newSource + j, n + 1) );
i += m;
j += n;
met[k] = FALSE;
@@ -168,7 +168,7 @@ static QString translationAttempt( const QString& oldTranslation,
*/
for ( k = 0; k < p; k++ ) {
if ( !met[k] )
- attempt += QString( " {" ) + newNumbers[k] + QString( "?}" );
+ attempt += TQString( " {" ) + newNumbers[k] + TQString( "?}" );
}
/*
@@ -180,8 +180,8 @@ static QString translationAttempt( const QString& oldTranslation,
for ( ell = 0; ell < p; ell++ ) {
if ( k != ell && oldNumbers[k] == oldNumbers[ell] &&
newNumbers[k] < newNumbers[ell] )
- attempt += QString( " {" ) + newNumbers[k] + QString( " or " ) +
- newNumbers[ell] + QString( "?}" );
+ attempt += TQString( " {" ) + newNumbers[k] + TQString( " or " ) +
+ newNumbers[ell] + TQString( "?}" );
}
}
return attempt;
diff --git a/pylupdate3/proparser.cpp b/pylupdate3/proparser.cpp
index f018b4c..edb86c1 100644
--- a/pylupdate3/proparser.cpp
+++ b/pylupdate3/proparser.cpp
@@ -3,7 +3,7 @@
**
** proparser.cpp
**
-** This file is part of Qt Linguist.
+** This file is part of TQt Linguist.
**
** See the file LICENSE included in the distribution for the usage
** and distribution terms.
@@ -19,53 +19,53 @@
#include "proparser.h"
-QMap<QString, QString> proFileTagMap( const QString& text )
+TQMap<TQString, TQString> proFileTagMap( const TQString& text )
{
- QString t = text;
+ TQString t = text;
/*
Strip comments, merge lines ending with backslash, add
spaces around '=' and '+=', replace '\n' with ';', and
simplify white spaces.
*/
- t.replace( QRegExp(QString("#[^\n]$")), QString(" ") );
- t.replace( QRegExp(QString("\\\\\\s*\n")), QString(" ") );
- t.replace( QRegExp(QString("=")), QString(" = ") );
- t.replace( QRegExp(QString("\\+ =")), QString(" += ") );
- t.replace( QRegExp(QString("\n")), QString(";") );
+ t.replace( TQRegExp(TQString("#[^\n]$")), TQString(" ") );
+ t.replace( TQRegExp(TQString("\\\\\\s*\n")), TQString(" ") );
+ t.replace( TQRegExp(TQString("=")), TQString(" = ") );
+ t.replace( TQRegExp(TQString("\\+ =")), TQString(" += ") );
+ t.replace( TQRegExp(TQString("\n")), TQString(";") );
t = t.simplifyWhiteSpace();
- QMap<QString, QString> tagMap;
+ TQMap<TQString, TQString> tagMap;
- QStringList lines = QStringList::split( QChar(';'), t );
- QStringList::Iterator line;
+ TQStringList lines = TQStringList::split( TQChar(';'), t );
+ TQStringList::Iterator line;
for ( line = lines.begin(); line != lines.end(); ++line ) {
- QStringList toks = QStringList::split( QChar(' '), *line );
+ TQStringList toks = TQStringList::split( TQChar(' '), *line );
if ( toks.count() >= 3 &&
- (toks[1] == QString("=") || toks[1] == QString("+=")) ) {
- QString tag = toks.first();
- int k = tag.findRev( QChar(':') ); // as in 'unix:'
+ (toks[1] == TQString("=") || toks[1] == TQString("+=")) ) {
+ TQString tag = toks.first();
+ int k = tag.findRev( TQChar(':') ); // as in 'unix:'
if ( k != -1 )
tag = tag.mid( k + 1 );
toks.remove( toks.begin() );
- QString action = toks.first();
+ TQString action = toks.first();
toks.remove( toks.begin() );
if ( tagMap.contains(tag) ) {
- if ( action == QString("=") )
- tagMap.replace( tag, toks.join(QChar(' ')) );
+ if ( action == TQString("=") )
+ tagMap.replace( tag, toks.join(TQChar(' ')) );
else
- tagMap[tag] += QChar( ' ' ) + toks.join( QChar(' ') );
+ tagMap[tag] += TQChar( ' ' ) + toks.join( TQChar(' ') );
} else {
- tagMap[tag] = toks.join( QChar(' ') );
+ tagMap[tag] = toks.join( TQChar(' ') );
}
}
}
- QRegExp var( "\\$\\$[a-zA-Z0-9_]+" );
- QMap<QString, QString>::Iterator it;
+ TQRegExp var( "\\$\\$[a-zA-Z0-9_]+" );
+ TQMap<TQString, TQString>::Iterator it;
for ( it = tagMap.begin(); it != tagMap.end(); ++it ) {
int i = 0;
diff --git a/pylupdate3/proparser.h b/pylupdate3/proparser.h
index 2a66c8a..953f0ea 100644
--- a/pylupdate3/proparser.h
+++ b/pylupdate3/proparser.h
@@ -3,7 +3,7 @@
**
** proparser.h
**
-** This file is part of Qt Linguist.
+** This file is part of TQt Linguist.
**
** See the file LICENSE included in the distribution for the usage
** and distribution terms.
@@ -20,6 +20,6 @@
#include <qmap.h>
#include <qstring.h>
-QMap<QString, QString> proFileTagMap( const QString& text );
+TQMap<TQString, TQString> proFileTagMap( const TQString& text );
#endif
diff --git a/pylupdate3/pylupdate-prof.sbf b/pylupdate3/pylupdate-prof.sbf
index 7a4c3c4..2d74dfa 100644
--- a/pylupdate3/pylupdate-prof.sbf
+++ b/pylupdate3/pylupdate-prof.sbf
@@ -1,22 +1,22 @@
-# This is the build file for pylupdate for Qt v3 Professional Edition.
+# This is the build file for pylupdate for TQt v3 Professional Edition.
#
# 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.
target = pylupdate
diff --git a/pylupdate3/pylupdate.pro.in b/pylupdate3/pylupdate.pro.in
index c21725c..51f45a9 100644
--- a/pylupdate3/pylupdate.pro.in
+++ b/pylupdate3/pylupdate.pro.in
@@ -1,7 +1,7 @@
# Copyright (c) 2002
# Detlev Offenbach <detlev@die-offenbachs.de>
#
-# The project file pylupdate for Qt v3.
+# The project file pylupdate for TQt v3.
TEMPLATE = app
diff --git a/pylupdate3/pylupdate.sbf b/pylupdate3/pylupdate.sbf
index ec501ab..248b7cb 100644
--- a/pylupdate3/pylupdate.sbf
+++ b/pylupdate3/pylupdate.sbf
@@ -1,22 +1,22 @@
-# This is the build file for pylupdate for Qt v3 Professional Edition.
+# This is the build file for pylupdate for TQt v3 Professional Edition.
#
# 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.
target = pylupdate
diff --git a/pylupdate3/sametexth.cpp b/pylupdate3/sametexth.cpp
index 1ee869f..53e1fa7 100644
--- a/pylupdate3/sametexth.cpp
+++ b/pylupdate3/sametexth.cpp
@@ -3,7 +3,7 @@
**
** sametexth.cpp
**
-** This file is part of Qt Linguist.
+** This file is part of TQt Linguist.
**
** See the file LICENSE included in the distribution for the usage
** and distribution terms.
@@ -19,8 +19,8 @@
#include <metatranslator.h>
-typedef QMap<QCString, MetaTranslatorMessage> TMM;
-typedef QValueList<MetaTranslatorMessage> TML;
+typedef TQMap<TQCString, MetaTranslatorMessage> TMM;
+typedef TQValueList<MetaTranslatorMessage> TML;
/*
Augments a MetaTranslator with trivially derived translations.
@@ -45,7 +45,7 @@ void applySameTextHeuristic( MetaTranslator *tor, bool verbose )
if ( (*it).translation().isEmpty() )
untranslated.append( *it );
} else {
- QCString key = (*it).sourceText();
+ TQCString key = (*it).sourceText();
t = translated.find( key );
if ( t != translated.end() ) {
/*
@@ -63,7 +63,7 @@ void applySameTextHeuristic( MetaTranslator *tor, bool verbose )
}
for ( u = untranslated.begin(); u != untranslated.end(); ++u ) {
- QCString key = (*u).sourceText();
+ TQCString key = (*u).sourceText();
t = translated.find( key );
if ( t != translated.end() ) {
MetaTranslatorMessage m( *u );
diff --git a/pyqtconfig.py.in b/pyqtconfig.py.in
index 8a6558d..1717e84 100644
--- a/pyqtconfig.py.in
+++ b/pyqtconfig.py.in
@@ -1,35 +1,35 @@
# 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.
#
# This module is intended to be used by the configuration scripts of extension
-# modules that %Import PyQt modules.
+# modules that %Import PyTQt modules.
import sipconfig
-# These are installation specific values created when PyQt was configured.
+# These are installation specific values created when PyTQt was configured.
# @SIP_CONFIGURATION@
class Configuration(sipconfig.Configuration):
- """The class that represents PyQt configuration values.
+ """The class that represents PyTQt configuration values.
"""
def __init__(self, sub_cfg=None):
"""Initialise an instance of the class.
@@ -47,7 +47,7 @@ class Configuration(sipconfig.Configuration):
sipconfig.Configuration.__init__(self, cfg)
-class QtModuleMakefile(sipconfig.SIPModuleMakefile):
+class TQtModuleMakefile(sipconfig.SIPModuleMakefile):
"""The Makefile class for modules that %Import qt.
"""
def __init__(self, *args, **kw):
@@ -68,7 +68,7 @@ class QtModuleMakefile(sipconfig.SIPModuleMakefile):
sipconfig.SIPModuleMakefile.finalise(self)
-class QtAxContainerModuleMakefile(QtModuleMakefile):
+class TQtAxContainerModuleMakefile(TQtModuleMakefile):
"""The Makefile class for modules that %Import qtaxcontainer.
"""
def finalise(self):
@@ -77,10 +77,10 @@ class QtAxContainerModuleMakefile(QtModuleMakefile):
if self.config.sip_version < 0x040000:
self.extra_libs.append(self.module_as_lib("qtaxcontainer"))
- QtModuleMakefile.finalise(self)
+ TQtModuleMakefile.finalise(self)
-class QtCanvasModuleMakefile(QtModuleMakefile):
+class TQtCanvasModuleMakefile(TQtModuleMakefile):
"""The Makefile class for modules that %Import qtcanvas.
"""
def finalise(self):
@@ -89,10 +89,10 @@ class QtCanvasModuleMakefile(QtModuleMakefile):
if self.config.sip_version < 0x040000:
self.extra_libs.append(self.module_as_lib("qtcanvas"))
- QtModuleMakefile.finalise(self)
+ TQtModuleMakefile.finalise(self)
-class QtExtModuleMakefile(QtModuleMakefile):
+class TQtExtModuleMakefile(TQtModuleMakefile):
"""The Makefile class for modules that %Import qtext.
"""
def finalise(self):
@@ -106,17 +106,17 @@ class QtExtModuleMakefile(QtModuleMakefile):
self.extra_lib_dirs.append(self.config._pyqt_qscintilla_lib_dir)
self.extra_libs.append("qscintilla")
- QtModuleMakefile.finalise(self)
+ TQtModuleMakefile.finalise(self)
-class QtGLModuleMakefile(QtModuleMakefile):
+class TQtGLModuleMakefile(TQtModuleMakefile):
"""The Makefile class for modules that %Import qtgl.
"""
def __init__(self, *args, **kw):
"""Initialise an instance of a module Makefile.
"""
kw["opengl"] = 1
- apply(QtModuleMakefile.__init__, (self, ) + args, kw)
+ apply(TQtModuleMakefile.__init__, (self, ) + args, kw)
def finalise(self):
"""Finalise the macros.
@@ -124,10 +124,10 @@ class QtGLModuleMakefile(QtModuleMakefile):
if self.config.sip_version < 0x040000:
self.extra_libs.append(self.module_as_lib("qtgl"))
- QtModuleMakefile.finalise(self)
+ TQtModuleMakefile.finalise(self)
-class QtNetworkModuleMakefile(QtModuleMakefile):
+class TQtNetworkModuleMakefile(TQtModuleMakefile):
"""The Makefile class for modules that %Import qtnetwork.
"""
def finalise(self):
@@ -136,10 +136,10 @@ class QtNetworkModuleMakefile(QtModuleMakefile):
if self.config.sip_version < 0x040000:
self.extra_libs.append(self.module_as_lib("qtnetwork"))
- QtModuleMakefile.finalise(self)
+ TQtModuleMakefile.finalise(self)
-class QtTableModuleMakefile(QtModuleMakefile):
+class TQtTableModuleMakefile(TQtModuleMakefile):
"""The Makefile class for modules that %Import qttable.
"""
def finalise(self):
@@ -148,10 +148,10 @@ class QtTableModuleMakefile(QtModuleMakefile):
if self.config.sip_version < 0x040000:
self.extra_libs.append(self.module_as_lib("qttable"))
- QtModuleMakefile.finalise(self)
+ TQtModuleMakefile.finalise(self)
-class QtSQLModuleMakefile(QtTableModuleMakefile):
+class TQtSQLModuleMakefile(TQtTableModuleMakefile):
"""The Makefile class for modules that %Import qtsql.
"""
def finalise(self):
@@ -160,10 +160,10 @@ class QtSQLModuleMakefile(QtTableModuleMakefile):
if self.config.sip_version < 0x040000:
self.extra_libs.append(self.module_as_lib("qtsql"))
- QtTableModuleMakefile.finalise(self)
+ TQtTableModuleMakefile.finalise(self)
-class QtUIModuleMakefile(QtModuleMakefile):
+class TQtUIModuleMakefile(TQtModuleMakefile):
"""The Makefile class for modules that %Import qtui.
"""
def finalise(self):
@@ -172,10 +172,10 @@ class QtUIModuleMakefile(QtModuleMakefile):
if self.config.sip_version < 0x040000:
self.extra_libs.append(self.module_as_lib("qtui"))
- QtModuleMakefile.finalise(self)
+ TQtModuleMakefile.finalise(self)
-class QtXMLModuleMakefile(QtModuleMakefile):
+class TQtXMLModuleMakefile(TQtModuleMakefile):
"""The Makefile class for modules that %Import qtxml.
"""
def finalise(self):
@@ -184,4 +184,4 @@ class QtXMLModuleMakefile(QtModuleMakefile):
if self.config.sip_version < 0x040000:
self.extra_libs.append(self.module_as_lib("qtxml"))
- QtModuleMakefile.finalise(self)
+ TQtModuleMakefile.finalise(self)
diff --git a/pyuic2/COPYING b/pyuic2/COPYING
index c7aea18..fc80518 100644
--- a/pyuic2/COPYING
+++ b/pyuic2/COPYING
@@ -109,9 +109,9 @@ above, provided that you also meet all of these conditions:
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
+ the Program is not retquired to print an announcement.)
-These requirements apply to the modified work as a whole. If
+These retquirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
@@ -177,7 +177,7 @@ However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
- 5. You are not required to accept this License, since you have not
+ 5. You are not retquired to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
@@ -263,14 +263,14 @@ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+TO THE TQUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+ 12. IN NO EVENT UNLESS RETQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSETQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
diff --git a/pyuic2/domtool.cpp b/pyuic2/domtool.cpp
index 2b14ee6..605af27 100644
--- a/pyuic2/domtool.cpp
+++ b/pyuic2/domtool.cpp
@@ -2,7 +2,7 @@
** Copyright (C) 2000 Trolltech AS. All rights reserved.
** Copyright (C) 2000, 2001 Phil Thompson <phil@river-bank.demon.co.uk>
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -46,14 +46,14 @@
\sa hasProperty()
*/
-QVariant DomTool::readProperty( const QDomElement& e, const QString& name, const QVariant& defValue )
+TQVariant DomTool::readProperty( const TQDomElement& e, const TQString& name, const TQVariant& defValue )
{
- QDomElement n;
+ TQDomElement n;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "property" ) {
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == "name" ) {
- QString prop = n2.firstChild().toText().data();
+ TQString prop = n2.firstChild().toText().data();
if ( prop == name )
return elementToVariant( n2.nextSibling().toElement(), defValue );
}
@@ -67,14 +67,14 @@ QVariant DomTool::readProperty( const QDomElement& e, const QString& name, const
\sa readProperty()
*/
-bool DomTool::hasProperty( const QDomElement& e, const QString& name )
+bool DomTool::hasProperty( const TQDomElement& e, const TQString& name )
{
- QDomElement n;
+ TQDomElement n;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "property" ) {
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == "name" ) {
- QString prop = n2.firstChild().toText().data();
+ TQString prop = n2.firstChild().toText().data();
if ( prop == name )
return TRUE;
}
@@ -83,20 +83,20 @@ bool DomTool::hasProperty( const QDomElement& e, const QString& name )
return FALSE;
}
-QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defValue )
+TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& defValue )
{
- QString dummy;
+ TQString dummy;
return elementToVariant( e, defValue, dummy );
}
/*!
Interprets element \a e as variant and returns the result of the interpretation.
*/
-QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defValue, QString &comment )
+TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& defValue, TQString &comment )
{
- QVariant v;
+ TQVariant v;
if ( e.tagName() == "rect" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int x = 0, y = 0, w = 0, h = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "x" )
@@ -109,9 +109,9 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
h = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = QVariant( QRect( x, y, w, h ) );
+ v = TQVariant( TQRect( x, y, w, h ) );
} else if ( e.tagName() == "point" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int x = 0, y = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "x" )
@@ -120,9 +120,9 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
y = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = QVariant( QPoint( x, y ) );
+ v = TQVariant( TQPoint( x, y ) );
} else if ( e.tagName() == "size" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int w = 0, h = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "width" )
@@ -131,12 +131,12 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
h = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = QVariant( QSize( w, h ) );
+ v = TQVariant( TQSize( w, h ) );
} else if ( e.tagName() == "color" ) {
- v = QVariant( readColor( e ) );
+ v = TQVariant( readColor( e ) );
} else if ( e.tagName() == "font" ) {
- QDomElement n3 = e.firstChild().toElement();
- QFont f( defValue.toFont() );
+ TQDomElement n3 = e.firstChild().toElement();
+ TQFont f( defValue.toFont() );
while ( !n3.isNull() ) {
if ( n3.tagName() == "family" )
f.setFamily( n3.firstChild().toText().data() );
@@ -152,43 +152,43 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
f.setStrikeOut( n3.firstChild().toText().data().toInt() );
n3 = n3.nextSibling().toElement();
}
- v = QVariant( f );
+ v = TQVariant( f );
} else if ( e.tagName() == "string" ) {
- v = QVariant( e.firstChild().toText().data() );
- QDomElement n = e;
+ v = TQVariant( e.firstChild().toText().data() );
+ TQDomElement n = e;
n = n.nextSibling().toElement();
if ( n.tagName() == "comment" )
comment = n.firstChild().toText().data();
} else if ( e.tagName() == "cstring" ) {
- v = QVariant( QCString( e.firstChild().toText().data() ) );
+ v = TQVariant( TQCString( e.firstChild().toText().data() ) );
} else if ( e.tagName() == "number" ) {
- v = QVariant( e.firstChild().toText().data().toInt() );
+ v = TQVariant( e.firstChild().toText().data().toInt() );
} else if ( e.tagName() == "bool" ) {
- QString t = e.firstChild().toText().data();
- v = QVariant( t == "true" || t == "1", 0 );
+ TQString t = e.firstChild().toText().data();
+ v = TQVariant( t == "true" || t == "1", 0 );
} else if ( e.tagName() == "pixmap" ) {
- v = QVariant( e.firstChild().toText().data() );
+ v = TQVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "iconset" ) {
- v = QVariant( e.firstChild().toText().data() );
+ v = TQVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "image" ) {
- v = QVariant( e.firstChild().toText().data() );
+ v = TQVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "enum" ) {
- v = QVariant( e.firstChild().toText().data() );
+ v = TQVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "set" ) {
- v = QVariant( e.firstChild().toText().data() );
+ v = TQVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "sizepolicy" ) {
- QDomElement n3 = e.firstChild().toElement();
- QSizePolicy sp;
+ TQDomElement n3 = e.firstChild().toElement();
+ TQSizePolicy sp;
while ( !n3.isNull() ) {
if ( n3.tagName() == "hsizetype" )
- sp.setHorData( (QSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
+ sp.setHorData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
else if ( n3.tagName() == "vsizetype" )
- sp.setVerData( (QSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
+ sp.setVerData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
n3 = n3.nextSibling().toElement();
}
- v = QVariant( sp );
+ v = TQVariant( sp );
} else if ( e.tagName() == "cursor" ) {
- v = QVariant( QCursor( e.firstChild().toText().data().toInt() ) );
+ v = TQVariant( TQCursor( e.firstChild().toText().data().toInt() ) );
}
return v;
@@ -198,9 +198,9 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
/*! Returns the color which is returned in the dom element \a e.
*/
-QColor DomTool::readColor( const QDomElement &e )
+TQColor DomTool::readColor( const TQDomElement &e )
{
- QDomElement n = e.firstChild().toElement();
+ TQDomElement n = e.firstChild().toElement();
int r= 0, g = 0, b = 0;
while ( !n.isNull() ) {
if ( n.tagName() == "red" )
@@ -212,7 +212,7 @@ QColor DomTool::readColor( const QDomElement &e )
n = n.nextSibling().toElement();
}
- return QColor( r, g, b );
+ return TQColor( r, g, b );
}
/*!
@@ -222,14 +222,14 @@ QColor DomTool::readColor( const QDomElement &e )
\sa hasAttribute()
*/
-QVariant DomTool::readAttribute( const QDomElement& e, const QString& name, const QVariant& defValue )
+TQVariant DomTool::readAttribute( const TQDomElement& e, const TQString& name, const TQVariant& defValue )
{
- QDomElement n;
+ TQDomElement n;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "attribute" ) {
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == "name" ) {
- QString prop = n2.firstChild().toText().data();
+ TQString prop = n2.firstChild().toText().data();
if ( prop == name )
return elementToVariant( n2.nextSibling().toElement(), defValue );
}
@@ -243,14 +243,14 @@ QVariant DomTool::readAttribute( const QDomElement& e, const QString& name, cons
\sa readAttribute()
*/
-bool DomTool::hasAttribute( const QDomElement& e, const QString& name )
+bool DomTool::hasAttribute( const TQDomElement& e, const TQString& name )
{
- QDomElement n;
+ TQDomElement n;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "attribute" ) {
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == "name" ) {
- QString prop = n2.firstChild().toText().data();
+ TQString prop = n2.firstChild().toText().data();
if ( prop == name )
return TRUE;
}
diff --git a/pyuic2/domtool.h b/pyuic2/domtool.h
index 7230bce..434729b 100644
--- a/pyuic2/domtool.h
+++ b/pyuic2/domtool.h
@@ -2,7 +2,7 @@
** Copyright (C) 2000 Troll Tech AS. All rights reserved.
** Copyright (C) 2000, 2001 Phil Thompson <phil@river-bank.demon.co.uk>
**
-** This file is part of Qt GUI Designer.
+** This file is part of TQt GUI Designer.
**
** This file may be distributed under the terms of the GNU General
** Public License version 2 as published by the Free Software
@@ -24,16 +24,16 @@
#include <qdom.h>
-class DomTool : public Qt
+class DomTool : public TQt
{
public:
- static QVariant readProperty( const QDomElement& e, const QString& name, const QVariant& defValue );
- static bool hasProperty( const QDomElement& e, const QString& name );
- static QVariant elementToVariant( const QDomElement& e, const QVariant& defValue );
- static QVariant elementToVariant( const QDomElement& e, const QVariant& defValue, QString &comment );
- static QVariant readAttribute( const QDomElement& e, const QString& name, const QVariant& defValue );
- static bool hasAttribute( const QDomElement& e, const QString& name );
- static QColor readColor( const QDomElement &e );
+ static TQVariant readProperty( const TQDomElement& e, const TQString& name, const TQVariant& defValue );
+ static bool hasProperty( const TQDomElement& e, const TQString& name );
+ static TQVariant elementToVariant( const TQDomElement& e, const TQVariant& defValue );
+ static TQVariant elementToVariant( const TQDomElement& e, const TQVariant& defValue, TQString &comment );
+ static TQVariant readAttribute( const TQDomElement& e, const TQString& name, const TQVariant& defValue );
+ static bool hasAttribute( const TQDomElement& e, const TQString& name );
+ static TQColor readColor( const TQDomElement &e );
};
diff --git a/pyuic2/globaldefs.h b/pyuic2/globaldefs.h
index 700f7d2..de3bce1 100644
--- a/pyuic2/globaldefs.h
+++ b/pyuic2/globaldefs.h
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -26,8 +26,8 @@
#define BOXLAYOUT_DEFAULT_MARGIN 11
#define BOXLAYOUT_DEFAULT_SPACING 6
-static QColor backColor1( 226, 244, 216 );
-static QColor backColor2( 235, 235, 235 );
-static QColor selectedBack( 192, 192, 192 );
+static TQColor backColor1( 226, 244, 216 );
+static TQColor backColor2( 235, 235, 235 );
+static TQColor selectedBack( 192, 192, 192 );
#endif
diff --git a/pyuic2/pyuic.pro.in b/pyuic2/pyuic.pro.in
index 8df1513..e81b138 100644
--- a/pyuic2/pyuic.pro.in
+++ b/pyuic2/pyuic.pro.in
@@ -3,7 +3,7 @@
# Copyright (c) 2002, 2003
# Riverbank Computing Limited <info@riverbankcomputing.co.uk>
#
-# The project file for pyuic for Qt v2.
+# The project file for pyuic for TQt v2.
TEMPLATE = app
diff --git a/pyuic2/pyuic.sbf b/pyuic2/pyuic.sbf
index 5d480ec..9f1e8ef 100644
--- a/pyuic2/pyuic.sbf
+++ b/pyuic2/pyuic.sbf
@@ -1,22 +1,22 @@
-# This is the build file for pyuic for Qt v2.
+# This is the build file for pyuic for TQt v2.
#
# 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.
target = pyuic
diff --git a/pyuic2/uic.cpp b/pyuic2/uic.cpp
index 19fb079..fc470f3 100644
--- a/pyuic2/uic.cpp
+++ b/pyuic2/uic.cpp
@@ -3,7 +3,7 @@
/**********************************************************************
** Copyright (C) 2000 Troll Tech AS. All rights reserved.
**
-** This file is part of Qt GUI Designer.
+** This file is part of TQt GUI Designer.
**
** This file may be distributed under the terms of the GNU General
** Public License version 2 as published by the Free Software
@@ -32,17 +32,17 @@
#include <qregexp.h>
#include <zlib.h>
-static QString mkBool( bool b )
+static TQString mkBool( bool b )
{
return b? "1" : "0";
}
-static QString mkBool( const QString& s )
+static TQString mkBool( const TQString& s )
{
return mkBool( s == "true" || s == "1" );
}
-static bool toBool( const QString& s )
+static bool toBool( const TQString& s )
{
return s == "true" || s.toInt() != 0;
}
@@ -50,13 +50,13 @@ static bool toBool( const QString& s )
// fixString is only used in conjunction with tr(). We need to write out the
// string in utf8 and make sure it's converted from utf8 when created.
-static QString fixString( const QString &str )
+static TQString fixString( const TQString &str )
{
- QString s( str );
- s.replace( QRegExp( "\\\\" ), "\\\\" );
- s.replace( QRegExp( "\"" ), "\\\"" );
- s.replace( QRegExp( "\n" ), "\\n\"\n\"" );
- s.replace( QRegExp( "\r" ), "\\r" );
+ TQString s( str );
+ s.replace( TQRegExp( "\\\\" ), "\\\\" );
+ s.replace( TQRegExp( "\"" ), "\\\"" );
+ s.replace( TQRegExp( "\n" ), "\\n\"\n\"" );
+ s.replace( TQRegExp( "\r" ), "\\r" );
bool onlyAscii = TRUE;
unsigned int i;
@@ -69,13 +69,13 @@ static QString fixString( const QString &str )
if ( onlyAscii )
s = "\"" + s + "\"";
else
- s = "QString.fromUtf8(\"" + s + "\")";
+ s = "TQString.fromUtf8(\"" + s + "\")";
return s;
}
-static QString mkStdSet( const QString& prop )
+static TQString mkStdSet( const TQString& prop )
{
- return QString( "set" ) + prop[0].upper() + prop.mid(1);
+ return TQString( "set" ) + prop[0].upper() + prop.mid(1);
}
@@ -86,9 +86,9 @@ static QString mkStdSet( const QString& prop )
The class Uic encapsulates the user interface compiler (uic).
*/
-static QString className;
+static TQString className;
-Uic::Uic( QTextStream &outStream, QDomDocument doc, const QString &trm )
+Uic::Uic( TQTextStream &outStream, TQDomDocument doc, const TQString &trm )
: out( outStream ), trmacro( trm )
{
item_used = cg_used = pal_used = 0;
@@ -101,7 +101,7 @@ Uic::Uic( QTextStream &outStream, QDomDocument doc, const QString &trm )
nameOfClass = getClassName( doc.firstChild().toElement() );
- QDomElement firstWidget = doc.firstChild().firstChild().toElement();
+ TQDomElement firstWidget = doc.firstChild().firstChild().toElement();
while ( firstWidget.tagName() != "widget" )
firstWidget = firstWidget.nextSibling().toElement();
@@ -117,13 +117,13 @@ Uic::Uic( QTextStream &outStream, QDomDocument doc, const QString &trm )
/*! Extracts a class name from \a e
*/
-QString Uic::getClassName( const QDomElement& e )
+TQString Uic::getClassName( const TQDomElement& e )
{
- QDomElement n;
- QString cn;
+ TQDomElement n;
+ TQString cn;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "class" ) {
- QString s = n.firstChild().toText().data();
+ TQString s = n.firstChild().toText().data();
int i;
while ( ( i = s.find(' ' )) != -1 )
s[i] = '_';
@@ -138,35 +138,35 @@ QString Uic::getClassName( const QDomElement& e )
/*! Extracts an object name from \a e. It's stored in the 'name'
property.
*/
-QString Uic::getObjectName( const QDomElement& e )
+TQString Uic::getObjectName( const TQDomElement& e )
{
- QDomElement n;
+ TQDomElement n;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "property" ) {
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == "name" && n2.firstChild().toText().data() == "name" ) {
return n2.nextSibling().toElement().firstChild().toText().data();
}
}
}
- return QString::null;
+ return TQString::null;
}
/*! Extracts an layout name from \a e. It's stored in the 'name'
- property of the preceeding sibling (the first child of a QLayoutWidget).
+ property of the preceeding sibling (the first child of a TQLayoutWidget).
*/
-QString Uic::getLayoutName( const QDomElement& e )
+TQString Uic::getLayoutName( const TQDomElement& e )
{
- QDomElement p = e.parentNode().toElement();
- QString tail = QString::null;
+ TQDomElement p = e.parentNode().toElement();
+ TQString tail = TQString::null;
- if (getClassName(p) != "QLayoutWidget")
+ if (getClassName(p) != "TQLayoutWidget")
tail = "Layout";
- QDomElement n;
+ TQDomElement n;
for ( n = p.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "property" ) {
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == "name" && n2.firstChild().toText().data() == "name" ) {
return n2.nextSibling().toElement().firstChild().toText().data() + tail;
}
@@ -175,7 +175,7 @@ QString Uic::getLayoutName( const QDomElement& e )
return e.tagName();
}
-QByteArray unzipXPM( QString data, ulong& length )
+TQByteArray unzipXPM( TQString data, ulong& length )
{
char *ba = new char[ data.length() / 2 ];
for ( int i = 0; i < (int)data.length() / 2; ++i ) {
@@ -195,7 +195,7 @@ QByteArray unzipXPM( QString data, ulong& length )
}
if ( length < data.length() * 5 )
length = data.length() * 5;
- QByteArray baunzip( length );
+ TQByteArray baunzip( length );
::uncompress( (uchar*) baunzip.data(), &length, (uchar*) ba, data.length()/2 );
return baunzip;
}
@@ -206,16 +206,16 @@ QByteArray unzipXPM( QString data, ulong& length )
\sa createFormDecl(), createObjectImpl()
*/
-void Uic::createFormImpl( const QDomElement &e )
+void Uic::createFormImpl( const TQDomElement &e )
{
- QStringList::Iterator it;
- QDomElement n;
- QDomNodeList nl;
+ TQStringList::Iterator it;
+ TQDomElement n;
+ TQDomNodeList nl;
int i;
- QString objClass = getClassName( e );
+ TQString objClass = getClassName( e );
if ( objClass.isEmpty() )
return;
- QString objName = getObjectName( e );
+ TQString objName = getObjectName( e );
// Handle custom widgets.
for (n = e; !n.isNull(); n = n.nextSibling().toElement())
@@ -223,14 +223,14 @@ void Uic::createFormImpl( const QDomElement &e )
if (n.tagName() != "customwidgets")
continue;
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
while (!n2.isNull())
{
if (n2.tagName() == "customwidget")
{
- QDomElement n3 = n2.firstChild().toElement();
- QString cname, header;
+ TQDomElement n3 = n2.firstChild().toElement();
+ TQString cname, header;
while (!n3.isNull())
{
@@ -260,28 +260,28 @@ void Uic::createFormImpl( const QDomElement &e )
}
}
- // find out what images are required
- QStringList requiredImages;
+ // find out what images are retquired
+ TQStringList retquiredImages;
nl = e.elementsByTagName( "pixmap" );
for ( int j = 0; j < (int) nl.length(); j++ ) {
- requiredImages += nl.item(j).firstChild().toText().data();
+ retquiredImages += nl.item(j).firstChild().toText().data();
}
- QStringList images;
- QStringList xpmImages;
+ TQStringList images;
+ TQStringList xpmImages;
if ( pixmapLoaderFunction.isEmpty() ) {
// create images
for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "images" ) {
nl = n.elementsByTagName( "image" );
for ( i = 0; i < (int) nl.length(); i++ ) {
- QDomElement tmp = nl.item(i).firstChild().toElement();
- QString img = registerObject( tmp.firstChild().toText().data() );
- if ( !requiredImages.contains( img ) )
+ TQDomElement tmp = nl.item(i).firstChild().toElement();
+ TQString img = registerObject( tmp.firstChild().toText().data() );
+ if ( !retquiredImages.contains( img ) )
continue;
tmp = tmp.nextSibling().toElement();
- QString format = tmp.attribute("format", "PNG" );
- QString data = tmp.firstChild().toText().data();
+ TQString format = tmp.attribute("format", "PNG" );
+ TQString data = tmp.firstChild().toText().data();
out << endl;
out << endl;
@@ -289,7 +289,7 @@ void Uic::createFormImpl( const QDomElement &e )
if ( format == "XPM.GZ" ) {
xpmImages += img;
ulong length = tmp.attribute("length").toULong();
- QByteArray baunzip = unzipXPM( data, length );
+ TQByteArray baunzip = unzipXPM( data, length );
int a = 0;
out << indent << img << "_data = [" << endl;
while ( baunzip[a] != '\"' )
@@ -316,11 +316,11 @@ void Uic::createFormImpl( const QDomElement &e )
out << indent << "'";
int a ;
for ( a = 0; a < (int) (data.length()/2)-1; a++ ) {
- out << "\\x" << QString(data[2*a]) << QString(data[2*a+1]);
+ out << "\\x" << TQString(data[2*a]) << TQString(data[2*a+1]);
if ( a % 12 == 11 )
out << "' \\" << endl << indent << "'";
}
- out << "\\x" << QString(data[2*a]) << QString(data[2*a+1]) << "'" << endl;
+ out << "\\x" << TQString(data[2*a]) << TQString(data[2*a+1]) << "'" << endl;
popIndent();
}
}
@@ -339,11 +339,11 @@ void Uic::createFormImpl( const QDomElement &e )
out << indent << "class " << nameOfClass << "(" << objClass << "):" << endl;
pushIndent();
- if ( objClass == "QDialog" || objClass == "QWizard" ) {
+ if ( objClass == "TQDialog" || objClass == "TQWizard" ) {
out << indent << "def __init__(self,parent = None,name = None,modal = 0,fl = 0):" << endl;
pushIndent();
out << indent << objClass << ".__init__(self,parent,name,modal,fl)" << endl;
- } else if ( objClass == "QWidget" ) { // standard QWidget
+ } else if ( objClass == "TQWidget" ) { // standard TQWidget
out << indent << "def __init__(self,parent = None,name = None,fl = 0):" << endl;
pushIndent();
out << indent << objClass << ".__init__(self,parent,name,fl)" << endl;
@@ -357,9 +357,9 @@ void Uic::createFormImpl( const QDomElement &e )
// create pixmaps for all images
if ( !images.isEmpty() ) {
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = images.begin(); it != images.end(); ++it ) {
- out << indent << (*it) << " = QPixmap()" << endl;
+ out << indent << (*it) << " = TQPixmap()" << endl;
out << indent << (*it) << ".loadFromData(" << (*it) << "_data,'PNG')" << endl;
}
@@ -368,7 +368,7 @@ void Uic::createFormImpl( const QDomElement &e )
// create pixmaps for all images
if ( !xpmImages.isEmpty() ) {
for ( it = xpmImages.begin(); it != xpmImages.end(); ++it ) {
- out << indent << (*it) << " = QPixmap(" << (*it) << "_data)" << endl;
+ out << indent << (*it) << " = TQPixmap(" << (*it) << "_data)" << endl;
}
out << endl;
@@ -379,11 +379,11 @@ void Uic::createFormImpl( const QDomElement &e )
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "property" ) {
bool stdset = toBool( n.attribute( "stdset" ) );
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == "name" ) {
- QString prop = n2.firstChild().toText().data();
- QString value = setObjectProperty( objClass, QString::null, prop, n2.nextSibling().toElement(), stdset );
+ TQString prop = n2.firstChild().toText().data();
+ TQString value = setObjectProperty( objClass, TQString::null, prop, n2.nextSibling().toElement(), stdset );
if ( value.isEmpty() )
continue;
@@ -396,7 +396,7 @@ void Uic::createFormImpl( const QDomElement &e )
out << indent;
if ( prop == "geometry" && n2.nextSibling().toElement().tagName() == "rect") {
- QDomElement n3 = n2.nextSibling().toElement().firstChild().toElement();
+ TQDomElement n3 = n2.nextSibling().toElement().firstChild().toElement();
int w = 0, h = 0;
while ( !n3.isNull() ) {
@@ -412,7 +412,7 @@ void Uic::createFormImpl( const QDomElement &e )
if ( stdset )
out << "self." << mkStdSet(prop) << "(" << value << ")" << endl;
else
- out << "self.setProperty('" << prop << "',QVariant(" << value << "))" << endl;
+ out << "self.setProperty('" << prop << "',TQVariant(" << value << "))" << endl;
}
if (prop == "name") {
@@ -424,15 +424,15 @@ void Uic::createFormImpl( const QDomElement &e )
}
- // create all children, some forms have special requirements
+ // create all children, some forms have special retquirements
- if ( objClass == "QWizard" ) {
+ if ( objClass == "TQWizard" ) {
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( tags.contains( n.tagName() ) ) {
- QString page = createObjectImpl( n, objClass, "self" );
- QString label = DomTool::readAttribute( n, "title", "" ).toString();
+ TQString page = createObjectImpl( n, objClass, "self" );
+ TQString label = DomTool::readAttribute( n, "title", "" ).toString();
out << indent << "self.addPage(" << page << ","<< trmacro << "(" << fixString( label ) << "))" << endl;
- QVariant def( FALSE, 0 );
+ TQVariant def( FALSE, 0 );
if ( DomTool::hasAttribute( n, "backEnabled" ) )
out << indent << "self.setBackEnabled(" << page << "," << mkBool( DomTool::readAttribute( n, "backEnabled", def).toBool() ) << ")" << endl;
if ( DomTool::hasAttribute( n, "nextEnabled" ) )
@@ -454,11 +454,11 @@ void Uic::createFormImpl( const QDomElement &e )
// Get the list of any user defined slots.
- QStringList userSlots;
+ TQStringList userSlots;
for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "connections" ) {
- for ( QDomElement n2 = n.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) {
+ for ( TQDomElement n2 = n.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) {
if ( n2.tagName() == "slot" ) {
userSlots += n2.firstChild().toText().data();
}
@@ -472,8 +472,8 @@ void Uic::createFormImpl( const QDomElement &e )
out << endl;
nl = n.elementsByTagName( "connection" );
for ( i = 0; i < (int) nl.length(); i++ ) {
- QString sender, receiver, signal, slot;
- for ( QDomElement n2 = nl.item(i).firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) {
+ TQString sender, receiver, signal, slot;
+ for ( TQDomElement n2 = nl.item(i).firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) {
if ( n2.tagName() == "sender" )
sender = n2.firstChild().toText().data();
else if ( n2.tagName() == "receiver" )
@@ -508,11 +508,11 @@ void Uic::createFormImpl( const QDomElement &e )
} else if ( n.tagName() == "tabstops" ) {
// setup tab order
out << endl;
- QString lastName;
- QDomElement n2 = n.firstChild().toElement();
+ TQString lastName;
+ TQDomElement n2 = n.firstChild().toElement();
while ( !n2.isNull() ) {
if ( n2.tagName() == "tabstop" ) {
- QString name = n2.firstChild().toText().data();
+ TQString name = n2.firstChild().toText().data();
name = registeredName( name );
if ( !lastName.isEmpty() )
out << indent << "self.setTabOrder(self." << lastName << ",self." << name << ")" << endl;
@@ -526,7 +526,7 @@ void Uic::createFormImpl( const QDomElement &e )
// buddies
bool firstBuddy = TRUE;
- for ( QValueList<Buddy>::Iterator buddy = buddies.begin(); buddy != buddies.end(); ++buddy ) {
+ for ( TQValueList<Buddy>::Iterator buddy = buddies.begin(); buddy != buddies.end(); ++buddy ) {
if ( isObjectRegistered( (*buddy).buddy ) ) {
if ( firstBuddy ) {
out << endl;
@@ -540,7 +540,7 @@ void Uic::createFormImpl( const QDomElement &e )
// end of constructor
popIndent();
- // handle application font changes if required
+ // handle application font changes if retquired
nl = e.elementsByTagName( "widget" );
bool needEventHandler = FALSE;
for ( i = 0; i < (int) nl.length(); i++ ) {
@@ -555,7 +555,7 @@ void Uic::createFormImpl( const QDomElement &e )
pushIndent();
out << indent << "ret = " << objClass << ".event(self,ev)" << endl;
out << endl;
- out << indent << "if ev.type() == QEvent.ApplicationFontChange:" << endl;
+ out << indent << "if ev.type() == TQEvent.ApplicationFontChange:" << endl;
pushIndent();
for ( i = 0; i < (int) nl.length(); i++ ) {
@@ -583,7 +583,7 @@ void Uic::createFormImpl( const QDomElement &e )
// to remove the types - too complicated for the moment, so we just
// count them and give them names based on their position.
- QString args = (*it).mid(astart + 1,(*it).find(')') - astart - 1).stripWhiteSpace();
+ TQString args = (*it).mid(astart + 1,(*it).find(')') - astart - 1).stripWhiteSpace();
if (!args.isEmpty()) {
int nrargs = args.contains(',') + 1;
@@ -611,11 +611,11 @@ void Uic::createFormImpl( const QDomElement &e )
\sa createObjectDecl()
*/
-QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass, const QString& parent, const QString& layout )
+TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout )
{
- QDomElement n;
- QString objClass, objName, fullObjName;
+ TQDomElement n;
+ TQString objClass, objName, fullObjName;
if ( layouts.contains( e.tagName() ) )
return createLayoutImpl( e, parentClass, parent, layout );
@@ -625,8 +625,8 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
return objName;
objName = getObjectName( e );
- QString definedName = objName;
- bool isTmpObject = objName.isEmpty() || objClass == "QLayoutWidget";
+ TQString definedName = objName;
+ bool isTmpObject = objName.isEmpty() || objClass == "TQLayoutWidget";
if ( isTmpObject ) {
if ( objClass[0] == 'Q' )
objName = objClass.mid(1);
@@ -636,17 +636,17 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
bool isLine = objClass == "Line";
if ( isLine )
- objClass = "QFrame";
+ objClass = "TQFrame";
out << endl;
- if ( objClass == "QLayoutWidget" ) {
+ if ( objClass == "TQLayoutWidget" ) {
if ( layout.isEmpty() ) {
// register the object and unify its name
objName = registerObject( objName );
- out << indent << objName << " = QWidget(" << parent << ",'" << definedName << "')" << endl;
+ out << indent << objName << " = TQWidget(" << parent << ",'" << definedName << "')" << endl;
} else {
// the layout widget is not necessary, hide it by creating its child in the parent
- QString result;
+ TQString result;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if (tags.contains( n.tagName() ) )
result = createObjectImpl( n, parentClass, parent, layout );
@@ -671,11 +671,11 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "property" ) {
bool stdset = toBool( n.attribute( "stdset" ) );
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == "name" ) {
- QString prop = n2.firstChild().toText().data();
- QString value = setObjectProperty( objClass, objName, prop, n2.nextSibling().toElement(), stdset );
+ TQString prop = n2.firstChild().toText().data();
+ TQString value = setObjectProperty( objClass, objName, prop, n2.nextSibling().toElement(), stdset );
if ( value.isEmpty() )
continue;
@@ -688,12 +688,12 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
if ( isLine && prop == "orientation" ) {
prop = "frameStyle";
if ( value.right(10) == "Horizontal" )
- value = "QFrame.HLine | QFrame.Sunken";
+ value = "TQFrame.HLine | TQFrame.Sunken";
else
- value = "QFrame.VLine | QFrame.Sunken";
+ value = "TQFrame.VLine | TQFrame.Sunken";
}
if ( prop == "buttonGroupId" ) {
- if ( parentClass == "QButtonGroup" )
+ if ( parentClass == "TQButtonGroup" )
out << indent << parent << ".insert(" << fullObjName << "," << value << ")" << endl;
continue;
}
@@ -703,44 +703,44 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
if ( stdset )
out << indent << fullObjName << "." << mkStdSet(prop) << "(" << value << ")" << endl;
else
- out << indent << fullObjName << ".setProperty('" << prop << "',QVariant(" << value << "))" << endl;
+ out << indent << fullObjName << ".setProperty('" << prop << "',TQVariant(" << value << "))" << endl;
}
}
} else if ( n.tagName() == "item" ) {
if ( objClass.mid(1) == "ListBox" ) {
- QString s = createListBoxItemImpl( n, fullObjName );
+ TQString s = createListBoxItemImpl( n, fullObjName );
if ( !s.isEmpty() )
out << indent << s << endl;
} else if ( objClass.mid(1) == "ComboBox" ) {
- QString s = createListBoxItemImpl( n, fullObjName );
+ TQString s = createListBoxItemImpl( n, fullObjName );
if ( !s.isEmpty() )
out << indent << s << endl;
} else if ( objClass.mid(1) == "IconView" ) {
- QString s = createIconViewItemImpl( n, fullObjName );
+ TQString s = createIconViewItemImpl( n, fullObjName );
if ( !s.isEmpty() )
out << indent << s << endl;
} else if ( objClass.mid(1) == "ListView" ) {
- QString s = createListViewItemImpl( n, fullObjName, QString::null );
+ TQString s = createListViewItemImpl( n, fullObjName, TQString::null );
if ( !s.isEmpty() )
out << s << endl;
}
} else if ( n.tagName() == "column" ) {
if ( objClass.mid(1) == "ListView" ) {
- QString s = createListViewColumnImpl( n, fullObjName );
+ TQString s = createListViewColumnImpl( n, fullObjName );
if ( !s.isEmpty() )
out << s;
}
}
}
- // create all children, some widgets have special requirements
+ // create all children, some widgets have special retquirements
- if ( objClass == "QTabWidget" ) {
+ if ( objClass == "TQTabWidget" ) {
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( tags.contains( n.tagName() ) ) {
- QString page = createObjectImpl( n, objClass, fullObjName );
- QString label = DomTool::readAttribute( n, "title", "" ).toString();
+ TQString page = createObjectImpl( n, objClass, fullObjName );
+ TQString label = DomTool::readAttribute( n, "title", "" ).toString();
out << indent << fullObjName << ".insertTab(" << page << "," << trmacro << "(" << fixString( label ) << "))" << endl;
}
}
@@ -758,17 +758,17 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
Creates implementation of an listbox item tag.
*/
-QString Uic::createListBoxItemImpl( const QDomElement &e, const QString &parent )
+TQString Uic::createListBoxItemImpl( const TQDomElement &e, const TQString &parent )
{
- QDomElement n = e.firstChild().toElement();
- QString txt;
- QString pix;
+ TQDomElement n = e.firstChild().toElement();
+ TQString txt;
+ TQString pix;
while ( !n.isNull() ) {
if ( n.tagName() == "property" ) {
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == "name" ) {
- QString attrib = n2.firstChild().toText().data();
- QVariant v = DomTool::elementToVariant( n2.nextSibling().toElement(), QVariant() );
+ TQString attrib = n2.firstChild().toText().data();
+ TQVariant v = DomTool::elementToVariant( n2.nextSibling().toElement(), TQVariant() );
if ( attrib == "text" )
txt = v.toString();
else if ( attrib == "pixmap" ) {
@@ -792,17 +792,17 @@ QString Uic::createListBoxItemImpl( const QDomElement &e, const QString &parent
Creates implementation of an iconview item tag.
*/
-QString Uic::createIconViewItemImpl( const QDomElement &e, const QString &parent )
+TQString Uic::createIconViewItemImpl( const TQDomElement &e, const TQString &parent )
{
- QDomElement n = e.firstChild().toElement();
- QString txt;
- QString pix;
+ TQDomElement n = e.firstChild().toElement();
+ TQString txt;
+ TQString pix;
while ( !n.isNull() ) {
if ( n.tagName() == "property" ) {
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == "name" ) {
- QString attrib = n2.firstChild().toText().data();
- QVariant v = DomTool::elementToVariant( n2.nextSibling().toElement(), QVariant() );
+ TQString attrib = n2.firstChild().toText().data();
+ TQVariant v = DomTool::elementToVariant( n2.nextSibling().toElement(), TQVariant() );
if ( attrib == "text" )
txt = v.toString();
else if ( attrib == "pixmap" ) {
@@ -818,8 +818,8 @@ QString Uic::createIconViewItemImpl( const QDomElement &e, const QString &parent
}
if ( pix.isEmpty() )
- return "QIconViewItem(" + parent + "," + trmacro + "(" + fixString( txt ) + "))";
- return "QIconViewItem(" + parent + "," + trmacro + "(" + fixString( txt ) + ")," + pix + ")";
+ return "TQIconViewItem(" + parent + "," + trmacro + "(" + fixString( txt ) + "))";
+ return "TQIconViewItem(" + parent + "," + trmacro + "(" + fixString( txt ) + ")," + pix + ")";
}
@@ -827,15 +827,15 @@ QString Uic::createIconViewItemImpl( const QDomElement &e, const QString &parent
Creates implementation of an listview item tag.
*/
-QString Uic::createListViewItemImpl( const QDomElement &e, const QString &parent,
- const QString &parentItem )
+TQString Uic::createListViewItemImpl( const TQDomElement &e, const TQString &parent,
+ const TQString &parentItem )
{
- QString s;
+ TQString s;
- QDomElement n = e.firstChild().toElement();
+ TQDomElement n = e.firstChild().toElement();
bool hasChildren = e.elementsByTagName( "item" ).count() > 0;
- QString item;
+ TQString item;
if ( hasChildren ) {
item = registerObject( "item" );
@@ -850,22 +850,22 @@ QString Uic::createListViewItemImpl( const QDomElement &e, const QString &parent
}
if ( !parentItem.isEmpty() )
- s += "QListViewItem(" + parentItem + "," + lastItem + ")\n";
+ s += "TQListViewItem(" + parentItem + "," + lastItem + ")\n";
else
- s += "QListViewItem(" + parent + "," + lastItem + ")\n";
+ s += "TQListViewItem(" + parent + "," + lastItem + ")\n";
- QStringList textes;
- QStringList pixmaps;
+ TQStringList textes;
+ TQStringList pixmaps;
while ( !n.isNull() ) {
if ( n.tagName() == "property" ) {
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == "name" ) {
- QString attrib = n2.firstChild().toText().data();
- QVariant v = DomTool::elementToVariant( n2.nextSibling().toElement(), QVariant() );
+ TQString attrib = n2.firstChild().toText().data();
+ TQVariant v = DomTool::elementToVariant( n2.nextSibling().toElement(), TQVariant() );
if ( attrib == "text" )
textes << v.toString();
else if ( attrib == "pixmap" ) {
- QString pix = v.toString();
+ TQString pix = v.toString();
if ( !pix.isEmpty() && !pixmapLoaderFunction.isEmpty() ) {
pix.prepend( pixmapLoaderFunction + "( " );
pix.append( " )" );
@@ -882,9 +882,9 @@ QString Uic::createListViewItemImpl( const QDomElement &e, const QString &parent
for ( int i = 0; i < (int)textes.count(); ++i ) {
if ( !textes[ i ].isEmpty() )
- s += indent + item + ".setText(" + QString::number( i ) + "," + trmacro + "(" + fixString( textes[ i ] ) + "))\n";
+ s += indent + item + ".setText(" + TQString::number( i ) + "," + trmacro + "(" + fixString( textes[ i ] ) + "))\n";
if ( !pixmaps[ i ].isEmpty() )
- s += indent + item + ".setPixmap(" + QString::number( i ) + "," + pixmaps[ i ] + ")\n";
+ s += indent + item + ".setPixmap(" + TQString::number( i ) + "," + pixmaps[ i ] + ")\n";
}
lastItem = item;
@@ -895,18 +895,18 @@ QString Uic::createListViewItemImpl( const QDomElement &e, const QString &parent
Creates implementation of an listview column tag.
*/
-QString Uic::createListViewColumnImpl( const QDomElement &e, const QString &parent )
+TQString Uic::createListViewColumnImpl( const TQDomElement &e, const TQString &parent )
{
- QDomElement n = e.firstChild().toElement();
- QString txt;
- QString pix;
+ TQDomElement n = e.firstChild().toElement();
+ TQString txt;
+ TQString pix;
bool clickable = FALSE, resizeable = FALSE;
while ( !n.isNull() ) {
if ( n.tagName() == "property" ) {
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == "name" ) {
- QString attrib = n2.firstChild().toText().data();
- QVariant v = DomTool::elementToVariant( n2.nextSibling().toElement(), QVariant() );
+ TQString attrib = n2.firstChild().toText().data();
+ TQVariant v = DomTool::elementToVariant( n2.nextSibling().toElement(), TQVariant() );
if ( attrib == "text" )
txt = v.toString();
else if ( attrib == "pixmap" ) {
@@ -924,7 +924,7 @@ QString Uic::createListViewColumnImpl( const QDomElement &e, const QString &pare
n = n.nextSibling().toElement();
}
- QString s;
+ TQString s;
s = indent + parent + ".addColumn(" + trmacro + "(" + fixString( txt ) + "))\n";
if ( !pix.isEmpty() )
s += indent + parent + ".header().setLabel(" + parent + ".header().count() - 1," + pix + "," + trmacro + "(" + fixString( txt ) + "))\n";
@@ -939,17 +939,17 @@ QString Uic::createListViewColumnImpl( const QDomElement &e, const QString &pare
/*!
Creates the implementation of a layout tag. Called from createObjectImpl().
*/
-QString Uic::createLayoutImpl( const QDomElement &e, const QString& parentClass, const QString& parent, const QString& layout )
+TQString Uic::createLayoutImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout )
{
- QDomElement n;
- QString objClass, objName;
+ TQDomElement n;
+ TQString objClass, objName;
objClass = e.tagName();
- QString qlayout = "QVBoxLayout";
+ TQString qlayout = "TQVBoxLayout";
if ( objClass == "hbox" )
- qlayout = "QHBoxLayout";
+ qlayout = "TQHBoxLayout";
else if ( objClass == "grid" )
- qlayout = "QGridLayout";
+ qlayout = "TQGridLayout";
bool isGrid = e.tagName() == "grid" ;
objName = registerObject( getLayoutName( e ) );
@@ -957,13 +957,13 @@ QString Uic::createLayoutImpl( const QDomElement &e, const QString& parentClass,
int margin = DomTool::readProperty( e, "margin", BOXLAYOUT_DEFAULT_MARGIN ).toInt();
int spacing = DomTool::readProperty( e, "spacing", BOXLAYOUT_DEFAULT_SPACING ).toInt();
- if ( (parentClass == "QGroupBox" || parentClass == "QButtonGroup") && layout.isEmpty() ) {
+ if ( (parentClass == "TQGroupBox" || parentClass == "TQButtonGroup") && layout.isEmpty() ) {
// special case for group box
- out << indent << parent << ".setColumnLayout(0,Qt.Vertical)" << endl;
+ out << indent << parent << ".setColumnLayout(0,TQt.Vertical)" << endl;
out << indent << parent << ".layout().setSpacing(0)" << endl;
out << indent << parent << ".layout().setMargin(0)" << endl;
out << indent << objName << " = " << qlayout << "(" << parent << ".layout())" << endl;
- out << indent << objName << ".setAlignment(Qt.AlignTop)" << endl;
+ out << indent << objName << ".setAlignment(TQt.AlignTop)" << endl;
} else {
if ( layout.isEmpty() )
out << indent << objName << " = " << qlayout << "(" << parent << ")" << endl;
@@ -977,10 +977,10 @@ QString Uic::createLayoutImpl( const QDomElement &e, const QString& parentClass,
if ( !isGrid ) {
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "spacer" ) {
- QString child = createSpacerImpl( n, parentClass, parent, objName );
+ TQString child = createSpacerImpl( n, parentClass, parent, objName );
out << indent << objName << ".addItem(" << child << ")" << endl;
} else if ( tags.contains( n.tagName() ) ) {
- QString child = createObjectImpl( n, parentClass, parent, objName );
+ TQString child = createObjectImpl( n, parentClass, parent, objName );
if ( isLayout( child ) )
out << indent << objName << ".addLayout(" << child << ")" << endl;
else
@@ -989,7 +989,7 @@ QString Uic::createLayoutImpl( const QDomElement &e, const QString& parentClass,
}
} else {
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
- QDomElement ae = n;
+ TQDomElement ae = n;
int row = ae.attribute( "row" ).toInt();
int col = ae.attribute( "column" ).toInt();
int rowspan = ae.attribute( "rowspan" ).toInt();
@@ -999,7 +999,7 @@ QString Uic::createLayoutImpl( const QDomElement &e, const QString& parentClass,
if ( colspan < 1 )
colspan = 1;
if ( n.tagName() == "spacer" ) {
- QString child = createSpacerImpl( n, parentClass, parent, objName );
+ TQString child = createSpacerImpl( n, parentClass, parent, objName );
if ( rowspan * colspan != 1 )
out << indent << objName << ".addMultiCell(" << child << ","
<< row << "," << row + rowspan - 1 << "," << col << ","
@@ -1008,9 +1008,9 @@ QString Uic::createLayoutImpl( const QDomElement &e, const QString& parentClass,
out << indent << objName << ".addItem(" << child << ","
<< row << "," << col << ")" << endl;
} else if ( tags.contains( n.tagName() ) ) {
- QString child = createObjectImpl( n, parentClass, parent, objName );
+ TQString child = createObjectImpl( n, parentClass, parent, objName );
out << endl;
- QString o = "Widget";
+ TQString o = "Widget";
if ( isLayout( child ) )
o = "Layout";
if ( rowspan * colspan != 1 )
@@ -1028,31 +1028,31 @@ QString Uic::createLayoutImpl( const QDomElement &e, const QString& parentClass,
-QString Uic::createSpacerImpl( const QDomElement &e, const QString& /*parentClass*/, const QString& /*parent*/, const QString& /*layout*/)
+TQString Uic::createSpacerImpl( const TQDomElement &e, const TQString& /*parentClass*/, const TQString& /*parent*/, const TQString& /*layout*/)
{
- QDomElement n;
- QString objClass, objName;
+ TQDomElement n;
+ TQString objClass, objName;
objClass = e.tagName();
objName = registerObject( "spacer" );
- QSize size = DomTool::readProperty( e, "sizeHint", QSize(0,0) ).toSize();
- QString sizeType = DomTool::readProperty( e, "sizeType", "Expanding" ).toString();
+ TQSize size = DomTool::readProperty( e, "sizeHint", TQSize(0,0) ).toSize();
+ TQString sizeType = DomTool::readProperty( e, "sizeType", "Expanding" ).toString();
bool isVspacer = DomTool::readProperty( e, "orientation", "Horizontal" ) == "Vertical";
if ( sizeType != "Expanding" && sizeType != "MinimumExpanding" &&
- DomTool::hasProperty( e, "geometry" ) ) { // compatibility Qt 2.2
- QRect geom = DomTool::readProperty( e, "geometry", QRect(0,0,0,0) ).toRect();
+ DomTool::hasProperty( e, "geometry" ) ) { // compatibility TQt 2.2
+ TQRect geom = DomTool::readProperty( e, "geometry", TQRect(0,0,0,0) ).toRect();
size = geom.size();
}
if ( isVspacer )
- out << indent << objName << " = QSpacerItem("
+ out << indent << objName << " = TQSpacerItem("
<< size.width() << "," << size.height()
- << ",QSizePolicy.Minimum,QSizePolicy." << sizeType << ")" << endl;
+ << ",TQSizePolicy.Minimum,TQSizePolicy." << sizeType << ")" << endl;
else
- out << indent << objName << " = QSpacerItem("
+ out << indent << objName << " = TQSpacerItem("
<< size.width() << "," << size.height()
- << ",QSizePolicy." << sizeType << ",QSizePolicy.Minimum)" << endl;
+ << ",TQSizePolicy." << sizeType << ",TQSizePolicy.Minimum)" << endl;
return objName;
}
@@ -1067,27 +1067,27 @@ QString Uic::createSpacerImpl( const QDomElement &e, const QString& /*parentClas
application font or palette change handlers in createFormImpl().
*/
-void Uic::createExclusiveProperty( const QDomElement & e, const QString& exclusiveProp )
+void Uic::createExclusiveProperty( const TQDomElement & e, const TQString& exclusiveProp )
{
- QDomElement n;
- QString objClass = getClassName( e );
+ TQDomElement n;
+ TQString objClass = getClassName( e );
if ( objClass.isEmpty() )
return;
- QString objName = getObjectName( e );
+ TQString objName = getObjectName( e );
if ( objClass.isEmpty() )
return;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "property" ) {
bool stdset = toBool( n.attribute( "stdset" ) );
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == "name" ) {
- QString prop = n2.firstChild().toText().data();
+ TQString prop = n2.firstChild().toText().data();
if ( prop != exclusiveProp )
continue;
- QString value = setObjectProperty( objClass, objName, prop, n2.nextSibling().toElement(), stdset );
+ TQString value = setObjectProperty( objClass, objName, prop, n2.nextSibling().toElement(), stdset );
if ( value.isEmpty() )
continue;
- out << indent << objName << ".setProperty('" << prop << "',QVariant(" << value << "))" << endl;
+ out << indent << objName << ".setProperty('" << prop << "',TQVariant(" << value << "))" << endl;
}
}
}
@@ -1105,11 +1105,11 @@ const char* const ColorRole[] = {
/*!
Attention: this function has to be in sync with Resource::setWidgetProperty(). If you change one, change both.
*/
-QString Uic::setObjectProperty( const QString& objClass, const QString& obj, const QString &prop, const QDomElement &e, bool stdset )
+TQString Uic::setObjectProperty( const TQString& objClass, const TQString& obj, const TQString &prop, const TQDomElement &e, bool stdset )
{
- QString v;
+ TQString v;
if ( e.tagName() == "rect" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int x = 0, y = 0, w = 0, h = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "x" )
@@ -1122,11 +1122,11 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
h = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = "QRect(%1,%2,%3,%4)";
+ v = "TQRect(%1,%2,%3,%4)";
v = v.arg(x).arg(y).arg(w).arg(h);
} else if ( e.tagName() == "point" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int x = 0, y = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "x" )
@@ -1135,10 +1135,10 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
y = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = "QPoint(%1,%2)";
+ v = "TQPoint(%1,%2)";
v = v.arg(x).arg(y);
} else if ( e.tagName() == "size" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int w = 0, h = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "width" )
@@ -1147,10 +1147,10 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
h = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = "QSize(%1,%2)";
+ v = "TQSize(%1,%2)";
v = v.arg(w).arg(h);
} else if ( e.tagName() == "color" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int r= 0, g = 0, b = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "red" )
@@ -1161,16 +1161,16 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
b = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = "QColor(%1,%2,%3)";
+ v = "TQColor(%1,%2,%3)";
v = v.arg(r).arg(g).arg(b);
} else if ( e.tagName() == "font" ) {
- QDomElement n3 = e.firstChild().toElement();
- QString fontname = "f";
+ TQDomElement n3 = e.firstChild().toElement();
+ TQString fontname = "f";
if ( !obj.isEmpty() ) {
fontname = obj + "_font";
- out << indent << fontname << " = QFont(self." << obj << ".font())" << endl;
+ out << indent << fontname << " = TQFont(self." << obj << ".font())" << endl;
} else {
- out << indent << fontname << " = QFont(self.font())" << endl;
+ out << indent << fontname << " = TQFont(self.font())" << endl;
}
while ( !n3.isNull() ) {
if ( n3.tagName() == "family" )
@@ -1199,14 +1199,14 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
} else if ( e.tagName() == "string" ) {
if ( prop == "toolTip" ) {
if ( !obj.isEmpty() )
- out << indent << "QToolTip.add(self." << obj << "," + trmacro + "(" << fixString( e.firstChild().toText().data() ) << "))" << endl;
+ out << indent << "TQToolTip.add(self." << obj << "," + trmacro + "(" << fixString( e.firstChild().toText().data() ) << "))" << endl;
else
- out << indent << "QToolTip.add(self," + trmacro + "(" << fixString( e.firstChild().toText().data() ) << "))" << endl;
+ out << indent << "TQToolTip.add(self," + trmacro + "(" << fixString( e.firstChild().toText().data() ) << "))" << endl;
} else if ( prop == "whatsThis" ) {
if ( !obj.isEmpty() )
- out << indent << "QWhatsThis.add(self." << obj << "," << trmacro << "(" << fixString( e.firstChild().toText().data() ) << "))" << endl;
+ out << indent << "TQWhatsThis.add(self." << obj << "," << trmacro << "(" << fixString( e.firstChild().toText().data() ) << "))" << endl;
else
- out << indent << "QWhatsThis.add(self," << trmacro << "(" << fixString( e.firstChild().toText().data() ) << "))" << endl;
+ out << indent << "TQWhatsThis.add(self," << trmacro << "(" << fixString( e.firstChild().toText().data() ) << "))" << endl;
} else {
v = trmacro + "(%1)";
v = v.arg( fixString( e.firstChild().toText().data() ) );
@@ -1230,51 +1230,51 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
v.append( " )" );
}
} else if ( e.tagName() == "iconset" ) {
- v = "QIconSet(%1)";
+ v = "TQIconSet(%1)";
v = v.arg( e.firstChild().toText().data() );
} else if ( e.tagName() == "image" ) {
v = e.firstChild().toText().data() + ".convertToImage()";
} else if ( e.tagName() == "enum" ) {
v = "%1.%2";
- QString oc = objClass;
- QString ev = e.firstChild().toText().data();
- if ( oc == "QListView" && ev == "Manual" ) // #### workaround, rename QListView::Manual of WithMode enum in 3.0
- oc = "QScrollView";
+ TQString oc = objClass;
+ TQString ev = e.firstChild().toText().data();
+ if ( oc == "TQListView" && ev == "Manual" ) // #### workaround, rename TQListView::Manual of WithMode enum in 3.0
+ oc = "TQScrollView";
v = v.arg( oc ).arg( ev );
} else if ( e.tagName() == "set" ) {
- QString keys( e.firstChild().toText().data() );
- QStringList lst = QStringList::split( '|', keys );
+ TQString keys( e.firstChild().toText().data() );
+ TQStringList lst = TQStringList::split( '|', keys );
v = "";
- for ( QStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) {
+ for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) {
v += objClass + "." + *it;
if ( it != lst.fromLast() )
v += " | ";
}
} else if ( e.tagName() == "sizepolicy" ) {
- QDomElement n3 = e.firstChild().toElement();
- QSizePolicy sp;
+ TQDomElement n3 = e.firstChild().toElement();
+ TQSizePolicy sp;
while ( !n3.isNull() ) {
if ( n3.tagName() == "hsizetype" )
- sp.setHorData( (QSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
+ sp.setHorData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
else if ( n3.tagName() == "vsizetype" )
- sp.setVerData( (QSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
+ sp.setVerData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
n3 = n3.nextSibling().toElement();
}
- QString tmp;
+ TQString tmp;
if ( !obj.isEmpty() )
tmp = "self." + obj;
else
tmp = "self";
- v = "QSizePolicy(%1,%2," + tmp + ".sizePolicy().hasHeightForWidth())";
+ v = "TQSizePolicy(%1,%2," + tmp + ".sizePolicy().hasHeightForWidth())";
v = v.arg( (int)sp.horData() ).arg( (int)sp.verData() );
} else if ( e.tagName() == "palette" ) {
- QPalette pal;
+ TQPalette pal;
bool no_pixmaps = e.elementsByTagName( "pixmap" ).count() == 0;
- QDomElement n;
+ TQDomElement n;
if ( no_pixmaps ) {
n = e.firstChild().toElement();
while ( !n.isNull() ) {
- QColorGroup cg;
+ TQColorGroup cg;
if ( n.tagName() == "active" ) {
cg = loadColorGroup( n );
pal.setActive( cg );
@@ -1288,19 +1288,19 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
n = n.nextSibling().toElement();
}
}
- if ( no_pixmaps && pal == QPalette( pal.active().button(), pal.active().background() ) ) {
- v = "QPalette(QColor(%1,%2,%3),QColor(%1,%2,%3))";
+ if ( no_pixmaps && pal == TQPalette( pal.active().button(), pal.active().background() ) ) {
+ v = "TQPalette(TQColor(%1,%2,%3),TQColor(%1,%2,%3))";
v = v.arg( pal.active().button().red() ).arg( pal.active().button().green() ).arg( pal.active().button().blue() );
v = v.arg( pal.active().background().red() ).arg( pal.active().background().green() ).arg( pal.active().background().blue() );
} else {
- QString palette = "pal";
+ TQString palette = "pal";
if ( !pal_used ) {
- out << indent << palette << " = QPalette()" << endl;
+ out << indent << palette << " = TQPalette()" << endl;
pal_used = TRUE;
}
- QString cg = "cg";
+ TQString cg = "cg";
if ( !cg_used ) {
- out << indent << cg << " = QColorGroup()" << endl;
+ out << indent << cg << " = TQColorGroup()" << endl;
cg_used = TRUE;
}
n = e.firstChild().toElement();
@@ -1323,7 +1323,7 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
v = palette;
}
} else if ( e.tagName() == "cursor" ) {
- v = "QCursor(%1)";
+ v = "TQCursor(%1)";
v = v.arg( e.firstChild().toText().data() );
}
return v;
@@ -1334,33 +1334,33 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
/*!
Creates a colorgroup with name \a name from the color group \a cg
*/
-void Uic::createColorGroupImpl( const QString& name, const QDomElement& e )
+void Uic::createColorGroupImpl( const TQString& name, const TQDomElement& e )
{
- QColorGroup cg;
+ TQColorGroup cg;
int r = -1;
- QDomElement n = e.firstChild().toElement();
- QString color;
+ TQDomElement n = e.firstChild().toElement();
+ TQString color;
while ( !n.isNull() ) {
if ( n.tagName() == "color" ) {
r++;
- QColor col = DomTool::readColor( n );
- color = "QColor(%1,%2,%3)";
+ TQColor col = DomTool::readColor( n );
+ color = "TQColor(%1,%2,%3)";
color = color.arg( col.red() ).arg( col.green() ).arg( col.blue() );
if ( col == white )
- color = "Qt.white";
+ color = "TQt.white";
else if ( col == black )
- color = "Qt.black";
+ color = "TQt.black";
if ( n.nextSibling().toElement().tagName() != "pixmap" ) {
- out << indent << name << ".setColor(QColorGroup." << ColorRole[r] << "," << color << ")" << endl;
+ out << indent << name << ".setColor(TQColorGroup." << ColorRole[r] << "," << color << ")" << endl;
}
} else if ( n.tagName() == "pixmap" ) {
- QString pixmap = n.firstChild().toText().data();
+ TQString pixmap = n.firstChild().toText().data();
if ( !pixmapLoaderFunction.isEmpty() ) {
pixmap.prepend( pixmapLoaderFunction + "(" );
pixmap.append( ")" );
}
- out << indent << name << ".setBrush(QColorGroup."
- << ColorRole[r] << ",QBrush(" << color << "," << pixmap << "))" << endl;
+ out << indent << name << ".setBrush(TQColorGroup."
+ << ColorRole[r] << ",TQBrush(" << color << "," << pixmap << "))" << endl;
}
n = n.nextSibling().toElement();
}
@@ -1370,16 +1370,16 @@ void Uic::createColorGroupImpl( const QString& name, const QDomElement& e )
Auxiliary function to load a color group. The colorgroup must not
contain pixmaps.
*/
-QColorGroup Uic::loadColorGroup( const QDomElement &e )
+TQColorGroup Uic::loadColorGroup( const TQDomElement &e )
{
- QColorGroup cg;
+ TQColorGroup cg;
int r = -1;
- QDomElement n = e.firstChild().toElement();
- QColor col;
+ TQDomElement n = e.firstChild().toElement();
+ TQColor col;
while ( !n.isNull() ) {
if ( n.tagName() == "color" ) {
r++;
- cg.setColor( (QColorGroup::ColorRole)r, (col = DomTool::readColor( n ) ) );
+ cg.setColor( (TQColorGroup::ColorRole)r, (col = DomTool::readColor( n ) ) );
}
n = n.nextSibling().toElement();
}
@@ -1396,7 +1396,7 @@ QColorGroup Uic::loadColorGroup( const QDomElement &e )
\sa registeredName(), isObjectRegistered()
*/
-QString Uic::registerObject( const QString& name )
+TQString Uic::registerObject( const TQString& name )
{
if ( objectNames.isEmpty() ) {
// some temporary variables we need
@@ -1406,7 +1406,7 @@ QString Uic::registerObject( const QString& name )
objectNames += "pal";
}
- QString result = name;
+ TQString result = name;
int i;
while ( ( i = result.find(' ' )) != -1 ) {
result[i] = '_';
@@ -1414,10 +1414,10 @@ QString Uic::registerObject( const QString& name )
if ( objectNames.contains( result ) ) {
int i = 2;
- while ( objectNames.contains( result + "_" + QString::number(i) ) )
+ while ( objectNames.contains( result + "_" + TQString::number(i) ) )
i++;
result += "_";
- result += QString::number(i);
+ result += TQString::number(i);
}
objectNames += result;
objectMapper.insert( name, result );
@@ -1430,7 +1430,7 @@ QString Uic::registerObject( const QString& name )
\sa registerObject(), isObjectRegistered()
*/
-QString Uic::registeredName( const QString& name )
+TQString Uic::registeredName( const TQString& name )
{
if ( !objectMapper.contains( name ) )
return name;
@@ -1440,24 +1440,24 @@ QString Uic::registeredName( const QString& name )
/*!
Returns whether the object \a name was registered yet or not.
*/
-bool Uic::isObjectRegistered( const QString& name )
+bool Uic::isObjectRegistered( const TQString& name )
{
return objectMapper.contains( name );
}
/*!
- Unifies the entries in stringlist \a list. Should really be a QStringList feature.
+ Unifies the entries in stringlist \a list. Should really be a TQStringList feature.
*/
-QStringList Uic::unique( const QStringList& list )
+TQStringList Uic::unique( const TQStringList& list )
{
- QStringList result;
+ TQStringList result;
if (list.isEmpty() )
return result;
- QStringList l = list;
+ TQStringList l = list;
l.sort();
result += l.first();
- for ( QStringList::Iterator it = l.begin(); it != l.end(); ++it ) {
+ for ( TQStringList::Iterator it = l.begin(); it != l.end(); ++it ) {
if ( *it != result.last() )
result += *it;
}
@@ -1469,7 +1469,7 @@ QStringList Uic::unique( const QStringList& list )
/*!
Creates an instance of class \a objClass, with parent \a parent and name \a objName
*/
-QString Uic::createObjectInstance( const QString& objClass, const QString& parent, const QString& objName )
+TQString Uic::createObjectInstance( const TQString& objClass, const TQString& parent, const TQString& objName )
{
if ( objClass.mid(1) == "ComboBox" ) {
@@ -1478,7 +1478,7 @@ QString Uic::createObjectInstance( const QString& objClass, const QString& paren
return objClass + "(" + parent + ",'" + objName + "')";
}
-bool Uic::isLayout( const QString& name ) const
+bool Uic::isLayout( const TQString& name ) const
{
return layoutObjects.contains( name );
}
@@ -1487,22 +1487,22 @@ bool Uic::isLayout( const QString& name ) const
#if defined(BLACKADDER)
#include "ba.h"
-int BA::compilePython(const QString &fileName,const QString &outputFile,
- const QString &trmacro,bool execCode)
+int BA::compilePython(const TQString &fileName,const TQString &outputFile,
+ const TQString &trmacro,bool execCode)
{
#else
int main( int argc, char * argv[] )
{
const char *error = 0;
- QString fileName;
- QString outputFile;
- QString trmacro;
+ TQString fileName;
+ TQString outputFile;
+ TQString trmacro;
bool execCode = FALSE;
for ( int n = 1; n < argc && error == 0; n++ ) {
- QCString arg = argv[n];
+ TQCString arg = argv[n];
if ( arg[0] == '-' ) { // option
- QCString opt = &arg[1];
+ TQCString opt = &arg[1];
if ( opt[0] == 'o' ) { // output redirection
if ( opt[1] == '\0' ) {
if ( !(n < argc-1) ) {
@@ -1534,12 +1534,12 @@ int main( int argc, char * argv[] )
}
if ( argc < 2 || error || fileName.isEmpty() ) {
- fprintf( stderr, "PyQt user interface compiler\n" );
+ fprintf( stderr, "PyTQt user interface compiler\n" );
if ( error )
fprintf( stderr, "pyuic: %s\n", error );
fprintf( stderr, "Usage: %s [options] <uifile>\n"
- "\nGenerate PyQt implementation:\n"
+ "\nGenerate PyTQt implementation:\n"
" %s [options] <uifile>\n"
"Options:\n"
"\t-o file Write output to file rather than stdout\n"
@@ -1550,11 +1550,11 @@ int main( int argc, char * argv[] )
}
#endif
- QFile file( fileName );
+ TQFile file( fileName );
if ( !file.open( IO_ReadOnly ) )
qFatal( "pyuic: Could not open file '%s' ", (const char *)fileName );
- QFile fileOut;
+ TQFile fileOut;
if (!outputFile.isEmpty()) {
fileOut.setName( outputFile );
if (!fileOut.open( IO_WriteOnly ) )
@@ -1562,16 +1562,16 @@ int main( int argc, char * argv[] )
} else {
fileOut.open( IO_WriteOnly, stdout );
}
- QTextStream out( &fileOut );
- out.setEncoding( QTextStream::UnicodeUTF8 );
+ TQTextStream out( &fileOut );
+ out.setEncoding( TQTextStream::UnicodeUTF8 );
- QDomDocument doc;
+ TQDomDocument doc;
if ( !doc.setContent( &file ) )
qFatal( "pyuic: Failed to parse %s\n", (const char *)fileName );
out << "# Form implementation generated from reading ui file '" << fileName << "'" << endl;
out << "#" << endl;
- out << "# Created: " << QDateTime::currentDateTime().toString() << endl;
+ out << "# Created: " << TQDateTime::currentDateTime().toString() << endl;
out << "# by: The Python User Interface Compiler (pyuic) " << PYQT_VERSION << endl;
out << "#" << endl;
out << "# WARNING! All changes made in this file will be lost!" << endl;
@@ -1583,14 +1583,14 @@ int main( int argc, char * argv[] )
out << "from qt import *" << endl;
- Uic( out, doc, trmacro.isEmpty() ? QString("self.tr") : trmacro );
+ Uic( out, doc, trmacro.isEmpty() ? TQString("self.tr") : trmacro );
if (execCode) {
out << endl;
out << endl;
out << "if __name__ == '__main__':" << endl;
- out << " a = QApplication(sys.argv)" << endl;
- out << " QObject.connect(a,SIGNAL('lastWindowClosed()'),a,SLOT('quit()'))" << endl;
+ out << " a = TQApplication(sys.argv)" << endl;
+ out << " TQObject.connect(a,SIGNAL('lastWindowClosed()'),a,SLOT('quit()'))" << endl;
out << " w = " << className << "()" << endl;
out << " a.setMainWidget(w)" << endl;
out << " w.show()" << endl;
diff --git a/pyuic2/uic.h b/pyuic2/uic.h
index c3fdde3..9ac4851 100644
--- a/pyuic2/uic.h
+++ b/pyuic2/uic.h
@@ -2,7 +2,7 @@
** Copyright (C) 2000 Troll Tech AS. All rights reserved.
** Copyright (C) 2000, 2001 Phil Thompson <phil@river-bank.demon.co.uk>
**
-** This file is part of Qt GUI Designer.
+** This file is part of TQt GUI Designer.
**
** This file may be distributed under the terms of the GNU General
** Public License version 2 as published by the Free Software
@@ -31,36 +31,36 @@
#define PYQT_VERSION "3.18.1"
-class Uic : public Qt
+class Uic : public TQt
{
public:
- Uic( QTextStream& out, QDomDocument doc, const QString &trm );
-
- void createFormImpl( const QDomElement &e );
-
- QString createObjectImpl( const QDomElement &e, const QString& parentClass, const QString& parent, const QString& layout = QString::null );
- QString createLayoutImpl( const QDomElement &e, const QString& parentClass, const QString& parent, const QString& layout = QString::null );
- QString createObjectInstance( const QString& objClass, const QString& parent, const QString& objName );
- QString createSpacerImpl( const QDomElement &e, const QString& parentClass, const QString& parent, const QString& layout = QString::null );
- void createExclusiveProperty( const QDomElement & e, const QString& exclusiveProp );
- QString createListBoxItemImpl( const QDomElement &e, const QString &parent );
- QString createIconViewItemImpl( const QDomElement &e, const QString &parent );
- QString createListViewColumnImpl( const QDomElement &e, const QString &parent );
- QString createListViewItemImpl( const QDomElement &e, const QString &parent,
- const QString &parentItem );
- void createColorGroupImpl( const QString& cg, const QDomElement& e );
- QColorGroup loadColorGroup( const QDomElement &e );
-
- QString getClassName( const QDomElement& e );
- QString getObjectName( const QDomElement& e );
- QString getLayoutName( const QDomElement& e );
-
- QString setObjectProperty( const QString& objClass, const QString& obj, const QString &prop, const QDomElement &e, bool stdset );
-
- QString registerObject( const QString& name );
- QString registeredName( const QString& name );
- bool isObjectRegistered( const QString& name );
- QStringList unique( const QStringList& );
+ Uic( TQTextStream& out, TQDomDocument doc, const TQString &trm );
+
+ void createFormImpl( const TQDomElement &e );
+
+ TQString createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout = TQString::null );
+ TQString createLayoutImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout = TQString::null );
+ TQString createObjectInstance( const TQString& objClass, const TQString& parent, const TQString& objName );
+ TQString createSpacerImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout = TQString::null );
+ void createExclusiveProperty( const TQDomElement & e, const TQString& exclusiveProp );
+ TQString createListBoxItemImpl( const TQDomElement &e, const TQString &parent );
+ TQString createIconViewItemImpl( const TQDomElement &e, const TQString &parent );
+ TQString createListViewColumnImpl( const TQDomElement &e, const TQString &parent );
+ TQString createListViewItemImpl( const TQDomElement &e, const TQString &parent,
+ const TQString &parentItem );
+ void createColorGroupImpl( const TQString& cg, const TQDomElement& e );
+ TQColorGroup loadColorGroup( const TQDomElement &e );
+
+ TQString getClassName( const TQDomElement& e );
+ TQString getObjectName( const TQDomElement& e );
+ TQString getLayoutName( const TQDomElement& e );
+
+ TQString setObjectProperty( const TQString& objClass, const TQString& obj, const TQString &prop, const TQDomElement &e, bool stdset );
+
+ TQString registerObject( const TQString& name );
+ TQString registeredName( const TQString& name );
+ bool isObjectRegistered( const TQString& name );
+ TQStringList unique( const TQStringList& );
private:
void pushIndent()
@@ -90,44 +90,44 @@ private:
nrindents = 0;
}
- QString indent, newindent;
+ TQString indent, newindent;
int nrindents;
- QTextStream& out;
- QStringList objectNames;
- QMap<QString,QString> objectMapper;
- QStringList tags;
- QStringList layouts;
- QString formName;
- QString lastItem;
- QString trmacro;
+ TQTextStream& out;
+ TQStringList objectNames;
+ TQMap<TQString,TQString> objectMapper;
+ TQStringList tags;
+ TQStringList layouts;
+ TQString formName;
+ TQString lastItem;
+ TQString trmacro;
struct Buddy
{
- Buddy( const QString& k, const QString& b )
+ Buddy( const TQString& k, const TQString& b )
: key( k ), buddy( b ) {}
Buddy(){}; // for valuelist
- QString key;
- QString buddy;
+ TQString key;
+ TQString buddy;
bool operator==( const Buddy& other ) const
{ return (key == other.key); }
};
struct CustomInclude
{
- QString header;
- QString location;
+ TQString header;
+ TQString location;
};
- QValueList<Buddy> buddies;
+ TQValueList<Buddy> buddies;
- QStringList layoutObjects;
- bool isLayout( const QString& name ) const;
+ TQStringList layoutObjects;
+ bool isLayout( const TQString& name ) const;
uint item_used : 1;
uint cg_used : 1;
uint pal_used : 1;
- QString pixmapLoaderFunction;
- QString nameOfClass;
+ TQString pixmapLoaderFunction;
+ TQString nameOfClass;
};
#endif
diff --git a/pyuic2/widgetdatabase.cpp b/pyuic2/widgetdatabase.cpp
index 0733fce..8016ac2 100644
--- a/pyuic2/widgetdatabase.cpp
+++ b/pyuic2/widgetdatabase.cpp
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -41,11 +41,11 @@ const int dbsize = 300;
const int dbcustom = 200;
const int dbdictsize = 211;
static WidgetDatabaseRecord* db[ dbsize ];
-static QDict<int> *className2Id = 0;
+static TQDict<int> *className2Id = 0;
static int dbcount = 0;
static int dbcustomcount = 200;
-static QStrList *wGroups;
-static QStrList *invisibleGroups;
+static TQStrList *wGroups;
+static TQStrList *invisibleGroups;
static bool whatsThisLoaded = FALSE;
@@ -95,18 +95,18 @@ void WidgetDatabase::setupDataBase()
if ( dbcount )
return;
- wGroups = new QStrList;
- invisibleGroups = new QStrList;
+ wGroups = new TQStrList;
+ invisibleGroups = new TQStrList;
invisibleGroups->append( "Forms" );
invisibleGroups->append( "Temp" );
- className2Id = new QDict<int>( dbdictsize );
+ className2Id = new TQDict<int>( dbdictsize );
className2Id->setAutoDelete( TRUE );
WidgetDatabaseRecord *r = 0;
r = new WidgetDatabaseRecord;
r->iconSet = "pushbutton.xpm";
- r->name = "QPushButton";
+ r->name = "TQPushButton";
r->group = widgetGroup( "Buttons" );
r->toolTip = "Push Button";
@@ -114,7 +114,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "toolbutton.xpm";
- r->name = "QToolButton";
+ r->name = "TQToolButton";
r->group = widgetGroup( "Buttons" );
r->toolTip = "Tool Button";
@@ -122,7 +122,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "radiobutton.xpm";
- r->name = "QRadioButton";
+ r->name = "TQRadioButton";
r->group = widgetGroup( "Buttons" );
r->toolTip = "Radio Button";
@@ -130,7 +130,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "checkbox.xpm";
- r->name = "QCheckBox";
+ r->name = "TQCheckBox";
r->group = widgetGroup( "Buttons" );
r->toolTip = "Check Box";
@@ -140,7 +140,7 @@ void WidgetDatabase::setupDataBase()
append( r );
r = new WidgetDatabaseRecord;
r->iconSet = "groupbox.xpm";
- r->name = "QGroupBox";
+ r->name = "TQGroupBox";
r->group = widgetGroup( "Containers" );
r->toolTip = "Group Box";
r->isContainer = TRUE;
@@ -149,7 +149,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "buttongroup.xpm";
- r->name = "QButtonGroup";
+ r->name = "TQButtonGroup";
r->group = widgetGroup( "Containers" );
r->toolTip = "Button Group";
r->isContainer = TRUE;
@@ -158,7 +158,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "frame.xpm";
- r->name = "QFrame";
+ r->name = "TQFrame";
r->group = widgetGroup( "Containers" );
r->toolTip = "Frame";
r->isContainer = TRUE;
@@ -167,7 +167,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "tabwidget.xpm";
- r->name = "QTabWidget";
+ r->name = "TQTabWidget";
r->group = widgetGroup( "Containers" );
r->toolTip = "Tabwidget";
r->isContainer = TRUE;
@@ -177,7 +177,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "listbox.xpm";
- r->name = "QListBox";
+ r->name = "TQListBox";
r->group = widgetGroup( "Views" );
r->toolTip = "List Box";
@@ -185,7 +185,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "listview.xpm";
- r->name = "QListView";
+ r->name = "TQListView";
r->group = widgetGroup( "Views" );
r->toolTip = "List View";
@@ -194,7 +194,7 @@ void WidgetDatabase::setupDataBase()
#if defined(QT_MODULE_ICONVIEW) || defined(UIC)
r = new WidgetDatabaseRecord;
r->iconSet = "iconview.xpm";
- r->name = "QIconView";
+ r->name = "TQIconView";
r->group = widgetGroup( "Views" );
r->toolTip = "Icon View";
@@ -204,7 +204,7 @@ void WidgetDatabase::setupDataBase()
#if defined(QT_MODULE_TABLE)
r = new WidgetDatabaseRecord;
r->iconSet = "table.xpm";
- r->name = "QTable";
+ r->name = "TQTable";
r->group = widgetGroup( "Views" );
r->toolTip = "Table";
@@ -214,7 +214,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "lineedit.xpm";
- r->name = "QLineEdit";
+ r->name = "TQLineEdit";
r->group = widgetGroup( "Input" );
r->toolTip = "Line Edit";
@@ -222,7 +222,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "spinbox.xpm";
- r->name = "QSpinBox";
+ r->name = "TQSpinBox";
r->group = widgetGroup( "Input" );
r->toolTip = "Spin Box";
@@ -230,7 +230,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "multilineedit.xpm";
- r->name = "QMultiLineEdit";
+ r->name = "TQMultiLineEdit";
r->group = widgetGroup( "Input" );
r->toolTip = "Multi Line Edit";
@@ -238,7 +238,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "combobox.xpm";
- r->name = "QComboBox";
+ r->name = "TQComboBox";
r->group = widgetGroup( "Input" );
r->toolTip = "Combo Box";
@@ -246,7 +246,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "slider.xpm";
- r->name = "QSlider";
+ r->name = "TQSlider";
r->group = widgetGroup( "Input" );
r->toolTip = "Slider";
@@ -254,7 +254,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "dial.xpm";
- r->name = "QDial";
+ r->name = "TQDial";
r->group = widgetGroup( "Input" );
r->toolTip = "Dial";
@@ -262,7 +262,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "label.xpm";
- r->name = "QLabel";
+ r->name = "TQLabel";
r->group = widgetGroup( "Temp" );
r->toolTip = "Label";
@@ -288,7 +288,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "lcdnumber.xpm";
- r->name = "QLCDNumber";
+ r->name = "TQLCDNumber";
r->group = widgetGroup( "Display" );
r->toolTip = "LCD Number";
@@ -306,7 +306,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "progress.xpm";
- r->name = "QProgressBar";
+ r->name = "TQProgressBar";
r->group = widgetGroup( "Display" );
r->toolTip = "Progress Bar";
@@ -314,7 +314,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "textview.xpm";
- r->name = "QTextView";
+ r->name = "TQTextView";
r->group = widgetGroup( "Display" );
r->toolTip = "Text View";
@@ -322,7 +322,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "textbrowser.xpm";
- r->name = "QTextBrowser";
+ r->name = "TQTextBrowser";
r->group = widgetGroup( "Display" );
r->toolTip = "Text Browser";
@@ -338,35 +338,35 @@ void WidgetDatabase::setupDataBase()
append( r );
r = new WidgetDatabaseRecord;
- r->name = "QWidget";
+ r->name = "TQWidget";
r->isContainer = FALSE;
r->group = widgetGroup( "Forms" );
append( r );
r = new WidgetDatabaseRecord;
- r->name = "QDialog";
+ r->name = "TQDialog";
r->group = widgetGroup( "Forms" );
r->isContainer = FALSE;
append( r );
r = new WidgetDatabaseRecord;
- r->name = "QWizard";
+ r->name = "TQWizard";
r->group = widgetGroup( "Forms" );
r->isContainer = TRUE;
append( r );
r = new WidgetDatabaseRecord;
- r->name = "QDesignerWizard";
+ r->name = "TQDesignerWizard";
r->group = widgetGroup( "Forms" );
r->isContainer = TRUE;
append( r );
r = new WidgetDatabaseRecord;
- r->name = "QLayoutWidget";
+ r->name = "TQLayoutWidget";
r->group = widgetGroup( "Temp" );
r->includeFile = "";
r->isContainer = TRUE;
@@ -375,7 +375,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "tabwidget.xpm";
- r->name = "QDesignerTabWidget";
+ r->name = "TQDesignerTabWidget";
r->group = widgetGroup( "Temp" );
r->isContainer = TRUE;
@@ -383,7 +383,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "tabwidget.xpm";
- r->name = "QDesignerWidget";
+ r->name = "TQDesignerWidget";
r->group = widgetGroup( "Temp" );
r->isContainer = TRUE;
@@ -391,7 +391,7 @@ void WidgetDatabase::setupDataBase()
r = new WidgetDatabaseRecord;
r->iconSet = "tabwidget.xpm";
- r->name = "QDesignerDialog";
+ r->name = "TQDesignerDialog";
r->group = widgetGroup( "Temp" );
r->isContainer = TRUE;
@@ -424,32 +424,32 @@ int WidgetDatabase::startCustom()
id.
*/
-QIconSet WidgetDatabase::iconSet( int id )
+TQIconSet WidgetDatabase::iconSet( int id )
{
setupDataBase();
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return QIconSet();
+ return TQIconSet();
#if defined(DESIGNER)
if ( !r->icon )
- r->icon = new QIconSet( PixmapChooser::loadPixmap( r->iconSet, PixmapChooser::Small ),
+ r->icon = new TQIconSet( PixmapChooser::loadPixmap( r->iconSet, PixmapChooser::Small ),
PixmapChooser::loadPixmap( r->iconSet, PixmapChooser::Large ) );
return *r->icon;
#endif
- return QIconSet();
+ return TQIconSet();
}
/*!
Returns the classname of the widget which is registered as \a id.
*/
-QString WidgetDatabase::className( int id )
+TQString WidgetDatabase::className( int id )
{
setupDataBase();
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return QString::null;
+ return TQString::null;
return r->name;
}
@@ -457,12 +457,12 @@ QString WidgetDatabase::className( int id )
Returns the group to which the widget registered as \a id belongs.
*/
-QString WidgetDatabase::group( int id )
+TQString WidgetDatabase::group( int id )
{
setupDataBase();
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return QString::null;
+ return TQString::null;
return r->group;
}
@@ -470,12 +470,12 @@ QString WidgetDatabase::group( int id )
id.
*/
-QString WidgetDatabase::toolTip( int id )
+TQString WidgetDatabase::toolTip( int id )
{
setupDataBase();
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return QString::null;
+ return TQString::null;
return r->toolTip;
}
@@ -483,12 +483,12 @@ QString WidgetDatabase::toolTip( int id )
as \a id.
*/
-QString WidgetDatabase::whatsThis( int id )
+TQString WidgetDatabase::whatsThis( int id )
{
setupDataBase();
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return QString::null;
+ return TQString::null;
return r->whatsThis;
}
@@ -496,12 +496,12 @@ QString WidgetDatabase::whatsThis( int id )
Returns the include file if the widget which is registered as \a id.
*/
-QString WidgetDatabase::includeFile( int id )
+TQString WidgetDatabase::includeFile( int id )
{
setupDataBase();
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return QString::null;
+ return TQString::null;
if ( r->includeFile.isNull() )
return r->name.lower() + ".h";
return r->includeFile;
@@ -520,24 +520,24 @@ bool WidgetDatabase::isContainer( int id )
return r->isContainer;
}
-QString WidgetDatabase::createWidgetName( int id )
+TQString WidgetDatabase::createWidgetName( int id )
{
setupDataBase();
- QString n = className( id );
- if ( n == "QLayoutWidget" )
+ TQString n = className( id );
+ if ( n == "TQLayoutWidget" )
n = "Layout";
if ( n[ 0 ] == 'Q' )
n = n.mid( 1 );
WidgetDatabaseRecord *r = at( id );
if ( !r )
return n;
- n += QString::number( ++r->nameCounter );
+ n += TQString::number( ++r->nameCounter );
return n;
}
/*! Returns the id for \a name or -1 if \a name is unknown.
*/
-int WidgetDatabase::idFromClassName( const QString &name )
+int WidgetDatabase::idFromClassName( const TQString &name )
{
setupDataBase();
if ( name.isEmpty() )
@@ -546,7 +546,7 @@ int WidgetDatabase::idFromClassName( const QString &name )
if ( i )
return *i;
if ( name == "FormWindow" )
- return idFromClassName( "QLayoutWidget" );
+ return idFromClassName( "TQLayoutWidget" );
return -1;
}
@@ -568,7 +568,7 @@ void WidgetDatabase::insert( int index, WidgetDatabaseRecord *r )
db[ index ] = r;
className2Id->insert( r->name, new int( index ) );
if ( index < dbcustom )
- dbcount = QMAX( dbcount, index );
+ dbcount = TQMAX( dbcount, index );
}
void WidgetDatabase::append( WidgetDatabaseRecord *r )
@@ -576,19 +576,19 @@ void WidgetDatabase::append( WidgetDatabaseRecord *r )
insert( dbcount++, r );
}
-QString WidgetDatabase::widgetGroup( const QString &g )
+TQString WidgetDatabase::widgetGroup( const TQString &g )
{
if ( wGroups->find( g ) == -1 )
wGroups->append( g );
return g;
}
-QString WidgetDatabase::widgetGroup( int i )
+TQString WidgetDatabase::widgetGroup( int i )
{
setupDataBase();
if ( i >= 0 && i < (int)wGroups->count() )
return wGroups->at( i );
- return QString::null;
+ return TQString::null;
}
int WidgetDatabase::numWidgetGroups()
@@ -597,7 +597,7 @@ int WidgetDatabase::numWidgetGroups()
return wGroups->count();
}
-bool WidgetDatabase::isGroupVisible( const QString &g )
+bool WidgetDatabase::isGroupVisible( const TQString &g )
{
setupDataBase();
return invisibleGroups->find( g ) == -1;
@@ -621,16 +621,16 @@ bool WidgetDatabase::isWhatsThisLoaded()
return whatsThisLoaded;
}
-void WidgetDatabase::loadWhatsThis( const QString &docPath )
+void WidgetDatabase::loadWhatsThis( const TQString &docPath )
{
- QString whatsthisFile = docPath + "/whatsthis";
- QFile f( whatsthisFile );
+ TQString whatsthisFile = docPath + "/whatsthis";
+ TQFile f( whatsthisFile );
if ( !f.open( IO_ReadOnly ) )
return;
- QTextStream ts( &f );
+ TQTextStream ts( &f );
while ( !ts.atEnd() ) {
- QString s = ts.readLine();
- QStringList l = QStringList::split( " | ", s );
+ TQString s = ts.readLine();
+ TQStringList l = TQStringList::split( " | ", s );
int id = idFromClassName( l[ 1 ] );
WidgetDatabaseRecord *r = at( id );
if ( r )
diff --git a/pyuic2/widgetdatabase.h b/pyuic2/widgetdatabase.h
index a28cd5f..80f86cd 100644
--- a/pyuic2/widgetdatabase.h
+++ b/pyuic2/widgetdatabase.h
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -29,13 +29,13 @@ struct WidgetDatabaseRecord
{
WidgetDatabaseRecord();
~WidgetDatabaseRecord();
- QString iconSet, name, group, toolTip, whatsThis, includeFile;
+ TQString iconSet, name, group, toolTip, whatsThis, includeFile;
uint isContainer : 1;
- QIconSet *icon;
+ TQIconSet *icon;
int nameCounter;
};
-class WidgetDatabase : public Qt
+class WidgetDatabase : public TQt
{
public:
WidgetDatabase();
@@ -44,31 +44,31 @@ public:
static int count();
static int startCustom();
- static QIconSet iconSet( int id );
- static QString className( int id );
- static QString group( int id );
- static QString toolTip( int id );
- static QString whatsThis( int id );
- static QString includeFile( int id );
+ static TQIconSet iconSet( int id );
+ static TQString className( int id );
+ static TQString group( int id );
+ static TQString toolTip( int id );
+ static TQString whatsThis( int id );
+ static TQString includeFile( int id );
static bool isContainer( int id );
- static int idFromClassName( const QString &name );
- static QString createWidgetName( int id );
+ static int idFromClassName( const TQString &name );
+ static TQString createWidgetName( int id );
static WidgetDatabaseRecord *at( int index );
static void insert( int index, WidgetDatabaseRecord *r );
static void append( WidgetDatabaseRecord *r );
- static QString widgetGroup( const QString &g );
- static QString widgetGroup( int i );
+ static TQString widgetGroup( const TQString &g );
+ static TQString widgetGroup( int i );
static int numWidgetGroups();
- static bool isGroupVisible( const QString &g );
+ static bool isGroupVisible( const TQString &g );
static int addCustomWidget( WidgetDatabaseRecord *r );
static bool isCustomWidget( int id );
static bool isWhatsThisLoaded();
- static void loadWhatsThis( const QString &docPath );
+ static void loadWhatsThis( const TQString &docPath );
};
diff --git a/pyuic3/LICENSE.GPL b/pyuic3/LICENSE.GPL
index c7aea18..fc80518 100644
--- a/pyuic3/LICENSE.GPL
+++ b/pyuic3/LICENSE.GPL
@@ -109,9 +109,9 @@ above, provided that you also meet all of these conditions:
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
+ the Program is not retquired to print an announcement.)
-These requirements apply to the modified work as a whole. If
+These retquirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
@@ -177,7 +177,7 @@ However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
- 5. You are not required to accept this License, since you have not
+ 5. You are not retquired to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
@@ -263,14 +263,14 @@ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+TO THE TQUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+ 12. IN NO EVENT UNLESS RETQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSETQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
diff --git a/pyuic3/domtool.cpp b/pyuic3/domtool.cpp
index b3514a0..37f7f0f 100644
--- a/pyuic3/domtool.cpp
+++ b/pyuic3/domtool.cpp
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -45,9 +45,9 @@
\sa hasProperty()
*/
-QVariant DomTool::readProperty( const QDomElement& e, const QString& name, const QVariant& defValue, QString& comment )
+TQVariant DomTool::readProperty( const TQDomElement& e, const TQString& name, const TQVariant& defValue, TQString& comment )
{
- QDomElement n;
+ TQDomElement n;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "property" ) {
if ( n.attribute( "name" ) != name )
@@ -62,9 +62,9 @@ QVariant DomTool::readProperty( const QDomElement& e, const QString& name, const
/*!
\overload
*/
-QVariant DomTool::readProperty( const QDomElement& e, const QString& name, const QVariant& defValue )
+TQVariant DomTool::readProperty( const TQDomElement& e, const TQString& name, const TQVariant& defValue )
{
- QString comment;
+ TQString comment;
return readProperty( e, name, defValue, comment );
}
@@ -73,9 +73,9 @@ QVariant DomTool::readProperty( const QDomElement& e, const QString& name, const
\sa readProperty()
*/
-bool DomTool::hasProperty( const QDomElement& e, const QString& name )
+bool DomTool::hasProperty( const TQDomElement& e, const TQString& name )
{
- QDomElement n;
+ TQDomElement n;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "property" ) {
if ( n.attribute( "name" ) != name )
@@ -86,13 +86,13 @@ bool DomTool::hasProperty( const QDomElement& e, const QString& name )
return FALSE;
}
-QStringList DomTool::propertiesOfType( const QDomElement& e, const QString& type )
+TQStringList DomTool::propertiesOfType( const TQDomElement& e, const TQString& type )
{
- QStringList result;
- QDomElement n;
+ TQStringList result;
+ TQDomElement n;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "property" ) {
- QDomElement n2 = n.firstChild().toElement();
+ TQDomElement n2 = n.firstChild().toElement();
if ( n2.tagName() == type )
result += n.attribute( "name" );
}
@@ -101,20 +101,20 @@ QStringList DomTool::propertiesOfType( const QDomElement& e, const QString& type
}
-QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defValue )
+TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& defValue )
{
- QString dummy;
+ TQString dummy;
return elementToVariant( e, defValue, dummy );
}
/*!
Interprets element \a e as variant and returns the result of the interpretation.
*/
-QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defValue, QString &comment )
+TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& defValue, TQString &comment )
{
- QVariant v;
+ TQVariant v;
if ( e.tagName() == "rect" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int x = 0, y = 0, w = 0, h = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "x" )
@@ -127,9 +127,9 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
h = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = QVariant( QRect( x, y, w, h ) );
+ v = TQVariant( TQRect( x, y, w, h ) );
} else if ( e.tagName() == "point" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int x = 0, y = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "x" )
@@ -138,9 +138,9 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
y = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = QVariant( QPoint( x, y ) );
+ v = TQVariant( TQPoint( x, y ) );
} else if ( e.tagName() == "size" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int w = 0, h = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "width" )
@@ -149,12 +149,12 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
h = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = QVariant( QSize( w, h ) );
+ v = TQVariant( TQSize( w, h ) );
} else if ( e.tagName() == "color" ) {
- v = QVariant( readColor( e ) );
+ v = TQVariant( readColor( e ) );
} else if ( e.tagName() == "font" ) {
- QDomElement n3 = e.firstChild().toElement();
- QFont f( defValue.toFont() );
+ TQDomElement n3 = e.firstChild().toElement();
+ TQFont f( defValue.toFont() );
while ( !n3.isNull() ) {
if ( n3.tagName() == "family" )
f.setFamily( n3.firstChild().toText().data() );
@@ -170,58 +170,58 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
f.setStrikeOut( n3.firstChild().toText().data().toInt() );
n3 = n3.nextSibling().toElement();
}
- v = QVariant( f );
+ v = TQVariant( f );
} else if ( e.tagName() == "string" ) {
- v = QVariant( e.firstChild().toText().data() );
- QDomElement n = e;
+ v = TQVariant( e.firstChild().toText().data() );
+ TQDomElement n = e;
n = n.nextSibling().toElement();
if ( n.tagName() == "comment" )
comment = n.firstChild().toText().data();
} else if ( e.tagName() == "cstring" ) {
- v = QVariant( QCString( e.firstChild().toText().data() ) );
+ v = TQVariant( TQCString( e.firstChild().toText().data() ) );
} else if ( e.tagName() == "number" ) {
bool ok = TRUE;
- v = QVariant( e.firstChild().toText().data().toInt( &ok ) );
+ v = TQVariant( e.firstChild().toText().data().toInt( &ok ) );
if ( !ok )
- v = QVariant( e.firstChild().toText().data().toDouble() );
+ v = TQVariant( e.firstChild().toText().data().toDouble() );
} else if ( e.tagName() == "bool" ) {
- QString t = e.firstChild().toText().data();
- v = QVariant( t == "true" || t == "1", 0 );
+ TQString t = e.firstChild().toText().data();
+ v = TQVariant( t == "true" || t == "1", 0 );
} else if ( e.tagName() == "pixmap" ) {
- v = QVariant( e.firstChild().toText().data() );
+ v = TQVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "iconset" ) {
- v = QVariant( e.firstChild().toText().data() );
+ v = TQVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "image" ) {
- v = QVariant( e.firstChild().toText().data() );
+ v = TQVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "enum" ) {
- v = QVariant( e.firstChild().toText().data() );
+ v = TQVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "set" ) {
- v = QVariant( e.firstChild().toText().data() );
+ v = TQVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "sizepolicy" ) {
- QDomElement n3 = e.firstChild().toElement();
- QSizePolicy sp;
+ TQDomElement n3 = e.firstChild().toElement();
+ TQSizePolicy sp;
while ( !n3.isNull() ) {
if ( n3.tagName() == "hsizetype" )
- sp.setHorData( (QSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
+ sp.setHorData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
else if ( n3.tagName() == "vsizetype" )
- sp.setVerData( (QSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
+ sp.setVerData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
else if ( n3.tagName() == "horstretch" )
sp.setHorStretch( n3.firstChild().toText().data().toInt() );
else if ( n3.tagName() == "verstretch" )
sp.setVerStretch( n3.firstChild().toText().data().toInt() );
n3 = n3.nextSibling().toElement();
}
- v = QVariant( sp );
+ v = TQVariant( sp );
} else if ( e.tagName() == "cursor" ) {
- v = QVariant( QCursor( e.firstChild().toText().data().toInt() ) );
+ v = TQVariant( TQCursor( e.firstChild().toText().data().toInt() ) );
} else if ( e.tagName() == "stringlist" ) {
- QStringList lst;
- QDomElement n;
+ TQStringList lst;
+ TQDomElement n;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() )
lst << n.firstChild().toText().data();
- v = QVariant( lst );
+ v = TQVariant( lst );
} else if ( e.tagName() == "date" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int y, m, d;
y = m = d = 0;
while ( !n3.isNull() ) {
@@ -233,9 +233,9 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
d = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = QVariant( QDate( y, m, d ) );
+ v = TQVariant( TQDate( y, m, d ) );
} else if ( e.tagName() == "time" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int h, m, s;
h = m = s = 0;
while ( !n3.isNull() ) {
@@ -247,9 +247,9 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
s = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = QVariant( QTime( h, m, s ) );
+ v = TQVariant( TQTime( h, m, s ) );
} else if ( e.tagName() == "datetime" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int h, mi, s, y, mo, d ;
h = mi = s = y = mo = d = 0;
while ( !n3.isNull() ) {
@@ -267,7 +267,7 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
d = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = QVariant( QDateTime( QDate( y, mo, d ), QTime( h, mi, s ) ) );
+ v = TQVariant( TQDateTime( TQDate( y, mo, d ), TQTime( h, mi, s ) ) );
}
return v;
}
@@ -276,9 +276,9 @@ QVariant DomTool::elementToVariant( const QDomElement& e, const QVariant& defVal
/*! Returns the color which is returned in the dom element \a e.
*/
-QColor DomTool::readColor( const QDomElement &e )
+TQColor DomTool::readColor( const TQDomElement &e )
{
- QDomElement n = e.firstChild().toElement();
+ TQDomElement n = e.firstChild().toElement();
int r= 0, g = 0, b = 0;
while ( !n.isNull() ) {
if ( n.tagName() == "red" )
@@ -290,7 +290,7 @@ QColor DomTool::readColor( const QDomElement &e )
n = n.nextSibling().toElement();
}
- return QColor( r, g, b );
+ return TQColor( r, g, b );
}
/*!
@@ -300,9 +300,9 @@ QColor DomTool::readColor( const QDomElement &e )
\sa hasAttribute()
*/
-QVariant DomTool::readAttribute( const QDomElement& e, const QString& name, const QVariant& defValue, QString& comment )
+TQVariant DomTool::readAttribute( const TQDomElement& e, const TQString& name, const TQVariant& defValue, TQString& comment )
{
- QDomElement n;
+ TQDomElement n;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "attribute" ) {
if ( n.attribute( "name" ) != name )
@@ -316,9 +316,9 @@ QVariant DomTool::readAttribute( const QDomElement& e, const QString& name, cons
/*!
\overload
*/
-QVariant DomTool::readAttribute( const QDomElement& e, const QString& name, const QVariant& defValue )
+TQVariant DomTool::readAttribute( const TQDomElement& e, const TQString& name, const TQVariant& defValue )
{
- QString comment;
+ TQString comment;
return readAttribute( e, name, defValue, comment );
}
@@ -327,9 +327,9 @@ QVariant DomTool::readAttribute( const QDomElement& e, const QString& name, cons
\sa readAttribute()
*/
-bool DomTool::hasAttribute( const QDomElement& e, const QString& name )
+bool DomTool::hasAttribute( const TQDomElement& e, const TQString& name )
{
- QDomElement n;
+ TQDomElement n;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "attribute" ) {
if ( n.attribute( "name" ) != name )
@@ -340,19 +340,19 @@ bool DomTool::hasAttribute( const QDomElement& e, const QString& name )
return FALSE;
}
-static bool toBool( const QString& s )
+static bool toBool( const TQString& s )
{
return s == "true" || s.toInt() != 0;
}
/*!
- Convert Qt 2.x format to Qt 3.0 format if necessary
+ Convert TQt 2.x format to TQt 3.0 format if necessary
*/
-void DomTool::fixDocument( QDomDocument& doc )
+void DomTool::fixDocument( TQDomDocument& doc )
{
- QDomElement e;
- QDomNode n;
- QDomNodeList nl;
+ TQDomElement e;
+ TQDomNode n;
+ TQDomNodeList nl;
int i = 0;
e = doc.firstChild().toElement();
@@ -368,8 +368,8 @@ void DomTool::fixDocument( QDomDocument& doc )
// in 3.0, we need to fix a spelling error
if ( e.hasAttribute("version") && e.attribute("version").toDouble() == 3.0 ) {
for ( i = 0; i < (int) nl.length(); i++ ) {
- QDomElement el = nl.item(i).toElement();
- QString s = el.attribute( "name" );
+ TQDomElement el = nl.item(i).toElement();
+ TQString s = el.attribute( "name" );
if ( s == "resizeable" ) {
el.removeAttribute( "name" );
el.setAttribute( "name", "resizable" );
@@ -385,8 +385,8 @@ void DomTool::fixDocument( QDomDocument& doc )
e.setAttribute("stdsetdef", 1 );
for ( i = 0; i < (int) nl.length(); i++ ) {
e = nl.item(i).toElement();
- QString name;
- QDomElement n2 = e.firstChild().toElement();
+ TQString name;
+ TQDomElement n2 = e.firstChild().toElement();
if ( n2.tagName() == "name" ) {
name = n2.firstChild().toText().data();
if ( name == "resizeable" )
@@ -410,8 +410,8 @@ void DomTool::fixDocument( QDomDocument& doc )
nl = doc.elementsByTagName( "attribute" );
for ( i = 0; i < (int) nl.length(); i++ ) {
e = nl.item(i).toElement();
- QString name;
- QDomElement n2 = e.firstChild().toElement();
+ TQString name;
+ TQDomElement n2 = e.firstChild().toElement();
if ( n2.tagName() == "name" ) {
name = n2.firstChild().toText().data();
e.setAttribute( "name", name );
@@ -422,8 +422,8 @@ void DomTool::fixDocument( QDomDocument& doc )
nl = doc.elementsByTagName( "image" );
for ( i = 0; i < (int) nl.length(); i++ ) {
e = nl.item(i).toElement();
- QString name;
- QDomElement n2 = e.firstChild().toElement();
+ TQString name;
+ TQDomElement n2 = e.firstChild().toElement();
if ( n2.tagName() == "name" ) {
name = n2.firstChild().toText().data();
e.setAttribute( "name", name );
@@ -434,8 +434,8 @@ void DomTool::fixDocument( QDomDocument& doc )
nl = doc.elementsByTagName( "widget" );
for ( i = 0; i < (int) nl.length(); i++ ) {
e = nl.item(i).toElement();
- QString name;
- QDomElement n2 = e.firstChild().toElement();
+ TQString name;
+ TQDomElement n2 = e.firstChild().toElement();
if ( n2.tagName() == "class" ) {
name = n2.firstChild().toText().data();
e.setAttribute( "class", name );
diff --git a/pyuic3/domtool.h b/pyuic3/domtool.h
index 25b795d..c9647ed 100644
--- a/pyuic3/domtool.h
+++ b/pyuic3/domtool.h
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -24,23 +24,23 @@
#include <qvariant.h>
#include <qnamespace.h>
-class QDomElement;
-class QDomDocument;
+class TQDomElement;
+class TQDomDocument;
-class DomTool : public Qt
+class DomTool : public TQt
{
public:
- static QVariant readProperty( const QDomElement& e, const QString& name, const QVariant& defValue );
- static QVariant readProperty( const QDomElement& e, const QString& name, const QVariant& defValue, QString& comment );
- static bool hasProperty( const QDomElement& e, const QString& name );
- static QStringList propertiesOfType( const QDomElement& e, const QString& type );
- static QVariant elementToVariant( const QDomElement& e, const QVariant& defValue );
- static QVariant elementToVariant( const QDomElement& e, const QVariant& defValue, QString &comment );
- static QVariant readAttribute( const QDomElement& e, const QString& name, const QVariant& defValue );
- static QVariant readAttribute( const QDomElement& e, const QString& name, const QVariant& defValue, QString& comment );
- static bool hasAttribute( const QDomElement& e, const QString& name );
- static QColor readColor( const QDomElement &e );
- static void fixDocument( QDomDocument& );
+ static TQVariant readProperty( const TQDomElement& e, const TQString& name, const TQVariant& defValue );
+ static TQVariant readProperty( const TQDomElement& e, const TQString& name, const TQVariant& defValue, TQString& comment );
+ static bool hasProperty( const TQDomElement& e, const TQString& name );
+ static TQStringList propertiesOfType( const TQDomElement& e, const TQString& type );
+ static TQVariant elementToVariant( const TQDomElement& e, const TQVariant& defValue );
+ static TQVariant elementToVariant( const TQDomElement& e, const TQVariant& defValue, TQString &comment );
+ static TQVariant readAttribute( const TQDomElement& e, const TQString& name, const TQVariant& defValue );
+ static TQVariant readAttribute( const TQDomElement& e, const TQString& name, const TQVariant& defValue, TQString& comment );
+ static bool hasAttribute( const TQDomElement& e, const TQString& name );
+ static TQColor readColor( const TQDomElement &e );
+ static void fixDocument( TQDomDocument& );
};
diff --git a/pyuic3/embed.cpp b/pyuic3/embed.cpp
index 04f6494..824cca8 100644
--- a/pyuic3/embed.cpp
+++ b/pyuic3/embed.cpp
@@ -3,7 +3,7 @@
** Copyright (c) 2001 Phil Thompson <phil@river-bank.demon.co.uk>
** Copyright (c) 2002 Riverbank Computing Limited <info@riverbankcomputing.co.uk>
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -41,18 +41,18 @@ struct EmbedImage
~EmbedImage() { delete[] colorTable; }
int width, height, depth;
int numColors;
- QRgb* colorTable;
- QString name;
- QString cname;
+ TQRgb* colorTable;
+ TQString name;
+ TQString cname;
bool alpha;
#ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION
ulong compressed;
#endif
};
-static QString convertToCIdentifier( const char *s )
+static TQString convertToCIdentifier( const char *s )
{
- QString r = s;
+ TQString r = s;
int len = r.length();
if ( len > 0 && !isalpha( (char)r[0].latin1() ) )
r[0] = '_';
@@ -64,16 +64,16 @@ static QString convertToCIdentifier( const char *s )
}
-static ulong embedData( QTextStream& out, const uchar* input, int nbytes )
+static ulong embedData( TQTextStream& out, const uchar* input, int nbytes )
{
#ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION
- QByteArray bazip( qCompress( input, nbytes ) );
+ TQByteArray bazip( qCompress( input, nbytes ) );
uint len = bazip.size();
#else
uint len = (uint)nbytes;
#endif
static const char hexdigits[] = "0123456789abcdef";
- QString s;
+ TQString s;
for ( uint i=0; i<len; i++ ) {
if ( (i%14) == 0 ) {
if (i)
@@ -101,10 +101,10 @@ static ulong embedData( QTextStream& out, const uchar* input, int nbytes )
return (ulong)len;
}
-static void embedData( QTextStream& out, const QRgb* input, int n )
+static void embedData( TQTextStream& out, const TQRgb* input, int n )
{
out << hex;
- const QRgb *v = input;
+ const TQRgb *v = input;
for ( int i=0; i<n; i++ ) {
if ( (i%14) == 0 )
out << "\n ";
@@ -116,26 +116,26 @@ static void embedData( QTextStream& out, const QRgb* input, int n )
out << dec; // back to decimal mode
}
-void Uic::embed( QTextStream& out, const char* project, const QStringList& images )
+void Uic::embed( TQTextStream& out, const char* project, const TQStringList& images )
{
- QString cProject = convertToCIdentifier( project );
+ TQString cProject = convertToCIdentifier( project );
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
out << "# Image collection for project '" << project << "'.\n";
out << "#\n";
out << "# Generated from reading image files: \n";
for ( it = images.begin(); it != images.end(); ++it )
out << "# " << *it << "\n";
out << "#\n";
- out << "# Created: " << QDateTime::currentDateTime().toString() << "\n";
- out << "# by: The PyQt User Interface Compiler (pyuic) " << PYQT_VERSION << "\n";
+ out << "# Created: " << TQDateTime::currentDateTime().toString() << "\n";
+ out << "# by: The PyTQt User Interface Compiler (pyuic) " << PYQT_VERSION << "\n";
out << "#\n";
out << "# WARNING! All changes made in this file will be lost!\n";
out << "\n";
out << "\n";
- out << "from qt import QImage, QMimeSourceFactory";
+ out << "from qt import TQImage, TQMimeSourceFactory";
#ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION
out << ", qUncompress";
#endif
@@ -144,11 +144,11 @@ void Uic::embed( QTextStream& out, const char* project, const QStringList& image
out << "\n";
- QPtrList<EmbedImage> list_image;
+ TQPtrList<EmbedImage> list_image;
list_image.setAutoDelete( TRUE );
int image_count = 0;
for ( it = images.begin(); it != images.end(); ++it ) {
- QImage img;
+ TQImage img;
if ( !img.load( *it ) ) {
fprintf( stderr, "pyuic: cannot load image file %s\n", (*it).latin1() );
continue;
@@ -158,17 +158,17 @@ void Uic::embed( QTextStream& out, const char* project, const QStringList& image
e->height = img.height();
e->depth = img.depth();
e->numColors = img.numColors();
- e->colorTable = new QRgb[e->numColors];
+ e->colorTable = new TQRgb[e->numColors];
e->alpha = img.hasAlphaBuffer();
- memcpy(e->colorTable, img.colorTable(), e->numColors*sizeof(QRgb));
- QFileInfo fi( *it );
+ memcpy(e->colorTable, img.colorTable(), e->numColors*sizeof(TQRgb));
+ TQFileInfo fi( *it );
e->name = fi.fileName();
- e->cname = QString("image_%1").arg( image_count++);
+ e->cname = TQString("image_%1").arg( image_count++);
list_image.append( e );
out << "# " << *it << "\n";
- QString s;
+ TQString s;
if ( e->depth == 1 )
- img = img.convertBitOrder(QImage::BigEndian);
+ img = img.convertBitOrder(TQImage::BigEndian);
out << s.sprintf( "%s_data =",
(const char *)e->cname );
#ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION
@@ -230,7 +230,7 @@ void Uic::embed( QTextStream& out, const char* project, const QStringList& image
// Keep the data object alive until we have a deep copy of the image.
out << indent << "data = qUncompress(data).data()\n";
#endif
- out << indent << "img = QImage(data,w,h,depth,colTab,nrCol,QImage.BigEndian).copy()\n";
+ out << indent << "img = TQImage(data,w,h,depth,colTab,nrCol,TQImage.BigEndian).copy()\n";
out << "\n";
out << indent << "if alpha:\n";
++indent;
@@ -241,21 +241,21 @@ void Uic::embed( QTextStream& out, const char* project, const QStringList& image
--indent;
--indent;
out << endl;
- out << indent << "return QImage()\n";
+ out << indent << "return TQImage()\n";
--indent;
out << "\n";
out << "\n";
- out << indent << "class MimeSourceFactory_" << cProject << "(QMimeSourceFactory):\n";
+ out << indent << "class MimeSourceFactory_" << cProject << "(TQMimeSourceFactory):\n";
++indent;
out << indent << "def __init__(self):\n";
++indent;
- out << indent << "QMimeSourceFactory.__init__(self)\n";
+ out << indent << "TQMimeSourceFactory.__init__(self)\n";
out << "\n";
--indent;
out << indent << "def data(self,abs_name):\n";
++indent;
- out << indent << "d = QMimeSourceFactory.data(self,abs_name)\n";
+ out << indent << "d = TQMimeSourceFactory.data(self,abs_name)\n";
out << indent << "if d or abs_name.isNull():\n";
++indent;
out << indent << "return d\n";
@@ -267,7 +267,7 @@ void Uic::embed( QTextStream& out, const char* project, const QStringList& image
out << indent << "self.setImage(abs_name,img)\n";
--indent;
out << "\n";
- out << indent << "return QMimeSourceFactory.data(self,abs_name)\n";
+ out << indent << "return TQMimeSourceFactory.data(self,abs_name)\n";
--indent;
--indent;
out << "\n";
@@ -283,7 +283,7 @@ void Uic::embed( QTextStream& out, const char* project, const QStringList& image
out << indent << "if factory is None:\n";
++indent;
out << indent << "factory = MimeSourceFactory_" << cProject << "()\n";
- out << indent << "QMimeSourceFactory.defaultFactory().addFactory(factory)\n";
+ out << indent << "TQMimeSourceFactory.defaultFactory().addFactory(factory)\n";
--indent;
--indent;
out << "\n";
@@ -295,7 +295,7 @@ void Uic::embed( QTextStream& out, const char* project, const QStringList& image
out << "\n";
out << indent << "if factory is not None:\n";
++indent;
- out << indent << "QMimeSourceFactory.defaultFactory().removeFactory(factory)\n";
+ out << indent << "TQMimeSourceFactory.defaultFactory().removeFactory(factory)\n";
out << indent << "factory = None\n";
--indent;
--indent;
diff --git a/pyuic3/form.cpp b/pyuic3/form.cpp
index aedb4ac..31785ac 100644
--- a/pyuic3/form.cpp
+++ b/pyuic3/form.cpp
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -34,7 +34,7 @@
#include <zlib.h>
#endif
-static QByteArray unzipXPM( QString data, ulong& length )
+static TQByteArray unzipXPM( TQString data, ulong& length )
{
#if QT_VERSION >= 0x030100
const int lengthOffset = 4;
@@ -61,7 +61,7 @@ static QByteArray unzipXPM( QString data, ulong& length )
ba[1] = ( length & 0x00ff0000 ) >> 16;
ba[2] = ( length & 0x0000ff00 ) >> 8;
ba[3] = ( length & 0x000000ff );
- QByteArray baunzip = qUncompress( ba, baSize );
+ TQByteArray baunzip = qUncompress( ba, baSize );
delete[] ba;
return baunzip;
#else
@@ -94,7 +94,7 @@ static QByteArray unzipXPM( QString data, ulong& length )
// crashes in some cases of slightly corrupt UIC files.
if ( length < data.length() * 5 )
length = data.length() * 5;
- QByteArray baunzip( length );
+ TQByteArray baunzip( length );
::uncompress( (uchar*) baunzip.data(), &length, ba, data.length()/2 );
delete[] ba;
return baunzip;
@@ -108,27 +108,27 @@ static QByteArray unzipXPM( QString data, ulong& length )
\sa createFormDecl(), createObjectImpl()
*/
-void Uic::createFormImpl( const QDomElement &e )
+void Uic::createFormImpl( const TQDomElement &e )
{
- QDomElement n;
- QDomNodeList nl;
+ TQDomElement n;
+ TQDomNodeList nl;
int i;
- QString objClass = getClassName( e );
+ TQString objClass = getClassName( e );
if ( objClass.isEmpty() )
return;
- QString objName = getObjectName( e );
+ TQString objName = getObjectName( e );
- // generate local and local includes required
- QStringList globalIncludes;
- QStringList::Iterator it;
- QStringList sqlClasses;
- QStringList axwidgets, databrowsers;
+ // generate local and local includes retquired
+ TQStringList globalIncludes;
+ TQStringList::Iterator it;
+ TQStringList sqlClasses;
+ TQStringList axwidgets, databrowsers;
- QMap<QString, CustomInclude> customWidgetIncludes;
- QMap<QString, QString> functionImpls;
+ TQMap<TQString, CustomInclude> customWidgetIncludes;
+ TQMap<TQString, TQString> functionImpls;
// find additional slots and functions
- QStringList extraSlots;
- QStringList extraSlotTypes;
+ TQStringList extraSlots;
+ TQStringList extraSlotTypes;
nl = e.parentNode().toElement().elementsByTagName( "slot" );
for ( i = 0; i < (int) nl.length(); i++ ) {
n = nl.item(i).toElement();
@@ -137,7 +137,7 @@ void Uic::createFormImpl( const QDomElement &e )
continue;
if ( n.attribute( "language", "C++" ) != "C++" )
continue;
- QString slotName = n.firstChild().toText().data().stripWhiteSpace();
+ TQString slotName = n.firstChild().toText().data().stripWhiteSpace();
if ( slotName.endsWith( ";" ) )
slotName = slotName.left( slotName.length() - 1 );
@@ -147,9 +147,9 @@ void Uic::createFormImpl( const QDomElement &e )
for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "functions" ) { // compatibility
- for ( QDomElement n2 = n.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) {
+ for ( TQDomElement n2 = n.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) {
if ( n2.tagName() == "function" ) {
- QString fname = n2.attribute( "name" );
+ TQString fname = n2.attribute( "name" );
fname = Parser::cleanArgs( fname );
functionImpls.insert( fname, n2.firstChild().toText().data() );
}
@@ -160,11 +160,11 @@ void Uic::createFormImpl( const QDomElement &e )
// additional includes (local or global ) and forward declaractions
nl = e.parentNode().toElement().elementsByTagName( "include" );
for ( i = 0; i < (int) nl.length(); i++ ) {
- QDomElement n2 = nl.item(i).toElement();
+ TQDomElement n2 = nl.item(i).toElement();
- QString s = n2.firstChild().toText().data();
+ TQString s = n2.firstChild().toText().data();
if ( n2.attribute( "location" ) != "local" ) {
- if ( s.right( 5 ) == ".ui.h" && !QFile::exists( s ) )
+ if ( s.right( 5 ) == ".ui.h" && !TQFile::exists( s ) )
continue;
if ( n2.attribute( "impldecl", "in implementation" ) != "in implementation" )
continue;
@@ -173,32 +173,32 @@ void Uic::createFormImpl( const QDomElement &e )
}
// do the local includes afterwards, since global includes have priority on clashes
- QFileInfo fi(fileName);
+ TQFileInfo fi(fileName);
for ( i = 0; i < (int) nl.length(); i++ ) {
- QDomElement n2 = nl.item(i).toElement();
- QString s = n2.firstChild().toText().data();
+ TQDomElement n2 = nl.item(i).toElement();
+ TQString s = n2.firstChild().toText().data();
if ( n2.attribute( "location" ) == "local" &&!globalIncludes.contains( s ) ) {
if ( s.right( 5 ) != ".ui.h" )
continue;
- if ( !QFile::exists( s ) )
+ if ( !TQFile::exists( s ) )
{
s = fi.dirPath() + "/" + s;
- if ( !QFile::exists( s ) )
+ if ( !TQFile::exists( s ) )
continue;
}
- if ( QFile::exists( s ) )
+ if ( TQFile::exists( s ) )
{
- QFile f(s);
+ TQFile f(s);
f.open(IO_ReadOnly);
- QTextStream headerStream(&f);
- QString line;
- QString functionText;
- QString functionName;
- QRegExp rx("void .*::(.*\\(.*\\))");
+ TQTextStream headerStream(&f);
+ TQString line;
+ TQString functionText;
+ TQString functionName;
+ TQRegExp rx("void .*::(.*\\(.*\\))");
int pos, inFunction = 0;
while (line = headerStream.readLine())
@@ -226,8 +226,8 @@ void Uic::createFormImpl( const QDomElement &e )
// additional custom widget headers
nl = e.parentNode().toElement().elementsByTagName( "header" );
for ( i = 0; i < (int) nl.length(); i++ ) {
- QDomElement n2 = nl.item(i).toElement();
- QString s = n2.firstChild().toText().data();
+ TQDomElement n2 = nl.item(i).toElement();
+ TQString s = n2.firstChild().toText().data();
if ( n2.attribute( "location" ) != "local" )
globalIncludes += s;
}
@@ -236,7 +236,7 @@ void Uic::createFormImpl( const QDomElement &e )
for ( it = tags.begin(); it != tags.end(); ++it ) {
nl = e.parentNode().toElement().elementsByTagName( *it );
for ( i = 1; i < (int) nl.length(); i++ ) { // start at 1, 0 is the toplevel widget
- QString name = getClassName( nl.item(i).toElement() );
+ TQString name = getClassName( nl.item(i).toElement() );
if ( name == "Spacer" ) {
globalIncludes += "qlayout.h";
globalIncludes += "qapplication.h";
@@ -244,13 +244,13 @@ void Uic::createFormImpl( const QDomElement &e )
}
if ( name.mid( 1 ) == "ListView" )
globalIncludes += "qheader.h";
- else if ( name == "QAxWidget" )
+ else if ( name == "TQAxWidget" )
axwidgets += getObjectName(nl.item(i).toElement());
- else if ( name == "QDataBrowser" )
+ else if ( name == "TQDataBrowser" )
databrowsers += getObjectName(nl.item(i).toElement());
if ( name != objClass ) {
int wid = WidgetDatabase::idFromClassName( name );
- QMap<QString, CustomInclude>::Iterator it = customWidgetIncludes.find( name );
+ TQMap<TQString, CustomInclude>::Iterator it = customWidgetIncludes.find( name );
if ( it == customWidgetIncludes.end() )
globalIncludes += WidgetDatabase::includeFile( wid );
}
@@ -258,10 +258,10 @@ void Uic::createFormImpl( const QDomElement &e )
}
if (globalIncludes.findIndex("qtable.h") >= 0)
- out << indent << "from qttable import QTable" << endl;
+ out << indent << "from qttable import TQTable" << endl;
if (!axwidgets.empty())
- out << indent << "from qtaxcontainer import QAxWidget" << endl;
+ out << indent << "from qtaxcontainer import TQAxWidget" << endl;
if (globalIncludes.findIndex("qextscintilla.h") >= 0)
out << indent << "from qtext import QextScintilla" << endl;
@@ -269,9 +269,9 @@ void Uic::createFormImpl( const QDomElement &e )
registerDatabases( e );
dbConnections = unique( dbConnections );
if ( dbConnections.count() )
- sqlClasses += "QSqlDatabase";
+ sqlClasses += "TQSqlDatabase";
if ( dbCursors.count() )
- sqlClasses += "QSqlCursor";
+ sqlClasses += "TQSqlCursor";
bool dbForm = FALSE;
if ( dbForms[ "(default)" ].count() )
dbForm = TRUE;
@@ -285,21 +285,21 @@ void Uic::createFormImpl( const QDomElement &e )
}
}
if ( dbForm || subDbForms ) {
- sqlClasses += "QSqlForm";
- sqlClasses += "QSqlRecord";
+ sqlClasses += "TQSqlForm";
+ sqlClasses += "TQSqlRecord";
}
if (globalIncludes.findIndex("qdatatable.h") >= 0)
- sqlClasses += "QDataTable";
+ sqlClasses += "TQDataTable";
if (globalIncludes.findIndex("qtableview.h") >= 0)
- sqlClasses += "QTableView";
+ sqlClasses += "TQTableView";
if (globalIncludes.findIndex("qdatabrowser.h") >= 0)
- sqlClasses += "QDataBrowser";
+ sqlClasses += "TQDataBrowser";
if (globalIncludes.findIndex("qdataview.h") >= 0)
- sqlClasses += "QDataView";
+ sqlClasses += "TQDataView";
if ( !sqlClasses.empty() ) {
out << indent << "from qtsql import";
@@ -319,43 +319,43 @@ void Uic::createFormImpl( const QDomElement &e )
out << endl;
- // find out what images are required
- QStringList requiredImages;
+ // find out what images are retquired
+ TQStringList retquiredImages;
static const char *imgTags[] = { "pixmap", "iconset", 0 };
for ( i = 0; imgTags[i] != 0; i++ ) {
nl = e.parentNode().toElement().elementsByTagName( imgTags[i] );
for ( int j = 0; j < (int) nl.length(); j++ ) {
- QDomNode nn = nl.item(j);
+ TQDomNode nn = nl.item(j);
while ( nn.parentNode() != e.parentNode() )
nn = nn.parentNode();
if ( nn.nodeName() != "customwidgets" )
- requiredImages += nl.item(j).firstChild().toText().data();
+ retquiredImages += nl.item(j).firstChild().toText().data();
}
}
// register the object and unify its name
objName = registerObject( objName );
- QStringList images;
- QStringList xpmImages;
+ TQStringList images;
+ TQStringList xpmImages;
if ( pixmapLoaderFunction.isEmpty() && !externPixmaps ) {
// create images
for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "images" ) {
nl = n.elementsByTagName( "image" );
for ( i = 0; i < (int) nl.length(); i++ ) {
- QString img = registerObject( nl.item(i).toElement().attribute( "name" ) );
- if ( !requiredImages.contains( img ) )
+ TQString img = registerObject( nl.item(i).toElement().attribute( "name" ) );
+ if ( !retquiredImages.contains( img ) )
continue;
- QDomElement tmp = nl.item(i).firstChild().toElement();
+ TQDomElement tmp = nl.item(i).firstChild().toElement();
if ( tmp.tagName() != "data" )
continue;
- QString format = tmp.attribute("format", "PNG" );
- QString data = tmp.firstChild().toText().data();
+ TQString format = tmp.attribute("format", "PNG" );
+ TQString data = tmp.firstChild().toText().data();
if ( format == "XPM.GZ" ) {
xpmImages += img;
ulong length = tmp.attribute("length").toULong();
- QByteArray baunzip = unzipXPM( data, length );
+ TQByteArray baunzip = unzipXPM( data, length );
length = baunzip.size();
// shouldn't we test the initial `length' against the
// resulting `length' to catch corrupt UIC files?
@@ -383,11 +383,11 @@ void Uic::createFormImpl( const QDomElement &e )
out << indent << "\"";
int a ;
for ( a = 0; a < (int) (data.length()/2)-1; a++ ) {
- out << "\\x" << QString(data[2*a]) << QString(data[2*a+1]);
+ out << "\\x" << TQString(data[2*a]) << TQString(data[2*a+1]);
if ( a % 12 == 11 )
out << "\" \\" << endl << indent << "\"";
}
- out << "\\x" << QString(data[2*a]) << QString(data[2*a+1]) << "\"" << endl;
+ out << "\\x" << TQString(data[2*a]) << TQString(data[2*a+1]) << "\"" << endl;
--indent;
}
}
@@ -396,16 +396,16 @@ void Uic::createFormImpl( const QDomElement &e )
out << endl;
} else if ( externPixmaps ) {
#if QT_VERSION >= 0x030100
- pixmapLoaderFunction = "QPixmap.fromMimeSource";
+ pixmapLoaderFunction = "TQPixmap.fromMimeSource";
#else
out << indent << "def uic_load_pixmap_" << objName << "(name):" << endl;
++indent;
- out << indent << "pix = QPixmap()" << endl;
- out << indent << "m = QMimeSourceFactory.defaultFactory().data(name)" << endl;
+ out << indent << "pix = TQPixmap()" << endl;
+ out << indent << "m = TQMimeSourceFactory.defaultFactory().data(name)" << endl;
out << endl;
out << indent << "if m:" << endl;
++indent;
- out << indent << "QImageDrag.decode(m,pix)" << endl;
+ out << indent << "TQImageDrag.decode(m,pix)" << endl;
--indent;
out << endl;
out << indent << "return pix" << endl;
@@ -422,15 +422,15 @@ void Uic::createFormImpl( const QDomElement &e )
out << indent << "class " << nameOfClass << "(" << objClass << "):" << endl;
++indent;
- if ( objClass == "QDialog" || objClass == "QWizard" ) {
+ if ( objClass == "TQDialog" || objClass == "TQWizard" ) {
out << indent << "def __init__(self,parent = None,name = None,modal = 0,fl = 0):" << endl;
++indent;
out << indent << objClass << ".__init__(self,parent,name,modal,fl)" << endl;
- } else if ( objClass == "QWidget" ) {
+ } else if ( objClass == "TQWidget" ) {
out << indent << "def __init__(self,parent = None,name = None,fl = 0):" << endl;
++indent;
out << indent << objClass << ".__init__(self,parent,name,fl)" << endl;
- } else if ( objClass == "QMainWindow" ) {
+ } else if ( objClass == "TQMainWindow" ) {
out << indent << "def __init__(self,parent = None,name = None,fl = 0):" << endl;
++indent;
out << indent << objClass << ".__init__(self,parent,name,fl)" << endl;
@@ -446,37 +446,37 @@ void Uic::createFormImpl( const QDomElement &e )
// create pixmaps for all images
if ( !images.isEmpty() ) {
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = images.begin(); it != images.end(); ++it ) {
- out << indent << "self." << (*it) << " = QPixmap()" << endl;
+ out << indent << "self." << (*it) << " = TQPixmap()" << endl;
out << indent << "self." << (*it) << ".loadFromData(" << (*it) << "_data,\"PNG\")" << endl;
}
}
// create pixmaps for all images
if ( !xpmImages.isEmpty() ) {
for ( it = xpmImages.begin(); it != xpmImages.end(); ++it ) {
- out << indent << "self." << (*it) << " = QPixmap(" << (*it) << "_data)" << endl;
+ out << indent << "self." << (*it) << " = TQPixmap(" << (*it) << "_data)" << endl;
}
out << endl;
}
// set the properties
- QSize geometry( 0, 0 );
+ TQSize geometry( 0, 0 );
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "property" ) {
bool stdset = stdsetdef;
if ( n.hasAttribute( "stdset" ) )
stdset = toBool( n.attribute( "stdset" ) );
- QString prop = n.attribute("name");
- QDomElement n2 = n.firstChild().toElement();
- QString value = setObjectProperty( objClass, QString::null, prop, n2, stdset );
+ TQString prop = n.attribute("name");
+ TQDomElement n2 = n.firstChild().toElement();
+ TQString value = setObjectProperty( objClass, TQString::null, prop, n2, stdset );
if ( value.isEmpty() )
continue;
if ( prop == "geometry" && n2.tagName() == "rect") {
- QDomElement n3 = n2.firstChild().toElement();
+ TQDomElement n3 = n2.firstChild().toElement();
while ( !n3.isNull() ) {
if ( n3.tagName() == "width" )
geometry.setWidth( n3.firstChild().toText().data().toInt() );
@@ -485,11 +485,11 @@ void Uic::createFormImpl( const QDomElement &e )
n3 = n3.nextSibling().toElement();
}
} else {
- QString call;
+ TQString call;
if ( stdset )
call = "self." + mkStdSet( prop ) + "(" + value + ")";
else
- call = "self.setProperty(\"" + prop + "\",QVariant(" + value + "))";
+ call = "self.setProperty(\"" + prop + "\",TQVariant(" + value + "))";
if ( n2.tagName() == "string" ) {
trout << trindent << call << endl;
@@ -508,17 +508,17 @@ void Uic::createFormImpl( const QDomElement &e )
out << endl;
- // create all children, some forms have special requirements
+ // create all children, some forms have special retquirements
- if ( objClass == "QWizard" ) {
+ if ( objClass == "TQWizard" ) {
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( tags.contains( n.tagName() ) ) {
- QString page = createObjectImpl( n, objClass, "self" );
- QString comment;
- QString label = DomTool::readAttribute( n, "title", "", comment ).toString();
- out << indent << "self.addPage(" << page << ",QString(\"\"))" << endl;
+ TQString page = createObjectImpl( n, objClass, "self" );
+ TQString comment;
+ TQString label = DomTool::readAttribute( n, "title", "", comment ).toString();
+ out << indent << "self.addPage(" << page << ",TQString(\"\"))" << endl;
trout << trindent << "self.setTitle(" << page << ","<< trcall( label, comment ) << ")" << endl;
- QVariant def( FALSE, 0 );
+ TQVariant def( FALSE, 0 );
if ( DomTool::hasAttribute( n, "backEnabled" ) )
out << indent << "self.setBackEnabled(" << page << "," << mkBool( DomTool::readAttribute( n, "backEnabled", def).toBool() ) << ")" << endl;
if ( DomTool::hasAttribute( n, "nextEnabled" ) )
@@ -544,20 +544,20 @@ void Uic::createFormImpl( const QDomElement &e )
out << endl;
for ( it = dbConnections.begin(); it != dbConnections.end(); ++it ) {
if ( !(*it).isEmpty() && (*it) != "(default)") {
- out << indent << "self." << (*it) << "Connection = QSqlDatabase.database(\"" <<(*it) << "\")" << endl;
+ out << indent << "self." << (*it) << "Connection = TQSqlDatabase.database(\"" <<(*it) << "\")" << endl;
}
}
nl = e.parentNode().toElement().elementsByTagName( "widget" );
for ( i = 1; i < (int) nl.length(); i++ ) { // start at 1, 0 is the toplevel widget
n = nl.item(i).toElement();
- QString s = getClassName( n );
- if ( (dbForm || subDbForms) && (s == "QDataBrowser" || s == "QDataView") ) {
- QString objName = getObjectName( n );
- QString tab = getDatabaseInfo( n, "table" );
- QString con = getDatabaseInfo( n, "connection" );
- out << indent << objName << "Form = QSqlForm(self,\"" << objName << "Form\")" << endl;
- QDomElement n2;
+ TQString s = getClassName( n );
+ if ( (dbForm || subDbForms) && (s == "TQDataBrowser" || s == "TQDataView") ) {
+ TQString objName = getObjectName( n );
+ TQString tab = getDatabaseInfo( n, "table" );
+ TQString con = getDatabaseInfo( n, "connection" );
+ out << indent << objName << "Form = TQSqlForm(self,\"" << objName << "Form\")" << endl;
+ TQDomElement n2;
for ( n2 = n.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() )
createFormImpl( n2, objName, con, tab );
out << indent << "self." << objName << ".setForm(" << objName << "Form)" << endl;
@@ -605,9 +605,9 @@ void Uic::createFormImpl( const QDomElement &e )
// take minimumSizeHint() into account, for height-for-width widgets
if ( !geometry.isNull() ) {
- out << indent << "self.resize(QSize(" << geometry.width() << ","
+ out << indent << "self.resize(TQSize(" << geometry.width() << ","
<< geometry.height() <<").expandedTo(self.minimumSizeHint()))" << endl;
- out << indent << "self.clearWState(Qt.WState_Polished)" << endl;
+ out << indent << "self.clearWState(TQt.WState_Polished)" << endl;
}
for ( n = e; !n.isNull(); n = n.nextSibling().toElement() ) {
@@ -616,8 +616,8 @@ void Uic::createFormImpl( const QDomElement &e )
out << endl;
nl = n.elementsByTagName( "connection" );
for ( i = 0; i < (int) nl.length(); i++ ) {
- QString sender, receiver, signal, slot;
- for ( QDomElement n2 = nl.item(i).firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) {
+ TQString sender, receiver, signal, slot;
+ for ( TQDomElement n2 = nl.item(i).firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) {
if ( n2.tagName() == "sender" )
sender = n2.firstChild().toText().data();
else if ( n2.tagName() == "receiver" )
@@ -660,15 +660,15 @@ void Uic::createFormImpl( const QDomElement &e )
// Normally we never use the SLOT() macro in case the
// connection is to a method of a Python custom widget. The
- // exception is if the receiver is a QAxWidget where it must be
+ // exception is if the receiver is a TQAxWidget where it must be
// used because the slots are dynamic.
if (isaxwidget)
out << ",SLOT(\"" << slot << "\")";
else
{
- QString mname = slot.left(slot.find('('));
+ TQString mname = slot.left(slot.find('('));
- // Rename slots that have different names in PyQt.
+ // Rename slots that have different names in PyTQt.
if (isdatabrowser && mname == "del")
mname = "delOnCursor";
@@ -680,11 +680,11 @@ void Uic::createFormImpl( const QDomElement &e )
} else if ( n.tagName() == "tabstops" ) {
// setup tab order
out << endl;
- QString lastName;
- QDomElement n2 = n.firstChild().toElement();
+ TQString lastName;
+ TQDomElement n2 = n.firstChild().toElement();
while ( !n2.isNull() ) {
if ( n2.tagName() == "tabstop" ) {
- QString name = n2.firstChild().toText().data();
+ TQString name = n2.firstChild().toText().data();
name = registeredName( name );
if ( !lastName.isEmpty() )
out << indent << "self.setTabOrder(self." << lastName << ",self." << name << ")" << endl;
@@ -697,7 +697,7 @@ void Uic::createFormImpl( const QDomElement &e )
// buddies
bool firstBuddy = TRUE;
- for ( QValueList<Buddy>::Iterator buddy = buddies.begin(); buddy != buddies.end(); ++buddy ) {
+ for ( TQValueList<Buddy>::Iterator buddy = buddies.begin(); buddy != buddies.end(); ++buddy ) {
if ( isObjectRegistered( (*buddy).buddy ) ) {
if ( firstBuddy ) {
out << endl;
@@ -723,7 +723,7 @@ void Uic::createFormImpl( const QDomElement &e )
--indent;
}
- // handle application events if required
+ // handle application events if retquired
bool needFontEventHandler = FALSE;
bool needSqlTableEventHandler = FALSE;
bool needSqlDataBrowserEventHandler = FALSE;
@@ -731,13 +731,13 @@ void Uic::createFormImpl( const QDomElement &e )
for ( i = 0; i < (int) nl.length(); i++ ) {
if ( !DomTool::propertiesOfType( nl.item(i).toElement() , "font" ).isEmpty() )
needFontEventHandler = TRUE;
- QString s = getClassName( nl.item(i).toElement() );
- if ( s == "QDataTable" || s == "QDataBrowser" ) {
+ TQString s = getClassName( nl.item(i).toElement() );
+ if ( s == "TQDataTable" || s == "TQDataBrowser" ) {
if ( !isFrameworkCodeGenerated( nl.item(i).toElement() ) )
continue;
- if ( s == "QDataTable" )
+ if ( s == "TQDataTable" )
needSqlTableEventHandler = TRUE;
- if ( s == "QDataBrowser" )
+ if ( s == "TQDataBrowser" )
needSqlDataBrowserEventHandler = TRUE;
}
if ( needFontEventHandler && needSqlTableEventHandler && needSqlDataBrowserEventHandler )
@@ -749,15 +749,15 @@ void Uic::createFormImpl( const QDomElement &e )
out << " * Main event handler. Reimplemented to handle" << endl;
out << " * application font changes";
out << " */" << endl;
- out << "bool " << nameOfClass << "::event( QEvent* ev )" << endl;
+ out << "bool " << nameOfClass << "::event( TQEvent* ev )" << endl;
out << "{" << endl;
out << " bool ret = " << objClass << "::event( ev ); " << endl;
if ( needFontEventHandler ) {
++indent;
- out << " if ( ev->type() == QEvent::ApplicationFontChange ) {" << endl;
+ out << " if ( ev->type() == TQEvent::ApplicationFontChange ) {" << endl;
for ( i = 0; i < (int) nl.length(); i++ ) {
n = nl.item(i).toElement();
- QStringList list = DomTool::propertiesOfType( n, "font" );
+ TQStringList list = DomTool::propertiesOfType( n, "font" );
for ( it = list.begin(); it != list.end(); ++it )
createExclusiveProperty( n, *it );
}
@@ -779,12 +779,12 @@ void Uic::createFormImpl( const QDomElement &e )
++indent;
if ( needSqlTableEventHandler ) {
for ( i = 0; i < (int) nl.length(); i++ ) {
- QString s = getClassName( nl.item(i).toElement() );
- if ( s == "QDataTable" ) {
+ TQString s = getClassName( nl.item(i).toElement() );
+ if ( s == "TQDataTable" ) {
n = nl.item(i).toElement();
- QString c = getObjectName( n );
- QString conn = getDatabaseInfo( n, "connection" );
- QString tab = getDatabaseInfo( n, "table" );
+ TQString c = getObjectName( n );
+ TQString conn = getDatabaseInfo( n, "connection" );
+ TQString tab = getDatabaseInfo( n, "table" );
if ( !( conn.isEmpty() || tab.isEmpty() || !isFrameworkCodeGenerated( nl.item(i).toElement() ) ) ) {
out << indent << "if self." << c << ":" << endl;
++indent;
@@ -793,19 +793,19 @@ void Uic::createFormImpl( const QDomElement &e )
out << indent << "if not cursor:" << endl;
++indent;
if ( conn == "(default)" )
- out << indent << "cursor = QSqlCursor(\"" << tab << "\")" << endl;
+ out << indent << "cursor = TQSqlCursor(\"" << tab << "\")" << endl;
else
- out << indent << "cursor = QSqlCursor(\"" << tab << "\",1,self." << conn << "Connection)" << endl;
+ out << indent << "cursor = TQSqlCursor(\"" << tab << "\",1,self." << conn << "Connection)" << endl;
out << indent << "if self." << c << ".isReadOnly():" << endl;
++indent;
- out << indent << "cursor.setMode(QSqlCursor.ReadOnly)" << endl;
+ out << indent << "cursor.setMode(TQSqlCursor.ReadOnly)" << endl;
--indent;
out << indent << "self." << c << ".setSqlCursor(cursor,0,1)" << endl;
--indent;
out << endl;
out << indent << "if not cursor.isActive():" << endl;
++indent;
- out << indent << "self." << c << ".refresh(QDataTable.RefreshAll)" << endl;
+ out << indent << "self." << c << ".refresh(TQDataTable.RefreshAll)" << endl;
--indent;
--indent;
}
@@ -815,12 +815,12 @@ void Uic::createFormImpl( const QDomElement &e )
if ( needSqlDataBrowserEventHandler ) {
nl = e.elementsByTagName( "widget" );
for ( i = 0; i < (int) nl.length(); i++ ) {
- QString s = getClassName( nl.item(i).toElement() );
- if ( s == "QDataBrowser" ) {
- QString obj = getObjectName( nl.item(i).toElement() );
- QString tab = getDatabaseInfo( nl.item(i).toElement(),
+ TQString s = getClassName( nl.item(i).toElement() );
+ if ( s == "TQDataBrowser" ) {
+ TQString obj = getObjectName( nl.item(i).toElement() );
+ TQString tab = getDatabaseInfo( nl.item(i).toElement(),
"table" );
- QString conn = getDatabaseInfo( nl.item(i).toElement(),
+ TQString conn = getDatabaseInfo( nl.item(i).toElement(),
"connection" );
if ( !(tab.isEmpty() || !isFrameworkCodeGenerated( nl.item(i).toElement() ) ) ) {
out << indent << "if self." << obj << ":" << endl;
@@ -828,9 +828,9 @@ void Uic::createFormImpl( const QDomElement &e )
out << indent << "if not self." << obj << ".sqlCursor():" << endl;
++indent;
if ( conn == "(default)" )
- out << indent << "cursor = QSqlCursor(\"" << tab << "\")" << endl;
+ out << indent << "cursor = TQSqlCursor(\"" << tab << "\")" << endl;
else
- out << indent << "cursor = QSqlCursor(\"" << tab << "\",1,self." << conn << "Connection)" << endl;
+ out << indent << "cursor = TQSqlCursor(\"" << tab << "\",1,self." << conn << "Connection)" << endl;
out << indent << "self." << obj << ".setSqlCursor(cursor,1)" << endl;
out << indent << "self." << obj << ".refresh()" << endl;
out << indent << "self." << obj << ".first()" << endl;
@@ -853,22 +853,22 @@ void Uic::createFormImpl( const QDomElement &e )
// create stubs for additional slots if necessary
if ( !extraSlots.isEmpty() && writeFunctImpl ) {
- QStringList::ConstIterator cit;
+ TQStringList::ConstIterator cit;
for ( cit = extraSlots.begin(); cit != extraSlots.end(); ++cit ) {
pySlot(cit);
bool createWarning = TRUE;
- QString fname = Parser::cleanArgs( *cit );
- QMap<QString, QString>::Iterator fit = functionImpls.find( fname );
+ TQString fname = Parser::cleanArgs( *cit );
+ TQMap<TQString, TQString>::Iterator fit = functionImpls.find( fname );
if ( fit != functionImpls.end() ) {
int begin = (*fit).find( "{" );
- QString body = (*fit).mid( begin + 1, (*fit).findRev( "}" ) - begin - 1 );
+ TQString body = (*fit).mid( begin + 1, (*fit).findRev( "}" ) - begin - 1 );
createWarning = body.simplifyWhiteSpace().isEmpty();
if ( !createWarning )
{
++indent;
- QString formatted_body = body.replace(QRegExp("\n"), QString("\n") + QString(indent));
+ TQString formatted_body = body.replace(TQRegExp("\n"), TQString("\n") + TQString(indent));
out << formatted_body << endl;
--indent;
}
@@ -895,17 +895,17 @@ void Uic::createFormImpl( const QDomElement &e )
Traverses recursively over all children.
*/
-void Uic::createFormImpl( const QDomElement& e, const QString& form, const QString& connection, const QString& table )
+void Uic::createFormImpl( const TQDomElement& e, const TQString& form, const TQString& connection, const TQString& table )
{
if ( e.tagName() == "widget" &&
- e.attribute( "class" ) != "QDataTable" ) {
- QString field = getDatabaseInfo( e, "field" );
+ e.attribute( "class" ) != "TQDataTable" ) {
+ TQString field = getDatabaseInfo( e, "field" );
if ( !field.isEmpty() ) {
if ( isWidgetInTable( e, connection, table ) )
out << indent << form << "Form.insert(self." << getObjectName( e ) << "," << fixString( field ) << ")" << endl;
}
}
- QDomElement n;
+ TQDomElement n;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
createFormImpl( n, form, connection, table );
}
@@ -914,7 +914,7 @@ void Uic::createFormImpl( const QDomElement& e, const QString& form, const QStri
// Generate a Python slot definition.
-void Uic::pySlot(QStringList::ConstIterator &it)
+void Uic::pySlot(TQStringList::ConstIterator &it)
{
out << endl;
@@ -925,7 +925,7 @@ void Uic::pySlot(QStringList::ConstIterator &it)
// remove the types - too complicated for the moment, so we just count them
// and give them names based on their position.
- QString args = (*it).mid(astart + 1,(*it).find(')') - astart - 1).stripWhiteSpace();
+ TQString args = (*it).mid(astart + 1,(*it).find(')') - astart - 1).stripWhiteSpace();
if (!args.isEmpty()) {
int nrargs = args.contains(',') + 1;
diff --git a/pyuic3/globaldefs.h b/pyuic3/globaldefs.h
index 4ae0cd8..65f5974 100644
--- a/pyuic3/globaldefs.h
+++ b/pyuic3/globaldefs.h
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -28,9 +28,9 @@
#define BOXLAYOUT_DEFAULT_SPACING 6
#ifndef NO_STATIC_COLORS
-static QColor *backColor1 = 0;
-static QColor *backColor2 = 0;
-static QColor *selectedBack = 0;
+static TQColor *backColor1 = 0;
+static TQColor *backColor2 = 0;
+static TQColor *selectedBack = 0;
static void init_colors()
{
@@ -38,17 +38,17 @@ static void init_colors()
return;
#if 0 // a calculated alternative for backColor1
- QColorGroup myCg = qApp->palette().active();
+ TQColorGroup myCg = qApp->palette().active();
int h1, s1, v1;
int h2, s2, v2;
- myCg.color( QColorGroup::Base ).hsv( &h1, &s1, &v1 );
- myCg.color( QColorGroup::Background ).hsv( &h2, &s2, &v2 );
- QColor c( h1, s1, ( v1 + v2 ) / 2, QColor::Hsv );
+ myCg.color( TQColorGroup::Base ).hsv( &h1, &s1, &v1 );
+ myCg.color( TQColorGroup::Background ).hsv( &h2, &s2, &v2 );
+ TQColor c( h1, s1, ( v1 + v2 ) / 2, TQColor::Hsv );
#endif
- backColor1 = new QColor( 250, 248, 235 );
- backColor2 = new QColor( 255, 255, 255 );
- selectedBack = new QColor( 230, 230, 230 );
+ backColor1 = new TQColor( 250, 248, 235 );
+ backColor2 = new TQColor( 255, 255, 255 );
+ selectedBack = new TQColor( 230, 230, 230 );
}
#endif
diff --git a/pyuic3/main.cpp b/pyuic3/main.cpp
index 265a536..2cd8e5b 100644
--- a/pyuic3/main.cpp
+++ b/pyuic3/main.cpp
@@ -2,7 +2,7 @@
** Copyright (C) 2000 Trolltech AS. All rights reserved.
** Copyright (c) 2001 Phil Thompson <phil@river-bank.demon.co.uk>
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -39,20 +39,20 @@ int main( int argc, char * argv[] )
bool testCode = FALSE, execCode = FALSE;
bool subcl = FALSE;
bool imagecollection = FALSE;
- QStringList images;
+ TQStringList images;
const char *error = 0;
const char* fileName = 0;
- QCString outputFile;
+ TQCString outputFile;
const char* projectName = 0;
const char* trmacro = 0;
bool fix = FALSE;
- QApplication app(argc, argv, FALSE);
- QString className, uicClass;
+ TQApplication app(argc, argv, FALSE);
+ TQString className, uicClass;
for ( int n = 1; n < argc && error == 0; n++ ) {
- QCString arg = argv[n];
+ TQCString arg = argv[n];
if ( arg[0] == '-' ) { // option
- QCString opt = &arg[1];
+ TQCString opt = &arg[1];
if ( opt[0] == 'o' ) { // output redirection
if ( opt[1] == '\0' ) {
if ( !(n < argc-1) ) {
@@ -91,7 +91,7 @@ int main( int argc, char * argv[] )
}
} else if ( opt == "version" ) {
fprintf( stderr,
- "Python User Interface Compiler %s for Qt version %s\n",
+ "Python User Interface Compiler %s for TQt version %s\n",
PYQT_VERSION, QT_VERSION_STR );
return 1;
} else if ( opt == "help" ) {
@@ -107,7 +107,7 @@ int main( int argc, char * argv[] )
error = "Missing Python indent";
break;
}
- tabstop = QCString(argv[++n]).toUInt(&ok);
+ tabstop = TQCString(argv[++n]).toUInt(&ok);
} else
tabstop = opt.mid(1).toUInt(&ok);
@@ -133,7 +133,7 @@ int main( int argc, char * argv[] )
}
if ( argc < 2 || error || (!fileName && !imagecollection ) ) {
- fprintf( stderr, "PyQt user interface compiler.\n" );
+ fprintf( stderr, "PyTQt user interface compiler.\n" );
if ( error )
fprintf( stderr, "pyuic: %s\n", error );
@@ -150,7 +150,7 @@ int main( int argc, char * argv[] )
"Options:\n"
"\t-o file\t\tWrite output to file rather than stdout\n"
"\t-p indent\tSet the Python indent in spaces (0 to use a tab)\n"
- "\t-tr func\tUse func() rather than QApplication.translate() for i18n\n"
+ "\t-tr func\tUse func() rather than TQApplication.translate() for i18n\n"
"\t-x\t\tGenerate extra code to test and display the class\n"
"\t-test\t\tGenerate extra code to test but not display the class\n"
"\t-version\tDisplay version of pyuic\n"
@@ -161,7 +161,7 @@ int main( int argc, char * argv[] )
Uic::setIndent(indent);
- QFile fileOut;
+ TQFile fileOut;
if ( !outputFile.isEmpty() ) {
fileOut.setName( outputFile );
if (!fileOut.open( IO_WriteOnly ) )
@@ -169,30 +169,30 @@ int main( int argc, char * argv[] )
} else {
fileOut.open( IO_WriteOnly, stdout );
}
- QTextStream out( &fileOut );
+ TQTextStream out( &fileOut );
if ( imagecollection ) {
- out.setEncoding( QTextStream::Latin1 );
+ out.setEncoding( TQTextStream::Latin1 );
out << "# -*- coding: latin-1 -*-\n\n";
Uic::embed( out, projectName, images );
return 0;
}
- out.setEncoding( QTextStream::UnicodeUTF8 );
- QFile file( fileName );
+ out.setEncoding( TQTextStream::UnicodeUTF8 );
+ TQFile file( fileName );
if ( !file.open( IO_ReadOnly ) )
qFatal( "pyuic: Could not open file '%s' ", fileName );
- QDomDocument doc;
- QString errMsg;
+ TQDomDocument doc;
+ TQString errMsg;
int errLine;
if ( !doc.setContent( &file, &errMsg, &errLine ) )
- qFatal( QString("pyuic: Failed to parse %s: ") + errMsg + QString (" in line %d\n"), fileName, errLine );
+ qFatal( TQString("pyuic: Failed to parse %s: ") + errMsg + TQString (" in line %d\n"), fileName, errLine );
- QDomElement e = doc.firstChild().toElement();
+ TQDomElement e = doc.firstChild().toElement();
if ( e.hasAttribute("version") && e.attribute("version").toDouble() > 3.3 ) {
- qWarning( QString("pyuic: File generated with too recent version of Qt Designer (%s vs. %s)"),
+ qWarning( TQString("pyuic: File generated with too recent version of TQt Designer (%s vs. %s)"),
e.attribute("version").latin1(), QT_VERSION_STR );
return 1;
}
@@ -209,8 +209,8 @@ int main( int argc, char * argv[] )
if ( !subcl ) {
out << "# Form implementation generated from reading ui file '" << fileName << "'" << endl;
out << "#" << endl;
- out << "# Created: " << QDateTime::currentDateTime().toString() << endl;
- out << "# by: The PyQt User Interface Compiler (pyuic) " << PYQT_VERSION << endl;
+ out << "# Created: " << TQDateTime::currentDateTime().toString() << endl;
+ out << "# by: The PyTQt User Interface Compiler (pyuic) " << PYQT_VERSION << endl;
out << "#" << endl;
out << "# WARNING! All changes made in this file will be lost!" << endl;
out << endl;
@@ -228,8 +228,8 @@ int main( int argc, char * argv[] )
out << endl;
out << indent << "if __name__ == \"__main__\":" << endl;
++indent;
- out << indent << "a = QApplication(sys.argv)" << endl;
- out << indent << "QObject.connect(a,SIGNAL(\"lastWindowClosed()\"),a,SLOT(\"quit()\"))" << endl;
+ out << indent << "a = TQApplication(sys.argv)" << endl;
+ out << indent << "TQObject.connect(a,SIGNAL(\"lastWindowClosed()\"),a,SLOT(\"quit()\"))" << endl;
out << indent << "w = " << (subcl ? className : uicClass) << "()" << endl;
out << indent << "a.setMainWidget(w)" << endl;
diff --git a/pyuic3/object.cpp b/pyuic3/object.cpp
index 834427f..1e05176 100644
--- a/pyuic3/object.cpp
+++ b/pyuic3/object.cpp
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -38,17 +38,17 @@
static bool createdCentralWidget = FALSE;
-QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass, const QString& par, const QString& layout )
+TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& par, const TQString& layout )
{
- QString parent( par );
+ TQString parent( par );
if ( parent == "self" && isMainWindow ) {
if ( !createdCentralWidget )
- out << indent << "self.setCentralWidget(QWidget(self,\"qt_central_widget\"))" << endl;
+ out << indent << "self.setCentralWidget(TQWidget(self,\"qt_central_widget\"))" << endl;
createdCentralWidget = TRUE;
parent = "self.centralWidget()";
}
- QDomElement n;
- QString objClass, objName, fullObjName;
+ TQDomElement n;
+ TQString objClass, objName, fullObjName;
int numItems = 0;
int numColumns = 0;
int numRows = 0;
@@ -61,8 +61,8 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
return objName;
objName = getObjectName( e );
- QString definedName = objName;
- bool isTmpObject = objName.isEmpty() || objClass == "QLayoutWidget";
+ TQString definedName = objName;
+ bool isTmpObject = objName.isEmpty() || objClass == "TQLayoutWidget";
if ( isTmpObject ) {
if ( objClass[0] == 'Q' )
objName = objClass.mid(1);
@@ -72,17 +72,17 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
bool isLine = objClass == "Line";
if ( isLine )
- objClass = "QFrame";
+ objClass = "TQFrame";
out << endl;
- if ( objClass == "QLayoutWidget" ) {
+ if ( objClass == "TQLayoutWidget" ) {
if ( layout.isEmpty() ) {
// register the object and unify its name
objName = registerObject( objName );
- out << indent << objName << " = QWidget(" << parent << ",\"" << definedName << "\")" << endl;
+ out << indent << objName << " = TQWidget(" << parent << ",\"" << definedName << "\")" << endl;
} else {
// the layout widget is not necessary, hide it by creating its child in the parent
- QString result;
+ TQString result;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if (tags.contains( n.tagName() ) )
result = createObjectImpl( n, parentClass, parent, layout );
@@ -92,7 +92,7 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
// Layouts don't go into the class instance dictionary.
fullObjName = objName;
- } else if ( objClass != "QToolBar" && objClass != "QMenuBar" ) {
+ } else if ( objClass != "TQToolBar" && objClass != "TQMenuBar" ) {
// register the object and unify its name
objName = registerObject( objName );
@@ -104,8 +104,8 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
else
fullObjName = "self." + objName;
- if ( objClass == "QAxWidget" ) {
- QString controlId;
+ if ( objClass == "TQAxWidget" ) {
+ TQString controlId;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "property" && n.attribute( "name" ) == "control" ) {
controlId = n.firstChild().toElement().text();
@@ -122,10 +122,10 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
bool stdset = stdsetdef;
if ( n.hasAttribute( "stdset" ) )
stdset = toBool( n.attribute( "stdset" ) );
- QString prop = n.attribute( "name" );
+ TQString prop = n.attribute( "name" );
if ( prop == "database" )
continue;
- QString value = setObjectProperty( objClass, objName, prop, n.firstChild().toElement(), stdset );
+ TQString value = setObjectProperty( objClass, objName, prop, n.firstChild().toElement(), stdset );
if ( value.isEmpty() )
continue;
if ( prop == "name" )
@@ -139,35 +139,35 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
if ( isLine && prop == "orientation" ) {
prop = "frameShape";
if ( value.right(10) == "Horizontal" )
- value = "QFrame.HLine";
+ value = "TQFrame.HLine";
else
- value = "QFrame.VLine";
+ value = "TQFrame.VLine";
if ( !hadFrameShadow ) {
prop = "frameStyle";
- value += " | QFrame.Sunken";
+ value += " | TQFrame.Sunken";
}
}
if ( prop == "buttonGroupId" ) {
- if ( parentClass == "QButtonGroup" )
+ if ( parentClass == "TQButtonGroup" )
out << indent << parent << ".insert( " << fullObjName << "," << value << ")" << endl;
continue;
}
if ( prop == "frameworkCode" )
continue;
- if ( objClass == "QMultiLineEdit" &&
- QRegExp("echoMode|hMargin|maxLength|maxLines|undoEnabled").exactMatch(prop) )
+ if ( objClass == "TQMultiLineEdit" &&
+ TQRegExp("echoMode|hMargin|maxLength|maxLines|undoEnabled").exactMatch(prop) )
continue;
- QString call = fullObjName + ".";
- QString tail;
+ TQString call = fullObjName + ".";
+ TQString tail;
if ( stdset ) {
call += mkStdSet( prop ) + "(";
tail = ")";
} else {
- call += "setProperty(\"" + prop + "\",QVariant(";
+ call += "setProperty(\"" + prop + "\",TQVariant(";
tail = "))";
}
if ( prop == "accel" ) {
- call += "QKeySequence(";
+ call += "TQKeySequence(";
tail += ")";
}
call += value + tail;
@@ -179,8 +179,8 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
out << indent << call << endl;
}
} else if ( n.tagName() == "item" ) {
- QString call;
- QString value;
+ TQString call;
+ TQString value;
if ( objClass.contains( "ListBox" ) ) {
call = createListBoxItemImpl( n, fullObjName );
@@ -204,7 +204,7 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
trout << trindent << call << endl;
}
} else if ( objClass.contains( "ListView" ) ) {
- call = createListViewItemImpl( n, fullObjName, QString::null );
+ call = createListViewItemImpl( n, fullObjName, TQString::null );
if ( !call.isEmpty() ) {
if ( numItems == 0 )
trout << trindent << fullObjName << ".clear()" << endl;
@@ -214,8 +214,8 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
if ( !call.isEmpty() )
numItems++;
} else if ( n.tagName() == "column" || n.tagName() == "row" ) {
- QString call;
- QString value;
+ TQString call;
+ TQString value;
if ( objClass.contains( "ListView" ) ) {
call = createListViewColumnImpl( n, fullObjName, &value );
@@ -224,7 +224,7 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
trout << trindent << fullObjName << ".header().setLabel("
<< numColumns++ << "," << value << ")\n";
}
- } else if ( objClass == "QTable" || objClass == "QDataTable" ) {
+ } else if ( objClass == "TQTable" || objClass == "TQDataTable" ) {
bool isCols = ( n.tagName() == "column" );
call = createTableRowColumnImpl( n, fullObjName, &value );
if ( !call.isEmpty() ) {
@@ -239,39 +239,39 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
}
}
- // create all children, some widgets have special requirements
+ // create all children, some widgets have special retquirements
- if ( objClass == "QTabWidget" ) {
+ if ( objClass == "TQTabWidget" ) {
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( tags.contains( n.tagName() ) ) {
- QString page = createObjectImpl( n, objClass, fullObjName );
- QString comment;
- QString label = DomTool::readAttribute( n, "title", "", comment ).toString();
- out << indent << fullObjName << ".insertTab(" << page << ",QString.fromLatin1(\"\"))" << endl;
+ TQString page = createObjectImpl( n, objClass, fullObjName );
+ TQString comment;
+ TQString label = DomTool::readAttribute( n, "title", "", comment ).toString();
+ out << indent << fullObjName << ".insertTab(" << page << ",TQString.fromLatin1(\"\"))" << endl;
trout << trindent << fullObjName << ".changeTab(" << page << "," << trcall( label, comment ) << ")" << endl;
}
}
- } else if ( objClass == "QWidgetStack" ) {
+ } else if ( objClass == "TQWidgetStack" ) {
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( tags.contains( n.tagName() ) ) {
- QString page = createObjectImpl( n, objClass, fullObjName );
+ TQString page = createObjectImpl( n, objClass, fullObjName );
int id = DomTool::readAttribute( n, "id", "" ).toInt();
out << indent << fullObjName << ".addWidget(" << page << "," << id << ")" << endl;
}
}
- } else if ( objClass == "QToolBox" ) {
+ } else if ( objClass == "TQToolBox" ) {
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( tags.contains( n.tagName() ) ) {
- QString page = createObjectImpl( n, objClass, fullObjName );
- QString comment;
- QString label = DomTool::readAttribute( n, "label", "", comment ).toString();
- out << indent << fullObjName << ".addItem(" << page << ",QString.fromLatin1(\"\"))" << endl;
+ TQString page = createObjectImpl( n, objClass, fullObjName );
+ TQString comment;
+ TQString label = DomTool::readAttribute( n, "label", "", comment ).toString();
+ out << indent << fullObjName << ".addItem(" << page << ",TQString.fromLatin1(\"\"))" << endl;
trout << trindent << fullObjName << ".setItemLabel(" << fullObjName
<< ".indexOf(" << page << ")," << trcall( label, comment )
<< ")" << endl;
}
}
- } else if ( objClass != "QToolBar" && objClass != "QMenuBar" ) { // standard widgets
+ } else if ( objClass != "TQToolBar" && objClass != "TQMenuBar" ) { // standard widgets
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( tags.contains( n.tagName() ) )
createObjectImpl( n, objClass, fullObjName );
@@ -293,13 +293,13 @@ QString Uic::createObjectImpl( const QDomElement &e, const QString& parentClass,
application font or palette change handlers in createFormImpl().
*/
-void Uic::createExclusiveProperty( const QDomElement & e, const QString& exclusiveProp )
+void Uic::createExclusiveProperty( const TQDomElement & e, const TQString& exclusiveProp )
{
- QDomElement n;
- QString objClass = getClassName( e );
+ TQDomElement n;
+ TQString objClass = getClassName( e );
if ( objClass.isEmpty() )
return;
- QString objName = getObjectName( e );
+ TQString objName = getObjectName( e );
#if 0 // it's not clear whether this check should be here or not
if ( objName.isEmpty() )
return;
@@ -309,55 +309,55 @@ void Uic::createExclusiveProperty( const QDomElement & e, const QString& exclusi
bool stdset = stdsetdef;
if ( n.hasAttribute( "stdset" ) )
stdset = toBool( n.attribute( "stdset" ) );
- QString prop = n.attribute( "name" );
+ TQString prop = n.attribute( "name" );
if ( prop != exclusiveProp )
continue;
- QString value = setObjectProperty( objClass, objName, prop, n.firstChild().toElement(), stdset );
+ TQString value = setObjectProperty( objClass, objName, prop, n.firstChild().toElement(), stdset );
if ( value.isEmpty() )
continue;
- out << indent << indent << objName << ".setProperty(\"" << prop << "\",QVariant(" << value << "))" << endl;
+ out << indent << indent << objName << ".setProperty(\"" << prop << "\",TQVariant(" << value << "))" << endl;
}
}
}
-/* Convert a QSizePolicy::SizeType to text. */
-static QString mapSizeType(QSizePolicy::SizeType st)
+/* Convert a TQSizePolicy::SizeType to text. */
+static TQString mapSizeType(TQSizePolicy::SizeType st)
{
const char *txt;
switch (st)
{
- case QSizePolicy::Fixed:
- txt = "QSizePolicy.Fixed";
+ case TQSizePolicy::Fixed:
+ txt = "TQSizePolicy.Fixed";
break;
- case QSizePolicy::Minimum:
- txt = "QSizePolicy.Minimum";
+ case TQSizePolicy::Minimum:
+ txt = "TQSizePolicy.Minimum";
break;
- case QSizePolicy::Maximum:
- txt = "QSizePolicy.Maximum";
+ case TQSizePolicy::Maximum:
+ txt = "TQSizePolicy.Maximum";
break;
- case QSizePolicy::Preferred:
- txt = "QSizePolicy.Preferred";
+ case TQSizePolicy::Preferred:
+ txt = "TQSizePolicy.Preferred";
break;
- case QSizePolicy::MinimumExpanding:
- txt = "QSizePolicy.MinimumExpanding";
+ case TQSizePolicy::MinimumExpanding:
+ txt = "TQSizePolicy.MinimumExpanding";
break;
- case QSizePolicy::Expanding:
- txt = "QSizePolicy.Expanding";
+ case TQSizePolicy::Expanding:
+ txt = "TQSizePolicy.Expanding";
break;
- case QSizePolicy::Ignored:
- txt = "QSizePolicy.Ignored";
+ case TQSizePolicy::Ignored:
+ txt = "TQSizePolicy.Ignored";
break;
default:
- txt = "Invalid QSizePolicy::SizeType";
+ txt = "Invalid TQSizePolicy::SizeType";
}
return txt;
@@ -368,11 +368,11 @@ static QString mapSizeType(QSizePolicy::SizeType st)
Resource::saveProperty() and DomTool::elementToVariant. If you
change one, change all.
*/
-QString Uic::setObjectProperty( const QString& objClass, const QString& obj, const QString &prop, const QDomElement &e, bool stdset )
+TQString Uic::setObjectProperty( const TQString& objClass, const TQString& obj, const TQString &prop, const TQDomElement &e, bool stdset )
{
- QString v;
+ TQString v;
if ( e.tagName() == "rect" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int x = 0, y = 0, w = 0, h = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "x" )
@@ -385,11 +385,11 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
h = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = "QRect(%1,%2,%3,%4)";
+ v = "TQRect(%1,%2,%3,%4)";
v = v.arg(x).arg(y).arg(w).arg(h);
} else if ( e.tagName() == "point" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int x = 0, y = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "x" )
@@ -398,10 +398,10 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
y = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = "QPoint(%1,%2)";
+ v = "TQPoint(%1,%2)";
v = v.arg(x).arg(y);
} else if ( e.tagName() == "size" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int w = 0, h = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "width" )
@@ -410,10 +410,10 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
h = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = "QSize(%1,%2)";
+ v = "TQSize(%1,%2)";
v = v.arg(w).arg(h);
} else if ( e.tagName() == "color" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int r = 0, g = 0, b = 0;
while ( !n3.isNull() ) {
if ( n3.tagName() == "red" )
@@ -424,18 +424,18 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
b = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = "QColor(%1,%2,%3)";
+ v = "TQColor(%1,%2,%3)";
v = v.arg(r).arg(g).arg(b);
} else if ( e.tagName() == "font" ) {
- QDomElement n3 = e.firstChild().toElement();
- QString attrname = e.parentNode().toElement().attribute( "name", "font" );
- QString fontname;
+ TQDomElement n3 = e.firstChild().toElement();
+ TQString attrname = e.parentNode().toElement().attribute( "name", "font" );
+ TQString fontname;
if ( !obj.isEmpty() ) {
fontname = registerObject( obj + "_" + attrname );
- out << indent << fontname << " = QFont(self." << obj << ".font())" << endl;
+ out << indent << fontname << " = TQFont(self." << obj << ".font())" << endl;
} else {
fontname = registerObject( "f" );
- out << indent << fontname << " = QFont(self.font())" << endl;
+ out << indent << fontname << " = TQFont(self.font())" << endl;
}
while ( !n3.isNull() ) {
if ( n3.tagName() == "family" )
@@ -462,22 +462,22 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
v = fontname;
}
} else if ( e.tagName() == "string" ) {
- QString txt = e.firstChild().toText().data();
- QString com = getComment( e.parentNode() );
+ TQString txt = e.firstChild().toText().data();
+ TQString com = getComment( e.parentNode() );
- if ( prop == "toolTip" && objClass != "QAction" && objClass != "QActionGroup" ) {
+ if ( prop == "toolTip" && objClass != "TQAction" && objClass != "TQActionGroup" ) {
if ( !obj.isEmpty() )
- trout << trindent << "QToolTip.add(self." << obj << ","
+ trout << trindent << "TQToolTip.add(self." << obj << ","
<< trcall( txt, com ) << ")" << endl;
else
- trout << trindent << "QToolTip.add(self,"
+ trout << trindent << "TQToolTip.add(self,"
<< trcall( txt, com ) << ")" << endl;
- } else if ( prop == "whatsThis" && objClass != "QAction" && objClass != "QActionGroup" ) {
+ } else if ( prop == "whatsThis" && objClass != "TQAction" && objClass != "TQActionGroup" ) {
if ( !obj.isEmpty() )
- trout << trindent << "QWhatsThis.add(self." << obj << ","
+ trout << trindent << "TQWhatsThis.add(self." << obj << ","
<< trcall( txt, com ) << ")" << endl;
else
- trout << trindent << "QWhatsThis.add(self,"
+ trout << trindent << "TQWhatsThis.add(self,"
<< trcall( txt, com ) << ")" << endl;
} else {
v = trcall( txt, com );
@@ -492,7 +492,7 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
if ( stdset )
v = "%1";
else
- v = "QVariant(%1,0)";
+ v = "TQVariant(%1,0)";
v = v.arg( mkBool( e.firstChild().toText().data() ) );
} else if ( e.tagName() == "pixmap" ) {
v = e.firstChild().toText().data();
@@ -500,19 +500,19 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
if ( pixmapLoaderFunction.isEmpty() ) {
v.prepend( "self." );
} else {
- v.prepend( pixmapLoaderFunction + "(" + QString( externPixmaps ? "\"" : "" ) );
- v.append( QString( externPixmaps ? "\"" : "" ) + ")" );
+ v.prepend( pixmapLoaderFunction + "(" + TQString( externPixmaps ? "\"" : "" ) );
+ v.append( TQString( externPixmaps ? "\"" : "" ) + ")" );
}
}
} else if ( e.tagName() == "iconset" ) {
- v = "QIconSet(%1)";
- QString s = e.firstChild().toText().data();
+ v = "TQIconSet(%1)";
+ TQString s = e.firstChild().toText().data();
if ( !s.isEmpty() ) {
if ( pixmapLoaderFunction.isEmpty() ) {
s.prepend( "self." );
} else {
- s.prepend( pixmapLoaderFunction + "(" + QString( externPixmaps ? "\"" : "" ) );
- s.append( QString( externPixmaps ? "\"" : "" ) + ")" );
+ s.prepend( pixmapLoaderFunction + "(" + TQString( externPixmaps ? "\"" : "" ) );
+ s.append( TQString( externPixmaps ? "\"" : "" ) + ")" );
}
}
v = v.arg( s );
@@ -520,16 +520,16 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
v = e.firstChild().toText().data() + ".convertToImage()";
} else if ( e.tagName() == "enum" ) {
v = "%1.%2";
- QString oc = objClass;
- QString ev = e.firstChild().toText().data();
- if ( oc == "QListView" && ev == "Manual" ) // #### workaround, rename QListView::Manual in 4.0
- oc = "QScrollView";
+ TQString oc = objClass;
+ TQString ev = e.firstChild().toText().data();
+ if ( oc == "TQListView" && ev == "Manual" ) // #### workaround, rename TQListView::Manual in 4.0
+ oc = "TQScrollView";
v = v.arg( oc ).arg( ev );
} else if ( e.tagName() == "set" ) {
- QString keys( e.firstChild().toText().data() );
- QStringList lst = QStringList::split( '|', keys );
+ TQString keys( e.firstChild().toText().data() );
+ TQStringList lst = TQStringList::split( '|', keys );
v = "";
- QStringList::Iterator it = lst.begin();
+ TQStringList::Iterator it = lst.begin();
while ( it != lst.end() ) {
v += objClass + "." + *it;
if ( it != lst.fromLast() )
@@ -537,32 +537,32 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
++it;
}
} else if ( e.tagName() == "sizepolicy" ) {
- QDomElement n3 = e.firstChild().toElement();
- QSizePolicy sp;
+ TQDomElement n3 = e.firstChild().toElement();
+ TQSizePolicy sp;
while ( !n3.isNull() ) {
if ( n3.tagName() == "hsizetype" )
- sp.setHorData( (QSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
+ sp.setHorData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
else if ( n3.tagName() == "vsizetype" )
- sp.setVerData( (QSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
+ sp.setVerData( (TQSizePolicy::SizeType)n3.firstChild().toText().data().toInt() );
else if ( n3.tagName() == "horstretch" )
sp.setHorStretch( n3.firstChild().toText().data().toInt() );
else if ( n3.tagName() == "verstretch" )
sp.setVerStretch( n3.firstChild().toText().data().toInt() );
n3 = n3.nextSibling().toElement();
}
- QString tmp = "self.";
+ TQString tmp = "self.";
if ( !obj.isEmpty() )
tmp += obj + ".";
- v = "QSizePolicy(%1,%2,%3,%4," + tmp + "sizePolicy().hasHeightForWidth())";
+ v = "TQSizePolicy(%1,%2,%3,%4," + tmp + "sizePolicy().hasHeightForWidth())";
v = v.arg( mapSizeType(sp.horData()) ).arg( mapSizeType(sp.verData()) ).arg( sp.horStretch() ).arg( sp.verStretch() );
} else if ( e.tagName() == "palette" ) {
- QPalette pal;
+ TQPalette pal;
bool no_pixmaps = e.elementsByTagName( "pixmap" ).count() == 0;
- QDomElement n;
+ TQDomElement n;
if ( no_pixmaps ) {
n = e.firstChild().toElement();
while ( !n.isNull() ) {
- QColorGroup cg;
+ TQColorGroup cg;
if ( n.tagName() == "active" ) {
cg = loadColorGroup( n );
pal.setActive( cg );
@@ -576,19 +576,19 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
n = n.nextSibling().toElement();
}
}
- if ( no_pixmaps && pal == QPalette( pal.active().button(), pal.active().background() ) ) {
- v = "QPalette(QColor(%1,%2,%3),QColor(%1,%2,%3))";
+ if ( no_pixmaps && pal == TQPalette( pal.active().button(), pal.active().background() ) ) {
+ v = "TQPalette(TQColor(%1,%2,%3),TQColor(%1,%2,%3))";
v = v.arg( pal.active().button().red() ).arg( pal.active().button().green() ).arg( pal.active().button().blue() );
v = v.arg( pal.active().background().red() ).arg( pal.active().background().green() ).arg( pal.active().background().blue() );
} else {
- QString palette = "pal";
+ TQString palette = "pal";
if ( !pal_used ) {
- out << indent << palette << " = QPalette()" << endl;
+ out << indent << palette << " = TQPalette()" << endl;
pal_used = TRUE;
}
- QString cg = "cg";
+ TQString cg = "cg";
if ( !cg_used ) {
- out << indent << cg << " = QColorGroup()" << endl;
+ out << indent << cg << " = TQColorGroup()" << endl;
cg_used = TRUE;
}
n = e.firstChild().toElement();
@@ -611,10 +611,10 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
v = palette;
}
} else if ( e.tagName() == "cursor" ) {
- v = "QCursor(%1)";
+ v = "TQCursor(%1)";
v = v.arg( e.firstChild().toText().data() );
} else if ( e.tagName() == "date" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int y, m, d;
y = m = d = 0;
while ( !n3.isNull() ) {
@@ -626,10 +626,10 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
d = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = "QDate(%1,%2,%3)";
+ v = "TQDate(%1,%2,%3)";
v = v.arg(y).arg(m).arg(d);
} else if ( e.tagName() == "time" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int h, m, s;
h = m = s = 0;
while ( !n3.isNull() ) {
@@ -641,10 +641,10 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
s = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = "QTime(%1,%2,%3)";
+ v = "TQTime(%1,%2,%3)";
v = v.arg(h).arg(m).arg(s);
} else if ( e.tagName() == "datetime" ) {
- QDomElement n3 = e.firstChild().toElement();
+ TQDomElement n3 = e.firstChild().toElement();
int h, mi, s, y, mo, d;
h = mi = s = y = mo = d = 0;
while ( !n3.isNull() ) {
@@ -662,18 +662,18 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
d = n3.firstChild().toText().data().toInt();
n3 = n3.nextSibling().toElement();
}
- v = "QDateTime(QDate(%1,%2,%3),QTime(%4,%5,%6))";
+ v = "TQDateTime(TQDate(%1,%2,%3),TQTime(%4,%5,%6))";
v = v.arg(y).arg(mo).arg(d).arg(h).arg(mi).arg(s);
} else if ( e.tagName() == "stringlist" ) {
- QStringList l;
- QDomElement n3 = e.firstChild().toElement();
- QString listname = "l";
+ TQStringList l;
+ TQDomElement n3 = e.firstChild().toElement();
+ TQString listname = "l";
if ( !obj.isEmpty() ) {
listname = obj + "_stringlist";
listname = registerObject( listname );
- out << indent << listname << " = QStringList()" << endl;
+ out << indent << listname << " = TQStringList()" << endl;
} else {
- out << indent << listname << " = QStringList()" << endl;
+ out << indent << listname << " = TQStringList()" << endl;
}
while ( !n3.isNull() ) {
if ( n3.tagName() == "string" )
@@ -690,9 +690,9 @@ QString Uic::setObjectProperty( const QString& objClass, const QString& obj, con
/*! Extracts a named object property from \a e.
*/
-QDomElement Uic::getObjectProperty( const QDomElement& e, const QString& name )
+TQDomElement Uic::getObjectProperty( const TQDomElement& e, const TQString& name )
{
- QDomElement n;
+ TQDomElement n;
for ( n = e.firstChild().toElement();
!n.isNull();
n = n.nextSibling().toElement() ) {
diff --git a/pyuic3/parser.cpp b/pyuic3/parser.cpp
index 4fc13c5..a4def26 100644
--- a/pyuic3/parser.cpp
+++ b/pyuic3/parser.cpp
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -22,25 +22,25 @@
#include <qobject.h>
#include <qstringlist.h>
-class NormalizeObject : public QObject
+class NormalizeObject : public TQObject
{
public:
- NormalizeObject() : QObject() {}
- static QCString normalizeSignalSlot( const char *signalSlot ) { return QObject::normalizeSignalSlot( signalSlot ); }
+ NormalizeObject() : TQObject() {}
+ static TQCString normalizeSignalSlot( const char *signalSlot ) { return TQObject::normalizeSignalSlot( signalSlot ); }
};
-QString Parser::cleanArgs( const QString &func )
+TQString Parser::cleanArgs( const TQString &func )
{
- QString slot( func );
+ TQString slot( func );
int begin = slot.find( "(" ) + 1;
- QString args = slot.mid( begin );
+ TQString args = slot.mid( begin );
args = args.left( args.find( ")" ) );
- QStringList lst = QStringList::split( ',', args );
- QString res = slot.left( begin );
- for ( QStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) {
+ TQStringList lst = TQStringList::split( ',', args );
+ TQString res = slot.left( begin );
+ for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) {
if ( it != lst.begin() )
res += ",";
- QString arg = *it;
+ TQString arg = *it;
int pos = 0;
if ( ( pos = arg.find( "&" ) ) != -1 ) {
arg = arg.left( pos + 1 );
@@ -50,7 +50,7 @@ QString Parser::cleanArgs( const QString &func )
arg = arg.simplifyWhiteSpace();
if ( ( pos = arg.find( ':' ) ) != -1 )
arg = arg.left( pos ).simplifyWhiteSpace() + ":" + arg.mid( pos + 1 ).simplifyWhiteSpace();
- QStringList l = QStringList::split( ' ', arg );
+ TQStringList l = TQStringList::split( ' ', arg );
if ( l.count() == 2 ) {
if ( l[ 0 ] != "const" && l[ 0 ] != "unsigned" && l[ 0 ] != "var" )
arg = l[ 0 ];
@@ -62,5 +62,5 @@ QString Parser::cleanArgs( const QString &func )
}
res += ")";
- return QString::fromLatin1( NormalizeObject::normalizeSignalSlot( res.latin1() ) );
+ return TQString::fromLatin1( NormalizeObject::normalizeSignalSlot( res.latin1() ) );
}
diff --git a/pyuic3/parser.h b/pyuic3/parser.h
index 5a5671a..db07ea2 100644
--- a/pyuic3/parser.h
+++ b/pyuic3/parser.h
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -26,7 +26,7 @@
class Parser
{
public:
- static QString cleanArgs( const QString &func );
+ static TQString cleanArgs( const TQString &func );
};
diff --git a/pyuic3/pyuic-prof.sbf b/pyuic3/pyuic-prof.sbf
index 2501349..c982fd1 100644
--- a/pyuic3/pyuic-prof.sbf
+++ b/pyuic3/pyuic-prof.sbf
@@ -1,22 +1,22 @@
-# This is the build file for pyuic for Qt v3 Professional Edition.
+# This is the build file for pyuic for TQt v3 Professional Edition.
#
# 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.
target = pyuic
diff --git a/pyuic3/pyuic.pro.in b/pyuic3/pyuic.pro.in
index faebbd6..7b5b911 100644
--- a/pyuic3/pyuic.pro.in
+++ b/pyuic3/pyuic.pro.in
@@ -3,7 +3,7 @@
# Copyright (c) 2002, 2003
# Riverbank Computing Limited <info@riverbankcomputing.co.uk>
#
-# The project file for pyuic for Qt v3.
+# The project file for pyuic for TQt v3.
TEMPLATE = app
diff --git a/pyuic3/pyuic.sbf b/pyuic3/pyuic.sbf
index a40245d..d8fdccf 100644
--- a/pyuic3/pyuic.sbf
+++ b/pyuic3/pyuic.sbf
@@ -1,22 +1,22 @@
-# This is the build file for pyuic for Qt v3.
+# This is the build file for pyuic for TQt v3.
#
# 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.
target = pyuic
diff --git a/pyuic3/subclassing.cpp b/pyuic3/subclassing.cpp
index 299e044..2d71cdd 100644
--- a/pyuic3/subclassing.cpp
+++ b/pyuic3/subclassing.cpp
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -38,17 +38,17 @@
\sa createSubDecl()
*/
-void Uic::createSubImpl( const QDomElement &e, const QString& subClass )
+void Uic::createSubImpl( const TQDomElement &e, const TQString& subClass )
{
- QDomElement n;
- QDomNodeList nl;
+ TQDomElement n;
+ TQDomNodeList nl;
int i;
- QString objClass = getClassName( e );
+ TQString objClass = getClassName( e );
if ( objClass.isEmpty() )
return;
- QString supClsMod = fileName;
+ TQString supClsMod = fileName;
int tail = supClsMod.findRev('.',-1);
if (tail >= 0)
supClsMod.truncate(tail);
@@ -62,11 +62,11 @@ void Uic::createSubImpl( const QDomElement &e, const QString& subClass )
out << endl;
// constructor
- if ( objClass == "QDialog" || objClass == "QWizard" ) {
+ if ( objClass == "TQDialog" || objClass == "TQWizard" ) {
out << indent << "def __init__(self,parent = None,name = None,modal = 0,fl = 0):" << endl;
++indent;
out << indent << nameOfClass << ".__init__(self,parent,name,modal,fl)" << endl;
- } else { // standard QWidget
+ } else { // standard TQWidget
out << indent << "def __init__(self,parent = None,name = None,fl = 0):" << endl;
++indent;
out << indent << nameOfClass << ".__init__(self,parent,name,fl)" << endl;
@@ -74,12 +74,12 @@ void Uic::createSubImpl( const QDomElement &e, const QString& subClass )
--indent;
// find additional functions
- QStringList publicSlots, protectedSlots, privateSlots;
- QStringList publicSlotTypes, protectedSlotTypes, privateSlotTypes;
- QStringList publicSlotSpecifier, protectedSlotSpecifier, privateSlotSpecifier;
- QStringList publicFuncts, protectedFuncts, privateFuncts;
- QStringList publicFunctRetTyp, protectedFunctRetTyp, privateFunctRetTyp;
- QStringList publicFunctSpec, protectedFunctSpec, privateFunctSpec;
+ TQStringList publicSlots, protectedSlots, privateSlots;
+ TQStringList publicSlotTypes, protectedSlotTypes, privateSlotTypes;
+ TQStringList publicSlotSpecifier, protectedSlotSpecifier, privateSlotSpecifier;
+ TQStringList publicFuncts, protectedFuncts, privateFuncts;
+ TQStringList publicFunctRetTyp, protectedFunctRetTyp, privateFunctRetTyp;
+ TQStringList publicFunctSpec, protectedFunctSpec, privateFunctSpec;
nl = e.parentNode().toElement().elementsByTagName( "slot" );
for ( i = 0; i < (int) nl.length(); i++ ) {
@@ -89,12 +89,12 @@ void Uic::createSubImpl( const QDomElement &e, const QString& subClass )
continue;
if ( n.attribute( "language", "C++" ) != "C++" )
continue;
- QString returnType = n.attribute( "returnType", "void" );
- QString functionName = n.firstChild().toText().data().stripWhiteSpace();
+ TQString returnType = n.attribute( "returnType", "void" );
+ TQString functionName = n.firstChild().toText().data().stripWhiteSpace();
if ( functionName.endsWith( ";" ) )
functionName = functionName.left( functionName.length() - 1 );
- QString specifier = n.attribute( "specifier" );
- QString access = n.attribute( "access" );
+ TQString specifier = n.attribute( "specifier" );
+ TQString access = n.attribute( "access" );
if ( access == "protected" ) {
protectedSlots += functionName;
protectedSlotTypes += returnType;
@@ -117,12 +117,12 @@ void Uic::createSubImpl( const QDomElement &e, const QString& subClass )
continue;
if ( n.attribute( "language", "C++" ) != "C++" )
continue;
- QString returnType = n.attribute( "returnType", "void" );
- QString functionName = n.firstChild().toText().data().stripWhiteSpace();
+ TQString returnType = n.attribute( "returnType", "void" );
+ TQString functionName = n.firstChild().toText().data().stripWhiteSpace();
if ( functionName.endsWith( ";" ) )
functionName = functionName.left( functionName.length() - 1 );
- QString specifier = n.attribute( "specifier" );
- QString access = n.attribute( "access" );
+ TQString specifier = n.attribute( "specifier" );
+ TQString access = n.attribute( "access" );
if ( access == "protected" ) {
protectedFuncts += functionName;
protectedFunctRetTyp += returnType;
@@ -162,13 +162,13 @@ void Uic::createSubImpl( const QDomElement &e, const QString& subClass )
--indent;
}
-void Uic::writeFunctionsSubImpl( const QStringList &fuLst, const QStringList &typLst, const QStringList &specLst,
- const QString &subClass, const QString &descr )
+void Uic::writeFunctionsSubImpl( const TQStringList &fuLst, const TQStringList &typLst, const TQStringList &specLst,
+ const TQString &subClass, const TQString &descr )
{
- QValueListConstIterator<QString> it, it2, it3;
+ TQValueListConstIterator<TQString> it, it2, it3;
for ( it = fuLst.begin(), it2 = typLst.begin(), it3 = specLst.begin();
it != fuLst.end(); ++it, ++it2, ++it3 ) {
- QString type = *it2;
+ TQString type = *it2;
if ( type.isEmpty() )
type = "void";
if ( *it3 == "non virtual" )
diff --git a/pyuic3/uic.cpp b/pyuic3/uic.cpp
index d359302..f227ccd 100644
--- a/pyuic3/uic.cpp
+++ b/pyuic3/uic.cpp
@@ -2,7 +2,7 @@
** Copyright (C) 2000 Trolltech AS. All rights reserved.
** Copyright (c) 2004 Phil Thompson <phil@riverbankcomputing.co.uk>
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -52,36 +52,36 @@ void PyIndent::calc()
}
-QString Uic::getComment( const QDomNode& n )
+TQString Uic::getComment( const TQDomNode& n )
{
- QDomNode child = n.firstChild();
+ TQDomNode child = n.firstChild();
while ( !child.isNull() ) {
if ( child.toElement().tagName() == "comment" )
return child.toElement().firstChild().toText().data();
child = child.nextSibling();
}
- return QString::null;
+ return TQString::null;
}
-QString Uic::mkBool( bool b )
+TQString Uic::mkBool( bool b )
{
return b? "1" : "0";
}
-QString Uic::mkBool( const QString& s )
+TQString Uic::mkBool( const TQString& s )
{
return mkBool( s == "true" || s == "1" );
}
-bool Uic::toBool( const QString& s )
+bool Uic::toBool( const TQString& s )
{
return s == "true" || s.toInt() != 0;
}
-QString Uic::fixString( const QString &str, bool encode )
+TQString Uic::fixString( const TQString &str, bool encode )
{
#if QT_VERSION >= 0x030100
- QString s;
+ TQString s;
if ( !encode ) {
s = str;
s.replace( "\\", "\\\\" );
@@ -89,7 +89,7 @@ QString Uic::fixString( const QString &str, bool encode )
s.replace( "\r", "" );
s.replace( "\n", "\\n\"\n\"" );
} else {
- QCString utf8 = str.utf8();
+ TQCString utf8 = str.utf8();
const int l = utf8.length();
for ( int i = 0; i < l; ++i ) {
@@ -101,25 +101,25 @@ QString Uic::fixString( const QString &str, bool encode )
if (ch <= 0x0f)
s += "0";
- s += QString::number( ch, 16 );
+ s += TQString::number( ch, 16 );
}
}
}
#else
- QString s( str );
- s.replace( QRegExp( "\\\\" ), "\\\\" );
- s.replace( QRegExp( "\"" ), "\\\"" );
- s.replace( QRegExp( "\r?\n" ), "\\n\"\n\"" );
+ TQString s( str );
+ s.replace( TQRegExp( "\\\\" ), "\\\\" );
+ s.replace( TQRegExp( "\"" ), "\\\"" );
+ s.replace( TQRegExp( "\r?\n" ), "\\n\"\n\"" );
#endif
return "\"" + s + "\"";
}
-QString Uic::trcall( const QString& sourceText, const QString& comment )
+TQString Uic::trcall( const TQString& sourceText, const TQString& comment )
{
if ( sourceText.isEmpty() && comment.isEmpty() )
- return "QString.null";
+ return "TQString.null";
- QString t = trmacro;
+ TQString t = trmacro;
bool encode = FALSE;
if ( t.isNull() ) {
t = "self.__tr";
@@ -145,9 +145,9 @@ QString Uic::trcall( const QString& sourceText, const QString& comment )
}
}
-QString Uic::mkStdSet( const QString& prop )
+TQString Uic::mkStdSet( const TQString& prop )
{
- return QString( "set" ) + prop[0].upper() + prop.mid(1);
+ return TQString( "set" ) + prop[0].upper() + prop.mid(1);
}
@@ -158,9 +158,9 @@ QString Uic::mkStdSet( const QString& prop )
The class Uic encapsulates the user interface compiler (uic).
*/
-Uic::Uic( const QString &fn, const char *outputFn, QTextStream &outStream,
- QDomDocument doc, bool subcl, const QString &trm,
- const QString& subClass, QString &uicClass )
+Uic::Uic( const TQString &fn, const char *outputFn, TQTextStream &outStream,
+ TQDomDocument doc, bool subcl, const TQString &trm,
+ const TQString& subClass, TQString &uicClass )
: out( outStream ), trout (&languageChangeBody ),
outputFileName( outputFn ), trmacro( trm ),
pyNeedTr(FALSE), pyNeedTrUtf8(FALSE)
@@ -191,14 +191,14 @@ Uic::Uic( const QString &fn, const char *outputFn, QTextStream &outStream,
return;
// Extract any Python code in the comments.
- QStringList comm = QStringList::split('\n',getComment(doc.firstChild()));
+ TQStringList comm = TQStringList::split('\n',getComment(doc.firstChild()));
- for (QStringList::Iterator it = comm.begin(); it != comm.end(); ++it)
+ for (TQStringList::Iterator it = comm.begin(); it != comm.end(); ++it)
if ((*it).startsWith("Python:"))
pyCode += (*it).mid(7) + "\n";
- QDomElement e = doc.firstChild().firstChild().toElement();
- QDomElement widget;
+ TQDomElement e = doc.firstChild().firstChild().toElement();
+ TQDomElement widget;
while ( !e.isNull() ) {
if ( e.tagName() == "widget" ) {
widget = e;
@@ -213,13 +213,13 @@ Uic::Uic( const QString &fn, const char *outputFn, QTextStream &outStream,
bool ok;
defSpacing.toInt( &ok );
if ( !ok ) {
- QString buf = defSpacing.toString();
+ TQString buf = defSpacing.toString();
defSpacing = buf.append( "()" );
}
defMargin = e.attribute( "margin", defMargin.toString() );
defMargin.toInt( &ok );
if ( !ok ) {
- QString buf = defMargin.toString();
+ TQString buf = defMargin.toString();
defMargin = buf.append( "()" );
}
}
@@ -232,7 +232,7 @@ Uic::Uic( const QString &fn, const char *outputFn, QTextStream &outStream,
uicClass = nameOfClass;
- namespaces = QStringList::split( "::", nameOfClass );
+ namespaces = TQStringList::split( "::", nameOfClass );
bareNameOfClass = namespaces.last();
namespaces.remove( namespaces.fromLast() );
@@ -258,7 +258,7 @@ Uic::Uic( const QString &fn, const char *outputFn, QTextStream &outStream,
out << "\n";
out << indent << "def __trUtf8(self,s,c = None):\n";
++indent;
- out << indent << "return qApp.translate(\"" << nameOfClass << "\",s,c,QApplication.UnicodeUTF8)\n";
+ out << indent << "return qApp.translate(\"" << nameOfClass << "\",s,c,TQApplication.UnicodeUTF8)\n";
--indent;
}
@@ -267,26 +267,26 @@ Uic::Uic( const QString &fn, const char *outputFn, QTextStream &outStream,
/*! Extracts a pixmap loader function from \a e
*/
-QString Uic::getPixmapLoaderFunction( const QDomElement& e )
+TQString Uic::getPixmapLoaderFunction( const TQDomElement& e )
{
- QDomElement n;
+ TQDomElement n;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "pixmapfunction" )
return n.firstChild().toText().data();
}
- return QString::null;
+ return TQString::null;
}
/*! Extracts the forms class name from \a e
*/
-QString Uic::getFormClassName( const QDomElement& e )
+TQString Uic::getFormClassName( const TQDomElement& e )
{
- QDomElement n;
- QString cn;
+ TQDomElement n;
+ TQString cn;
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "class" ) {
- QString s = n.firstChild().toText().data();
+ TQString s = n.firstChild().toText().data();
int i;
while ( ( i = s.find(' ' )) != -1 )
s[i] = '_';
@@ -298,24 +298,24 @@ QString Uic::getFormClassName( const QDomElement& e )
/*! Extracts a class name from \a e.
*/
-QString Uic::getClassName( const QDomElement& e )
+TQString Uic::getClassName( const TQDomElement& e )
{
- QString s = e.attribute( "class" );
+ TQString s = e.attribute( "class" );
if ( s.isEmpty() && e.tagName() == "toolbar" )
- s = "QToolBar";
+ s = "TQToolBar";
else if ( s.isEmpty() && e.tagName() == "menubar" )
- s = "QMenuBar";
+ s = "TQMenuBar";
return s;
}
/*! Returns TRUE if database framework code is generated, else FALSE.
*/
-bool Uic::isFrameworkCodeGenerated( const QDomElement& e )
+bool Uic::isFrameworkCodeGenerated( const TQDomElement& e )
{
- QDomElement n = getObjectProperty( e, "frameworkCode" );
+ TQDomElement n = getObjectProperty( e, "frameworkCode" );
if ( n.attribute("name") == "frameworkCode" &&
- !DomTool::elementToVariant( n.firstChild().toElement(), QVariant( TRUE, 0 ) ).toBool() )
+ !DomTool::elementToVariant( n.firstChild().toElement(), TQVariant( TRUE, 0 ) ).toBool() )
return FALSE;
return TRUE;
}
@@ -323,38 +323,38 @@ bool Uic::isFrameworkCodeGenerated( const QDomElement& e )
/*! Extracts an object name from \a e. It's stored in the 'name'
property.
*/
-QString Uic::getObjectName( const QDomElement& e )
+TQString Uic::getObjectName( const TQDomElement& e )
{
- QDomElement n = getObjectProperty( e, "name" );
+ TQDomElement n = getObjectProperty( e, "name" );
if ( n.firstChild().toElement().tagName() == "cstring" )
return n.firstChild().toElement().firstChild().toText().data();
- return QString::null;
+ return TQString::null;
}
/*! Extracts an layout name from \a e. It's stored in the 'name'
- property of the preceeding sibling (the first child of a QLayoutWidget).
+ property of the preceeding sibling (the first child of a TQLayoutWidget).
*/
-QString Uic::getLayoutName( const QDomElement& e )
+TQString Uic::getLayoutName( const TQDomElement& e )
{
- QDomElement p = e.parentNode().toElement();
- QString name;
+ TQDomElement p = e.parentNode().toElement();
+ TQString name;
- if ( getClassName(p) != "QLayoutWidget" )
+ if ( getClassName(p) != "TQLayoutWidget" )
name = "Layout";
- QDomElement n = getObjectProperty( p, "name" );
+ TQDomElement n = getObjectProperty( p, "name" );
if ( n.firstChild().toElement().tagName() == "cstring" ) {
name.prepend( n.firstChild().toElement().firstChild().toText().data() );
- return QStringList::split( "::", name ).last();
+ return TQStringList::split( "::", name ).last();
}
return e.tagName();
}
-QString Uic::getDatabaseInfo( const QDomElement& e, const QString& tag )
+TQString Uic::getDatabaseInfo( const TQDomElement& e, const TQString& tag )
{
- QDomElement n;
- QDomElement n1;
+ TQDomElement n;
+ TQDomElement n1;
int child = 0;
// database info is a stringlist stored in this order
if ( tag == "connection" )
@@ -364,65 +364,65 @@ QString Uic::getDatabaseInfo( const QDomElement& e, const QString& tag )
else if ( tag == "field" )
child = 2;
else
- return QString::null;
+ return TQString::null;
n = getObjectProperty( e, "database" );
if ( n.firstChild().toElement().tagName() == "stringlist" ) {
// find correct stringlist entry
- QDomElement n1 = n.firstChild().firstChild().toElement();
+ TQDomElement n1 = n.firstChild().firstChild().toElement();
for ( int i = 0; i < child && !n1.isNull(); ++i )
n1 = n1.nextSibling().toElement();
if ( n1.isNull() )
- return QString::null;
+ return TQString::null;
return n1.firstChild().toText().data();
}
- return QString::null;
+ return TQString::null;
}
/*!
Returns include file for class \a className or a null string.
*/
-QString Uic::getInclude( const QString& className )
+TQString Uic::getInclude( const TQString& className )
{
int wid = WidgetDatabase::idFromClassName( className );
if ( wid != -1 )
return WidgetDatabase::includeFile( wid );
- return QString::null;
+ return TQString::null;
}
-void Uic::createActionImpl( const QDomElement &n, const QString &parent )
+void Uic::createActionImpl( const TQDomElement &n, const TQString &parent )
{
- for ( QDomElement ae = n; !ae.isNull(); ae = ae.nextSibling().toElement() ) {
- QString objName = registerObject( getObjectName( ae ) );
+ for ( TQDomElement ae = n; !ae.isNull(); ae = ae.nextSibling().toElement() ) {
+ TQString objName = registerObject( getObjectName( ae ) );
if ( ae.tagName() == "action" )
- out << indent << "self." << objName << " = QAction(" << parent << ",\"" << objName << "\")" << endl;
+ out << indent << "self." << objName << " = TQAction(" << parent << ",\"" << objName << "\")" << endl;
else if ( ae.tagName() == "actiongroup" )
- out << indent << "self." << objName << " = QActionGroup(" << parent << ",\"" << objName << "\")" << endl;
+ out << indent << "self." << objName << " = TQActionGroup(" << parent << ",\"" << objName << "\")" << endl;
else
continue;
bool subActionsDone = FALSE;
#if QT_VERSION >= 0x030300
bool hasMenuText = FALSE;
- QString actionText;
+ TQString actionText;
#endif
- for ( QDomElement n2 = ae.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) {
+ for ( TQDomElement n2 = ae.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) {
if ( n2.tagName() == "property" ) {
bool stdset = stdsetdef;
if ( n2.hasAttribute( "stdset" ) )
stdset = toBool( n2.attribute( "stdset" ) );
- QString prop = n2.attribute("name");
+ TQString prop = n2.attribute("name");
if ( prop == "name" )
continue;
- QString value = setObjectProperty( "QAction", objName, prop, n2.firstChild().toElement(), stdset );
+ TQString value = setObjectProperty( "TQAction", objName, prop, n2.firstChild().toElement(), stdset );
if ( value.isEmpty() )
continue;
- QString call = "self." + objName + ".";
+ TQString call = "self." + objName + ".";
if ( stdset )
call += mkStdSet( prop ) + "(" + value + ")";
else
- call += "setProperty(\"" + prop + "\",QVariant(" + value + "))";
+ call += "setProperty(\"" + prop + "\",TQVariant(" + value + "))";
#if QT_VERSION >= 0x030300
if (prop == "menuText")
@@ -442,53 +442,53 @@ void Uic::createActionImpl( const QDomElement &n, const QString &parent )
}
}
#if QT_VERSION >= 0x030300
- // workaround for loading pre-3.3 files expecting bogus QAction behavior
+ // workaround for loading pre-3.3 files expecting bogus TQAction behavior
if (!hasMenuText && !actionText.isEmpty() && uiFileVersion < "3.3")
trout << indent << "self." << objName << ".setMenuText(" << actionText << ")" << endl;
#endif
}
}
-QString get_dock( const QString &d )
+TQString get_dock( const TQString &d )
{
if ( d == "0" )
- return "Qt.DockUnmanaged";
+ return "TQt.DockUnmanaged";
if ( d == "1" )
- return "Qt.DockTornOff";
+ return "TQt.DockTornOff";
if ( d == "2" )
- return "Qt.DockTop";
+ return "TQt.DockTop";
if ( d == "3" )
- return "Qt.DockBottom";
+ return "TQt.DockBottom";
if ( d == "4" )
- return "Qt.DockRight";
+ return "TQt.DockRight";
if ( d == "5" )
- return "Qt.DockLeft";
+ return "TQt.DockLeft";
if ( d == "6" )
- return "Qt.DockMinimized";
+ return "TQt.DockMinimized";
return "";
}
-void Uic::createToolbarImpl( const QDomElement &n, const QString &parentClass, const QString &parent )
+void Uic::createToolbarImpl( const TQDomElement &n, const TQString &parentClass, const TQString &parent )
{
- QDomNodeList nl = n.elementsByTagName( "toolbar" );
+ TQDomNodeList nl = n.elementsByTagName( "toolbar" );
for ( int i = 0; i < (int) nl.length(); i++ ) {
- QDomElement ae = nl.item( i ).toElement();
- QString dock = get_dock( ae.attribute( "dock" ) );
- QString objName = getObjectName( ae );
- out << indent << "self." << objName << " = QToolBar(QString(\"\"),self," << dock << ")" << endl;
+ TQDomElement ae = nl.item( i ).toElement();
+ TQString dock = get_dock( ae.attribute( "dock" ) );
+ TQString objName = getObjectName( ae );
+ out << indent << "self." << objName << " = TQToolBar(TQString(\"\"),self," << dock << ")" << endl;
createObjectImpl( ae, parentClass, parent );
- for ( QDomElement n2 = ae.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) {
+ for ( TQDomElement n2 = ae.firstChild().toElement(); !n2.isNull(); n2 = n2.nextSibling().toElement() ) {
if ( n2.tagName() == "action" ) {
out << indent << "self." << n2.attribute( "name" ) << ".addTo(self." << objName << ")" << endl;
} else if ( n2.tagName() == "separator" ) {
out << indent << "self." << objName << ".addSeparator()" << endl;
} else if ( n2.tagName() == "widget" ) {
if ( n2.attribute( "class" ) != "Spacer" ) {
- createObjectImpl( n2, "QToolBar", "self." + objName );
+ createObjectImpl( n2, "TQToolBar", "self." + objName );
} else {
- QString child = createSpacerImpl( n2, parentClass, parent, objName );
- out << indent << "QApplication.sendPostedEvents(self." << objName
- << ",QEvent.ChildInserted)" << endl;
+ TQString child = createSpacerImpl( n2, parentClass, parent, objName );
+ out << indent << "TQApplication.sendPostedEvents(self." << objName
+ << ",TQEvent.ChildInserted)" << endl;
out << indent << "self." << objName << ".boxLayout().addItem(" << child << ")" << endl;
}
}
@@ -496,22 +496,22 @@ void Uic::createToolbarImpl( const QDomElement &n, const QString &parentClass, c
}
}
-void Uic::createMenuBarImpl( const QDomElement &n, const QString &parentClass, const QString &parent )
+void Uic::createMenuBarImpl( const TQDomElement &n, const TQString &parentClass, const TQString &parent )
{
- QString objName = getObjectName( n );
- out << indent << "self." << objName << " = QMenuBar(self,\"" << objName << "\")" << endl;
+ TQString objName = getObjectName( n );
+ out << indent << "self." << objName << " = TQMenuBar(self,\"" << objName << "\")" << endl;
createObjectImpl( n, parentClass, parent );
int i = 0;
- QDomElement c = n.firstChild().toElement();
+ TQDomElement c = n.firstChild().toElement();
while ( !c.isNull() ) {
if ( c.tagName() == "item" ) {
- QString itemName = "self." + c.attribute( "name" );
+ TQString itemName = "self." + c.attribute( "name" );
out << endl;
- out << indent << itemName << " = QPopupMenu(self)" << endl;
+ out << indent << itemName << " = TQPopupMenu(self)" << endl;
createPopupMenuImpl( c, parentClass, itemName );
- out << indent << "self." << objName << ".insertItem(QString(\"\")," << itemName << "," << i << ")" << endl;
- QString findItem("self." + objName + ".findItem(%1)");
+ out << indent << "self." << objName << ".insertItem(TQString(\"\")," << itemName << "," << i << ")" << endl;
+ TQString findItem("self." + objName + ".findItem(%1)");
findItem = findItem.arg(i);
trout << indent << "if " << findItem << ":" << endl;
++indent;
@@ -526,16 +526,16 @@ void Uic::createMenuBarImpl( const QDomElement &n, const QString &parentClass, c
}
}
-void Uic::createPopupMenuImpl( const QDomElement &e, const QString &parentClass, const QString &parent )
+void Uic::createPopupMenuImpl( const TQDomElement &e, const TQString &parentClass, const TQString &parent )
{
int i = 0;
- for ( QDomElement n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
+ for ( TQDomElement n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "action" || n.tagName() == "actiongroup" ) {
- QDomElement n2 = n.nextSibling().toElement();
+ TQDomElement n2 = n.nextSibling().toElement();
if ( n2.tagName() == "item" ) { // the action has a sub menu
- QString itemName = "self." + n2.attribute( "name" );
- QString itemText = n2.attribute( "text" );
- out << indent << itemName << " = QPopupMenu(self)" << endl;
+ TQString itemName = "self." + n2.attribute( "name" );
+ TQString itemText = n2.attribute( "text" );
+ out << indent << itemName << " = TQPopupMenu(self)" << endl;
out << indent << parent << ".setAccel(" << trcall( n2.attribute( "accel" ) ) << ",";
out << parent << ".insertItem(" << "self." << n.attribute( "name" ) << ".iconSet(),";
out << trcall( itemText ) << "," << itemName << "))" << endl;
@@ -557,17 +557,17 @@ void Uic::createPopupMenuImpl( const QDomElement &e, const QString &parentClass,
Creates implementation of an listbox item tag.
*/
-QString Uic::createListBoxItemImpl( const QDomElement &e, const QString &parent ,
- QString *value )
+TQString Uic::createListBoxItemImpl( const TQDomElement &e, const TQString &parent ,
+ TQString *value )
{
- QDomElement n = e.firstChild().toElement();
- QString txt;
- QString com;
- QString pix;
+ TQDomElement n = e.firstChild().toElement();
+ TQString txt;
+ TQString com;
+ TQString pix;
while ( !n.isNull() ) {
if ( n.tagName() == "property" ) {
- QString attrib = n.attribute( "name" );
- QVariant v = DomTool::elementToVariant( n.firstChild().toElement(), QVariant() );
+ TQString attrib = n.attribute( "name" );
+ TQVariant v = DomTool::elementToVariant( n.firstChild().toElement(), TQVariant() );
if ( attrib == "text" ) {
txt = v.toString();
com = getComment( n );
@@ -577,8 +577,8 @@ QString Uic::createListBoxItemImpl( const QDomElement &e, const QString &parent
if ( pixmapLoaderFunction.isEmpty() ) {
pix.prepend( "self." );
} else {
- pix.prepend( pixmapLoaderFunction + "( " + QString( externPixmaps ? "\"" : "self." ) );
- pix.append( QString( externPixmaps ? "\"" : "" ) + ")" );
+ pix.prepend( pixmapLoaderFunction + "( " + TQString( externPixmaps ? "\"" : "self." ) );
+ pix.append( TQString( externPixmaps ? "\"" : "" ) + ")" );
}
}
}
@@ -599,16 +599,16 @@ QString Uic::createListBoxItemImpl( const QDomElement &e, const QString &parent
Creates implementation of an iconview item tag.
*/
-QString Uic::createIconViewItemImpl( const QDomElement &e, const QString &parent )
+TQString Uic::createIconViewItemImpl( const TQDomElement &e, const TQString &parent )
{
- QDomElement n = e.firstChild().toElement();
- QString txt;
- QString com;
- QString pix;
+ TQDomElement n = e.firstChild().toElement();
+ TQString txt;
+ TQString com;
+ TQString pix;
while ( !n.isNull() ) {
if ( n.tagName() == "property" ) {
- QString attrib = n.attribute( "name" );
- QVariant v = DomTool::elementToVariant( n.firstChild().toElement(), QVariant() );
+ TQString attrib = n.attribute( "name" );
+ TQVariant v = DomTool::elementToVariant( n.firstChild().toElement(), TQVariant() );
if ( attrib == "text" ) {
txt = v.toString();
com = getComment( n );
@@ -618,8 +618,8 @@ QString Uic::createIconViewItemImpl( const QDomElement &e, const QString &parent
if ( pixmapLoaderFunction.isEmpty() ) {
pix.prepend( "self." );
} else {
- pix.prepend( pixmapLoaderFunction + "( " + QString( externPixmaps ? "\"" : "self." ) );
- pix.append( QString( externPixmaps ? "\"" : "" ) + ")" );
+ pix.prepend( pixmapLoaderFunction + "( " + TQString( externPixmaps ? "\"" : "self." ) );
+ pix.append( TQString( externPixmaps ? "\"" : "" ) + ")" );
}
}
}
@@ -628,24 +628,24 @@ QString Uic::createIconViewItemImpl( const QDomElement &e, const QString &parent
}
if ( pix.isEmpty() )
- return "QIconViewItem(" + parent + "," + trcall( txt, com ) + ")";
+ return "TQIconViewItem(" + parent + "," + trcall( txt, com ) + ")";
else
- return "QIconViewItem(" + parent + "," + trcall( txt, com ) + "," + pix + ")";
+ return "TQIconViewItem(" + parent + "," + trcall( txt, com ) + "," + pix + ")";
}
/*!
Creates implementation of an listview item tag.
*/
-QString Uic::createListViewItemImpl( const QDomElement &e, const QString &parent,
- const QString &parentItem )
+TQString Uic::createListViewItemImpl( const TQDomElement &e, const TQString &parent,
+ const TQString &parentItem )
{
- QString s;
+ TQString s;
- QDomElement n = e.firstChild().toElement();
+ TQDomElement n = e.firstChild().toElement();
bool hasChildren = e.elementsByTagName( "item" ).count() > 0;
- QString item;
+ TQString item;
if ( hasChildren ) {
item = registerObject( "item" );
@@ -656,26 +656,26 @@ QString Uic::createListViewItemImpl( const QDomElement &e, const QString &parent
s = trindent + item + " = ";
if ( !parentItem.isEmpty() )
- s += "QListViewItem(" + parentItem + "," + lastItem + ")\n";
+ s += "TQListViewItem(" + parentItem + "," + lastItem + ")\n";
else
- s += "QListViewItem(" + parent + "," + lastItem + ")\n";
+ s += "TQListViewItem(" + parent + "," + lastItem + ")\n";
- QStringList texts;
- QStringList pixmaps;
+ TQStringList texts;
+ TQStringList pixmaps;
while ( !n.isNull() ) {
if ( n.tagName() == "property" ) {
- QString attrib = n.attribute("name");
- QVariant v = DomTool::elementToVariant( n.firstChild().toElement(), QVariant() );
+ TQString attrib = n.attribute("name");
+ TQVariant v = DomTool::elementToVariant( n.firstChild().toElement(), TQVariant() );
if ( attrib == "text" )
texts << v.toString();
else if ( attrib == "pixmap" ) {
- QString pix = v.toString();
+ TQString pix = v.toString();
if ( !pix.isEmpty() ) {
if ( pixmapLoaderFunction.isEmpty() ) {
pix.prepend( "self." );
} else {
- pix.prepend( pixmapLoaderFunction + "( " + QString( externPixmaps ? "\"" : "self." ) );
- pix.append( QString( externPixmaps ? "\"" : "" ) + ")" );
+ pix.prepend( pixmapLoaderFunction + "( " + TQString( externPixmaps ? "\"" : "self." ) );
+ pix.append( TQString( externPixmaps ? "\"" : "" ) + ")" );
}
}
pixmaps << pix;
@@ -689,9 +689,9 @@ QString Uic::createListViewItemImpl( const QDomElement &e, const QString &parent
for ( int i = 0; i < (int)texts.count(); ++i ) {
if ( !texts[ i ].isEmpty() )
- s += trindent + item + ".setText(" + QString::number( i ) + "," + trcall( texts[ i ] ) + ")\n";
+ s += trindent + item + ".setText(" + TQString::number( i ) + "," + trcall( texts[ i ] ) + ")\n";
if ( !pixmaps[ i ].isEmpty() )
- s += trindent + item + ".setPixmap(" + QString::number( i ) + "," + pixmaps[ i ] + ")\n";
+ s += trindent + item + ".setPixmap(" + TQString::number( i ) + "," + pixmaps[ i ] + ")\n";
}
lastItem = item;
@@ -702,18 +702,18 @@ QString Uic::createListViewItemImpl( const QDomElement &e, const QString &parent
Creates implementation of an listview column tag.
*/
-QString Uic::createListViewColumnImpl( const QDomElement &e, const QString &parent,
- QString *value )
+TQString Uic::createListViewColumnImpl( const TQDomElement &e, const TQString &parent,
+ TQString *value )
{
- QDomElement n = e.firstChild().toElement();
- QString txt;
- QString com;
- QString pix;
+ TQDomElement n = e.firstChild().toElement();
+ TQString txt;
+ TQString com;
+ TQString pix;
bool clickable = FALSE, resizable = FALSE;
while ( !n.isNull() ) {
if ( n.tagName() == "property" ) {
- QString attrib = n.attribute("name");
- QVariant v = DomTool::elementToVariant( n.firstChild().toElement(), QVariant() );
+ TQString attrib = n.attribute("name");
+ TQVariant v = DomTool::elementToVariant( n.firstChild().toElement(), TQVariant() );
if ( attrib == "text" ) {
txt = v.toString();
com = getComment( n );
@@ -723,8 +723,8 @@ QString Uic::createListViewColumnImpl( const QDomElement &e, const QString &pare
if ( pixmapLoaderFunction.isEmpty() ) {
pix.prepend( "self." );
} else {
- pix.prepend( pixmapLoaderFunction + "( " + QString( externPixmaps ? "\"" : "self." ) );
- pix.append( QString( externPixmaps ? "\"" : "" ) + ")" );
+ pix.prepend( pixmapLoaderFunction + "( " + TQString( externPixmaps ? "\"" : "self." ) );
+ pix.append( TQString( externPixmaps ? "\"" : "" ) + ")" );
}
}
} else if ( attrib == "clickable" )
@@ -738,10 +738,10 @@ QString Uic::createListViewColumnImpl( const QDomElement &e, const QString &pare
if ( value )
*value = trcall( txt, com );
- QString s;
+ TQString s;
s = indent + parent + ".addColumn(" + trcall( txt, com ) + ")\n";
if ( !pix.isEmpty() )
- s += indent + parent + ".header().setLabel(" + parent + ".header().count() - 1,QIconSet(" + pix + ")," + trcall( txt, com ) + ")\n";
+ s += indent + parent + ".header().setLabel(" + parent + ".header().count() - 1,TQIconSet(" + pix + ")," + trcall( txt, com ) + ")\n";
if ( !clickable )
s += indent + parent + ".header().setClickEnabled(0," + parent + ".header().count() - 1)\n";
if ( !resizable )
@@ -749,20 +749,20 @@ QString Uic::createListViewColumnImpl( const QDomElement &e, const QString &pare
return s;
}
-QString Uic::createTableRowColumnImpl( const QDomElement &e, const QString &parent,
- QString *value )
+TQString Uic::createTableRowColumnImpl( const TQDomElement &e, const TQString &parent,
+ TQString *value )
{
- QString objClass = getClassName( e.parentNode().toElement() );
- QDomElement n = e.firstChild().toElement();
- QString txt;
- QString com;
- QString pix;
- QString field;
+ TQString objClass = getClassName( e.parentNode().toElement() );
+ TQDomElement n = e.firstChild().toElement();
+ TQString txt;
+ TQString com;
+ TQString pix;
+ TQString field;
bool isRow = e.tagName() == "row";
while ( !n.isNull() ) {
if ( n.tagName() == "property" ) {
- QString attrib = n.attribute("name");
- QVariant v = DomTool::elementToVariant( n.firstChild().toElement(), QVariant() );
+ TQString attrib = n.attribute("name");
+ TQVariant v = DomTool::elementToVariant( n.firstChild().toElement(), TQVariant() );
if ( attrib == "text" ) {
txt = v.toString();
com = getComment( n );
@@ -772,8 +772,8 @@ QString Uic::createTableRowColumnImpl( const QDomElement &e, const QString &pare
if ( pixmapLoaderFunction.isEmpty() ) {
pix.prepend( "self." );
} else {
- pix.prepend( pixmapLoaderFunction + "( " + QString( externPixmaps ? "\"" : "self." ) );
- pix.append( QString( externPixmaps ? "\"" : "" ) + ")" );
+ pix.prepend( pixmapLoaderFunction + "( " + TQString( externPixmaps ? "\"" : "self." ) );
+ pix.append( TQString( externPixmaps ? "\"" : "" ) + ")" );
}
}
} else if ( attrib == "field" )
@@ -787,32 +787,32 @@ QString Uic::createTableRowColumnImpl( const QDomElement &e, const QString &pare
// ### This generated code sucks! We have to set the number of
// rows/cols before and then only do setLabel/()
- // ### careful, though, since QDataTable has an API which makes this code pretty good
+ // ### careful, though, since TQDataTable has an API which makes this code pretty good
- QString s;
+ TQString s;
if ( isRow ) {
s = indent + parent + ".setNumRows(" + parent + ".numRows() + 1)\n";
if ( pix.isEmpty() )
s += indent + parent + ".verticalHeader().setLabel(" + parent + ".numRows() - 1,"
+ trcall( txt, com ) + ")\n";
else
- s += indent + parent + ".verticalHeader().setLabel(" + parent + ".numRows() - 1,QIconSet("
+ s += indent + parent + ".verticalHeader().setLabel(" + parent + ".numRows() - 1,TQIconSet("
+ pix + ")," + trcall( txt, com ) + ")\n";
} else {
- if ( objClass == "QTable" ) {
+ if ( objClass == "TQTable" ) {
s = indent + parent + ".setNumCols(" + parent + ".numCols() + 1)\n";
if ( pix.isEmpty() )
s += indent + parent + ".horizontalHeader().setLabel(" + parent + ".numCols() - 1,"
+ trcall( txt, com ) + ")\n";
else
- s += indent + parent + ".horizontalHeader().setLabel(" + parent + ".numCols() - 1,QIconSet("
+ s += indent + parent + ".horizontalHeader().setLabel(" + parent + ".numCols() - 1,TQIconSet("
+ pix + ")," + trcall( txt, com ) + ")\n";
- } else if ( objClass == "QDataTable" ) {
+ } else if ( objClass == "TQDataTable" ) {
if ( !txt.isEmpty() && !field.isEmpty() ) {
if ( pix.isEmpty() )
out << indent << parent << ".addColumn(" << fixString( field ) << "," << trcall( txt, com ) << ")" << endl;
else
- out << indent << parent << ".addColumn(" << fixString( field ) << "," << trcall( txt, com ) << ",QIconSet(" << pix << "))" << endl;
+ out << indent << parent << ".addColumn(" << fixString( field ) << "," << trcall( txt, com ) << ",TQIconSet(" << pix << "))" << endl;
}
}
}
@@ -822,36 +822,36 @@ QString Uic::createTableRowColumnImpl( const QDomElement &e, const QString &pare
/*!
Creates the implementation of a layout tag. Called from createObjectImpl().
*/
-QString Uic::createLayoutImpl( const QDomElement &e, const QString& parentClass, const QString& parent, const QString& layout )
+TQString Uic::createLayoutImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout )
{
- QDomElement n;
- QString objClass, objName;
+ TQDomElement n;
+ TQString objClass, objName;
objClass = e.tagName();
- QString qlayout = "QVBoxLayout";
+ TQString qlayout = "TQVBoxLayout";
if ( objClass == "hbox" )
- qlayout = "QHBoxLayout";
+ qlayout = "TQHBoxLayout";
else if ( objClass == "grid" )
- qlayout = "QGridLayout";
+ qlayout = "TQGridLayout";
bool isGrid = e.tagName() == "grid" ;
objName = registerObject( getLayoutName( e ) );
layoutObjects += objName;
- QString margin = DomTool::readProperty( e, "margin", defMargin ).toString();
- QString spacing = DomTool::readProperty( e, "spacing", defSpacing ).toString();
- QString resizeMode = DomTool::readProperty( e, "resizeMode", QString::null ).toString();
+ TQString margin = DomTool::readProperty( e, "margin", defMargin ).toString();
+ TQString spacing = DomTool::readProperty( e, "spacing", defSpacing ).toString();
+ TQString resizeMode = DomTool::readProperty( e, "resizeMode", TQString::null ).toString();
- QString optcells;
+ TQString optcells;
if ( isGrid )
optcells = "1,1,";
- if ( (parentClass == "QGroupBox" || parentClass == "QButtonGroup") && layout.isEmpty() ) {
+ if ( (parentClass == "TQGroupBox" || parentClass == "TQButtonGroup") && layout.isEmpty() ) {
// special case for group box
- out << indent << parent << ".setColumnLayout(0,Qt.Vertical)" << endl;
+ out << indent << parent << ".setColumnLayout(0,TQt.Vertical)" << endl;
out << indent << parent << ".layout().setSpacing(" << spacing << ")" << endl;
out << indent << parent << ".layout().setMargin(" << margin << ")" << endl;
out << indent << objName << " = " << qlayout << "(" << parent << ".layout())" << endl;
- out << indent << objName << ".setAlignment(Qt.AlignTop)" << endl;
+ out << indent << objName << ".setAlignment(TQt.AlignTop)" << endl;
} else {
out << indent << objName << " = " << qlayout << "(";
if ( layout.isEmpty() )
@@ -864,15 +864,15 @@ QString Uic::createLayoutImpl( const QDomElement &e, const QString& parentClass,
out << "," << optcells << margin << "," << spacing << ",\"" << objName << "\")" << endl;
}
if ( !resizeMode.isEmpty() )
- out << indent << objName << ".setResizeMode(QLayout." << resizeMode << ")" << endl;
+ out << indent << objName << ".setResizeMode(TQLayout." << resizeMode << ")" << endl;
if ( !isGrid ) {
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "spacer" ) {
- QString child = createSpacerImpl( n, parentClass, parent, objName );
+ TQString child = createSpacerImpl( n, parentClass, parent, objName );
out << indent << objName << ".addItem(" << child << ")" << endl;
} else if ( tags.contains( n.tagName() ) ) {
- QString child = createObjectImpl( n, parentClass, parent, objName );
+ TQString child = createObjectImpl( n, parentClass, parent, objName );
if ( isLayout( child ) )
out << indent << objName << ".addLayout(" << child << ")" << endl;
else
@@ -881,7 +881,7 @@ QString Uic::createLayoutImpl( const QDomElement &e, const QString& parentClass,
}
} else {
for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) {
- QDomElement ae = n;
+ TQDomElement ae = n;
int row = ae.attribute( "row" ).toInt();
int col = ae.attribute( "column" ).toInt();
int rowspan = ae.attribute( "rowspan" ).toInt();
@@ -891,7 +891,7 @@ QString Uic::createLayoutImpl( const QDomElement &e, const QString& parentClass,
if ( colspan < 1 )
colspan = 1;
if ( n.tagName() == "spacer" ) {
- QString child = createSpacerImpl( n, parentClass, parent, objName );
+ TQString child = createSpacerImpl( n, parentClass, parent, objName );
if ( rowspan * colspan != 1 )
out << indent << objName << ".addMultiCell(" << child << ","
<< row << "," << ( row + rowspan - 1 ) << "," << col << "," << ( col + colspan - 1 ) << ")" << endl;
@@ -899,9 +899,9 @@ QString Uic::createLayoutImpl( const QDomElement &e, const QString& parentClass,
out << indent << objName << ".addItem(" << child << ","
<< row << "," << col << ")" << endl;
} else if ( tags.contains( n.tagName() ) ) {
- QString child = createObjectImpl( n, parentClass, parent, objName );
+ TQString child = createObjectImpl( n, parentClass, parent, objName );
out << endl;
- QString o = "Widget";
+ TQString o = "Widget";
if ( isLayout( child ) )
o = "Layout";
if ( rowspan * colspan != 1 )
@@ -919,31 +919,31 @@ QString Uic::createLayoutImpl( const QDomElement &e, const QString& parentClass,
-QString Uic::createSpacerImpl( const QDomElement &e, const QString& /*parentClass*/, const QString& /*parent*/, const QString& /*layout*/)
+TQString Uic::createSpacerImpl( const TQDomElement &e, const TQString& /*parentClass*/, const TQString& /*parent*/, const TQString& /*layout*/)
{
- QDomElement n;
- QString objClass, objName;
+ TQDomElement n;
+ TQString objClass, objName;
objClass = e.tagName();
objName = registerObject( getObjectName( e ) );
- QSize size = DomTool::readProperty( e, "sizeHint", QSize( 0, 0 ) ).toSize();
- QString sizeType = DomTool::readProperty( e, "sizeType", "Expanding" ).toString();
+ TQSize size = DomTool::readProperty( e, "sizeHint", TQSize( 0, 0 ) ).toSize();
+ TQString sizeType = DomTool::readProperty( e, "sizeType", "Expanding" ).toString();
bool isVspacer = DomTool::readProperty( e, "orientation", "Horizontal" ) == "Vertical";
if ( sizeType != "Expanding" && sizeType != "MinimumExpanding" &&
- DomTool::hasProperty( e, "geometry" ) ) { // compatibility Qt 2.2
- QRect geom = DomTool::readProperty( e, "geometry", QRect(0,0,0,0) ).toRect();
+ DomTool::hasProperty( e, "geometry" ) ) { // compatibility TQt 2.2
+ TQRect geom = DomTool::readProperty( e, "geometry", TQRect(0,0,0,0) ).toRect();
size = geom.size();
}
if ( isVspacer )
- out << indent << objName << " = QSpacerItem("
+ out << indent << objName << " = TQSpacerItem("
<< size.width() << "," << size.height()
- << ",QSizePolicy.Minimum,QSizePolicy." << sizeType << ")" << endl;
+ << ",TQSizePolicy.Minimum,TQSizePolicy." << sizeType << ")" << endl;
else
- out << indent << objName << " = QSpacerItem("
+ out << indent << objName << " = TQSpacerItem("
<< size.width() << "," << size.height()
- << ",QSizePolicy." << sizeType << ",QSizePolicy.Minimum)" << endl;
+ << ",TQSizePolicy." << sizeType << ",TQSizePolicy.Minimum)" << endl;
return objName;
}
@@ -958,35 +958,35 @@ static const char* const ColorRole[] = {
/*!
Creates a colorgroup with name \a name from the color group \a cg
*/
-void Uic::createColorGroupImpl( const QString& name, const QDomElement& e )
+void Uic::createColorGroupImpl( const TQString& name, const TQDomElement& e )
{
- QColorGroup cg;
+ TQColorGroup cg;
int r = -1;
- QDomElement n = e.firstChild().toElement();
- QString color;
+ TQDomElement n = e.firstChild().toElement();
+ TQString color;
while ( !n.isNull() ) {
if ( n.tagName() == "color" ) {
r++;
- QColor col = DomTool::readColor( n );
- color = "QColor(%1,%2,%3)";
+ TQColor col = DomTool::readColor( n );
+ color = "TQColor(%1,%2,%3)";
color = color.arg( col.red() ).arg( col.green() ).arg( col.blue() );
if ( col == white )
- color = "Qt.white";
+ color = "TQt.white";
else if ( col == black )
- color = "Qt.black";
+ color = "TQt.black";
if ( n.nextSibling().toElement().tagName() != "pixmap" ) {
- out << indent << name << ".setColor(QColorGroup." << ColorRole[r] << "," << color << ")" << endl;
+ out << indent << name << ".setColor(TQColorGroup." << ColorRole[r] << "," << color << ")" << endl;
}
} else if ( n.tagName() == "pixmap" ) {
- QString pixmap = n.firstChild().toText().data();
+ TQString pixmap = n.firstChild().toText().data();
if ( pixmapLoaderFunction.isEmpty() ) {
pixmap.prepend( "self." );
} else {
- pixmap.prepend( pixmapLoaderFunction + "(" + QString( externPixmaps ? "\"" : "self." ) );
- pixmap.append( QString( externPixmaps ? "\"" : "" ) + ")" );
+ pixmap.prepend( pixmapLoaderFunction + "(" + TQString( externPixmaps ? "\"" : "self." ) );
+ pixmap.append( TQString( externPixmaps ? "\"" : "" ) + ")" );
}
- out << indent << name << ".setBrush(QColorGroup."
- << ColorRole[r] << ",QBrush(" << color << "," << pixmap << "))" << endl;
+ out << indent << name << ".setBrush(TQColorGroup."
+ << ColorRole[r] << ",TQBrush(" << color << "," << pixmap << "))" << endl;
}
n = n.nextSibling().toElement();
}
@@ -996,16 +996,16 @@ void Uic::createColorGroupImpl( const QString& name, const QDomElement& e )
Auxiliary function to load a color group. The colorgroup must not
contain pixmaps.
*/
-QColorGroup Uic::loadColorGroup( const QDomElement &e )
+TQColorGroup Uic::loadColorGroup( const TQDomElement &e )
{
- QColorGroup cg;
+ TQColorGroup cg;
int r = -1;
- QDomElement n = e.firstChild().toElement();
- QColor col;
+ TQDomElement n = e.firstChild().toElement();
+ TQColor col;
while ( !n.isNull() ) {
if ( n.tagName() == "color" ) {
r++;
- cg.setColor( (QColorGroup::ColorRole)r, (col = DomTool::readColor( n ) ) );
+ cg.setColor( (TQColorGroup::ColorRole)r, (col = DomTool::readColor( n ) ) );
}
n = n.nextSibling().toElement();
}
@@ -1016,10 +1016,10 @@ QColorGroup Uic::loadColorGroup( const QDomElement &e )
the database \a connection and \a table.
*/
-bool Uic::isWidgetInTable( const QDomElement& e, const QString& connection, const QString& table )
+bool Uic::isWidgetInTable( const TQDomElement& e, const TQString& connection, const TQString& table )
{
- QString conn = getDatabaseInfo( e, "connection" );
- QString tab = getDatabaseInfo( e, "table" );
+ TQString conn = getDatabaseInfo( e, "connection" );
+ TQString tab = getDatabaseInfo( e, "table" );
if ( conn == connection && tab == table )
return TRUE;
return FALSE;
@@ -1029,17 +1029,17 @@ bool Uic::isWidgetInTable( const QDomElement& e, const QString& connection, cons
Registers all database connections, cursors and forms.
*/
-void Uic::registerDatabases( const QDomElement& e )
+void Uic::registerDatabases( const TQDomElement& e )
{
- QDomElement n;
- QDomNodeList nl;
+ TQDomElement n;
+ TQDomNodeList nl;
int i;
nl = e.parentNode().toElement().elementsByTagName( "widget" );
for ( i = 0; i < (int) nl.length(); ++i ) {
n = nl.item(i).toElement();
- QString conn = getDatabaseInfo( n, "connection" );
- QString tab = getDatabaseInfo( n, "table" );
- QString fld = getDatabaseInfo( n, "field" );
+ TQString conn = getDatabaseInfo( n, "connection" );
+ TQString tab = getDatabaseInfo( n, "table" );
+ TQString fld = getDatabaseInfo( n, "field" );
if ( !conn.isNull() ) {
dbConnections += conn;
if ( !tab.isNull() ) {
@@ -1059,7 +1059,7 @@ void Uic::registerDatabases( const QDomElement& e )
\sa registeredName(), isObjectRegistered()
*/
-QString Uic::registerObject( const QString& name )
+TQString Uic::registerObject( const TQString& name )
{
if ( objectNames.isEmpty() ) {
// some temporary variables we need
@@ -1069,7 +1069,7 @@ QString Uic::registerObject( const QString& name )
objectNames += "pal";
}
- QString result = name;
+ TQString result = name;
int i;
while ( ( i = result.find(' ' )) != -1 ) {
result[i] = '_';
@@ -1077,10 +1077,10 @@ QString Uic::registerObject( const QString& name )
if ( objectNames.contains( result ) ) {
int i = 2;
- while ( objectNames.contains( result + "_" + QString::number(i) ) )
+ while ( objectNames.contains( result + "_" + TQString::number(i) ) )
i++;
result += "_";
- result += QString::number(i);
+ result += TQString::number(i);
}
objectNames += result;
objectMapper.insert( name, result );
@@ -1093,7 +1093,7 @@ QString Uic::registerObject( const QString& name )
\sa registerObject(), isObjectRegistered()
*/
-QString Uic::registeredName( const QString& name )
+TQString Uic::registeredName( const TQString& name )
{
if ( !objectMapper.contains( name ) )
return name;
@@ -1103,22 +1103,22 @@ QString Uic::registeredName( const QString& name )
/*!
Returns whether the object \a name was registered yet or not.
*/
-bool Uic::isObjectRegistered( const QString& name )
+bool Uic::isObjectRegistered( const TQString& name )
{
return objectMapper.contains( name );
}
/*!
- Unifies the entries in stringlist \a list. Should really be a QStringList feature.
+ Unifies the entries in stringlist \a list. Should really be a TQStringList feature.
*/
-QStringList Uic::unique( const QStringList& list )
+TQStringList Uic::unique( const TQStringList& list )
{
if ( list.isEmpty() )
return list;
- QStringList result;
- for ( QStringList::ConstIterator it = list.begin(); it != list.end(); ++it ) {
+ TQStringList result;
+ for ( TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it ) {
if ( !result.contains(*it) )
result += *it;
}
@@ -1130,7 +1130,7 @@ QStringList Uic::unique( const QStringList& list )
/*!
Creates an instance of class \a objClass, with parent \a parent and name \a objName
*/
-QString Uic::createObjectInstance( const QString& objClass, const QString& parent, const QString& objName )
+TQString Uic::createObjectInstance( const TQString& objClass, const TQString& parent, const TQString& objName )
{
if ( objClass.mid( 1 ) == "ComboBox" ) {
@@ -1139,7 +1139,7 @@ QString Uic::createObjectInstance( const QString& objClass, const QString& paren
return objClass + "(" + parent + ",\"" + objName + "\")";
}
-bool Uic::isLayout( const QString& name ) const
+bool Uic::isLayout( const TQString& name ) const
{
return layoutObjects.contains( name );
}
diff --git a/pyuic3/uic.h b/pyuic3/uic.h
index f00d4a4..710d6e2 100644
--- a/pyuic3/uic.h
+++ b/pyuic3/uic.h
@@ -2,7 +2,7 @@
** Copyright (C) 2000 Trolltech AS. All rights reserved.
** Copyright (c) 2001 Phil Thompson <phil@river-bank.demon.co.uk>
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -42,100 +42,100 @@ public:
uint setIndent(uint i) {uint old = current; current = i; calc(); return old;}
void operator++() {++current; calc();}
void operator--() {--current; calc();}
- operator QString() {return indstr;}
+ operator TQString() {return indstr;}
private:
uint tabStop;
uint current;
- QString indstr;
+ TQString indstr;
void calc();
};
-class Uic : public Qt
+class Uic : public TQt
{
public:
- Uic( const QString &fn, const char *outputFn, QTextStream& out,
- QDomDocument doc, bool subcl, const QString &trm,
- const QString& subclname, QString &uicClass );
+ Uic( const TQString &fn, const char *outputFn, TQTextStream& out,
+ TQDomDocument doc, bool subcl, const TQString &trm,
+ const TQString& subclname, TQString &uicClass );
static void setIndent(const PyIndent &pyind) {indent = pyind; trindent = pyind;}
- void createFormImpl( const QDomElement &e );
-
- void createSubImpl( const QDomElement &e, const QString& subclname );
-
- void createActionImpl( const QDomElement& e, const QString &parent );
- void createToolbarImpl( const QDomElement &e, const QString &parentClass, const QString &parent );
- void createMenuBarImpl( const QDomElement &e, const QString &parentClass, const QString &parent );
- void createPopupMenuImpl( const QDomElement &e, const QString &parentClass, const QString &parent );
- QString createObjectImpl( const QDomElement &e, const QString& parentClass, const QString& parent, const QString& layout = QString::null );
- QString createLayoutImpl( const QDomElement &e, const QString& parentClass, const QString& parent, const QString& layout = QString::null );
- QString createObjectInstance( const QString& objClass, const QString& parent, const QString& objName );
- QString createSpacerImpl( const QDomElement &e, const QString& parentClass, const QString& parent, const QString& layout = QString::null );
- void createExclusiveProperty( const QDomElement & e, const QString& exclusiveProp );
- QString createListBoxItemImpl( const QDomElement &e, const QString &parent, QString *value = 0 );
- QString createIconViewItemImpl( const QDomElement &e, const QString &parent );
- QString createListViewColumnImpl( const QDomElement &e, const QString &parent, QString *value = 0 );
- QString createTableRowColumnImpl( const QDomElement &e, const QString &parent, QString *value = 0 );
- QString createListViewItemImpl( const QDomElement &e, const QString &parent,
- const QString &parentItem );
- void createColorGroupImpl( const QString& cg, const QDomElement& e );
- QColorGroup loadColorGroup( const QDomElement &e );
-
- QDomElement getObjectProperty( const QDomElement& e, const QString& name );
- QString getPixmapLoaderFunction( const QDomElement& e );
- QString getFormClassName( const QDomElement& e );
- QString getClassName( const QDomElement& e );
- QString getObjectName( const QDomElement& e );
- QString getLayoutName( const QDomElement& e );
- QString getInclude( const QString& className );
-
- QString setObjectProperty( const QString& objClass, const QString& obj, const QString &prop, const QDomElement &e, bool stdset );
-
- QString registerObject( const QString& name );
- QString registeredName( const QString& name );
- bool isObjectRegistered( const QString& name );
- QStringList unique( const QStringList& );
-
- QString trcall( const QString& sourceText, const QString& comment = "" );
-
- static void embed( QTextStream& out, const char* project, const QStringList& images );
+ void createFormImpl( const TQDomElement &e );
+
+ void createSubImpl( const TQDomElement &e, const TQString& subclname );
+
+ void createActionImpl( const TQDomElement& e, const TQString &parent );
+ void createToolbarImpl( const TQDomElement &e, const TQString &parentClass, const TQString &parent );
+ void createMenuBarImpl( const TQDomElement &e, const TQString &parentClass, const TQString &parent );
+ void createPopupMenuImpl( const TQDomElement &e, const TQString &parentClass, const TQString &parent );
+ TQString createObjectImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout = TQString::null );
+ TQString createLayoutImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout = TQString::null );
+ TQString createObjectInstance( const TQString& objClass, const TQString& parent, const TQString& objName );
+ TQString createSpacerImpl( const TQDomElement &e, const TQString& parentClass, const TQString& parent, const TQString& layout = TQString::null );
+ void createExclusiveProperty( const TQDomElement & e, const TQString& exclusiveProp );
+ TQString createListBoxItemImpl( const TQDomElement &e, const TQString &parent, TQString *value = 0 );
+ TQString createIconViewItemImpl( const TQDomElement &e, const TQString &parent );
+ TQString createListViewColumnImpl( const TQDomElement &e, const TQString &parent, TQString *value = 0 );
+ TQString createTableRowColumnImpl( const TQDomElement &e, const TQString &parent, TQString *value = 0 );
+ TQString createListViewItemImpl( const TQDomElement &e, const TQString &parent,
+ const TQString &parentItem );
+ void createColorGroupImpl( const TQString& cg, const TQDomElement& e );
+ TQColorGroup loadColorGroup( const TQDomElement &e );
+
+ TQDomElement getObjectProperty( const TQDomElement& e, const TQString& name );
+ TQString getPixmapLoaderFunction( const TQDomElement& e );
+ TQString getFormClassName( const TQDomElement& e );
+ TQString getClassName( const TQDomElement& e );
+ TQString getObjectName( const TQDomElement& e );
+ TQString getLayoutName( const TQDomElement& e );
+ TQString getInclude( const TQString& className );
+
+ TQString setObjectProperty( const TQString& objClass, const TQString& obj, const TQString &prop, const TQDomElement &e, bool stdset );
+
+ TQString registerObject( const TQString& name );
+ TQString registeredName( const TQString& name );
+ bool isObjectRegistered( const TQString& name );
+ TQStringList unique( const TQStringList& );
+
+ TQString trcall( const TQString& sourceText, const TQString& comment = "" );
+
+ static void embed( TQTextStream& out, const char* project, const TQStringList& images );
private:
- QTextStream& out;
- QTextOStream trout;
- QString languageChangeBody;
- QCString outputFileName;
- QStringList objectNames;
- QMap<QString,QString> objectMapper;
- QStringList tags;
- QStringList layouts;
- QString formName;
- QString lastItem;
- QString trmacro;
+ TQTextStream& out;
+ TQTextOStream trout;
+ TQString languageChangeBody;
+ TQCString outputFileName;
+ TQStringList objectNames;
+ TQMap<TQString,TQString> objectMapper;
+ TQStringList tags;
+ TQStringList layouts;
+ TQString formName;
+ TQString lastItem;
+ TQString trmacro;
static PyIndent indent, trindent;
struct Buddy
{
- Buddy( const QString& k, const QString& b )
+ Buddy( const TQString& k, const TQString& b )
: key( k ), buddy( b ) {}
Buddy(){} // for valuelist
- QString key;
- QString buddy;
+ TQString key;
+ TQString buddy;
bool operator==( const Buddy& other ) const
{ return (key == other.key); }
};
struct CustomInclude
{
- QString header;
- QString location;
+ TQString header;
+ TQString location;
};
- QValueList<Buddy> buddies;
+ TQValueList<Buddy> buddies;
- QStringList layoutObjects;
- bool isLayout( const QString& name ) const;
+ TQStringList layoutObjects;
+ bool isLayout( const TQString& name ) const;
uint item_used : 1;
uint cg_used : 1;
@@ -144,39 +144,39 @@ private:
uint externPixmaps : 1;
#if QT_VERSION >= 0x030300
- QString uiFileVersion;
+ TQString uiFileVersion;
#endif
- QString nameOfClass;
- QStringList namespaces;
- QString bareNameOfClass;
- QString pixmapLoaderFunction;
-
- void registerDatabases( const QDomElement& e );
- bool isWidgetInTable( const QDomElement& e, const QString& connection, const QString& table );
- bool isFrameworkCodeGenerated( const QDomElement& e );
- QString getDatabaseInfo( const QDomElement& e, const QString& tag );
- void createFormImpl( const QDomElement& e, const QString& form, const QString& connection, const QString& table );
- void writeFunctionsSubImpl( const QStringList &fuLst, const QStringList &typLst, const QStringList &specLst,
- const QString &subClass, const QString &descr );
- QStringList dbConnections;
- QMap< QString, QStringList > dbCursors;
- QMap< QString, QStringList > dbForms;
+ TQString nameOfClass;
+ TQStringList namespaces;
+ TQString bareNameOfClass;
+ TQString pixmapLoaderFunction;
+
+ void registerDatabases( const TQDomElement& e );
+ bool isWidgetInTable( const TQDomElement& e, const TQString& connection, const TQString& table );
+ bool isFrameworkCodeGenerated( const TQDomElement& e );
+ TQString getDatabaseInfo( const TQDomElement& e, const TQString& tag );
+ void createFormImpl( const TQDomElement& e, const TQString& form, const TQString& connection, const TQString& table );
+ void writeFunctionsSubImpl( const TQStringList &fuLst, const TQStringList &typLst, const TQStringList &specLst,
+ const TQString &subClass, const TQString &descr );
+ TQStringList dbConnections;
+ TQMap< TQString, TQStringList > dbCursors;
+ TQMap< TQString, TQStringList > dbForms;
static bool isMainWindow;
- static QString mkBool( bool b );
- static QString mkBool( const QString& s );
- bool toBool( const QString& s );
- static QString fixString( const QString &str, bool encode = FALSE );
+ static TQString mkBool( bool b );
+ static TQString mkBool( const TQString& s );
+ bool toBool( const TQString& s );
+ static TQString fixString( const TQString &str, bool encode = FALSE );
static bool onlyAscii;
- static QString mkStdSet( const QString& prop );
- static QString getComment( const QDomNode& n );
- QVariant defSpacing, defMargin;
- QString fileName;
+ static TQString mkStdSet( const TQString& prop );
+ static TQString getComment( const TQDomNode& n );
+ TQVariant defSpacing, defMargin;
+ TQString fileName;
bool writeFunctImpl;
- void pySlot(QStringList::ConstIterator &it);
+ void pySlot(TQStringList::ConstIterator &it);
- QString pyCode;
+ TQString pyCode;
bool pyNeedTr, pyNeedTrUtf8;
};
diff --git a/pyuic3/widgetdatabase.cpp b/pyuic3/widgetdatabase.cpp
index 6c447d5..4eb7914 100644
--- a/pyuic3/widgetdatabase.cpp
+++ b/pyuic3/widgetdatabase.cpp
@@ -1,15 +1,15 @@
/**********************************************************************
** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.
**
-** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
-** licenses may use this file in accordance with the Qt Commercial License
+** Licensees holding valid TQt Enterprise Edition or TQt Professional Edition
+** licenses may use this file in accordance with the TQt Commercial License
** Agreement provided with the Software.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
@@ -17,7 +17,7 @@
**
** See http://www.trolltech.com/gpl/ for GPL licensing information.
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
-** information about Qt Commercial License Agreements.
+** information about TQt Commercial License Agreements.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
@@ -43,17 +43,17 @@ const int dbsize = 300;
const int dbcustom = 200;
const int dbdictsize = 211;
static WidgetDatabaseRecord* db[ dbsize ];
-static QDict<int> *className2Id = 0;
+static TQDict<int> *className2Id = 0;
static int dbcount = 0;
static int dbcustomcount = 200;
-static QStrList *wGroups;
-static QStrList *invisibleGroups;
+static TQStrList *wGroups;
+static TQStrList *invisibleGroups;
static bool whatsThisLoaded = FALSE;
-static QPluginManager<WidgetInterface> *widgetPluginManager = 0;
+static TQPluginManager<WidgetInterface> *widgetPluginManager = 0;
static bool plugins_set_up = FALSE;
static bool was_in_setup = FALSE;
-QCleanupHandler<QPluginManager<WidgetInterface> > cleanup_manager;
+TQCleanupHandler<TQPluginManager<WidgetInterface> > cleanup_manager;
WidgetDatabaseRecord::WidgetDatabaseRecord()
{
@@ -117,18 +117,18 @@ void WidgetDatabase::setupDataBase( int id )
return;
#endif
- wGroups = new QStrList;
- invisibleGroups = new QStrList;
+ wGroups = new TQStrList;
+ invisibleGroups = new TQStrList;
invisibleGroups->append( "Forms" );
invisibleGroups->append( "Temp" );
- className2Id = new QDict<int>( dbdictsize );
+ className2Id = new TQDict<int>( dbdictsize );
className2Id->setAutoDelete( TRUE );
WidgetDatabaseRecord *r = 0;
r = new WidgetDatabaseRecord;
r->iconSet = "designer_pushbutton.png";
- r->name = "QPushButton";
+ r->name = "TQPushButton";
r->group = widgetGroup( "Buttons" );
r->toolTip = "Push Button";
r->isCommon = TRUE;
@@ -137,7 +137,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_toolbutton.png";
- r->name = "QToolButton";
+ r->name = "TQToolButton";
r->group = widgetGroup( "Buttons" );
r->toolTip = "Tool Button";
@@ -145,7 +145,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_radiobutton.png";
- r->name = "QRadioButton";
+ r->name = "TQRadioButton";
r->group = widgetGroup( "Buttons" );
r->toolTip = "Radio Button";
r->isCommon = TRUE;
@@ -154,7 +154,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_checkbox.png";
- r->name = "QCheckBox";
+ r->name = "TQCheckBox";
r->group = widgetGroup( "Buttons" );
r->toolTip = "Check Box";
r->isCommon = TRUE;
@@ -163,7 +163,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_groupbox.png";
- r->name = "QGroupBox";
+ r->name = "TQGroupBox";
r->group = widgetGroup( "Containers" );
r->toolTip = "Group Box";
r->isContainer = TRUE;
@@ -172,7 +172,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_buttongroup.png";
- r->name = "QButtonGroup";
+ r->name = "TQButtonGroup";
r->group = widgetGroup( "Containers" );
r->toolTip = "Button Group";
r->isContainer = TRUE;
@@ -182,7 +182,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_frame.png";
- r->name = "QFrame";
+ r->name = "TQFrame";
r->group = widgetGroup( "Containers" );
r->toolTip = "Frame";
r->isContainer = TRUE;
@@ -191,7 +191,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_tabwidget.png";
- r->name = "QTabWidget";
+ r->name = "TQTabWidget";
r->group = widgetGroup( "Containers" );
r->toolTip = "Tabwidget";
r->isContainer = TRUE;
@@ -200,7 +200,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_widgetstack.png";
- r->name = "QWidgetStack";
+ r->name = "TQWidgetStack";
r->group = widgetGroup( "Containers" );
r->toolTip = "Widget Stack";
r->isContainer = TRUE;
@@ -209,7 +209,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_toolbox.png";
- r->name = "QToolBox";
+ r->name = "TQToolBox";
r->group = widgetGroup( "Containers" );
r->toolTip = "Tool Box";
r->isContainer = TRUE;
@@ -218,7 +218,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_listbox.png";
- r->name = "QListBox";
+ r->name = "TQListBox";
r->group = widgetGroup( "Views" );
r->toolTip = "List Box";
r->isCommon = TRUE;
@@ -227,7 +227,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_listview.png";
- r->name = "QListView";
+ r->name = "TQListView";
r->group = widgetGroup( "Views" );
r->toolTip = "List View";
@@ -236,7 +236,7 @@ void WidgetDatabase::setupDataBase( int id )
#if !defined(QT_NO_ICONVIEW) || defined(UIC)
r = new WidgetDatabaseRecord;
r->iconSet = "designer_iconview.png";
- r->name = "QIconView";
+ r->name = "TQIconView";
r->group = widgetGroup( "Views" );
r->toolTip = "Icon View";
@@ -246,7 +246,7 @@ void WidgetDatabase::setupDataBase( int id )
#if !defined(QT_NO_TABLE)
r = new WidgetDatabaseRecord;
r->iconSet = "designer_table.png";
- r->name = "QTable";
+ r->name = "TQTable";
r->group = widgetGroup( "Views" );
r->toolTip = "Table";
@@ -257,7 +257,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_datatable.png";
r->includeFile = "qdatatable.h";
- r->name = "QDataTable";
+ r->name = "TQDataTable";
r->group = widgetGroup( "Database" );
r->toolTip = "Data Table";
@@ -266,7 +266,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_lineedit.png";
- r->name = "QLineEdit";
+ r->name = "TQLineEdit";
r->group = widgetGroup( "Input" );
r->toolTip = "Line Edit";
r->isCommon = TRUE;
@@ -275,7 +275,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_spinbox.png";
- r->name = "QSpinBox";
+ r->name = "TQSpinBox";
r->group = widgetGroup( "Input" );
r->toolTip = "Spin Box";
r->isCommon = TRUE;
@@ -284,7 +284,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_dateedit.png";
- r->name = "QDateEdit";
+ r->name = "TQDateEdit";
r->group = widgetGroup( "Input" );
r->toolTip = "Date Edit";
r->includeFile = "qdatetimeedit.h";
@@ -293,7 +293,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_timeedit.png";
- r->name = "QTimeEdit";
+ r->name = "TQTimeEdit";
r->group = widgetGroup( "Input" );
r->toolTip = "Time Edit";
r->includeFile = "qdatetimeedit.h";
@@ -302,7 +302,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_datetimeedit.png";
- r->name = "QDateTimeEdit";
+ r->name = "TQDateTimeEdit";
r->group = widgetGroup( "Input" );
r->toolTip = "Date-Time Edit";
r->includeFile = "qdatetimeedit.h";
@@ -311,7 +311,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_multilineedit.png";
- r->name = "QMultiLineEdit";
+ r->name = "TQMultiLineEdit";
r->group = widgetGroup( "Temp" );
r->toolTip = "Multi Line Edit";
@@ -319,7 +319,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_richtextedit.png";
- r->name = "QTextEdit";
+ r->name = "TQTextEdit";
r->group = widgetGroup( "Input" );
r->toolTip = "Rich Text Edit";
r->isCommon = TRUE;
@@ -328,7 +328,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_combobox.png";
- r->name = "QComboBox";
+ r->name = "TQComboBox";
r->group = widgetGroup( "Input" );
r->toolTip = "Combo Box";
r->isCommon = TRUE;
@@ -337,7 +337,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_slider.png";
- r->name = "QSlider";
+ r->name = "TQSlider";
r->group = widgetGroup( "Input" );
r->toolTip = "Slider";
@@ -345,7 +345,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_scrollbar.png";
- r->name = "QScrollBar";
+ r->name = "TQScrollBar";
r->group = widgetGroup( "Input" );
r->toolTip = "Scrollbar";
@@ -353,7 +353,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_dial.png";
- r->name = "QDial";
+ r->name = "TQDial";
r->group = widgetGroup( "Input" );
r->toolTip = "Dial";
@@ -361,7 +361,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_label.png";
- r->name = "QLabel";
+ r->name = "TQLabel";
r->group = widgetGroup( "Temp" );
r->toolTip = "Label";
@@ -388,7 +388,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_lcdnumber.png";
- r->name = "QLCDNumber";
+ r->name = "TQLCDNumber";
r->group = widgetGroup( "Display" );
r->toolTip = "LCD Number";
@@ -406,7 +406,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_progress.png";
- r->name = "QProgressBar";
+ r->name = "TQProgressBar";
r->group = widgetGroup( "Display" );
r->toolTip = "Progress Bar";
@@ -414,7 +414,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_textview.png";
- r->name = "QTextView";
+ r->name = "TQTextView";
r->group = widgetGroup( "Temp" );
r->toolTip = "Text View";
@@ -422,7 +422,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_textbrowser.png";
- r->name = "QTextBrowser";
+ r->name = "TQTextBrowser";
r->group = widgetGroup( "Display" );
r->toolTip = "Text Browser";
@@ -438,35 +438,35 @@ void WidgetDatabase::setupDataBase( int id )
append( r );
r = new WidgetDatabaseRecord;
- r->name = "QWidget";
+ r->name = "TQWidget";
r->isForm = TRUE;
r->group = widgetGroup( "Forms" );
append( r );
r = new WidgetDatabaseRecord;
- r->name = "QDialog";
+ r->name = "TQDialog";
r->group = widgetGroup( "Forms" );
r->isForm = TRUE;
append( r );
r = new WidgetDatabaseRecord;
- r->name = "QWizard";
+ r->name = "TQWizard";
r->group = widgetGroup( "Forms" );
r->isContainer = TRUE;
append( r );
r = new WidgetDatabaseRecord;
- r->name = "QDesignerWizard";
+ r->name = "TQDesignerWizard";
r->group = widgetGroup( "Forms" );
r->isContainer = TRUE;
append( r );
r = new WidgetDatabaseRecord;
- r->name = "QLayoutWidget";
+ r->name = "TQLayoutWidget";
r->group = widgetGroup( "Temp" );
r->includeFile = "";
r->isContainer = TRUE;
@@ -474,7 +474,7 @@ void WidgetDatabase::setupDataBase( int id )
append( r );
r = new WidgetDatabaseRecord;
- r->name = "QSplitter";
+ r->name = "TQSplitter";
r->group = widgetGroup( "Temp" );
r->includeFile = "qsplitter.h";
r->isContainer = TRUE;
@@ -483,7 +483,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_tabwidget.png";
- r->name = "QDesignerTabWidget";
+ r->name = "TQDesignerTabWidget";
r->group = widgetGroup( "Temp" );
r->isContainer = TRUE;
@@ -491,7 +491,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_tabwidget.png";
- r->name = "QDesignerWidget";
+ r->name = "TQDesignerWidget";
r->group = widgetGroup( "Temp" );
r->isContainer = TRUE;
@@ -499,7 +499,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "designer_tabwidget.png";
- r->name = "QDesignerDialog";
+ r->name = "TQDesignerDialog";
r->group = widgetGroup( "Temp" );
r->isContainer = TRUE;
@@ -507,7 +507,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "";
- r->name = "QMainWindow";
+ r->name = "TQMainWindow";
r->includeFile = "qmainwindow.h";
r->group = widgetGroup( "Temp" );
r->isContainer = TRUE;
@@ -516,7 +516,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "";
- r->name = "QDesignerAction";
+ r->name = "TQDesignerAction";
r->includeFile = "qaction.h";
r->group = widgetGroup( "Temp" );
r->isContainer = FALSE;
@@ -525,7 +525,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "";
- r->name = "QDesignerActionGroup";
+ r->name = "TQDesignerActionGroup";
r->includeFile = "qaction.h";
r->group = widgetGroup( "Temp" );
r->isContainer = FALSE;
@@ -534,7 +534,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "";
- r->name = "QScrollView";
+ r->name = "TQScrollView";
r->includeFile = "qscrollview.h";
r->group = widgetGroup( "Temp" );
r->isContainer = TRUE;
@@ -544,7 +544,7 @@ void WidgetDatabase::setupDataBase( int id )
#ifndef QT_NO_SQL
r = new WidgetDatabaseRecord;
r->iconSet = "";
- r->name = "QDataBrowser";
+ r->name = "TQDataBrowser";
r->includeFile = "qdatabrowser.h";
r->group = widgetGroup( "Database" );
r->toolTip = "Data Browser";
@@ -555,7 +555,7 @@ void WidgetDatabase::setupDataBase( int id )
r = new WidgetDatabaseRecord;
r->iconSet = "";
- r->name = "QDataView";
+ r->name = "TQDataView";
r->includeFile = "qdataview.h";
r->group = widgetGroup( "Database" );
r->toolTip = "Data View";
@@ -575,8 +575,8 @@ void WidgetDatabase::setupPlugins()
if ( plugins_set_up )
return;
plugins_set_up = TRUE;
- QStringList widgets = widgetManager()->featureList();
- for ( QStringList::Iterator it = widgets.begin(); it != widgets.end(); ++it ) {
+ TQStringList widgets = widgetManager()->featureList();
+ for ( TQStringList::Iterator it = widgets.begin(); it != widgets.end(); ++it ) {
if ( hasWidget( *it ) )
continue;
WidgetDatabaseRecord *r = new WidgetDatabaseRecord;
@@ -586,11 +586,11 @@ void WidgetDatabase::setupPlugins()
continue;
#ifndef UIC
- QIconSet icon = iface->iconSet( *it );
+ TQIconSet icon = iface->iconSet( *it );
if ( !icon.pixmap().isNull() )
- r->icon = new QIconSet( icon );
+ r->icon = new TQIconSet( icon );
#endif
- QString grp = iface->group( *it );
+ TQString grp = iface->group( *it );
if ( grp.isEmpty() )
grp = "3rd party widgets";
r->group = widgetGroup( grp );
@@ -629,24 +629,24 @@ int WidgetDatabase::startCustom()
Returns the iconset which represents the class registered as \a id.
*/
-QIconSet WidgetDatabase::iconSet( int id )
+TQIconSet WidgetDatabase::iconSet( int id )
{
setupDataBase( id );
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return QIconSet();
+ return TQIconSet();
#if !defined(UIC) && !defined(RESOURCE)
if ( !r->icon ) {
if ( r->iconSet.isEmpty() )
- return QIconSet();
- QPixmap pix = QPixmap::fromMimeSource( r->iconSet );
+ return TQIconSet();
+ TQPixmap pix = TQPixmap::fromMimeSource( r->iconSet );
if ( pix.isNull() )
- pix = QPixmap( r->iconSet );
- r->icon = new QIconSet( pix );
+ pix = TQPixmap( r->iconSet );
+ r->icon = new TQIconSet( pix );
}
return *r->icon;
#else
- return QIconSet();
+ return TQIconSet();
#endif
}
@@ -654,12 +654,12 @@ QIconSet WidgetDatabase::iconSet( int id )
Returns the classname of the widget which is registered as \a id.
*/
-QString WidgetDatabase::className( int id )
+TQString WidgetDatabase::className( int id )
{
setupDataBase( id );
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return QString::null;
+ return TQString::null;
return r->name;
}
@@ -667,12 +667,12 @@ QString WidgetDatabase::className( int id )
Returns the group the widget registered as \a id belongs to.
*/
-QString WidgetDatabase::group( int id )
+TQString WidgetDatabase::group( int id )
{
setupDataBase( id );
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return QString::null;
+ return TQString::null;
return r->group;
}
@@ -680,12 +680,12 @@ QString WidgetDatabase::group( int id )
Returns the tooltip text of the widget which is registered as \a id.
*/
-QString WidgetDatabase::toolTip( int id )
+TQString WidgetDatabase::toolTip( int id )
{
setupDataBase( id );
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return QString::null;
+ return TQString::null;
return r->toolTip;
}
@@ -693,12 +693,12 @@ QString WidgetDatabase::toolTip( int id )
Returns the what's this? text of the widget which is registered as \a id.
*/
-QString WidgetDatabase::whatsThis( int id )
+TQString WidgetDatabase::whatsThis( int id )
{
setupDataBase( id );
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return QString::null;
+ return TQString::null;
return r->whatsThis;
}
@@ -706,12 +706,12 @@ QString WidgetDatabase::whatsThis( int id )
Returns the include file if the widget which is registered as \a id.
*/
-QString WidgetDatabase::includeFile( int id )
+TQString WidgetDatabase::includeFile( int id )
{
setupDataBase( id );
WidgetDatabaseRecord *r = at( id );
if ( !r )
- return QString::null;
+ return TQString::null;
if ( r->includeFile.isNull() )
return r->name.lower() + ".h";
return r->includeFile;
@@ -749,11 +749,11 @@ bool WidgetDatabase::isCommon( int id )
return r->isCommon;
}
-QString WidgetDatabase::createWidgetName( int id )
+TQString WidgetDatabase::createWidgetName( int id )
{
setupDataBase( id );
- QString n = className( id );
- if ( n == "QLayoutWidget" )
+ TQString n = className( id );
+ if ( n == "TQLayoutWidget" )
n = "Layout";
if ( n[ 0 ] == 'Q' && n[ 1 ].lower() != n[ 1 ] )
n = n.mid( 1 );
@@ -764,14 +764,14 @@ QString WidgetDatabase::createWidgetName( int id )
WidgetDatabaseRecord *r = at( id );
if ( !r )
return n;
- n += QString::number( ++r->nameCounter );
+ n += TQString::number( ++r->nameCounter );
n[0] = n[0].lower();
return n;
}
/*! Returns the id for \a name or -1 if \a name is unknown.
*/
-int WidgetDatabase::idFromClassName( const QString &name )
+int WidgetDatabase::idFromClassName( const TQString &name )
{
setupDataBase( -1 );
if ( name.isEmpty() )
@@ -780,7 +780,7 @@ int WidgetDatabase::idFromClassName( const QString &name )
if ( i )
return *i;
if ( name == "FormWindow" )
- return idFromClassName( "QLayoutWidget" );
+ return idFromClassName( "TQLayoutWidget" );
#ifdef UIC
setupDataBase( -2 );
i = className2Id->find( name );
@@ -790,7 +790,7 @@ int WidgetDatabase::idFromClassName( const QString &name )
return -1;
}
-bool WidgetDatabase::hasWidget( const QString &name )
+bool WidgetDatabase::hasWidget( const TQString &name )
{
return className2Id->find( name ) != 0;
}
@@ -813,7 +813,7 @@ void WidgetDatabase::insert( int index, WidgetDatabaseRecord *r )
db[ index ] = r;
className2Id->insert( r->name, new int( index ) );
if ( index < dbcustom )
- dbcount = QMAX( dbcount, index );
+ dbcount = TQMAX( dbcount, index );
}
void WidgetDatabase::append( WidgetDatabaseRecord *r )
@@ -823,14 +823,14 @@ void WidgetDatabase::append( WidgetDatabaseRecord *r )
insert( dbcount++, r );
}
-QString WidgetDatabase::widgetGroup( const QString &g )
+TQString WidgetDatabase::widgetGroup( const TQString &g )
{
if ( wGroups->find( g ) == -1 )
wGroups->append( g );
return g;
}
-bool WidgetDatabase::isGroupEmpty( const QString &grp )
+bool WidgetDatabase::isGroupEmpty( const TQString &grp )
{
WidgetDatabaseRecord *r = 0;
for ( int i = 0; i < dbcount; ++i ) {
@@ -842,12 +842,12 @@ bool WidgetDatabase::isGroupEmpty( const QString &grp )
return TRUE;
}
-QString WidgetDatabase::widgetGroup( int i )
+TQString WidgetDatabase::widgetGroup( int i )
{
setupDataBase( -1 );
if ( i >= 0 && i < (int)wGroups->count() )
return wGroups->at( i );
- return QString::null;
+ return TQString::null;
}
int WidgetDatabase::numWidgetGroups()
@@ -856,7 +856,7 @@ int WidgetDatabase::numWidgetGroups()
return wGroups->count();
}
-bool WidgetDatabase::isGroupVisible( const QString &g )
+bool WidgetDatabase::isGroupVisible( const TQString &g )
{
setupDataBase( -1 );
return invisibleGroups->find( g ) == -1;
@@ -868,8 +868,8 @@ int WidgetDatabase::addCustomWidget( WidgetDatabaseRecord *r )
return dbcustomcount - 1;
}
-void WidgetDatabase::customWidgetClassNameChanged( const QString &oldName,
- const QString &newName )
+void WidgetDatabase::customWidgetClassNameChanged( const TQString &oldName,
+ const TQString &newName )
{
int id = idFromClassName( oldName );
if ( id == -1 )
@@ -901,16 +901,16 @@ bool WidgetDatabase::isWhatsThisLoaded()
return whatsThisLoaded;
}
-void WidgetDatabase::loadWhatsThis( const QString &docPath )
+void WidgetDatabase::loadWhatsThis( const TQString &docPath )
{
- QString whatsthisFile = docPath + "/whatsthis";
- QFile f( whatsthisFile );
+ TQString whatsthisFile = docPath + "/whatsthis";
+ TQFile f( whatsthisFile );
if ( !f.open( IO_ReadOnly ) )
return;
- QTextStream ts( &f );
+ TQTextStream ts( &f );
while ( !ts.atEnd() ) {
- QString s = ts.readLine();
- QStringList l = QStringList::split( " | ", s );
+ TQString s = ts.readLine();
+ TQStringList l = TQStringList::split( " | ", s );
int id = idFromClassName( l[ 1 ] );
WidgetDatabaseRecord *r = at( id );
if ( r )
@@ -920,30 +920,30 @@ void WidgetDatabase::loadWhatsThis( const QString &docPath )
}
-// ### Qt 3.1: make these publically accessible via QWidgetDatabase API
+// ### TQt 3.1: make these publically accessible via TQWidgetDatabase API
#if defined(UIC)
bool dbnounload = FALSE;
-QStringList *dbpaths = 0;
+TQStringList *dbpaths = 0;
#else
-extern QString *qwf_plugin_dir;
+extern TQString *qwf_plugin_dir;
#endif
-QPluginManager<WidgetInterface> *widgetManager()
+TQPluginManager<WidgetInterface> *widgetManager()
{
if ( !widgetPluginManager ) {
- QString pluginDir = "/designer";
+ TQString pluginDir = "/designer";
#if !defined(UIC)
if ( qwf_plugin_dir )
pluginDir = *qwf_plugin_dir;
#endif
- widgetPluginManager = new QPluginManager<WidgetInterface>( IID_Widget, QApplication::libraryPaths(), pluginDir );
+ widgetPluginManager = new TQPluginManager<WidgetInterface>( IID_Widget, TQApplication::libraryPaths(), pluginDir );
cleanup_manager.add( &widgetPluginManager );
#if defined(UIC)
if ( dbnounload )
widgetPluginManager->setAutoUnload( FALSE );
if ( dbpaths ) {
- QStringList::ConstIterator it = dbpaths->begin();
+ TQStringList::ConstIterator it = dbpaths->begin();
for ( ; it != dbpaths->end(); ++it )
widgetPluginManager->addLibraryPath( *it );
}
diff --git a/pyuic3/widgetdatabase.h b/pyuic3/widgetdatabase.h
index b44ef88..10685ad 100644
--- a/pyuic3/widgetdatabase.h
+++ b/pyuic3/widgetdatabase.h
@@ -1,15 +1,15 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.
**
-** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
-** licenses may use this file in accordance with the Qt Commercial License
+** Licensees holding valid TQt Enterprise Edition or TQt Professional Edition
+** licenses may use this file in accordance with the TQt Commercial License
** Agreement provided with the Software.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
@@ -17,7 +17,7 @@
**
** See http://www.trolltech.com/gpl/ for GPL licensing information.
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
-** information about Qt Commercial License Agreements.
+** information about TQt Commercial License Agreements.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
@@ -33,22 +33,22 @@
#include <private/qpluginmanager_p.h>
-extern QPluginManager<WidgetInterface> *widgetManager();
+extern TQPluginManager<WidgetInterface> *widgetManager();
struct WidgetDatabaseRecord
{
WidgetDatabaseRecord();
~WidgetDatabaseRecord();
- QString iconSet, name, group, toolTip, whatsThis, includeFile;
+ TQString iconSet, name, group, toolTip, whatsThis, includeFile;
uint isContainer : 1;
uint isForm : 1;
uint isCommon : 1;
uint isPlugin : 1;
- QIconSet *icon;
+ TQIconSet *icon;
int nameCounter;
};
-class WidgetDatabase : public Qt
+class WidgetDatabase : public TQt
{
public:
WidgetDatabase();
@@ -58,38 +58,38 @@ public:
static int count();
static int startCustom();
- static QIconSet iconSet( int id );
- static QString className( int id );
- static QString group( int id );
- static QString toolTip( int id );
- static QString whatsThis( int id );
- static QString includeFile( int id );
+ static TQIconSet iconSet( int id );
+ static TQString className( int id );
+ static TQString group( int id );
+ static TQString toolTip( int id );
+ static TQString whatsThis( int id );
+ static TQString includeFile( int id );
static bool isForm( int id );
static bool isContainer( int id );
static bool isCommon( int id );
- static int idFromClassName( const QString &name );
- static QString createWidgetName( int id );
+ static int idFromClassName( const TQString &name );
+ static TQString createWidgetName( int id );
static WidgetDatabaseRecord *at( int index );
static void insert( int index, WidgetDatabaseRecord *r );
static void append( WidgetDatabaseRecord *r );
- static QString widgetGroup( const QString &g );
- static QString widgetGroup( int i );
+ static TQString widgetGroup( const TQString &g );
+ static TQString widgetGroup( int i );
static int numWidgetGroups();
- static bool isGroupVisible( const QString &g );
- static bool isGroupEmpty( const QString &grp );
+ static bool isGroupVisible( const TQString &g );
+ static bool isGroupEmpty( const TQString &grp );
static int addCustomWidget( WidgetDatabaseRecord *r );
static bool isCustomWidget( int id );
static bool isCustomPluginWidget( int id );
static bool isWhatsThisLoaded();
- static void loadWhatsThis( const QString &docPath );
+ static void loadWhatsThis( const TQString &docPath );
- static bool hasWidget( const QString &name );
- static void customWidgetClassNameChanged( const QString &oldName, const QString &newName );
+ static bool hasWidget( const TQString &name );
+ static void customWidgetClassNameChanged( const TQString &oldName, const TQString &newName );
};
diff --git a/pyuic3/widgetinterface.h b/pyuic3/widgetinterface.h
index bf6bcd5..50f8e6d 100644
--- a/pyuic3/widgetinterface.h
+++ b/pyuic3/widgetinterface.h
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2000-2001 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -23,7 +23,7 @@
#include <private/qwidgetinterface_p.h>
-#define WidgetInterface QWidgetFactoryInterface
+#define WidgetInterface TQWidgetFactoryInterface
#define IID_Widget IID_QWidgetFactory
#endif
diff --git a/sip/qt/copying.sip b/sip/qt/copying.sip
index 463904b..6da646e 100644
--- a/sip/qt/copying.sip
+++ b/sip/qt/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/qt/qaccel.sip b/sip/qt/qaccel.sip
index 9c547ef..1dbf06c 100644
--- a/sip/qt/qaccel.sip
+++ b/sip/qt/qaccel.sip
@@ -1,44 +1,44 @@
-// This is the SIP interface definition for QAccel.
+// This is the SIP interface definition for TQAccel.
//
// 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>QAccel</Title>
+<Sect2><Title>TQAccel</Title>
<Para>
-<Literal>QAccel</Literal> is fully implemented.
+<Literal>TQAccel</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QAccel : QObject
+class TQAccel : TQObject
{
%TypeHeaderCode
#include <qaccel.h>
%End
public:
- QAccel(QWidget * /TransferThis/,char * = 0);
-%If (Qt_2_1_0 -)
- QAccel(QWidget *,QObject * /TransferThis/,char * = 0);
+ TQAccel(TQWidget * /TransferThis/,char * = 0);
+%If (TQt_2_1_0 -)
+ TQAccel(TQWidget *,TQObject * /TransferThis/,char * = 0);
%End
bool isEnabled();
@@ -46,22 +46,22 @@ public:
uint count();
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int insertItem(int,int = -1);
%End
-%If (Qt_3_0_0 -)
- int insertItem(const QKeySequence &,int = -1);
+%If (TQt_3_0_0 -)
+ int insertItem(const TQKeySequence &,int = -1);
%End
void removeItem(int);
void clear();
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int key(int);
int findKey(int) const;
%End
-%If (Qt_3_0_0 -)
- QKeySequence key(int);
- int findKey(const QKeySequence &) const;
+%If (TQt_3_0_0 -)
+ TQKeySequence key(int);
+ int findKey(const TQKeySequence &) const;
%End
bool isItemEnabled(int) const;
@@ -72,33 +72,33 @@ public:
void repairEventFilter();
-%If (Qt_2_00 -)
- void setWhatsThis(int,const QString &);
- QString whatsThis(int) const;
+%If (TQt_2_00 -)
+ void setWhatsThis(int,const TQString &);
+ TQString whatsThis(int) const;
void setIgnoreWhatsThis(bool);
bool ignoreWhatsThis() const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
- static int shortcutKey(const QString &);
- static QString keyToString(int);
- static int stringToKey(const QString &);
+%If (TQt_2_00 - TQt_3_0_0)
+ static int shortcutKey(const TQString &);
+ static TQString keyToString(int);
+ static int stringToKey(const TQString &);
%End
-%If (Qt_3_0_0 -)
- static QKeySequence shortcutKey(const QString &);
- static QString keyToString(QKeySequence);
- static QKeySequence stringToKey(const QString &);
+%If (TQt_3_0_0 -)
+ static TQKeySequence shortcutKey(const TQString &);
+ static TQString keyToString(TQKeySequence);
+ static TQKeySequence stringToKey(const TQString &);
%End
signals:
void activated(int);
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void activatedAmbiguously(int);
%End
protected:
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
private:
- QAccel(const QAccel &);
+ TQAccel(const TQAccel &);
};
diff --git a/sip/qt/qaction.sip b/sip/qt/qaction.sip
index e1f5c70..a8815fd 100644
--- a/sip/qt/qaction.sip
+++ b/sip/qt/qaction.sip
@@ -1,132 +1,132 @@
-// This is the SIP interface definition for QAction and QActionGroup.
+// This is the SIP interface definition for TQAction and TQActionGroup.
//
// 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>QAction (Qt v2.2+)</Title>
+<Sect2><Title>TQAction (TQt v2.2+)</Title>
<Para>
-<Literal>QAction</Literal> is fully implemented.
+<Literal>TQAction</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QActionGroup (Qt v2.2+)</Title>
+<Sect2><Title>TQActionGroup (TQt v2.2+)</Title>
<Para>
-<Literal>QActionGroup</Literal> is fully implemented.
+<Literal>TQActionGroup</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_ACTION)
-%If (Qt_2_2_0 -)
+%If (TQt_ACTION)
+%If (TQt_2_2_0 -)
-class QAction : QObject
+class TQAction : TQObject
{
%TypeHeaderCode
#include <qaction.h>
%End
public:
-%If (- Qt_3_0_0)
- QAction(QObject * /TransferThis/ = 0,const char * = 0,bool = 0);
- QAction(const QString &,const QIconSet &,const QString &,int,
- QObject * /TransferThis/,const char * = 0,bool = 0);
- QAction(const QString &,const QString &,int,QObject * /TransferThis/,
+%If (- TQt_3_0_0)
+ TQAction(TQObject * /TransferThis/ = 0,const char * = 0,bool = 0);
+ TQAction(const TQString &,const TQIconSet &,const TQString &,int,
+ TQObject * /TransferThis/,const char * = 0,bool = 0);
+ TQAction(const TQString &,const TQString &,int,TQObject * /TransferThis/,
const char * = 0,bool = 0);
%End
-%If (Qt_3_0_0 - Qt_3_2_0)
- QAction(QObject * /TransferThis/,const char * = 0,bool = 0);
+%If (TQt_3_0_0 - TQt_3_2_0)
+ TQAction(TQObject * /TransferThis/,const char * = 0,bool = 0);
%End
-%If (Qt_3_2_0 -)
- QAction(QObject * /TransferThis/,const char * = 0);
- QAction(const QString &,QKeySequence,QObject * /TransferThis/,
+%If (TQt_3_2_0 -)
+ TQAction(TQObject * /TransferThis/,const char * = 0);
+ TQAction(const TQString &,TQKeySequence,TQObject * /TransferThis/,
const char * = 0);
- QAction(const QIconSet &,const QString &,QKeySequence,
- QObject * /TransferThis/,const char * = 0);
+ TQAction(const TQIconSet &,const TQString &,TQKeySequence,
+ TQObject * /TransferThis/,const char * = 0);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
// Obsolete.
- QAction(const QString &,const QIconSet &,const QString &,QKeySequence,
- QObject * /TransferThis/,const char * = 0,bool = 0);
+ TQAction(const TQString &,const TQIconSet &,const TQString &,TQKeySequence,
+ TQObject * /TransferThis/,const char * = 0,bool = 0);
// Obsolete.
- QAction(const QString &,const QString &,QKeySequence,
- QObject * /TransferThis/,const char * = 0,bool = 0);
+ TQAction(const TQString &,const TQString &,TQKeySequence,
+ TQObject * /TransferThis/,const char * = 0,bool = 0);
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
// Obsolete.
- QAction(QObject * /TransferThis/,const char *,bool);
-%End
-
- virtual void setIconSet(const QIconSet &);
- QIconSet iconSet() const;
- virtual void setText(const QString &);
- QString text() const;
- virtual void setMenuText(const QString &);
- QString menuText() const;
- virtual void setToolTip(const QString &);
- QString toolTip() const;
- virtual void setStatusTip(const QString &);
- QString statusTip() const;
- virtual void setWhatsThis(const QString &);
- QString whatsThis() const;
-%If (- Qt_3_0_0)
+ TQAction(TQObject * /TransferThis/,const char *,bool);
+%End
+
+ virtual void setIconSet(const TQIconSet &);
+ TQIconSet iconSet() const;
+ virtual void setText(const TQString &);
+ TQString text() const;
+ virtual void setMenuText(const TQString &);
+ TQString menuText() const;
+ virtual void setToolTip(const TQString &);
+ TQString toolTip() const;
+ virtual void setStatusTip(const TQString &);
+ TQString statusTip() const;
+ virtual void setWhatsThis(const TQString &);
+ TQString whatsThis() const;
+%If (- TQt_3_0_0)
virtual void setAccel(int);
int accel() const;
%End
-%If (Qt_3_0_0 -)
- virtual void setAccel(const QKeySequence &);
- QKeySequence accel() const;
+%If (TQt_3_0_0 -)
+ virtual void setAccel(const TQKeySequence &);
+ TQKeySequence accel() const;
%End
virtual void setToggleAction(bool);
bool isToggleAction() const;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual void setOn(bool);
%End
bool isOn() const;
bool isEnabled() const;
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
bool isVisible() const;
%End
- virtual bool addTo(QWidget *);
- virtual bool removeFrom(QWidget *);
+ virtual bool addTo(TQWidget *);
+ virtual bool removeFrom(TQWidget *);
protected:
-%If (Qt_3_0_0 -)
- virtual void addedTo(QWidget *,QWidget *);
- virtual void addedTo(int,QPopupMenu *);
+%If (TQt_3_0_0 -)
+ virtual void addedTo(TQWidget *,TQWidget *);
+ virtual void addedTo(int,TQPopupMenu *);
%End
public slots:
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
void activate();
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void toggle();
virtual void setOn(bool);
%End
virtual void setEnabled(bool);
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
void setDisabled(bool);
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void setVisible(bool);
%End
@@ -135,74 +135,74 @@ signals:
void toggled(bool);
private:
-%If (Qt_3_1_0 -)
- QAction(const QAction &);
+%If (TQt_3_1_0 -)
+ TQAction(const TQAction &);
%End
};
-class QActionGroup : QAction
+class TQActionGroup : TQAction
{
%TypeHeaderCode
#include <qaction.h>
%End
public:
-%If (- Qt_3_0_0)
- QActionGroup(QWidget * /TransferThis/,const char * = 0,bool = 1);
+%If (- TQt_3_0_0)
+ TQActionGroup(TQWidget * /TransferThis/,const char * = 0,bool = 1);
%End
-%If (Qt_3_0_0 - Qt_3_2_0)
- QActionGroup(QObject * /TransferThis/,const char * = 0,bool = 1);
+%If (TQt_3_0_0 - TQt_3_2_0)
+ TQActionGroup(TQObject * /TransferThis/,const char * = 0,bool = 1);
%End
-%If (Qt_3_2_0 -)
- QActionGroup(QObject * /TransferThis/,const char * = 0);
+%If (TQt_3_2_0 -)
+ TQActionGroup(TQObject * /TransferThis/,const char * = 0);
// Obsolete.
- QActionGroup(QObject * /TransferThis/,const char *,bool);
+ TQActionGroup(TQObject * /TransferThis/,const char *,bool);
%End
void setExclusive(bool);
bool isExclusive() const;
-%If (- Qt_3_0_0)
- void insert(QAction *);
+%If (- TQt_3_0_0)
+ void insert(TQAction *);
%End
-%If (Qt_3_0_0 -)
- void add(QAction *);
+%If (TQt_3_0_0 -)
+ void add(TQAction *);
void addSeparator();
%End
- bool addTo(QWidget *);
- bool removeFrom(QWidget *);
+ bool addTo(TQWidget *);
+ bool removeFrom(TQWidget *);
void setEnabled(bool);
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void setToggleAction(bool);
void setOn(bool);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setUsesDropDown(bool);
bool usesDropDown() const;
- void setIconSet(const QIconSet &);
- void setText(const QString &);
- void setMenuText(const QString &);
- void setToolTip(const QString &);
- void setWhatsThis(const QString &);
+ void setIconSet(const TQIconSet &);
+ void setText(const TQString &);
+ void setMenuText(const TQString &);
+ void setToolTip(const TQString &);
+ void setWhatsThis(const TQString &);
%End
protected:
-%If (Qt_3_0_0 -)
- void childEvent(QChildEvent *);
- virtual void addedTo(QWidget *,QWidget *,QAction *);
- virtual void addedTo(int,QPopupMenu *,QAction *);
- virtual void addedTo(QWidget *,QWidget *);
- virtual void addedTo(int,QPopupMenu *);
+%If (TQt_3_0_0 -)
+ void childEvent(TQChildEvent *);
+ virtual void addedTo(TQWidget *,TQWidget *,TQAction *);
+ virtual void addedTo(int,TQPopupMenu *,TQAction *);
+ virtual void addedTo(TQWidget *,TQWidget *);
+ virtual void addedTo(int,TQPopupMenu *);
%End
signals:
- void selected(QAction *);
+ void selected(TQAction *);
private:
-%If (Qt_3_1_0 -)
- QActionGroup(const QActionGroup &);
+%If (TQt_3_1_0 -)
+ TQActionGroup(const TQActionGroup &);
%End
};
diff --git a/sip/qt/qapplication.sip b/sip/qt/qapplication.sip
index 57ff0d7..7093a33 100644
--- a/sip/qt/qapplication.sip
+++ b/sip/qt/qapplication.sip
@@ -1,57 +1,57 @@
-// This is the SIP interface definition for QApplication.
+// This is the SIP interface definition for TQApplication.
//
// 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>QApplication</Title>
+<Sect2><Title>TQApplication</Title>
<FuncSynopsis>
- <FuncDef><Function>QApplication</Function></FuncDef>
+ <FuncDef><Function>TQApplication</Function></FuncDef>
<ParamDef>int &amp;<Parameter>argc</Parameter></ParamDef>
<ParamDef>char **<Parameter>argv</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes one parameter which is a list of argument strings. Arguments
-used by Qt are removed from the list.
+used by TQt are removed from the list.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QApplication</Function></FuncDef>
+ <FuncDef><Function>TQApplication</Function></FuncDef>
<ParamDef>int &amp;<Parameter>argc</Parameter></ParamDef>
<ParamDef>char **<Parameter>argv</Parameter></ParamDef>
<ParamDef>bool <Parameter>GUIenabled</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes two parameters, the first of which is a list of argument strings.
-Arguments used by Qt are removed from the list.
+Arguments used by TQt are removed from the list.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QApplication</Function></FuncDef>
+ <FuncDef><Function>TQApplication</Function></FuncDef>
<ParamDef>int &amp;<Parameter>argc</Parameter></ParamDef>
<ParamDef>char **<Parameter>argv</Parameter></ParamDef>
<ParamDef>Type <Parameter>type</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes two parameters, the first of which is a list of argument strings.
-Arguments used by Qt are removed from the list. (Qt v2.2+)
+Arguments used by TQt are removed from the list. (TQt v2.2+)
</Para>
<FuncSynopsis>
@@ -65,10 +65,10 @@ This has been renamed to <Literal>exec_loop</Literal> in Python.
%End
-QApplication *qApp;
+TQApplication *qApp;
-class QApplication : QObject
+class TQApplication : TQObject
{
%TypeHeaderCode
#include <qapplication.h>
@@ -76,7 +76,7 @@ class QApplication : QObject
%End
public:
- QApplication(SIP_PYLIST) /PostHook=__pyQtQAppHook__/ [(int &,char **)];
+ TQApplication(SIP_PYLIST) /PostHook=__pyTQtTQAppHook__/ [(int &,char **)];
%MethodCode
// The Python interface is a list of argument strings that is
// modified.
@@ -94,7 +94,7 @@ public:
nargc = argc;
Py_BEGIN_ALLOW_THREADS
- sipCpp = new sipQApplication(nargc,argv);
+ sipCpp = new sipTQApplication(nargc,argv);
Py_END_ALLOW_THREADS
// Now modify the original list.
@@ -102,7 +102,7 @@ public:
}
%End
- QApplication(SIP_PYLIST,bool) /PostHook=__pyQtQAppHook__/ [(int &,char **,bool)];
+ TQApplication(SIP_PYLIST,bool) /PostHook=__pyTQtTQAppHook__/ [(int &,char **,bool)];
%MethodCode
// The Python interface is a list of argument strings that is
// modified.
@@ -120,7 +120,7 @@ public:
nargc = argc;
Py_BEGIN_ALLOW_THREADS
- sipCpp = new sipQApplication(nargc,argv,a1);
+ sipCpp = new sipTQApplication(nargc,argv,a1);
Py_END_ALLOW_THREADS
// Now modify the original list.
@@ -128,14 +128,14 @@ public:
}
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
enum Type {
Tty,
GuiClient,
GuiServer
};
- QApplication(SIP_PYLIST,Type /Constrained/) /PostHook=__pyQtQAppHook__/ [(int &,char **,Type)];
+ TQApplication(SIP_PYLIST,Type /Constrained/) /PostHook=__pyTQtTQAppHook__/ [(int &,char **,Type)];
%MethodCode
// The Python interface is a list of argument strings that is
// modified.
@@ -153,7 +153,7 @@ public:
nargc = argc;
Py_BEGIN_ALLOW_THREADS
- sipCpp = new sipQApplication(nargc,argv,(QApplication::Type)a1);
+ sipCpp = new sipTQApplication(nargc,argv,(TQApplication::Type)a1);
Py_END_ALLOW_THREADS
// Now modify the original list.
@@ -162,28 +162,28 @@ public:
%End
%End
- ~QApplication();
+ ~TQApplication();
%MethodCode
// Make sure all remaining top level widgets are not owned by
- // Python. When a PyQt script terminates we have no control
- // over the order in which the QApplication instance and the
+ // Python. When a PyTQt script terminates we have no control
+ // over the order in which the TQApplication instance and the
// top level widgets are destroyed. If the former happens
// first then we get a seg. fault. We could take the approach
- // of only pretending to delete the QApplication instance, but
- // Qt seems to allow an application to delete the QApplication
+ // of only pretending to delete the TQApplication instance, but
+ // TQt seems to allow an application to delete the TQApplication
// instance and then create another one. The approach we take
// is to transfer ownership of all top level widgets away from
// Python so that the C++ dtor is not called if they are
- // destroyed after the QApplication instance. This might be
+ // destroyed after the TQApplication instance. This might be
// seen as a memory leak - but if we really are terminating
// then it doesn't matter, and if we are just deleting the
- // QApplication instance then (I think) we should have already
+ // TQApplication instance then (I think) we should have already
// deleted the top level widgets manually. In any event, the X
// server resources will be freed.
- QWidgetList *tlw = QApplication::topLevelWidgets();
- QWidgetListIt it(*tlw);
- QWidget *w;
+ TQWidgetList *tlw = TQApplication::topLevelWidgets();
+ TQWidgetListIt it(*tlw);
+ TQWidget *w;
while ((w = it.current()) != 0)
{
@@ -217,22 +217,22 @@ public:
}
%End
-%If (Qt_2_3_0 -)
+%If (TQt_2_3_0 -)
Type type() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
static GUIStyle style();
static void setStyle(GUIStyle);
%End
-%If (Qt_2_00 -)
- static QStyle &style();
- static void setStyle(QStyle * /Transfer/);
+%If (TQt_2_00 -)
+ static TQStyle &style();
+ static void setStyle(TQStyle * /Transfer/);
%End
-%If (Qt_3_0_0 -)
- static QStyle *setStyle(const QString &);
+%If (TQt_3_0_0 -)
+ static TQStyle *setStyle(const TQString &);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
enum ColorSpec
{
NormalColor = 0,
@@ -242,7 +242,7 @@ public:
TrueColor = 4
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
enum ColorSpec
{
NormalColor = 0,
@@ -253,118 +253,118 @@ public:
static int colorSpec();
static void setColorSpec(int);
- static QCursor *overrideCursor();
- static void setOverrideCursor(QCursor &,bool = 0);
+ static TQCursor *overrideCursor();
+ static void setOverrideCursor(TQCursor &,bool = 0);
static void restoreOverrideCursor();
static bool hasGlobalMouseTracking();
static void setGlobalMouseTracking(bool);
-%If (- Qt_2_00)
- static QPalette *palette();
- static void setPalette(QPalette &,bool = 0);
- static QFont *font();
- static void setFont(const QFont &,bool = 0);
-%End
-%If (Qt_2_00 -)
- static QPalette palette(const QWidget * = 0);
- static void setPalette(QPalette &,bool = 0,const char * = 0);
- static QFont font(const QWidget * = 0);
- static void setFont(const QFont &,bool = 0,const char * = 0);
-%End
- static QFontMetrics fontMetrics();
- QWidget *mainWidget() const;
-%If (- Qt_2_00)
- // We may not need the /Transfer/ now that the QApplication dtor is
+%If (- TQt_2_00)
+ static TQPalette *palette();
+ static void setPalette(TQPalette &,bool = 0);
+ static TQFont *font();
+ static void setFont(const TQFont &,bool = 0);
+%End
+%If (TQt_2_00 -)
+ static TQPalette palette(const TQWidget * = 0);
+ static void setPalette(TQPalette &,bool = 0,const char * = 0);
+ static TQFont font(const TQWidget * = 0);
+ static void setFont(const TQFont &,bool = 0,const char * = 0);
+%End
+ static TQFontMetrics fontMetrics();
+ TQWidget *mainWidget() const;
+%If (- TQt_2_00)
+ // We may not need the /Transfer/ now that the TQApplication dtor is
// instrumented, but we'll leave it in so as not to break old programs
// needlessly.
- void setMainWidget(QWidget * /Transfer/);
+ void setMainWidget(TQWidget * /Transfer/);
%End
-%If (Qt_2_00 -)
- virtual void setMainWidget(QWidget *);
- virtual void polish(QWidget *);
+%If (TQt_2_00 -)
+ virtual void setMainWidget(TQWidget *);
+ virtual void polish(TQWidget *);
%End
- static QWidgetList *allWidgets();
- static QWidgetList *topLevelWidgets();
-%If (- Qt_3_0_0)
- static QWidget *desktop();
+ static TQWidgetList *allWidgets();
+ static TQWidgetList *topLevelWidgets();
+%If (- TQt_3_0_0)
+ static TQWidget *desktop();
%End
-%If (Qt_3_0_0 -)
- static QDesktopWidget *desktop();
+%If (TQt_3_0_0 -)
+ static TQDesktopWidget *desktop();
%End
- static QWidget *activePopupWidget();
- static QWidget *activeModalWidget();
- static QClipboard *clipboard();
- QWidget *focusWidget() const;
-%If (Qt_2_00 -)
- QWidget *activeWindow() const;
+ static TQWidget *activePopupWidget();
+ static TQWidget *activeModalWidget();
+ static TQClipboard *clipboard();
+ TQWidget *focusWidget() const;
+%If (TQt_2_00 -)
+ TQWidget *activeWindow() const;
%End
- static QWidget *widgetAt(int,int,bool = 0);
- static QWidget *widgetAt(const QPoint &,bool = 0);
+ static TQWidget *widgetAt(int,int,bool = 0);
+ static TQWidget *widgetAt(const TQPoint &,bool = 0);
-%If (Qt_3_1_0 -)
- static QEventLoop *eventLoop();
+%If (TQt_3_1_0 -)
+ static TQEventLoop *eventLoop();
%End
int exec() /PyName=exec_loop, ReleaseGIL,
- PreHook=__pyQtPreEventLoopHook__,
- PostHook=__pyQtPostEventLoopHook__/;
+ PreHook=__pyTQtPreEventLoopHook__,
+ PostHook=__pyTQtPostEventLoopHook__/;
void processEvents() /ReleaseGIL/;
void processEvents(int) /ReleaseGIL/;
void processOneEvent() /ReleaseGIL/;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool hasPendingEvents();
%End
int enter_loop() /ReleaseGIL/;
void exit_loop();
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
int loopLevel() const;
%End
static void exit(int = 0);
- static bool sendEvent(QObject *,QEvent *) /ReleaseGIL/;
- static void postEvent(QObject *,QEvent * /Transfer/) /ReleaseGIL/;
- static void sendPostedEvents(QObject *,int) /ReleaseGIL/;
-%If (Qt_2_00 -)
+ static bool sendEvent(TQObject *,TQEvent *) /ReleaseGIL/;
+ static void postEvent(TQObject *,TQEvent * /Transfer/) /ReleaseGIL/;
+ static void sendPostedEvents(TQObject *,int) /ReleaseGIL/;
+%If (TQt_2_00 -)
static void sendPostedEvents() /ReleaseGIL/;
- static void removePostedEvents(QObject *);
+ static void removePostedEvents(TQObject *);
%End
- virtual bool notify(QObject *,QEvent *) /ReleaseGIL/;
+ virtual bool notify(TQObject *,TQEvent *) /ReleaseGIL/;
static bool startingUp();
static bool closingDown();
static void flushX();
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
static void flush();
%End
static void syncX();
static void beep();
-%If (Qt_2_00 -)
- void setDefaultCodec(QTextCodec *);
- QTextCodec *defaultCodec() const;
- void installTranslator(QTranslator *);
- void removeTranslator(QTranslator *);
+%If (TQt_2_00 -)
+ void setDefaultCodec(TQTextCodec *);
+ TQTextCodec *defaultCodec() const;
+ void installTranslator(TQTranslator *);
+ void removeTranslator(TQTranslator *);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- QString translate(const char *,const char *) const;
+%If (TQt_2_00 - TQt_3_0_0)
+ TQString translate(const char *,const char *) const;
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
- QString translate(const char *,const char *,const char *) const;
+%If (TQt_2_2_0 - TQt_3_0_0)
+ TQString translate(const char *,const char *,const char *) const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum Encoding {
DefaultCodec,
UnicodeUTF8
};
- QString translate(const char *,const char *,const char * = 0,
+ TQString translate(const char *,const char *,const char * = 0,
Encoding = DefaultCodec) const;
%End
-%If (Qt_3_2_0 -)
- QString applicationDirPath();
- QString applicationFilePath();
+%If (TQt_3_2_0 -)
+ TQString applicationDirPath();
+ TQString applicationFilePath();
%End
-%If (- Qt_3_0_0)
- static void setWinStyleHighlightColor(const QColor &);
- static const QColor &winStyleHighlightColor();
+%If (- TQt_3_0_0)
+ static void setWinStyleHighlightColor(const TQColor &);
+ static const TQColor &winStyleHighlightColor();
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
static void setDesktopSettingsAware(bool);
static bool desktopSettingsAware();
static void setCursorFlashTime(int);
@@ -372,84 +372,84 @@ public:
%End
static void setDoubleClickInterval(int);
static int doubleClickInterval();
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
static void setWheelScrollLines(int);
static int wheelScrollLines();
-%If (Qt_2_2_0 -)
- static void setGlobalStrut(const QSize &);
- static QSize globalStrut();
+%If (TQt_2_2_0 -)
+ static void setGlobalStrut(const TQSize &);
+ static TQSize globalStrut();
%End
-%If (Qt_3_0_0 -)
- static void setLibraryPaths(const QStringList &);
- static QStringList libraryPaths();
- static void addLibraryPath(const QString &);
- static void removeLibraryPath(const QString &);
+%If (TQt_3_0_0 -)
+ static void setLibraryPaths(const TQStringList &);
+ static TQStringList libraryPaths();
+ static void addLibraryPath(const TQString &);
+ static void removeLibraryPath(const TQString &);
%End
static void setStartDragTime(int);
static int startDragTime();
static void setStartDragDistance(int);
static int startDragDistance();
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
static void setReverseLayout(bool);
static bool reverseLayout();
static int horizontalAlignment(int);
%End
-%If (Qt_2_2_0 -)
- static bool isEffectEnabled(Qt::UIEffect);
- static void setEffectEnabled(Qt::UIEffect,bool = 1);
+%If (TQt_2_2_0 -)
+ static bool isEffectEnabled(TQt::UIEffect);
+ static void setEffectEnabled(TQt::UIEffect,bool = 1);
%End
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
bool isSessionRestored() const;
- QString sessionId() const;
-%If (Qt_3_1_0 -)
- QString sessionKey() const;
+ TQString sessionId() const;
+%If (TQt_3_1_0 -)
+ TQString sessionKey() const;
%End
- virtual void commitData(QSessionManager &);
- virtual void saveState(QSessionManager &);
+ virtual void commitData(TQSessionManager &);
+ virtual void saveState(TQSessionManager &);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void wakeUpGuiThread();
%End
-%If (Qt_THREAD_SUPPORT)
-%If (Qt_2_2_0 -)
+%If (TQt_THREAD_SUPPORT)
+%If (TQt_2_2_0 -)
void lock() /ReleaseGIL/;
void unlock(bool = 1);
bool locked();
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool tryLock();
%End
%End
signals:
void lastWindowClosed();
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void aboutToQuit();
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void guiThreadAwake();
%End
public slots:
void quit();
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void closeAllWindows();
%End
-%If (Qt_3_2_0 -)
- void aboutQt();
+%If (TQt_3_2_0 -)
+ void aboutTQt();
%End
protected:
-%If (Qt_3_1_0 -)
- bool event(QEvent *);
+%If (TQt_3_1_0 -)
+ bool event(TQEvent *);
%End
private:
- QApplication(const QApplication &);
+ TQApplication(const TQApplication &);
%TypeCode
@@ -507,22 +507,22 @@ static void updatePyArgv(PyObject *argvlist,int argc,char **argv)
};
-enum QtMsgType {
- QtDebugMsg,
- QtWarningMsg,
- QtFatalMsg
+enum TQtMsgType {
+ TQtDebugMsg,
+ TQtWarningMsg,
+ TQtFatalMsg
};
SIP_PYCALLABLE qInstallMsgHandler(SIP_PYCALLABLE /AllowNone/);
%MethodCode
- void (*old)(QtMsgType, const char *);
+ void (*old)(TQtMsgType, const char *);
// Treat None as the default handler.
old = qInstallMsgHandler((a0 != Py_None) ? pyqtMsgHandler : 0);
// If we recognise the old handler, then return it. Otherwise return
- // the default handler. This doesn't exactly mimic the Qt behaviour
+ // the default handler. This doesn't exactly mimic the TQt behaviour
// but it is probably close enough for the way it will be used.
sipRes = (old == pyqtMsgHandler) ? pyqtPyMsgHandler : Py_None;
Py_INCREF(sipRes);
@@ -538,14 +538,14 @@ SIP_PYCALLABLE qInstallMsgHandler(SIP_PYCALLABLE /AllowNone/);
static PyObject *pyqtPyMsgHandler = 0;
// The C++ wrapper around the Python handler.
-static void pyqtMsgHandler(QtMsgType type, const char *msg)
+static void pyqtMsgHandler(TQtMsgType type, const char *msg)
{
PyObject *res;
SIP_BLOCK_THREADS
#if SIP_VERSION >= 0x040200
- res = sipCallMethod(0, pyqtPyMsgHandler, "Es", type, sipEnum_QtMsgType, msg);
+ res = sipCallMethod(0, pyqtPyMsgHandler, "Es", type, sipEnum_TQtMsgType, msg);
#elif SIP_VERSION >= 0x040000
res = sipCallMethod(0, pyqtPyMsgHandler, "es", type, msg);
#else
@@ -562,7 +562,7 @@ static void pyqtMsgHandler(QtMsgType type, const char *msg)
if (res != NULL && res != Py_None)
{
- PyErr_SetString(PyExc_TypeError, "invalid result type from PyQt message handler");
+ PyErr_SetString(PyExc_TypeError, "invalid result type from PyTQt message handler");
res = NULL;
}
diff --git a/sip/qt/qarray.sip b/sip/qt/qarray.sip
index 76125e1..8d1fed4 100644
--- a/sip/qt/qarray.sip
+++ b/sip/qt/qarray.sip
@@ -1,39 +1,39 @@
-// This is the SIP interface definition for all types based on the QArray
+// This is the SIP interface definition for all types based on the TQArray
// template.
//
// 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>QArray&lt;type&gt; (Qt 1.x, 2.x)</Title>
+<Sect2><Title>TQArray&lt;type&gt; (TQt 1.x, 2.x)</Title>
<Para>
-Types based on the <Literal>QArray</Literal> template are automatically
+Types based on the <Literal>TQArray</Literal> template are automatically
converted to and from Python lists of the type.
</Para>
</Sect2>
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
-%MappedType QArray<int>
+%MappedType TQArray<int>
{
%TypeHeaderCode
#include <qarray.h>
@@ -63,12 +63,12 @@ converted to and from Python lists of the type.
%End
%ConvertToTypeCode
- // Convert a Python list of integers to a QArray<int> on the heap.
+ // Convert a Python list of integers to a TQArray<int> on the heap.
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- QArray<int> *qa = new QArray<int>(PyList_GET_SIZE(sipPy));
+ TQArray<int> *qa = new TQArray<int>(PyList_GET_SIZE(sipPy));
PyErr_Clear();
diff --git a/sip/qt/qassistantclient.sip b/sip/qt/qassistantclient.sip
index 34c4820..fce0214 100644
--- a/sip/qt/qassistantclient.sip
+++ b/sip/qt/qassistantclient.sip
@@ -1,62 +1,62 @@
-// This is the SIP interface definition for QAssistantClient.
+// This is the SIP interface definition for TQAssistantClient.
//
// 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>QAssistantClient (Qt v3.1+)</Title>
+<Sect2><Title>TQAssistantClient (TQt v3.1+)</Title>
<Para>
-<Literal>QAssistantClient</Literal> is fully implemented.
+<Literal>TQAssistantClient</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_ASSISTANTCLIENT)
-%If (Qt_3_1_0 -)
+%If (TQt_ASSISTANTCLIENT)
+%If (TQt_3_1_0 -)
-class QAssistantClient : QObject
+class TQAssistantClient : TQObject
{
%TypeHeaderCode
#include <qassistantclient.h>
%End
public:
- QAssistantClient(const QString &,QObject * /TransferThis/ = 0,
+ TQAssistantClient(const TQString &,TQObject * /TransferThis/ = 0,
const char * = 0);
bool isOpen() const;
-%If (Qt_3_2_0 -)
- void setArguments(const QStringList &);
+%If (TQt_3_2_0 -)
+ void setArguments(const TQStringList &);
%End
public slots:
virtual void openAssistant() /ReleaseGIL/;
virtual void closeAssistant();
- virtual void showPage(const QString &);
+ virtual void showPage(const TQString &);
signals:
void assistantOpened();
void assistantClosed();
- void error(const QString &);
+ void error(const TQString &);
};
%End
diff --git a/sip/qt/qbitmap.sip b/sip/qt/qbitmap.sip
index b0132dd..e538d2d 100644
--- a/sip/qt/qbitmap.sip
+++ b/sip/qt/qbitmap.sip
@@ -1,59 +1,59 @@
-// This is the SIP interface definition for QBitmap.
+// This is the SIP interface definition for TQBitmap.
//
// 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>QBitmap</Title>
+<Sect2><Title>TQBitmap</Title>
<Para>
-<Literal>QBitmap</Literal> is fully implemented.
+<Literal>TQBitmap</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QBitmap : QPixmap
+class TQBitmap : TQPixmap
{
%TypeHeaderCode
#include <qbitmap.h>
%End
public:
- QBitmap();
-%If (- Qt_2_00)
- QBitmap(int,int,bool = 0);
- QBitmap(const QSize &,bool = 0);
+ TQBitmap();
+%If (- TQt_2_00)
+ TQBitmap(int,int,bool = 0);
+ TQBitmap(const TQSize &,bool = 0);
%End
-%If (Qt_2_00 -)
- QBitmap(int,int,bool = 0,QPixmap::Optimization = QPixmap::DefaultOptim);
- QBitmap(const QSize &,bool = 0,QPixmap::Optimization = QPixmap::DefaultOptim);
+%If (TQt_2_00 -)
+ TQBitmap(int,int,bool = 0,TQPixmap::Optimization = TQPixmap::DefaultOptim);
+ TQBitmap(const TQSize &,bool = 0,TQPixmap::Optimization = TQPixmap::DefaultOptim);
%End
- QBitmap(int,int,uchar *,bool = 0);
- QBitmap(const QSize &,uchar *,bool = 0);
- QBitmap(const QBitmap &);
-%If (- Qt_2_00)
- QBitmap(const char *,const char * = 0);
+ TQBitmap(int,int,uchar *,bool = 0);
+ TQBitmap(const TQSize &,uchar *,bool = 0);
+ TQBitmap(const TQBitmap &);
+%If (- TQt_2_00)
+ TQBitmap(const char *,const char * = 0);
%End
-%If (Qt_2_00 -)
- QBitmap(const QString &,const char * = 0);
+%If (TQt_2_00 -)
+ TQBitmap(const TQString &,const char * = 0);
%End
- QBitmap xForm(const QWMatrix &) const;
+ TQBitmap xForm(const TQWMatrix &) const;
};
diff --git a/sip/qt/qbrush.sip b/sip/qt/qbrush.sip
index ab629d7..fc9269f 100644
--- a/sip/qt/qbrush.sip
+++ b/sip/qt/qbrush.sip
@@ -1,36 +1,36 @@
-// This is the SIP interface definition for QBrush.
+// This is the SIP interface definition for TQBrush.
//
// 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>QBrush</Title>
+<Sect2><Title>TQBrush</Title>
<Para>
-<Literal>QBrush</Literal> is fully implemented, including the Python
+<Literal>TQBrush</Literal> is fully implemented, including the Python
<Literal>==</Literal> and <Literal>!=</Literal> operators.
</Para>
</Sect2>
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
enum BrushStyle {
NoBrush,
@@ -52,54 +52,54 @@ enum BrushStyle {
};
-class QBrush
+class TQBrush
{
%TypeHeaderCode
#include <qbrush.h>
%End
public:
- QBrush();
- QBrush(BrushStyle);
- QBrush(const QColor &,BrushStyle = SolidPattern);
- QBrush(const QColor &,const QPixmap &);
- QBrush(const QBrush &);
+ TQBrush();
+ TQBrush(BrushStyle);
+ TQBrush(const TQColor &,BrushStyle = SolidPattern);
+ TQBrush(const TQColor &,const TQPixmap &);
+ TQBrush(const TQBrush &);
BrushStyle style() const;
void setStyle(BrushStyle);
- const QColor &color() const;
- void setColor(const QColor &);
- QPixmap *pixmap() const;
- void setPixmap(const QPixmap &);
+ const TQColor &color() const;
+ void setColor(const TQColor &);
+ TQPixmap *pixmap() const;
+ void setPixmap(const TQPixmap &);
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QBrush : Qt
+class TQBrush : TQt
{
%TypeHeaderCode
#include <qbrush.h>
%End
public:
- QBrush();
- QBrush(BrushStyle);
- QBrush(const QColor &,BrushStyle = SolidPattern);
- QBrush(const QColor &,const QPixmap &);
- QBrush(const QBrush &);
+ TQBrush();
+ TQBrush(BrushStyle);
+ TQBrush(const TQColor &,BrushStyle = SolidPattern);
+ TQBrush(const TQColor &,const TQPixmap &);
+ TQBrush(const TQBrush &);
BrushStyle style() const;
void setStyle(BrushStyle);
- const QColor &color() const;
- void setColor(const QColor &);
- QPixmap *pixmap() const;
- void setPixmap(const QPixmap &);
+ const TQColor &color() const;
+ void setColor(const TQColor &);
+ TQPixmap *pixmap() const;
+ void setPixmap(const TQPixmap &);
- bool operator==(const QBrush &) const;
- bool operator!=(const QBrush &) const;
+ bool operator==(const TQBrush &) const;
+ bool operator!=(const TQBrush &) const;
};
%End
diff --git a/sip/qt/qbutton.sip b/sip/qt/qbutton.sip
index 356de1e..fcd83ec 100644
--- a/sip/qt/qbutton.sip
+++ b/sip/qt/qbutton.sip
@@ -1,83 +1,83 @@
-// This is the SIP interface definition for QButton.
+// This is the SIP interface definition for TQButton.
//
// 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>QButton</Title>
+<Sect2><Title>TQButton</Title>
<Para>
-<Literal>QButton</Literal> is fully implemented.
+<Literal>TQButton</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QButton : QWidget
+class TQButton : TQWidget
{
%TypeHeaderCode
#include <qbutton.h>
%End
public:
-%If (- Qt_2_00)
- QButton(QWidget * /TransferThis/ = 0,const char * = 0);
+%If (- TQt_2_00)
+ TQButton(TQWidget * /TransferThis/ = 0,const char * = 0);
%End
-%If (Qt_2_00 -)
- QButton(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+%If (TQt_2_00 -)
+ TQButton(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *text() const;
void setText(const char *);
%End
-%If (Qt_2_00 -)
- QString text() const;
- virtual void setText(const QString &);
+%If (TQt_2_00 -)
+ TQString text() const;
+ virtual void setText(const TQString &);
%End
- const QPixmap *pixmap() const;
-%If (- Qt_2_00)
- void setPixmap(const QPixmap &);
+ const TQPixmap *pixmap() const;
+%If (- TQt_2_00)
+ void setPixmap(const TQPixmap &);
%End
-%If (Qt_2_00 -)
- virtual void setPixmap(const QPixmap &);
+%If (TQt_2_00 -)
+ virtual void setPixmap(const TQPixmap &);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int accel() const;
%End
-%If (Qt_3_0_0 -)
- QKeySequence accel() const;
+%If (TQt_3_0_0 -)
+ TQKeySequence accel() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setAccel(int);
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
virtual void setAccel(int);
%End
-%If (Qt_3_0_0 -)
- virtual void setAccel(const QKeySequence &);
+%If (TQt_3_0_0 -)
+ virtual void setAccel(const TQKeySequence &);
%End
bool isToggleButton() const;
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
enum ToggleType
{
SingleShot,
@@ -88,17 +88,17 @@ public:
ToggleType toggleType() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setDown(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setDown(bool);
%End
bool isDown() const;
bool isOn() const;
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
enum ToggleState
{
Off,
@@ -109,34 +109,34 @@ public:
ToggleState state() const;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
bool autoResize() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setAutoResize(bool);
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
virtual void setAutoResize(bool);
%End
bool autoRepeat() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setAutoRepeat(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setAutoRepeat(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
bool isExclusiveToggle() const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
bool focusNextPrevChild(bool);
%End
-%If (Qt_2_00 -)
- QButtonGroup *group() const;
+%If (TQt_2_00 -)
+ TQButtonGroup *group() const;
%End
public slots:
@@ -148,37 +148,37 @@ signals:
void released();
void clicked();
void toggled(bool);
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void stateChanged(int);
%End
protected:
void setToggleButton(bool);
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setToggleType(ToggleType);
%End
void setOn(bool);
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setState(ToggleState);
%End
- virtual bool hitButton(const QPoint &) const;
- virtual void drawButton(QPainter *);
- virtual void drawButtonLabel(QPainter *);
+ virtual bool hitButton(const TQPoint &) const;
+ virtual void drawButton(TQPainter *);
+ virtual void drawButtonLabel(TQPainter *);
- void keyPressEvent(QKeyEvent *);
-%If (Qt_2_1_0 -)
- void keyReleaseEvent(QKeyEvent *);
+ void keyPressEvent(TQKeyEvent *);
+%If (TQt_2_1_0 -)
+ void keyReleaseEvent(TQKeyEvent *);
%End
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
- void paintEvent(QPaintEvent *);
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+ void paintEvent(TQPaintEvent *);
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
void enabledChange(bool);
private:
- QButton(const QButton &);
+ TQButton(const TQButton &);
};
diff --git a/sip/qt/qbuttongroup.sip b/sip/qt/qbuttongroup.sip
index 647bb17..61c0258 100644
--- a/sip/qt/qbuttongroup.sip
+++ b/sip/qt/qbuttongroup.sip
@@ -1,71 +1,71 @@
-// This is the SIP interface definition for QButtonGroup.
+// This is the SIP interface definition for TQButtonGroup.
//
// 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>QButtonGroup</Title>
+<Sect2><Title>TQButtonGroup</Title>
<Para>
-<Literal>QButtonGroup</Literal> is fully implemented.
+<Literal>TQButtonGroup</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QButtonGroup : QGroupBox
+class TQButtonGroup : TQGroupBox
{
%TypeHeaderCode
#include <qbuttongroup.h>
%End
public:
- QButtonGroup(QWidget * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_2_00)
- QButtonGroup(const char *,QWidget * /TransferThis/ = 0,
+ TQButtonGroup(TQWidget * /TransferThis/ = 0,const char * = 0);
+%If (- TQt_2_00)
+ TQButtonGroup(const char *,TQWidget * /TransferThis/ = 0,
const char * = 0);
%End
-%If (Qt_2_00 -)
- QButtonGroup(const QString &,QWidget * /TransferThis/ = 0,
+%If (TQt_2_00 -)
+ TQButtonGroup(const TQString &,TQWidget * /TransferThis/ = 0,
const char * = 0);
- QButtonGroup(int,Orientation,QWidget * /TransferThis/ = 0,
+ TQButtonGroup(int,Orientation,TQWidget * /TransferThis/ = 0,
const char * = 0);
- QButtonGroup(int,Orientation,const QString &,
- QWidget * /TransferThis/ = 0,const char * = 0);
+ TQButtonGroup(int,Orientation,const TQString &,
+ TQWidget * /TransferThis/ = 0,const char * = 0);
%End
bool isExclusive() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setExclusive(bool);
void setButton(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
bool isRadioButtonExclusive() const;
virtual void setExclusive(bool);
virtual void setRadioButtonExclusive(bool);
%End
- int insert(QButton *,int = -1);
- void remove(QButton *);
- QButton *find(int) const;
-%If (Qt_2_00 -)
- int id(QButton *) const;
+ int insert(TQButton *,int = -1);
+ void remove(TQButton *);
+ TQButton *find(int) const;
+%If (TQt_2_00 -)
+ int id(TQButton *) const;
int count() const;
virtual void setButton(int);
@@ -73,13 +73,13 @@ public:
virtual void moveFocus(int);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- QButton *selected();
+%If (TQt_2_00 - TQt_3_0_0)
+ TQButton *selected();
%End
-%If (Qt_3_0_0 -)
- QButton *selected() const;
+%If (TQt_3_0_0 -)
+ TQButton *selected() const;
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
int selectedId() const;
%End
@@ -95,10 +95,10 @@ protected slots:
void buttonToggled(bool);
protected:
-%If (Qt_3_1_0 -)
- bool event(QEvent *);
+%If (TQt_3_1_0 -)
+ bool event(TQEvent *);
%End
private:
- QButtonGroup(const QButtonGroup &);
+ TQButtonGroup(const TQButtonGroup &);
};
diff --git a/sip/qt/qbytearray.sip b/sip/qt/qbytearray.sip
index fa992ec..5b4fd7e 100644
--- a/sip/qt/qbytearray.sip
+++ b/sip/qt/qbytearray.sip
@@ -1,35 +1,35 @@
-// This is the SIP interface definition for QByteArray.
+// This is the SIP interface definition for TQByteArray.
//
// 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>QByteArray</Title>
+<Sect2><Title>TQByteArray</Title>
<Para>
-A Python string can be used whenever a <Literal>QByteArray</Literal> can be
-used. A <Literal>QByteArray</Literal> can be converted to a Python string
+A Python string can be used whenever a <Literal>TQByteArray</Literal> can be
+used. A <Literal>TQByteArray</Literal> can be converted to a Python string
using the Python <Literal>str()</Literal> function.
</Para>
<FuncSynopsis>
- <FuncDef>QByteArray &<Function>assign</Function></FuncDef>
+ <FuncDef>TQByteArray &<Function>assign</Function></FuncDef>
<ParamDef>const char *<Parameter>data</Parameter></ParamDef>
<ParamDef>uint <Parameter>size</Parameter></ParamDef>
</FuncSynopsis>
@@ -81,7 +81,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QByteArray &<Function>setRawData</Function></FuncDef>
+ <FuncDef>TQByteArray &<Function>setRawData</Function></FuncDef>
<ParamDef>const char *<Parameter>data</Parameter></ParamDef>
<ParamDef>uint<Parameter>size</Parameter></ParamDef>
</FuncSynopsis>
@@ -92,20 +92,20 @@ Not implemented.
%End
-class QByteArray
+class TQByteArray
{
%TypeHeaderCode
#include <qstring.h>
%End
public:
- QByteArray();
- QByteArray(int);
- QByteArray(const QByteArray &);
+ TQByteArray();
+ TQByteArray(int);
+ TQByteArray(const TQByteArray &);
SIP_PYOBJECT data() const;
%MethodCode
- // QByteArrays aren't '\0' terminated so set the size
+ // TQByteArrays aren't '\0' terminated so set the size
// explicitly.
char *res;
@@ -128,7 +128,7 @@ public:
}
%End
- // These are actually in QMemArray, which isn't implemented so pretend
+ // These are actually in TQMemArray, which isn't implemented so pretend
// they are here.
uint nrefs() const;
@@ -138,12 +138,12 @@ public:
bool truncate(uint);
// bool fill(const char &,int = -1);
void detach();
- QByteArray copy() const;
- QByteArray &assign(const QByteArray &);
-// QByteArray &assign(const char *,uint);
- QByteArray &duplicate(const QByteArray &);
- QByteArray &duplicate(const char *,uint);
-// QByteArray &setRawData(const char *,uint);
+ TQByteArray copy() const;
+ TQByteArray &assign(const TQByteArray &);
+// TQByteArray &assign(const char *,uint);
+ TQByteArray &duplicate(const TQByteArray &);
+ TQByteArray &duplicate(const char *,uint);
+// TQByteArray &setRawData(const char *,uint);
// void resetRawData(const char *,uint);
// int find(const char &,uint = 0) const;
// int contains(const char &) const;
@@ -151,7 +151,7 @@ public:
SIP_PYOBJECT __str__();
%MethodCode
- // QByteArrays aren't '\0' terminated so set the size
+ // TQByteArrays aren't '\0' terminated so set the size
// explicitly.
char *data;
@@ -169,7 +169,7 @@ public:
%End
%ConvertToTypeCode
- // Allow a Python string whenever a QByteArray is expected.
+ // Allow a Python string whenever a TQByteArray is expected.
if (sipIsErr == NULL)
return (PyString_Check(sipPy) ||
@@ -178,7 +178,7 @@ public:
if (PyString_Check(sipPy))
{
Py_BEGIN_ALLOW_THREADS
- QByteArray *ba = new QByteArray();
+ TQByteArray *ba = new TQByteArray();
ba -> duplicate(PyString_AS_STRING(sipPy),PyString_GET_SIZE(sipPy));
@@ -188,16 +188,16 @@ public:
return sipGetState(sipTransferObj);
}
- *sipCppPtr = reinterpret_cast<QByteArray *>(sipConvertToInstance(sipPy,sipClass_QByteArray,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
+ *sipCppPtr = reinterpret_cast<TQByteArray *>(sipConvertToInstance(sipPy,sipClass_QByteArray,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
return 0;
%End
};
-%If (Qt_3_1_0 -)
-QByteArray qCompress(const uchar * /Array/,int /ArraySize/);
-QByteArray qCompress(const QByteArray &);
-QByteArray qUncompress(const uchar * /Array/,int /ArraySize/);
-QByteArray qUncompress(const QByteArray &);
+%If (TQt_3_1_0 -)
+TQByteArray qCompress(const uchar * /Array/,int /ArraySize/);
+TQByteArray qCompress(const TQByteArray &);
+TQByteArray qUncompress(const uchar * /Array/,int /ArraySize/);
+TQByteArray qUncompress(const TQByteArray &);
%End
diff --git a/sip/qt/qcdestyle.sip b/sip/qt/qcdestyle.sip
index 790662f..b11f518 100644
--- a/sip/qt/qcdestyle.sip
+++ b/sip/qt/qcdestyle.sip
@@ -1,66 +1,66 @@
-// This is the SIP interface definition for QCDEStyle.
+// This is the SIP interface definition for TQCDEStyle.
//
// 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>QCDEStyle (Qt v2+)</Title>
+<Sect2><Title>TQCDEStyle (TQt v2+)</Title>
<Para>
-<Literal>QCDEStyle</Literal> is fully implemented.
+<Literal>TQCDEStyle</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_STYLE_CDE)
-%If (Qt_2_00 -)
+%If (TQt_STYLE_CDE)
+%If (TQt_2_00 -)
-class QCDEStyle : QMotifStyle
+class TQCDEStyle : TQMotifStyle
{
%TypeHeaderCode
#include <qcdestyle.h>
%End
public:
- QCDEStyle(bool = 0);
+ TQCDEStyle(bool = 0);
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int defaultFrameWidth() const;
- void drawArrow(QPainter *,ArrowType,bool,int,int,int,int,
- const QColorGroup &,bool,const QBrush * = 0);
- void drawIndicator(QPainter *,int,int,int,int,const QColorGroup &,int,
+ void drawArrow(TQPainter *,ArrowType,bool,int,int,int,int,
+ const TQColorGroup &,bool,const TQBrush * = 0);
+ void drawIndicator(TQPainter *,int,int,int,int,const TQColorGroup &,int,
bool = 0,bool = 1);
- void drawExclusiveIndicator(QPainter *,int,int,int,int,
- const QColorGroup &,bool,bool = 0,bool = 1);
+ void drawExclusiveIndicator(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool,bool = 0,bool = 1);
%End
-%If (Qt_3_0_0 -)
- int pixelMetric(PixelMetric,const QWidget * = 0) const;
+%If (TQt_3_0_0 -)
+ int pixelMetric(PixelMetric,const TQWidget * = 0) const;
- void drawControl(ControlElement,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ void drawControl(ControlElement,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- void drawPrimitive(PrimitiveElement,QPainter *,const QRect &,
- const QColorGroup &,SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const;
+ void drawPrimitive(PrimitiveElement,TQPainter *,const TQRect &,
+ const TQColorGroup &,SFlags = Style_Default,
+ const TQStyleOption & = TQStyleOption()) const;
%End
};
diff --git a/sip/qt/qcheckbox.sip b/sip/qt/qcheckbox.sip
index 9c2bfc4..a554a17 100644
--- a/sip/qt/qcheckbox.sip
+++ b/sip/qt/qcheckbox.sip
@@ -1,88 +1,88 @@
-// This is the SIP interface definition for QCheckBox.
+// This is the SIP interface definition for TQCheckBox.
//
// 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>QCheckBox</Title>
+<Sect2><Title>TQCheckBox</Title>
<Para>
-<Literal>QCheckBox</Literal> is fully implemented.
+<Literal>TQCheckBox</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QCheckBox : QButton
+class TQCheckBox : TQButton
{
%TypeHeaderCode
#include <qcheckbox.h>
%End
public:
-%If (- Qt_2_00)
- QCheckBox(QWidget * /TransferThis/ = 0,const char * = 0);
- QCheckBox(const char *,QWidget * /TransferThis/,const char * = 0);
+%If (- TQt_2_00)
+ TQCheckBox(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQCheckBox(const char *,TQWidget * /TransferThis/,const char * = 0);
%End
-%If (Qt_2_00 -)
- QCheckBox(QWidget * /TransferThis/,const char * = 0);
- QCheckBox(const QString &,QWidget * /TransferThis/,const char * = 0);
+%If (TQt_2_00 -)
+ TQCheckBox(TQWidget * /TransferThis/,const char * = 0);
+ TQCheckBox(const TQString &,TQWidget * /TransferThis/,const char * = 0);
%End
bool isChecked() const;
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void setNoChange();
void setTristate(bool = 1);
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
bool isTristate() const;
%End
- QSize sizeHint() const;
-%If (Qt_2_00 - Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+ TQSize sizeHint() const;
+%If (TQt_2_00 - TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
void setChecked(bool);
%End
public slots:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setChecked(bool);
%End
protected:
-%If (Qt_2_00 -)
- void resizeEvent(QResizeEvent *);
+%If (TQt_2_00 -)
+ void resizeEvent(TQResizeEvent *);
%End
- void drawButton(QPainter *);
- void drawButtonLabel(QPainter *);
-%If (Qt_2_00 -)
+ void drawButton(TQPainter *);
+ void drawButtonLabel(TQPainter *);
+%If (TQt_2_00 -)
void updateMask();
%End
-%If (Qt_3_2_0 -)
- bool hitButton(const QPoint &) const;
+%If (TQt_3_2_0 -)
+ bool hitButton(const TQPoint &) const;
%End
private:
- QCheckBox(const QCheckBox &);
+ TQCheckBox(const TQCheckBox &);
};
diff --git a/sip/qt/qclipboard.sip b/sip/qt/qclipboard.sip
index 4220c37..b6255ef 100644
--- a/sip/qt/qclipboard.sip
+++ b/sip/qt/qclipboard.sip
@@ -1,33 +1,33 @@
-// This is the SIP interface definition for QClipboard.
+// This is the SIP interface definition for TQClipboard.
//
// 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>QClipboard</Title>
+<Sect2><Title>TQClipboard</Title>
<FuncSynopsis>
<FuncDef>void *<Function>data</Function> const</FuncDef>
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented (Qt v1.x).
+Not yet implemented (TQt v1.x).
</Para>
<FuncSynopsis>
@@ -36,26 +36,26 @@ Not yet implemented (Qt v1.x).
<ParamDef>void *<Parameter></Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented (Qt v1.x).
+Not yet implemented (TQt v1.x).
</Para>
</Sect2>
%End
-%If (Qt_CLIPBOARD)
+%If (TQt_CLIPBOARD)
-class QClipboard : QObject
+class TQClipboard : TQObject
{
%TypeHeaderCode
#include <qclipboard.h>
%End
private:
- QClipboard(QObject * /TransferThis/ = 0,const char * = 0);
- ~QClipboard();
+ TQClipboard(TQObject * /TransferThis/ = 0,const char * = 0);
+ ~TQClipboard();
public:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum Mode {
Clipboard,
Selection
@@ -65,7 +65,7 @@ public:
%End
void clear();
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool supportsSelection() const;
bool ownsSelection() const;
bool ownsClipboard() const;
@@ -74,79 +74,79 @@ public:
bool selectionModeEnabled() const;
%End
-%If (Qt_3_1_0 -)
- QString text(Mode) const;
- QString text(QCString &,Mode) const;
- void setText(const QString &,Mode);
+%If (TQt_3_1_0 -)
+ TQString text(Mode) const;
+ TQString text(TQCString &,Mode) const;
+ void setText(const TQString &,Mode);
-%If (Qt_MIMECLIPBOARD)
- QMimeSource *data(Mode) const;
- void setData(QMimeSource * /GetWrapper/,Mode);
+%If (TQt_MIMECLIPBOARD)
+ TQMimeSource *data(Mode) const;
+ void setData(TQMimeSource * /GetWrapper/,Mode);
%MethodCode
sipCpp->setData(a0, a1);
// Transfer ownership to C++ and make sure the Python object
// stays alive by giving it a reference to itself. The cycle
- // will be broken by QMimeSource's virtual dtor.
+ // will be broken by TQMimeSource's virtual dtor.
sipTransferTo(a0Wrapper, a0Wrapper);
%End
- QImage image(Mode) const;
- QPixmap pixmap(Mode) const;
- void setImage(const QImage &,Mode);
- void setPixmap(const QPixmap &,Mode);
+ TQImage image(Mode) const;
+ TQPixmap pixmap(Mode) const;
+ void setImage(const TQImage &,Mode);
+ void setPixmap(const TQPixmap &,Mode);
%End
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
// void *data(const char *) const;
// void setData(const char *,void *);
const char *text() const;
void setText(const char *);
- QPixmap *pixmap() const;
+ TQPixmap *pixmap() const;
%End
-%If (Qt_2_00 -)
-%If (Qt_MIMECLIPBOARD)
- QMimeSource *data() const;
- void setData(QMimeSource * /GetWrapper/);
+%If (TQt_2_00 -)
+%If (TQt_MIMECLIPBOARD)
+ TQMimeSource *data() const;
+ void setData(TQMimeSource * /GetWrapper/);
%MethodCode
sipCpp->setData(a0);
// Transfer ownership to C++ and make sure the Python object
// stays alive by giving it a reference to itself. The cycle
- // will be broken by QMimeSource's virtual dtor.
+ // will be broken by TQMimeSource's virtual dtor.
sipTransferTo(a0Wrapper, a0Wrapper);
%End
%End
- QString text() const;
-%If (Qt_2_2_0 -)
- QString text(QCString &) const;
+ TQString text() const;
+%If (TQt_2_2_0 -)
+ TQString text(TQCString &) const;
%End
- void setText(const QString &);
-%If (Qt_MIMECLIPBOARD)
- QImage image() const;
- QPixmap pixmap() const;
- void setImage(const QImage &);
+ void setText(const TQString &);
+%If (TQt_MIMECLIPBOARD)
+ TQImage image() const;
+ TQPixmap pixmap() const;
+ void setImage(const TQImage &);
%End
%End
-%If (Qt_MIMECLIPBOARD)
- void setPixmap(const QPixmap &);
+%If (TQt_MIMECLIPBOARD)
+ void setPixmap(const TQPixmap &);
%End
signals:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void selectionChanged();
%End
void dataChanged();
protected:
void connectNotify(const char *);
- bool event(QEvent *);
+ bool event(TQEvent *);
private:
- QClipboard(const QClipboard &);
+ TQClipboard(const TQClipboard &);
};
%End
diff --git a/sip/qt/qcolor.sip b/sip/qt/qcolor.sip
index 7d0d53e..d951617 100644
--- a/sip/qt/qcolor.sip
+++ b/sip/qt/qcolor.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QColor.
+// This is the SIP interface definition for TQColor.
//
// 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>QColor</Title>
+<Sect2><Title>TQColor</Title>
<Para>
The Python <Literal>==</Literal> and <Literal>!=</Literal> operators are
supported.
@@ -79,47 +79,47 @@ This takes no parameters and returns the <Literal>r</Literal>,
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
// The global colours.
-QColor color0;
-QColor color1;
-QColor black;
-QColor white;
-QColor darkGray;
-QColor gray;
-QColor lightGray;
-QColor red;
-QColor green;
-QColor blue;
-QColor cyan;
-QColor magenta;
-QColor yellow;
-QColor darkRed;
-QColor darkGreen;
-QColor darkBlue;
-QColor darkCyan;
-QColor darkMagenta;
-QColor darkYellow;
+TQColor color0;
+TQColor color1;
+TQColor black;
+TQColor white;
+TQColor darkGray;
+TQColor gray;
+TQColor lightGray;
+TQColor red;
+TQColor green;
+TQColor blue;
+TQColor cyan;
+TQColor magenta;
+TQColor yellow;
+TQColor darkRed;
+TQColor darkGreen;
+TQColor darkBlue;
+TQColor darkCyan;
+TQColor darkMagenta;
+TQColor darkYellow;
%End
// Related functions.
-int qRed(QRgb);
-int qGreen(QRgb);
-int qBlue(QRgb);
-QRgb qRgb(int,int,int);
+int qRed(TQRgb);
+int qGreen(TQRgb);
+int qBlue(TQRgb);
+TQRgb qRgb(int,int,int);
int qGray(int,int,int);
-int qGray(QRgb);
+int qGray(TQRgb);
-%If (Qt_2_00 -)
-int qAlpha(QRgb);
-QRgb qRgba(int,int,int,int);
+%If (TQt_2_00 -)
+int qAlpha(TQRgb);
+TQRgb qRgba(int,int,int,int);
%End
-class QColor
+class TQColor
{
%TypeHeaderCode
#include <qcolor.h>
@@ -131,32 +131,32 @@ public:
Hsv
};
- QColor();
- QColor(int,int,int);
- QColor(int,int,int,Spec);
- QColor(QRgb,uint = 0xffffffff);
-%If (Qt_2_00 -)
- QColor(const QString &);
+ TQColor();
+ TQColor(int,int,int);
+ TQColor(int,int,int,Spec);
+ TQColor(TQRgb,uint = 0xffffffff);
+%If (TQt_2_00 -)
+ TQColor(const TQString &);
%End
- QColor(const char *);
- QColor(const QColor &);
+ TQColor(const char *);
+ TQColor(const TQColor &);
bool isValid() const;
bool isDirty() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setNamedColor(const char *);
%End
-%If (Qt_2_1_0 -)
- QString name() const;
+%If (TQt_2_1_0 -)
+ TQString name() const;
%End
-%If (Qt_2_00 -)
- void setNamedColor(const QString &);
+%If (TQt_2_00 -)
+ void setNamedColor(const TQString &);
%End
- QRgb rgb() const;
+ TQRgb rgb() const;
void setRgb(int,int,int);
- void setRgb(QRgb);
-%If (Qt_3_2_0 -)
+ void setRgb(TQRgb);
+%If (TQt_3_2_0 -)
void getRgb(int *,int *,int *) const;
%End
@@ -169,25 +169,25 @@ public:
void setHsv(int,int,int);
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void getHsv(int *,int *,int *) const;
%End
-%If (- Qt_3_2_0)
+%If (- TQt_3_2_0)
void getHsv(int &,int &,int &) const;
%End
// Obsolete.
void hsv(int *,int *,int *) const;
- QColor light(int = 150) const;
- QColor dark(int = 200) const;
-%If (- Qt_3_0_0)
+ TQColor light(int = 150) const;
+ TQColor dark(int = 200) const;
+%If (- TQt_3_0_0)
static bool lazyAlloc();
static void setLazyAlloc(bool);
%End
- bool operator==(const QColor &) const;
- bool operator!=(const QColor &) const;
+ bool operator==(const TQColor &) const;
+ bool operator!=(const TQColor &) const;
uint alloc();
uint pixel() const;
@@ -197,11 +197,11 @@ public:
static void leaveAllocContext();
static int currentAllocContext();
static void destroyAllocContext(int);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
%End
static void initialize();
static void cleanup();
-%If (Qt_3_2_0 -)
- static QStringList colorNames();
+%If (TQt_3_2_0 -)
+ static TQStringList colorNames();
%End
};
diff --git a/sip/qt/qcolordialog.sip b/sip/qt/qcolordialog.sip
index 2f715d9..bbc9a46 100644
--- a/sip/qt/qcolordialog.sip
+++ b/sip/qt/qcolordialog.sip
@@ -1,75 +1,75 @@
-// This is the SIP interface definition for QColorDialog.
+// This is the SIP interface definition for TQColorDialog.
//
// 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>QColorDialog (Qt v2+)</Title>
+<Sect2><Title>TQColorDialog (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef>static QRgb <Function>getRgba</Function></FuncDef>
- <ParamDef>QRgb <Parameter>initial</Parameter></ParamDef>
+ <FuncDef>static TQRgb <Function>getRgba</Function></FuncDef>
+ <ParamDef>TQRgb <Parameter>initial</Parameter></ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
This takes the <Literal>initial</Literal>, <Literal>parent</Literal> and
<Literal>name</Literal> parameters and returns a tuple containing the
-<Literal>QRgb</Literal> result and the <Literal>ok</Literal> value.
+<Literal>TQRgb</Literal> result and the <Literal>ok</Literal> value.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
-%If (Qt_COLORDIALOG)
+%If (TQt_2_00 -)
+%If (TQt_COLORDIALOG)
-class QColorDialog : QDialog
+class TQColorDialog : TQDialog
{
%TypeHeaderCode
#include <qcolordialog.h>
%End
public:
-%If (- Qt_3_0_0)
- static QColor getColor(QColor,QWidget * = 0,const char * = 0) /ReleaseGIL/;
+%If (- TQt_3_0_0)
+ static TQColor getColor(TQColor,TQWidget * = 0,const char * = 0) /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
- static QColor getColor(const QColor & = Qt::white,QWidget * = 0,
+%If (TQt_3_0_0 -)
+ static TQColor getColor(const TQColor & = TQt::white,TQWidget * = 0,
const char * = 0) /ReleaseGIL/;
%End
-%If (Qt_2_1_0 -)
- static QRgb getRgba(QRgb,bool * = 0,QWidget * = 0,const char * = 0) /ReleaseGIL/;
+%If (TQt_2_1_0 -)
+ static TQRgb getRgba(TQRgb,bool * = 0,TQWidget * = 0,const char * = 0) /ReleaseGIL/;
static int customCount();
- static QRgb customColor(int);
- static void setCustomColor(int,QRgb);
+ static TQRgb customColor(int);
+ static void setCustomColor(int,TQRgb);
%End
-%If (Qt_3_1_0 -)
- static void setStandardColor(int,QRgb);
+%If (TQt_3_1_0 -)
+ static void setStandardColor(int,TQRgb);
%End
private:
-%If (Qt_2_1_0 -)
- QColorDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0);
- QColorDialog(const QColorDialog &);
- ~QColorDialog();
+%If (TQt_2_1_0 -)
+ TQColorDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0);
+ TQColorDialog(const TQColorDialog &);
+ ~TQColorDialog();
%End
};
diff --git a/sip/qt/qcolorgroup.sip b/sip/qt/qcolorgroup.sip
index 20e37b0..0be09d3 100644
--- a/sip/qt/qcolorgroup.sip
+++ b/sip/qt/qcolorgroup.sip
@@ -1,56 +1,56 @@
-// This is the SIP interface definition for QColorGroup.
+// This is the SIP interface definition for TQColorGroup.
//
// 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>QColorGroup</Title>
+<Sect2><Title>TQColorGroup</Title>
<Para>
-<Literal>QColorGroup</Literal> is fully implemented.
+<Literal>TQColorGroup</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QColorGroup
+class TQColorGroup
{
%TypeHeaderCode
#include <qpalette.h>
%End
public:
- QColorGroup();
- QColorGroup(const QColor &,const QColor &,const QColor &,const QColor &,
- const QColor &,const QColor &,const QColor &);
-%If (Qt_2_00 -)
- QColorGroup(const QBrush &,const QBrush &,const QBrush &,const QBrush &,
- const QBrush &,const QBrush &,const QBrush &,const QBrush &,
- const QBrush &);
+ TQColorGroup();
+ TQColorGroup(const TQColor &,const TQColor &,const TQColor &,const TQColor &,
+ const TQColor &,const TQColor &,const TQColor &);
+%If (TQt_2_00 -)
+ TQColorGroup(const TQBrush &,const TQBrush &,const TQBrush &,const TQBrush &,
+ const TQBrush &,const TQBrush &,const TQBrush &,const TQBrush &,
+ const TQBrush &);
%End
- QColorGroup(QColorGroup&);
+ TQColorGroup(TQColorGroup&);
-%If (- Qt_2_00)
- QColor midlight() const;
+%If (- TQt_2_00)
+ TQColor midlight() const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
enum ColorRole
{
Foreground,
@@ -70,7 +70,7 @@ public:
NColorRoles
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum ColorRole
{
Foreground,
@@ -93,33 +93,33 @@ public:
};
%End
-%If (Qt_2_00 -)
- const QColor &color(ColorRole) const;
- const QBrush &brush(ColorRole) const;
- void setColor(ColorRole,const QColor &);
- void setBrush(ColorRole,const QBrush &);
+%If (TQt_2_00 -)
+ const TQColor &color(ColorRole) const;
+ const TQBrush &brush(ColorRole) const;
+ void setColor(ColorRole,const TQColor &);
+ void setBrush(ColorRole,const TQBrush &);
%End
- const QColor &foreground() const;
-%If (Qt_2_00 -)
- const QColor &button() const;
+ const TQColor &foreground() const;
+%If (TQt_2_00 -)
+ const TQColor &button() const;
%End
- const QColor &light() const;
- const QColor &dark() const;
- const QColor &mid() const;
- const QColor &text() const;
- const QColor &base() const;
- const QColor &background() const;
-%If (Qt_2_00 -)
- const QColor &midlight() const;
- const QColor &brightText() const;
- const QColor &buttonText() const;
- const QColor &shadow() const;
- const QColor &highlight() const;
- const QColor &highlightedText() const;
+ const TQColor &light() const;
+ const TQColor &dark() const;
+ const TQColor &mid() const;
+ const TQColor &text() const;
+ const TQColor &base() const;
+ const TQColor &background() const;
+%If (TQt_2_00 -)
+ const TQColor &midlight() const;
+ const TQColor &brightText() const;
+ const TQColor &buttonText() const;
+ const TQColor &shadow() const;
+ const TQColor &highlight() const;
+ const TQColor &highlightedText() const;
%End
-%If (Qt_3_0_0 -)
- const QColor &link() const;
- const QColor &linkVisited() const;
+%If (TQt_3_0_0 -)
+ const TQColor &link() const;
+ const TQColor &linkVisited() const;
%End
};
diff --git a/sip/qt/qcombobox.sip b/sip/qt/qcombobox.sip
index 3555eba..62f4863 100644
--- a/sip/qt/qcombobox.sip
+++ b/sip/qt/qcombobox.sip
@@ -1,154 +1,154 @@
-// This is the SIP interface definition for QComboBox.
+// This is the SIP interface definition for TQComboBox.
//
// 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>QComboBox</Title>
+<Sect2><Title>TQComboBox</Title>
<Para>
-<Literal>QComboBox</Literal> is fully implemented.
+<Literal>TQComboBox</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QComboBox : QWidget
+class TQComboBox : TQWidget
{
%TypeHeaderCode
#include <qcombobox.h>
%End
public:
- QComboBox(QWidget * /TransferThis/ = 0,char * = 0);
- QComboBox(bool,QWidget * /TransferThis/ = 0,char * = 0);
+ TQComboBox(TQWidget * /TransferThis/ = 0,char * = 0);
+ TQComboBox(bool,TQWidget * /TransferThis/ = 0,char * = 0);
int count() const;
-%If (Qt_2_00 -)
- void insertStringList(QStringList &,int = -1);
+%If (TQt_2_00 -)
+ void insertStringList(TQStringList &,int = -1);
%End
- void insertStrList(const QStrList *,int = -1);
-// void insertStrList(const QStrList &,int = -1);
+ void insertStrList(const TQStrList *,int = -1);
+// void insertStrList(const TQStrList &,int = -1);
// void insertStrList(const char **,int = -1,int = -1);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void insertItem(const char *,int = -1);
%End
-%If (Qt_2_00 -)
- void insertItem(const QString &,int = -1);
+%If (TQt_2_00 -)
+ void insertItem(const TQString &,int = -1);
%End
- void insertItem(const QPixmap &,int = -1);
-%If (Qt_2_1_0 -)
- void insertItem(const QPixmap &,const QString &,int = -1);
+ void insertItem(const TQPixmap &,int = -1);
+%If (TQt_2_1_0 -)
+ void insertItem(const TQPixmap &,const TQString &,int = -1);
%End
void removeItem(int);
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
void clear();
%End
int currentItem() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setCurrentItem(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setCurrentItem(int);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *currentText() const;
%End
-%If (Qt_2_00 -)
- QString currentText() const;
+%If (TQt_2_00 -)
+ TQString currentText() const;
%End
-%If (Qt_3_0_0 -)
- virtual void setCurrentText(const QString &);
+%If (TQt_3_0_0 -)
+ virtual void setCurrentText(const TQString &);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *text(int) const;
%End
-%If (Qt_2_00 -)
- QString text(int) const;
+%If (TQt_2_00 -)
+ TQString text(int) const;
%End
- const QPixmap *pixmap(int) const;
+ const TQPixmap *pixmap(int) const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void changeItem(const char *,int);
%End
-%If (Qt_2_00 -)
- void changeItem(const QString &,int);
+%If (TQt_2_00 -)
+ void changeItem(const TQString &,int);
%End
- void changeItem(const QPixmap &,int);
-%If (Qt_2_1_0 -)
- void changeItem(const QPixmap &,const QString &,int);
+ void changeItem(const TQPixmap &,int);
+%If (TQt_2_1_0 -)
+ void changeItem(const TQPixmap &,const TQString &,int);
%End
bool autoResize() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setAutoResize(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setAutoResize(bool);
%End
- QSize sizeHint() const;
-%If (Qt_2_00 - Qt_3_0_0)
- virtual QSizePolicy sizePolicy() const;
+ TQSize sizeHint() const;
+%If (TQt_2_00 - TQt_3_0_0)
+ virtual TQSizePolicy sizePolicy() const;
%End
-%If (- Qt_2_00)
- void setBackgroundColor(const QColor &);
+%If (- TQt_2_00)
+ void setBackgroundColor(const TQColor &);
void setStyle(GUIStyle);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- virtual void setBackgroundColor(const QColor &);
+%If (TQt_2_00 - TQt_3_0_0)
+ virtual void setBackgroundColor(const TQColor &);
%End
-%If (- Qt_2_00)
- void setPalette(const QPalette &);
- void setFont(const QFont &);
+%If (- TQt_2_00)
+ void setPalette(const TQPalette &);
+ void setFont(const TQFont &);
void setEnabled(bool);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- virtual void setPalette(const QPalette &);
- virtual void setFont(const QFont &);
+%If (TQt_2_00 - TQt_3_0_0)
+ virtual void setPalette(const TQPalette &);
+ virtual void setFont(const TQFont &);
virtual void setEnabled(bool);
%End
-%If (Qt_3_0_0 -)
- void setPalette(const QPalette &);
- void setFont(const QFont &);
+%If (TQt_3_0_0 -)
+ void setPalette(const TQPalette &);
+ void setFont(const TQFont &);
void setEnabled(bool);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setSizeLimit(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setSizeLimit(int);
%End
int sizeLimit() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setMaxCount(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setMaxCount(int);
%End
int maxCount() const;
@@ -162,116 +162,116 @@ public:
BeforeCurrent
};
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setInsertionPolicy(Policy);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setInsertionPolicy(Policy);
%End
Policy insertionPolicy() const;
-%If (- Qt_2_00)
- void setValidator(QValidator *);
- QValidator *validator() const;
+%If (- TQt_2_00)
+ void setValidator(TQValidator *);
+ TQValidator *validator() const;
%End
-%If (Qt_2_00 -)
- virtual void setValidator(const QValidator *);
- const QValidator *validator() const;
+%If (TQt_2_00 -)
+ virtual void setValidator(const TQValidator *);
+ const TQValidator *validator() const;
%End
-%If (- Qt_2_00)
- void setListBox(QListBox *);
+%If (- TQt_2_00)
+ void setListBox(TQListBox *);
%End
-%If (Qt_2_00 -)
- virtual void setListBox(QListBox *);
+%If (TQt_2_00 -)
+ virtual void setListBox(TQListBox *);
%End
- QListBox *listBox() const;
+ TQListBox *listBox() const;
-%If (Qt_3_0_0 -)
- virtual void setLineEdit(QLineEdit *);
+%If (TQt_3_0_0 -)
+ virtual void setLineEdit(TQLineEdit *);
%End
-%If (Qt_2_1_0 -)
- QLineEdit *lineEdit() const;
+%If (TQt_2_1_0 -)
+ TQLineEdit *lineEdit() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setAutoCompletion(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setAutoCompletion(bool);
%End
bool autoCompletion() const;
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setDuplicatesEnabled(bool);
bool duplicatesEnabled() const;
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
bool editable() const;
void setEditable(bool);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void popup();
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
void hide();
%End
public slots:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void clear();
%End
void clearValidator();
void clearEdit();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setEditText(const char *);
%End
-%If (Qt_2_00 -)
- virtual void setEditText(const QString &);
+%If (TQt_2_00 -)
+ virtual void setEditText(const TQString &);
%End
signals:
void activated(int);
void highlighted(int);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void activated(const char *);
void highlighted(const char *);
%End
-%If (Qt_2_00 -)
- void activated(const QString &);
- void highlighted(const QString &);
- void textChanged(const QString &);
+%If (TQt_2_00 -)
+ void activated(const TQString &);
+ void highlighted(const TQString &);
+ void textChanged(const TQString &);
%End
protected:
- void paintEvent(QPaintEvent *);
- void resizeEvent(QResizeEvent *);
- void mousePressEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseDoubleClickEvent(QMouseEvent *);
- void keyPressEvent(QKeyEvent *);
- void focusInEvent(QFocusEvent *);
-%If (Qt_3_1_1 -)
- void focusOutEvent(QFocusEvent *);
-%End
-%If (Qt_3_1_0 -)
- void wheelEvent(QWheelEvent *);
-%End
-%If (- Qt_3_0_0)
+ void paintEvent(TQPaintEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseDoubleClickEvent(TQMouseEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void focusInEvent(TQFocusEvent *);
+%If (TQt_3_1_1 -)
+ void focusOutEvent(TQFocusEvent *);
+%End
+%If (TQt_3_1_0 -)
+ void wheelEvent(TQWheelEvent *);
+%End
+%If (- TQt_3_0_0)
void popup();
%End
-%If (Qt_2_00 -)
- void styleChange(QStyle &);
+%If (TQt_2_00 -)
+ void styleChange(TQStyle &);
void updateMask();
%End
private:
- QComboBox(const QComboBox &);
+ TQComboBox(const TQComboBox &);
};
diff --git a/sip/qt/qcommonstyle.sip b/sip/qt/qcommonstyle.sip
index b838716..0209d68 100644
--- a/sip/qt/qcommonstyle.sip
+++ b/sip/qt/qcommonstyle.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QCommonStyle.
+// This is the SIP interface definition for TQCommonStyle.
//
// 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>QCommonStyle (Qt v2+)</Title>
+<Sect2><Title>TQCommonStyle (TQt v2+)</Title>
<FuncSynopsis>
<FuncDef>virtual void <Function>getButtonShift</Function></FuncDef>
<ParamDef>int &amp;<Parameter>x</Parameter></ParamDef>
@@ -29,12 +29,12 @@
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>x</Literal> and
-<Literal>y</Literal> values. (Qt v2)
+<Literal>y</Literal> values. (TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>virtual void <Function>tabbarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>t</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>hframe</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>vframe</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>overlap</Parameter></ParamDef>
@@ -42,95 +42,95 @@ This takes no parameters and returns a tuple of the <Literal>x</Literal> and
<Para>
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
-<Literal>overlap</Literal> values. (Qt v2)
+<Literal>overlap</Literal> values. (TQt v2)
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QCommonStyle : QStyle
+class TQCommonStyle : TQStyle
{
%TypeHeaderCode
#include <qcommonstyle.h>
%End
public:
-%If (- Qt_3_0_0)
- void drawComboButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,bool = 0,bool = 1,const QBrush * = 0);
- QRect comboButtonRect(int,int,int,int);
- QRect comboButtonFocusRect(int,int,int,int);
- void drawComboButtonMask(QPainter *,int,int,int,int);
- void drawPushButtonLabel(QPushButton *,QPainter *);
+%If (- TQt_3_0_0)
+ void drawComboButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,bool = 0,bool = 1,const TQBrush * = 0);
+ TQRect comboButtonRect(int,int,int,int);
+ TQRect comboButtonFocusRect(int,int,int,int);
+ void drawComboButtonMask(TQPainter *,int,int,int,int);
+ void drawPushButtonLabel(TQPushButton *,TQPainter *);
void getButtonShift(int &,int &);
int defaultFrameWidth() const;
- void tabbarMetrics(const QTabBar *,int &,int &,int &);
- void drawTab(QPainter *,const QTabBar *,QTab *,bool);
- void drawTabMask(QPainter *,const QTabBar *,QTab *,bool);
- ScrollControl scrollBarPointOver(const QScrollBar *,int,const QPoint &);
- void drawSliderMask(QPainter *,int,int,int,int,Orientation,bool,bool);
- void drawSliderGrooveMask(QPainter *,int,int,int,int,QCOORD,Orientation);
+ void tabbarMetrics(const TQTabBar *,int &,int &,int &);
+ void drawTab(TQPainter *,const TQTabBar *,TQTab *,bool);
+ void drawTabMask(TQPainter *,const TQTabBar *,TQTab *,bool);
+ ScrollControl scrollBarPointOver(const TQScrollBar *,int,const TQPoint &);
+ void drawSliderMask(TQPainter *,int,int,int,int,Orientation,bool,bool);
+ void drawSliderGrooveMask(TQPainter *,int,int,int,int,TQCOORD,Orientation);
int maximumSliderDragDistance() const;
- int popupSubmenuIndicatorWidth(const QFontMetrics &);
+ int popupSubmenuIndicatorWidth(const TQFontMetrics &);
%End
-%If (Qt_3_0_0 -)
- QCommonStyle();
+%If (TQt_3_0_0 -)
+ TQCommonStyle();
- void drawPrimitive(PrimitiveElement,QPainter *,const QRect &,
- const QColorGroup &,SFlags = Style_Default,
- const QStyleOption& = QStyleOption()) const;
+ void drawPrimitive(PrimitiveElement,TQPainter *,const TQRect &,
+ const TQColorGroup &,SFlags = Style_Default,
+ const TQStyleOption& = TQStyleOption()) const;
- void drawControl(ControlElement,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ void drawControl(ControlElement,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- void drawControlMask(ControlElement,QPainter *,const QWidget *,
- const QRect &,
- const QStyleOption & = QStyleOption()) const;
+ void drawControlMask(ControlElement,TQPainter *,const TQWidget *,
+ const TQRect &,
+ const TQStyleOption & = TQStyleOption()) const;
- QRect subRect(SubRect,const QWidget *) const;
+ TQRect subRect(SubRect,const TQWidget *) const;
- void drawComplexControl(ComplexControl,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ void drawComplexControl(ComplexControl,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,SCFlags = SC_All,
SCFlags = SC_None,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- void drawComplexControlMask(ComplexControl,QPainter *,const QWidget *,
- const QRect &,
- const QStyleOption & = QStyleOption()) const;
+ void drawComplexControlMask(ComplexControl,TQPainter *,const TQWidget *,
+ const TQRect &,
+ const TQStyleOption & = TQStyleOption()) const;
- QRect querySubControlMetrics(ComplexControl,const QWidget *,SubControl,
- const QStyleOption & = QStyleOption()) const;
+ TQRect querySubControlMetrics(ComplexControl,const TQWidget *,SubControl,
+ const TQStyleOption & = TQStyleOption()) const;
- SubControl querySubControl(ComplexControl,const QWidget *,
- const QPoint &,
- const QStyleOption & = QStyleOption()) const;
+ SubControl querySubControl(ComplexControl,const TQWidget *,
+ const TQPoint &,
+ const TQStyleOption & = TQStyleOption()) const;
- int pixelMetric(PixelMetric,const QWidget * = 0) const;
+ int pixelMetric(PixelMetric,const TQWidget * = 0) const;
- QSize sizeFromContents(ContentsType,const QWidget *,const QSize &,
- const QStyleOption & = QStyleOption()) const;
+ TQSize sizeFromContents(ContentsType,const TQWidget *,const TQSize &,
+ const TQStyleOption & = TQStyleOption()) const;
- int styleHint(StyleHint,const QWidget *,const QStyleOption &,
- QStyleHintReturn *) const;
+ int styleHint(StyleHint,const TQWidget *,const TQStyleOption &,
+ TQStyleHintReturn *) const;
- QPixmap stylePixmap(StylePixmap,const QWidget * = 0,
- const QStyleOption & = QStyleOption()) const;
+ TQPixmap stylePixmap(StylePixmap,const TQWidget * = 0,
+ const TQStyleOption & = TQStyleOption()) const;
%End
private:
-%If (- Qt_3_0_0)
- QCommonStyle(GUIStyle);
- ~QCommonStyle();
+%If (- TQt_3_0_0)
+ TQCommonStyle(GUIStyle);
+ ~TQCommonStyle();
%End
-%If (Qt_3_0_0 -)
- QCommonStyle(const QCommonStyle &);
+%If (TQt_3_0_0 -)
+ TQCommonStyle(const TQCommonStyle &);
%End
};
diff --git a/sip/qt/qcstring.sip b/sip/qt/qcstring.sip
index 64b3b2a..acf919d 100644
--- a/sip/qt/qcstring.sip
+++ b/sip/qt/qcstring.sip
@@ -1,35 +1,35 @@
-// This is the SIP interface definition for QCString.
+// This is the SIP interface definition for TQCString.
//
// 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>QCString (Qt v2+)</Title>
+<Sect2><Title>TQCString (TQt v2+)</Title>
<Para>
-A Python string can be used whenever a <Literal>QCString</Literal> can be used.
-A <Literal>QCString</Literal> can be converted to a Python string using the
+A Python string can be used whenever a <Literal>TQCString</Literal> can be used.
+A <Literal>TQCString</Literal> can be converted to a Python string using the
Python <Literal>str()</Literal> function.
</Para>
<FuncSynopsis>
- <FuncDef>QCString &amp;<Function>sprintf</Function></FuncDef>
+ <FuncDef>TQCString &amp;<Function>sprintf</Function></FuncDef>
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
<ParamDef>...</ParamDef>
</FuncSynopsis>
@@ -112,20 +112,20 @@ This returns a tuple of the <Literal>double</Literal> result and the
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QCString : QByteArray
+class TQCString : TQByteArray
{
%TypeHeaderCode
#include <qcstring.h>
%End
public:
- QCString();
- QCString(int);
- QCString(const QCString &);
- QCString(const char *);
- QCString(const char *,uint);
+ TQCString();
+ TQCString(int);
+ TQCString(const TQCString &);
+ TQCString(const char *);
+ TQCString(const char *,uint);
bool isNull() const;
bool isEmpty() const;
@@ -133,37 +133,37 @@ public:
bool resize(uint);
bool truncate(uint);
bool fill(char,int = -1);
- QCString copy() const;
-// QCString &sprintf(const char *,...);
+ TQCString copy() const;
+// TQCString &sprintf(const char *,...);
// int find(char,int = 0,bool = 1) const;
int find(const char *,int = 0,bool = 1) const;
- int find(const QRegExp &,int = 0) const;
+ int find(const TQRegExp &,int = 0) const;
// int findRev(char,int = -1,bool = 1) const;
int findRev(const char *,int = -1,bool = 1) const;
- int findRev(const QRegExp &,int = -1) const;
+ int findRev(const TQRegExp &,int = -1) const;
// int contains(char,bool = 1) const;
int contains(const char *,bool = 1) const;
- int contains(const QRegExp &) const;
- QCString left(uint) const;
- QCString right(uint) const;
- QCString mid(uint,uint = 0xffffffff) const;
- QCString leftJustify(uint,char = ' ',bool = 0) const;
- QCString rightJustify(uint,char = ' ',bool = 0) const;
- QCString lower() const;
- QCString upper() const;
- QCString stripWhiteSpace() const;
- QCString simplifyWhiteSpace() const;
- QCString &insert(uint,const char *);
-// QCString &insert(uint,char);
- QCString &append(const char *);
- QCString &prepend(const char *);
- QCString &remove(uint,uint);
- QCString &replace(uint,uint,const char *);
- QCString &replace(const QRegExp &,const char *);
-%If (Qt_3_1_0 -)
-// QCString &replace(char,const char *);
- QCString &replace(const char *,const char *);
-// QCString &replace(char,char);
+ int contains(const TQRegExp &) const;
+ TQCString left(uint) const;
+ TQCString right(uint) const;
+ TQCString mid(uint,uint = 0xffffffff) const;
+ TQCString leftJustify(uint,char = ' ',bool = 0) const;
+ TQCString rightJustify(uint,char = ' ',bool = 0) const;
+ TQCString lower() const;
+ TQCString upper() const;
+ TQCString stripWhiteSpace() const;
+ TQCString simplifyWhiteSpace() const;
+ TQCString &insert(uint,const char *);
+// TQCString &insert(uint,char);
+ TQCString &append(const char *);
+ TQCString &prepend(const char *);
+ TQCString &remove(uint,uint);
+ TQCString &replace(uint,uint,const char *);
+ TQCString &replace(const TQRegExp &,const char *);
+%If (TQt_3_1_0 -)
+// TQCString &replace(char,const char *);
+ TQCString &replace(const char *,const char *);
+// TQCString &replace(char,char);
%End
short toShort(bool * = 0) const;
@@ -175,15 +175,15 @@ public:
float toFloat(bool * = 0) const;
double toDouble(bool * = 0) const;
- QCString &setStr(const char *);
-// QCString &setNum(short);
-// QCString &setNum(ushort);
- QCString &setNum(int /Constrained/);
-// QCString &setNum(uint);
-// QCString &setNum(long);
-// QCString &setNum(ulong);
-// QCString &setNum(float,char = 'g',int = 6);
- QCString &setNum(double,char = 'g',int = 6);
+ TQCString &setStr(const char *);
+// TQCString &setNum(short);
+// TQCString &setNum(ushort);
+ TQCString &setNum(int /Constrained/);
+// TQCString &setNum(uint);
+// TQCString &setNum(long);
+// TQCString &setNum(ulong);
+// TQCString &setNum(float,char = 'g',int = 6);
+ TQCString &setNum(double,char = 'g',int = 6);
bool setExpand(uint,char);
SIP_PYOBJECT __str__();
@@ -201,7 +201,7 @@ public:
%End
%ConvertToTypeCode
- // Allow a Python string whenever a QCString is expected.
+ // Allow a Python string whenever a TQCString is expected.
if (sipIsErr == NULL)
return (PyString_Check(sipPy) ||
@@ -209,12 +209,12 @@ public:
if (PyString_Check(sipPy))
{
- *sipCppPtr = new QCString(PyString_AS_STRING(sipPy));
+ *sipCppPtr = new TQCString(PyString_AS_STRING(sipPy));
return sipGetState(sipTransferObj);
}
- *sipCppPtr = reinterpret_cast<QCString *>(sipConvertToInstance(sipPy,sipClass_QCString,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
+ *sipCppPtr = reinterpret_cast<TQCString *>(sipConvertToInstance(sipPy,sipClass_QCString,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
return 0;
%End
diff --git a/sip/qt/qcursor.sip b/sip/qt/qcursor.sip
index 3631c30..07b3554 100644
--- a/sip/qt/qcursor.sip
+++ b/sip/qt/qcursor.sip
@@ -1,29 +1,29 @@
-// This is the SIP interface definition for QCursor.
+// This is the SIP interface definition for TQCursor.
//
// 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>QCursor</Title>
+<Sect2><Title>TQCursor</Title>
<Para>
-<Literal>QCursor</Literal> is fully implemented.
+<Literal>TQCursor</Literal> is fully implemented.
</Para>
</Sect2>
%End
@@ -34,25 +34,25 @@
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
// Global cursors.
-const QCursor arrowCursor;
-const QCursor upArrowCursor;
-const QCursor crossCursor;
-const QCursor waitCursor;
-const QCursor ibeamCursor;
-const QCursor sizeVerCursor;
-const QCursor sizeHorCursor;
-const QCursor sizeBDiagCursor;
-const QCursor sizeFDiagCursor;
-const QCursor sizeAllCursor;
-const QCursor blankCursor;
+const TQCursor arrowCursor;
+const TQCursor upArrowCursor;
+const TQCursor crossCursor;
+const TQCursor waitCursor;
+const TQCursor ibeamCursor;
+const TQCursor sizeVerCursor;
+const TQCursor sizeHorCursor;
+const TQCursor sizeBDiagCursor;
+const TQCursor sizeFDiagCursor;
+const TQCursor sizeAllCursor;
+const TQCursor blankCursor;
%End
-%If (- Qt_3_0_0)
-enum QCursorShape {
+%If (- TQt_3_0_0)
+enum TQCursorShape {
ArrowCursor,
UpArrowCursor,
CrossCursor,
@@ -69,72 +69,72 @@ enum QCursorShape {
};
-class QCursor
+class TQCursor
{
%TypeHeaderCode
#include <qcursor.h>
%End
public:
- QCursor();
- QCursor(int);
- QCursor(const QBitmap &,const QBitmap &,int = -1,int = -1);
-%If (Qt_2_00 -)
- QCursor(const QPixmap &,int = -1,int = -1);
+ TQCursor();
+ TQCursor(int);
+ TQCursor(const TQBitmap &,const TQBitmap &,int = -1,int = -1);
+%If (TQt_2_00 -)
+ TQCursor(const TQPixmap &,int = -1,int = -1);
%End
- QCursor(const QCursor &);
+ TQCursor(const TQCursor &);
int shape() const;
void setShape(int);
- const QBitmap *bitmap() const;
- const QBitmap *mask() const;
- QPoint hotSpot() const;
-%If (- Qt_2_00)
+ const TQBitmap *bitmap() const;
+ const TQBitmap *mask() const;
+ TQPoint hotSpot() const;
+%If (- TQt_2_00)
HANDLE handle() const;
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
%If (WS_X11)
HANDLE handle() const;
%End
%End
- static QPoint pos();
+ static TQPoint pos();
static void setPos(int,int);
- static void setPos(const QPoint &);
+ static void setPos(const TQPoint &);
static void initialize();
static void cleanup();
};
%End
-%If (Qt_3_0_0 -)
-class QCursor : Qt
+%If (TQt_3_0_0 -)
+class TQCursor : TQt
{
%TypeHeaderCode
#include <qcursor.h>
%End
public:
- QCursor();
- QCursor(int);
- QCursor(const QBitmap &,const QBitmap &,int = -1,int = -1);
- QCursor(const QPixmap &,int = -1,int = -1);
- QCursor(const QCursor &);
+ TQCursor();
+ TQCursor(int);
+ TQCursor(const TQBitmap &,const TQBitmap &,int = -1,int = -1);
+ TQCursor(const TQPixmap &,int = -1,int = -1);
+ TQCursor(const TQCursor &);
int shape() const;
void setShape(int);
- const QBitmap *bitmap() const;
- const QBitmap *mask() const;
- QPoint hotSpot() const;
+ const TQBitmap *bitmap() const;
+ const TQBitmap *mask() const;
+ TQPoint hotSpot() const;
%If (WS_X11)
HANDLE handle() const;
-%If (Qt_3_3_0 -)
- // This would have the same Python signature as QCursor(int).
- //QCursor(HANDLE);
+%If (TQt_3_3_0 -)
+ // This would have the same Python signature as TQCursor(int).
+ //TQCursor(HANDLE);
%End
%End
- static QPoint pos();
+ static TQPoint pos();
static void setPos(int,int);
- static void setPos(const QPoint &);
+ static void setPos(const TQPoint &);
static void initialize();
static void cleanup();
%If (WS_X11)
diff --git a/sip/qt/qdatastream.sip b/sip/qt/qdatastream.sip
index 1a27132..e970c30 100644
--- a/sip/qt/qdatastream.sip
+++ b/sip/qt/qdatastream.sip
@@ -1,50 +1,50 @@
-// This is the SIP interface definition for QDataStream.
+// This is the SIP interface definition for TQDataStream.
//
// 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>QDataStream</Title>
+<Sect2><Title>TQDataStream</Title>
<FuncSynopsis>
- <FuncDef>QDataStream &amp;<Function>readBytes</Function></FuncDef>
+ <FuncDef>TQDataStream &amp;<Function>readBytes</Function></FuncDef>
<ParamDef>const char *&amp;<Parameter>s</Parameter></ParamDef>
<ParamDef>uint &amp;<Parameter>l</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-This takes no parameters. The <Literal>QDataStream</Literal> result and the
+This takes no parameters. The <Literal>TQDataStream</Literal> result and the
data read are returned as a tuple.
</Para>
<FuncSynopsis>
- <FuncDef>QDataStream &amp;<Function>readRawBytes</Function></FuncDef>
+ <FuncDef>TQDataStream &amp;<Function>readRawBytes</Function></FuncDef>
<ParamDef>const char *<Parameter>s</Parameter></ParamDef>
<ParamDef>uint <Parameter>l</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes only the <Literal>l</Literal> parameter. The
-<Literal>QDataStream</Literal> result and the data read are returned as a
+<Literal>TQDataStream</Literal> result and the data read are returned as a
tuple.
</Para>
<FuncSynopsis>
- <FuncDef>QDataStream &amp;<Function>writeBytes</Function></FuncDef>
+ <FuncDef>TQDataStream &amp;<Function>writeBytes</Function></FuncDef>
<ParamDef>const char *<Parameter>s</Parameter></ParamDef>
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
</FuncSynopsis>
@@ -54,7 +54,7 @@ parameter.
</Para>
<FuncSynopsis>
- <FuncDef>QDataStream &amp;<Function>writeRawBytes</Function></FuncDef>
+ <FuncDef>TQDataStream &amp;<Function>writeRawBytes</Function></FuncDef>
<ParamDef>const char *<Parameter>s</Parameter></ParamDef>
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
</FuncSynopsis>
@@ -66,21 +66,21 @@ parameter.
%End
-class QDataStream
+class TQDataStream
{
%TypeHeaderCode
#include <qdatastream.h>
%End
public:
- QDataStream();
- QDataStream(QIODevice *);
- QDataStream(QByteArray,int);
+ TQDataStream();
+ TQDataStream(TQIODevice *);
+ TQDataStream(TQByteArray,int);
- QIODevice *device() const;
- void setDevice(QIODevice *);
+ TQIODevice *device() const;
+ void setDevice(TQIODevice *);
void unsetDevice();
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
bool atEnd() const;
%End
bool eof() const;
@@ -103,7 +103,7 @@ public:
uint l;
Py_BEGIN_ALLOW_THREADS
- sipCpp -> QDataStream::readBytes(c,l);
+ sipCpp -> TQDataStream::readBytes(c,l);
Py_END_ALLOW_THREADS
sipRes = sipBuildResult(&sipIsErr,"(Sa)",sipSelf,c,l);
@@ -121,7 +121,7 @@ public:
else
{
Py_BEGIN_ALLOW_THREADS
- sipCpp -> QDataStream::readRawBytes(buf,a0);
+ sipCpp -> TQDataStream::readRawBytes(buf,a0);
Py_END_ALLOW_THREADS
sipRes = sipBuildResult(&sipIsErr,"(Sa)",sipSelf,buf,a0);
@@ -130,95 +130,95 @@ public:
}
%End
- QDataStream &writeBytes(const char * /Array/,
+ TQDataStream &writeBytes(const char * /Array/,
uint /ArraySize/) /ReleaseGIL/;
- QDataStream &writeRawBytes(const char * /Array/,
+ TQDataStream &writeRawBytes(const char * /Array/,
uint /ArraySize/) /ReleaseGIL/;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
// These are taken from the corresponding class definitions. We limit
- // them to Qt v3.0.0 and later just to avoid checking earlier versions.
+ // them to TQt v3.0.0 and later just to avoid checking earlier versions.
- QDataStream &operator<<(const QBrush &);
- QDataStream &operator>>(QBrush & /Constrained/);
+ TQDataStream &operator<<(const TQBrush &);
+ TQDataStream &operator>>(TQBrush & /Constrained/);
- QDataStream &operator<<(const QColor &);
- QDataStream &operator>>(QColor & /Constrained/);
+ TQDataStream &operator<<(const TQColor &);
+ TQDataStream &operator>>(TQColor & /Constrained/);
- QDataStream &operator<<(const QByteArray &);
- QDataStream &operator>>(QByteArray & /Constrained/);
+ TQDataStream &operator<<(const TQByteArray &);
+ TQDataStream &operator>>(TQByteArray & /Constrained/);
- QDataStream &operator<<(const QCString &);
- QDataStream &operator>>(QCString & /Constrained/);
+ TQDataStream &operator<<(const TQCString &);
+ TQDataStream &operator>>(TQCString & /Constrained/);
- QDataStream &operator<<(const QCursor &);
- QDataStream &operator>>(QCursor & /Constrained/);
+ TQDataStream &operator<<(const TQCursor &);
+ TQDataStream &operator>>(TQCursor & /Constrained/);
- QDataStream &operator<<(const QDate &);
- QDataStream &operator>>(QDate & /Constrained/);
+ TQDataStream &operator<<(const TQDate &);
+ TQDataStream &operator>>(TQDate & /Constrained/);
- QDataStream &operator<<(const QTime &);
- QDataStream &operator>>(QTime & /Constrained/);
+ TQDataStream &operator<<(const TQTime &);
+ TQDataStream &operator>>(TQTime & /Constrained/);
- QDataStream &operator<<(const QDateTime &);
- QDataStream &operator>>(QDateTime & /Constrained/);
+ TQDataStream &operator<<(const TQDateTime &);
+ TQDataStream &operator>>(TQDateTime & /Constrained/);
- QDataStream &operator<<(const QFont &);
- QDataStream &operator>>(QFont & /Constrained/);
+ TQDataStream &operator<<(const TQFont &);
+ TQDataStream &operator>>(TQFont & /Constrained/);
- QDataStream &operator<<(const QImage &);
- QDataStream &operator>>(QImage & /Constrained/);
+ TQDataStream &operator<<(const TQImage &);
+ TQDataStream &operator>>(TQImage & /Constrained/);
- QDataStream &operator<<(const QKeySequence &);
- QDataStream &operator>>(QKeySequence & /Constrained/);
+ TQDataStream &operator<<(const TQKeySequence &);
+ TQDataStream &operator>>(TQKeySequence & /Constrained/);
- QDataStream &operator<<(const QColorGroup &);
- QDataStream &operator>>(QColorGroup & /Constrained/);
+ TQDataStream &operator<<(const TQColorGroup &);
+ TQDataStream &operator>>(TQColorGroup & /Constrained/);
- QDataStream &operator<<(const QPalette &);
- QDataStream &operator>>(QPalette & /Constrained/);
+ TQDataStream &operator<<(const TQPalette &);
+ TQDataStream &operator>>(TQPalette & /Constrained/);
- QDataStream &operator<<(const QPen &);
- QDataStream &operator>>(QPen & /Constrained/);
+ TQDataStream &operator<<(const TQPen &);
+ TQDataStream &operator>>(TQPen & /Constrained/);
- QDataStream &operator<<(const QPicture &);
- QDataStream &operator>>(QPicture & /Constrained/);
+ TQDataStream &operator<<(const TQPicture &);
+ TQDataStream &operator>>(TQPicture & /Constrained/);
- QDataStream &operator<<(const QPixmap &);
- QDataStream &operator>>(QPixmap & /Constrained/);
+ TQDataStream &operator<<(const TQPixmap &);
+ TQDataStream &operator>>(TQPixmap & /Constrained/);
- QDataStream &operator<<(const QPointArray &);
- QDataStream &operator>>(QPointArray & /Constrained/);
+ TQDataStream &operator<<(const TQPointArray &);
+ TQDataStream &operator>>(TQPointArray & /Constrained/);
- QDataStream &operator<<(const QPoint &);
- QDataStream &operator>>(QPoint & /Constrained/);
+ TQDataStream &operator<<(const TQPoint &);
+ TQDataStream &operator>>(TQPoint & /Constrained/);
- QDataStream &operator<<(const QRect &);
- QDataStream &operator>>(QRect & /Constrained/);
+ TQDataStream &operator<<(const TQRect &);
+ TQDataStream &operator>>(TQRect & /Constrained/);
- QDataStream &operator<<(const QRegion &);
- QDataStream &operator>>(QRegion & /Constrained/);
+ TQDataStream &operator<<(const TQRegion &);
+ TQDataStream &operator>>(TQRegion & /Constrained/);
- QDataStream &operator<<(const QSize &);
- QDataStream &operator>>(QSize & /Constrained/);
+ TQDataStream &operator<<(const TQSize &);
+ TQDataStream &operator>>(TQSize & /Constrained/);
- QDataStream &operator<<(const QString &);
- QDataStream &operator>>(QString & /Constrained/);
+ TQDataStream &operator<<(const TQString &);
+ TQDataStream &operator>>(TQString & /Constrained/);
- QDataStream &operator<<(const QStringList &);
- QDataStream &operator>>(QStringList & /Constrained/);
+ TQDataStream &operator<<(const TQStringList &);
+ TQDataStream &operator>>(TQStringList & /Constrained/);
- QDataStream &operator<<(const QVariant &);
- QDataStream &operator>>(QVariant & /Constrained/);
+ TQDataStream &operator<<(const TQVariant &);
+ TQDataStream &operator>>(TQVariant & /Constrained/);
- QDataStream &operator<<(const QWMatrix &);
- QDataStream &operator>>(QWMatrix & /Constrained/);
+ TQDataStream &operator<<(const TQWMatrix &);
+ TQDataStream &operator>>(TQWMatrix & /Constrained/);
%End
-%If (Qt_3_1_0 -)
- QDataStream &operator<<(const QUuid &);
- QDataStream &operator>>(QUuid & /Constrained/);
+%If (TQt_3_1_0 -)
+ TQDataStream &operator<<(const TQUuid &);
+ TQDataStream &operator>>(TQUuid & /Constrained/);
%End
private:
- QDataStream(const QDataStream &);
+ TQDataStream(const TQDataStream &);
};
diff --git a/sip/qt/qdatetime.sip b/sip/qt/qdatetime.sip
index cede021..c631660 100644
--- a/sip/qt/qdatetime.sip
+++ b/sip/qt/qdatetime.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QDate, QDateTime and QTime.
+// This is the SIP interface definition for TQDate, TQDateTime and TQTime.
//
// 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>QDate</Title>
+<Sect2><Title>TQDate</Title>
<Para>
The Python
<Literal>==</Literal>, <Literal>!=</Literal>,
@@ -37,13 +37,13 @@ operators are supported.
</FuncSynopsis>
<Para>
This takes no parameters and returns the week number and the year number as a
-tuple. (Qt v3.1+)
+tuple. (TQt v3.1+)
</Para>
</Sect2>
-<Sect2><Title>QDateTime</Title>
+<Sect2><Title>TQDateTime</Title>
<Para>
-<Literal>QDateTime</Literal> is fully implemented, including the Python
+<Literal>TQDateTime</Literal> is fully implemented, including the Python
<Literal>==</Literal>, <Literal>!=</Literal>,
<Literal>&lt;</Literal>, <Literal>&lt;=</Literal>,
<Literal>&gt;</Literal>, <Literal>&gt;=</Literal>
@@ -52,9 +52,9 @@ operators.
</Para>
</Sect2>
-<Sect2><Title>QTime</Title>
+<Sect2><Title>TQTime</Title>
<Para>
-<Literal>QTime</Literal> is fully implemented, including the Python
+<Literal>TQTime</Literal> is fully implemented, including the Python
<Literal>==</Literal>, <Literal>!=</Literal>,
<Literal>&lt;</Literal>, <Literal>&lt;=</Literal>,
<Literal>&gt;</Literal>, <Literal>&gt;=</Literal>
@@ -65,15 +65,15 @@ operators.
%End
-class QDate
+class TQDate
{
%TypeHeaderCode
#include <qdatetime.h>
%End
public:
- QDate();
- QDate(int,int,int);
+ TQDate();
+ TQDate(int,int,int);
bool isNull() const;
bool isValid() const;
@@ -86,79 +86,79 @@ public:
int daysInMonth() const;
int daysInYear() const;
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
int weekNumber(int * = 0) const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
virtual const char *monthName(int) const;
virtual const char *dayName(int) const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
- virtual QString monthName(int) const;
- virtual QString dayName(int) const;
+%If (TQt_2_00 - TQt_3_0_0)
+ virtual TQString monthName(int) const;
+ virtual TQString dayName(int) const;
%End
-%If (Qt_3_0_0 -)
- static QString shortMonthName(int);
- static QString shortDayName(int);
- static QString longMonthName(int);
- static QString longDayName(int);
+%If (TQt_3_0_0 -)
+ static TQString shortMonthName(int);
+ static TQString shortDayName(int);
+ static TQString longMonthName(int);
+ static TQString longDayName(int);
%End
-%If (- Qt_3_0_0)
- QString toString() const;
+%If (- TQt_3_0_0)
+ TQString toString() const;
%End
-%If (Qt_3_0_0 -)
- QString toString(Qt::DateFormat = Qt::TextDate) const;
- QString toString(const QString &) const;
+%If (TQt_3_0_0 -)
+ TQString toString(TQt::DateFormat = TQt::TextDate) const;
+ TQString toString(const TQString &) const;
%End
bool setYMD(int,int,int);
- QDate addDays(int) const;
-%If (Qt_3_0_0 -)
- QDate addMonths(int) const;
- QDate addYears(int) const;
+ TQDate addDays(int) const;
+%If (TQt_3_0_0 -)
+ TQDate addMonths(int) const;
+ TQDate addYears(int) const;
%End
- int daysTo(const QDate &) const;
+ int daysTo(const TQDate &) const;
int __nonzero__() const;
%MethodCode
sipRes = !sipCpp -> isNull();
%End
- bool operator==(const QDate &) const;
- bool operator!=(const QDate &) const;
- bool operator<(const QDate &) const;
- bool operator<=(const QDate &) const;
- bool operator>(const QDate &) const;
- bool operator>=(const QDate &) const;
+ bool operator==(const TQDate &) const;
+ bool operator!=(const TQDate &) const;
+ bool operator<(const TQDate &) const;
+ bool operator<=(const TQDate &) const;
+ bool operator>(const TQDate &) const;
+ bool operator>=(const TQDate &) const;
- static QDate currentDate();
-%If (Qt_3_1_0 -)
- static QDate currentDate(Qt::TimeSpec);
+ static TQDate currentDate();
+%If (TQt_3_1_0 -)
+ static TQDate currentDate(TQt::TimeSpec);
%End
-%If (Qt_3_0_0 -)
- static QDate fromString(const QString &,Qt::DateFormat = Qt::TextDate);
+%If (TQt_3_0_0 -)
+ static TQDate fromString(const TQString &,TQt::DateFormat = TQt::TextDate);
%End
static bool isValid(int,int,int);
static bool leapYear(int);
-%If (Qt_3_0_0 -)
- // These are defined in Qt3 but not documented.
+%If (TQt_3_0_0 -)
+ // These are defined in TQt3 but not documented.
//static uint gregorianToJulian(int,int,int);
//static void julianToGregorian(uint,int &,int &,int &);
%End
};
-class QTime
+class TQTime
{
%TypeHeaderCode
#include <qdatetime.h>
%End
public:
- QTime();
- QTime(int,int,int = 0,int = 0);
+ TQTime();
+ TQTime(int,int,int = 0,int = 0);
bool isNull() const;
bool isValid() const;
@@ -167,114 +167,114 @@ public:
int second() const;
int msec() const;
-%If (- Qt_3_0_0)
- QString toString() const;
+%If (- TQt_3_0_0)
+ TQString toString() const;
%End
-%If (Qt_3_0_0 -)
- QString toString(Qt::DateFormat = Qt::TextDate) const;
- QString toString(const QString &) const;
+%If (TQt_3_0_0 -)
+ TQString toString(TQt::DateFormat = TQt::TextDate) const;
+ TQString toString(const TQString &) const;
%End
bool setHMS(int,int,int,int = 0);
- QTime addSecs(int) const;
- int secsTo(const QTime &) const;
- QTime addMSecs(int) const;
- int msecsTo(const QTime &) const;
+ TQTime addSecs(int) const;
+ int secsTo(const TQTime &) const;
+ TQTime addMSecs(int) const;
+ int msecsTo(const TQTime &) const;
int __nonzero__() const;
%MethodCode
sipRes = !sipCpp -> isNull();
%End
- bool operator==(const QTime &) const;
- bool operator!=(const QTime &) const;
- bool operator<(const QTime &) const;
- bool operator<=(const QTime &) const;
- bool operator>(const QTime &) const;
- bool operator>=(const QTime &) const;
+ bool operator==(const TQTime &) const;
+ bool operator!=(const TQTime &) const;
+ bool operator<(const TQTime &) const;
+ bool operator<=(const TQTime &) const;
+ bool operator>(const TQTime &) const;
+ bool operator>=(const TQTime &) const;
- static QTime currentTime();
-%If (Qt_3_1_0 -)
- static QTime currentTime(Qt::TimeSpec);
+ static TQTime currentTime();
+%If (TQt_3_1_0 -)
+ static TQTime currentTime(TQt::TimeSpec);
%End
-%If (Qt_3_0_0 -)
- static QTime fromString(const QString &,Qt::DateFormat = Qt::TextDate);
+%If (TQt_3_0_0 -)
+ static TQTime fromString(const TQString &,TQt::DateFormat = TQt::TextDate);
%End
static bool isValid(int,int,int,int = 0);
void start();
int restart();
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int elapsed();
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int elapsed() const;
%End
};
-class QDateTime
+class TQDateTime
{
%TypeHeaderCode
#include <qdatetime.h>
%End
public:
- QDateTime();
- QDateTime(const QDate &);
- QDateTime(const QDate &,const QTime &);
+ TQDateTime();
+ TQDateTime(const TQDate &);
+ TQDateTime(const TQDate &,const TQTime &);
bool isNull() const;
bool isValid() const;
- QDate date() const;
- QTime time() const;
-%If (Qt_3_1_0 -)
+ TQDate date() const;
+ TQTime time() const;
+%If (TQt_3_1_0 -)
uint toTime_t() const;
%End
- void setDate(const QDate &);
- void setTime(const QTime &);
+ void setDate(const TQDate &);
+ void setTime(const TQTime &);
void setTime_t(uint);
-%If (Qt_3_1_0 -)
- void setTime_t(uint,Qt::TimeSpec);
+%If (TQt_3_1_0 -)
+ void setTime_t(uint,TQt::TimeSpec);
%End
-%If (- Qt_3_0_0)
- QString toString() const;
+%If (- TQt_3_0_0)
+ TQString toString() const;
%End
-%If (Qt_3_0_0 -)
- QString toString(Qt::DateFormat = Qt::TextDate) const;
- QString toString(const QString &) const;
+%If (TQt_3_0_0 -)
+ TQString toString(TQt::DateFormat = TQt::TextDate) const;
+ TQString toString(const TQString &) const;
%End
- QDateTime addDays(int) const;
-%If (Qt_3_0_0 -)
- QDateTime addMonths(int) const;
- QDateTime addYears(int) const;
+ TQDateTime addDays(int) const;
+%If (TQt_3_0_0 -)
+ TQDateTime addMonths(int) const;
+ TQDateTime addYears(int) const;
%End
- QDateTime addSecs(int) const;
- int daysTo(const QDateTime &) const;
- int secsTo(const QDateTime &) const;
+ TQDateTime addSecs(int) const;
+ int daysTo(const TQDateTime &) const;
+ int secsTo(const TQDateTime &) const;
int __nonzero__() const;
%MethodCode
sipRes = !sipCpp -> isNull();
%End
- bool operator==(const QDateTime &) const;
- bool operator!=(const QDateTime &) const;
- bool operator<(const QDateTime &) const;
- bool operator<=(const QDateTime &) const;
- bool operator>(const QDateTime &) const;
- bool operator>=(const QDateTime &) const;
+ bool operator==(const TQDateTime &) const;
+ bool operator!=(const TQDateTime &) const;
+ bool operator<(const TQDateTime &) const;
+ bool operator<=(const TQDateTime &) const;
+ bool operator>(const TQDateTime &) const;
+ bool operator>=(const TQDateTime &) const;
- static QDateTime currentDateTime();
-%If (Qt_3_1_0 -)
- static QDateTime currentDateTime(Qt::TimeSpec);
+ static TQDateTime currentDateTime();
+%If (TQt_3_1_0 -)
+ static TQDateTime currentDateTime(TQt::TimeSpec);
%End
-%If (Qt_3_0_0 -)
- static QDateTime fromString(const QString &,
- Qt::DateFormat = Qt::TextDate);
+%If (TQt_3_0_0 -)
+ static TQDateTime fromString(const TQString &,
+ TQt::DateFormat = TQt::TextDate);
%End
};
diff --git a/sip/qt/qdatetimeedit.sip b/sip/qt/qdatetimeedit.sip
index 27ee830..271c4ca 100644
--- a/sip/qt/qdatetimeedit.sip
+++ b/sip/qt/qdatetimeedit.sip
@@ -1,61 +1,61 @@
-// This is the SIP interface definition for QDateEdit, QDateTimeEdit and
-// QTimeEdit.
+// This is the SIP interface definition for TQDateEdit, TQDateTimeEdit and
+// TQTimeEdit.
//
// 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>QDateEdit (Qt v3+)</Title>
+<Sect2><Title>TQDateEdit (TQt v3+)</Title>
<Para>
-<Literal>QDateEdit</Literal> is fully implemented.
+<Literal>TQDateEdit</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTimeEdit (Qt v3+)</Title>
+<Sect2><Title>TQTimeEdit (TQt v3+)</Title>
<Para>
-<Literal>QTimeEdit</Literal> is fully implemented.
+<Literal>TQTimeEdit</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDateTimeEdit (Qt v3+)</Title>
+<Sect2><Title>TQDateTimeEdit (TQt v3+)</Title>
<Para>
-<Literal>QDateTimeEdit</Literal> is fully implemented.
+<Literal>TQDateTimeEdit</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-// QDateEdit actually inherits QDateTimeEditBase but that's an internal class
+// TQDateEdit actually inherits TQDateTimeEditBase but that's an internal class
// and isn't exported under Windows in all versions.
-class QDateEdit : QWidget
+class TQDateEdit : TQWidget
{
%TypeHeaderCode
#include <qdatetimeedit.h>
%End
public:
- QDateEdit(QWidget * /TransferThis/ = 0,const char * = 0);
- QDateEdit(const QDate &,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQDateEdit(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQDateEdit(const TQDate &,TQWidget * /TransferThis/ = 0,const char * = 0);
enum Order {
DMY,
@@ -64,44 +64,44 @@ public:
YDM
};
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
-%If (- Qt_3_1_0)
- virtual void setDate(const QDate &);
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
+%If (- TQt_3_1_0)
+ virtual void setDate(const TQDate &);
%End
- QDate date() const;
+ TQDate date() const;
virtual void setOrder(Order);
Order order() const;
virtual void setAutoAdvance(bool);
bool autoAdvance() const;
- virtual void setMinValue(const QDate &);
- QDate minValue() const;
- virtual void setMaxValue(const QDate &);
- QDate maxValue() const;
- virtual void setRange(const QDate &,const QDate &);
- QString separator() const;
- virtual void setSeparator(const QString &);
+ virtual void setMinValue(const TQDate &);
+ TQDate minValue() const;
+ virtual void setMaxValue(const TQDate &);
+ TQDate maxValue() const;
+ virtual void setRange(const TQDate &,const TQDate &);
+ TQString separator() const;
+ virtual void setSeparator(const TQString &);
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void removeFirstNumber(int);
%End
public slots:
-%If (Qt_3_1_0 -)
- virtual void setDate(const QDate &);
+%If (TQt_3_1_0 -)
+ virtual void setDate(const TQDate &);
%End
signals:
- void valueChanged(const QDate &);
+ void valueChanged(const TQDate &);
protected:
- bool event(QEvent *);
- void timerEvent(QTimerEvent *);
- void resizeEvent(QResizeEvent *);
+ bool event(TQEvent *);
+ void timerEvent(TQTimerEvent *);
+ void resizeEvent(TQResizeEvent *);
void stepUp();
void stepDown();
- QString sectionFormattedText(int);
+ TQString sectionFormattedText(int);
void addNumber(int,int);
void removeLastNumber(int);
bool setFocusSection(int);
@@ -116,23 +116,23 @@ protected slots:
void updateButtons();
private:
-%If (Qt_3_1_0 -)
- QDateEdit(const QDateEdit &);
+%If (TQt_3_1_0 -)
+ TQDateEdit(const TQDateEdit &);
%End
};
-// QDateEdit actually inherits QDateTimeEditBase but that's an internal class
+// TQDateEdit actually inherits TQDateTimeEditBase but that's an internal class
// and isn't exported under Windows in all versions.
-class QTimeEdit : QWidget
+class TQTimeEdit : TQWidget
{
%TypeHeaderCode
#include <qdatetimeedit.h>
%End
public:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum Display {
Hours,
Minutes,
@@ -141,50 +141,50 @@ public:
};
%End
- QTimeEdit(QWidget * /TransferThis/ = 0,const char * = 0);
- QTimeEdit(const QTime &,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQTimeEdit(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQTimeEdit(const TQTime &,TQWidget * /TransferThis/ = 0,const char * = 0);
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
-%If (- Qt_3_1_0)
- virtual void setTime(const QTime &);
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
+%If (- TQt_3_1_0)
+ virtual void setTime(const TQTime &);
%End
- QTime time() const;
+ TQTime time() const;
virtual void setAutoAdvance(bool);
bool autoAdvance() const;
- virtual void setMinValue(const QTime &);
- QTime minValue() const;
- virtual void setMaxValue(const QTime &);
- QTime maxValue() const;
- virtual void setRange(const QTime &,const QTime &);
- QString separator() const;
- virtual void setSeparator(const QString &);
+ virtual void setMinValue(const TQTime &);
+ TQTime minValue() const;
+ virtual void setMaxValue(const TQTime &);
+ TQTime maxValue() const;
+ virtual void setRange(const TQTime &,const TQTime &);
+ TQString separator() const;
+ virtual void setSeparator(const TQString &);
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
uint display() const;
void setDisplay(uint);
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void removeFirstNumber(int);
%End
public slots:
-%If (Qt_3_1_0 -)
- virtual void setTime(const QTime &);
+%If (TQt_3_1_0 -)
+ virtual void setTime(const TQTime &);
%End
signals:
- void valueChanged(const QTime &);
+ void valueChanged(const TQTime &);
protected:
- bool event(QEvent *);
- void timerEvent(QTimerEvent *);
- void resizeEvent(QResizeEvent *);
+ bool event(TQEvent *);
+ void timerEvent(TQTimerEvent *);
+ void resizeEvent(TQResizeEvent *);
void stepUp();
void stepDown();
- QString sectionFormattedText(int);
+ TQString sectionFormattedText(int);
void addNumber(int,int);
void removeLastNumber(int);
bool setFocusSection(int);
@@ -198,58 +198,58 @@ protected slots:
void updateButtons();
private:
-%If (Qt_3_1_0 -)
- QTimeEdit(const QTimeEdit &);
+%If (TQt_3_1_0 -)
+ TQTimeEdit(const TQTimeEdit &);
%End
};
-class QDateTimeEdit : QWidget
+class TQDateTimeEdit : TQWidget
{
%TypeHeaderCode
#include <qdatetimeedit.h>
%End
public:
- QDateTimeEdit(QWidget * /TransferThis/ = 0,const char * = 0);
- QDateTimeEdit(const QDateTime &,QWidget * /TransferThis/ = 0,
+ TQDateTimeEdit(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQDateTimeEdit(const TQDateTime &,TQWidget * /TransferThis/ = 0,
const char * = 0);
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
-%If (- Qt_3_1_0)
- virtual void setDateTime(const QDateTime &);
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
+%If (- TQt_3_1_0)
+ virtual void setDateTime(const TQDateTime &);
%End
- QDateTime dateTime() const;
+ TQDateTime dateTime() const;
- QDateEdit* dateEdit();
- QTimeEdit* timeEdit();
+ TQDateEdit* dateEdit();
+ TQTimeEdit* timeEdit();
virtual void setAutoAdvance(bool);
bool autoAdvance() const;
public slots:
-%If (Qt_3_1_0 -)
- virtual void setDateTime(const QDateTime &);
+%If (TQt_3_1_0 -)
+ virtual void setDateTime(const TQDateTime &);
%End
signals:
- void valueChanged(const QDateTime &);
+ void valueChanged(const TQDateTime &);
protected:
void init();
- void resizeEvent(QResizeEvent *);
-%If (- Qt_3_1_2)
+ void resizeEvent(TQResizeEvent *);
+%If (- TQt_3_1_2)
void layoutEditors();
%End
protected slots:
- void newValue(const QDate &);
- void newValue(const QTime &);
+ void newValue(const TQDate &);
+ void newValue(const TQTime &);
private:
-%If (Qt_3_1_0 -)
- QDateTimeEdit(const QDateTimeEdit &);
+%If (TQt_3_1_0 -)
+ TQDateTimeEdit(const TQDateTimeEdit &);
%End
};
diff --git a/sip/qt/qdesktopwidget.sip b/sip/qt/qdesktopwidget.sip
index a6030e6..76556ad 100644
--- a/sip/qt/qdesktopwidget.sip
+++ b/sip/qt/qdesktopwidget.sip
@@ -1,83 +1,83 @@
-// This is the SIP interface definition for QDesktopWidget.
+// This is the SIP interface definition for TQDesktopWidget.
//
// 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>QDesktopWidget (Qt v3+)</Title>
+<Sect2><Title>TQDesktopWidget (TQt v3+)</Title>
<Para>
-<Literal>QDesktopWidget</Literal> is fully implemented.
+<Literal>TQDesktopWidget</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QDesktopWidget : QWidget
+class TQDesktopWidget : TQWidget
{
%TypeHeaderCode
#include <qdesktopwidget.h>
%End
public:
- QDesktopWidget();
+ TQDesktopWidget();
bool isVirtualDesktop() const;
int numScreens() const;
int primaryScreen() const;
- int screenNumber(QWidget * = 0) const;
- int screenNumber(const QPoint &) const;
+ int screenNumber(TQWidget * = 0) const;
+ int screenNumber(const TQPoint &) const;
- QWidget *screen(int = -1);
+ TQWidget *screen(int = -1);
- const QRect &screenGeometry(int = -1) const;
-%If (Qt_3_1_0 -)
- const QRect &screenGeometry(QWidget *) const;
- const QRect &screenGeometry(const QPoint &) const;
+ const TQRect &screenGeometry(int = -1) const;
+%If (TQt_3_1_0 -)
+ const TQRect &screenGeometry(TQWidget *) const;
+ const TQRect &screenGeometry(const TQPoint &) const;
- const QRect &availableGeometry(int = -1) const;
- const QRect &availableGeometry(QWidget *) const;
- const QRect &availableGeometry(const QPoint &) const;
+ const TQRect &availableGeometry(int = -1) const;
+ const TQRect &availableGeometry(TQWidget *) const;
+ const TQRect &availableGeometry(const TQPoint &) const;
- void insertChild(QObject *);
+ void insertChild(TQObject *);
%End
signals:
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void resized(int);
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
void workAreaResized(int);
%End
protected:
-%If (Qt_3_1_0 -)
- void resizeEvent(QResizeEvent *);
+%If (TQt_3_1_0 -)
+ void resizeEvent(TQResizeEvent *);
%End
private:
-%If (Qt_3_1_0 -)
- QDesktopWidget(const QDesktopWidget &);
+%If (TQt_3_1_0 -)
+ TQDesktopWidget(const TQDesktopWidget &);
%End
};
diff --git a/sip/qt/qdial.sip b/sip/qt/qdial.sip
index 9587e8c..cbf80e1 100644
--- a/sip/qt/qdial.sip
+++ b/sip/qt/qdial.sip
@@ -1,51 +1,51 @@
-// This is the SIP interface definition for QDial.
+// This is the SIP interface definition for TQDial.
//
// 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>QDial (Qt v2.2+)</Title>
+<Sect2><Title>TQDial (TQt v2.2+)</Title>
<Para>
-<Literal>QDial</Literal> is fully implemented.
+<Literal>TQDial</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_2_0 -)
-%If (Qt_DIAL)
+%If (TQt_2_2_0 -)
+%If (TQt_DIAL)
-class QDial : QWidget, QRangeControl
+class TQDial : TQWidget, TQRangeControl
{
%TypeHeaderCode
#include <qdial.h>
%End
public:
-%If (- Qt_3_0_0)
- QDial(QWidget * /TransferThis/ = 0,const char * = 0);
+%If (- TQt_3_0_0)
+ TQDial(TQWidget * /TransferThis/ = 0,const char * = 0);
%End
-%If (Qt_3_0_0 -)
- QDial(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+%If (TQt_3_0_0 -)
+ TQDial(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
%End
- QDial(int,int,int,int,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQDial(int,int,int,int,TQWidget * /TransferThis/ = 0,const char * = 0);
bool tracking() const;
@@ -58,8 +58,8 @@ public:
bool notchesVisible() const;
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
int minValue() const;
int maxValue() const;
@@ -88,24 +88,24 @@ signals:
void dialReleased();
protected:
- void resizeEvent(QResizeEvent *);
- void paintEvent(QPaintEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void paintEvent(TQPaintEvent *);
- void keyPressEvent(QKeyEvent *);
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
- void wheelEvent(QWheelEvent *);
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+ void wheelEvent(TQWheelEvent *);
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
void valueChange();
void rangeChange();
- virtual void repaintScreen(const QRect * = 0);
+ virtual void repaintScreen(const TQRect * = 0);
private:
- QDial(const QDial &);
+ TQDial(const TQDial &);
};
%End
diff --git a/sip/qt/qdialog.sip b/sip/qt/qdialog.sip
index c283520..9874d26 100644
--- a/sip/qt/qdialog.sip
+++ b/sip/qt/qdialog.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QDialog.
+// This is the SIP interface definition for TQDialog.
//
// 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>QDialog</Title>
+<Sect2><Title>TQDialog</Title>
<FuncSynopsis>
<FuncDef>int <Function>exec</Function></FuncDef>
<ParamDef></ParamDef>
@@ -34,41 +34,41 @@ This method also causes ownership of the underlying C++ dialog to be transfered
to Python. This means that the C++ dialog will be deleted when the Python
wrapper is garbage collected. Although this is a little inconsistent, it
ensures that the dialog is deleted without having to explicity code it using
-<Literal>QObject.deleteLater()</Literal> or other techniques.
+<Literal>TQObject.deleteLater()</Literal> or other techniques.
</Para>
</Sect2>
%End
-class QDialog : QWidget
+class TQDialog : TQWidget
{
%TypeHeaderCode
#include <qdialog.h>
%End
public:
- QDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0,WFlags = 0);
+ TQDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,WFlags = 0);
enum DialogCode {
Rejected,
Accepted
};
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int exec() /PyName=exec_loop, ReleaseGIL,
- PreHook=__pyQtPreEventLoopHook__,
- PostHook=__pyQtPostEventLoopHook__/;
+ PreHook=__pyTQtPreEventLoopHook__,
+ PostHook=__pyTQtPostEventLoopHook__/;
%MethodCode
// Transfer ownership back to Python (a modal dialog will
// probably have the main window as it's parent). This means
- // the Qt dialog will be deleted when the Python wrapper is
+ // the TQt dialog will be deleted when the Python wrapper is
// garbage collected. Although this is a little inconsistent,
// it saves having to code it explicitly to avoid the memory
// leak.
sipTransferBack(sipSelf);
Py_BEGIN_ALLOW_THREADS
- sipRes = sipCpp->QDialog::exec();
+ sipRes = sipCpp->TQDialog::exec();
Py_END_ALLOW_THREADS
%End
%End
@@ -76,83 +76,83 @@ public:
int result() const;
void show();
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void hide();
%End
void move(int,int);
- void move(const QPoint &);
+ void move(const TQPoint &);
void resize(int,int);
- void resize(const QSize &);
+ void resize(const TQSize &);
void setGeometry(int,int,int,int);
- void setGeometry(const QRect &);
+ void setGeometry(const TQRect &);
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
void setOrientation(Orientation);
Orientation orientation() const;
- void setExtension(QWidget *);
- QWidget *extension() const;
+ void setExtension(TQWidget *);
+ TQWidget *extension() const;
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
void setSizeGripEnabled(bool);
bool isSizeGripEnabled() const;
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void setModal(bool);
bool isModal() const;
%End
public slots:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int exec() /PyName=exec_loop, ReleaseGIL,
- PreHook=__pyQtPreEventLoopHook__,
- PostHook=__pyQtPostEventLoopHook__/;
+ PreHook=__pyTQtPreEventLoopHook__,
+ PostHook=__pyTQtPostEventLoopHook__/;
%MethodCode
// Transfer ownership back to Python (a modal dialog will
// probably have the main window as it's parent). This means
- // the Qt dialog will be deleted when the Python wrapper is
+ // the TQt dialog will be deleted when the Python wrapper is
// garbage collected. Although this is a little inconsistent,
// it saves having to code it explicitly to avoid the memory
// leak.
sipTransferBack(sipSelf);
Py_BEGIN_ALLOW_THREADS
- sipRes = sipCpp->QDialog::exec();
+ sipRes = sipCpp->TQDialog::exec();
Py_END_ALLOW_THREADS
%End
%End
protected slots:
virtual void done(int);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void accept();
void reject();
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void accept();
virtual void reject();
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
void showExtension(bool);
%End
protected:
void setResult(int);
- void keyPressEvent(QKeyEvent *);
- void closeEvent(QCloseEvent *);
-%If (Qt_2_2_0 -)
- void resizeEvent(QResizeEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void closeEvent(TQCloseEvent *);
+%If (TQt_2_2_0 -)
+ void resizeEvent(TQResizeEvent *);
%End
-%If (Qt_3_0_0 -)
- void contextMenuEvent(QContextMenuEvent *);
- bool eventFilter(QObject *,QEvent *);
- void adjustPosition(QWidget *);
+%If (TQt_3_0_0 -)
+ void contextMenuEvent(TQContextMenuEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
+ void adjustPosition(TQWidget *);
%End
private:
- QDialog(const QDialog &);
+ TQDialog(const TQDialog &);
};
diff --git a/sip/qt/qdir.sip b/sip/qt/qdir.sip
index 93a1f3c..1c1d8d8 100644
--- a/sip/qt/qdir.sip
+++ b/sip/qt/qdir.sip
@@ -1,46 +1,46 @@
-// This is the SIP interface definition for QDir and QFileInfoList.
+// This is the SIP interface definition for TQDir and TQFileInfoList.
//
// 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>QDir</Title>
+<Sect2><Title>TQDir</Title>
<Para>
-<Literal>QDir</Literal> is fully implemented, including the Python
+<Literal>TQDir</Literal> is fully implemented, including the Python
<Literal>len</Literal>, <Literal>[]</Literal> (for reading slices and
individual elements), <Literal>==</Literal>, <Literal>!=</Literal> and
<Literal>in</Literal> operators
</Para>
</Sect2>
-<Sect2><Title>QFileInfoList</Title>
+<Sect2><Title>TQFileInfoList</Title>
<Para>
-This class isn't implemented. Whenever a <Literal>QFileInfoList</Literal> is
+This class isn't implemented. Whenever a <Literal>TQFileInfoList</Literal> is
the return type of a function or the type of an argument, a Python list of
-<Literal>QFileInfo</Literal> instances is used instead.
+<Literal>TQFileInfo</Literal> instances is used instead.
</Para>
</Sect2>
%End
-%MappedType QFileInfoList
+%MappedType TQFileInfoList
{
%TypeHeaderCode
#include <qdir.h>
@@ -48,14 +48,14 @@ the return type of a function or the type of an argument, a Python list of
%ConvertFromTypeCode
PyObject *pl;
- QFileInfo *obj;
+ TQFileInfo *obj;
// Convert the list.
if ((pl = PyList_New(0)) == NULL)
return NULL;
- for (QFileInfoListIterator it(*sipCpp); (obj = it.current()) != NULL; ++it)
+ for (TQFileInfoListIterator it(*sipCpp); (obj = it.current()) != NULL; ++it)
{
PyObject *inst;
@@ -74,7 +74,7 @@ the return type of a function or the type of an argument, a Python list of
%End
%ConvertToTypeCode
- // Convert a Python list of QFileInfo instances to a QFileInfoList on
+ // Convert a Python list of TQFileInfo instances to a TQFileInfoList on
// the heap.
if (sipIsErr == NULL)
@@ -89,16 +89,16 @@ the return type of a function or the type of an argument, a Python list of
return 1;
}
- QFileInfoList *qfil = new QFileInfoList;
+ TQFileInfoList *qfil = new TQFileInfoList;
for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
{
- QFileInfo *qfi;
+ TQFileInfo *qfi;
// We apply the transfer to the list itself, not the elements.
// Note that any temporary element will never be destroyed.
// There is nothing that can be done about this.
- qfi = reinterpret_cast<QFileInfo *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QFileInfo,0,0,0,sipIsErr));
+ qfi = reinterpret_cast<TQFileInfo *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QFileInfo,0,0,0,sipIsErr));
if (*sipIsErr)
{
@@ -116,7 +116,7 @@ the return type of a function or the type of an argument, a Python list of
};
-class QDir
+class TQDir
{
%TypeHeaderCode
#include <qdir.h>
@@ -157,27 +157,27 @@ public:
DefaultSort
};
- QDir();
-%If (- Qt_2_00)
- QDir(const char *,const char * = 0,int = Name | IgnoreCase,int = All);
+ TQDir();
+%If (- TQt_2_00)
+ TQDir(const char *,const char * = 0,int = Name | IgnoreCase,int = All);
%End
-%If (Qt_2_00 -)
- QDir(const QString &,const QString & = QString::null,
+%If (TQt_2_00 -)
+ TQDir(const TQString &,const TQString & = TQString::null,
int = Name | IgnoreCase,int = All);
%End
- QDir(const QDir &);
+ TQDir(const TQDir &);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setPath(const char *);
const char *path() const;
- QString absPath() const;
- QString canonicalPath() const;
+ TQString absPath() const;
+ TQString canonicalPath() const;
- QString dirName() const;
- QString filePath(const char *,bool = 1) const;
- QString absFilePath(const char *,bool = 1) const;
+ TQString dirName() const;
+ TQString filePath(const char *,bool = 1) const;
+ TQString absFilePath(const char *,bool = 1) const;
- static QString convertSeparators(const char *);
+ static TQString convertSeparators(const char *);
bool cd(const char *,bool = 1);
bool cdUp();
@@ -185,44 +185,44 @@ public:
const char *nameFilter() const;
void setNameFilter(const char *);
%End
-%If (Qt_2_00 -)
- virtual void setPath(const QString &);
- virtual QString path() const;
- virtual QString absPath() const;
- virtual QString canonicalPath() const;
+%If (TQt_2_00 -)
+ virtual void setPath(const TQString &);
+ virtual TQString path() const;
+ virtual TQString absPath() const;
+ virtual TQString canonicalPath() const;
- virtual QString dirName() const;
- virtual QString filePath(const QString &,bool = 1) const;
- virtual QString absFilePath(const QString &,bool = 1) const;
+ virtual TQString dirName() const;
+ virtual TQString filePath(const TQString &,bool = 1) const;
+ virtual TQString absFilePath(const TQString &,bool = 1) const;
- static QString convertSeparators(const QString &);
+ static TQString convertSeparators(const TQString &);
- virtual bool cd(const QString &,bool = 1);
+ virtual bool cd(const TQString &,bool = 1);
virtual bool cdUp();
- QString nameFilter() const;
- virtual void setNameFilter(const QString &);
+ TQString nameFilter() const;
+ virtual void setNameFilter(const TQString &);
%End
FilterSpec filter() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setFilter(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setFilter(int);
%End
SortSpec sorting() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setSorting(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setSorting(int);
%End
bool matchAllDirs() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setMatchAllDirs(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setMatchAllDirs(bool);
%End
@@ -235,7 +235,7 @@ public:
Py_END_ALLOW_THREADS
%End
- QString operator[](int) const;
+ TQString operator[](int) const;
%MethodCode
int len;
@@ -248,12 +248,12 @@ public:
else
{
Py_BEGIN_ALLOW_THREADS
- sipRes = new QString((*sipCpp)[a0]);
+ sipRes = new TQString((*sipCpp)[a0]);
Py_END_ALLOW_THREADS
}
%End
- QStringList operator[](SIP_PYSLICE) const;
+ TQStringList operator[](SIP_PYSLICE) const;
%MethodCode
#if PY_VERSION_HEX >= 0x02050000
Py_ssize_t len, start, stop, step, slicelength, i;
@@ -270,7 +270,7 @@ public:
else
{
Py_BEGIN_ALLOW_THREADS
- sipRes = new QStringList();
+ sipRes = new TQStringList();
for (i = 0; i < slicelength; ++i)
{
@@ -281,41 +281,41 @@ public:
}
%End
- int __contains__(const QString &) const;
+ int __contains__(const TQString &) const;
%MethodCode
Py_BEGIN_ALLOW_THREADS
sipRes = (sipCpp -> entryList().findIndex(*a0) >= 0);
Py_END_ALLOW_THREADS
%End
-%If (- Qt_2_00)
- const QStrList *entryList(int = DefaultFilter,int = DefaultSort) const;
- const QStrList *entryList(const char *,int = DefaultFilter,
+%If (- TQt_2_00)
+ const TQStrList *entryList(int = DefaultFilter,int = DefaultSort) const;
+ const TQStrList *entryList(const char *,int = DefaultFilter,
int = DefaultSort) const;
- const QFileInfoList *entryInfoList(int = DefaultFilter,
+ const TQFileInfoList *entryInfoList(int = DefaultFilter,
int = DefaultSort) const;
- const QFileInfoList *entryInfoList(const char *,int = DefaultFilter,
+ const TQFileInfoList *entryInfoList(const char *,int = DefaultFilter,
int = DefaultSort) const;
%End
-%If (Qt_2_00 -)
- virtual QStrList encodedEntryList(int = DefaultFilter,
+%If (TQt_2_00 -)
+ virtual TQStrList encodedEntryList(int = DefaultFilter,
int = DefaultSort) const;
- virtual QStrList encodedEntryList(const QString &,int = DefaultFilter,
+ virtual TQStrList encodedEntryList(const TQString &,int = DefaultFilter,
int = DefaultSort) const;
- virtual QStringList entryList(int = DefaultFilter,
+ virtual TQStringList entryList(int = DefaultFilter,
int = DefaultSort) const;
- virtual QStringList entryList(const QString &,int = DefaultFilter,
+ virtual TQStringList entryList(const TQString &,int = DefaultFilter,
int = DefaultSort) const;
- virtual const QFileInfoList *entryInfoList(int = DefaultFilter,
+ virtual const TQFileInfoList *entryInfoList(int = DefaultFilter,
int = DefaultSort) const;
- virtual const QFileInfoList *entryInfoList(const QString &,
+ virtual const TQFileInfoList *entryInfoList(const TQString &,
int = DefaultFilter,
int = DefaultSort) const;
%End
- static const QFileInfoList *drives();
+ static const TQFileInfoList *drives();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
bool mkdir(const char *,bool = 1) const;
bool rmdir(const char *,bool = 1) const;
@@ -326,16 +326,16 @@ public:
bool isRelative() const;
void convertToAbs();
- bool operator==(const QDir &) const;
- bool operator!=(const QDir &) const;
+ bool operator==(const TQDir &) const;
+ bool operator!=(const TQDir &) const;
bool remove(const char *,bool = 1);
bool rename(const char *,const char *,bool = 1);
bool exists(const char *,bool = 1);
%End
-%If (Qt_2_00 -)
- virtual bool mkdir(const QString &,bool = 1) const;
- virtual bool rmdir(const QString &,bool = 1) const;
+%If (TQt_2_00 -)
+ virtual bool mkdir(const TQString &,bool = 1) const;
+ virtual bool rmdir(const TQString &,bool = 1) const;
virtual bool isReadable() const;
virtual bool exists() const;
@@ -344,40 +344,40 @@ public:
virtual bool isRelative() const;
virtual void convertToAbs();
- virtual bool remove(const QString &,bool = 1);
- virtual bool rename(const QString &,const QString &,bool = 1);
- virtual bool exists(const QString &,bool = 1);
+ virtual bool remove(const TQString &,bool = 1);
+ virtual bool rename(const TQString &,const TQString &,bool = 1);
+ virtual bool exists(const TQString &,bool = 1);
%End
static char separator();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
static bool setCurrent(const char *);
%End
-%If (Qt_2_00 -)
- static bool setCurrent(const QString &);
+%If (TQt_2_00 -)
+ static bool setCurrent(const TQString &);
%End
- static QDir current();
- static QDir home();
- static QDir root();
- static QString currentDirPath();
- static QString homeDirPath();
- static QString rootDirPath();
-
-%If (- Qt_2_00)
+ static TQDir current();
+ static TQDir home();
+ static TQDir root();
+ static TQString currentDirPath();
+ static TQString homeDirPath();
+ static TQString rootDirPath();
+
+%If (- TQt_2_00)
static bool match(const char *,const char *);
- static QString cleanDirPath(const char *);
+ static TQString cleanDirPath(const char *);
static bool isRelativePath(const char *);
%End
-%If (Qt_2_1_0 -)
- static bool match(const QStringList &,const QString &);
+%If (TQt_2_1_0 -)
+ static bool match(const TQStringList &,const TQString &);
%End
-%If (Qt_2_00 -)
- static bool match(const QString &,const QString &);
- static QString cleanDirPath(const QString &);
- static bool isRelativePath(const QString &);
+%If (TQt_2_00 -)
+ static bool match(const TQString &,const TQString &);
+ static TQString cleanDirPath(const TQString &);
+ static bool isRelativePath(const TQString &);
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void refresh() const;
%End
};
diff --git a/sip/qt/qdockarea.sip b/sip/qt/qdockarea.sip
index 87c0126..7c1c7a3 100644
--- a/sip/qt/qdockarea.sip
+++ b/sip/qt/qdockarea.sip
@@ -1,43 +1,43 @@
-// This is the SIP interface definition for QDockArea.
+// This is the SIP interface definition for TQDockArea.
//
// 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>QDockArea (Qt v3+)</Title>
+<Sect2><Title>TQDockArea (TQt v3+)</Title>
<FuncSynopsis>
<FuncDef>bool <Function>hasDockWindow</Function> const</FuncDef>
- <ParamDef>QDockWindow *<Parameter>w</Parameter></ParamDef>
+ <ParamDef>TQDockWindow *<Parameter>w</Parameter></ParamDef>
<ParamDef>int *<Parameter>index</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
This takes the <Literal>w</Literal> parameter and returns the index of the
-QDockWIndow or -1 if the QDockArea does not contain the QDockWindow.
+TQDockWIndow or -1 if the TQDockArea does not contain the TQDockWindow.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QDockArea : QWidget
+class TQDockArea : TQWidget
{
%TypeHeaderCode
#include <qdockarea.h>
@@ -49,40 +49,40 @@ public:
Reverse
};
- QDockArea(Orientation,HandlePosition = Normal,
- QWidget * /TransferThis/ = 0,const char * = 0);
+ TQDockArea(Orientation,HandlePosition = Normal,
+ TQWidget * /TransferThis/ = 0,const char * = 0);
- void moveDockWindow(QDockWindow *,const QPoint &,const QRect &,bool);
- void removeDockWindow(QDockWindow *,bool,bool,bool = 1);
- void moveDockWindow(QDockWindow *,int = -1);
+ void moveDockWindow(TQDockWindow *,const TQPoint &,const TQRect &,bool);
+ void removeDockWindow(TQDockWindow *,bool,bool,bool = 1);
+ void moveDockWindow(TQDockWindow *,int = -1);
- int hasDockWindow(QDockWindow *);
+ int hasDockWindow(TQDockWindow *);
%MethodCode
// The Python interface returns the index.
Py_BEGIN_ALLOW_THREADS
- sipCpp -> QDockArea::hasDockWindow(a0,&sipRes);
+ sipCpp -> TQDockArea::hasDockWindow(a0,&sipRes);
Py_END_ALLOW_THREADS
%End
- void invalidNextOffset(QDockWindow *);
+ void invalidNextOffset(TQDockWindow *);
Orientation orientation() const;
HandlePosition handlePosition() const;
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
bool isEmpty() const;
int count() const;
- QPtrList<QDockWindow> dockWindowList() const;
+ TQPtrList<TQDockWindow> dockWindowList() const;
- bool isDockWindowAccepted(QDockWindow *);
- void setAcceptDockWindow(QDockWindow *,bool);
+ bool isDockWindowAccepted(TQDockWindow *);
+ void setAcceptDockWindow(TQDockWindow *,bool);
public slots:
void lineUp(bool);
private:
- QDockArea(const QDockArea &);
+ TQDockArea(const TQDockArea &);
};
%End
diff --git a/sip/qt/qdockwindow.sip b/sip/qt/qdockwindow.sip
index 5a2bef6..d9ad4fd 100644
--- a/sip/qt/qdockwindow.sip
+++ b/sip/qt/qdockwindow.sip
@@ -1,37 +1,37 @@
-// This is the SIP interface definition for QDockWindow.
+// This is the SIP interface definition for TQDockWindow.
//
// 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>QDockWindow (Qt v3+)</Title>
+<Sect2><Title>TQDockWindow (TQt v3+)</Title>
<Para>
-<Literal>QDockWindow</Literal> is fully implemented.
+<Literal>TQDockWindow</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QDockWindow : QFrame
+class TQDockWindow : TQFrame
{
%TypeHeaderCode
#include <qdockwindow.h>
@@ -50,18 +50,18 @@ public:
Always
};
- QDockWindow(Place = InDock,QWidget * /TransferThis/ = 0,
+ TQDockWindow(Place = InDock,TQWidget * /TransferThis/ = 0,
const char * = 0,WFlags = 0);
-%If (Qt_3_1_0 -)
- QDockWindow(QWidget * /TransferThis/,const char * = 0,WFlags = 0);
+%If (TQt_3_1_0 -)
+ TQDockWindow(TQWidget * /TransferThis/,const char * = 0,WFlags = 0);
%End
- virtual void setWidget(QWidget *);
- QWidget *widget() const;
+ virtual void setWidget(TQWidget *);
+ TQWidget *widget() const;
Place place() const;
- QDockArea *area() const;
+ TQDockArea *area() const;
virtual void setCloseMode(int);
bool isCloseEnabled() const;
@@ -83,53 +83,53 @@ public:
virtual void setFixedExtentWidth(int);
virtual void setFixedExtentHeight(int);
- QSize fixedExtent() const;
+ TQSize fixedExtent() const;
virtual void setNewLine(bool);
bool newLine() const;
- Qt::Orientation orientation() const;
+ TQt::Orientation orientation() const;
- QSize sizeHint() const;
- QSize minimumSize() const;
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+ TQSize minimumSize() const;
+ TQSize minimumSizeHint() const;
- QBoxLayout *boxLayout();
+ TQBoxLayout *boxLayout();
virtual void setOpaqueMoving(bool);
bool opaqueMoving() const;
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
signals:
void orientationChanged(Orientation);
- void placeChanged(QDockWindow::Place);
+ void placeChanged(TQDockWindow::Place);
void visibilityChanged(bool);
public slots:
- virtual void undock(QWidget *);
+ virtual void undock(TQWidget *);
virtual void undock();
virtual void dock();
virtual void setOrientation(Orientation);
- void setCaption(const QString &);
+ void setCaption(const TQString &);
protected:
- void resizeEvent(QResizeEvent *);
- void showEvent(QShowEvent *);
- void hideEvent(QHideEvent *);
- void contextMenuEvent(QContextMenuEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void showEvent(TQShowEvent *);
+ void hideEvent(TQHideEvent *);
+ void contextMenuEvent(TQContextMenuEvent *);
-%If (Qt_3_0_1 -)
- void drawFrame(QPainter *);
+%If (TQt_3_0_1 -)
+ void drawFrame(TQPainter *);
%End
-%If (Qt_3_1_0 -)
- void drawContents(QPainter *);
+%If (TQt_3_1_0 -)
+ void drawContents(TQPainter *);
%End
- bool event(QEvent *);
+ bool event(TQEvent *);
private:
- QDockWindow(const QDockWindow &);
+ TQDockWindow(const TQDockWindow &);
};
%End
diff --git a/sip/qt/qdragobject.sip b/sip/qt/qdragobject.sip
index 5465219..9c7f50f 100644
--- a/sip/qt/qdragobject.sip
+++ b/sip/qt/qdragobject.sip
@@ -1,74 +1,74 @@
-// This is the SIP interface definition for QDragObject, QImageDrag,
-// QStoredDrag, QTextDrag, QUriDrag, QUrlDrag, QColorDrag.
+// This is the SIP interface definition for TQDragObject, TQImageDrag,
+// TQStoredDrag, TQTextDrag, TQUriDrag, TQUrlDrag, TQColorDrag.
//
// 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>QColorDrag (Qt v2.1+)</Title>
+<Sect2><Title>TQColorDrag (TQt v2.1+)</Title>
<Para>
-<Literal>QColorDrag</Literal> is fully implemented.
+<Literal>TQColorDrag</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDragObject</Title>
+<Sect2><Title>TQDragObject</Title>
<Para>
-<Literal>QDragObject</Literal> is fully implemented.
+<Literal>TQDragObject</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QImageDrag</Title>
+<Sect2><Title>TQImageDrag</Title>
<Para>
-<Literal>QImageDrag</Literal> is fully implemented.
+<Literal>TQImageDrag</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QStoredDrag</Title>
+<Sect2><Title>TQStoredDrag</Title>
<Para>
-<Literal>QStoredDrag</Literal> is fully implemented.
+<Literal>TQStoredDrag</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTextDrag</Title>
+<Sect2><Title>TQTextDrag</Title>
<Para>
-<Literal>QTextDrag</Literal> is fully implemented.
+<Literal>TQTextDrag</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QUriDrag (Qt v2+)</Title>
+<Sect2><Title>TQUriDrag (TQt v2+)</Title>
<Para>
-<Literal>QUriDrag</Literal> is fully implemented.
+<Literal>TQUriDrag</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QUrlDrag (Qt v1.x)</Title>
+<Sect2><Title>TQUrlDrag (TQt v1.x)</Title>
<Para>
-<Literal>QUrlDrag</Literal> is fully implemented.
+<Literal>TQUrlDrag</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QDragObject : QObject
+class TQDragObject : TQObject
{
%TypeHeaderCode
#include <qdragobject.h>
@@ -82,19 +82,19 @@ public:
DragCopyOrMove
};
- QDragObject(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQDragObject(TQWidget * /TransferThis/ = 0,const char * = 0);
bool drag();
bool dragMove();
void dragCopy();
virtual bool provides(const char *) const;
virtual const char *format(int) const = 0;
- virtual QByteArray encodedData(const char *) const = 0;
- void setPixmap(QPixmap);
- void setPixmap(QPixmap,QPoint);
- QPixmap pixmap() const;
- QPoint pixmapHotSpot() const;
- QWidget *source();
+ virtual TQByteArray encodedData(const char *) const = 0;
+ void setPixmap(TQPixmap);
+ void setPixmap(TQPixmap,TQPoint);
+ TQPixmap pixmap() const;
+ TQPoint pixmapHotSpot() const;
+ TQWidget *source();
protected:
virtual bool drag(DragMode);
@@ -102,43 +102,43 @@ protected:
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QDragObject : QObject, QMimeSource
+class TQDragObject : TQObject, TQMimeSource
{
%TypeHeaderCode
#include <qdragobject.h>
%End
public:
- QDragObject(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQDragObject(TQWidget * /TransferThis/ = 0,const char * = 0);
-%If (Qt_DRAGANDDROP)
+%If (TQt_DRAGANDDROP)
bool drag();
bool dragMove();
void dragCopy();
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void dragLink();
%End
- virtual void setPixmap(QPixmap);
-%If (- Qt_3_0_0)
- virtual void setPixmap(QPixmap,QPoint);
+ virtual void setPixmap(TQPixmap);
+%If (- TQt_3_0_0)
+ virtual void setPixmap(TQPixmap,TQPoint);
%End
-%If (Qt_3_0_0 -)
- virtual void setPixmap(QPixmap,const QPoint &);
+%If (TQt_3_0_0 -)
+ virtual void setPixmap(TQPixmap,const TQPoint &);
%End
- QPixmap pixmap() const;
- QPoint pixmapHotSpot() const;
+ TQPixmap pixmap() const;
+ TQPoint pixmapHotSpot() const;
%End
- QWidget *source();
- static QWidget *target();
+ TQWidget *source();
+ static TQWidget *target();
- static void setTarget(QWidget *);
+ static void setTarget(TQWidget *);
-%If (Qt_DRAGANDDROP)
-%If (- Qt_3_0_0)
+%If (TQt_DRAGANDDROP)
+%If (- TQt_3_0_0)
enum DragMode {
DragDefault,
DragCopy,
@@ -146,7 +146,7 @@ public:
DragCopyOrMove
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum DragMode {
DragDefault,
DragCopy,
@@ -158,216 +158,216 @@ public:
%End
protected:
-%If (Qt_DRAGANDDROP)
+%If (TQt_DRAGANDDROP)
virtual bool drag(DragMode);
%End
private:
-%If (Qt_3_1_0 -)
- QDragObject(const QDragObject &);
+%If (TQt_3_1_0 -)
+ TQDragObject(const TQDragObject &);
%End
};
%End
-class QStoredDrag : QDragObject
+class TQStoredDrag : TQDragObject
{
%TypeHeaderCode
#include <qdragobject.h>
%End
public:
- QStoredDrag(const char *,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQStoredDrag(const char *,TQWidget * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_2_00)
- void setEncodedData(const QByteArray&);
+%If (- TQt_2_00)
+ void setEncodedData(const TQByteArray&);
%End
-%If (Qt_2_00 -)
- virtual void setEncodedData(const QByteArray&);
+%If (TQt_2_00 -)
+ virtual void setEncodedData(const TQByteArray&);
%End
const char *format(int) const;
- virtual QByteArray encodedData(const char *) const;
+ virtual TQByteArray encodedData(const char *) const;
private:
-%If (Qt_3_1_0 -)
- QStoredDrag(const QStoredDrag &);
+%If (TQt_3_1_0 -)
+ TQStoredDrag(const TQStoredDrag &);
%End
};
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QTextDrag : QStoredDrag
+class TQTextDrag : TQStoredDrag
{
%TypeHeaderCode
#include <qdragobject.h>
%End
public:
- QTextDrag(const char *,QWidget * /TransferThis/ = 0,const char * = 0);
- QTextDrag(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQTextDrag(const char *,TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQTextDrag(TQWidget * /TransferThis/ = 0,const char * = 0);
void setText(const char *);
- static bool canDecode(QDragMoveEvent *);
- static bool decode(QDropEvent *,QString &);
+ static bool canDecode(TQDragMoveEvent *);
+ static bool decode(TQDropEvent *,TQString &);
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QTextDrag : QDragObject
+class TQTextDrag : TQDragObject
{
%TypeHeaderCode
#include <qdragobject.h>
%End
public:
- QTextDrag(const QString &,QWidget * /TransferThis/ = 0,
+ TQTextDrag(const TQString &,TQWidget * /TransferThis/ = 0,
const char * = 0);
- QTextDrag(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQTextDrag(TQWidget * /TransferThis/ = 0,const char * = 0);
- virtual void setText(const QString &);
- virtual void setSubtype(const QCString &);
+ virtual void setText(const TQString &);
+ virtual void setSubtype(const TQCString &);
const char *format(int) const;
- virtual QByteArray encodedData(const char *) const;
+ virtual TQByteArray encodedData(const char *) const;
- static bool canDecode(const QMimeSource *);
- static bool decode(const QMimeSource *,QString &);
- static bool decode(const QMimeSource *,QString &,QCString &);
+ static bool canDecode(const TQMimeSource *);
+ static bool decode(const TQMimeSource *,TQString &);
+ static bool decode(const TQMimeSource *,TQString &,TQCString &);
private:
-%If (Qt_3_1_0 -)
- QTextDrag(const QTextDrag &);
+%If (TQt_3_1_0 -)
+ TQTextDrag(const TQTextDrag &);
%End
};
%End
-class QImageDrag : QDragObject
+class TQImageDrag : TQDragObject
{
%TypeHeaderCode
#include <qdragobject.h>
%End
public:
- QImageDrag(QImage,QWidget * /TransferThis/ = 0,const char * = 0);
- QImageDrag(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQImageDrag(TQImage,TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQImageDrag(TQWidget * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_2_00)
- void setImage(QImage);
+%If (- TQt_2_00)
+ void setImage(TQImage);
%End
-%If (Qt_2_00 -)
- virtual void setImage(QImage);
+%If (TQt_2_00 -)
+ virtual void setImage(TQImage);
%End
const char *format(int) const;
- virtual QByteArray encodedData(const char *) const;
+ virtual TQByteArray encodedData(const char *) const;
-%If (- Qt_2_00)
- static bool canDecode(QDragMoveEvent *);
- static bool decode(QDropEvent *,QImage &);
- static bool decode(QDropEvent *,QPixmap &);
+%If (- TQt_2_00)
+ static bool canDecode(TQDragMoveEvent *);
+ static bool decode(TQDropEvent *,TQImage &);
+ static bool decode(TQDropEvent *,TQPixmap &);
%End
-%If (Qt_2_00 -)
- static bool canDecode(const QMimeSource *);
- static bool decode(const QMimeSource *,QImage &);
- static bool decode(const QMimeSource *,QPixmap &);
+%If (TQt_2_00 -)
+ static bool canDecode(const TQMimeSource *);
+ static bool decode(const TQMimeSource *,TQImage &);
+ static bool decode(const TQMimeSource *,TQPixmap &);
%End
private:
-%If (Qt_3_1_0 -)
- QImageDrag(const QImageDrag &);
+%If (TQt_3_1_0 -)
+ TQImageDrag(const TQImageDrag &);
%End
};
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QUrlDrag : QStoredDrag
+class TQUrlDrag : TQStoredDrag
{
%TypeHeaderCode
#include <qdragobject.h>
%End
public:
- QUrlDrag(QStrList,QWidget * /TransferThis/ = 0,const char * = 0);
- QUrlDrag(QWidget * /TransferThis/ = 0,const char * = 0);
-
- void setUrls(QStrList);
- static QString urlToLocalFile(const char *);
- static bool canDecode(QDragMoveEvent *);
- static bool decode(QDropEvent *,QStrList &);
- static bool decodeLocalFiles(QDropEvent *,QStrList &);
+ TQUrlDrag(TQStrList,TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQUrlDrag(TQWidget * /TransferThis/ = 0,const char * = 0);
+
+ void setUrls(TQStrList);
+ static TQString urlToLocalFile(const char *);
+ static bool canDecode(TQDragMoveEvent *);
+ static bool decode(TQDropEvent *,TQStrList &);
+ static bool decodeLocalFiles(TQDropEvent *,TQStrList &);
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QUriDrag : QStoredDrag
+class TQUriDrag : TQStoredDrag
{
%TypeHeaderCode
#include <qdragobject.h>
%End
public:
- QUriDrag(QStrList,QWidget * /TransferThis/ = 0,const char * = 0);
- QUriDrag(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQUriDrag(TQStrList,TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQUriDrag(TQWidget * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_3_0_0)
- void setFilenames(QStringList);
- void setUnicodeUris(QStringList);
+%If (- TQt_3_0_0)
+ void setFilenames(TQStringList);
+ void setUnicodeUris(TQStringList);
%End
-%If (Qt_3_0_0 -)
- void setFileNames(const QStringList &);
- void setUnicodeUris(const QStringList &);
+%If (TQt_3_0_0 -)
+ void setFileNames(const TQStringList &);
+ void setUnicodeUris(const TQStringList &);
%End
- virtual void setUris(QStrList);
+ virtual void setUris(TQStrList);
- static QString uriToLocalFile(const char *);
- static QCString localFileToUri(const QString &);
- static QString uriToUnicodeUri(const char *);
- static QCString unicodeUriToUri(const QString &);
- static bool canDecode(const QMimeSource *);
- static bool decode(const QMimeSource *,QStrList &);
- static bool decodeToUnicodeUris(const QMimeSource *,QStringList &);
- static bool decodeLocalFiles(const QMimeSource *,QStringList &);
+ static TQString uriToLocalFile(const char *);
+ static TQCString localFileToUri(const TQString &);
+ static TQString uriToUnicodeUri(const char *);
+ static TQCString unicodeUriToUri(const TQString &);
+ static bool canDecode(const TQMimeSource *);
+ static bool decode(const TQMimeSource *,TQStrList &);
+ static bool decodeToUnicodeUris(const TQMimeSource *,TQStringList &);
+ static bool decodeLocalFiles(const TQMimeSource *,TQStringList &);
private:
-%If (Qt_3_1_0 -)
- QUriDrag(const QUriDrag &);
+%If (TQt_3_1_0 -)
+ TQUriDrag(const TQUriDrag &);
%End
};
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
-class QColorDrag : QStoredDrag
+class TQColorDrag : TQStoredDrag
{
%TypeHeaderCode
#include <qdragobject.h>
%End
public:
- QColorDrag(const QColor &,QWidget * /TransferThis/ = 0,
+ TQColorDrag(const TQColor &,TQWidget * /TransferThis/ = 0,
const char * = 0);
- QColorDrag(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQColorDrag(TQWidget * /TransferThis/ = 0,const char * = 0);
- void setColor(const QColor &);
+ void setColor(const TQColor &);
- static bool canDecode(QMimeSource *);
- static bool decode(QMimeSource *,QColor &);
+ static bool canDecode(TQMimeSource *);
+ static bool decode(TQMimeSource *,TQColor &);
private:
-%If (Qt_3_1_0 -)
- QColorDrag(const QColorDrag &);
+%If (TQt_3_1_0 -)
+ TQColorDrag(const TQColorDrag &);
%End
};
diff --git a/sip/qt/qdrawutil.sip b/sip/qt/qdrawutil.sip
index 413ca4a..0cd9ec8 100644
--- a/sip/qt/qdrawutil.sip
+++ b/sip/qt/qdrawutil.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for the Qt drawing utilities.
+// This is the SIP interface definition for the TQt drawing utilities.
//
// 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.
@@ -25,42 +25,42 @@
%End
-void qDrawShadeLine(QPainter *,int,int,int,int,const QColorGroup &,bool = 1,
+void qDrawShadeLine(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 1,
int = 1,int = 0);
-void qDrawShadeLine(QPainter *,const QPoint &,const QPoint &,
- const QColorGroup &,bool = 1,int = 1,int = 0);
+void qDrawShadeLine(TQPainter *,const TQPoint &,const TQPoint &,
+ const TQColorGroup &,bool = 1,int = 1,int = 0);
-void qDrawShadeRect(QPainter *,int,int,int,int,const QColorGroup &,bool = 0,
- int = 1,int = 0,const QBrush * = 0);
-void qDrawShadeRect(QPainter *,const QRect &,const QColorGroup &,bool = 0,
- int = 1,int = 0,const QBrush * = 0);
+void qDrawShadeRect(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
+ int = 1,int = 0,const TQBrush * = 0);
+void qDrawShadeRect(TQPainter *,const TQRect &,const TQColorGroup &,bool = 0,
+ int = 1,int = 0,const TQBrush * = 0);
-void qDrawShadePanel(QPainter *,int,int,int,int,const QColorGroup &,bool = 0,
- int = 1,const QBrush * = 0);
-void qDrawShadePanel(QPainter *,const QRect &,const QColorGroup &,bool = 0,
- int = 1,const QBrush * = 0);
+void qDrawShadePanel(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
+ int = 1,const TQBrush * = 0);
+void qDrawShadePanel(TQPainter *,const TQRect &,const TQColorGroup &,bool = 0,
+ int = 1,const TQBrush * = 0);
-void qDrawWinButton(QPainter *,int,int,int,int,const QColorGroup &,bool = 0,
- const QBrush * = 0);
-void qDrawWinButton(QPainter *,const QRect &,const QColorGroup &,bool = 0,
- const QBrush * = 0);
+void qDrawWinButton(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
+ const TQBrush * = 0);
+void qDrawWinButton(TQPainter *,const TQRect &,const TQColorGroup &,bool = 0,
+ const TQBrush * = 0);
-void qDrawWinPanel(QPainter *,int,int,int,int,const QColorGroup &,bool = 0,
- const QBrush * = 0);
-void qDrawWinPanel(QPainter *,const QRect &,const QColorGroup &,bool = 0,
- const QBrush * = 0);
+void qDrawWinPanel(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
+ const TQBrush * = 0);
+void qDrawWinPanel(TQPainter *,const TQRect &,const TQColorGroup &,bool = 0,
+ const TQBrush * = 0);
-void qDrawPlainRect(QPainter *,int,int,int,int,const QColor &,int = 1,
- const QBrush * = 0);
-void qDrawPlainRect(QPainter *,const QRect &,const QColor &,int = 1,
- const QBrush * = 0);
+void qDrawPlainRect(TQPainter *,int,int,int,int,const TQColor &,int = 1,
+ const TQBrush * = 0);
+void qDrawPlainRect(TQPainter *,const TQRect &,const TQColor &,int = 1,
+ const TQBrush * = 0);
-%If (- Qt_2_00)
-QRect qItemRect(QPainter *,GUIStyle,int,int,int,int,int,bool,const QPixmap *,
+%If (- TQt_2_00)
+TQRect qItemRect(TQPainter *,GUIStyle,int,int,int,int,int,bool,const TQPixmap *,
const char *,int = -1);
-void qDrawItem(QPainter *,GUIStyle,int,int,int,int,int,const QColorGroup &,bool,
- const QPixmap *,const char *,int = -1);
+void qDrawItem(TQPainter *,GUIStyle,int,int,int,int,int,const TQColorGroup &,bool,
+ const TQPixmap *,const char *,int = -1);
enum ArrowType {
UpArrow,
@@ -69,6 +69,6 @@ enum ArrowType {
RightArrow
};
-void qDrawArrow(QPainter *,ArrowType,GUIStyle,bool,int,int,int,int,
- const QColorGroup &,bool);
+void qDrawArrow(TQPainter *,ArrowType,GUIStyle,bool,int,int,int,int,
+ const TQColorGroup &,bool);
%End
diff --git a/sip/qt/qdropsite.sip b/sip/qt/qdropsite.sip
index a2c11de..90a64ee 100644
--- a/sip/qt/qdropsite.sip
+++ b/sip/qt/qdropsite.sip
@@ -1,50 +1,50 @@
-// This is the SIP interface definition for QDropSite.
+// This is the SIP interface definition for TQDropSite.
//
// 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>QDropSite</Title>
+<Sect2><Title>TQDropSite</Title>
<Para>
-<Literal>QDropSite</Literal> is fully implemented.
+<Literal>TQDropSite</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_DRAGANDDROP)
+%If (TQt_DRAGANDDROP)
-class QDropSite
+class TQDropSite
{
%TypeHeaderCode
#include <qdropsite.h>
%End
public:
- QDropSite(QWidget *);
+ TQDropSite(TQWidget *);
-%If (- Qt_2_00)
- virtual void dragEnterEvent(QDragEnterEvent *);
- virtual void dragMoveEvent(QDragMoveEvent *);
- virtual void dragLeaveEvent(QDragLeaveEvent *);
- virtual void dropEvent(QDropEvent *);
+%If (- TQt_2_00)
+ virtual void dragEnterEvent(TQDragEnterEvent *);
+ virtual void dragMoveEvent(TQDragMoveEvent *);
+ virtual void dragLeaveEvent(TQDragLeaveEvent *);
+ virtual void dropEvent(TQDropEvent *);
%End
};
diff --git a/sip/qt/qerrormessage.sip b/sip/qt/qerrormessage.sip
index 1f31264..9393b01 100644
--- a/sip/qt/qerrormessage.sip
+++ b/sip/qt/qerrormessage.sip
@@ -1,56 +1,56 @@
-// This is the SIP interface definition for QErrorMessage.
+// This is the SIP interface definition for TQErrorMessage.
//
// 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>QErrorMessage (Qt v3+)</Title>
+<Sect2><Title>TQErrorMessage (TQt v3+)</Title>
<Para>
-<Literal>QErrorMessage</Literal> is fully implemented.
+<Literal>TQErrorMessage</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QErrorMessage : QDialog
+class TQErrorMessage : TQDialog
{
%TypeHeaderCode
#include <qerrormessage.h>
%End
public:
- QErrorMessage(QWidget * /TransferThis/,const char * = 0);
+ TQErrorMessage(TQWidget * /TransferThis/,const char * = 0);
- static QErrorMessage *qtHandler();
+ static TQErrorMessage *qtHandler();
public slots:
- void message(const QString &);
+ void message(const TQString &);
protected:
void done(int);
private:
-%If (Qt_3_1_0 -)
- QErrorMessage(const QErrorMessage &);
+%If (TQt_3_1_0 -)
+ TQErrorMessage(const TQErrorMessage &);
%End
};
diff --git a/sip/qt/qevent.sip b/sip/qt/qevent.sip
index d4db705..ee66b43 100644
--- a/sip/qt/qevent.sip
+++ b/sip/qt/qevent.sip
@@ -1,170 +1,170 @@
-// This is the SIP interface definition for QEvent, QChildEvent, QCloseEvent,
-// QIconDragEvent, QContextMenuEvent, QCustomEvent, QDragEnterEvent,
-// QDragLeaveEvent, QDragMoveEvent, QDropEvent, QFocusEvent, QHideEvent,
-// QIMEvent, QIMComposeEvent, QKeyEvent, QMouseEvent, QMoveEvent, QPaintEvent,
-// QResizeEvent, QShowEvent, QTabletEvent, QTimerEvent, QWheelEvent.
+// This is the SIP interface definition for TQEvent, TQChildEvent, TQCloseEvent,
+// TQIconDragEvent, TQContextMenuEvent, TQCustomEvent, TQDragEnterEvent,
+// TQDragLeaveEvent, TQDragMoveEvent, TQDropEvent, TQFocusEvent, TQHideEvent,
+// TQIMEvent, TQIMComposeEvent, TQKeyEvent, TQMouseEvent, TQMoveEvent, TQPaintEvent,
+// TQResizeEvent, TQShowEvent, TQTabletEvent, TQTimerEvent, TQWheelEvent.
//
// 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>QEvent</Title>
+<Sect2><Title>TQEvent</Title>
<Para>
-<Literal>QEvent</Literal> is fully implemented.
+<Literal>TQEvent</Literal> is fully implemented.
</Para>
<Para>
-Instances of <Literal>QEvent</Literal>s are automatically converted to the
+Instances of <Literal>TQEvent</Literal>s are automatically converted to the
correct sub-class.
</Para>
</Sect2>
-<Sect2><Title>QChildEvent</Title>
+<Sect2><Title>TQChildEvent</Title>
<Para>
-<Literal>QChildEvent</Literal> is fully implemented.
+<Literal>TQChildEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCloseEvent</Title>
+<Sect2><Title>TQCloseEvent</Title>
<Para>
-<Literal>QCloseEvent</Literal> is fully implemented.
+<Literal>TQCloseEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIconDragEvent (Qt v3.3+)</Title>
+<Sect2><Title>TQIconDragEvent (TQt v3.3+)</Title>
<Para>
-<Literal>QIconDragEvent</Literal> is fully implemented.
+<Literal>TQIconDragEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QContextMenuEvent (Qt v3+)</Title>
+<Sect2><Title>TQContextMenuEvent (TQt v3+)</Title>
<Para>
-<Literal>QContextMenuEvent</Literal> is fully implemented.
+<Literal>TQContextMenuEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCustomEvent</Title>
+<Sect2><Title>TQCustomEvent</Title>
<Para>
-<Literal>QCustomEvent</Literal> is fully implemented. Any Python object can be
+<Literal>TQCustomEvent</Literal> is fully implemented. Any Python object can be
passed as the event data and its reference count is increased.
</Para>
</Sect2>
-<Sect2><Title>QDragEnterEvent</Title>
+<Sect2><Title>TQDragEnterEvent</Title>
<Para>
-<Literal>QDragEnterEvent</Literal> is fully implemented.
+<Literal>TQDragEnterEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDragLeaveEvent</Title>
+<Sect2><Title>TQDragLeaveEvent</Title>
<Para>
-<Literal>QDragLeaveEvent</Literal> is fully implemented.
+<Literal>TQDragLeaveEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDragMoveEvent</Title>
+<Sect2><Title>TQDragMoveEvent</Title>
<Para>
-<Literal>QDragMoveEvent</Literal> is fully implemented.
+<Literal>TQDragMoveEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDropEvent</Title>
+<Sect2><Title>TQDropEvent</Title>
<Para>
-<Literal>QDropEvent</Literal> is fully implemented.
+<Literal>TQDropEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QFocusEvent</Title>
+<Sect2><Title>TQFocusEvent</Title>
<Para>
-<Literal>QFocusEvent</Literal> is fully implemented.
+<Literal>TQFocusEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QHideEvent</Title>
+<Sect2><Title>TQHideEvent</Title>
<Para>
-<Literal>QHideEvent</Literal> is fully implemented.
+<Literal>TQHideEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIMComposeEvent (Qt v3.1+)</Title>
+<Sect2><Title>TQIMComposeEvent (TQt v3.1+)</Title>
<Para>
-<Literal>QIMComposeEvent</Literal> is fully implemented.
+<Literal>TQIMComposeEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIMEvent (Qt v3+)</Title>
+<Sect2><Title>TQIMEvent (TQt v3+)</Title>
<Para>
-<Literal>QIMEvent</Literal> is fully implemented.
+<Literal>TQIMEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QKeyEvent</Title>
+<Sect2><Title>TQKeyEvent</Title>
<Para>
-<Literal>QKeyEvent</Literal> is fully implemented.
+<Literal>TQKeyEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMouseEvent</Title>
+<Sect2><Title>TQMouseEvent</Title>
<Para>
-<Literal>QMouseEvent</Literal> is fully implemented.
+<Literal>TQMouseEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMoveEvent</Title>
+<Sect2><Title>TQMoveEvent</Title>
<Para>
-<Literal>QMoveEvent</Literal> is fully implemented.
+<Literal>TQMoveEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QPaintEvent</Title>
+<Sect2><Title>TQPaintEvent</Title>
<Para>
-<Literal>QPaintEvent</Literal> is fully implemented.
+<Literal>TQPaintEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QResizeEvent</Title>
+<Sect2><Title>TQResizeEvent</Title>
<Para>
-<Literal>QResizeEvent</Literal> is fully implemented.
+<Literal>TQResizeEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QShowEvent</Title>
+<Sect2><Title>TQShowEvent</Title>
<Para>
-<Literal>QShowEvent</Literal> is fully implemented.
+<Literal>TQShowEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTabletEvent (Qt v3+)</Title>
+<Sect2><Title>TQTabletEvent (TQt v3+)</Title>
<Para>
-<Literal>QTabletEvent</Literal> is fully implemented.
+<Literal>TQTabletEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTimerEvent</Title>
+<Sect2><Title>TQTimerEvent</Title>
<Para>
-<Literal>QTimerEvent</Literal> is fully implemented.
+<Literal>TQTimerEvent</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QWheelEvent (Qt v2+)</Title>
+<Sect2><Title>TQWheelEvent (TQt v2+)</Title>
<Para>
-<Literal>QWheelEvent</Literal> is fully implemented.
+<Literal>TQWheelEvent</Literal> is fully implemented.
</Para>
</Sect2>
%End
@@ -175,7 +175,7 @@ passed as the event data and its reference count is increased.
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const int Event_None;
const int Event_Timer;
@@ -227,15 +227,15 @@ enum ButtonState {
};
-class QEvent
+class TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QEvent(int);
- QEvent(QEvent&);
+ TQEvent(int);
+ TQEvent(TQEvent&);
int type() const;
@@ -316,9 +316,9 @@ public:
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QEvent : Qt
+class TQEvent : TQt
{
%TypeHeaderCode
#include <qevent.h>
@@ -348,7 +348,7 @@ public:
Hide,
Close,
Quit,
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
Reparent,
ShowMinimized,
ShowNormal,
@@ -358,13 +358,13 @@ public:
HideToParent,
ShowMaximized,
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
ShowFullScreen,
%End
Accel,
Wheel,
AccelAvailable,
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
CaptionChange,
IconChange,
ParentFontChange,
@@ -372,18 +372,18 @@ public:
ParentPaletteChange,
ApplicationPaletteChange,
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
PaletteChange,
%End
Clipboard,
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
Speech,
%End
SockAct,
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
AccelOverride,
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
DeferredDelete,
%End
DragEnter,
@@ -394,30 +394,30 @@ public:
ChildInserted,
ChildRemoved,
LayoutHint,
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
ShowWindowRequest,
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
WindowBlocked,
WindowUnblocked,
%End
ActivateControl,
DeactivateControl,
-%If (Qt_2_1_0 - Qt_2_2_0)
+%If (TQt_2_1_0 - TQt_2_2_0)
Configure,
ConfigureLayout,
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
ContextMenu,
IMStart,
IMCompose,
IMEnd,
Accessibility,
%End
-%If (Qt_3_0_0 - Qt_3_1_0)
+%If (TQt_3_0_0 - TQt_3_1_0)
Tablet,
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
TabletMove,
LocaleChange,
LanguageChange,
@@ -426,147 +426,147 @@ public:
TabletPress,
TabletRelease,
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
OkRequest,
HelpRequest,
IconDrag,
WindowStateChange,
%End
User,
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
MaxUser,
%End
};
- QEvent(Type);
- QEvent(QEvent&);
- virtual ~QEvent();
+ TQEvent(Type);
+ TQEvent(TQEvent&);
+ virtual ~TQEvent();
Type type() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool spontaneous() const;
%End
%ConvertToSubClassCode
switch (sipCpp -> type())
{
- case QEvent::Timer:
+ case TQEvent::Timer:
sipClass = sipClass_QTimerEvent;
break;
- case QEvent::MouseButtonPress:
- case QEvent::MouseButtonRelease:
- case QEvent::MouseButtonDblClick:
- case QEvent::MouseMove:
+ case TQEvent::MouseButtonPress:
+ case TQEvent::MouseButtonRelease:
+ case TQEvent::MouseButtonDblClick:
+ case TQEvent::MouseMove:
sipClass = sipClass_QMouseEvent;
break;
- case QEvent::Accel:
+ case TQEvent::Accel:
#if QT_VERSION >= 220
- case QEvent::AccelOverride:
+ case TQEvent::AccelOverride:
#endif
- case QEvent::KeyPress:
- case QEvent::KeyRelease:
+ case TQEvent::KeyPress:
+ case TQEvent::KeyRelease:
sipClass = sipClass_QKeyEvent;
break;
- case QEvent::FocusIn:
- case QEvent::FocusOut:
+ case TQEvent::FocusIn:
+ case TQEvent::FocusOut:
sipClass = sipClass_QFocusEvent;
break;
- case QEvent::Paint:
+ case TQEvent::Paint:
sipClass = sipClass_QPaintEvent;
break;
- case QEvent::Move:
+ case TQEvent::Move:
sipClass = sipClass_QMoveEvent;
break;
- case QEvent::Resize:
+ case TQEvent::Resize:
sipClass = sipClass_QResizeEvent;
break;
- case QEvent::Close:
+ case TQEvent::Close:
sipClass = sipClass_QCloseEvent;
break;
#if QT_VERSION >= 0x030300
- case QEvent::IconDrag:
+ case TQEvent::IconDrag:
sipClass = sipClass_QIconDragEvent;
break;
#endif
- case QEvent::Wheel:
+ case TQEvent::Wheel:
sipClass = sipClass_QWheelEvent;
break;
- case QEvent::Show:
+ case TQEvent::Show:
sipClass = sipClass_QShowEvent;
break;
- case QEvent::Hide:
+ case TQEvent::Hide:
sipClass = sipClass_QHideEvent;
break;
-#if defined(SIP_FEATURE_Qt_DRAGANDDROP)
- case QEvent::DragMove:
+#if defined(SIP_FEATURE_TQt_DRAGANDDROP)
+ case TQEvent::DragMove:
sipClass = sipClass_QDragMoveEvent;
break;
- case QEvent::DragEnter:
+ case TQEvent::DragEnter:
sipClass = sipClass_QDragEnterEvent;
break;
- case QEvent::DragLeave:
+ case TQEvent::DragLeave:
sipClass = sipClass_QDragLeaveEvent;
break;
- case QEvent::Drop:
+ case TQEvent::Drop:
sipClass = sipClass_QDropEvent;
break;
#endif
- case QEvent::ChildInserted:
- case QEvent::ChildRemoved:
+ case TQEvent::ChildInserted:
+ case TQEvent::ChildRemoved:
sipClass = sipClass_QChildEvent;
break;
#if QT_VERSION >= 0x030000
- case QEvent::ContextMenu:
+ case TQEvent::ContextMenu:
sipClass = sipClass_QContextMenuEvent;
break;
- case QEvent::IMStart:
- case QEvent::IMEnd:
+ case TQEvent::IMStart:
+ case TQEvent::IMEnd:
sipClass = sipClass_QIMEvent;
break;
#endif
#if QT_VERSION >= 0x030000 && QT_VERSION < 0x030100
- case QEvent::IMCompose:
+ case TQEvent::IMCompose:
sipClass = sipClass_QIMEvent;
break;
- case QEvent::Tablet:
+ case TQEvent::Tablet:
sipClass = sipClass_QTabletEvent;
break;
#endif
#if QT_VERSION >= 0x030100
- case QEvent::IMCompose:
+ case TQEvent::IMCompose:
sipClass = sipClass_QIMComposeEvent;
break;
- case QEvent::TabletMove:
- case QEvent::TabletPress:
- case QEvent::TabletRelease:
+ case TQEvent::TabletMove:
+ case TQEvent::TabletPress:
+ case TQEvent::TabletRelease:
sipClass = sipClass_QTabletEvent;
break;
#endif
default:
- sipClass = (sipCpp -> type() < QEvent::User ?
+ sipClass = (sipCpp -> type() < TQEvent::User ?
sipClass_QEvent :
sipClass_QCustomEvent);
}
@@ -576,51 +576,51 @@ public:
%End
-class QTimerEvent : QEvent
+class TQTimerEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QTimerEvent(int);
+ TQTimerEvent(int);
int timerId() const;
};
-class QMouseEvent : QEvent
+class TQMouseEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
-%If (- Qt_2_00)
- QMouseEvent(int,const QPoint &,int,int);
- QMouseEvent(int,const QPoint &,const QPoint &,int,int);
+%If (- TQt_2_00)
+ TQMouseEvent(int,const TQPoint &,int,int);
+ TQMouseEvent(int,const TQPoint &,const TQPoint &,int,int);
%End
-%If (Qt_2_00 -)
- QMouseEvent(Type,const QPoint &,int,int);
- QMouseEvent(Type,const QPoint &,const QPoint &,int,int);
+%If (TQt_2_00 -)
+ TQMouseEvent(Type,const TQPoint &,int,int);
+ TQMouseEvent(Type,const TQPoint &,const TQPoint &,int,int);
%End
- const QPoint &pos() const;
- const QPoint &globalPos() const;
+ const TQPoint &pos() const;
+ const TQPoint &globalPos() const;
int x() const;
int y() const;
int globalX() const;
int globalY() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
int button() const;
int state() const;
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
ButtonState button() const;
ButtonState state() const;
ButtonState stateAfter() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isAccepted() const;
void accept();
void ignore();
@@ -628,34 +628,34 @@ public:
};
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QWheelEvent : QEvent
+class TQWheelEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
-%If (- Qt_3_0_0)
- QWheelEvent(const QPoint &,int,int);
- QWheelEvent(const QPoint &,const QPoint &,int,int);
+%If (- TQt_3_0_0)
+ TQWheelEvent(const TQPoint &,int,int);
+ TQWheelEvent(const TQPoint &,const TQPoint &,int,int);
%End
-%If (Qt_3_0_0 -)
- QWheelEvent(const QPoint &,int,int,Orientation = Vertical);
- QWheelEvent(const QPoint &,const QPoint &,int,int,
+%If (TQt_3_0_0 -)
+ TQWheelEvent(const TQPoint &,int,int,Orientation = Vertical);
+ TQWheelEvent(const TQPoint &,const TQPoint &,int,int,
Orientation = Vertical);
%End
int delta() const;
- const QPoint &pos() const;
- const QPoint &globalPos() const;
+ const TQPoint &pos() const;
+ const TQPoint &globalPos() const;
int x() const;
int y() const;
int globalX() const;
int globalY() const;
ButtonState state() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Orientation orientation() const;
%End
bool isAccepted() const;
@@ -666,9 +666,9 @@ public:
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QTabletEvent : QEvent
+class TQTabletEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
@@ -682,21 +682,21 @@ public:
Eraser
};
-%If (- Qt_3_1_0)
- QTabletEvent(const QPoint &,int,int,int,int,const QPair<int,int> &);
+%If (- TQt_3_1_0)
+ TQTabletEvent(const TQPoint &,int,int,int,int,const TQPair<int,int> &);
%End
-%If (Qt_3_1_0 -)
- QTabletEvent(Type,const QPoint &,const QPoint &,int,int,int,int,
- const QPair<int,int> &);
+%If (TQt_3_1_0 -)
+ TQTabletEvent(Type,const TQPoint &,const TQPoint &,int,int,int,int,
+ const TQPair<int,int> &);
%End
- QTabletEvent(const QPoint &,const QPoint &,int,int,int,int,
- const QPair<int,int> &);
+ TQTabletEvent(const TQPoint &,const TQPoint &,int,int,int,int,
+ const TQPair<int,int> &);
int pressure() const;
int xTilt() const;
int yTilt() const;
- const QPoint &pos() const;
- const QPoint &globalPos() const;
+ const TQPoint &pos() const;
+ const TQPoint &globalPos() const;
int x() const;
int y() const;
int globalX() const;
@@ -705,24 +705,24 @@ public:
int isAccepted() const;
void accept();
void ignore();
- QPair<int,int> uniqueId();
+ TQPair<int,int> uniqueId();
};
%End
-class QKeyEvent : QEvent
+class TQKeyEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
-%If (- Qt_2_00)
- QKeyEvent(int,int,int,int);
+%If (- TQt_2_00)
+ TQKeyEvent(int,int,int,int);
%End
-%If (Qt_2_00 -)
- QKeyEvent(Type,int,int,int,const QString & = QString::null,bool = 0,
+%If (TQt_2_00 -)
+ TQKeyEvent(Type,int,int,int,const TQString & = TQString::null,bool = 0,
ushort = 1);
%End
@@ -732,39 +732,39 @@ public:
void accept();
void ignore();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
int state() const;
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
ButtonState state() const;
ButtonState stateAfter() const;
- QString text() const;
+ TQString text() const;
bool isAutoRepeat() const;
int count() const;
%End
};
-class QFocusEvent : QEvent
+class TQFocusEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
-%If (- Qt_2_00)
- QFocusEvent(int);
+%If (- TQt_2_00)
+ TQFocusEvent(int);
%End
-%If (Qt_2_00 -)
- QFocusEvent(Type);
+%If (TQt_2_00 -)
+ TQFocusEvent(Type);
%End
bool gotFocus() const;
bool lostFocus() const;
-%If (Qt_2_1_0 -)
-%If (- Qt_3_0_0)
+%If (TQt_2_1_0 -)
+%If (- TQt_3_0_0)
enum Reason {
Mouse,
Tab,
@@ -774,7 +774,7 @@ public:
Other
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum Reason {
Mouse,
Tab,
@@ -793,68 +793,68 @@ public:
};
-class QPaintEvent : QEvent
+class TQPaintEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
-%If (- Qt_2_00)
- QPaintEvent(const QRect &);
+%If (- TQt_2_00)
+ TQPaintEvent(const TQRect &);
%End
-%If (Qt_2_00 -)
- QPaintEvent(const QRegion &,bool = 1);
- QPaintEvent(const QRect &,bool = 1);
+%If (TQt_2_00 -)
+ TQPaintEvent(const TQRegion &,bool = 1);
+ TQPaintEvent(const TQRect &,bool = 1);
%End
-%If (Qt_3_3_0 -)
- QPaintEvent(const QRegion &,const QRect &,bool = 1);
+%If (TQt_3_3_0 -)
+ TQPaintEvent(const TQRegion &,const TQRect &,bool = 1);
%End
- const QRect &rect() const;
-%If (Qt_2_00 -)
- const QRegion &region() const;
+ const TQRect &rect() const;
+%If (TQt_2_00 -)
+ const TQRegion &region() const;
bool erased() const;
%End
};
-class QMoveEvent : QEvent
+class TQMoveEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QMoveEvent(const QPoint &,const QPoint &);
+ TQMoveEvent(const TQPoint &,const TQPoint &);
- const QPoint &pos() const;
- const QPoint &oldPos() const;
+ const TQPoint &pos() const;
+ const TQPoint &oldPos() const;
};
-class QResizeEvent : QEvent
+class TQResizeEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QResizeEvent(const QSize &,const QSize &);
+ TQResizeEvent(const TQSize &,const TQSize &);
- const QSize &size() const;
- const QSize &oldSize() const;
+ const TQSize &size() const;
+ const TQSize &oldSize() const;
};
-class QCloseEvent : QEvent
+class TQCloseEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QCloseEvent();
+ TQCloseEvent();
bool isAccepted() const;
void accept();
@@ -862,16 +862,16 @@ public:
};
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
-class QIconDragEvent : QEvent
+class TQIconDragEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QIconDragEvent();
+ TQIconDragEvent();
bool isAccepted() const;
void accept();
@@ -881,45 +881,45 @@ public:
%End
-class QShowEvent : QEvent
+class TQShowEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
-%If (- Qt_3_0_0)
- QShowEvent(bool);
+%If (- TQt_3_0_0)
+ TQShowEvent(bool);
bool spontaneous() const;
%End
-%If (Qt_3_0_0 -)
- QShowEvent();
+%If (TQt_3_0_0 -)
+ TQShowEvent();
%End
};
-class QHideEvent : QEvent
+class TQHideEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
-%If (- Qt_3_0_0)
- QHideEvent(bool);
+%If (- TQt_3_0_0)
+ TQHideEvent(bool);
bool spontaneous() const;
%End
-%If (Qt_3_0_0 -)
- QHideEvent();
+%If (TQt_3_0_0 -)
+ TQHideEvent();
%End
};
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QContextMenuEvent : QEvent
+class TQContextMenuEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
@@ -932,16 +932,16 @@ public:
Other
};
- QContextMenuEvent(Reason,const QPoint &,const QPoint &,int);
- QContextMenuEvent(Reason,const QPoint &,int);
+ TQContextMenuEvent(Reason,const TQPoint &,const TQPoint &,int);
+ TQContextMenuEvent(Reason,const TQPoint &,int);
int x() const;
int y() const;
int globalX() const;
int globalY() const;
- const QPoint &pos() const;
- const QPoint &globalPos() const;
+ const TQPoint &pos() const;
+ const TQPoint &globalPos() const;
ButtonState state() const;
bool isAccepted() const;
@@ -955,23 +955,23 @@ public:
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QIMEvent : QEvent
+class TQIMEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QIMEvent(Type,const QString &,int);
+ TQIMEvent(Type,const TQString &,int);
- const QString &text() const;
+ const TQString &text() const;
int cursorPos() const;
bool isAccepted() const;
void accept();
void ignore();
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
int selectionLength() const;
%End
};
@@ -979,55 +979,55 @@ public:
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
-class QIMComposeEvent : QIMEvent
+class TQIMComposeEvent : TQIMEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QIMComposeEvent(Type,const QString &,int,int);
+ TQIMComposeEvent(Type,const TQString &,int,int);
};
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QDropEvent : QEvent
+class TQDropEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QDropEvent(const QPoint &);
+ TQDropEvent(const TQPoint &);
- const QPoint &pos() const;
+ const TQPoint &pos() const;
bool isAccepted() const;
void accept();
void ignore();
- QByteArray data(const char *);
+ TQByteArray data(const char *);
};
%End
-%If (Qt_2_00 -)
-%If (Qt_DRAGANDDROP)
+%If (TQt_2_00 -)
+%If (TQt_DRAGANDDROP)
-class QDropEvent : QEvent, QMimeSource
+class TQDropEvent : TQEvent, TQMimeSource
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QDropEvent(const QPoint &,Type = Drop);
+ TQDropEvent(const TQPoint &,Type = Drop);
- const QPoint &pos() const;
+ const TQPoint &pos() const;
bool isAccepted() const;
void accept(bool = 1);
void ignore();
@@ -1045,135 +1045,135 @@ public:
void setAction(Action);
Action action() const;
- QWidget *source() const;
+ TQWidget *source() const;
const char *format(int = 0) const;
- QByteArray encodedData(const char *) const;
+ TQByteArray encodedData(const char *) const;
bool provides(const char *) const;
- QByteArray data(const char *) const;
- void setPoint(const QPoint &);
+ TQByteArray data(const char *) const;
+ void setPoint(const TQPoint &);
};
%End
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QDragMoveEvent : QEvent
+class TQDragMoveEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QDragMoveEvent(const QPoint &);
+ TQDragMoveEvent(const TQPoint &);
- const QPoint &pos() const;
+ const TQPoint &pos() const;
bool isAccepted() const;
void accept();
void ignore();
- void accept(const QRect &);
- void ignore(const QRect &);
- QRect answerRect() const;
+ void accept(const TQRect &);
+ void ignore(const TQRect &);
+ TQRect answerRect() const;
const char *format(int = 0);
bool provides(const char *);
- QByteArray data(const char *);
+ TQByteArray data(const char *);
protected:
- QDragMoveEvent(const QPoint &,int);
+ TQDragMoveEvent(const TQPoint &,int);
};
%End
-%If (Qt_DRAGANDDROP)
-%If (Qt_2_00 -)
+%If (TQt_DRAGANDDROP)
+%If (TQt_2_00 -)
-class QDragMoveEvent : QDropEvent
+class TQDragMoveEvent : TQDropEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QDragMoveEvent(const QPoint &,Type = DragMove);
+ TQDragMoveEvent(const TQPoint &,Type = DragMove);
- QRect answerRect() const;
+ TQRect answerRect() const;
void accept(bool = 1);
- void accept(const QRect &);
- void ignore(const QRect &);
+ void accept(const TQRect &);
+ void ignore(const TQRect &);
void ignore();
};
%End
-class QDragEnterEvent : QDragMoveEvent
+class TQDragEnterEvent : TQDragMoveEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QDragEnterEvent(const QPoint &);
+ TQDragEnterEvent(const TQPoint &);
};
-class QDragLeaveEvent : QEvent
+class TQDragLeaveEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
- QDragLeaveEvent();
+ TQDragLeaveEvent();
};
%End
-class QChildEvent : QEvent
+class TQChildEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
-%If (- Qt_2_00)
- QChildEvent(int,QWidget *);
+%If (- TQt_2_00)
+ TQChildEvent(int,TQWidget *);
%End
-%If (Qt_2_00 -)
- QChildEvent(Type,QObject *);
+%If (TQt_2_00 -)
+ TQChildEvent(Type,TQObject *);
%End
-%If (- Qt_2_00)
- QWidget *child() const;
+%If (- TQt_2_00)
+ TQWidget *child() const;
%End
-%If (Qt_2_00 -)
- QObject *child() const;
+%If (TQt_2_00 -)
+ TQObject *child() const;
%End
bool inserted() const;
bool removed() const;
};
-class QCustomEvent : QEvent
+class TQCustomEvent : TQEvent
{
%TypeHeaderCode
#include <qevent.h>
%End
public:
-%If (- Qt_2_00)
- QCustomEvent(int,SIP_PYOBJECT /Transfer/);
+%If (- TQt_2_00)
+ TQCustomEvent(int,SIP_PYOBJECT /Transfer/);
%End
-%If (Qt_2_00 -)
- QCustomEvent(Type,SIP_PYOBJECT /Transfer/);
+%If (TQt_2_00 -)
+ TQCustomEvent(Type,SIP_PYOBJECT /Transfer/);
%End
-%If (Qt_2_1_0 -)
- QCustomEvent(int);
+%If (TQt_2_1_0 -)
+ TQCustomEvent(int);
%End
- ~QCustomEvent();
+ ~TQCustomEvent();
%VirtualCatcherCode
// We need to garbage collect any current data.
@@ -1188,7 +1188,7 @@ public:
%MethodCode
// We need to cast the result.
- sipRes = reinterpret_cast<PyObject *>(sipCpp -> QCustomEvent::data());
+ sipRes = reinterpret_cast<PyObject *>(sipCpp -> TQCustomEvent::data());
// In case the event has been created from C++ code.
if (!sipRes)
@@ -1197,13 +1197,13 @@ public:
Py_INCREF(sipRes);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setData(SIP_PYOBJECT /Transfer/);
%MethodCode
// We need to garbage collect any current data.
- PyObject *old = reinterpret_cast<PyObject *>(sipCpp -> QCustomEvent::data());
- sipCpp -> QCustomEvent::setData(a0);
+ PyObject *old = reinterpret_cast<PyObject *>(sipCpp -> TQCustomEvent::data());
+ sipCpp -> TQCustomEvent::setData(a0);
Py_XDECREF(old);
%End
@@ -1213,7 +1213,7 @@ public:
// Support the Python garbage collector. Although it's not obviously
// documented, we can't release the GIL in traverse code.
- PyObject *obj = reinterpret_cast<PyObject *>(sipCpp -> QCustomEvent::data());
+ PyObject *obj = reinterpret_cast<PyObject *>(sipCpp -> TQCustomEvent::data());
if (obj)
sipRes = sipVisit(obj, sipArg);
@@ -1224,9 +1224,9 @@ public:
%GCClearCode
// Support the Python garbage collector.
- PyObject *obj = reinterpret_cast<PyObject *>(sipCpp -> QCustomEvent::data());
+ PyObject *obj = reinterpret_cast<PyObject *>(sipCpp -> TQCustomEvent::data());
- sipCpp -> QCustomEvent::setData(0);
+ sipCpp -> TQCustomEvent::setData(0);
Py_XDECREF(obj);
diff --git a/sip/qt/qeventloop.sip b/sip/qt/qeventloop.sip
index 22d7a2c..8ad3b06 100644
--- a/sip/qt/qeventloop.sip
+++ b/sip/qt/qeventloop.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QEventLoop.
+// This is the SIP interface definition for TQEventLoop.
//
// 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>QEventLoop (Qt v3.1+)</Title>
+<Sect2><Title>TQEventLoop (TQt v3.1+)</Title>
<FuncSynopsis>
<FuncDef>virtual int <Function>exec</Function></FuncDef>
<ParamDef></ParamDef>
@@ -33,16 +33,16 @@ This has been renamed to <Literal>exec_loop</Literal> in Python.
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
-class QEventLoop : QObject
+class TQEventLoop : TQObject
{
%TypeHeaderCode
#include <qeventloop.h>
%End
public:
- QEventLoop(QObject * /TransferThis/ = 0,const char * = 0);
+ TQEventLoop(TQObject * /TransferThis/ = 0,const char * = 0);
enum ProcessEvents {
AllEvents,
@@ -58,12 +58,12 @@ public:
virtual bool hasPendingEvents() const;
- virtual void registerSocketNotifier(QSocketNotifier *);
- virtual void unregisterSocketNotifier(QSocketNotifier *);
-%If (Qt_3_1_1 -)
- // These were present in the X11 version of Qt v3.1.0 but didn't make
- // it to the Windows version until Qt v3.1.1.
- void setSocketNotifierPending(QSocketNotifier *);
+ virtual void registerSocketNotifier(TQSocketNotifier *);
+ virtual void unregisterSocketNotifier(TQSocketNotifier *);
+%If (TQt_3_1_1 -)
+ // These were present in the X11 version of TQt v3.1.0 but didn't make
+ // it to the Windows version until TQt v3.1.1.
+ void setSocketNotifierPending(TQSocketNotifier *);
int activateSocketNotifiers();
int activateTimers();
@@ -71,8 +71,8 @@ public:
%End
virtual int exec() /PyName=exec_loop, ReleaseGIL,
- PreHook=__pyQtPreEventLoopHook__,
- PostHook=__pyQtPostEventLoopHook__/;
+ PreHook=__pyTQtPreEventLoopHook__,
+ PostHook=__pyTQtPostEventLoopHook__/;
virtual void exit(int = 0);
virtual int enterLoop();
diff --git a/sip/qt/qfile.sip b/sip/qt/qfile.sip
index 06012f1..2b3eb28 100644
--- a/sip/qt/qfile.sip
+++ b/sip/qt/qfile.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QFile.
+// This is the SIP interface definition for TQFile.
//
// 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>QFile</Title>
+<Sect2><Title>TQFile</Title>
<FuncSynopsis>
<FuncDef>bool <Function>open</Function></FuncDef>
<ParamDef>int <Parameter>m</Parameter></ParamDef>
@@ -58,7 +58,7 @@ This takes a single <Literal>maxlen</Literal> parameter. The
<ParamDef>EncoderFn <Parameter>f</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2+)
+Not yet implemented. (TQt v2+)
</Para>
<FuncSynopsis>
@@ -66,7 +66,7 @@ Not yet implemented. (Qt v2+)
<ParamDef>EncoderFn <Parameter>f</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2+)
+Not yet implemented. (TQt v2+)
</Para>
<FuncSynopsis>
@@ -82,51 +82,51 @@ as a parameter.
%End
-class QFile : QIODevice
+class TQFile : TQIODevice
{
%TypeHeaderCode
#include <qfile.h>
%End
public:
- QFile();
-%If (- Qt_2_00)
- QFile(const char *);
+ TQFile();
+%If (- TQt_2_00)
+ TQFile(const char *);
%End
-%If (Qt_2_00 -)
- QFile(const QString &);
+%If (TQt_2_00 -)
+ TQFile(const TQString &);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *name() const;
void setName(const char *);
%End
-%If (Qt_2_00 -)
- QString name() const;
- void setName(const QString &);
+%If (TQt_2_00 -)
+ TQString name() const;
+ void setName(const TQString &);
%End
-%If (Qt_2_00 -)
- static QCString encodeName(const QString &);
- static QString decodeName(const QCString &);
+%If (TQt_2_00 -)
+ static TQCString encodeName(const TQString &);
+ static TQString decodeName(const TQCString &);
// static void setEncodingFunction(EncoderFn);
// static void setDecodingFunction(DecoderFn);
%End
bool exists() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
static bool exists(const char *);
%End
-%If (Qt_2_00 -)
- static bool exists(const QString &);
+%If (TQt_2_00 -)
+ static bool exists(const TQString &);
%End
bool remove();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
static bool remove(const char *);
%End
-%If (Qt_2_00 -)
- static bool remove(const QString &);
+%If (TQt_2_00 -)
+ static bool remove(const TQString &);
%End
bool open(int) /ReleaseGIL/;
@@ -135,19 +135,19 @@ public:
void close();
void flush() /ReleaseGIL/;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
uint size() const;
int at() const;
bool at(int);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Offset size() const;
Offset at() const;
bool at(Offset);
%End
bool atEnd() const;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
SIP_PYOBJECT readBlock(uint) /ReleaseGIL/ [int (char *,uint)];
%MethodCode
char *buf;
@@ -159,7 +159,7 @@ public:
int actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QFile::readBlock(buf,a0) : sipCpp->readBlock(buf,a0);
+ actlen = sipSelfWasArg ? sipCpp->TQFile::readBlock(buf,a0) : sipCpp->readBlock(buf,a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -176,7 +176,7 @@ public:
int writeBlock(const char * /Array/,uint /ArraySize/) /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
SIP_PYOBJECT readBlock(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)];
%MethodCode
char *buf;
@@ -188,7 +188,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QFile::readBlock(buf,a0) : sipCpp->readBlock(buf,a0);
+ actlen = sipSelfWasArg ? sipCpp->TQFile::readBlock(buf,a0) : sipCpp->readBlock(buf,a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -207,14 +207,14 @@ public:
Q_LONG writeBlock(const char * /Array/,
Q_ULONG /ArraySize/) /ReleaseGIL/;
%End
-%If (Qt_2_00 - Qt_3_0_0)
- int writeBlock(const QByteArray &) /ReleaseGIL/;
+%If (TQt_2_00 - TQt_3_0_0)
+ int writeBlock(const TQByteArray &) /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
- Q_LONG writeBlock(const QByteArray &) /ReleaseGIL/;
+%If (TQt_3_0_0 -)
+ Q_LONG writeBlock(const TQByteArray &) /ReleaseGIL/;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
SIP_PYOBJECT readLine(uint) /ReleaseGIL/ [int (char *,uint)];
%MethodCode
char *buf;
@@ -226,7 +226,7 @@ public:
int actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QFile::readLine(buf,a0) : sipCpp->readLine(buf,a0);
+ actlen = sipSelfWasArg ? sipCpp->TQFile::readLine(buf,a0) : sipCpp->readLine(buf,a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -248,7 +248,7 @@ public:
}
%End
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
SIP_PYOBJECT readLine(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)];
%MethodCode
char *buf;
@@ -260,7 +260,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QFile::readLine(buf,a0) : sipCpp->readLine(buf,a0);
+ actlen = sipSelfWasArg ? sipCpp->TQFile::readLine(buf,a0) : sipCpp->readLine(buf,a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -283,11 +283,11 @@ public:
%End
%End
-%If (Qt_2_00 - Qt_3_0_0)
- int readLine(QString &,uint) /ReleaseGIL/;
+%If (TQt_2_00 - TQt_3_0_0)
+ int readLine(TQString &,uint) /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
- Q_LONG readLine(QString &,Q_ULONG) /ReleaseGIL/;
+%If (TQt_3_0_0 -)
+ Q_LONG readLine(TQString &,Q_ULONG) /ReleaseGIL/;
%End
int getch();
@@ -296,15 +296,15 @@ public:
int handle() const;
-%If (Qt_3_2_0 -)
- QString errorString() const;
+%If (TQt_3_2_0 -)
+ TQString errorString() const;
%End
protected:
-%If (Qt_3_2_0 -)
- void setErrorString(const QString &);
+%If (TQt_3_2_0 -)
+ void setErrorString(const TQString &);
%End
private:
- QFile(const QFile &);
+ TQFile(const TQFile &);
};
diff --git a/sip/qt/qfiledialog.sip b/sip/qt/qfiledialog.sip
index 611387a..212b74c 100644
--- a/sip/qt/qfiledialog.sip
+++ b/sip/qt/qfiledialog.sip
@@ -1,239 +1,239 @@
-// This is the SIP interface definition for QFileDialog, QFileIconProvider and
-// QFilePreview.
+// This is the SIP interface definition for TQFileDialog, TQFileIconProvider and
+// TQFilePreview.
//
// 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>QFileDialog</Title>
+<Sect2><Title>TQFileDialog</Title>
<Para>
-<Literal>QFileDialog</Literal> is fully implemented.
+<Literal>TQFileDialog</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QFileIconProvider</Title>
+<Sect2><Title>TQFileIconProvider</Title>
<Para>
-<Literal>QFileIconProvider</Literal> is fully implemented.
+<Literal>TQFileIconProvider</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QFilePreview</Title>
+<Sect2><Title>TQFilePreview</Title>
<Para>
-<Literal>QFilePreview</Literal> is fully implemented. However it cannot be
-used from Python in the same way as it is used from C++ because PyQt does not
+<Literal>TQFilePreview</Literal> is fully implemented. However it cannot be
+used from Python in the same way as it is used from C++ because PyTQt does not
support multiple inheritance involving more than one wrapped class. A trick
that seems to work is to use composition rather than inheritance as in the
following code fragment.
</Para>
<ProgramListing>
-class FilePreview(QFilePreview):
+class FilePreview(TQFilePreview):
pass
-class Preview(QLabel):
+class Preview(TQLabel):
def __init__(self, parent=None):
- QLabel.__init__(self, parent)
+ TQLabel.__init__(self, parent)
self.preview = FilePreview()
self.preview.previewUrl = self.previewUrl
</ProgramListing>
<Para>
-Note that QFilePreview cannot be instantiated directly because it is abstract.
+Note that TQFilePreview cannot be instantiated directly because it is abstract.
Thanks to Hans-Peter Jansen for this trick.
</Para>
</Sect2>
%End
-%If (Qt_FILEDIALOG)
+%If (TQt_FILEDIALOG)
-class QFileIconProvider : QObject
+class TQFileIconProvider : TQObject
{
%TypeHeaderCode
#include <qfiledialog.h>
%End
public:
- QFileIconProvider(QObject * /TransferThis/ = 0,const char * = 0);
+ TQFileIconProvider(TQObject * /TransferThis/ = 0,const char * = 0);
- virtual const QPixmap *pixmap(const QFileInfo &);
+ virtual const TQPixmap *pixmap(const TQFileInfo &);
private:
-%If (Qt_2_1_0 -)
- QFileIconProvider(const QFileIconProvider &);
+%If (TQt_2_1_0 -)
+ TQFileIconProvider(const TQFileIconProvider &);
%End
};
-%If (Qt_2_1_0 -)
-class QFilePreview
+%If (TQt_2_1_0 -)
+class TQFilePreview
{
%TypeHeaderCode
#include <qfiledialog.h>
%End
public:
- QFilePreview();
+ TQFilePreview();
- virtual void previewUrl(const QUrl &) = 0;
+ virtual void previewUrl(const TQUrl &) = 0;
};
%End
-class QFileDialog : QDialog
+class TQFileDialog : TQDialog
{
%TypeHeaderCode
#include <qfiledialog.h>
%End
public:
-%If (- Qt_2_00)
- QFileDialog(const char *,const char * = 0,QWidget * /TransferThis/ = 0,
+%If (- TQt_2_00)
+ TQFileDialog(const char *,const char * = 0,TQWidget * /TransferThis/ = 0,
const char * = 0,bool = 0);
%End
-%If (Qt_2_00 -)
- QFileDialog(const QString &,const QString & = QString::null,
- QWidget * /TransferThis/ = 0,const char * = 0,bool = 0);
+%If (TQt_2_00 -)
+ TQFileDialog(const TQString &,const TQString & = TQString::null,
+ TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0);
%End
- QFileDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0);
+ TQFileDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0);
-%If (- Qt_2_00)
- static QString getOpenFileName(const char * = 0,const char * = 0,
- QWidget * = 0,
+%If (- TQt_2_00)
+ static TQString getOpenFileName(const char * = 0,const char * = 0,
+ TQWidget * = 0,
const char * = 0) /ReleaseGIL/;
- static QString getSaveFileName(const char * = 0,const char * = 0,
- QWidget * = 0,
+ static TQString getSaveFileName(const char * = 0,const char * = 0,
+ TQWidget * = 0,
const char * = 0) /ReleaseGIL/;
- static QString getExistingDirectory(const char * = 0,QWidget * = 0,
+ static TQString getExistingDirectory(const char * = 0,TQWidget * = 0,
const char * = 0) /ReleaseGIL/;
- static QStrList getOpenFileNames(const char * = 0,const char * = 0,
- QWidget * = 0,
+ static TQStrList getOpenFileNames(const char * = 0,const char * = 0,
+ TQWidget * = 0,
const char * = 0) /ReleaseGIL/;
%End
-%If (Qt_2_00 - Qt_3_0_0)
- static QString getOpenFileName(const QString & = QString::null,
- const QString & = QString::null,
- QWidget * = 0,
+%If (TQt_2_00 - TQt_3_0_0)
+ static TQString getOpenFileName(const TQString & = TQString::null,
+ const TQString & = TQString::null,
+ TQWidget * = 0,
const char * = 0) /ReleaseGIL/;
- static QString getSaveFileName(const QString & = QString::null,
- const QString & = QString::null,
- QWidget * = 0,
+ static TQString getSaveFileName(const TQString & = TQString::null,
+ const TQString & = TQString::null,
+ TQWidget * = 0,
const char * = 0) /ReleaseGIL/;
- static QString getExistingDirectory(const QString & = QString::null,
- QWidget * = 0,
+ static TQString getExistingDirectory(const TQString & = TQString::null,
+ TQWidget * = 0,
const char * = 0) /ReleaseGIL/;
- static QStringList getOpenFileNames(const QString & = QString::null,
- const QString & = QString::null,
- QWidget * = 0,
+ static TQStringList getOpenFileNames(const TQString & = TQString::null,
+ const TQString & = TQString::null,
+ TQWidget * = 0,
const char * = 0) /ReleaseGIL/;
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
- static QString getOpenFileName(const QString &,const QString &,
- QWidget *,const char *,
- const QString &) /ReleaseGIL/;
- static QString getSaveFileName(const QString &,const QString &,
- QWidget *,const char *,
- const QString &) /ReleaseGIL/;
- static QString getExistingDirectory(const QString &,QWidget *,
+%If (TQt_2_1_0 - TQt_3_0_0)
+ static TQString getOpenFileName(const TQString &,const TQString &,
+ TQWidget *,const char *,
+ const TQString &) /ReleaseGIL/;
+ static TQString getSaveFileName(const TQString &,const TQString &,
+ TQWidget *,const char *,
+ const TQString &) /ReleaseGIL/;
+ static TQString getExistingDirectory(const TQString &,TQWidget *,
const char *,
- const QString &) /ReleaseGIL/;
- static QStringList getOpenFileNames(const QString &,const QString &,
- QWidget *,const char *,
- const QString &) /ReleaseGIL/;
+ const TQString &) /ReleaseGIL/;
+ static TQStringList getOpenFileNames(const TQString &,const TQString &,
+ TQWidget *,const char *,
+ const TQString &) /ReleaseGIL/;
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
- static QString getExistingDirectory(const QString &,QWidget *,
+%If (TQt_2_2_0 - TQt_3_0_0)
+ static TQString getExistingDirectory(const TQString &,TQWidget *,
const char *,
- const QString &,bool) /ReleaseGIL/;
-%End
-%If (Qt_3_0_0 -)
- static QString getOpenFileName(const QString & = QString::null,
- const QString & = QString::null,
- QWidget * = 0,const char * = 0,
- const QString & = QString::null,
- QString * = 0,bool = 1) /ReleaseGIL/;
-
- static QString getSaveFileName(const QString & = QString::null,
- const QString & = QString::null,
- QWidget * = 0,const char * = 0,
- const QString & = QString::null,
- QString * = 0,bool = 1) /ReleaseGIL/;
-
- static QString getExistingDirectory(const QString & = QString::null,
- QWidget * = 0,const char * = 0,
- const QString & = QString::null,
+ const TQString &,bool) /ReleaseGIL/;
+%End
+%If (TQt_3_0_0 -)
+ static TQString getOpenFileName(const TQString & = TQString::null,
+ const TQString & = TQString::null,
+ TQWidget * = 0,const char * = 0,
+ const TQString & = TQString::null,
+ TQString * = 0,bool = 1) /ReleaseGIL/;
+
+ static TQString getSaveFileName(const TQString & = TQString::null,
+ const TQString & = TQString::null,
+ TQWidget * = 0,const char * = 0,
+ const TQString & = TQString::null,
+ TQString * = 0,bool = 1) /ReleaseGIL/;
+
+ static TQString getExistingDirectory(const TQString & = TQString::null,
+ TQWidget * = 0,const char * = 0,
+ const TQString & = TQString::null,
bool = 1,bool = 1) /ReleaseGIL/;
- static QStringList getOpenFileNames(const QString & = QString::null,
- const QString & = QString::null,
- QWidget * = 0,const char * = 0,
- const QString & = QString::null,
- QString * = 0,
+ static TQStringList getOpenFileNames(const TQString & = TQString::null,
+ const TQString & = TQString::null,
+ TQWidget * = 0,const char * = 0,
+ const TQString & = TQString::null,
+ TQString * = 0,
bool = 1) /ReleaseGIL/;
%End
- static void setIconProvider(QFileIconProvider *);
- static QFileIconProvider *iconProvider();
+ static void setIconProvider(TQFileIconProvider *);
+ static TQFileIconProvider *iconProvider();
- QString selectedFile() const;
-%If (Qt_2_1_0 -)
- QString selectedFilter() const;
+ TQString selectedFile() const;
+%If (TQt_2_1_0 -)
+ TQString selectedFilter() const;
%End
-%If (Qt_3_0_0 -)
- virtual void setSelectedFilter(const QString &);
+%If (TQt_3_0_0 -)
+ virtual void setSelectedFilter(const TQString &);
virtual void setSelectedFilter(int);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setSelection(const char *);
%End
-%If (Qt_2_00 -)
- void setSelection(const QString &);
+%If (TQt_2_00 -)
+ void setSelection(const TQString &);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void selectAll(bool);
- QStringList selectedFiles() const;
+ TQStringList selectedFiles() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *dirPath() const;
%End
-%If (Qt_2_00 -)
- QString dirPath() const;
+%If (TQt_2_00 -)
+ TQString dirPath() const;
%End
- void setDir(const QDir &);
- const QDir* dir() const;
+ void setDir(const TQDir &);
+ const TQDir* dir() const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setShowHiddenFiles(bool);
bool showHiddenFiles() const;
%End
void rereadDir() /ReleaseGIL/;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void resortDir();
%End
-%If (- Qt_2_2_0)
+%If (- TQt_2_2_0)
enum Mode {
AnyFile,
ExistingFile,
@@ -241,7 +241,7 @@ public:
ExistingFiles
};
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
enum Mode {
AnyFile,
ExistingFile,
@@ -254,7 +254,7 @@ public:
void setMode(Mode);
Mode mode() const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
enum ViewMode {
Detail,
List
@@ -272,90 +272,90 @@ public:
PreviewMode previewMode() const;
%End
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
bool isInfoPreviewEnabled() const;
bool isContentsPreviewEnabled() const;
void setInfoPreviewEnabled(bool);
void setContentsPreviewEnabled(bool);
- void setInfoPreview(QWidget *,QFilePreview *);
- void setContentsPreview(QWidget *,QFilePreview *);
+ void setInfoPreview(TQWidget *,TQFilePreview *);
+ void setContentsPreview(TQWidget *,TQFilePreview *);
- QUrl url() const;
+ TQUrl url() const;
%End
-%If (Qt_3_0_0 -)
- void addFilter(const QString &);
+%If (TQt_3_0_0 -)
+ void addFilter(const TQString &);
%End
public slots:
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
void done(int);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setDir(const char *);
%End
-%If (Qt_2_00 -)
- void setDir(const QString &);
+%If (TQt_2_00 -)
+ void setDir(const TQString &);
%End
-%If (Qt_2_1_0 -)
- void setUrl(const QUrlOperator &);
+%If (TQt_2_1_0 -)
+ void setUrl(const TQUrlOperator &);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setFilter(const char *);
%End
-%If (Qt_2_00 -)
- void setFilter(const QString &);
+%If (TQt_2_00 -)
+ void setFilter(const TQString &);
%End
-%If (Qt_2_1_0 -)
- void setFilters(const QString &);
+%If (TQt_2_1_0 -)
+ void setFilters(const TQString &);
%End
// void setFilters(const char **);
-%If (- Qt_2_00)
- void setFilters(const QStrList &);
+%If (- TQt_2_00)
+ void setFilters(const TQStrList &);
%End
-%If (Qt_2_00 -)
- void setFilters(const QStringList &);
+%If (TQt_2_00 -)
+ void setFilters(const TQStringList &);
%End
signals:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void fileHighlighted(const char *);
void fileSelected(const char *);
void dirEntered(const char *);
%End
-%If (Qt_2_00 -)
- void fileHighlighted(const QString &);
- void fileSelected(const QString &);
+%If (TQt_2_00 -)
+ void fileHighlighted(const TQString &);
+ void fileSelected(const TQString &);
%End
-%If (Qt_3_0_0 -)
- void filesSelected(const QStringList &);
+%If (TQt_3_0_0 -)
+ void filesSelected(const TQStringList &);
%End
-%If (Qt_2_00 -)
- void dirEntered(const QString &);
+%If (TQt_2_00 -)
+ void dirEntered(const TQString &);
%End
-%If (Qt_3_0_0 -)
- void filterSelected(const QString &);
+%If (TQt_3_0_0 -)
+ void filterSelected(const TQString &);
%End
protected:
- void resizeEvent(QResizeEvent *);
- void keyPressEvent(QKeyEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void keyPressEvent(TQKeyEvent *);
- void addWidgets(QLabel *,QWidget *,QPushButton *);
-%If (Qt_2_1_0 -)
- void addToolButton(QButton *,bool = 0);
- void addLeftWidget(QWidget *);
- void addRightWidget(QWidget *);
+ void addWidgets(TQLabel *,TQWidget *,TQPushButton *);
+%If (TQt_2_1_0 -)
+ void addToolButton(TQButton *,bool = 0);
+ void addLeftWidget(TQWidget *);
+ void addRightWidget(TQWidget *);
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
- void addFilter(const QString &);
+%If (TQt_2_1_0 - TQt_3_0_0)
+ void addFilter(const TQString &);
%End
private:
- QFileDialog(const QFileDialog &);
+ TQFileDialog(const TQFileDialog &);
};
%End
diff --git a/sip/qt/qfileinfo.sip b/sip/qt/qfileinfo.sip
index 3755e31..a43f156 100644
--- a/sip/qt/qfileinfo.sip
+++ b/sip/qt/qfileinfo.sip
@@ -1,35 +1,35 @@
-// This is the SIP interface definition for QFileInfo.
+// This is the SIP interface definition for TQFileInfo.
//
// 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>QFileInfo</Title>
+<Sect2><Title>TQFileInfo</Title>
<Para>
-<Literal>QFileInfo</Literal> is fully implemented.
+<Literal>TQFileInfo</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QFileInfo
+class TQFileInfo
{
%TypeHeaderCode
#include <qfileinfo.h>
@@ -37,7 +37,7 @@ class QFileInfo
public:
enum PermissionSpec {
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
ReadOwner, WriteOwner, ExeOwner,
%End
ReadUser, WriteUser, ExeUser,
@@ -45,67 +45,67 @@ public:
ReadOther, WriteOther, ExeOther
};
- QFileInfo();
-%If (- Qt_2_00)
- QFileInfo(const char *);
+ TQFileInfo();
+%If (- TQt_2_00)
+ TQFileInfo(const char *);
%End
-%If (Qt_2_00 -)
- QFileInfo(const QString &);
+%If (TQt_2_00 -)
+ TQFileInfo(const TQString &);
%End
- QFileInfo(const QFile &);
-%If (- Qt_2_00)
- QFileInfo(const QDir &,const char *);
+ TQFileInfo(const TQFile &);
+%If (- TQt_2_00)
+ TQFileInfo(const TQDir &,const char *);
%End
-%If (Qt_2_00 -)
- QFileInfo(const QDir &,const QString &);
+%If (TQt_2_00 -)
+ TQFileInfo(const TQDir &,const TQString &);
%End
- QFileInfo(const QFileInfo &);
+ TQFileInfo(const TQFileInfo &);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setFile(const char *);
%End
-%If (Qt_2_00 -)
- void setFile(const QString &);
+%If (TQt_2_00 -)
+ void setFile(const TQString &);
%End
- void setFile(const QFile &);
-%If (- Qt_2_00)
- void setFile(const QDir &,const char *);
+ void setFile(const TQFile &);
+%If (- TQt_2_00)
+ void setFile(const TQDir &,const char *);
%End
-%If (Qt_2_00 -)
- void setFile(const QDir &,const QString &);
+%If (TQt_2_00 -)
+ void setFile(const TQDir &,const TQString &);
%End
bool exists() const;
void refresh() const;
bool caching() const;
void setCaching(bool);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *filePath() const;
%End
-%If (Qt_2_00 -)
- const QString filePath() const;
+%If (TQt_2_00 -)
+ const TQString filePath() const;
%End
- QString fileName() const;
- QString absFilePath() const;
-%If (- Qt_3_0_0)
- QString baseName() const;
+ TQString fileName() const;
+ TQString absFilePath() const;
+%If (- TQt_3_0_0)
+ TQString baseName() const;
%End
-%If (Qt_3_0_0 -)
- QString baseName(bool = 1) const;
+%If (TQt_3_0_0 -)
+ TQString baseName(bool = 1) const;
%End
-%If (- Qt_2_00)
- QString extension() const;
+%If (- TQt_2_00)
+ TQString extension() const;
%End
-%If (Qt_2_00 -)
- QString extension(bool = 1) const;
+%If (TQt_2_00 -)
+ TQString extension(bool = 1) const;
%End
- QString dirPath(bool = 0) const;
- QDir dir(bool = 0) const;
+ TQString dirPath(bool = 0) const;
+ TQDir dir(bool = 0) const;
bool isReadable() const;
bool isWritable() const;
bool isExecutable() const;
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
bool isHidden() const;
%End
@@ -116,20 +116,20 @@ public:
bool isDir() const;
bool isSymLink() const;
- QString readLink() const /ReleaseGIL/;
+ TQString readLink() const /ReleaseGIL/;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *owner() const;
%End
-%If (Qt_2_00 -)
- QString owner() const;
+%If (TQt_2_00 -)
+ TQString owner() const;
%End
uint ownerId() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *group() const;
%End
-%If (Qt_2_00 -)
- QString group() const;
+%If (TQt_2_00 -)
+ TQString group() const;
%End
uint groupId() const;
@@ -137,9 +137,9 @@ public:
uint size() const;
-%If (Qt_3_0_0 -)
- QDateTime created() const;
+%If (TQt_3_0_0 -)
+ TQDateTime created() const;
%End
- QDateTime lastModified() const;
- QDateTime lastRead() const;
+ TQDateTime lastModified() const;
+ TQDateTime lastRead() const;
};
diff --git a/sip/qt/qfont.sip b/sip/qt/qfont.sip
index b2abfd4..54689e9 100644
--- a/sip/qt/qfont.sip
+++ b/sip/qt/qfont.sip
@@ -1,43 +1,43 @@
-// This is the SIP interface definition for QFont.
+// This is the SIP interface definition for TQFont.
//
// 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>QFont</Title>
+<Sect2><Title>TQFont</Title>
<Para>
-<Literal>QFont</Literal> is fully implemented, including the Python
+<Literal>TQFont</Literal> is fully implemented, including the Python
<Literal>==</Literal> and <Literal>!=</Literal> operators.
</Para>
</Sect2>
%End
-class QFont
+class TQFont
{
%TypeHeaderCode
#include <qfont.h>
%End
public:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
enum CharSet {
Latin1, ISO_8859_1 = Latin1, AnyCharSet,
Latin2, ISO_8859_2 = Latin2,
@@ -51,7 +51,7 @@ public:
KOI8R
};
%End
-%If (Qt_2_00 - Qt_2_1_0)
+%If (TQt_2_00 - TQt_2_1_0)
enum CharSet {
ISO_8859_1, Latin1 = ISO_8859_1, AnyCharSet,
ISO_8859_2, Latin2 = ISO_8859_2,
@@ -77,7 +77,7 @@ public:
Unicode
};
%End
-%If (Qt_2_1_0 - Qt_2_2_0)
+%If (TQt_2_1_0 - TQt_2_2_0)
enum CharSet {
ISO_8859_1, Latin1 = ISO_8859_1, AnyCharSet,
ISO_8859_2, Latin2 = ISO_8859_2,
@@ -105,7 +105,7 @@ public:
Set_Big5
};
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
+%If (TQt_2_2_0 - TQt_3_0_0)
enum CharSet {
ISO_8859_1, Latin1 = ISO_8859_1, AnyCharSet,
ISO_8859_2, Latin2 = ISO_8859_2,
@@ -153,7 +153,7 @@ public:
Decorative
};
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
enum StyleStrategy {
PreferDefault,
PreferBitmap,
@@ -162,11 +162,11 @@ public:
ForceOutline,
PreferMatch,
PreferQuality,
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
PreferAntialias,
NoAntialias,
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
OpenGLCompatible,
%End
};
@@ -180,7 +180,7 @@ public:
Black
};
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
enum Stretch {
UltraCondensed,
ExtraCondensed,
@@ -194,29 +194,29 @@ public:
};
%End
- QFont();
-%If (- Qt_2_00)
- QFont(const char *,int = 12,int = Normal,bool = 0);
- QFont(const char *,int,int,bool,CharSet);
+ TQFont();
+%If (- TQt_2_00)
+ TQFont(const char *,int = 12,int = Normal,bool = 0);
+ TQFont(const char *,int,int,bool,CharSet);
%End
-%If (Qt_2_00 - Qt_3_2_0)
- QFont(const QString &,int = 12,int = Normal,bool = 0);
+%If (TQt_2_00 - TQt_3_2_0)
+ TQFont(const TQString &,int = 12,int = Normal,bool = 0);
%End
-%If (Qt_3_2_0 -)
- QFont(const QString &,int = 12,int = -1,bool = 0);
+%If (TQt_3_2_0 -)
+ TQFont(const TQString &,int = 12,int = -1,bool = 0);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- QFont(const QString &,int,int,bool,CharSet);
+%If (TQt_2_00 - TQt_3_0_0)
+ TQFont(const TQString &,int,int,bool,CharSet);
%End
- QFont(const QFont &);
+ TQFont(const TQFont &);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *family() const;
void setFamily(const char *);
%End
-%If (Qt_2_00 -)
- QString family() const;
- void setFamily(const QString &);
+%If (TQt_2_00 -)
+ TQString family() const;
+ void setFamily(const TQString &);
float pointSizeFloat() const;
void setPointSizeFloat(float);
@@ -240,7 +240,7 @@ public:
bool underline() const;
void setUnderline(bool);
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
bool overline() const;
void setOverline(bool);
%End
@@ -252,26 +252,26 @@ public:
void setFixedPitch(bool);
StyleHint styleHint() const;
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
StyleStrategy styleStrategy() const;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
void setStyleHint(StyleHint);
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
+%If (TQt_2_2_0 - TQt_3_0_0)
void setStyleHint(StyleHint,StyleStrategy);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setStyleHint(StyleHint,StyleStrategy = PreferDefault);
void setStyleStrategy(StyleStrategy);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
CharSet charSet() const;
void setCharSet(CharSet);
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
int stretch() const;
void setStretch(int);
%End
@@ -281,59 +281,59 @@ public:
bool exactMatch() const;
- bool operator==(const QFont &) const;
- bool operator!=(const QFont &) const;
+ bool operator==(const TQFont &) const;
+ bool operator!=(const TQFont &) const;
- bool isCopyOf(const QFont &) const;
+ bool isCopyOf(const TQFont &) const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
HANDLE handle(HANDLE = 0);
const char *rawName() const;
- static const QFont &defaultFont();
+ static const TQFont &defaultFont();
static const char *substitute(const char *);
static void insertSubstitution(const char *,const char *);
static void removeSubstitution(const char *);
- static void listSubstitutions(QStrList *);
+ static void listSubstitutions(TQStrList *);
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
static CharSet charSetForLocale();
%End
-%If (Qt_2_00 -)
-%If (- Qt_3_0_0)
+%If (TQt_2_00 -)
+%If (- TQt_3_0_0)
%If (WS_X11)
HANDLE handle() const;
%End
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
%If (WS_X11)
- Qt::HANDLE handle() const;
+ TQt::HANDLE handle() const;
%End
%End
- void setRawName(const QString &);
- QString rawName() const;
+ void setRawName(const TQString &);
+ TQString rawName() const;
%End
- QString key() const;
-%If (Qt_3_0_0 -)
- QString toString() const;
- bool fromString(const QString &);
+ TQString key() const;
+%If (TQt_3_0_0 -)
+ TQString toString() const;
+ bool fromString(const TQString &);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- static QString encodingName(CharSet);
+%If (TQt_2_00 - TQt_3_0_0)
+ static TQString encodingName(CharSet);
%End
-%If (Qt_2_00 -)
- static QString substitute(const QString &);
-%If (Qt_3_0_0 -)
- static QStringList substitutes(const QString &);
+%If (TQt_2_00 -)
+ static TQString substitute(const TQString &);
+%If (TQt_3_0_0 -)
+ static TQStringList substitutes(const TQString &);
%End
- static QStringList substitutions();
- static void insertSubstitution(const QString &,const QString &);
-%If (Qt_3_0_0 -)
- static void insertSubstitutions(const QString &,const QStringList &);
+ static TQStringList substitutions();
+ static void insertSubstitution(const TQString &,const TQString &);
+%If (TQt_3_0_0 -)
+ static void insertSubstitutions(const TQString &,const TQStringList &);
%End
- static void removeSubstitution(const QString &);
-%If (- Qt_3_0_0)
+ static void removeSubstitution(const TQString &);
+%If (- TQt_3_0_0)
static void locale_init();
%End
%End
@@ -342,7 +342,7 @@ public:
static void cleanup();
static void cacheStatistics();
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum Script {
Latin,
Greek,
@@ -399,7 +399,7 @@ public:
Unicode,
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
Tagalog,
Hanunoo,
Buhid,
@@ -408,34 +408,34 @@ public:
KatakanaHalfWidth,
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
Limbu,
TaiLe,
%End
};
- QString defaultFamily() const;
- QString lastResortFamily() const;
- QString lastResortFont() const;
+ TQString defaultFamily() const;
+ TQString lastResortFamily() const;
+ TQString lastResortFont() const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
- static QFont defaultFont();
+%If (TQt_2_00 - TQt_3_0_0)
+ static TQFont defaultFont();
%End
-%If (- Qt_3_0_0)
- static void setDefaultFont(const QFont &);
+%If (- TQt_3_0_0)
+ static void setDefaultFont(const TQFont &);
%End
-%If (Qt_3_2_0 -)
- QFont resolve(const QFont &) const;
+%If (TQt_3_2_0 -)
+ TQFont resolve(const TQFont &) const;
%End
protected:
bool dirty() const;
-%If (- Qt_3_0_0)
- QString defaultFamily() const;
- QString lastResortFamily() const;
- QString lastResortFont() const;
+%If (- TQt_3_0_0)
+ TQString defaultFamily() const;
+ TQString lastResortFamily() const;
+ TQString lastResortFont() const;
%End
int deciPointSize() const;
};
diff --git a/sip/qt/qfontdatabase.sip b/sip/qt/qfontdatabase.sip
index cacecea..4676e43 100644
--- a/sip/qt/qfontdatabase.sip
+++ b/sip/qt/qfontdatabase.sip
@@ -1,119 +1,119 @@
-// This is the SIP interface definition for QFontDatabase.
+// This is the SIP interface definition for TQFontDatabase.
//
// 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>QFontDatabase (Qt v2.1+)</Title>
+<Sect2><Title>TQFontDatabase (TQt v2.1+)</Title>
<Para>
-<Literal>QFontDatabase</Literal> is fully implemented.
+<Literal>TQFontDatabase</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_FONTDATABASE)
-%If (Qt_2_1_0 -)
+%If (TQt_FONTDATABASE)
+%If (TQt_2_1_0 -)
-class QFontDatabase
+class TQFontDatabase
{
%TypeHeaderCode
#include <qfontdatabase.h>
%End
public:
- QFontDatabase();
+ TQFontDatabase();
- static QValueList<int> standardSizes();
+ static TQValueList<int> standardSizes();
-%If (- Qt_3_0_0)
- QStringList charSets(const QString &,bool = 1 ) const;
- QStringList families(bool = 1) const;
- QStringList styles(const QString &,
- const QString & = QString::null) const;
- QValueList<int> pointSizes(const QString &,
- const QString & = QString::null,
- const QString & = QString::null);
- QValueList<int> smoothSizes(const QString &,const QString &,
- const QString & = QString::null);
+%If (- TQt_3_0_0)
+ TQStringList charSets(const TQString &,bool = 1 ) const;
+ TQStringList families(bool = 1) const;
+ TQStringList styles(const TQString &,
+ const TQString & = TQString::null) const;
+ TQValueList<int> pointSizes(const TQString &,
+ const TQString & = TQString::null,
+ const TQString & = TQString::null);
+ TQValueList<int> smoothSizes(const TQString &,const TQString &,
+ const TQString & = TQString::null);
%End
-%If (Qt_3_0_0 -)
- QStringList families() const;
-%If (Qt_3_2_0 -)
- QStringList families(QFont::Script) const;
+%If (TQt_3_0_0 -)
+ TQStringList families() const;
+%If (TQt_3_2_0 -)
+ TQStringList families(TQFont::Script) const;
%End
- QStringList styles(const QString &) const;
- QValueList<int> pointSizes(const QString &,
- const QString & = QString::null);
- QValueList<int> smoothSizes(const QString &,const QString &);
+ TQStringList styles(const TQString &) const;
+ TQValueList<int> pointSizes(const TQString &,
+ const TQString & = TQString::null);
+ TQValueList<int> smoothSizes(const TQString &,const TQString &);
%End
- QString styleString(const QFont &);
+ TQString styleString(const TQFont &);
-%If (- Qt_3_0_0)
- QFont font(const QString,const QString &,int,
- const QString = QString::null);
+%If (- TQt_3_0_0)
+ TQFont font(const TQString,const TQString &,int,
+ const TQString = TQString::null);
- bool isBitmapScalable(const QString &,const QString & = QString::null,
- const QString & = QString::null) const;
- bool isSmoothlyScalable(const QString &,
- const QString & = QString::null,
- const QString & = QString::null) const;
- bool isScalable(const QString &,const QString & = QString::null,
- const QString & = QString::null) const;
+ bool isBitmapScalable(const TQString &,const TQString & = TQString::null,
+ const TQString & = TQString::null) const;
+ bool isSmoothlyScalable(const TQString &,
+ const TQString & = TQString::null,
+ const TQString & = TQString::null) const;
+ bool isScalable(const TQString &,const TQString & = TQString::null,
+ const TQString & = TQString::null) const;
%End
-%If (Qt_3_0_0 -)
- QFont font(const QString,const QString &,int);
+%If (TQt_3_0_0 -)
+ TQFont font(const TQString,const TQString &,int);
- bool isBitmapScalable(const QString &,
- const QString & = QString::null) const;
- bool isSmoothlyScalable(const QString &,
- const QString & = QString::null) const;
- bool isScalable(const QString &,const QString & = QString::null) const;
+ bool isBitmapScalable(const TQString &,
+ const TQString & = TQString::null) const;
+ bool isSmoothlyScalable(const TQString &,
+ const TQString & = TQString::null) const;
+ bool isScalable(const TQString &,const TQString & = TQString::null) const;
%End
-%If (Qt_2_3_0 - Qt_3_0_0)
- bool isFixedPitch(const QString &,const QString & = QString::null,
- const QString & = QString::null) const;
+%If (TQt_2_3_0 - TQt_3_0_0)
+ bool isFixedPitch(const TQString &,const TQString & = TQString::null,
+ const TQString & = TQString::null) const;
%End
-%If (Qt_3_0_0 -)
- bool isFixedPitch(const QString &,
- const QString & = QString::null) const;
+%If (TQt_3_0_0 -)
+ bool isFixedPitch(const TQString &,
+ const TQString & = TQString::null) const;
%End
-%If (- Qt_3_0_0)
- bool italic(const QString &,const QString &,
- const QString & = QString::null) const;
- bool bold(const QString &,const QString &,
- const QString & = QString::null) const;
- int weight(const QString &,const QString &,
- const QString & = QString::null) const;
+%If (- TQt_3_0_0)
+ bool italic(const TQString &,const TQString &,
+ const TQString & = TQString::null) const;
+ bool bold(const TQString &,const TQString &,
+ const TQString & = TQString::null) const;
+ int weight(const TQString &,const TQString &,
+ const TQString & = TQString::null) const;
- static QString verboseCharSetName(const QString &);
- static QString charSetSample(const QString &);
+ static TQString verboseCharSetName(const TQString &);
+ static TQString charSetSample(const TQString &);
%End
-%If (Qt_3_0_0 -)
- bool italic(const QString &,const QString &) const;
- bool bold(const QString &,const QString &) const;
- int weight(const QString &,const QString &) const;
+%If (TQt_3_0_0 -)
+ bool italic(const TQString &,const TQString &) const;
+ bool bold(const TQString &,const TQString &) const;
+ int weight(const TQString &,const TQString &) const;
- static QString scriptName(QFont::Script);
- static QString scriptSample(QFont::Script);
+ static TQString scriptName(TQFont::Script);
+ static TQString scriptSample(TQFont::Script);
%End
};
diff --git a/sip/qt/qfontdialog.sip b/sip/qt/qfontdialog.sip
index 9196000..e4f93f1 100644
--- a/sip/qt/qfontdialog.sip
+++ b/sip/qt/qfontdialog.sip
@@ -1,104 +1,104 @@
-// This is the SIP interface definition for QFontDialog.
+// This is the SIP interface definition for TQFontDialog.
//
// 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>QFontDialog (Qt v2+)</Title>
+<Sect2><Title>TQFontDialog (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef>static QFont <Function>getFont</Function></FuncDef>
+ <FuncDef>static TQFont <Function>getFont</Function></FuncDef>
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
- <ParamDef>const QFont &<Parameter>def</Parameter></ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>const TQFont &<Parameter>def</Parameter></ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
This takes the <Literal>def</Literal>, <Literal>parent</Literal> and
<Literal>name</Literal> parameters and returns a tuple containing the
-<Literal>QFont</Literal> result and the <Literal>ok</Literal> value.
+<Literal>TQFont</Literal> result and the <Literal>ok</Literal> value.
</Para>
<FuncSynopsis>
- <FuncDef>static QFont <Function>getFont</Function></FuncDef>
+ <FuncDef>static TQFont <Function>getFont</Function></FuncDef>
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
This takes the <Literal>parent</Literal> and <Literal>name</Literal> parameters
-and returns a tuple containing the <Literal>QFont</Literal> result and the
+and returns a tuple containing the <Literal>TQFont</Literal> result and the
<Literal>ok</Literal> value.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
-%If (Qt_FONTDIALOG)
+%If (TQt_2_00 -)
+%If (TQt_FONTDIALOG)
-class QFontDialog : QDialog
+class TQFontDialog : TQDialog
{
%TypeHeaderCode
#include <qfontdialog.h>
%End
public:
- static QFont getFont(bool *,const QFont &,QWidget * = 0,
+ static TQFont getFont(bool *,const TQFont &,TQWidget * = 0,
const char * = 0);
- static QFont getFont(bool *,QWidget * = 0,const char * = 0);
+ static TQFont getFont(bool *,TQWidget * = 0,const char * = 0);
signals:
-%If (- Qt_3_2_0)
- void fontSelected(const QFont &);
- void fontHighlighted(const QFont &);
+%If (- TQt_3_2_0)
+ void fontSelected(const TQFont &);
+ void fontHighlighted(const TQFont &);
%End
protected:
-%If (- Qt_3_2_0)
- bool eventFilter(QObject *,QEvent *);
+%If (- TQt_3_2_0)
+ bool eventFilter(TQObject *,TQEvent *);
- QListBox *familyListBox() const;
+ TQListBox *familyListBox() const;
virtual void updateFamilies();
- QListBox *styleListBox() const;
+ TQListBox *styleListBox() const;
virtual void updateStyles();
- QListBox *sizeListBox() const;
+ TQListBox *sizeListBox() const;
virtual void updateSizes();
- QComboBox *scriptCombo() const;
+ TQComboBox *scriptCombo() const;
virtual void updateScripts();
%End
protected slots:
-%If (- Qt_3_2_0)
- void sizeChanged(const QString &);
+%If (- TQt_3_2_0)
+ void sizeChanged(const TQString &);
%End
private:
- QFontDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
+ TQFontDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
WFlags = 0);
-%If (Qt_2_1_0 -)
- QFontDialog(const QFontDialog &);
+%If (TQt_2_1_0 -)
+ TQFontDialog(const TQFontDialog &);
%End
- ~QFontDialog();
+ ~TQFontDialog();
};
%End
diff --git a/sip/qt/qfontinfo.sip b/sip/qt/qfontinfo.sip
index d58eab0..f2d48ff 100644
--- a/sip/qt/qfontinfo.sip
+++ b/sip/qt/qfontinfo.sip
@@ -1,54 +1,54 @@
-// This is the SIP interface definition for QFontInfo.
+// This is the SIP interface definition for TQFontInfo.
//
// 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>QFontInfo</Title>
+<Sect2><Title>TQFontInfo</Title>
<Para>
-<Literal>QFontInfo</Literal> is fully implemented.
+<Literal>TQFontInfo</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QFontInfo
+class TQFontInfo
{
%TypeHeaderCode
#include <qfontinfo.h>
%End
public:
- QFontInfo(const QFont &);
-%If (Qt_3_2_0 -)
- QFontInfo(const QFont &,QFont::Script);
+ TQFontInfo(const TQFont &);
+%If (TQt_3_2_0 -)
+ TQFontInfo(const TQFont &,TQFont::Script);
%End
- QFontInfo(const QFontInfo &);
+ TQFontInfo(const TQFontInfo &);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *family() const;
%End
-%If (Qt_2_00 -)
- QString family() const;
+%If (TQt_2_00 -)
+ TQString family() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int pixelSize() const;
%End
int pointSize() const;
@@ -56,14 +56,14 @@ public:
int weight() const;
bool bold() const;
bool underline() const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
bool overline() const;
%End
bool strikeOut() const;
bool fixedPitch() const;
- QFont::StyleHint styleHint() const;
-%If (- Qt_3_0_0)
- QFont::CharSet charSet() const;
+ TQFont::StyleHint styleHint() const;
+%If (- TQt_3_0_0)
+ TQFont::CharSet charSet() const;
%End
bool rawMode() const;
bool exactMatch() const;
diff --git a/sip/qt/qfontmetrics.sip b/sip/qt/qfontmetrics.sip
index e5059fb..c3dbf4e 100644
--- a/sip/qt/qfontmetrics.sip
+++ b/sip/qt/qfontmetrics.sip
@@ -1,35 +1,35 @@
-// This is the SIP interface definition for QFontMetrics.
+// This is the SIP interface definition for TQFontMetrics.
//
// 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>QFontMetrics</Title>
+<Sect2><Title>TQFontMetrics</Title>
<FuncSynopsis>
- <FuncDef>QRect <Function>boundingRect</Function></FuncDef>
+ <FuncDef>TQRect <Function>boundingRect</Function></FuncDef>
<ParamDef>int <Parameter>x</Parameter></ParamDef>
<ParamDef>int <Parameter>y</Parameter></ParamDef>
<ParamDef>int <Parameter>w</Parameter></ParamDef>
<ParamDef>int <Parameter>h</Parameter></ParamDef>
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>str</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>str</Parameter></ParamDef>
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
<ParamDef>int <Parameter>tabstops</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>tabarray</Parameter> = 0</ParamDef>
@@ -39,9 +39,9 @@ The <Literal>tabarray</Literal> parameter is a Python list of integers.
</Para>
<FuncSynopsis>
- <FuncDef>QSize <Function>size</Function></FuncDef>
+ <FuncDef>TQSize <Function>size</Function></FuncDef>
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>str</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>str</Parameter></ParamDef>
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
<ParamDef>int <Parameter>tabstops</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>tabarray</Parameter> = 0</ParamDef>
@@ -53,18 +53,18 @@ The <Literal>tabarray</Literal> parameter is a Python list of integers.
%End
-class QFontMetrics
+class TQFontMetrics
{
%TypeHeaderCode
#include <qfontmetrics.h>
%End
public:
- QFontMetrics(const QFont &);
-%If (Qt_3_2_0 -)
- QFontMetrics(const QFont &,QFont::Script);
+ TQFontMetrics(const TQFont &);
+%If (TQt_3_2_0 -)
+ TQFontMetrics(const TQFont &,TQFont::Script);
%End
- QFontMetrics(const QFontMetrics &);
+ TQFontMetrics(const TQFontMetrics &);
int ascent() const;
int descent() const;
@@ -74,16 +74,16 @@ public:
int minLeftBearing() const;
int minRightBearing() const;
int maxWidth() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
bool inFont(char) const;
int leftBearing(char) const;
int rightBearing(char) const;
int width(const char *,int = -1) const;
int width(char) const;
- QRect boundingRect(const char *,int = -1) const;
- QRect boundingRect(char) const;
+ TQRect boundingRect(const char *,int = -1) const;
+ TQRect boundingRect(char) const;
- QRect boundingRect(int,int,int,int,int,const char *,int = -1,
+ TQRect boundingRect(int,int,int,int,int,const char *,int = -1,
SIP_PYLIST /AllowNone/ = 0) const;
%MethodCode
int *tabarray;
@@ -93,7 +93,7 @@ public:
else
{
Py_BEGIN_ALLOW_THREADS
- sipRes = new QRect(sipCpp -> QFontMetrics::boundingRect(a0,a1,a2,a3,a4,a5,a6,a7,tabarray));
+ sipRes = new TQRect(sipCpp -> TQFontMetrics::boundingRect(a0,a1,a2,a3,a4,a5,a6,a7,tabarray));
Py_END_ALLOW_THREADS
if (tabarray)
@@ -101,7 +101,7 @@ public:
}
%End
- QSize size(int,const char *,int = -1,int = 0,
+ TQSize size(int,const char *,int = -1,int = 0,
SIP_PYLIST /AllowNone/ = 0) const;
%MethodCode
int *tabarray;
@@ -111,7 +111,7 @@ public:
else
{
Py_BEGIN_ALLOW_THREADS
- sipRes = new QSize(sipCpp -> QFontMetrics::size(a0,a1,a2,a3,tabarray));
+ sipRes = new TQSize(sipCpp -> TQFontMetrics::size(a0,a1,a2,a3,tabarray));
Py_END_ALLOW_THREADS
if (tabarray)
@@ -119,19 +119,19 @@ public:
}
%End
%End
-%If (Qt_2_00 -)
- bool inFont(QChar) const;
- int leftBearing(QChar) const;
- int rightBearing(QChar) const;
- int width(const QString &,int = -1) const;
- int width(QChar) const;
-%If (Qt_3_0_0 -)
- int charWidth(const QString &,int) const;
+%If (TQt_2_00 -)
+ bool inFont(TQChar) const;
+ int leftBearing(TQChar) const;
+ int rightBearing(TQChar) const;
+ int width(const TQString &,int = -1) const;
+ int width(TQChar) const;
+%If (TQt_3_0_0 -)
+ int charWidth(const TQString &,int) const;
%End
- QRect boundingRect(const QString &,int = -1) const;
- QRect boundingRect(QChar) const;
+ TQRect boundingRect(const TQString &,int = -1) const;
+ TQRect boundingRect(TQChar) const;
- QRect boundingRect(int,int,int,int,int,const QString &,int = -1,
+ TQRect boundingRect(int,int,int,int,int,const TQString &,int = -1,
int = 0,SIP_PYLIST /AllowNone/ = 0) const;
%MethodCode
int *tabarray;
@@ -141,7 +141,7 @@ public:
else
{
Py_BEGIN_ALLOW_THREADS
- sipRes = new QRect(sipCpp -> QFontMetrics::boundingRect(a0,a1,a2,a3,a4,*a5,a6,a7,tabarray));
+ sipRes = new TQRect(sipCpp -> TQFontMetrics::boundingRect(a0,a1,a2,a3,a4,*a5,a6,a7,tabarray));
Py_END_ALLOW_THREADS
if (tabarray)
@@ -149,7 +149,7 @@ public:
}
%End
- QSize size(int,const QString &,int = -1,int = 0,
+ TQSize size(int,const TQString &,int = -1,int = 0,
SIP_PYLIST /AllowNone/ = 0) const;
%MethodCode
int *tabarray;
@@ -159,7 +159,7 @@ public:
else
{
Py_BEGIN_ALLOW_THREADS
- sipRes = new QSize(sipCpp -> QFontMetrics::size(a0,*a1,a2,a3,tabarray));
+ sipRes = new TQSize(sipCpp -> TQFontMetrics::size(a0,*a1,a2,a3,tabarray));
Py_END_ALLOW_THREADS
if (tabarray)
@@ -169,7 +169,7 @@ public:
%End
int underlinePos() const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
int overlinePos() const;
%End
int strikeOutPos() const;
diff --git a/sip/qt/qframe.sip b/sip/qt/qframe.sip
index 9e2a4e2..1bc9308 100644
--- a/sip/qt/qframe.sip
+++ b/sip/qt/qframe.sip
@@ -1,70 +1,70 @@
-// This is the SIP interface definition for QFrame.
+// This is the SIP interface definition for TQFrame.
//
// 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>QFrame</Title>
+<Sect2><Title>TQFrame</Title>
<Para>
-<Literal>QFrame</Literal> is fully implemented.
+<Literal>TQFrame</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QFrame : QWidget
+class TQFrame : TQWidget
{
%TypeHeaderCode
#include <qframe.h>
%End
public:
-%If (- Qt_3_0_0)
- QFrame(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0,
+%If (- TQt_3_0_0)
+ TQFrame(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0,
bool = 1);
%End
-%If (Qt_3_0_0 -)
- QFrame(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+%If (TQt_3_0_0 -)
+ TQFrame(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
%End
int frameStyle() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setFrameStyle(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setFrameStyle(int);
%End
int frameWidth() const;
- QRect contentsRect() const;
+ TQRect contentsRect() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
bool lineShapesOk() const;
%End
- QSize sizeHint() const;
-%If (Qt_2_00 - Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+ TQSize sizeHint() const;
+%If (TQt_2_00 - TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
enum {
NoFrame,
Box,
@@ -79,7 +79,7 @@ public:
MShadow
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
enum Shape {
NoFrame,
Box,
@@ -89,22 +89,22 @@ public:
VLine,
StyledPanel,
PopupPanel,
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
MenuBarPanel,
ToolBarPanel,
%End
-%If (Qt_3_0_1 -)
+%If (TQt_3_0_1 -)
LineEditPanel,
TabWidgetPanel,
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
GroupBoxPanel,
%End
MShape
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
enum Shadow {
Plain,
Raised,
@@ -113,68 +113,68 @@ public:
};
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
int frameShape() const;
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
Shape frameShape() const;
void setFrameShape(Shape);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
int frameShadow() const;
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
Shadow frameShadow() const;
void setFrameShadow(Shadow);
%End
int lineWidth() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setLineWidth(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setLineWidth(int);
%End
int margin() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setMargin(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setMargin(int);
%End
int midLineWidth() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setMidLineWidth(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setMidLineWidth(int);
%End
- QRect frameRect() const;
-%If (Qt_2_00 -)
- virtual void setFrameRect(const QRect &);
+ TQRect frameRect() const;
+%If (TQt_2_00 -)
+ virtual void setFrameRect(const TQRect &);
%End
protected:
-%If (- Qt_2_00)
- void setFrameRect(const QRect &);
+%If (- TQt_2_00)
+ void setFrameRect(const TQRect &);
%End
- void paintEvent(QPaintEvent *);
- void resizeEvent(QResizeEvent *);
- virtual void drawFrame(QPainter *);
- virtual void drawContents(QPainter *);
+ void paintEvent(TQPaintEvent *);
+ void resizeEvent(TQResizeEvent *);
+ virtual void drawFrame(TQPainter *);
+ virtual void drawContents(TQPainter *);
virtual void frameChanged();
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
void updateMask();
- virtual void drawFrameMask(QPainter *);
- virtual void drawContentsMask(QPainter *);
+ virtual void drawFrameMask(TQPainter *);
+ virtual void drawContentsMask(TQPainter *);
%End
-%If (Qt_3_1_0 -)
- void styleChange(QStyle &);
+%If (TQt_3_1_0 -)
+ void styleChange(TQStyle &);
%End
private:
- QFrame(const QFrame &);
+ TQFrame(const TQFrame &);
};
diff --git a/sip/qt/qglobal.sip b/sip/qt/qglobal.sip
index e2fb63a..a508f3f 100644
--- a/sip/qt/qglobal.sip
+++ b/sip/qt/qglobal.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for some Qt globals.
+// This is the SIP interface definition for some TQt globals.
//
// 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.
@@ -43,21 +43,21 @@ typedef unsigned short Q_UINT16;
typedef int Q_INT32;
typedef unsigned Q_UINT32;
-%If (Qt_Q_LONG_IS_long)
+%If (TQt_Q_LONG_IS_long)
typedef long Q_LONG;
typedef unsigned long Q_ULONG;
%End
-%If (!Qt_Q_LONG_IS_long)
+%If (!TQt_Q_LONG_IS_long)
typedef long long Q_LONG;
typedef unsigned long long Q_ULONG;
%End
const char *qVersion();
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
const char *qInstallPath();
const char *qInstallPathDocs();
const char *qInstallPathHeaders();
@@ -66,7 +66,7 @@ const char *qInstallPathBins();
const char *qInstallPathPlugins();
const char *qInstallPathData();
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
const char *qInstallPathTranslations();
%If (!WS_WIN)
const char *qInstallPathSysconf();
diff --git a/sip/qt/qgmanager.sip b/sip/qt/qgmanager.sip
index 5a194b8..9f81d48 100644
--- a/sip/qt/qgmanager.sip
+++ b/sip/qt/qgmanager.sip
@@ -1,53 +1,53 @@
-// This is the SIP interface definition for QGManager.
+// This is the SIP interface definition for TQGManager.
//
// 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>QGManager (Qt v1.x)</Title>
+<Sect2><Title>TQGManager (TQt v1.x)</Title>
<Para>
-<Literal>QGManager</Literal> is fully implemented.
+<Literal>TQGManager</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QChain (Qt v1.x)</Title>
+<Sect2><Title>TQChain (TQt v1.x)</Title>
<Para>
-<Literal>QChain</Literal> is implemented as an opaque class.
+<Literal>TQChain</Literal> is implemented as an opaque class.
</Para>
</Sect2>
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QChain;
+class TQChain;
-class QGManager : QObject
+class TQGManager : TQObject
{
%TypeHeaderCode
#include <qgmanager.h>
%End
public:
- QGManager(QWidget *,const char * = 0);
+ TQGManager(TQWidget *,const char * = 0);
enum Direction {
LeftToRight,
@@ -57,32 +57,32 @@ public:
};
enum {
- unlimited = QCOORD_MAX
+ unlimited = TQCOORD_MAX
};
void setBorder(int);
- QChain *newSerChain(Direction);
- QChain *newParChain(Direction);
- bool add(QChain *,QChain *,int = 0);
- bool addWidget(QChain *,QWidget *,int = 0);
- bool addSpacing(QChain *,int,int = 0,int = unlimited);
- bool addBranch(QChain *,QChain *,int,int);
- void setStretch(QChain *,int);
+ TQChain *newSerChain(Direction);
+ TQChain *newParChain(Direction);
+ bool add(TQChain *,TQChain *,int = 0);
+ bool addWidget(TQChain *,TQWidget *,int = 0);
+ bool addSpacing(TQChain *,int,int = 0,int = unlimited);
+ bool addBranch(TQChain *,TQChain *,int,int);
+ void setStretch(TQChain *,int);
bool activate();
void freeze(int = 0,int = 0);
void unFreeze();
- QChain *xChain();
- QChain *yChain();
- void setMenuBar(QWidget *);
- QWidget *mainWidget();
- void remove(QWidget *);
- void setName(QChain *,const char *);
+ TQChain *xChain();
+ TQChain *yChain();
+ void setMenuBar(TQWidget *);
+ TQWidget *mainWidget();
+ void remove(TQWidget *);
+ void setName(TQChain *,const char *);
protected:
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
private:
- QGManager(const QGManager &);
+ TQGManager(const TQGManager &);
};
%End
diff --git a/sip/qt/qgrid.sip b/sip/qt/qgrid.sip
index f26acb3..3b52514 100644
--- a/sip/qt/qgrid.sip
+++ b/sip/qt/qgrid.sip
@@ -1,71 +1,71 @@
-// This is the SIP interface definition for QGrid.
+// This is the SIP interface definition for TQGrid.
//
// 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>QGrid (Qt v2+)</Title>
+<Sect2><Title>TQGrid (TQt v2+)</Title>
<Para>
-<Literal>QGrid</Literal> is fully implemented.
+<Literal>TQGrid</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QGrid : QFrame
+class TQGrid : TQFrame
{
%TypeHeaderCode
#include <qgrid.h>
%End
public:
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
enum Direction {
Horizontal,
Vertical
};
%End
- QGrid(int,QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
-%If (- Qt_3_0_0)
- QGrid(int,Direction,QWidget * /TransferThis/ = 0,const char * = 0,
+ TQGrid(int,TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+%If (- TQt_3_0_0)
+ TQGrid(int,Direction,TQWidget * /TransferThis/ = 0,const char * = 0,
WFlags = 0);
%End
-%If (Qt_3_0_0 -)
- QGrid(int,Orientation,QWidget * /TransferThis/ = 0,const char * = 0,
+%If (TQt_3_0_0 -)
+ TQGrid(int,Orientation,TQWidget * /TransferThis/ = 0,const char * = 0,
WFlags = 0);
%End
void setSpacing(int);
-%If (Qt_2_1_0 -)
- QSize sizeHint() const;
+%If (TQt_2_1_0 -)
+ TQSize sizeHint() const;
%End
protected:
void frameChanged();
private:
-%If (Qt_2_1_0 -)
- QGrid(const QGrid &);
+%If (TQt_2_1_0 -)
+ TQGrid(const TQGrid &);
%End
};
diff --git a/sip/qt/qgridview.sip b/sip/qt/qgridview.sip
index d1ca16b..1afeeaa 100644
--- a/sip/qt/qgridview.sip
+++ b/sip/qt/qgridview.sip
@@ -1,44 +1,44 @@
-// This is the SIP interface definition for QGridView.
+// This is the SIP interface definition for TQGridView.
//
// 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>QGridView (Qt v3+)</Title>
+<Sect2><Title>TQGridView (TQt v3+)</Title>
<Para>
-<Literal>QGridView</Literal> is fully implemented.
+<Literal>TQGridView</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QGridView : QScrollView
+class TQGridView : TQScrollView
{
%TypeHeaderCode
#include <qgridview.h>
%End
public:
- QGridView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+ TQGridView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
int numRows() const;
virtual void setNumRows(int);
@@ -50,9 +50,9 @@ public:
int cellHeight() const;
virtual void setCellHeight(int);
- QRect cellRect() const;
- QRect cellGeometry(int,int);
- QSize gridSize() const;
+ TQRect cellRect() const;
+ TQRect cellGeometry(int,int);
+ TQSize gridSize() const;
int rowAt(int) const;
int columnAt(int) const;
@@ -62,15 +62,15 @@ public:
void ensureCellVisible(int,int);
protected:
- virtual void paintCell(QPainter *,int,int) = 0;
- virtual void paintEmptyArea(QPainter *,int,int,int,int);
+ virtual void paintCell(TQPainter *,int,int) = 0;
+ virtual void paintEmptyArea(TQPainter *,int,int,int,int);
- void drawContents(QPainter *,int,int,int,int);
+ void drawContents(TQPainter *,int,int,int,int);
virtual void dimensionChange(int,int);
private:
- QGridView(const QGridView &);
+ TQGridView(const TQGridView &);
};
%End
diff --git a/sip/qt/qgroupbox.sip b/sip/qt/qgroupbox.sip
index c420082..43e8f32 100644
--- a/sip/qt/qgroupbox.sip
+++ b/sip/qt/qgroupbox.sip
@@ -1,76 +1,76 @@
-// This is the SIP interface definition for QGroupBox.
+// This is the SIP interface definition for TQGroupBox.
//
// 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>QGroupBox</Title>
+<Sect2><Title>TQGroupBox</Title>
<Para>
-<Literal>QGroupBox</Literal> is fully implemented.
+<Literal>TQGroupBox</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QGroupBox : QFrame
+class TQGroupBox : TQFrame
{
%TypeHeaderCode
#include <qgroupbox.h>
%End
public:
- QGroupBox(QWidget * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_2_00)
- QGroupBox(const char *,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQGroupBox(TQWidget * /TransferThis/ = 0,const char * = 0);
+%If (- TQt_2_00)
+ TQGroupBox(const char *,TQWidget * /TransferThis/ = 0,const char * = 0);
%End
-%If (Qt_2_00 -)
- QGroupBox(const QString &,QWidget * /TransferThis/ = 0,
+%If (TQt_2_00 -)
+ TQGroupBox(const TQString &,TQWidget * /TransferThis/ = 0,
const char * = 0);
- QGroupBox(int,Orientation,QWidget * /TransferThis/ = 0,
+ TQGroupBox(int,Orientation,TQWidget * /TransferThis/ = 0,
const char * = 0);
- QGroupBox(int,Orientation,const QString &,QWidget * /TransferThis/ = 0,
+ TQGroupBox(int,Orientation,const TQString &,TQWidget * /TransferThis/ = 0,
const char * = 0);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setColumnLayout(int,Orientation);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *title() const;
void setTitle(const char *);
%End
-%If (Qt_2_00 -)
- QString title() const;
- virtual void setTitle(const QString &);
+%If (TQt_2_00 -)
+ TQString title() const;
+ virtual void setTitle(const TQString &);
%End
int alignment() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setAlignment(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setAlignment(int);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
int columns() const;
void setColumns(int);
@@ -78,25 +78,25 @@ public:
void setOrientation(Orientation);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int insideMargin() const;
int insideSpacing() const;
void setInsideMargin(int);
void setInsideSpacing(int);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void addSpace(int);
%End
-%If (Qt_2_2_0 -)
- QSize sizeHint() const;
+%If (TQt_2_2_0 -)
+ TQSize sizeHint() const;
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
bool isFlat() const;
void setFlat(bool);
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
bool isCheckable() const;
void setCheckable(bool);
bool isChecked() const;
@@ -104,32 +104,32 @@ public:
%End
public slots:
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void setChecked(bool);
%End
signals:
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void toggled(bool);
%End
protected:
-%If (Qt_2_2_0 -)
- bool event(QEvent *);
+%If (TQt_2_2_0 -)
+ bool event(TQEvent *);
%End
-%If (Qt_2_00 -)
- void childEvent(QChildEvent *);
- void resizeEvent(QResizeEvent *);
+%If (TQt_2_00 -)
+ void childEvent(TQChildEvent *);
+ void resizeEvent(TQResizeEvent *);
%End
- void paintEvent(QPaintEvent *);
-%If (Qt_2_00 - Qt_3_0_0)
+ void paintEvent(TQPaintEvent *);
+%If (TQt_2_00 - TQt_3_0_0)
void updateMask();
%End
-%If (Qt_2_1_0 -)
- void focusInEvent(QFocusEvent *);
- void fontChange(const QFont &);
+%If (TQt_2_1_0 -)
+ void focusInEvent(TQFocusEvent *);
+ void fontChange(const TQFont &);
%End
private:
- QGroupBox(const QGroupBox &);
+ TQGroupBox(const TQGroupBox &);
};
diff --git a/sip/qt/qhbox.sip b/sip/qt/qhbox.sip
index 7e5b2ee..549dcdb 100644
--- a/sip/qt/qhbox.sip
+++ b/sip/qt/qhbox.sip
@@ -1,74 +1,74 @@
-// This is the SIP interface definition for QHBox.
+// This is the SIP interface definition for TQHBox.
//
// 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>QHBox (Qt v2+)</Title>
+<Sect2><Title>TQHBox (TQt v2+)</Title>
<Para>
-<Literal>QHBox</Literal> is fully implemented.
+<Literal>TQHBox</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QHBox : QFrame
+class TQHBox : TQFrame
{
%TypeHeaderCode
#include <qhbox.h>
%End
public:
-%If (- Qt_3_0_0)
- QHBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0,
+%If (- TQt_3_0_0)
+ TQHBox(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0,
bool = 1);
%End
-%If (Qt_3_0_0 -)
- QHBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+%If (TQt_3_0_0 -)
+ TQHBox(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
%End
void setSpacing(int);
-%If (Qt_2_1_0 -)
- bool setStretchFactor(QWidget *,int);
- QSize sizeHint() const;
+%If (TQt_2_1_0 -)
+ bool setStretchFactor(TQWidget *,int);
+ TQSize sizeHint() const;
%End
protected:
-%If (- Qt_3_0_0)
- QHBox(bool,QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0,
+%If (- TQt_3_0_0)
+ TQHBox(bool,TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0,
bool = 1);
%End
-%If (Qt_3_0_0 - Qt_3_2_0)
- QHBox(bool,QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+%If (TQt_3_0_0 - TQt_3_2_0)
+ TQHBox(bool,TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
%End
-%If (Qt_3_2_0 -)
- QHBox(bool,QWidget * /TransferThis/,const char *,WFlags = 0);
+%If (TQt_3_2_0 -)
+ TQHBox(bool,TQWidget * /TransferThis/,const char *,WFlags = 0);
%End
void frameChanged();
private:
-%If (Qt_3_1_0 -)
- QHBox(const QHBox &);
+%If (TQt_3_1_0 -)
+ TQHBox(const TQHBox &);
%End
};
diff --git a/sip/qt/qhbuttongroup.sip b/sip/qt/qhbuttongroup.sip
index 60cad68..3851609 100644
--- a/sip/qt/qhbuttongroup.sip
+++ b/sip/qt/qhbuttongroup.sip
@@ -1,48 +1,48 @@
-// This is the SIP interface definition for QHButtonGroup.
+// This is the SIP interface definition for TQHButtonGroup.
//
// 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>QHButtonGroup (Qt v2+)</Title>
+<Sect2><Title>TQHButtonGroup (TQt v2+)</Title>
<Para>
-<Literal>QHButtonGroup</Literal> is fully implemented.
+<Literal>TQHButtonGroup</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QHButtonGroup : QButtonGroup
+class TQHButtonGroup : TQButtonGroup
{
%TypeHeaderCode
#include <qhbuttongroup.h>
%End
public:
- QHButtonGroup(QWidget * /TransferThis/ = 0,const char * = 0);
- QHButtonGroup(const QString &,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQHButtonGroup(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQHButtonGroup(const TQString &,TQWidget * /TransferThis/ = 0,const char * = 0);
private:
- QHButtonGroup(const QHButtonGroup &);
+ TQHButtonGroup(const TQHButtonGroup &);
};
%End
diff --git a/sip/qt/qheader.sip b/sip/qt/qheader.sip
index 3030208..c921a34 100644
--- a/sip/qt/qheader.sip
+++ b/sip/qt/qheader.sip
@@ -1,45 +1,45 @@
-// This is the SIP interface definition for QHeader.
+// This is the SIP interface definition for TQHeader.
//
// 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>QHeader</Title>
+<Sect2><Title>TQHeader</Title>
<Para>
-<Literal>QHeader</Literal> is fully implemented.
+<Literal>TQHeader</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QHeader : QTableView
+class TQHeader : TQTableView
{
%TypeHeaderCode
#include <qheader.h>
%End
public:
- QHeader(QWidget * /TransferThis/ = 0,const char * = 0);
- QHeader(int,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQHeader(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQHeader(int,TQWidget * /TransferThis/ = 0,const char * = 0);
enum Orientation {
Horizontal,
@@ -62,7 +62,7 @@ public:
int cellAt(int) const;
int count() const;
int offset() const;
- QSize sizeHint() const;
+ TQSize sizeHint() const;
int mapToLogical(int) const;
int mapToActual(int) const;
@@ -75,45 +75,45 @@ signals:
void moved(int,int);
protected:
- void resizeEvent(QResizeEvent *);
- QRect sRect(int);
- void paintCell(QPainter *,int,int);
- void setupPainter(QPainter *);
+ void resizeEvent(TQResizeEvent *);
+ TQRect sRect(int);
+ void paintCell(TQPainter *,int,int);
+ void setupPainter(TQPainter *);
int cellHeight(int);
int cellWidth(int);
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
private:
- QHeader(const QHeader &);
+ TQHeader(const TQHeader &);
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QHeader : QWidget
+class TQHeader : TQWidget
{
%TypeHeaderCode
#include <qheader.h>
%End
public:
- QHeader(QWidget * /TransferThis/ = 0,const char * = 0);
- QHeader(int,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQHeader(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQHeader(int,TQWidget * /TransferThis/ = 0,const char * = 0);
- int addLabel(const QString &,int = -1);
- int addLabel(const QIconSet &,const QString &,int = -1);
-%If (Qt_2_1_0 -)
+ int addLabel(const TQString &,int = -1);
+ int addLabel(const TQIconSet &,const TQString &,int = -1);
+%If (TQt_2_1_0 -)
void removeLabel(int);
%End
- virtual void setLabel(int,const QString &,int = -1);
- virtual void setLabel(int,const QIconSet &,const QString &,int = -1);
+ virtual void setLabel(int,const TQString &,int = -1);
+ virtual void setLabel(int,const TQIconSet &,const TQString &,int = -1);
- QString label(int) const;
- QIconSet *iconSet(int) const;
+ TQString label(int) const;
+ TQIconSet *iconSet(int) const;
virtual void setOrientation(Orientation);
Orientation orientation() const;
@@ -123,32 +123,32 @@ public:
virtual void setClickEnabled(bool,int = -1);
virtual void setResizeEnabled(bool,int = -1);
virtual void setMovingEnabled(bool);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void setStretchEnabled(bool,int);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
bool isClickEnabled(int = -1) const;
bool isResizeEnabled(int = -1) const;
bool isMovingEnabled() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isStretchEnabled() const;
bool isStretchEnabled(int) const;
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void resizeSection(int,int);
int sectionSize(int) const;
int sectionPos(int) const;
int sectionAt(int) const;
%End
int count() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int headerWidth() const;
- QRect sectionRect(int) const;
+ TQRect sectionRect(int) const;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual void setCellSize(int,int);
int cellSize(int) const;
int cellPos(int) const;
@@ -157,28 +157,28 @@ public:
int offset() const;
- QSize sizeHint() const;
-%If (- Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+ TQSize sizeHint() const;
+%If (- TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
int mapToSection(int) const;
int mapToIndex(int) const;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int mapToLogical(int) const;
int mapToActual(int) const;
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void moveSection(int,int);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual void moveCell(int,int);
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
// This is placed before the obsolete version below so that it has
// precedence. It may still cause problems with old code until SIP
// distinguishes between bools and enums.
@@ -186,83 +186,83 @@ public:
int sortIndicatorSection() const;
SortOrder sortIndicatorOrder() const;
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
// Obsolete.
void setSortIndicator(int,bool = 1);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void adjustHeaderSize();
%End
public slots:
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
void setUpdatesEnabled(bool);
%End
virtual void setOffset(int);
signals:
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void clicked(int);
void pressed(int);
void released(int);
%End
void sizeChange(int,int,int);
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void indexChange(int,int,int);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
void sectionClicked(int);
void moved(int,int);
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void sectionHandleDoubleClicked(int);
%End
protected:
-%If (Qt_2_1_0 -)
- void paintEvent(QPaintEvent *);
+%If (TQt_2_1_0 -)
+ void paintEvent(TQPaintEvent *);
%End
-%If (Qt_2_2_0 -)
- void showEvent(QShowEvent *);
+%If (TQt_2_2_0 -)
+ void showEvent(TQShowEvent *);
%End
-%If (- Qt_2_1_0)
- void resizeEvent(QResizeEvent *);
+%If (- TQt_2_1_0)
+ void resizeEvent(TQResizeEvent *);
%End
-%If (Qt_3_0_0 -)
- void resizeEvent(QResizeEvent *);
+%If (TQt_3_0_0 -)
+ void resizeEvent(TQResizeEvent *);
%End
- QRect sRect(int);
+ TQRect sRect(int);
-%If (- Qt_3_0_0)
- void paintSection(QPainter *,int,QRect);
+%If (- TQt_3_0_0)
+ void paintSection(TQPainter *,int,TQRect);
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
- void paintSectionLabel(QPainter *,int,const QRect &);
+%If (TQt_2_1_0 - TQt_3_0_0)
+ void paintSectionLabel(TQPainter *,int,const TQRect &);
%End
-%If (Qt_3_0_0 -)
- virtual void paintSection(QPainter *,int,const QRect &);
- virtual void paintSectionLabel(QPainter *,int,const QRect &);
+%If (TQt_3_0_0 -)
+ virtual void paintSection(TQPainter *,int,const TQRect &);
+ virtual void paintSectionLabel(TQPainter *,int,const TQRect &);
%End
-%If (Qt_3_1_0 -)
- void fontChange(const QFont &);
+%If (TQt_3_1_0 -)
+ void fontChange(const TQFont &);
%End
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
-%If (Qt_3_2_0 -)
- void mouseDoubleClickEvent(QMouseEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+%If (TQt_3_2_0 -)
+ void mouseDoubleClickEvent(TQMouseEvent *);
%End
-%If (Qt_3_1_0 -)
- void keyPressEvent(QKeyEvent *);
- void keyReleaseEvent(QKeyEvent *);
+%If (TQt_3_1_0 -)
+ void keyPressEvent(TQKeyEvent *);
+ void keyReleaseEvent(TQKeyEvent *);
%End
private:
- QHeader(const QHeader &);
+ TQHeader(const TQHeader &);
};
%End
diff --git a/sip/qt/qhgroupbox.sip b/sip/qt/qhgroupbox.sip
index c12059a..cfbdb3b 100644
--- a/sip/qt/qhgroupbox.sip
+++ b/sip/qt/qhgroupbox.sip
@@ -1,48 +1,48 @@
-// This is the SIP interface definition for QHGroupBox.
+// This is the SIP interface definition for TQHGroupBox.
//
// 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>QHGroupBox (Qt v2+)</Title>
+<Sect2><Title>TQHGroupBox (TQt v2+)</Title>
<Para>
-<Literal>QHGroupBox</Literal> is fully implemented.
+<Literal>TQHGroupBox</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QHGroupBox : QGroupBox
+class TQHGroupBox : TQGroupBox
{
%TypeHeaderCode
#include <qhgroupbox.h>
%End
public:
- QHGroupBox(QWidget * /TransferThis/ = 0,const char * = 0);
- QHGroupBox(const QString &,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQHGroupBox(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQHGroupBox(const TQString &,TQWidget * /TransferThis/ = 0,const char * = 0);
private:
- QHGroupBox(const QHGroupBox &);
+ TQHGroupBox(const TQHGroupBox &);
};
%End
diff --git a/sip/qt/qiconset.sip b/sip/qt/qiconset.sip
index 4a55058..3dd2f3a 100644
--- a/sip/qt/qiconset.sip
+++ b/sip/qt/qiconset.sip
@@ -1,41 +1,41 @@
-// This is the SIP interface definition for QIconSet and QIconFactory.
+// This is the SIP interface definition for TQIconSet and TQIconFactory.
//
// 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>QIconSet</Title>
+<Sect2><Title>TQIconSet</Title>
<Para>
-<Literal>QIconSet</Literal> is fully implemented.
+<Literal>TQIconSet</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIconFactory (Qt v3.1+)</Title>
+<Sect2><Title>TQIconFactory (TQt v3.1+)</Title>
<Para>
-<Literal>QIconFactory</Literal> is fully implemented.
+<Literal>TQIconFactory</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QIconSet
+class TQIconSet
{
%TypeHeaderCode
#include <qiconset.h>
@@ -54,93 +54,93 @@ public:
Active
};
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum State {
On,
Off
};
%End
-%If (Qt_2_1_0 -)
- QIconSet();
+%If (TQt_2_1_0 -)
+ TQIconSet();
%End
- QIconSet(const QPixmap &,Size = Automatic);
-%If (Qt_2_2_0 -)
- QIconSet(const QPixmap &,const QPixmap &);
+ TQIconSet(const TQPixmap &,Size = Automatic);
+%If (TQt_2_2_0 -)
+ TQIconSet(const TQPixmap &,const TQPixmap &);
%End
- QIconSet(const QIconSet &);
+ TQIconSet(const TQIconSet &);
- void reset(const QPixmap &,Size);
+ void reset(const TQPixmap &,Size);
-%If (- Qt_2_00)
- void setPixmap(const QPixmap &,Size,Mode = Normal);
+%If (- TQt_2_00)
+ void setPixmap(const TQPixmap &,Size,Mode = Normal);
void setPixmap(const char *,Size,Mode = Normal);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- virtual void setPixmap(const QPixmap &,Size,Mode = Normal);
- virtual void setPixmap(const QString &,Size,Mode = Normal);
+%If (TQt_2_00 - TQt_3_0_0)
+ virtual void setPixmap(const TQPixmap &,Size,Mode = Normal);
+ virtual void setPixmap(const TQString &,Size,Mode = Normal);
%End
-%If (Qt_3_0_0 -)
- virtual void setPixmap(const QPixmap &,Size,Mode = Normal,State = Off);
- virtual void setPixmap(const QString &,Size,Mode = Normal,State = Off);
+%If (TQt_3_0_0 -)
+ virtual void setPixmap(const TQPixmap &,Size,Mode = Normal,State = Off);
+ virtual void setPixmap(const TQString &,Size,Mode = Normal,State = Off);
%End
-%If (- Qt_3_0_0)
- QPixmap pixmap(Size,Mode) const;
-%If (Qt_2_1_0 -)
-// QPixmap pixmap(Size,bool) const;
+%If (- TQt_3_0_0)
+ TQPixmap pixmap(Size,Mode) const;
+%If (TQt_2_1_0 -)
+// TQPixmap pixmap(Size,bool) const;
%End
%End
-%If (Qt_3_0_0 -)
- QPixmap pixmap(Size,Mode,State = Off) const;
-// QPixmap pixmap(Size,bool,State = Off) const;
+%If (TQt_3_0_0 -)
+ TQPixmap pixmap(Size,Mode,State = Off) const;
+// TQPixmap pixmap(Size,bool,State = Off) const;
%End
- QPixmap pixmap() const;
-%If (- Qt_3_0_0)
+ TQPixmap pixmap() const;
+%If (- TQt_3_0_0)
bool isGenerated(Size,Mode) const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isGenerated(Size,Mode,State = Off) const;
void clearGenerated();
%End
-%If (Qt_3_1_0 -)
- void installIconFactory(QIconFactory *);
+%If (TQt_3_1_0 -)
+ void installIconFactory(TQIconFactory *);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
bool isNull() const;
%End
void detach();
-%If (Qt_3_0_0 -)
- static void setIconSize(Size,const QSize &);
- static const QSize &iconSize(Size);
+%If (TQt_3_0_0 -)
+ static void setIconSize(Size,const TQSize &);
+ static const TQSize &iconSize(Size);
%End
};
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
-class QIconFactory
+class TQIconFactory
{
%TypeHeaderCode
#include <qiconset.h>
%End
public:
- QIconFactory();
+ TQIconFactory();
- virtual QPixmap *createPixmap(const QIconSet &,QIconSet::Size,
- QIconSet::Mode,
- QIconSet::State) /Factory/;
+ virtual TQPixmap *createPixmap(const TQIconSet &,TQIconSet::Size,
+ TQIconSet::Mode,
+ TQIconSet::State) /Factory/;
void setAutoDelete(bool);
bool autoDelete() const;
- static QIconFactory *defaultFactory();
- static void installDefaultFactory(QIconFactory * /Transfer/);
+ static TQIconFactory *defaultFactory();
+ static void installDefaultFactory(TQIconFactory * /Transfer/);
private:
- QIconFactory(const QIconFactory &);
+ TQIconFactory(const TQIconFactory &);
};
%End
diff --git a/sip/qt/qiconview.sip b/sip/qt/qiconview.sip
index 122d2ec..bdc3bcb 100644
--- a/sip/qt/qiconview.sip
+++ b/sip/qt/qiconview.sip
@@ -1,31 +1,31 @@
-// This is the SIP interface definition for QIconView, QIconViewItem, QIconDrag
-// and QIconDragItem.
+// This is the SIP interface definition for TQIconView, TQIconViewItem, TQIconDrag
+// and TQIconDragItem.
//
// 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>QIconView (Qt v2.1+)</Title>
+<Sect2><Title>TQIconView (TQt v2.1+)</Title>
<FuncSynopsis>
- <FuncDef>QIconViewItem *<Function>makeRowLayout</Function></FuncDef>
- <ParamDef>QIconViewItem *<Parameter>begin</Parameter></ParamDef>
+ <FuncDef>TQIconViewItem *<Function>makeRowLayout</Function></FuncDef>
+ <ParamDef>TQIconViewItem *<Parameter>begin</Parameter></ParamDef>
<ParamDef>int &<Parameter>y</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -33,110 +33,110 @@ Not yet implemented.
</Para>
</Sect2>
-<Sect2><Title>QIconViewItem (Qt v2.1+)</Title>
+<Sect2><Title>TQIconViewItem (TQt v2.1+)</Title>
<Para>
-<Literal>QIconViewItem</Literal> is fully implemented.
+<Literal>TQIconViewItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIconDrag (Qt v2.1+)</Title>
+<Sect2><Title>TQIconDrag (TQt v2.1+)</Title>
<Para>
-<Literal>QIconDrag</Literal> is fully implemented.
+<Literal>TQIconDrag</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QIconDragItem (Qt v2.1+)</Title>
+<Sect2><Title>TQIconDragItem (TQt v2.1+)</Title>
<Para>
-<Literal>QIconDragItem</Literal> is fully implemented.
+<Literal>TQIconDragItem</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_ICONVIEW)
-%If (Qt_2_1_0 -)
+%If (TQt_ICONVIEW)
+%If (TQt_2_1_0 -)
-%If (Qt_DRAGANDDROP)
+%If (TQt_DRAGANDDROP)
-class QIconDragItem
+class TQIconDragItem
{
%TypeHeaderCode
#include <qiconview.h>
%End
public:
- QIconDragItem();
+ TQIconDragItem();
- virtual QByteArray data() const;
- virtual void setData(const QByteArray &);
+ virtual TQByteArray data() const;
+ virtual void setData(const TQByteArray &);
};
-class QIconDrag : QDragObject
+class TQIconDrag : TQDragObject
{
%TypeHeaderCode
#include <qiconview.h>
%End
public:
- QIconDrag(QWidget * /TransferThis/,const char * = 0);
+ TQIconDrag(TQWidget * /TransferThis/,const char * = 0);
- void append(const QIconDragItem &,const QRect &,const QRect &);
+ void append(const TQIconDragItem &,const TQRect &,const TQRect &);
virtual const char* format(int) const;
- static bool canDecode(QMimeSource *);
- virtual QByteArray encodedData(const char *) const;
+ static bool canDecode(TQMimeSource *);
+ virtual TQByteArray encodedData(const char *) const;
private:
-%If (Qt_3_1_0 -)
- QIconDrag(const QIconDrag &);
+%If (TQt_3_1_0 -)
+ TQIconDrag(const TQIconDrag &);
%End
};
%End
-class QIconViewItem : Qt
+class TQIconViewItem : TQt
{
%TypeHeaderCode
#include <qiconview.h>
%End
public:
- QIconViewItem(QIconView * /TransferThis/);
- QIconViewItem(QIconView * /TransferThis/,QIconViewItem *);
- QIconViewItem(QIconView * /TransferThis/,const QString &);
- QIconViewItem(QIconView * /TransferThis/,QIconViewItem *,
- const QString &);
- QIconViewItem(QIconView * /TransferThis/,const QString &,
- const QPixmap &);
- QIconViewItem(QIconView * /TransferThis/,QIconViewItem *,
- const QString &,const QPixmap &);
-%If (Qt_3_0_0 -)
- QIconViewItem(QIconView * /TransferThis/,const QString &,
- const QPicture &);
- QIconViewItem(QIconView * /TransferThis/,QIconViewItem *,
- const QString &,const QPicture &);
+ TQIconViewItem(TQIconView * /TransferThis/);
+ TQIconViewItem(TQIconView * /TransferThis/,TQIconViewItem *);
+ TQIconViewItem(TQIconView * /TransferThis/,const TQString &);
+ TQIconViewItem(TQIconView * /TransferThis/,TQIconViewItem *,
+ const TQString &);
+ TQIconViewItem(TQIconView * /TransferThis/,const TQString &,
+ const TQPixmap &);
+ TQIconViewItem(TQIconView * /TransferThis/,TQIconViewItem *,
+ const TQString &,const TQPixmap &);
+%If (TQt_3_0_0 -)
+ TQIconViewItem(TQIconView * /TransferThis/,const TQString &,
+ const TQPicture &);
+ TQIconViewItem(TQIconView * /TransferThis/,TQIconViewItem *,
+ const TQString &,const TQPicture &);
%End
virtual void setRenameEnabled(bool);
virtual void setDragEnabled(bool);
virtual void setDropEnabled(bool);
- virtual QString text() const;
- virtual QPixmap *pixmap() const;
-%If (Qt_3_0_0 -)
- virtual QPicture *picture() const;
+ virtual TQString text() const;
+ virtual TQPixmap *pixmap() const;
+%If (TQt_3_0_0 -)
+ virtual TQPicture *picture() const;
%End
- virtual QString key() const;
+ virtual TQString key() const;
bool renameEnabled() const;
bool dragEnabled() const;
bool dropEnabled() const;
- QIconView *iconView() const;
- QIconViewItem *prevItem() const;
- QIconViewItem *nextItem() const;
+ TQIconView *iconView() const;
+ TQIconViewItem *prevItem() const;
+ TQIconViewItem *nextItem() const;
int index() const;
@@ -149,79 +149,79 @@ public:
virtual void repaint();
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual void move(int,int);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual bool move(int,int);
%End
virtual void moveBy(int,int);
-%If (- Qt_3_0_0)
- virtual void move(const QPoint &);
+%If (- TQt_3_0_0)
+ virtual void move(const TQPoint &);
%End
-%If (Qt_3_0_0 -)
- virtual bool move(const QPoint &);
+%If (TQt_3_0_0 -)
+ virtual bool move(const TQPoint &);
%End
- virtual void moveBy(const QPoint &);
+ virtual void moveBy(const TQPoint &);
- QRect rect() const;
+ TQRect rect() const;
int x() const;
int y() const;
int width() const;
int height() const;
- QSize size() const;
- QPoint pos() const;
- QRect textRect(bool = 1) const;
- QRect pixmapRect(bool = 1) const;
-%If (- Qt_3_0_0)
- bool contains(QPoint) const;
- bool intersects(QRect) const;
+ TQSize size() const;
+ TQPoint pos() const;
+ TQRect textRect(bool = 1) const;
+ TQRect pixmapRect(bool = 1) const;
+%If (- TQt_3_0_0)
+ bool contains(TQPoint) const;
+ bool intersects(TQRect) const;
%End
-%If (Qt_3_0_0 -)
- bool contains(const QPoint &) const;
- bool intersects(const QRect &) const;
+%If (TQt_3_0_0 -)
+ bool contains(const TQPoint &) const;
+ bool intersects(const TQRect &) const;
%End
- virtual bool acceptDrop(const QMimeSource *) const;
+ virtual bool acceptDrop(const TQMimeSource *) const;
void rename();
- virtual int compare(QIconViewItem *) const;
+ virtual int compare(TQIconViewItem *) const;
- virtual void setText(const QString &);
- virtual void setPixmap(const QPixmap &);
-%If (Qt_3_0_0 -)
- virtual void setPicture(const QPicture &);
+ virtual void setText(const TQString &);
+ virtual void setPixmap(const TQPixmap &);
+%If (TQt_3_0_0 -)
+ virtual void setPicture(const TQPicture &);
%End
- virtual void setText(const QString &,bool,bool = 1);
- virtual void setPixmap(const QPixmap &,bool,bool = 1);
- virtual void setKey(const QString &);
+ virtual void setText(const TQString &,bool,bool = 1);
+ virtual void setPixmap(const TQPixmap &,bool,bool = 1);
+ virtual void setKey(const TQString &);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual int rtti() const;
%End
protected:
virtual void removeRenameBox();
- virtual void calcRect(const QString & = QString::null);
- virtual void paintItem(QPainter *,const QColorGroup &);
- virtual void paintFocus(QPainter *,const QColorGroup &);
-%If (Qt_DRAGANDDROP)
- virtual void dropped(QDropEvent *,const QValueList<QIconDragItem> &);
+ virtual void calcRect(const TQString & = TQString::null);
+ virtual void paintItem(TQPainter *,const TQColorGroup &);
+ virtual void paintFocus(TQPainter *,const TQColorGroup &);
+%If (TQt_DRAGANDDROP)
+ virtual void dropped(TQDropEvent *,const TQValueList<TQIconDragItem> &);
%End
virtual void dragEntered();
virtual void dragLeft();
- void setItemRect(const QRect &);
- void setTextRect(const QRect &);
- void setPixmapRect(const QRect &);
+ void setItemRect(const TQRect &);
+ void setTextRect(const TQRect &);
+ void setPixmapRect(const TQRect &);
void calcTmpText();
-%If (Qt_3_1_0 -)
- QString tempText() const;
+%If (TQt_3_1_0 -)
+ TQString tempText() const;
%End
};
-class QIconView : QScrollView
+class TQIconView : TQScrollView
{
%TypeHeaderCode
#include <qiconview.h>
@@ -250,46 +250,46 @@ public:
Right
};
- QIconView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+ TQIconView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
- virtual void insertItem(QIconViewItem *,QIconViewItem * = 0);
- virtual void takeItem(QIconViewItem *);
+ virtual void insertItem(TQIconViewItem *,TQIconViewItem * = 0);
+ virtual void takeItem(TQIconViewItem *);
- int index(const QIconViewItem *) const;
+ int index(const TQIconViewItem *) const;
- QIconViewItem *firstItem() const;
- QIconViewItem *lastItem() const;
- QIconViewItem *currentItem() const;
- virtual void setCurrentItem(QIconViewItem *);
- virtual void setSelected(QIconViewItem *,bool,bool = 0);
+ TQIconViewItem *firstItem() const;
+ TQIconViewItem *lastItem() const;
+ TQIconViewItem *currentItem() const;
+ virtual void setCurrentItem(TQIconViewItem *);
+ virtual void setSelected(TQIconViewItem *,bool,bool = 0);
uint count() const;
- virtual void showEvent(QShowEvent *);
+ virtual void showEvent(TQShowEvent *);
virtual void setSelectionMode(SelectionMode);
SelectionMode selectionMode() const;
- QIconViewItem *findItem(const QPoint &) const;
-%If (- Qt_3_0_0)
- QIconViewItem *findItem(const QString &) const;
+ TQIconViewItem *findItem(const TQPoint &) const;
+%If (- TQt_3_0_0)
+ TQIconViewItem *findItem(const TQString &) const;
%End
-%If (Qt_3_0_0 -)
- QIconViewItem *findItem(const QString &,
+%If (TQt_3_0_0 -)
+ TQIconViewItem *findItem(const TQString &,
ComparisonFlags = BeginsWith) const;
%End
virtual void selectAll(bool);
virtual void clearSelection();
virtual void invertSelection();
- virtual void repaintItem(QIconViewItem *);
-%If (Qt_3_1_0 -)
+ virtual void repaintItem(TQIconViewItem *);
+%If (TQt_3_1_0 -)
void repaintSelectedItems();
%End
- void ensureItemVisible(QIconViewItem *);
- QIconViewItem* findFirstVisibleItem(const QRect &) const;
- QIconViewItem* findLastVisibleItem(const QRect &) const;
+ void ensureItemVisible(TQIconViewItem *);
+ TQIconViewItem* findFirstVisibleItem(const TQRect &) const;
+ TQIconViewItem* findLastVisibleItem(const TQRect &) const;
virtual void clear();
@@ -301,8 +301,8 @@ public:
int spacing() const;
virtual void setItemTextPos(ItemTextPos);
ItemTextPos itemTextPos() const;
- virtual void setItemTextBackground(const QBrush &);
- QBrush itemTextBackground() const;
+ virtual void setItemTextBackground(const TQBrush &);
+ TQBrush itemTextBackground() const;
virtual void setArrangement(Arrangement);
Arrangement arrangement() const;
virtual void setResizeMode(ResizeMode);
@@ -325,55 +325,55 @@ public:
virtual void setWordWrapIconText(bool);
bool wordWrapIconText() const;
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
- QSize minimumSizeHint() const;
-%If (- Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+ TQSize minimumSizeHint() const;
+%If (- TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
- QSize sizeHint() const;
+ TQSize sizeHint() const;
virtual void sort(bool = 1);
- virtual void setFont(const QFont &);
- virtual void setPalette(const QPalette &);
+ virtual void setFont(const TQFont &);
+ virtual void setPalette(const TQPalette &);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isRenaming() const;
%End
public slots:
- virtual void arrangeItemsInGrid(const QSize &,bool = 1);
+ virtual void arrangeItemsInGrid(const TQSize &,bool = 1);
virtual void arrangeItemsInGrid(bool = 1);
virtual void setContentsPos(int,int);
virtual void updateContents();
signals:
void selectionChanged();
- void selectionChanged(QIconViewItem *);
- void currentChanged(QIconViewItem *);
- void clicked(QIconViewItem *);
- void clicked(QIconViewItem *,const QPoint &);
- void pressed(QIconViewItem *);
- void pressed(QIconViewItem *,const QPoint &);
-
- void doubleClicked(QIconViewItem *);
- void returnPressed(QIconViewItem *);
- void rightButtonClicked(QIconViewItem *,const QPoint &);
- void rightButtonPressed(QIconViewItem *,const QPoint &);
- void mouseButtonPressed(int,QIconViewItem *,const QPoint &);
- void mouseButtonClicked(int,QIconViewItem *,const QPoint &);
-%If (Qt_3_0_0 -)
- void contextMenuRequested(QIconViewItem *,const QPoint &);
-%End
-%If (Qt_DRAGANDDROP)
- void dropped(QDropEvent *,const QValueList<QIconDragItem> &);
+ void selectionChanged(TQIconViewItem *);
+ void currentChanged(TQIconViewItem *);
+ void clicked(TQIconViewItem *);
+ void clicked(TQIconViewItem *,const TQPoint &);
+ void pressed(TQIconViewItem *);
+ void pressed(TQIconViewItem *,const TQPoint &);
+
+ void doubleClicked(TQIconViewItem *);
+ void returnPressed(TQIconViewItem *);
+ void rightButtonClicked(TQIconViewItem *,const TQPoint &);
+ void rightButtonPressed(TQIconViewItem *,const TQPoint &);
+ void mouseButtonPressed(int,TQIconViewItem *,const TQPoint &);
+ void mouseButtonClicked(int,TQIconViewItem *,const TQPoint &);
+%If (TQt_3_0_0 -)
+ void contextMenuRequested(TQIconViewItem *,const TQPoint &);
+%End
+%If (TQt_DRAGANDDROP)
+ void dropped(TQDropEvent *,const TQValueList<TQIconDragItem> &);
%End
void moved();
- void onItem(QIconViewItem *);
+ void onItem(TQIconViewItem *);
void onViewport();
- void itemRenamed(QIconViewItem *,const QString &);
- void itemRenamed(QIconViewItem *);
+ void itemRenamed(TQIconViewItem *,const TQString &);
+ void itemRenamed(TQIconViewItem *);
protected slots:
virtual void doAutoScroll();
@@ -381,76 +381,76 @@ protected slots:
virtual void slotUpdate();
protected:
-%If (- Qt_3_0_0)
- virtual void drawContents(QPainter *,int,int,int,int);
- virtual void contentsMousePressEvent(QMouseEvent *);
- virtual void contentsMouseReleaseEvent(QMouseEvent *);
- virtual void contentsMouseMoveEvent(QMouseEvent *);
- virtual void contentsMouseDoubleClickEvent(QMouseEvent *);
-%End
-%If (Qt_3_0_0 -)
- void drawContents(QPainter *,int,int,int,int);
- void contentsMousePressEvent(QMouseEvent *);
- void contentsMouseReleaseEvent(QMouseEvent *);
- void contentsMouseMoveEvent(QMouseEvent *);
- void contentsMouseDoubleClickEvent(QMouseEvent *);
- void contentsContextMenuEvent(QContextMenuEvent *);
-%End
-
-%If (- Qt_3_0_0)
-%If (Qt_DRAGANDDROP)
- virtual void contentsDragEnterEvent(QDragEnterEvent *);
- virtual void contentsDragMoveEvent(QDragMoveEvent *);
- virtual void contentsDragLeaveEvent(QDragLeaveEvent *);
- virtual void contentsDropEvent(QDropEvent *);
-%End
-
- virtual void resizeEvent(QResizeEvent *);
- virtual void keyPressEvent(QKeyEvent *);
- virtual void focusInEvent(QFocusEvent *);
- virtual void focusOutEvent(QFocusEvent *);
- virtual void enterEvent(QEvent *);
-%End
-%If (Qt_3_0_0 -)
-%If (Qt_DRAGANDDROP)
- void contentsDragEnterEvent(QDragEnterEvent *);
- void contentsDragMoveEvent(QDragMoveEvent *);
- void contentsDragLeaveEvent(QDragLeaveEvent *);
- void contentsDropEvent(QDropEvent *);
-%End
-
- void resizeEvent(QResizeEvent *);
- void keyPressEvent(QKeyEvent *);
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
- void enterEvent(QEvent *);
-%End
-
- virtual void drawRubber(QPainter *);
-%If (Qt_DRAGANDDROP)
- virtual QDragObject *dragObject();
+%If (- TQt_3_0_0)
+ virtual void drawContents(TQPainter *,int,int,int,int);
+ virtual void contentsMousePressEvent(TQMouseEvent *);
+ virtual void contentsMouseReleaseEvent(TQMouseEvent *);
+ virtual void contentsMouseMoveEvent(TQMouseEvent *);
+ virtual void contentsMouseDoubleClickEvent(TQMouseEvent *);
+%End
+%If (TQt_3_0_0 -)
+ void drawContents(TQPainter *,int,int,int,int);
+ void contentsMousePressEvent(TQMouseEvent *);
+ void contentsMouseReleaseEvent(TQMouseEvent *);
+ void contentsMouseMoveEvent(TQMouseEvent *);
+ void contentsMouseDoubleClickEvent(TQMouseEvent *);
+ void contentsContextMenuEvent(TQContextMenuEvent *);
+%End
+
+%If (- TQt_3_0_0)
+%If (TQt_DRAGANDDROP)
+ virtual void contentsDragEnterEvent(TQDragEnterEvent *);
+ virtual void contentsDragMoveEvent(TQDragMoveEvent *);
+ virtual void contentsDragLeaveEvent(TQDragLeaveEvent *);
+ virtual void contentsDropEvent(TQDropEvent *);
+%End
+
+ virtual void resizeEvent(TQResizeEvent *);
+ virtual void keyPressEvent(TQKeyEvent *);
+ virtual void focusInEvent(TQFocusEvent *);
+ virtual void focusOutEvent(TQFocusEvent *);
+ virtual void enterEvent(TQEvent *);
+%End
+%If (TQt_3_0_0 -)
+%If (TQt_DRAGANDDROP)
+ void contentsDragEnterEvent(TQDragEnterEvent *);
+ void contentsDragMoveEvent(TQDragMoveEvent *);
+ void contentsDragLeaveEvent(TQDragLeaveEvent *);
+ void contentsDropEvent(TQDropEvent *);
+%End
+
+ void resizeEvent(TQResizeEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
+ void enterEvent(TQEvent *);
+%End
+
+ virtual void drawRubber(TQPainter *);
+%If (TQt_DRAGANDDROP)
+ virtual TQDragObject *dragObject();
virtual void startDrag();
%End
- virtual void insertInGrid(QIconViewItem *);
- virtual void drawBackground(QPainter *,const QRect &);
+ virtual void insertInGrid(TQIconViewItem *);
+ virtual void drawBackground(TQPainter *,const TQRect &);
- void emitSelectionChanged(QIconViewItem * = 0);
- void emitRenamed(QIconViewItem *);
+ void emitSelectionChanged(TQIconViewItem * = 0);
+ void emitRenamed(TQIconViewItem *);
-%If (- Qt_3_0_0)
-// QIconViewItem *makeRowLayout(QIconViewItem *,int &);
+%If (- TQt_3_0_0)
+// TQIconViewItem *makeRowLayout(TQIconViewItem *,int &);
%End
-%If (Qt_3_0_0 -)
-// QIconViewItem *makeRowLayout(QIconViewItem *,int &,bool &);
+%If (TQt_3_0_0 -)
+// TQIconViewItem *makeRowLayout(TQIconViewItem *,int &,bool &);
%End
- void styleChange(QStyle &);
-%If (Qt_3_0_0 -)
+ void styleChange(TQStyle &);
+%If (TQt_3_0_0 -)
void windowActivationChange(bool);
%End
private:
- QIconView(const QIconView &);
+ TQIconView(const TQIconView &);
};
%End
diff --git a/sip/qt/qimage.sip b/sip/qt/qimage.sip
index 5c9b0bb..7431f4d 100644
--- a/sip/qt/qimage.sip
+++ b/sip/qt/qimage.sip
@@ -1,35 +1,35 @@
-// This is the SIP interface definition for QImage, QImageIO and
-// QImageTextKeyLang.
+// This is the SIP interface definition for TQImage, TQImageIO and
+// TQImageTextKeyLang.
//
// 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>QImage</Title>
+<Sect2><Title>TQImage</Title>
<Para>
The Python <Literal>==</Literal> and <Literal>!=</Literal> operators are
supported.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QImage</Function></FuncDef>
+ <FuncDef><Function>TQImage</Function></FuncDef>
<ParamDef>const char *<Parameter>xpm</Parameter>[]</ParamDef>
</FuncSynopsis>
<Para>
@@ -37,18 +37,18 @@ This takes a list of strings as its parameter.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QImage</Function></FuncDef>
+ <FuncDef><Function>TQImage</Function></FuncDef>
<ParamDef>uchar *<Parameter>data</Parameter></ParamDef>
<ParamDef>int <Parameter>w</Parameter></ParamDef>
<ParamDef>int <Parameter>h</Parameter></ParamDef>
<ParamDef>int <Parameter>depth</Parameter></ParamDef>
- <ParamDef>QRgb *<Parameter>colorTable</Parameter></ParamDef>
+ <ParamDef>TQRgb *<Parameter>colorTable</Parameter></ParamDef>
<ParamDef>int <Parameter>numColors</Parameter></ParamDef>
<ParamDef>Endian <Parameter>bitOrder</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-The <Literal>colorTable</Literal> parameter is a list of QRgb instances or
-None. (Qt v2.1+)
+The <Literal>colorTable</Literal> parameter is a list of TQRgb instances or
+None. (TQt v2.1+)
</Para>
<FuncSynopsis>
@@ -61,7 +61,7 @@ useful if passed to another Python module.
</Para>
<FuncSynopsis>
- <FuncDef>QRgb *<Function>colorTable</Function></FuncDef>
+ <FuncDef>TQRgb *<Function>colorTable</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -70,9 +70,9 @@ useful if passed to another Python module.
</Para>
<FuncSynopsis>
- <FuncDef>QImage <Function>convertDepthWithPalette</Function></FuncDef>
+ <FuncDef>TQImage <Function>convertDepthWithPalette</Function></FuncDef>
<ParamDef>int</ParamDef>
- <ParamDef>QRgb *<Parameter>p</Parameter></ParamDef>
+ <ParamDef>TQRgb *<Parameter>p</Parameter></ParamDef>
<ParamDef>int <Parameter>pc</Parameter></ParamDef>
<ParamDef>int <Parameter>cf</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -111,7 +111,7 @@ useful if passed to another Python module.
</Para>
</Sect2>
-<Sect2><Title>QImageIO</Title>
+<Sect2><Title>TQImageIO</Title>
<FuncSynopsis>
<FuncDef>static void <Function>defineIOHandler</Function></FuncDef>
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
@@ -125,15 +125,15 @@ Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QImageTextKeyLang</Title>
+<Sect2><Title>TQImageTextKeyLang</Title>
<Para>
-<Literal>QImageTextKeyLang</Literal> is fully implemented.
+<Literal>TQImageTextKeyLang</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QImage
+class TQImage
{
%TypeHeaderCode
#include <qimage.h>
@@ -146,47 +146,47 @@ public:
LittleEndian
};
- QImage();
- QImage(int,int,int,int = 0,Endian = IgnoreEndian);
- QImage(const QSize &,int,int = 0,Endian = IgnoreEndian);
-%If (- Qt_2_00)
- QImage(const char *,char * = 0);
+ TQImage();
+ TQImage(int,int,int,int = 0,Endian = IgnoreEndian);
+ TQImage(const TQSize &,int,int = 0,Endian = IgnoreEndian);
+%If (- TQt_2_00)
+ TQImage(const char *,char * = 0);
%End
-%If (Qt_2_00 -)
- QImage(const QString &,char * = 0);
+%If (TQt_2_00 -)
+ TQImage(const TQString &,char * = 0);
%End
- QImage(SIP_PYLIST) [(const char **)];
+ TQImage(SIP_PYLIST) [(const char **)];
%MethodCode
// The Python interface is a list of strings that make up the
// image.
const char **str;
- if ((str = PyQt_qt_ListToArray(a0)) == NULL)
+ if ((str = PyTQt_qt_ListToArray(a0)) == NULL)
sipIsErr = 1;
else
{
- // There is no wrapper class for QImage.
+ // There is no wrapper class for TQImage.
Py_BEGIN_ALLOW_THREADS
- sipCpp = new QImage(str);
+ sipCpp = new TQImage(str);
Py_END_ALLOW_THREADS
sipFree((ANY *)str);
}
%End
-%If (Qt_2_00 -)
- QImage(const QByteArray &);
+%If (TQt_2_00 -)
+ TQImage(const TQByteArray &);
%End
-%If (Qt_2_1_0 -)
- QImage(uchar *,int,int,int,SIP_PYLIST /AllowNone/,int,Endian) [(uchar *,int,int,int,int,QRgb *,int,Endian)];
+%If (TQt_2_1_0 -)
+ TQImage(uchar *,int,int,int,SIP_PYLIST /AllowNone/,int,Endian) [(uchar *,int,int,int,int,TQRgb *,int,Endian)];
%MethodCode
- // The Python interface takes a list of QRgb instances.
+ // The Python interface takes a list of TQRgb instances.
- QRgb *coltab;
+ TQRgb *coltab;
if (a4 == Py_None)
coltab = 0;
@@ -197,7 +197,7 @@ public:
if (a5 > len)
a5 = len;
- coltab = new QRgb[len];
+ coltab = new TQRgb[len];
PyErr_Clear();
@@ -216,14 +216,14 @@ public:
if (!sipIsErr)
{
- // There is no wrapper class for QImage.
+ // There is no wrapper class for TQImage.
Py_BEGIN_ALLOW_THREADS
- sipCpp = new QImage(a0,a1,a2,a3,0,a5,(QImage::Endian)a6);
+ sipCpp = new TQImage(a0,a1,a2,a3,0,a5,(TQImage::Endian)a6);
if (coltab)
{
- // Now set the colours using the QImage's self
+ // Now set the colours using the TQImage's self
// allocated colour table. If we had passed in
// coltab as the colour table then we couldn't
// have freed it and it would leak.
@@ -237,35 +237,35 @@ public:
%End
%End
- QImage(const QImage &);
+ TQImage(const TQImage &);
- bool operator==(const QImage &) const;
- bool operator!=(const QImage &) const;
+ bool operator==(const TQImage &) const;
+ bool operator!=(const TQImage &) const;
void detach();
- QImage copy() const;
- QImage copy(int,int,int,int,int = 0) const;
-%If (- Qt_3_0_0)
- QImage copy(QRect &) const;
+ TQImage copy() const;
+ TQImage copy(int,int,int,int,int = 0) const;
+%If (- TQt_3_0_0)
+ TQImage copy(TQRect &) const;
%End
-%If (Qt_3_0_0 -)
- QImage copy(const QRect &) const;
+%If (TQt_3_0_0 -)
+ TQImage copy(const TQRect &) const;
%End
-%If (Qt_3_1_0 -)
- static QImage fromMimeSource(const QString &);
+%If (TQt_3_1_0 -)
+ static TQImage fromMimeSource(const TQString &);
%End
bool isNull() const;
int width() const;
int height() const;
- QSize size() const;
- QRect rect() const;
+ TQSize size() const;
+ TQRect rect() const;
int depth() const;
int numColors() const;
Endian bitOrder() const;
- QRgb color(int) const;
- void setColor(int,QRgb);
+ TQRgb color(int) const;
+ void setColor(int,TQRgb);
void setNumColors(int);
bool hasAlphaBuffer() const;
@@ -280,225 +280,225 @@ public:
void *scanLine(int) const;
// Actually returns uchar **.
void *jumpTable() const;
- // Actually returns QRgb *.
+ // Actually returns TQRgb *.
void *colorTable() const;
int numBytes() const;
int bytesPerLine() const;
bool create(int,int,int,int = 0,Endian = IgnoreEndian);
- bool create(const QSize &,int,int = 0,Endian = IgnoreEndian);
+ bool create(const TQSize &,int,int = 0,Endian = IgnoreEndian);
void reset();
void fill(uint);
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void invertPixels(bool = 1);
%End
- QImage convertDepth(int) const;
-// QImage convertDepthWithPalette(int,QRgb *,int,int = 0) const;
- QImage convertDepth(int,int) const;
- QImage convertBitOrder(Endian) const;
+ TQImage convertDepth(int) const;
+// TQImage convertDepthWithPalette(int,TQRgb *,int,int = 0) const;
+ TQImage convertDepth(int,int) const;
+ TQImage convertBitOrder(Endian) const;
-%If (- Qt_3_0_0)
- QImage smoothScale(int,int) const;
+%If (- TQt_3_0_0)
+ TQImage smoothScale(int,int) const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum ScaleMode {
ScaleFree,
ScaleMin,
ScaleMax
};
- QImage smoothScale(int,int,ScaleMode = ScaleFree) const;
- QImage smoothScale(const QSize &,ScaleMode = ScaleFree) const;
- QImage scale(int,int,ScaleMode = ScaleFree) const;
- QImage scale(const QSize &,ScaleMode = ScaleFree) const;
- QImage scaleWidth(int) const;
- QImage scaleHeight(int) const;
- QImage xForm(const QWMatrix &) const;
+ TQImage smoothScale(int,int,ScaleMode = ScaleFree) const;
+ TQImage smoothScale(const TQSize &,ScaleMode = ScaleFree) const;
+ TQImage scale(int,int,ScaleMode = ScaleFree) const;
+ TQImage scale(const TQSize &,ScaleMode = ScaleFree) const;
+ TQImage scaleWidth(int) const;
+ TQImage scaleHeight(int) const;
+ TQImage xForm(const TQWMatrix &) const;
%End
-%If (- Qt_2_00)
- QImage createAlphaMask(bool = 0) const;
- QImage createAlphaMask(int) const;
+%If (- TQt_2_00)
+ TQImage createAlphaMask(bool = 0) const;
+ TQImage createAlphaMask(int) const;
%End
-%If (Qt_2_00 -)
- QImage createAlphaMask(int = 0) const;
+%If (TQt_2_00 -)
+ TQImage createAlphaMask(int = 0) const;
%End
- QImage createHeuristicMask(bool = 1) const;
-%If (Qt_2_00 -)
- QImage mirror() const;
+ TQImage createHeuristicMask(bool = 1) const;
+%If (TQt_2_00 -)
+ TQImage mirror() const;
%End
-%If (Qt_2_1_0 -)
- QImage mirror(bool,bool) const;
+%If (TQt_2_1_0 -)
+ TQImage mirror(bool,bool) const;
%End
-%If (Qt_2_00 -)
- QImage swapRGB() const;
+%If (TQt_2_00 -)
+ TQImage swapRGB() const;
%End
static Endian systemBitOrder();
static Endian systemByteOrder();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
static const char *imageFormat(const char *);
%End
-%If (Qt_2_00 -)
- static const char *imageFormat(const QString &);
+%If (TQt_2_00 -)
+ static const char *imageFormat(const TQString &);
%End
- static QStrList inputFormats();
- static QStrList outputFormats();
-%If (Qt_2_1_0 -)
- static QStringList inputFormatList();
- static QStringList outputFormatList();
+ static TQStrList inputFormats();
+ static TQStrList outputFormats();
+%If (TQt_2_1_0 -)
+ static TQStringList inputFormatList();
+ static TQStringList outputFormatList();
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
bool load(const char *,const char * = 0);
%End
-%If (Qt_2_00 -)
- bool load(const QString &,const char * = 0);
+%If (TQt_2_00 -)
+ bool load(const TQString &,const char * = 0);
%End
bool loadFromData(const uchar * /Array/,uint /ArraySize/,
const char * = 0);
- bool loadFromData(QByteArray,char * = 0);
-%If (- Qt_2_00)
+ bool loadFromData(TQByteArray,char * = 0);
+%If (- TQt_2_00)
bool save(const char *,const char *) const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
- bool save(const QString &,const char *) const;
+%If (TQt_2_00 - TQt_3_0_0)
+ bool save(const TQString &,const char *) const;
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
- bool save(const QString &,const char *,int) const;
+%If (TQt_2_2_0 - TQt_3_0_0)
+ bool save(const TQString &,const char *,int) const;
%End
-%If (Qt_3_0_0 -)
- bool save(const QString &,const char *,int = -1) const;
+%If (TQt_3_0_0 -)
+ bool save(const TQString &,const char *,int = -1) const;
%End
-%If (Qt_3_2_0 -)
- bool save(QIODevice *,const char *,int = -1) const;
+%If (TQt_3_2_0 -)
+ bool save(TQIODevice *,const char *,int = -1) const;
%End
bool valid(int,int) const;
int pixelIndex(int,int) const;
- QRgb pixel(int,int) const;
+ TQRgb pixel(int,int) const;
void setPixel(int,int,uint);
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
int dotsPerMeterX() const;
int dotsPerMeterY() const;
void setDotsPerMeterX(int);
void setDotsPerMeterY(int);
- QPoint offset() const;
- void setOffset(const QPoint &);
-%If (Qt_IMAGE_TEXT)
- QValueList<QImageTextKeyLang> textList() const;
- QStringList textLanguages() const;
- QStringList textKeys() const;
- QString text(const char *,const char * = 0) const;
- QString text(const QImageTextKeyLang &) const;
- void setText(const char *,const char *,const QString &);
+ TQPoint offset() const;
+ void setOffset(const TQPoint &);
+%If (TQt_IMAGE_TEXT)
+ TQValueList<TQImageTextKeyLang> textList() const;
+ TQStringList textLanguages() const;
+ TQStringList textKeys() const;
+ TQString text(const char *,const char * = 0) const;
+ TQString text(const TQImageTextKeyLang &) const;
+ void setText(const char *,const char *,const TQString &);
%End
%End
};
-void bitBlt(QImage *,int,int,const QImage *,int = 0,int = 0,int = -1,int = -1,
+void bitBlt(TQImage *,int,int,const TQImage *,int = 0,int = 0,int = -1,int = -1,
int = 0);
-class QImageIO
+class TQImageIO
{
%TypeHeaderCode
#include <qimage.h>
%End
public:
- QImageIO();
- QImageIO(QIODevice *,const char *);
-%If (Qt_2_00 -)
- QImageIO(const QString &,const char *);
+ TQImageIO();
+ TQImageIO(TQIODevice *,const char *);
+%If (TQt_2_00 -)
+ TQImageIO(const TQString &,const char *);
%End
-%If (- Qt_2_00)
- QImageIO(const char *,const char *);
+%If (- TQt_2_00)
+ TQImageIO(const char *,const char *);
%End
- const QImage &image() const;
+ const TQImage &image() const;
int status() const;
const char *format() const;
- QIODevice *ioDevice() const;
-%If (Qt_2_00 -)
- QString fileName() const;
+ TQIODevice *ioDevice() const;
+%If (TQt_2_00 -)
+ TQString fileName() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *fileName() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int quality() const;
%End
-%If (Qt_2_00 -)
- QString description() const;
+%If (TQt_2_00 -)
+ TQString description() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *description() const;
%End
const char *parameters() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
float gamma() const;
%End
- void setImage(const QImage &);
+ void setImage(const TQImage &);
void setStatus(int);
void setFormat(const char *);
- void setIODevice(QIODevice *);
-%If (Qt_2_00 -)
- void setFileName(const QString &);
+ void setIODevice(TQIODevice *);
+%If (TQt_2_00 -)
+ void setFileName(const TQString &);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setFileName(const char *);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setQuality(int);
%End
-%If (Qt_2_00 -)
- void setDescription(const QString &);
+%If (TQt_2_00 -)
+ void setDescription(const TQString &);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setDescription(const char *);
%End
void setParameters(const char *);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setGamma(float);
%End
bool read();
bool write();
- static const char *imageFormat(const QString &);
- static const char *imageFormat(QIODevice *);
- static QStrList inputFormats();
- static QStrList outputFormats();
+ static const char *imageFormat(const TQString &);
+ static const char *imageFormat(TQIODevice *);
+ static TQStrList inputFormats();
+ static TQStrList outputFormats();
// static void defineIOHandler(const char *,const char *,const char *,
// image_io_handler,image_io_handler);
private:
- QImageIO(const QImageIO &);
+ TQImageIO(const TQImageIO &);
};
-%If (Qt_2_1_0 -)
-%If (Qt_IMAGE_TEXT)
+%If (TQt_2_1_0 -)
+%If (TQt_IMAGE_TEXT)
-class QImageTextKeyLang
+class TQImageTextKeyLang
{
%TypeHeaderCode
#include <qimage.h>
%End
public:
- QImageTextKeyLang(const char *,const char *);
- QImageTextKeyLang();
+ TQImageTextKeyLang(const char *,const char *);
+ TQImageTextKeyLang();
- QCString key;
- QCString lang;
+ TQCString key;
+ TQCString lang;
};
%End
@@ -506,14 +506,14 @@ public:
%ModuleHeaderCode
-const char **PyQt_qt_ListToArray(PyObject *lst);
+const char **PyTQt_qt_ListToArray(PyObject *lst);
%End
%ModuleCode
// Convert a list of strings to an array of strings on the heap. Also used by
-// QPixmap.
-const char **PyQt_qt_ListToArray(PyObject *lst)
+// TQPixmap.
+const char **PyTQt_qt_ListToArray(PyObject *lst)
{
int nstr;
const char **str, **sp;
diff --git a/sip/qt/qinputdialog.sip b/sip/qt/qinputdialog.sip
index 80a5394..55f50d3 100644
--- a/sip/qt/qinputdialog.sip
+++ b/sip/qt/qinputdialog.sip
@@ -1,84 +1,84 @@
-// This is the SIP interface definition for QInputDialog.
+// This is the SIP interface definition for TQInputDialog.
//
// 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>QInputDialog (Qt v2.1+)</Title>
+<Sect2><Title>TQInputDialog (TQt v2.1+)</Title>
<FuncSynopsis>
- <FuncDef>static QString <Function>getText</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>caption</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>label</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>text</Parameter> = QString::null</ParamDef>
+ <FuncDef>static TQString <Function>getText</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>text</Parameter> = TQString::null</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QString</Literal> result and the <Literal>ok</Literal> flag.
-(Qt v2.1 - v2.3.1)
+the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
+(TQt v2.1 - v2.3.1)
</Para>
<FuncSynopsis>
- <FuncDef>static QString <Function>getText</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>caption</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>label</Parameter></ParamDef>
- <ParamDef>QLineEdit::EchoMode<Parameter>echo</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>text</Parameter> = QString::null</ParamDef>
+ <FuncDef>static TQString <Function>getText</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
+ <ParamDef>TQLineEdit::EchoMode<Parameter>echo</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>text</Parameter> = TQString::null</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QString</Literal> result and the <Literal>ok</Literal> flag.
-(Qt v2.2 - v2.3.1)
+the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
+(TQt v2.2 - v2.3.1)
</Para>
<FuncSynopsis>
- <FuncDef>static QString <Function>getText</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>caption</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>label</Parameter></ParamDef>
- <ParamDef>QLineEdit::EchoMode<Parameter>echo</Parameter> = QLineEdit::Normal</ParamDef>
- <ParamDef>const QString &amp;<Parameter>text</Parameter> = QString::null</ParamDef>
+ <FuncDef>static TQString <Function>getText</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
+ <ParamDef>TQLineEdit::EchoMode<Parameter>echo</Parameter> = TQLineEdit::Normal</ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>text</Parameter> = TQString::null</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QString</Literal> result and the <Literal>ok</Literal> flag.
-(Qt v3+)
+the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
+(TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>static int <Function>getInteger</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>caption</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>label</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
<ParamDef>int <Parameter>num</Parameter> = 0</ParamDef>
<ParamDef>int <Parameter>from</Parameter> = -2147483647</ParamDef>
<ParamDef>int <Parameter>to</Parameter> = 2147483647</ParamDef>
<ParamDef>int <Parameter>step</Parameter> = 1</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -88,14 +88,14 @@ the <Literal>int</Literal> result and the <Literal>ok</Literal> flag.
<FuncSynopsis>
<FuncDef>static double <Function>getDouble</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>caption</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>label</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
<ParamDef>double <Parameter>num</Parameter> = 0</ParamDef>
<ParamDef>double <Parameter>from</Parameter> = -2147483647</ParamDef>
<ParamDef>double <Parameter>to</Parameter> = 2147483647</ParamDef>
<ParamDef>int <Parameter>step</Parameter> = 1</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -104,70 +104,70 @@ the <Literal>double</Literal> result and the <Literal>ok</Literal> flag.
</Para>
<FuncSynopsis>
- <FuncDef>static QString <Function>getItem</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>caption</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>label</Parameter></ParamDef>
- <ParamDef>const QStringList &<Parameter>list</Parameter></ParamDef>
+ <FuncDef>static TQString <Function>getItem</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
+ <ParamDef>const TQStringList &<Parameter>list</Parameter></ParamDef>
<ParamDef>int <Parameter>current</Parameter> = 0</ParamDef>
<ParamDef>bool <Parameter>editable</Parameter> = TRUE</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QString</Literal> result and the <Literal>ok</Literal> flag.
+the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
</Para>
</Sect2>
%End
-%If (Qt_2_1_0 -)
-%If (Qt_INPUTDIALOG)
+%If (TQt_2_1_0 -)
+%If (TQt_INPUTDIALOG)
-class QInputDialog : QDialog
+class TQInputDialog : TQDialog
{
%TypeHeaderCode
#include <qinputdialog.h>
%End
public:
-%If (Qt_3_0_0 -)
- static QString getText(const QString &,const QString &,
- QLineEdit::EchoMode = QLineEdit::Normal,
- const QString & = QString::null,
- bool * = 0,QWidget * = 0,const char * = 0);
+%If (TQt_3_0_0 -)
+ static TQString getText(const TQString &,const TQString &,
+ TQLineEdit::EchoMode = TQLineEdit::Normal,
+ const TQString & = TQString::null,
+ bool * = 0,TQWidget * = 0,const char * = 0);
%End
-%If (- Qt_3_0_0)
- static QString getText(const QString &,const QString &,
- const QString & = QString::null,
- bool * = 0,QWidget * = 0,const char * = 0);
+%If (- TQt_3_0_0)
+ static TQString getText(const TQString &,const TQString &,
+ const TQString & = TQString::null,
+ bool * = 0,TQWidget * = 0,const char * = 0);
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
- static QString getText(const QString &,const QString &,
- QLineEdit::EchoMode,
- const QString & = QString::null,
- bool * = 0,QWidget * = 0,const char * = 0);
+%If (TQt_2_2_0 - TQt_3_0_0)
+ static TQString getText(const TQString &,const TQString &,
+ TQLineEdit::EchoMode,
+ const TQString & = TQString::null,
+ bool * = 0,TQWidget * = 0,const char * = 0);
%End
- static int getInteger(const QString &,const QString &,int = 0,
+ static int getInteger(const TQString &,const TQString &,int = 0,
int = -2147483647,int = 2147483647,int = 1,
- bool * = 0,QWidget * = 0,const char * = 0);
+ bool * = 0,TQWidget * = 0,const char * = 0);
- static double getDouble(const QString &,const QString &,
+ static double getDouble(const TQString &,const TQString &,
double = 0,double = -2147483647,
double = 2147483647,int = 1,
- bool * = 0,QWidget * = 0,const char * = 0);
+ bool * = 0,TQWidget * = 0,const char * = 0);
- static QString getItem(const QString &,const QString &,
- const QStringList &,int = 0,bool = TRUE,
- bool * = 0,QWidget * = 0,const char * = 0);
+ static TQString getItem(const TQString &,const TQString &,
+ const TQStringList &,int = 0,bool = TRUE,
+ bool * = 0,TQWidget * = 0,const char * = 0);
private:
- QInputDialog(const QInputDialog &);
- ~QInputDialog();
+ TQInputDialog(const TQInputDialog &);
+ ~TQInputDialog();
};
%End
diff --git a/sip/qt/qinterlacestyle.sip b/sip/qt/qinterlacestyle.sip
index 5455b2f..97f4e19 100644
--- a/sip/qt/qinterlacestyle.sip
+++ b/sip/qt/qinterlacestyle.sip
@@ -1,30 +1,30 @@
-// This is the SIP interface definition for QInterlaceStyle.
+// This is the SIP interface definition for TQInterlaceStyle.
//
// 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>QInterlaceStyle (Qt v2.3.1+)</Title>
+<Sect2><Title>TQInterlaceStyle (TQt v2.3.1+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>sb</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderLength</Parameter></ParamDef>
@@ -39,63 +39,63 @@ This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
%End
-// Temporary until it is ported to Qt3.
-%If (Qt_STYLE_INTERLACE)
-%If (Qt_2_3_1 - Qt_3_0_0)
+// Temporary until it is ported to TQt3.
+%If (TQt_STYLE_INTERLACE)
+%If (TQt_2_3_1 - TQt_3_0_0)
-class QInterlaceStyle : QMotifStyle
+class TQInterlaceStyle : TQMotifStyle
{
%TypeHeaderCode
#include <qinterlacestyle.h>
%End
public:
- QInterlaceStyle();
+ TQInterlaceStyle();
- void polish(QApplication *);
- void unPolish(QApplication *);
- void polish(QWidget *);
- void unPolish(QWidget *);
+ void polish(TQApplication *);
+ void unPolish(TQApplication *);
+ void polish(TQWidget *);
+ void unPolish(TQWidget *);
int defaultFrameWidth() const;
- QRect pushButtonContentsRect(QPushButton *);
- void drawFocusRect(QPainter *,const QRect &,const QColorGroup &,
- const QColor * = 0,bool = 0);
- void drawButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,const QBrush * = 0);
- void drawButtonMask(QPainter *,int,int,int,int);
- void drawBevelButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,const QBrush * = 0);
+ TQRect pushButtonContentsRect(TQPushButton *);
+ void drawFocusRect(TQPainter *,const TQRect &,const TQColorGroup &,
+ const TQColor * = 0,bool = 0);
+ void drawButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,const TQBrush * = 0);
+ void drawButtonMask(TQPainter *,int,int,int,int);
+ void drawBevelButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,const TQBrush * = 0);
- void drawPushButton(QPushButton *,QPainter *);
- QSize indicatorSize() const;
- void drawIndicator(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawPushButton(TQPushButton *,TQPainter *);
+ TQSize indicatorSize() const;
+ void drawIndicator(TQPainter *,int,int,int,int,const TQColorGroup &,
int,bool = 0,bool = 1);
- void drawIndicatorMask(QPainter *,int,int,int,int,int);
- QSize exclusiveIndicatorSize() const;
- void drawExclusiveIndicator(QPainter *,int,int,int,int,
- const QColorGroup &,bool,bool = 0,
+ void drawIndicatorMask(TQPainter *,int,int,int,int,int);
+ TQSize exclusiveIndicatorSize() const;
+ void drawExclusiveIndicator(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool,bool = 0,
bool = 1);
- void drawExclusiveIndicatorMask(QPainter *,int,int,int,int,bool);
- QRect comboButtonRect(int,int,int,int);
- void drawComboButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool,bool,bool,const QBrush *);
- void drawPushButtonLabel(QPushButton *,QPainter *);
- void drawPanel(QPainter *,int,int,int,int,const QColorGroup &,bool,int,
- const QBrush *);
+ void drawExclusiveIndicatorMask(TQPainter *,int,int,int,int,bool);
+ TQRect comboButtonRect(int,int,int,int);
+ void drawComboButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool,bool,bool,const TQBrush *);
+ void drawPushButtonLabel(TQPushButton *,TQPainter *);
+ void drawPanel(TQPainter *,int,int,int,int,const TQColorGroup &,bool,int,
+ const TQBrush *);
- void scrollBarMetrics(const QScrollBar *,int &,int &,int &,int &);
+ void scrollBarMetrics(const TQScrollBar *,int &,int &,int &,int &);
- void drawScrollBarControls(QPainter *,const QScrollBar *,int,uint,
+ void drawScrollBarControls(TQPainter *,const TQScrollBar *,int,uint,
uint);
- void drawSlider(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawSlider(TQPainter *,int,int,int,int,const TQColorGroup &,
Orientation,bool,bool);
- void drawSliderMask(QPainter *,int,int,int,int,Orientation,bool,bool);
- void drawSliderGroove(QPainter *,int,int,int,int,const QColorGroup &,
- QCOORD,Orientation);
- void drawSliderGrooveMask(QPainter *,int,int,int,int,QCOORD,
+ void drawSliderMask(TQPainter *,int,int,int,int,Orientation,bool,bool);
+ void drawSliderGroove(TQPainter *,int,int,int,int,const TQColorGroup &,
+ TQCOORD,Orientation);
+ void drawSliderGrooveMask(TQPainter *,int,int,int,int,TQCOORD,
Orientation);
int splitterWidth() const;
- void drawSplitter(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawSplitter(TQPainter *,int,int,int,int,const TQColorGroup &,
Orientation);
};
diff --git a/sip/qt/qiodevice.sip b/sip/qt/qiodevice.sip
index 32079d2..6d44689 100644
--- a/sip/qt/qiodevice.sip
+++ b/sip/qt/qiodevice.sip
@@ -1,29 +1,29 @@
-// This is the SIP interface definition for QIODevice.
+// This is the SIP interface definition for TQIODevice.
//
// 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>QIODevice</Title>
+<Sect2><Title>TQIODevice</Title>
<Para>
-<Literal>QIODevice</Literal> is fully implemented.
+<Literal>TQIODevice</Literal> is fully implemented.
</Para>
</Sect2>
%End
@@ -72,23 +72,23 @@ const int IO_OpenError;
const int IO_ConnectError;
const int IO_AbortError;
const int IO_TimeOutError;
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
const int IO_UnspecifiedError;
%End
-class QIODevice
+class TQIODevice
{
%TypeHeaderCode
#include <qiodevice.h>
%End
public:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
typedef Q_ULONG Offset;
%End
- QIODevice();
+ TQIODevice();
int flags() const;
int mode() const;
@@ -114,12 +114,12 @@ public:
virtual void close() = 0;
virtual void flush() = 0 /ReleaseGIL/;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual uint size() const = 0;
virtual int at() const;
virtual bool at(int);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual Offset size() const = 0;
virtual Offset at() const;
virtual bool at(Offset);
@@ -127,7 +127,7 @@ public:
virtual bool atEnd() const;
bool reset();
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual SIP_PYOBJECT readBlock(uint) = 0 /ReleaseGIL/ [int (char *,uint)];
%MethodCode
char *buf;
@@ -187,7 +187,7 @@ public:
}
%End
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual SIP_PYOBJECT readBlock(Q_ULONG) = 0 /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)];
%MethodCode
char *buf;
@@ -248,16 +248,16 @@ public:
%End
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual int writeBlock(const char * /Array/,
uint /ArraySize/) = 0 /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual Q_LONG writeBlock(const char * /Array/,
Q_ULONG /ArraySize/) = 0 /ReleaseGIL/;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual SIP_PYOBJECT readLine(uint) /ReleaseGIL/ [int (char *,uint)];
%MethodCode
char *buf;
@@ -269,7 +269,7 @@ public:
int actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QIODevice::readLine(buf, a0) : sipCpp->readLine(buf, a0);
+ actlen = sipSelfWasArg ? sipCpp->TQIODevice::readLine(buf, a0) : sipCpp->readLine(buf, a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -317,7 +317,7 @@ public:
}
%End
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual SIP_PYOBJECT readLine(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)];
%MethodCode
char *buf;
@@ -329,7 +329,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QIODevice::readLine(buf, a0) : sipCpp->readLine(buf, a0);
+ actlen = sipSelfWasArg ? sipCpp->TQIODevice::readLine(buf, a0) : sipCpp->readLine(buf, a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -378,18 +378,18 @@ public:
%End
%End
-%If (Qt_2_00 - Qt_3_0_0)
- int writeBlock(const QByteArray &) /ReleaseGIL/;
+%If (TQt_2_00 - TQt_3_0_0)
+ int writeBlock(const TQByteArray &) /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
- Q_LONG writeBlock(const QByteArray &) /ReleaseGIL/;
+%If (TQt_3_0_0 -)
+ Q_LONG writeBlock(const TQByteArray &) /ReleaseGIL/;
%End
-%If (Qt_2_00 - Qt_3_0_0)
- QByteArray readAll() /ReleaseGIL/;
+%If (TQt_2_00 - TQt_3_0_0)
+ TQByteArray readAll() /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
- virtual QByteArray readAll() /ReleaseGIL/;
+%If (TQt_3_0_0 -)
+ virtual TQByteArray readAll() /ReleaseGIL/;
%End
virtual int getch() = 0 /ReleaseGIL/;
@@ -404,5 +404,5 @@ protected:
void setStatus(int);
private:
- QIODevice(const QIODevice &);
+ TQIODevice(const TQIODevice &);
};
diff --git a/sip/qt/qkeycode.sip b/sip/qt/qkeycode.sip
index 72c0a25..cdd5bfb 100644
--- a/sip/qt/qkeycode.sip
+++ b/sip/qt/qkeycode.sip
@@ -3,24 +3,24 @@
// 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.
-%If (- Qt_2_00)
+%If (- TQt_2_00)
%ModuleHeaderCode
#include <qkeycode.h>
@@ -107,7 +107,7 @@ const int Key_F35;
const int Key_Super_L;
const int Key_Super_R;
const int Key_Menu;
-%If (Qt_1_43 -)
+%If (TQt_1_43 -)
const int Key_Hyper_L;
const int Key_Hyper_R;
%End
diff --git a/sip/qt/qkeysequence.sip b/sip/qt/qkeysequence.sip
index c7800f9..327d6e6 100644
--- a/sip/qt/qkeysequence.sip
+++ b/sip/qt/qkeysequence.sip
@@ -1,64 +1,64 @@
-// This is the SIP interface definition for QKeySequence.
+// This is the SIP interface definition for TQKeySequence.
//
// 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>QKeySequence (Qt v3+)</Title>
+<Sect2><Title>TQKeySequence (TQt v3+)</Title>
<Para>
-<Literal>QKeySequence</Literal> is fully implemented including the operators
-<Literal>==</Literal>, <Literal>!=</Literal>, <Literal>QString()</Literal> and
-<Literal>int()</Literal>. A <Literal>QString</Literal> instance or a Python
-integer may be used whenever a <Literal>QKeySequence</Literal> can be used.
+<Literal>TQKeySequence</Literal> is fully implemented including the operators
+<Literal>==</Literal>, <Literal>!=</Literal>, <Literal>TQString()</Literal> and
+<Literal>int()</Literal>. A <Literal>TQString</Literal> instance or a Python
+integer may be used whenever a <Literal>TQKeySequence</Literal> can be used.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QKeySequence : Qt
+class TQKeySequence : TQt
{
%TypeHeaderCode
#include <qkeysequence.h>
%End
public:
- QKeySequence();
- QKeySequence(const QString &);
- QKeySequence(int);
-%If (Qt_3_1_0 -)
- QKeySequence(int,int,int = 0,int = 0);
+ TQKeySequence();
+ TQKeySequence(const TQString &);
+ TQKeySequence(int);
+%If (TQt_3_1_0 -)
+ TQKeySequence(int,int,int = 0,int = 0);
- bool operator==(const QKeySequence &) const;
- bool operator!=(const QKeySequence &) const;
+ bool operator==(const TQKeySequence &) const;
+ bool operator!=(const TQKeySequence &) const;
uint count() const;
bool isEmpty() const;
- Qt::SequenceMatch matches(const QKeySequence &) const;
+ TQt::SequenceMatch matches(const TQKeySequence &) const;
%End
int __int__() const;
%ConvertToTypeCode
- // Allow a QString or a Python integer whenever a QKeySequence is
+ // Allow a TQString or a Python integer whenever a TQKeySequence is
// expected.
if (sipIsErr == NULL)
@@ -81,7 +81,7 @@ public:
if (sipCanConvertToInstance(sipPy,sipClass_QKeySequence,SIP_NO_CONVERTORS))
{
- *sipCppPtr = reinterpret_cast<QKeySequence *>(sipConvertToInstance(sipPy,sipClass_QKeySequence,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
+ *sipCppPtr = reinterpret_cast<TQKeySequence *>(sipConvertToInstance(sipPy,sipClass_QKeySequence,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
return 0;
}
@@ -89,7 +89,7 @@ public:
if (sipCanConvertToInstance(sipPy,sipClass_QString,0))
{
int state;
- QString *s = reinterpret_cast<QString *>(sipConvertToInstance(sipPy,sipClass_QString,0,0,&state,sipIsErr));
+ TQString *s = reinterpret_cast<TQString *>(sipConvertToInstance(sipPy,sipClass_QString,0,0,&state,sipIsErr));
if (*sipIsErr)
{
@@ -98,7 +98,7 @@ public:
}
Py_BEGIN_ALLOW_THREADS
- *sipCppPtr = new QKeySequence(*s);
+ *sipCppPtr = new TQKeySequence(*s);
Py_END_ALLOW_THREADS
sipReleaseInstance(s,sipClass_QString,state);
@@ -109,7 +109,7 @@ public:
int key = PyInt_AsLong(sipPy);
Py_BEGIN_ALLOW_THREADS
- *sipCppPtr = new QKeySequence(key);
+ *sipCppPtr = new TQKeySequence(key);
Py_END_ALLOW_THREADS
return sipGetState(sipTransferObj);
diff --git a/sip/qt/qlabel.sip b/sip/qt/qlabel.sip
index 62655e6..f12e572 100644
--- a/sip/qt/qlabel.sip
+++ b/sip/qt/qlabel.sip
@@ -1,157 +1,157 @@
-// This is the SIP interface definition for QLabel.
+// This is the SIP interface definition for TQLabel.
//
// 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>QLabel</Title>
+<Sect2><Title>TQLabel</Title>
<Para>
-<Literal>QLabel</Literal> is fully implemented.
+<Literal>TQLabel</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QLabel : QFrame
+class TQLabel : TQFrame
{
%TypeHeaderCode
#include <qlabel.h>
%End
public:
-%If (- Qt_2_00)
- QLabel(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
- QLabel(const char *,QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
- QLabel(QWidget *,const char *,QWidget * /TransferThis/,const char * = 0,WFlags = 0);
+%If (- TQt_2_00)
+ TQLabel(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+ TQLabel(const char *,TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+ TQLabel(TQWidget *,const char *,TQWidget * /TransferThis/,const char * = 0,WFlags = 0);
%End
-%If (Qt_2_00 -)
- QLabel(QWidget * /TransferThis/,const char * = 0,WFlags = 0);
- QLabel(const QString &,QWidget * /TransferThis/,const char * = 0,WFlags = 0);
- QLabel(QWidget *,const QString &,QWidget * /TransferThis/,const char * = 0,WFlags = 0);
+%If (TQt_2_00 -)
+ TQLabel(TQWidget * /TransferThis/,const char * = 0,WFlags = 0);
+ TQLabel(const TQString &,TQWidget * /TransferThis/,const char * = 0,WFlags = 0);
+ TQLabel(TQWidget *,const TQString &,TQWidget * /TransferThis/,const char * = 0,WFlags = 0);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *text() const;
%End
-%If (Qt_2_00 -)
- QString text() const;
+%If (TQt_2_00 -)
+ TQString text() const;
%End
- QPixmap *pixmap() const;
-%If (Qt_3_0_0 -)
- QPicture *picture() const;
+ TQPixmap *pixmap() const;
+%If (TQt_3_0_0 -)
+ TQPicture *picture() const;
%End
- QMovie *movie() const;
+ TQMovie *movie() const;
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
TextFormat textFormat() const;
void setTextFormat(TextFormat);
%End
int alignment() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setAlignment(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setAlignment(int);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
int margin() const;
void setMargin(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
int indent() const;
void setIndent(int);
%End
bool autoResize() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setAutoResize(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setAutoResize(bool);
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
bool hasScaledContents() const;
void setScaledContents(bool);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+%If (TQt_2_00 - TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
- QSize sizeHint() const;
-%If (Qt_2_1_0 -)
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+%If (TQt_2_1_0 -)
+ TQSize minimumSizeHint() const;
%End
-%If (- Qt_2_00)
- void setBuddy(QWidget *);
+%If (- TQt_2_00)
+ void setBuddy(TQWidget *);
%End
-%If (Qt_2_00 -)
- virtual void setBuddy(QWidget *);
+%If (TQt_2_00 -)
+ virtual void setBuddy(TQWidget *);
%End
- QWidget *buddy() const;
-%If (Qt_2_00 - Qt_3_0_0)
+ TQWidget *buddy() const;
+%If (TQt_2_00 - TQt_3_0_0)
void setAutoMask(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
int heightForWidth(int) const;
%End
-%If (Qt_3_0_0 -)
- void setFont(const QFont &);
+%If (TQt_3_0_0 -)
+ void setFont(const TQFont &);
%End
public slots:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setText(const char *);
- void setPixmap(const QPixmap &);
+ void setPixmap(const TQPixmap &);
%End
-%If (Qt_2_00 -)
- virtual void setText(const QString &);
- virtual void setPixmap(const QPixmap &);
+%If (TQt_2_00 -)
+ virtual void setText(const TQString &);
+ virtual void setPixmap(const TQPixmap &);
%End
-%If (Qt_3_0_0 -)
- virtual void setPicture(const QPicture &);
+%If (TQt_3_0_0 -)
+ virtual void setPicture(const TQPicture &);
%End
-%If (- Qt_2_00)
- void setMovie(const QMovie &);
+%If (- TQt_2_00)
+ void setMovie(const TQMovie &);
void setNum(int /Constrained/);
void setNum(double);
%End
-%If (Qt_2_00 -)
- virtual void setMovie(const QMovie &);
+%If (TQt_2_00 -)
+ virtual void setMovie(const TQMovie &);
virtual void setNum(int /Constrained/);
virtual void setNum(double);
%End
void clear();
protected:
- void drawContents(QPainter *);
-%If (Qt_2_00 - Qt_3_0_0)
- void drawContentsMask(QPainter *);
+ void drawContents(TQPainter *);
+%If (TQt_2_00 - TQt_3_0_0)
+ void drawContentsMask(TQPainter *);
%End
-%If (Qt_2_1_0 -)
- void fontChange(const QFont &);
+%If (TQt_2_1_0 -)
+ void fontChange(const TQFont &);
%End
-%If (Qt_2_2_0 -)
- void resizeEvent(QResizeEvent *);
+%If (TQt_2_2_0 -)
+ void resizeEvent(TQResizeEvent *);
%End
private:
- QLabel(const QLabel &);
+ TQLabel(const TQLabel &);
};
diff --git a/sip/qt/qlayout.sip b/sip/qt/qlayout.sip
index 4270e1e..41fc23b 100644
--- a/sip/qt/qlayout.sip
+++ b/sip/qt/qlayout.sip
@@ -1,106 +1,106 @@
-// This is the SIP interface definition for QBoxLayout, QGLayoutIterator,
-// QGridLayout, QHBoxLayout, QLayout, QLayoutItem, QLayoutIterator,
-// QSpacerItem, QVBoxLayout and QWidgetItem.
+// This is the SIP interface definition for TQBoxLayout, TQGLayoutIterator,
+// TQGridLayout, TQHBoxLayout, TQLayout, TQLayoutItem, TQLayoutIterator,
+// TQSpacerItem, TQVBoxLayout and TQWidgetItem.
//
// 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>QLayout</Title>
+<Sect2><Title>TQLayout</Title>
<Para>
-<Literal>QLayout</Literal> is fully implemented.
+<Literal>TQLayout</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QBoxLayout</Title>
+<Sect2><Title>TQBoxLayout</Title>
<Para>
-<Literal>QBoxLayout</Literal> is fully implemented.
+<Literal>TQBoxLayout</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGLayoutIterator (Qt v2+)</Title>
+<Sect2><Title>TQGLayoutIterator (TQt v2+)</Title>
<Para>
-<Literal>QGLayoutIterator</Literal> is fully implemented.
+<Literal>TQGLayoutIterator</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGridLayout</Title>
+<Sect2><Title>TQGridLayout</Title>
<FuncSynopsis>
<FuncDef>bool <Function>findWidget</Function></FuncDef>
- <ParamDef>QWidget *<Parameter>w</Parameter></ParamDef>
+ <ParamDef>TQWidget *<Parameter>w</Parameter></ParamDef>
<ParamDef>int *<Parameter>row</Parameter></ParamDef>
<ParamDef>int *<Parameter>col</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes the <Literal>w</Literal> parameter and returns a tuple containing
the <Literal>bool</Literal> result, <Literal>row</Literal> and
-<Literal>col</Literal>. (Qt v2+)
+<Literal>col</Literal>. (TQt v2+)
</Para>
</Sect2>
-<Sect2><Title>QHBoxLayout</Title>
+<Sect2><Title>TQHBoxLayout</Title>
<Para>
-<Literal>QHBoxLayout</Literal> is fully implemented.
+<Literal>TQHBoxLayout</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QLayoutItem (Qt v2+)</Title>
+<Sect2><Title>TQLayoutItem (TQt v2+)</Title>
<Para>
-<Literal>QLayoutItem</Literal> is fully implemented.
+<Literal>TQLayoutItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QLayoutIterator (Qt v2+)</Title>
+<Sect2><Title>TQLayoutIterator (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef>QLayoutItem *<Function>next</Function></FuncDef>
+ <FuncDef>TQLayoutItem *<Function>next</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-This is a wrapper around the <Literal>QLayoutIterator</Literal>
+This is a wrapper around the <Literal>TQLayoutIterator</Literal>
<Literal>++</Literal> operator.
</Para>
</Sect2>
-<Sect2><Title>QSpacerItem (Qt v2+)</Title>
+<Sect2><Title>TQSpacerItem (TQt v2+)</Title>
<Para>
-<Literal>QSpacerItem</Literal> is fully implemented.
+<Literal>TQSpacerItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QVBoxLayout</Title>
+<Sect2><Title>TQVBoxLayout</Title>
<Para>
-<Literal>QVBoxLayout</Literal> is fully implemented.
+<Literal>TQVBoxLayout</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QWidgetItem (Qt v2+)</Title>
+<Sect2><Title>TQWidgetItem (TQt v2+)</Title>
<Para>
-<Literal>QWidgetItem</Literal> is fully implemented.
+<Literal>TQWidgetItem</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QLayout : QObject
+class TQLayout : TQObject
{
%TypeHeaderCode
#include <qlayout.h>
@@ -109,82 +109,82 @@ class QLayout : QObject
public:
enum
{
- unlimited = QCOORD_MAX
+ unlimited = TQCOORD_MAX
};
int defaultBorder() const;
virtual bool activate();
void freeze(int,int);
void freeze();
- void setMenuBar(QMenuBar *);
- QWidget *mainWidget();
+ void setMenuBar(TQMenuBar *);
+ TQWidget *mainWidget();
protected:
- QLayout(QWidget * /TransferThis/,int,int,const char *);
- QLayout(int = -1,const char * = 0);
+ TQLayout(TQWidget * /TransferThis/,int,int,const char *);
+ TQLayout(int = -1,const char * = 0);
- QGManager *basicManager();
- virtual QChain *mainVerticalChain() = 0;
- virtual QChain *mainHorizontalChain() = 0;
+ TQGManager *basicManager();
+ virtual TQChain *mainVerticalChain() = 0;
+ virtual TQChain *mainHorizontalChain() = 0;
virtual void initGM() = 0;
- void addChildLayout(QLayout *);
+ void addChildLayout(TQLayout *);
private:
- QLayout(const QLayout &);
+ TQLayout(const TQLayout &);
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QGLayoutIterator
+class TQGLayoutIterator
{
%TypeHeaderCode
#include <qabstractlayout.h>
%End
public:
- virtual QLayoutItem *next() = 0;
- virtual QLayoutItem *current() = 0;
- virtual QLayoutItem *takeCurrent() = 0 /TransferBack/;
+ virtual TQLayoutItem *next() = 0;
+ virtual TQLayoutItem *current() = 0;
+ virtual TQLayoutItem *takeCurrent() = 0 /TransferBack/;
};
-class QLayoutIterator
+class TQLayoutIterator
{
%TypeHeaderCode
#include <qabstractlayout.h>
%End
public:
- QLayoutIterator(QGLayoutIterator *) /Default/;
- QLayoutIterator(const QLayoutIterator &);
+ TQLayoutIterator(TQGLayoutIterator *) /Default/;
+ TQLayoutIterator(const TQLayoutIterator &);
- QLayoutItem *next();
+ TQLayoutItem *next();
%MethodCode
Py_BEGIN_ALLOW_THREADS
sipRes = ++(*sipCpp);
Py_END_ALLOW_THREADS
%End
- QLayoutItem *current();
- QLayoutItem *takeCurrent() /TransferBack/;
+ TQLayoutItem *current();
+ TQLayoutItem *takeCurrent() /TransferBack/;
void deleteCurrent();
};
-class QLayoutItem
+class TQLayoutItem
{
%TypeHeaderCode
#include <qabstractlayout.h>
%End
public:
- QLayoutItem(int = 0 );
+ TQLayoutItem(int = 0 );
%ConvertToSubClassCode
- // Note that we let the QObject sub-class code handle QLayout and it's
+ // Note that we let the TQObject sub-class code handle TQLayout and it's
// sub-classes.
if (sipCpp->widget())
sipClass = sipClass_QWidgetItem;
@@ -194,74 +194,74 @@ public:
sipClass = NULL;
%End
- virtual QSize sizeHint() const = 0;
- virtual QSize minimumSize() const = 0;
- virtual QSize maximumSize() const = 0;
- virtual QSizePolicy::ExpandData expanding() const = 0;
- virtual void setGeometry(const QRect &) = 0;
- virtual QRect geometry() const = 0;
+ virtual TQSize sizeHint() const = 0;
+ virtual TQSize minimumSize() const = 0;
+ virtual TQSize maximumSize() const = 0;
+ virtual TQSizePolicy::ExpandData expanding() const = 0;
+ virtual void setGeometry(const TQRect &) = 0;
+ virtual TQRect geometry() const = 0;
virtual bool isEmpty() const = 0;
virtual bool hasHeightForWidth() const;
virtual int heightForWidth(int) const;
virtual void invalidate();
- virtual QWidget *widget();
- virtual QLayoutIterator iterator();
- virtual QLayout *layout();
- virtual QSpacerItem *spacerItem();
+ virtual TQWidget *widget();
+ virtual TQLayoutIterator iterator();
+ virtual TQLayout *layout();
+ virtual TQSpacerItem *spacerItem();
int alignment() const;
virtual void setAlignment(int);
};
-class QSpacerItem : QLayoutItem
+class TQSpacerItem : TQLayoutItem
{
%TypeHeaderCode
#include <qabstractlayout.h>
%End
public:
- QSpacerItem(int,int,QSizePolicy::SizeType = QSizePolicy::Minimum,
- QSizePolicy::SizeType = QSizePolicy::Minimum);
-
- void changeSize(int,int,QSizePolicy::SizeType = QSizePolicy::Minimum,
- QSizePolicy::SizeType = QSizePolicy::Minimum);
- QSize sizeHint() const;
- QSize minimumSize() const;
- QSize maximumSize() const;
- QSizePolicy::ExpandData expanding() const;
+ TQSpacerItem(int,int,TQSizePolicy::SizeType = TQSizePolicy::Minimum,
+ TQSizePolicy::SizeType = TQSizePolicy::Minimum);
+
+ void changeSize(int,int,TQSizePolicy::SizeType = TQSizePolicy::Minimum,
+ TQSizePolicy::SizeType = TQSizePolicy::Minimum);
+ TQSize sizeHint() const;
+ TQSize minimumSize() const;
+ TQSize maximumSize() const;
+ TQSizePolicy::ExpandData expanding() const;
bool isEmpty() const;
- void setGeometry(const QRect &);
- QRect geometry() const;
- QSpacerItem *spacerItem();
+ void setGeometry(const TQRect &);
+ TQRect geometry() const;
+ TQSpacerItem *spacerItem();
};
-class QWidgetItem : QLayoutItem
+class TQWidgetItem : TQLayoutItem
{
%TypeHeaderCode
#include <qabstractlayout.h>
%End
public:
- QWidgetItem(QWidget *);
+ TQWidgetItem(TQWidget *);
- QSize sizeHint() const;
- QSize minimumSize() const;
- QSize maximumSize() const;
- QSizePolicy::ExpandData expanding() const;
+ TQSize sizeHint() const;
+ TQSize minimumSize() const;
+ TQSize maximumSize() const;
+ TQSizePolicy::ExpandData expanding() const;
bool isEmpty() const;
- void setGeometry(const QRect &) ;
- QRect geometry() const;
- virtual QWidget *widget();
+ void setGeometry(const TQRect &) ;
+ TQRect geometry() const;
+ virtual TQWidget *widget();
bool hasHeightForWidth() const;
int heightForWidth(int) const;
};
-class QLayout : QObject, QLayoutItem
+class TQLayout : TQObject, TQLayoutItem
{
%TypeHeaderCode
#include <qabstractlayout.h>
@@ -272,14 +272,14 @@ public:
FreeResize,
Minimum,
Fixed,
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
Auto
%End
};
- QLayout(QWidget * /TransferThis/,int = 0,int = -1,const char * = 0);
- QLayout(QLayout * /TransferThis/,int = -1,const char * = 0);
- QLayout(int = -1,const char * = 0);
+ TQLayout(TQWidget * /TransferThis/,int = 0,int = -1,const char * = 0);
+ TQLayout(TQLayout * /TransferThis/,int = -1,const char * = 0);
+ TQLayout(int = -1,const char * = 0);
int margin() const;
int spacing() const;
@@ -287,13 +287,13 @@ public:
virtual void setMargin(int);
virtual void setSpacing(int);
-%If (- Qt_3_1_0)
+%If (- TQt_3_1_0)
enum {
unlimited
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int defaultBorder() const;
void freeze(int,int);
void freeze();
@@ -302,111 +302,111 @@ public:
void setResizeMode(ResizeMode);
ResizeMode resizeMode() const;
- virtual void setMenuBar(QMenuBar *);
- QMenuBar *menuBar() const;
+ virtual void setMenuBar(TQMenuBar *);
+ TQMenuBar *menuBar() const;
- QWidget *mainWidget();
+ TQWidget *mainWidget();
bool isTopLevel() const;
virtual void setAutoAdd(bool);
bool autoAdd() const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void invalidate();
%End
- QRect geometry() const;
+ TQRect geometry() const;
bool activate();
- void add(QWidget *);
- virtual void addItem(QLayoutItem * /Transfer/) = 0;
+ void add(TQWidget *);
+ virtual void addItem(TQLayoutItem * /Transfer/) = 0;
-%If (Qt_3_1_0 -)
- void remove(QWidget *);
- void removeItem(QLayoutItem * /TransferBack/);
+%If (TQt_3_1_0 -)
+ void remove(TQWidget *);
+ void removeItem(TQLayoutItem * /TransferBack/);
%End
- QSizePolicy::ExpandData expanding() const;
- QSize minimumSize() const;
- QSize maximumSize() const;
- void setGeometry(const QRect &) = 0;
- QLayoutIterator iterator() = 0;
+ TQSizePolicy::ExpandData expanding() const;
+ TQSize minimumSize() const;
+ TQSize maximumSize() const;
+ void setGeometry(const TQRect &) = 0;
+ TQLayoutIterator iterator() = 0;
bool isEmpty() const;
int totalHeightForWidth(int) const;
- QSize totalMinimumSize() const;
- QSize totalMaximumSize() const;
- QSize totalSizeHint() const;
- QLayout *layout();
+ TQSize totalMinimumSize() const;
+ TQSize totalMaximumSize() const;
+ TQSize totalSizeHint() const;
+ TQLayout *layout();
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
bool supportsMargin() const;
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
void setEnabled(bool);
bool isEnabled() const;
%End
protected:
- bool eventFilter(QObject *,QEvent *);
-%If (Qt_3_0_0 -)
- void childEvent(QChildEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
+%If (TQt_3_0_0 -)
+ void childEvent(TQChildEvent *);
%End
- void addChildLayout(QLayout *);
+ void addChildLayout(TQLayout *);
void deleteAllItems();
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setSupportsMargin(bool);
- QRect alignmentRect(const QRect &) const;
+ TQRect alignmentRect(const TQRect &) const;
%End
private:
- QLayout(const QLayout &);
+ TQLayout(const TQLayout &);
};
%End
-class QGridLayout : QLayout
+class TQGridLayout : TQLayout
{
%TypeHeaderCode
#include <qlayout.h>
%End
public:
-%If (- Qt_2_1_0)
- QGridLayout(QWidget * /TransferThis/,int,int,int = 0,int = -1,const char * = 0);
- QGridLayout(int,int,int = -1,const char * = 0);
+%If (- TQt_2_1_0)
+ TQGridLayout(TQWidget * /TransferThis/,int,int,int = 0,int = -1,const char * = 0);
+ TQGridLayout(int,int,int = -1,const char * = 0);
%End
-%If (Qt_2_00 - Qt_2_1_0)
- QGridLayout(QLayout * /TransferThis/,int,int,int = -1,const char * = 0);
+%If (TQt_2_00 - TQt_2_1_0)
+ TQGridLayout(TQLayout * /TransferThis/,int,int,int = -1,const char * = 0);
%End
-%If (Qt_2_1_0 -)
- QGridLayout(QWidget * /TransferThis/,int = 1,int = 1,int = 0,int = -1,const char * = 0);
- QGridLayout(int = 1,int = 1,int = -1,const char * = 0);
- QGridLayout(QLayout * /TransferThis/,int = 1,int = 1,int = -1,const char * = 0);
+%If (TQt_2_1_0 -)
+ TQGridLayout(TQWidget * /TransferThis/,int = 1,int = 1,int = 0,int = -1,const char * = 0);
+ TQGridLayout(int = 1,int = 1,int = -1,const char * = 0);
+ TQGridLayout(TQLayout * /TransferThis/,int = 1,int = 1,int = -1,const char * = 0);
%End
-%If (Qt_2_00 -)
- QSize sizeHint() const;
- QSize minimumSize() const;
- QSize maximumSize() const;
+%If (TQt_2_00 -)
+ TQSize sizeHint() const;
+ TQSize minimumSize() const;
+ TQSize maximumSize() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setRowStretch(int,int);
void setColStretch(int,int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setRowStretch(int,int);
virtual void setColStretch(int,int);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
int rowStretch(int) const;
int colStretch(int) const;
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void setRowSpacing(int,int);
void setColSpacing(int,int);
int rowSpacing(int) const;
@@ -415,40 +415,40 @@ public:
int numRows() const;
int numCols() const;
-%If (Qt_2_1_0 -)
- QRect cellGeometry(int,int) const;
+%If (TQt_2_1_0 -)
+ TQRect cellGeometry(int,int) const;
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
bool hasHeightForWidth() const;
int heightForWidth(int) const;
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
int minimumHeightForWidth(int) const;
%End
- QSizePolicy::ExpandData expanding() const;
+ TQSizePolicy::ExpandData expanding() const;
void invalidate();
- void addItem(QLayoutItem * /Transfer/);
+ void addItem(TQLayoutItem * /Transfer/);
%End
-%If (Qt_2_1_0 -)
- void addItem(QLayoutItem * /Transfer/,int,int);
+%If (TQt_2_1_0 -)
+ void addItem(TQLayoutItem * /Transfer/,int,int);
%End
-%If (Qt_2_00 -)
- void addMultiCell(QLayoutItem * /Transfer/,int,int,int,int,int = 0);
+%If (TQt_2_00 -)
+ void addMultiCell(TQLayoutItem * /Transfer/,int,int,int,int,int = 0);
%End
- void addWidget(QWidget *,int,int,int = 0);
- void addMultiCellWidget(QWidget *,int,int,int,int,int = 0);
- void addLayout(QLayout * /Transfer/,int,int);
-%If (Qt_2_2_0 -)
- void addMultiCellLayout(QLayout * /Transfer/,int,int,int,int,int = 0);
+ void addWidget(TQWidget *,int,int,int = 0);
+ void addMultiCellWidget(TQWidget *,int,int,int,int,int = 0);
+ void addLayout(TQLayout * /Transfer/,int,int);
+%If (TQt_2_2_0 -)
+ void addMultiCellLayout(TQLayout * /Transfer/,int,int,int,int,int = 0);
%End
void addRowSpacing(int,int);
void addColSpacing(int,int);
void expand(int,int);
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
enum Corner {
TopLeft,
TopRight,
@@ -458,32 +458,32 @@ public:
void setOrigin(Corner);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Corner origin() const;
%End
-%If (Qt_2_00 -)
- QLayoutIterator iterator();
- void setGeometry(const QRect &);
+%If (TQt_2_00 -)
+ TQLayoutIterator iterator();
+ void setGeometry(const TQRect &);
%End
protected:
-%If (- Qt_2_00)
- QChain *mainVerticalChain();
- QChain *mainHorizontalChain();
+%If (- TQt_2_00)
+ TQChain *mainVerticalChain();
+ TQChain *mainHorizontalChain();
void initGM();
%End
-%If (Qt_2_00 -)
- bool findWidget(QWidget *,int *,int *);
- void add(QLayoutItem * /Transfer/,int,int);
+%If (TQt_2_00 -)
+ bool findWidget(TQWidget *,int *,int *);
+ void add(TQLayoutItem * /Transfer/,int,int);
%End
private:
- QGridLayout(const QGridLayout &);
+ TQGridLayout(const TQGridLayout &);
};
-class QBoxLayout : QLayout
+class TQBoxLayout : TQLayout
{
%TypeHeaderCode
#include <qlayout.h>
@@ -499,99 +499,99 @@ public:
Up = BottomToTop
};
- QBoxLayout(QWidget * /TransferThis/,Direction,int = 0,int = -1,const char * = 0);
-%If (Qt_2_00 -)
- QBoxLayout(QLayout * /TransferThis/,Direction,int = -1,const char * = 0);
+ TQBoxLayout(TQWidget * /TransferThis/,Direction,int = 0,int = -1,const char * = 0);
+%If (TQt_2_00 -)
+ TQBoxLayout(TQLayout * /TransferThis/,Direction,int = -1,const char * = 0);
%End
- QBoxLayout(Direction,int = -1,const char * = 0);
+ TQBoxLayout(Direction,int = -1,const char * = 0);
Direction direction() const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setDirection(Direction);
%End
void addSpacing(int);
void addStretch(int = 0);
-%If (- Qt_2_00)
- void addWidget(QWidget *,int = 0,int = AlignCenter);
+%If (- TQt_2_00)
+ void addWidget(TQWidget *,int = 0,int = AlignCenter);
%End
- void addLayout(QLayout * /Transfer/,int = 0);
+ void addLayout(TQLayout * /Transfer/,int = 0);
void addStrut(int);
-%If (Qt_2_00 -)
- void addItem(QLayoutItem * /Transfer/);
- void addWidget(QWidget *,int = 0,int = 0);
-%If (Qt_2_1_0 -)
+%If (TQt_2_00 -)
+ void addItem(TQLayoutItem * /Transfer/);
+ void addWidget(TQWidget *,int = 0,int = 0);
+%If (TQt_2_1_0 -)
void insertSpacing(int,int);
void insertStretch(int,int = 0);
- void insertWidget(int,QWidget *,int = 0,int = 0);
- void insertLayout(int,QLayout * /Transfer/,int = 0);
- int findWidget(QWidget *);
-%End
- bool setStretchFactor(QWidget *,int);
- QSize sizeHint() const;
- QSize minimumSize() const;
- QSize maximumSize() const;
+ void insertWidget(int,TQWidget *,int = 0,int = 0);
+ void insertLayout(int,TQLayout * /Transfer/,int = 0);
+ int findWidget(TQWidget *);
+%End
+ bool setStretchFactor(TQWidget *,int);
+ TQSize sizeHint() const;
+ TQSize minimumSize() const;
+ TQSize maximumSize() const;
bool hasHeightForWidth() const;
int heightForWidth(int) const;
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
int minimumHeightForWidth(int) const;
%End
- QSizePolicy::ExpandData expanding() const;
+ TQSizePolicy::ExpandData expanding() const;
void invalidate();
- QLayoutIterator iterator();
- void setGeometry(const QRect &);
+ TQLayoutIterator iterator();
+ void setGeometry(const TQRect &);
%End
protected:
-%If (- Qt_2_00)
- QChain *mainVerticalChain();
- QChain *mainHorizontalChain();
+%If (- TQt_2_00)
+ TQChain *mainVerticalChain();
+ TQChain *mainHorizontalChain();
void initGM();
%End
-%If (Qt_2_1_0 -)
- void insertItem(int,QLayoutItem * /Transfer/);
+%If (TQt_2_1_0 -)
+ void insertItem(int,TQLayoutItem * /Transfer/);
%End
private:
- QBoxLayout(const QBoxLayout &);
+ TQBoxLayout(const TQBoxLayout &);
};
-class QHBoxLayout : QBoxLayout
+class TQHBoxLayout : TQBoxLayout
{
%TypeHeaderCode
#include <qlayout.h>
%End
public:
- QHBoxLayout(QWidget * /TransferThis/,int = 0,int = -1,const char * = 0);
-%If (Qt_2_00 -)
- QHBoxLayout(QLayout * /TransferThis/,int = -1,const char * = 0);
+ TQHBoxLayout(TQWidget * /TransferThis/,int = 0,int = -1,const char * = 0);
+%If (TQt_2_00 -)
+ TQHBoxLayout(TQLayout * /TransferThis/,int = -1,const char * = 0);
%End
- QHBoxLayout(int = -1,const char * = 0);
+ TQHBoxLayout(int = -1,const char * = 0);
private:
-%If (Qt_3_1_0 -)
- QHBoxLayout(const QHBoxLayout &);
+%If (TQt_3_1_0 -)
+ TQHBoxLayout(const TQHBoxLayout &);
%End
};
-class QVBoxLayout : QBoxLayout
+class TQVBoxLayout : TQBoxLayout
{
%TypeHeaderCode
#include <qlayout.h>
%End
public:
- QVBoxLayout(QWidget * /TransferThis/,int = 0,int = -1,const char * = 0);
-%If (Qt_2_00 -)
- QVBoxLayout(QLayout * /TransferThis/,int = -1,const char * = 0);
+ TQVBoxLayout(TQWidget * /TransferThis/,int = 0,int = -1,const char * = 0);
+%If (TQt_2_00 -)
+ TQVBoxLayout(TQLayout * /TransferThis/,int = -1,const char * = 0);
%End
- QVBoxLayout(int = -1,const char * = 0);
+ TQVBoxLayout(int = -1,const char * = 0);
private:
-%If (Qt_3_1_0 -)
- QVBoxLayout(const QVBoxLayout &);
+%If (TQt_3_1_0 -)
+ TQVBoxLayout(const TQVBoxLayout &);
%End
};
diff --git a/sip/qt/qlcdnumber.sip b/sip/qt/qlcdnumber.sip
index ae250fd..4515a68 100644
--- a/sip/qt/qlcdnumber.sip
+++ b/sip/qt/qlcdnumber.sip
@@ -1,45 +1,45 @@
-// This is the SIP interface definition for QLCDNumber.
+// This is the SIP interface definition for TQLCDNumber.
//
// 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>QLCDNumber</Title>
+<Sect2><Title>TQLCDNumber</Title>
<Para>
-<Literal>QLCDNumber</Literal> is fully implemented.
+<Literal>TQLCDNumber</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QLCDNumber : QFrame
+class TQLCDNumber : TQFrame
{
%TypeHeaderCode
#include <qlcdnumber.h>
%End
public:
- QLCDNumber(QWidget * /TransferThis/ = 0,const char * = 0);
- QLCDNumber(uint,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQLCDNumber(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQLCDNumber(uint,TQWidget * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
enum Mode {
HEX,
DEC,
@@ -47,7 +47,7 @@ public:
BIN
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
enum Mode {
Hex, HEX = Hex,
Dec, DEC = Dec,
@@ -65,10 +65,10 @@ public:
bool smallDecimalPoint() const;
int numDigits() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setNumDigits(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setNumDigits(int);
%End
@@ -76,46 +76,46 @@ public:
bool checkOverflow(double) const;
Mode mode() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setMode(Mode);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setMode(Mode);
%End
SegmentStyle segmentStyle() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setSegmentStyle(SegmentStyle);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setSegmentStyle(SegmentStyle);
%End
double value() const;
int intValue() const;
- QSize sizeHint() const;
-%If (Qt_2_00 - Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+ TQSize sizeHint() const;
+%If (TQt_2_00 - TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
public slots:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void display(const char *);
%End
-%If (Qt_2_00 -)
- void display(const QString &);
+%If (TQt_2_00 -)
+ void display(const TQString &);
%End
void display(int /Constrained/);
void display(double);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setHexMode();
void setDecMode();
void setOctMode();
void setBinMode();
void setSmallDecimalPoint(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setHexMode();
virtual void setDecMode();
virtual void setOctMode();
@@ -127,11 +127,11 @@ signals:
void overflow();
protected:
-%If (- Qt_2_00)
- void resizeEvent(QResizeEvent *);
+%If (- TQt_2_00)
+ void resizeEvent(TQResizeEvent *);
%End
- void drawContents(QPainter *);
+ void drawContents(TQPainter *);
private:
- QLCDNumber(const QLCDNumber &);
+ TQLCDNumber(const TQLCDNumber &);
};
diff --git a/sip/qt/qlibrary.sip b/sip/qt/qlibrary.sip
index cb9813a..89ce16a 100644
--- a/sip/qt/qlibrary.sip
+++ b/sip/qt/qlibrary.sip
@@ -1,47 +1,47 @@
-// This is the SIP interface definition for QLibrary.
+// This is the SIP interface definition for TQLibrary.
//
// 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>QLibrary (Qt v3+)</Title>
+<Sect2><Title>TQLibrary (TQt v3+)</Title>
<Para>
-<Literal>QLibrary</Literal> is fully implemented.
+<Literal>TQLibrary</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QLibrary
+class TQLibrary
{
%TypeHeaderCode
#include <qlibrary.h>
%End
public:
- QLibrary(const QString &);
+ TQLibrary(const TQString &);
void *resolve(const char *);
- static void *resolve(const QString &,const char *);
+ static void *resolve(const TQString &,const char *);
bool load();
virtual bool unload();
@@ -50,10 +50,10 @@ public:
bool autoUnload() const;
void setAutoUnload(bool);
- QString library() const;
+ TQString library() const;
private:
- QLibrary(const QLibrary &);
+ TQLibrary(const TQLibrary &);
};
%End
diff --git a/sip/qt/qlineedit.sip b/sip/qt/qlineedit.sip
index 47bd3fa..dfe7880 100644
--- a/sip/qt/qlineedit.sip
+++ b/sip/qt/qlineedit.sip
@@ -1,35 +1,35 @@
-// This is the SIP interface definition for QLineEdit.
+// This is the SIP interface definition for TQLineEdit.
//
// 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>QLineEdit</Title>
+<Sect2><Title>TQLineEdit</Title>
<FuncSynopsis>
<FuncDef>int <Function>characterAt</Function></FuncDef>
<ParamDef>int <Parameter>xpos</Parameter></ParamDef>
- <ParamDef>QChar *<Parameter>chr</Parameter></ParamDef>
+ <ParamDef>TQChar *<Parameter>chr</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes only the <Literal>xpos</Literal> parameter and returns the int
-result and the <Literal>chr</Literal> value as a tuple. (Qt v3+)
+result and the <Literal>chr</Literal> value as a tuple. (TQt v3+)
</Para>
<FuncSynopsis>
@@ -37,7 +37,7 @@ result and the <Literal>chr</Literal> value as a tuple. (Qt v3+)
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-This has been renamed <Literal>delChar</Literal> in Python. (Qt v2+)
+This has been renamed <Literal>delChar</Literal> in Python. (TQt v2+)
</Para>
<FuncSynopsis>
@@ -48,31 +48,31 @@ This has been renamed <Literal>delChar</Literal> in Python. (Qt v2+)
<Para>
This takes no parameters and returns the bool result and the
<Literal>start</Literal> and <Literal>end</Literal> values as a tuple.
-(Qt v3+)
+(TQt v3+)
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QLineEdit : QFrame
+class TQLineEdit : TQFrame
{
%TypeHeaderCode
#include <qlineedit.h>
%End
public:
- QLineEdit(QWidget * /TransferThis/,const char * = 0);
- QLineEdit(const QString &,QWidget * /TransferThis/,const char * = 0);
-%If (Qt_3_2_0 -)
- QLineEdit(const QString &,const QString &,QWidget * /TransferThis/,
+ TQLineEdit(TQWidget * /TransferThis/,const char * = 0);
+ TQLineEdit(const TQString &,TQWidget * /TransferThis/,const char * = 0);
+%If (TQt_3_2_0 -)
+ TQLineEdit(const TQString &,const TQString &,TQWidget * /TransferThis/,
const char * = 0);
%End
- QString text() const;
+ TQString text() const;
- QString displayText() const;
+ TQString displayText() const;
int maxLength() const;
@@ -88,14 +88,14 @@ public:
bool isReadOnly() const;
- const QValidator *validator() const;
+ const TQValidator *validator() const;
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
int cursorPosition() const;
// Obsolete.
- bool validateAndSet(const QString &,int,int,int);
+ bool validateAndSet(const TQString &,int,int,int);
int alignment() const;
@@ -108,7 +108,7 @@ public:
void home(bool);
void end(bool);
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
bool isModified() const;
void clearModified();
%End
@@ -119,8 +119,8 @@ public:
void setEdited(bool);
bool hasSelectedText() const;
- QString selectedText() const;
-%If (Qt_3_2_0 -)
+ TQString selectedText() const;
+%If (TQt_3_2_0 -)
int selectionStart() const;
%End
@@ -129,18 +129,18 @@ public:
bool dragEnabled() const;
-%If (Qt_3_2_0 -)
- QString inputMask() const;
- void setInputMask(const QString &);
+%If (TQt_3_2_0 -)
+ TQString inputMask() const;
+ void setInputMask(const TQString &);
bool hasAcceptableInput() const;
%End
public slots:
- virtual void setText(const QString &);
+ virtual void setText(const TQString &);
virtual void selectAll();
virtual void deselect();
virtual void clearValidator();
- virtual void insert(const QString &);
+ virtual void insert(const TQString &);
virtual void clear();
virtual void undo();
virtual void redo();
@@ -148,13 +148,13 @@ public slots:
virtual void setFrame(bool);
virtual void setEchoMode(EchoMode);
virtual void setReadOnly(bool);
- virtual void setValidator(const QValidator *);
- virtual void setFont(const QFont &);
- virtual void setPalette(const QPalette &);
+ virtual void setValidator(const TQValidator *);
+ virtual void setFont(const TQFont &);
+ virtual void setPalette(const TQPalette &);
virtual void setSelection(int,int);
virtual void setCursorPosition(int);
virtual void setAlignment(int);
-%If (Qt_CLIPBOARD)
+%If (TQt_CLIPBOARD)
virtual void cut();
virtual void copy() const;
virtual void paste();
@@ -162,53 +162,53 @@ public slots:
virtual void setDragEnabled(bool);
signals:
- void textChanged(const QString &);
+ void textChanged(const TQString &);
void returnPressed();
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void lostFocus();
%End
void selectionChanged();
protected:
- bool event(QEvent *);
- void mousePressEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseDoubleClickEvent(QMouseEvent *);
- void keyPressEvent(QKeyEvent *);
- void imStartEvent(QIMEvent *);
- void imComposeEvent(QIMEvent *);
- void imEndEvent(QIMEvent *);
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
- void resizeEvent(QResizeEvent *);
- void drawContents(QPainter *);
-%If (Qt_DRAGANDDROP)
- void dragEnterEvent(QDragEnterEvent *);
- void dragMoveEvent(QDragMoveEvent *);
- void dragLeaveEvent(QDragLeaveEvent *);
- void dropEvent(QDropEvent *);
-%End
- void contextMenuEvent(QContextMenuEvent *);
- virtual QPopupMenu *createPopupMenu() /Factory/;
+ bool event(TQEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseDoubleClickEvent(TQMouseEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void imStartEvent(TQIMEvent *);
+ void imComposeEvent(TQIMEvent *);
+ void imEndEvent(TQIMEvent *);
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void drawContents(TQPainter *);
+%If (TQt_DRAGANDDROP)
+ void dragEnterEvent(TQDragEnterEvent *);
+ void dragMoveEvent(TQDragMoveEvent *);
+ void dragLeaveEvent(TQDragLeaveEvent *);
+ void dropEvent(TQDropEvent *);
+%End
+ void contextMenuEvent(TQContextMenuEvent *);
+ virtual TQPopupMenu *createPopupMenu() /Factory/;
void windowActivationChange(bool);
public:
// These appeared in v3.0.2 but defined as incompatible 3.0 addons,
// until v3.1.0. v3.2.0 then defined them as internal and obsolete.
-%If (Qt_3_1_0 -)
- void setPasswordChar(QChar);
- QChar passwordChar() const;
+%If (TQt_3_1_0 -)
+ void setPasswordChar(TQChar);
+ TQChar passwordChar() const;
%End
// Obsolete.
SIP_PYTUPLE characterAt(int) const;
%MethodCode
int res;
- QChar *chr;
+ TQChar *chr;
Py_BEGIN_ALLOW_THREADS
- chr = new QChar();
+ chr = new TQChar();
res = sipCpp -> characterAt(a0,chr);
Py_END_ALLOW_THREADS
@@ -219,50 +219,50 @@ public:
bool getSelection(int *,int *);
private:
- QLineEdit(const QLineEdit &);
+ TQLineEdit(const TQLineEdit &);
};
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
-class QLineEdit : QWidget
+class TQLineEdit : TQWidget
{
%TypeHeaderCode
#include <qlineedit.h>
%End
public:
-%If (- Qt_2_00)
- QLineEdit(QWidget * /TransferThis/ = 0,const char * = 0);
+%If (- TQt_2_00)
+ TQLineEdit(TQWidget * /TransferThis/ = 0,const char * = 0);
%End
-%If (Qt_2_00 -)
- QLineEdit(QWidget * /TransferThis/,const char * = 0);
- QLineEdit(const QString &,QWidget * /TransferThis/,const char * = 0);
+%If (TQt_2_00 -)
+ TQLineEdit(TQWidget * /TransferThis/,const char * = 0);
+ TQLineEdit(const TQString &,TQWidget * /TransferThis/,const char * = 0);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *text() const;
%End
-%If (Qt_2_00 -)
- QString text() const;
+%If (TQt_2_00 -)
+ TQString text() const;
- QString displayText() const;
+ TQString displayText() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setMaxLength(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setMaxLength(int);
%End
int maxLength() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setFrame(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setFrame(bool);
%End
bool frame() const;
@@ -273,59 +273,59 @@ public:
Password
};
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setEchoMode(EchoMode);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setEchoMode(EchoMode);
%End
EchoMode echoMode() const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setReadOnly(bool);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
bool isReadOnly() const;
%End
-%If (- Qt_2_00)
- void setValidator(QValidator *);
- QValidator *validator() const;
+%If (- TQt_2_00)
+ void setValidator(TQValidator *);
+ TQValidator *validator() const;
%End
-%If (Qt_2_00 -)
- virtual void setValidator(QValidator *);
+%If (TQt_2_00 -)
+ virtual void setValidator(TQValidator *);
%End
-%If (Qt_2_00 -)
- const QValidator *validator() const;
+%If (TQt_2_00 -)
+ const TQValidator *validator() const;
%End
- QSize sizeHint() const;
-%If (Qt_2_00 -)
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+%If (TQt_2_00 -)
+ TQSize minimumSizeHint() const;
%End
-%If (Qt_2_00 -)
- QSizePolicy sizePolicy() const;
+%If (TQt_2_00 -)
+ TQSizePolicy sizePolicy() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setCursorPosition(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setCursorPosition(int);
%End
int cursorPosition() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
bool validateAndSet(const char *,int,int,int);
%End
-%If (Qt_2_00 -)
- bool validateAndSet(const QString &,int,int,int);
+%If (TQt_2_00 -)
+ bool validateAndSet(const TQString &,int,int,int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
int alignment() const;
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void cursorLeft(bool,int = 1);
void cursorRight(bool,int = 1);
void cursorWordForward(bool);
@@ -339,89 +339,89 @@ public:
bool edited() const;
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
bool hasMarkedText() const;
- QString markedText() const;
+ TQString markedText() const;
%End
-%If (Qt_CLIPBOARD)
+%If (TQt_CLIPBOARD)
void cut();
void copy() const;
void paste();
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setEnabled(bool);
- void setFont(const QFont &);
- void setPalette(const QPalette &);
+ void setFont(const TQFont &);
+ void setPalette(const TQPalette &);
void setSelection(int,int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setEnabled(bool);
- virtual void setFont(const QFont &);
- virtual void setPalette(const QPalette &);
+ virtual void setFont(const TQFont &);
+ virtual void setPalette(const TQPalette &);
virtual void setSelection(int,int);
void setAlignment(int);
%End
public slots:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setText(const char *);
%End
-%If (Qt_2_00 -)
- virtual void setText(const QString &);
+%If (TQt_2_00 -)
+ virtual void setText(const TQString &);
%End
void selectAll();
void deselect();
void clearValidator();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void insert(const char *);
%End
-%If (Qt_2_00 -)
- void insert(const QString &);
+%If (TQt_2_00 -)
+ void insert(const TQString &);
%End
void clear();
signals:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void textChanged(const char *);
%End
-%If (Qt_2_00 -)
- void textChanged(const QString &);
+%If (TQt_2_00 -)
+ void textChanged(const TQString &);
%End
void returnPressed();
protected:
-%If (Qt_2_2_0 -)
- bool event(QEvent *);
-%End
- void mousePressEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseDoubleClickEvent(QMouseEvent *);
- void keyPressEvent(QKeyEvent *);
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
- void paintEvent(QPaintEvent *);
- void resizeEvent(QResizeEvent *);
- void leaveEvent(QEvent *);
+%If (TQt_2_2_0 -)
+ bool event(TQEvent *);
+%End
+ void mousePressEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseDoubleClickEvent(TQMouseEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
+ void paintEvent(TQPaintEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void leaveEvent(TQEvent *);
void repaintArea(int,int);
-%If (- Qt_2_00)
- void timerEvent(QTimerEvent *);
- bool event(QEvent *);
+%If (- TQt_2_00)
+ void timerEvent(TQTimerEvent *);
+ bool event(TQEvent *);
bool hasMarkedText() const;
- QString markedText() const;
+ TQString markedText() const;
%End
-%If (Qt_2_00 -)
-%If (Qt_DRAGANDDROP)
- void dragEnterEvent(QDragEnterEvent *);
- void dropEvent(QDropEvent *);
+%If (TQt_2_00 -)
+%If (TQt_DRAGANDDROP)
+ void dragEnterEvent(TQDragEnterEvent *);
+ void dropEvent(TQDropEvent *);
%End
%End
private:
- QLineEdit(const QLineEdit &);
+ TQLineEdit(const TQLineEdit &);
};
%End
diff --git a/sip/qt/qlist.sip b/sip/qt/qlist.sip
index 8b5750c..3b17360 100644
--- a/sip/qt/qlist.sip
+++ b/sip/qt/qlist.sip
@@ -1,40 +1,40 @@
-// This is the SIP interface definition for all types based on the QList
+// This is the SIP interface definition for all types based on the TQList
// template.
//
// 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>QList&lt;type&gt; (Qt v2)</Title>
+<Sect2><Title>TQList&lt;type&gt; (TQt v2)</Title>
<Para>
-Types based on the <Literal>QList</Literal> template are automatically
+Types based on the <Literal>TQList</Literal> template are automatically
converted to and from Python lists of the type.
</Para>
</Sect2>
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
+%If (TQt_2_1_0 - TQt_3_0_0)
template<Type>
-%MappedType QList<Type>
+%MappedType TQList<Type>
{
%TypeHeaderCode
#include <qlist.h>
@@ -85,7 +85,7 @@ template<Type>
return 1;
}
- QList<Type> *ql = new QList<Type>;
+ TQList<Type> *ql = new TQList<Type>;
for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
{
diff --git a/sip/qt/qlistbox.sip b/sip/qt/qlistbox.sip
index 1f755d8..e19d8ea 100644
--- a/sip/qt/qlistbox.sip
+++ b/sip/qt/qlistbox.sip
@@ -1,28 +1,28 @@
-// This is the SIP interface definition for QListBox, QListBoxItem,
-// QListBoxPixmap and QListBoxText.
+// This is the SIP interface definition for TQListBox, TQListBoxItem,
+// TQListBoxPixmap and TQListBoxText.
//
// 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>QListBox</Title>
+<Sect2><Title>TQListBox</Title>
<FuncSynopsis>
<FuncDef>bool <Function>itemYPos</Function></FuncDef>
<ParamDef>int <Parameter>index</Parameter></ParamDef>
@@ -31,31 +31,31 @@
<Para>
This takes the <Literal>index</Literal> parameter and returns a tuple
containing the <Literal>bool</Literal> result and <Literal>yPos</Literal>.
-(Qt v1.x)
+(TQt v1.x)
</Para>
</Sect2>
-<Sect2><Title>QListBoxItem</Title>
+<Sect2><Title>TQListBoxItem</Title>
<Para>
-<Literal>QListBoxItem</Literal> is fully implemented.
+<Literal>TQListBoxItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QListBoxPixmap</Title>
+<Sect2><Title>TQListBoxPixmap</Title>
<Para>
-<Literal>QListBoxPixmap</Literal> is fully implemented.
+<Literal>TQListBoxPixmap</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QListBoxText</Title>
+<Sect2><Title>TQListBoxText</Title>
<Para>
-<Literal>QListBoxText</Literal> is fully implemented.
+<Literal>TQListBoxText</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
%ModuleHeaderCode
#include <qlistbox.h>
@@ -68,31 +68,31 @@ const int LBI_Pixmap;
const int LBI_UserDefined;
-class QListBox : QTableView
+class TQListBox : TQTableView
{
%TypeHeaderCode
#include <qlistbox.h>
%End
public:
- QListBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+ TQListBox(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
- void setFont(const QFont &);
+ void setFont(const TQFont &);
uint count() const;
- void insertStrList(const QStrList *,int = -1);
+ void insertStrList(const TQStrList *,int = -1);
// void insertStrList(const char **,int = -1,int = -1);
- void insertItem(const QListBoxItem * /Transfer/,int = -1);
+ void insertItem(const TQListBoxItem * /Transfer/,int = -1);
void insertItem(const char *,int = -1);
- void insertItem(const QPixmap &,int = -1);
- void inSort(const QListBoxItem *);
+ void insertItem(const TQPixmap &,int = -1);
+ void inSort(const TQListBoxItem *);
void inSort(const char *);
void removeItem(int);
void clear();
const char *text(int) const;
- const QPixmap *pixmap(int) const;
- void changeItem(const QListBoxItem * /Transfer/,int);
+ const TQPixmap *pixmap(int) const;
+ void changeItem(const TQListBoxItem * /Transfer/,int);
void changeItem(const char *,int);
- void changeItem(const QPixmap &,int);
+ void changeItem(const TQPixmap &,int);
bool autoUpdate() const;
void setAutoUpdate(bool);
int numItemsVisible() const;
@@ -124,7 +124,7 @@ public:
void setMultiSelection(bool);
void setSelected(int,bool);
bool isSelected(int) const;
- QSize sizeHint() const;
+ TQSize sizeHint() const;
public slots:
void clearSelection();
@@ -137,19 +137,19 @@ signals:
void selectionChanged();
protected:
- QListBoxItem *item(int) const;
+ TQListBoxItem *item(int) const;
bool itemVisible(int);
int cellHeight(int = 0);
- void paintCell(QPainter *,int,int);
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseDoubleClickEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
- void keyPressEvent(QKeyEvent *);
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
- void resizeEvent(QResizeEvent *);
- void timerEvent(QTimerEvent *);
+ void paintCell(TQPainter *,int,int);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseDoubleClickEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void timerEvent(TQTimerEvent *);
int findItem(int) const;
bool itemYPos(int,int *) const;
void updateItem(int,bool = 1);
@@ -158,67 +158,67 @@ protected:
void toggleCurrentItem();
private:
- QListBox(const QListBox &);
+ TQListBox(const TQListBox &);
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QListBox : QScrollView
+class TQListBox : TQScrollView
{
%TypeHeaderCode
#include <qlistbox.h>
%End
public:
- QListBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+ TQListBox(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
- virtual void setFont(const QFont &);
+ virtual void setFont(const TQFont &);
uint count() const;
- void insertStringList(const QStringList &,int = -1);
- void insertStrList(const QStrList *,int = -1);
-// void insertStrList(const QStrList &,int = -1);
+ void insertStringList(const TQStringList &,int = -1);
+ void insertStrList(const TQStrList *,int = -1);
+// void insertStrList(const TQStrList &,int = -1);
// void insertStrList(const char **,int = -1,int = -1);
- void insertItem(const QListBoxItem * /Transfer/,int = -1);
-%If (Qt_2_1_0 -)
- void insertItem(const QListBoxItem * /Transfer/,const QListBoxItem *);
+ void insertItem(const TQListBoxItem * /Transfer/,int = -1);
+%If (TQt_2_1_0 -)
+ void insertItem(const TQListBoxItem * /Transfer/,const TQListBoxItem *);
%End
- void insertItem(const QString &,int = -1);
- void insertItem(const QPixmap &,int = -1);
-%If (Qt_2_1_0 -)
- void insertItem(const QPixmap &,const QString &,int = -1);
+ void insertItem(const TQString &,int = -1);
+ void insertItem(const TQPixmap &,int = -1);
+%If (TQt_2_1_0 -)
+ void insertItem(const TQPixmap &,const TQString &,int = -1);
%End
void removeItem(int);
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
void clear();
%End
- QString text(int) const;
- const QPixmap *pixmap(int) const;
+ TQString text(int) const;
+ const TQPixmap *pixmap(int) const;
- void changeItem(const QListBoxItem * /Transfer/,int);
- void changeItem(const QString &,int);
- void changeItem(const QPixmap &,int);
-%If (Qt_2_1_0 -)
- void changeItem(const QPixmap &,const QString &,int);
+ void changeItem(const TQListBoxItem * /Transfer/,int);
+ void changeItem(const TQString &,int);
+ void changeItem(const TQPixmap &,int);
+%If (TQt_2_1_0 -)
+ void changeItem(const TQPixmap &,const TQString &,int);
%End
- void takeItem(const QListBoxItem * /TransferBack/);
+ void takeItem(const TQListBoxItem * /TransferBack/);
int numItemsVisible() const;
int currentItem() const;
-%If (Qt_2_1_0 -)
- QString currentText() const;
+%If (TQt_2_1_0 -)
+ TQString currentText() const;
%End
virtual void setCurrentItem(int);
- virtual void setCurrentItem(QListBoxItem *);
+ virtual void setCurrentItem(TQListBoxItem *);
void centerCurrentItem();
int topItem() const;
virtual void setTopItem(int);
@@ -226,14 +226,14 @@ public:
long maxItemWidth() const;
-%If (- Qt_2_1_0)
+%If (- TQt_2_1_0)
enum SelectionMode {
Single,
Multi,
Extended
};
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
enum SelectionMode {
Single,
Multi,
@@ -248,31 +248,31 @@ public:
void setMultiSelection(bool);
bool isMultiSelection() const;
- virtual void setSelected(QListBoxItem *,bool);
+ virtual void setSelected(TQListBoxItem *,bool);
void setSelected(int,bool);
bool isSelected(int) const;
- bool isSelected(QListBoxItem *) const;
-%If (Qt_3_1_0 -)
- QListBoxItem *selectedItem() const;
+ bool isSelected(TQListBoxItem *) const;
+%If (TQt_3_1_0 -)
+ TQListBoxItem *selectedItem() const;
%End
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
- QListBoxItem *item(int) const;
- int index(const QListBoxItem *) const;
-%If (Qt_2_1_0 - Qt_3_0_0)
- QListBoxItem *findItem(const QString &) const;
+ TQListBoxItem *item(int) const;
+ int index(const TQListBoxItem *) const;
+%If (TQt_2_1_0 - TQt_3_0_0)
+ TQListBoxItem *findItem(const TQString &) const;
%End
-%If (Qt_3_0_0 -)
- QListBoxItem *findItem(const QString &,
+%If (TQt_3_0_0 -)
+ TQListBoxItem *findItem(const TQString &,
ComparisonFlags = BeginsWith) const;
%End
void triggerUpdate(bool);
bool itemVisible(int);
- bool itemVisible(const QListBoxItem *);
+ bool itemVisible(const TQListBoxItem *);
enum LayoutMode {
FixedNumber,
@@ -298,30 +298,30 @@ public:
bool variableHeight() const;
virtual void setVariableHeight(bool);
- void viewportPaintEvent(QPaintEvent *);
+ void viewportPaintEvent(TQPaintEvent *);
int itemHeight(int = 0) const;
- QListBoxItem *itemAt(QPoint) const;
+ TQListBoxItem *itemAt(TQPoint) const;
- QRect itemRect(QListBoxItem *) const;
+ TQRect itemRect(TQListBoxItem *) const;
-%If (Qt_2_1_0 -)
- QListBoxItem *firstItem() const;
+%If (TQt_2_1_0 -)
+ TQListBoxItem *firstItem() const;
void sort(bool = 1);
%End
public slots:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void clear();
%End
virtual void ensureCurrentVisible();
virtual void clearSelection();
-%If (Qt_2_1_0 - Qt_3_0_0)
+%If (TQt_2_1_0 - TQt_3_0_0)
void selectAll(bool);
void invertSelection();
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void selectAll(bool);
virtual void invertSelection();
%End
@@ -329,243 +329,243 @@ public slots:
signals:
void highlighted(int);
void selected(int);
- void highlighted(const QString &);
- void selected(const QString &);
- void highlighted(QListBoxItem *);
- void selected(QListBoxItem *);
+ void highlighted(const TQString &);
+ void selected(const TQString &);
+ void highlighted(TQListBoxItem *);
+ void selected(TQListBoxItem *);
void selectionChanged();
-%If (Qt_2_1_0 -)
- void selectionChanged(QListBoxItem *);
- void currentChanged(QListBoxItem *);
- void clicked(QListBoxItem *);
- void clicked(QListBoxItem *,const QPoint &);
- void pressed(QListBoxItem *);
- void pressed(QListBoxItem *,const QPoint &);
+%If (TQt_2_1_0 -)
+ void selectionChanged(TQListBoxItem *);
+ void currentChanged(TQListBoxItem *);
+ void clicked(TQListBoxItem *);
+ void clicked(TQListBoxItem *,const TQPoint &);
+ void pressed(TQListBoxItem *);
+ void pressed(TQListBoxItem *,const TQPoint &);
- void doubleClicked(QListBoxItem *);
- void returnPressed(QListBoxItem *);
- void rightButtonClicked(QListBoxItem *,const QPoint &);
- void rightButtonPressed(QListBoxItem *,const QPoint &);
- void mouseButtonPressed(int,QListBoxItem *,const QPoint &);
- void mouseButtonClicked(int,QListBoxItem *,const QPoint &);
+ void doubleClicked(TQListBoxItem *);
+ void returnPressed(TQListBoxItem *);
+ void rightButtonClicked(TQListBoxItem *,const TQPoint &);
+ void rightButtonPressed(TQListBoxItem *,const TQPoint &);
+ void mouseButtonPressed(int,TQListBoxItem *,const TQPoint &);
+ void mouseButtonClicked(int,TQListBoxItem *,const TQPoint &);
%End
-%If (Qt_3_0_0 -)
- void contextMenuRequested(QListBoxItem *,const QPoint &);
+%If (TQt_3_0_0 -)
+ void contextMenuRequested(TQListBoxItem *,const TQPoint &);
%End
-%If (Qt_2_1_0 -)
- void onItem(QListBoxItem *);
+%If (TQt_2_1_0 -)
+ void onItem(TQListBoxItem *);
void onViewport();
%End
protected:
-%If (- Qt_3_0_0)
- void viewportMousePressEvent(QMouseEvent *);
- void viewportMouseReleaseEvent(QMouseEvent *);
- void viewportMouseDoubleClickEvent(QMouseEvent *);
- void viewportMouseMoveEvent(QMouseEvent *);
+%If (- TQt_3_0_0)
+ void viewportMousePressEvent(TQMouseEvent *);
+ void viewportMouseReleaseEvent(TQMouseEvent *);
+ void viewportMouseDoubleClickEvent(TQMouseEvent *);
+ void viewportMouseMoveEvent(TQMouseEvent *);
%End
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseDoubleClickEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
-%If (Qt_3_0_0 -)
- void contentsContextMenuEvent(QContextMenuEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseDoubleClickEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+%If (TQt_3_0_0 -)
+ void contentsContextMenuEvent(TQContextMenuEvent *);
%End
- void keyPressEvent(QKeyEvent *);
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
- void resizeEvent(QResizeEvent *);
- void showEvent(QShowEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void showEvent(TQShowEvent *);
-%If (Qt_3_0_0 -)
- bool eventFilter(QObject *,QEvent *);
+%If (TQt_3_0_0 -)
+ bool eventFilter(TQObject *,TQEvent *);
%End
void updateItem(int);
- void updateItem(QListBoxItem *);
+ void updateItem(TQListBoxItem *);
- virtual void paintCell(QPainter *,int,int);
+ virtual void paintCell(TQPainter *,int,int);
void toggleCurrentItem();
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
bool isRubberSelecting() const;
%End
void doLayout() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void windowActivationChange(bool);
%End
protected slots:
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void clearInputString();
%End
private:
- QListBox(const QListBox &);
+ TQListBox(const TQListBox &);
};
%End
-class QListBoxItem
+class TQListBoxItem
{
%TypeHeaderCode
#include <qlistbox.h>
%End
public:
-%If (- Qt_2_00)
- QListBoxItem();
+%If (- TQt_2_00)
+ TQListBoxItem();
%End
-%If (Qt_2_00 -)
- QListBoxItem(QListBox * /TransferThis/ = 0);
+%If (TQt_2_00 -)
+ TQListBoxItem(TQListBox * /TransferThis/ = 0);
%End
-%If (Qt_2_1_0 -)
- QListBoxItem(QListBox * /TransferThis/,QListBoxItem *);
+%If (TQt_2_1_0 -)
+ TQListBoxItem(TQListBox * /TransferThis/,TQListBoxItem *);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
virtual const char *text() const;
%End
-%If (Qt_2_00 -)
- virtual QString text() const;
+%If (TQt_2_00 -)
+ virtual TQString text() const;
%End
- virtual const QPixmap *pixmap() const;
+ virtual const TQPixmap *pixmap() const;
-%If (- Qt_2_00)
- virtual int height(const QListBox *) const = 0;
- virtual int width(const QListBox *) const = 0;
+%If (- TQt_2_00)
+ virtual int height(const TQListBox *) const = 0;
+ virtual int width(const TQListBox *) const = 0;
%End
-%If (Qt_2_00 -)
- virtual int height(const QListBox *) const;
- virtual int width(const QListBox *) const;
+%If (TQt_2_00 -)
+ virtual int height(const TQListBox *) const;
+ virtual int width(const TQListBox *) const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
bool selected() const;
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
+%If (TQt_2_1_0 - TQt_3_0_0)
bool current() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isSelected() const;
bool isCurrent() const;
%End
-%If (Qt_2_00 -)
- QListBox *listBox() const;
+%If (TQt_2_00 -)
+ TQListBox *listBox() const;
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setSelectable(bool);
bool isSelectable() const;
- QListBoxItem *next() const;
- QListBoxItem *prev() const;
+ TQListBoxItem *next() const;
+ TQListBoxItem *prev() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual int rtti() const;
%End
protected:
- virtual void paint(QPainter *) = 0;
-%If (- Qt_2_00)
+ virtual void paint(TQPainter *) = 0;
+%If (- TQt_2_00)
void setText(const char *);
%End
-%If (Qt_2_00 -)
- virtual void setText(const QString &);
+%If (TQt_2_00 -)
+ virtual void setText(const TQString &);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setCustomHighlighting(bool);
%End
private:
- QListBoxItem(const QListBoxItem &);
+ TQListBoxItem(const TQListBoxItem &);
};
-class QListBoxText : QListBoxItem
+class TQListBoxText : TQListBoxItem
{
%TypeHeaderCode
#include <qlistbox.h>
%End
public:
-%If (- Qt_2_00)
- QListBoxText(const char * = 0);
+%If (- TQt_2_00)
+ TQListBoxText(const char * = 0);
%End
-%If (Qt_2_00 -)
- QListBoxText(QListBox * /TransferThis/,
- const QString & = QString::null);
- QListBoxText(const QString & = QString::null);
+%If (TQt_2_00 -)
+ TQListBoxText(TQListBox * /TransferThis/,
+ const TQString & = TQString::null);
+ TQListBoxText(const TQString & = TQString::null);
%End
-%If (Qt_2_1_0 -)
- QListBoxText(QListBox * /TransferThis/,const QString &,QListBoxItem *);
+%If (TQt_2_1_0 -)
+ TQListBoxText(TQListBox * /TransferThis/,const TQString &,TQListBoxItem *);
%End
-%If (- Qt_2_00)
- void paint(QPainter *);
+%If (- TQt_2_00)
+ void paint(TQPainter *);
%End
- int height(const QListBox *) const;
- int width(const QListBox *) const;
+ int height(const TQListBox *) const;
+ int width(const TQListBox *) const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int rtti() const;
%End
protected:
-%If (Qt_2_00 -)
- void paint(QPainter *);
+%If (TQt_2_00 -)
+ void paint(TQPainter *);
%End
private:
- QListBoxText(const QListBoxText &);
+ TQListBoxText(const TQListBoxText &);
};
-class QListBoxPixmap : QListBoxItem
+class TQListBoxPixmap : TQListBoxItem
{
%TypeHeaderCode
#include <qlistbox.h>
%End
public:
-%If (Qt_2_00 -)
- QListBoxPixmap(QListBox * /TransferThis/,const QPixmap &);
+%If (TQt_2_00 -)
+ TQListBoxPixmap(TQListBox * /TransferThis/,const TQPixmap &);
%End
- QListBoxPixmap(const QPixmap &);
-%If (Qt_2_1_0 -)
- QListBoxPixmap(QListBox * /TransferThis/,const QPixmap &,
- QListBoxItem *);
- QListBoxPixmap(QListBox * /TransferThis/,const QPixmap &,
- const QString &);
- QListBoxPixmap(const QPixmap &,const QString &);
- QListBoxPixmap(QListBox * /TransferThis/,const QPixmap &,
- const QString &,QListBoxItem *);
+ TQListBoxPixmap(const TQPixmap &);
+%If (TQt_2_1_0 -)
+ TQListBoxPixmap(TQListBox * /TransferThis/,const TQPixmap &,
+ TQListBoxItem *);
+ TQListBoxPixmap(TQListBox * /TransferThis/,const TQPixmap &,
+ const TQString &);
+ TQListBoxPixmap(const TQPixmap &,const TQString &);
+ TQListBoxPixmap(TQListBox * /TransferThis/,const TQPixmap &,
+ const TQString &,TQListBoxItem *);
%End
- const QPixmap *pixmap() const;
-%If (Qt_2_00 -)
- int height(const QListBox *) const;
- int width(const QListBox *) const;
+ const TQPixmap *pixmap() const;
+%If (TQt_2_00 -)
+ int height(const TQListBox *) const;
+ int width(const TQListBox *) const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int rtti() const;
%End
protected:
- void paint(QPainter *);
-%If (- Qt_2_00)
- int height(const QListBox *) const;
- int width(const QListBox *) const;
+ void paint(TQPainter *);
+%If (- TQt_2_00)
+ int height(const TQListBox *) const;
+ int width(const TQListBox *) const;
%End
private:
- QListBoxPixmap(const QListBoxPixmap &);
+ TQListBoxPixmap(const TQListBoxPixmap &);
};
diff --git a/sip/qt/qlistview.sip b/sip/qt/qlistview.sip
index 2028d1e..d4e1698 100644
--- a/sip/qt/qlistview.sip
+++ b/sip/qt/qlistview.sip
@@ -1,111 +1,111 @@
-// This is the SIP interface definition for QListView, QListViewItem,
-// QCheckListItem and QListViewItemIterator.
+// This is the SIP interface definition for TQListView, TQListViewItem,
+// TQCheckListItem and TQListViewItemIterator.
//
// 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>QListView</Title>
+<Sect2><Title>TQListView</Title>
<Para>
-<Literal>QListView</Literal> is fully implemented.
+<Literal>TQListView</Literal> is fully implemented.
</Para>
<Para>
-Note that to remove a child <Literal>QListViewItem</Literal> you must first
+Note that to remove a child <Literal>TQListViewItem</Literal> you must first
call <Literal>takeItem()</Literal> and then <Literal>del()</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QListViewItem</Title>
+<Sect2><Title>TQListViewItem</Title>
<Para>
-<Literal>QListViewItem</Literal> is fully implemented.
+<Literal>TQListViewItem</Literal> is fully implemented.
</Para>
<Para>
-Note that to remove a child <Literal>QListViewItem</Literal> you must first
+Note that to remove a child <Literal>TQListViewItem</Literal> you must first
call <Literal>takeItem()</Literal> and then <Literal>del()</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QCheckListItem</Title>
+<Sect2><Title>TQCheckListItem</Title>
<Para>
-<Literal>QCheckListItem</Literal> is fully implemented.
+<Literal>TQCheckListItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QListViewItemIterator (Qt v2+)</Title>
+<Sect2><Title>TQListViewItemIterator (TQt v2+)</Title>
<Para>
-<Literal>QListViewItemIterator</Literal> is fully implemented.
+<Literal>TQListViewItemIterator</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QListViewItem
+class TQListViewItem
{
%TypeHeaderCode
#include <qlistview.h>
%End
public:
- QListViewItem(QListView * /TransferThis/);
- QListViewItem(QListViewItem * /TransferThis/);
- QListViewItem(QListView * /TransferThis/,QListViewItem *);
- QListViewItem(QListViewItem * /TransferThis/,QListViewItem *);
+ TQListViewItem(TQListView * /TransferThis/);
+ TQListViewItem(TQListViewItem * /TransferThis/);
+ TQListViewItem(TQListView * /TransferThis/,TQListViewItem *);
+ TQListViewItem(TQListViewItem * /TransferThis/,TQListViewItem *);
- QListViewItem(QListView * /TransferThis/,
+ TQListViewItem(TQListView * /TransferThis/,
const char *,const char * = 0,
const char * = 0,const char * = 0,
const char * = 0,const char * = 0,
const char * = 0,const char * = 0);
- QListViewItem(QListViewItem * /TransferThis/,
+ TQListViewItem(TQListViewItem * /TransferThis/,
const char *,const char * = 0,
const char * = 0,const char * = 0,
const char * = 0,const char * = 0,
const char * = 0,const char * = 0);
- QListViewItem(QListView * /TransferThis/,QListViewItem *,
+ TQListViewItem(TQListView * /TransferThis/,TQListViewItem *,
const char *,const char * = 0,
const char * = 0,const char * = 0,
const char * = 0,const char * = 0,
const char * = 0,const char * = 0);
- QListViewItem(QListViewItem * /TransferThis/,QListViewItem *,
+ TQListViewItem(TQListViewItem * /TransferThis/,TQListViewItem *,
const char *,const char * = 0,
const char * = 0,const char * = 0,
const char * = 0,const char * = 0,
const char * = 0,const char * = 0);
- virtual void insertItem(QListViewItem * /Transfer/);
- virtual void removeItem(QListViewItem * /TransferBack/);
+ virtual void insertItem(TQListViewItem * /Transfer/);
+ virtual void removeItem(TQListViewItem * /TransferBack/);
int height() const;
virtual void invalidateHeight();
int totalHeight() const;
- virtual int width(const QFontMetrics &,const QListView *,int) const;
+ virtual int width(const TQFontMetrics &,const TQListView *,int) const;
void widthChanged(int = -1) const;
int depth() const;
virtual void setText(int,const char *);
virtual const char *text(int) const;
- virtual void setPixmap(int,const QPixmap &);
- virtual const QPixmap *pixmap(int) const;
+ virtual void setPixmap(int,const TQPixmap &);
+ virtual const TQPixmap *pixmap(int) const;
virtual const char *key(int,bool) const;
virtual void sortChildItems(int,bool);
int childCount() const;
@@ -114,17 +114,17 @@ public:
virtual void setup();
virtual void setSelected(bool);
bool isSelected() const;
- virtual void paintCell(QPainter *,const QColorGroup &,int,int,int);
- virtual void paintBranches(QPainter *,const QColorGroup &,int,int,int,
+ virtual void paintCell(TQPainter *,const TQColorGroup &,int,int,int);
+ virtual void paintBranches(TQPainter *,const TQColorGroup &,int,int,int,
GUIStyle);
- virtual void paintFocus(QPainter *,const QColorGroup &,const QRect &);
- QListViewItem *firstChild() const;
- QListViewItem *nextSibling() const;
- QListViewItem *parent() const;
- QListViewItem *itemAbove();
- QListViewItem *itemBelow();
+ virtual void paintFocus(TQPainter *,const TQColorGroup &,const TQRect &);
+ TQListViewItem *firstChild() const;
+ TQListViewItem *nextSibling() const;
+ TQListViewItem *parent() const;
+ TQListViewItem *itemAbove();
+ TQListViewItem *itemBelow();
int itemPos() const;
- QListView *listView() const;
+ TQListView *listView() const;
virtual void setSelectable(bool);
bool isSelectable() const;
virtual void setExpandable(bool);
@@ -139,63 +139,63 @@ protected:
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QListViewItem : Qt
+class TQListViewItem : TQt
{
%TypeHeaderCode
#include <qlistview.h>
%End
public:
- QListViewItem(QListView * /TransferThis/);
- QListViewItem(QListViewItem * /TransferThis/);
- QListViewItem(QListView * /TransferThis/,QListViewItem *);
- QListViewItem(QListViewItem * /TransferThis/,QListViewItem *);
-
- QListViewItem(QListView * /TransferThis/,
- QString,QString = QString::null,
- QString = QString::null,QString = QString::null,
- QString = QString::null,QString = QString::null,
- QString = QString::null,QString = QString::null);
-
- QListViewItem(QListViewItem * /TransferThis/,
- QString,QString = QString::null,
- QString = QString::null,QString = QString::null,
- QString = QString::null,QString = QString::null,
- QString = QString::null,QString = QString::null);
-
- QListViewItem(QListView * /TransferThis/,QListViewItem *,
- QString,QString = QString::null,
- QString = QString::null,QString = QString::null,
- QString = QString::null,QString = QString::null,
- QString = QString::null,QString = QString::null);
-
- QListViewItem(QListViewItem * /TransferThis/,QListViewItem *,
- QString,QString = QString::null,
- QString = QString::null,QString = QString::null,
- QString = QString::null,QString = QString::null,
- QString = QString::null,QString = QString::null);
-
- virtual void insertItem(QListViewItem * /Transfer/);
- virtual void takeItem(QListViewItem * /TransferBack/);
+ TQListViewItem(TQListView * /TransferThis/);
+ TQListViewItem(TQListViewItem * /TransferThis/);
+ TQListViewItem(TQListView * /TransferThis/,TQListViewItem *);
+ TQListViewItem(TQListViewItem * /TransferThis/,TQListViewItem *);
+
+ TQListViewItem(TQListView * /TransferThis/,
+ TQString,TQString = TQString::null,
+ TQString = TQString::null,TQString = TQString::null,
+ TQString = TQString::null,TQString = TQString::null,
+ TQString = TQString::null,TQString = TQString::null);
+
+ TQListViewItem(TQListViewItem * /TransferThis/,
+ TQString,TQString = TQString::null,
+ TQString = TQString::null,TQString = TQString::null,
+ TQString = TQString::null,TQString = TQString::null,
+ TQString = TQString::null,TQString = TQString::null);
+
+ TQListViewItem(TQListView * /TransferThis/,TQListViewItem *,
+ TQString,TQString = TQString::null,
+ TQString = TQString::null,TQString = TQString::null,
+ TQString = TQString::null,TQString = TQString::null,
+ TQString = TQString::null,TQString = TQString::null);
+
+ TQListViewItem(TQListViewItem * /TransferThis/,TQListViewItem *,
+ TQString,TQString = TQString::null,
+ TQString = TQString::null,TQString = TQString::null,
+ TQString = TQString::null,TQString = TQString::null,
+ TQString = TQString::null,TQString = TQString::null);
+
+ virtual void insertItem(TQListViewItem * /Transfer/);
+ virtual void takeItem(TQListViewItem * /TransferBack/);
int height() const;
virtual void invalidateHeight();
int totalHeight() const;
- virtual int width(const QFontMetrics &,const QListView *,int) const;
+ virtual int width(const TQFontMetrics &,const TQListView *,int) const;
void widthChanged(int = -1) const;
int depth() const;
- virtual void setText(int,const QString &);
- virtual QString text(int) const;
+ virtual void setText(int,const TQString &);
+ virtual TQString text(int) const;
- virtual void setPixmap(int,const QPixmap &);
- virtual const QPixmap *pixmap(int) const;
+ virtual void setPixmap(int,const TQPixmap &);
+ virtual const TQPixmap *pixmap(int) const;
- virtual QString key(int,bool) const;
-%If (Qt_3_0_0 -)
- virtual int compare(QListViewItem *,int,bool) const;
+ virtual TQString key(int,bool) const;
+%If (TQt_3_0_0 -)
+ virtual int compare(TQListViewItem *,int,bool) const;
%End
virtual void sortChildItems(int,bool);
@@ -208,26 +208,26 @@ public:
virtual void setSelected(bool);
bool isSelected() const;
- virtual void paintCell(QPainter *,const QColorGroup &,int,int,int);
-%If (- Qt_3_0_0)
- virtual void paintBranches(QPainter *,const QColorGroup &,int,int,int,
+ virtual void paintCell(TQPainter *,const TQColorGroup &,int,int,int);
+%If (- TQt_3_0_0)
+ virtual void paintBranches(TQPainter *,const TQColorGroup &,int,int,int,
GUIStyle);
%End
-%If (Qt_3_0_0 -)
- virtual void paintBranches(QPainter *,const QColorGroup &,int,int,int);
+%If (TQt_3_0_0 -)
+ virtual void paintBranches(TQPainter *,const TQColorGroup &,int,int,int);
%End
- virtual void paintFocus(QPainter *,const QColorGroup &,const QRect &);
+ virtual void paintFocus(TQPainter *,const TQColorGroup &,const TQRect &);
- QListViewItem *firstChild() const;
- QListViewItem *nextSibling() const;
- QListViewItem *parent() const;
+ TQListViewItem *firstChild() const;
+ TQListViewItem *nextSibling() const;
+ TQListViewItem *parent() const;
- QListViewItem *itemAbove();
- QListViewItem *itemBelow();
+ TQListViewItem *itemAbove();
+ TQListViewItem *itemBelow();
int itemPos() const;
- QListView *listView() const;
+ TQListView *listView() const;
virtual void setSelectable(bool);
bool isSelectable() const;
@@ -237,22 +237,22 @@ public:
void repaint() const;
-%If (Qt_2_1_0 - Qt_3_0_0)
+%If (TQt_2_1_0 - TQt_3_0_0)
void sort();
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void sort();
%End
-%If (Qt_2_2_0 -)
- void moveItem(QListViewItem *);
+%If (TQt_2_2_0 -)
+ void moveItem(TQListViewItem *);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void setDragEnabled(bool);
virtual void setDropEnabled(bool);
bool dragEnabled() const;
bool dropEnabled() const;
- virtual bool acceptDrop(const QMimeSource *) const;
+ virtual bool acceptDrop(const TQMimeSource *) const;
void setVisible(bool);
bool isVisible() const;
@@ -275,11 +275,11 @@ protected:
virtual void setHeight(int);
virtual void activate();
-%If (Qt_2_1_0 -)
- bool activatedPos(QPoint &);
+%If (TQt_2_1_0 -)
+ bool activatedPos(TQPoint &);
%End
-%If (Qt_3_0_0 -)
- virtual void dropped(QDropEvent *);
+%If (TQt_3_0_0 -)
+ virtual void dropped(TQDropEvent *);
virtual void dragEntered();
virtual void dragLeft();
virtual void okRename(int);
@@ -292,50 +292,50 @@ protected:
%End
-class QListView : QScrollView
+class TQListView : TQScrollView
{
%TypeHeaderCode
#include <qlistview.h>
%End
public:
-%If (Qt_2_2_0 - Qt_3_0_0)
- QListView(QWidget * /TransferThis/,const char *,WFlags);
+%If (TQt_2_2_0 - TQt_3_0_0)
+ TQListView(TQWidget * /TransferThis/,const char *,WFlags);
%End
-%If (- Qt_3_0_0)
- QListView(QWidget * /TransferThis/ = 0,const char * = 0);
+%If (- TQt_3_0_0)
+ TQListView(TQWidget * /TransferThis/ = 0,const char * = 0);
%End
-%If (Qt_3_0_0 -)
- QListView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+%If (TQt_3_0_0 -)
+ TQListView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
%End
int treeStepSize() const;
virtual void setTreeStepSize(int);
- virtual void insertItem(QListViewItem * /Transfer/);
-%If (Qt_2_00 -)
- virtual void takeItem(QListViewItem * /TransferBack/);
+ virtual void insertItem(TQListViewItem * /Transfer/);
+%If (TQt_2_00 -)
+ virtual void takeItem(TQListViewItem * /TransferBack/);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual void clear();
%End
- QHeader *header() const;
+ TQHeader *header() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
virtual int addColumn(const char *,int = -1);
virtual void setColumnText(int,const char *);
const char *columnText(int) const;
%End
-%If (Qt_2_00 -)
- virtual int addColumn(const QString &,int = -1);
- virtual int addColumn(const QIconSet &,const QString &,int = -1);
-%If (Qt_2_1_0 -)
+%If (TQt_2_00 -)
+ virtual int addColumn(const TQString &,int = -1);
+ virtual int addColumn(const TQIconSet &,const TQString &,int = -1);
+%If (TQt_2_1_0 -)
void removeColumn(int);
%End
- virtual void setColumnText(int,const QString &);
- virtual void setColumnText(int,const QIconSet &,const QString &);
- QString columnText(int) const;
+ virtual void setColumnText(int,const TQString &);
+ virtual void setColumnText(int,const TQIconSet &,const TQString &);
+ TQString columnText(int) const;
%End
virtual void setColumnWidth(int,int);
int columnWidth(int) const;
@@ -348,7 +348,7 @@ public:
virtual void setColumnWidthMode(int,WidthMode);
WidthMode columnWidthMode(int) const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
int columns() const;
%End
@@ -357,18 +357,18 @@ public:
void show();
- QListViewItem *itemAt(const QPoint &) const;
- QRect itemRect(const QListViewItem *) const;
- int itemPos(const QListViewItem *);
+ TQListViewItem *itemAt(const TQPoint &) const;
+ TQRect itemRect(const TQListViewItem *) const;
+ int itemPos(const TQListViewItem *);
- void ensureItemVisible(const QListViewItem *);
+ void ensureItemVisible(const TQListViewItem *);
- void repaintItem(const QListViewItem *) const;
+ void repaintItem(const TQListViewItem *) const;
virtual void setMultiSelection(bool);
bool isMultiSelection() const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
enum SelectionMode {
Single,
Multi,
@@ -380,26 +380,26 @@ public:
SelectionMode selectionMode() const;
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
virtual void clearSelection();
%End
- virtual void setSelected(QListViewItem *,bool);
-%If (Qt_3_2_0 -)
- void setSelectionAnchor(QListViewItem *);
+ virtual void setSelected(TQListViewItem *,bool);
+%If (TQt_3_2_0 -)
+ void setSelectionAnchor(TQListViewItem *);
%End
- bool isSelected(QListViewItem *) const;
-%If (Qt_2_1_0 -)
- QListViewItem *selectedItem() const;
+ bool isSelected(TQListViewItem *) const;
+%If (TQt_2_1_0 -)
+ TQListViewItem *selectedItem() const;
%End
- virtual void setOpen(QListViewItem *,bool);
- bool isOpen(QListViewItem *) const;
+ virtual void setOpen(TQListViewItem *,bool);
+ bool isOpen(TQListViewItem *) const;
- virtual void setCurrentItem(QListViewItem *);
- QListViewItem *currentItem() const;
+ virtual void setCurrentItem(TQListViewItem *);
+ TQListViewItem *currentItem() const;
- QListViewItem *firstChild() const;
-%If (Qt_3_0_0 -)
- QListViewItem *lastItem() const;
+ TQListViewItem *firstChild() const;
+%If (TQt_3_0_0 -)
+ TQListViewItem *lastItem() const;
%End
int childCount() const;
@@ -414,43 +414,43 @@ public:
bool rootIsDecorated() const;
virtual void setSorting(int,bool = 1);
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
int sortColumn() const;
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void setSortColumn(int);
SortOrder sortOrder() const;
void setSortOrder(SortOrder);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void sort();
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
+%If (TQt_2_1_0 - TQt_3_0_0)
void sort();
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setStyle(GUIStyle);
- void setFont(const QFont &);
- void setPalette(const QPalette &);
+ void setFont(const TQFont &);
+ void setPalette(const TQPalette &);
%End
-%If (Qt_2_00 -)
- virtual void setFont(const QFont &);
- virtual void setPalette(const QPalette &);
+%If (TQt_2_00 -)
+ virtual void setFont(const TQFont &);
+ virtual void setPalette(const TQPalette &);
%End
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
- QSize sizeHint() const;
-%If (Qt_2_00 -)
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+%If (TQt_2_00 -)
+ TQSize minimumSizeHint() const;
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setShowSortIndicator(bool);
bool showSortIndicator() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void setShowToolTips(bool);
bool showToolTips() const;
@@ -463,7 +463,7 @@ public:
virtual void setResizeMode(ResizeMode);
ResizeMode resizeMode() const;
- QListViewItem *findItem(const QString &,int,
+ TQListViewItem *findItem(const TQString &,int,
ComparisonFlags = ExactMatch | CaseSensitive) const;
enum RenameAction {
@@ -476,131 +476,131 @@ public:
bool isRenaming() const;
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void hideColumn(int);
%End
public slots:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void clear();
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void invertSelection();
void selectAll(bool);
void setContentsPos(int,int);
%End
void triggerUpdate();
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void adjustColumn(int);
%End
signals:
void selectionChanged();
- void selectionChanged(QListViewItem *);
- void currentChanged(QListViewItem *);
-%If (Qt_2_1_0 -)
- void clicked(QListViewItem *);
- void clicked(QListViewItem *,const QPoint &,int);
- void pressed(QListViewItem *);
- void pressed(QListViewItem *,const QPoint &,int);
+ void selectionChanged(TQListViewItem *);
+ void currentChanged(TQListViewItem *);
+%If (TQt_2_1_0 -)
+ void clicked(TQListViewItem *);
+ void clicked(TQListViewItem *,const TQPoint &,int);
+ void pressed(TQListViewItem *);
+ void pressed(TQListViewItem *,const TQPoint &,int);
%End
- void doubleClicked(QListViewItem *);
-%If (Qt_3_2_0 -)
- void doubleClicked(QListViewItem *,const QPoint &,int);
+ void doubleClicked(TQListViewItem *);
+%If (TQt_3_2_0 -)
+ void doubleClicked(TQListViewItem *,const TQPoint &,int);
%End
- void returnPressed(QListViewItem *);
-%If (Qt_3_0_0 -)
- void spacePressed(QListViewItem *);
+ void returnPressed(TQListViewItem *);
+%If (TQt_3_0_0 -)
+ void spacePressed(TQListViewItem *);
%End
- void rightButtonClicked(QListViewItem *,const QPoint &,int);
- void rightButtonPressed(QListViewItem *,const QPoint &,int);
-%If (Qt_2_1_0 -)
- void mouseButtonPressed(int,QListViewItem *,const QPoint &,int);
- void mouseButtonClicked(int,QListViewItem *,const QPoint &,int);
+ void rightButtonClicked(TQListViewItem *,const TQPoint &,int);
+ void rightButtonPressed(TQListViewItem *,const TQPoint &,int);
+%If (TQt_2_1_0 -)
+ void mouseButtonPressed(int,TQListViewItem *,const TQPoint &,int);
+ void mouseButtonClicked(int,TQListViewItem *,const TQPoint &,int);
%End
-%If (Qt_3_0_0 -)
- void contextMenuRequested(QListViewItem *,const QPoint &,int);
+%If (TQt_3_0_0 -)
+ void contextMenuRequested(TQListViewItem *,const TQPoint &,int);
%End
-%If (Qt_2_1_0 -)
- void onItem(QListViewItem *);
+%If (TQt_2_1_0 -)
+ void onItem(TQListViewItem *);
void onViewport();
- void expanded(QListViewItem *);
- void collapsed(QListViewItem *);
+ void expanded(TQListViewItem *);
+ void collapsed(TQListViewItem *);
%End
-%If (Qt_3_0_0 -)
- void dropped(QDropEvent *);
- void itemRenamed(QListViewItem *,int,const QString &);
- void itemRenamed(QListViewItem *,int);
+%If (TQt_3_0_0 -)
+ void dropped(TQDropEvent *);
+ void itemRenamed(TQListViewItem *,int,const TQString &);
+ void itemRenamed(TQListViewItem *,int);
%End
protected:
-%If (- Qt_2_00)
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
- void mouseDoubleClickEvent(QMouseEvent *);
-%End
-%If (Qt_2_00 -)
- void contentsMousePressEvent(QMouseEvent *);
- void contentsMouseReleaseEvent(QMouseEvent *);
- void contentsMouseMoveEvent(QMouseEvent *);
- void contentsMouseDoubleClickEvent(QMouseEvent *);
-%End
-%If (Qt_3_0_0 -)
- void contentsContextMenuEvent(QContextMenuEvent *);
- void contentsDragEnterEvent(QDragEnterEvent *);
- void contentsDragMoveEvent(QDragMoveEvent *);
- void contentsDragLeaveEvent(QDragLeaveEvent *);
- void contentsDropEvent(QDropEvent *);
- virtual QDragObject *dragObject();
+%If (- TQt_2_00)
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+ void mouseDoubleClickEvent(TQMouseEvent *);
+%End
+%If (TQt_2_00 -)
+ void contentsMousePressEvent(TQMouseEvent *);
+ void contentsMouseReleaseEvent(TQMouseEvent *);
+ void contentsMouseMoveEvent(TQMouseEvent *);
+ void contentsMouseDoubleClickEvent(TQMouseEvent *);
+%End
+%If (TQt_3_0_0 -)
+ void contentsContextMenuEvent(TQContextMenuEvent *);
+ void contentsDragEnterEvent(TQDragEnterEvent *);
+ void contentsDragMoveEvent(TQDragMoveEvent *);
+ void contentsDragLeaveEvent(TQDragLeaveEvent *);
+ void contentsDropEvent(TQDropEvent *);
+ virtual TQDragObject *dragObject();
virtual void startDrag();
%End
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
- void keyPressEvent(QKeyEvent *);
+ void keyPressEvent(TQKeyEvent *);
- void resizeEvent(QResizeEvent *);
-%If (Qt_3_0_0 -)
- void viewportResizeEvent(QResizeEvent *);
+ void resizeEvent(TQResizeEvent *);
+%If (TQt_3_0_0 -)
+ void viewportResizeEvent(TQResizeEvent *);
%End
-%If (Qt_2_00 -)
- void showEvent(QShowEvent *);
+%If (TQt_2_00 -)
+ void showEvent(TQShowEvent *);
%End
- void drawContentsOffset(QPainter *,int,int,int,int,int,int);
+ void drawContentsOffset(TQPainter *,int,int,int,int,int,int);
- virtual void paintEmptyArea(QPainter *,const QRect &);
-%If (Qt_2_00 -)
- void styleChange(QStyle &);
+ virtual void paintEmptyArea(TQPainter *,const TQRect &);
+%If (TQt_2_00 -)
+ void styleChange(TQStyle &);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
void enabledChange(bool);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void windowActivationChange(bool);
%End
protected slots:
void updateContents();
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void doAutoScroll();
%End
private:
-%If (Qt_2_1_0 -)
- QListView(const QWidget &);
+%If (TQt_2_1_0 -)
+ TQListView(const TQWidget &);
%End
};
-class QCheckListItem : QListViewItem
+class TQCheckListItem : TQListViewItem
{
%TypeHeaderCode
#include <qlistview.h>
@@ -611,13 +611,13 @@ public:
RadioButton,
CheckBox,
Controller,
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
RadioButtonController,
CheckBoxController,
%End
};
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
enum ToggleState {
Off,
NoChange,
@@ -625,95 +625,95 @@ public:
};
%End
-%If (Qt_3_2_0 -)
- QCheckListItem(QCheckListItem * /TransferThis/,const QString &,
+%If (TQt_3_2_0 -)
+ TQCheckListItem(TQCheckListItem * /TransferThis/,const TQString &,
Type = RadioButtonController);
- QCheckListItem(QCheckListItem * /TransferThis/,QListViewItem *,
- const QString &,Type = RadioButtonController);
- QCheckListItem(QListViewItem * /TransferThis/,const QString &,
+ TQCheckListItem(TQCheckListItem * /TransferThis/,TQListViewItem *,
+ const TQString &,Type = RadioButtonController);
+ TQCheckListItem(TQListViewItem * /TransferThis/,const TQString &,
Type = RadioButtonController);
- QCheckListItem(QListViewItem * /TransferThis/,QListViewItem *,
- const QString &,Type = RadioButtonController);
- QCheckListItem(QListView * /TransferThis/,const QString &,
+ TQCheckListItem(TQListViewItem * /TransferThis/,TQListViewItem *,
+ const TQString &,Type = RadioButtonController);
+ TQCheckListItem(TQListView * /TransferThis/,const TQString &,
Type = RadioButtonController);
- QCheckListItem(QListView * /TransferThis/,QListViewItem *,
- const QString &,Type = RadioButtonController);
+ TQCheckListItem(TQListView * /TransferThis/,TQListViewItem *,
+ const TQString &,Type = RadioButtonController);
%End
-%If (Qt_2_00 - Qt_3_2_0)
- QCheckListItem(QCheckListItem * /TransferThis/,const QString &,
+%If (TQt_2_00 - TQt_3_2_0)
+ TQCheckListItem(TQCheckListItem * /TransferThis/,const TQString &,
Type = Controller);
-%If (Qt_3_1_0 -)
- QCheckListItem(QCheckListItem * /TransferThis/,QListViewItem *,
- const QString &,Type = Controller);
+%If (TQt_3_1_0 -)
+ TQCheckListItem(TQCheckListItem * /TransferThis/,TQListViewItem *,
+ const TQString &,Type = Controller);
%End
- QCheckListItem(QListViewItem * /TransferThis/,const QString &,
+ TQCheckListItem(TQListViewItem * /TransferThis/,const TQString &,
Type = Controller);
-%If (Qt_3_1_0 -)
- QCheckListItem(QListViewItem * /TransferThis/,QListViewItem *,
- const QString &,Type = Controller);
+%If (TQt_3_1_0 -)
+ TQCheckListItem(TQListViewItem * /TransferThis/,TQListViewItem *,
+ const TQString &,Type = Controller);
%End
- QCheckListItem(QListView * /TransferThis/,const QString &,
+ TQCheckListItem(TQListView * /TransferThis/,const TQString &,
Type = Controller);
-%If (Qt_3_1_0 -)
- QCheckListItem(QListView * /TransferThis/,QListViewItem *,
- const QString &,Type = Controller);
+%If (TQt_3_1_0 -)
+ TQCheckListItem(TQListView * /TransferThis/,TQListViewItem *,
+ const TQString &,Type = Controller);
%End
%End
-%If (Qt_2_00 -)
- QCheckListItem(QListViewItem * /TransferThis/,const QString &,
- const QPixmap &);
- QCheckListItem(QListView * /TransferThis/,const QString &,
- const QPixmap &);
+%If (TQt_2_00 -)
+ TQCheckListItem(TQListViewItem * /TransferThis/,const TQString &,
+ const TQPixmap &);
+ TQCheckListItem(TQListView * /TransferThis/,const TQString &,
+ const TQPixmap &);
%End
-%If (- Qt_2_00)
- QCheckListItem(QCheckListItem * /TransferThis/,const char *,
+%If (- TQt_2_00)
+ TQCheckListItem(TQCheckListItem * /TransferThis/,const char *,
Type = Controller);
- QCheckListItem(QListView * /TransferThis/,const char *,
+ TQCheckListItem(TQListView * /TransferThis/,const char *,
Type = Controller);
- QCheckListItem(QListViewItem * /TransferThis/,const char *,
- const QPixmap &);
- QCheckListItem(QListView * /TransferThis/,const char *,
- const QPixmap &);
+ TQCheckListItem(TQListViewItem * /TransferThis/,const char *,
+ const TQPixmap &);
+ TQCheckListItem(TQListView * /TransferThis/,const char *,
+ const TQPixmap &);
%End
- void paintCell(QPainter *,const QColorGroup &,int,int,int);
-%If (Qt_2_00 -)
- virtual void paintFocus(QPainter *,const QColorGroup &,const QRect &);
+ void paintCell(TQPainter *,const TQColorGroup &,int,int,int);
+%If (TQt_2_00 -)
+ virtual void paintFocus(TQPainter *,const TQColorGroup &,const TQRect &);
%End
- int width(const QFontMetrics &,const QListView *,int) const;
+ int width(const TQFontMetrics &,const TQListView *,int) const;
void setup();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setOn(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setOn(bool);
%End
bool isOn() const;
Type type() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *text() const;
const char *text(int) const;
%End
-%If (Qt_2_00 -)
- QString text() const;
- QString text(int) const;
+%If (TQt_2_00 -)
+ TQString text() const;
+ TQString text(int) const;
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void setTristate(bool);
bool isTristate() const;
ToggleState state() const;
void setState(ToggleState);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int rtti() const;
%End
protected:
-%If (- Qt_3_0_0)
- void paintBranches(QPainter *,const QColorGroup &,int,int,int,GUIStyle);
+%If (- TQt_3_0_0)
+ void paintBranches(TQPainter *,const TQColorGroup &,int,int,int,GUIStyle);
%End
void activate();
void turnOffChild();
@@ -721,16 +721,16 @@ protected:
};
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QListViewItemIterator
+class TQListViewItemIterator
{
%TypeHeaderCode
#include <qlistview.h>
%End
public:
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
enum IteratorFlag {
Visible,
Invisible,
@@ -749,22 +749,22 @@ public:
};
%End
- QListViewItemIterator();
- QListViewItemIterator(QListViewItem *);
-%If (Qt_3_2_0 -)
- QListViewItemIterator(QListViewItem *,int);
+ TQListViewItemIterator();
+ TQListViewItemIterator(TQListViewItem *);
+%If (TQt_3_2_0 -)
+ TQListViewItemIterator(TQListViewItem *,int);
%End
- QListViewItemIterator(const QListViewItemIterator &);
- QListViewItemIterator(QListView *);
-%If (Qt_3_2_0 -)
- QListViewItemIterator(QListView *,int);
+ TQListViewItemIterator(const TQListViewItemIterator &);
+ TQListViewItemIterator(TQListView *);
+%If (TQt_3_2_0 -)
+ TQListViewItemIterator(TQListView *,int);
%End
- QListViewItemIterator &operator+=(int);
- QListViewItemIterator &operator-=(int);
+ TQListViewItemIterator &operator+=(int);
+ TQListViewItemIterator &operator-=(int);
- QListViewItem *current() const;
+ TQListViewItem *current() const;
};
%End
diff --git a/sip/qt/qlocale.sip b/sip/qt/qlocale.sip
index 71f3e6d..c68c1d1 100644
--- a/sip/qt/qlocale.sip
+++ b/sip/qt/qlocale.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QLocale.
+// This is the SIP interface definition for TQLocale.
//
// 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>QLocale (Qt v3.3+)</Title>
+<Sect2><Title>TQLocale (TQt v3.3+)</Title>
<FuncSynopsis>
<FuncDef>short <Function>toShort</Function></FuncDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
@@ -97,9 +97,9 @@ This returns a tuple of the <Literal>double</Literal> result and the
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
-class QLocale
+class TQLocale
{
%TypeHeaderCode
#include <qlocale.h>
@@ -495,43 +495,43 @@ public:
LastCountry
};
- QLocale();
- QLocale(const QString &);
- QLocale(Language,Country = AnyCountry);
- QLocale(const QLocale &);
+ TQLocale();
+ TQLocale(const TQString &);
+ TQLocale(Language,Country = AnyCountry);
+ TQLocale(const TQLocale &);
Language language() const;
Country country() const;
- QString name() const;
+ TQString name() const;
- short toShort(const QString &,bool * = 0) const;
- ushort toUShort(const QString &,bool * = 0) const;
- int toInt(const QString &,bool * = 0) const;
- uint toUInt(const QString &,bool * = 0) const;
- Q_LONG toLong(const QString &,bool * = 0) const;
- Q_ULONG toULong(const QString &,bool * = 0) const;
- //Q_LLONG toLongLong(const QString &,bool * = 0) const;
- //Q_ULLONG toULongLong(const QString &,bool * = 0) const;
- float toFloat(const QString &,bool * = 0) const;
- double toDouble(const QString &,bool * = 0) const;
+ short toShort(const TQString &,bool * = 0) const;
+ ushort toUShort(const TQString &,bool * = 0) const;
+ int toInt(const TQString &,bool * = 0) const;
+ uint toUInt(const TQString &,bool * = 0) const;
+ Q_LONG toLong(const TQString &,bool * = 0) const;
+ Q_ULONG toULong(const TQString &,bool * = 0) const;
+ //Q_LLONG toLongLong(const TQString &,bool * = 0) const;
+ //Q_ULLONG toULongLong(const TQString &,bool * = 0) const;
+ float toFloat(const TQString &,bool * = 0) const;
+ double toDouble(const TQString &,bool * = 0) const;
- //QString toString(short) const;
- //QString toString(ushort) const;
- QString toString(int /Constrained/) const;
- //QString toString(uint) const;
- //QString toString(Q_LONG) const;
- //QString toString(Q_ULONG) const;
- //QString toString(Q_LLONG) const;
- //QString toString(Q_ULLONG) const;
- //QString toString(float,char = 'g',int = 6) const;
- QString toString(double,char = 'g',int = 6) const;
+ //TQString toString(short) const;
+ //TQString toString(ushort) const;
+ TQString toString(int /Constrained/) const;
+ //TQString toString(uint) const;
+ //TQString toString(Q_LONG) const;
+ //TQString toString(Q_ULONG) const;
+ //TQString toString(Q_LLONG) const;
+ //TQString toString(Q_ULLONG) const;
+ //TQString toString(float,char = 'g',int = 6) const;
+ TQString toString(double,char = 'g',int = 6) const;
- static QString languageToString(Language);
- static QString countryToString(Country);
- static void setDefault(const QLocale &);
+ static TQString languageToString(Language);
+ static TQString countryToString(Country);
+ static void setDefault(const TQLocale &);
- static QLocale c();
- static QLocale system();
+ static TQLocale c();
+ static TQLocale system();
};
%End
diff --git a/sip/qt/qmainwindow.sip b/sip/qt/qmainwindow.sip
index 11a2f12..f582ce5 100644
--- a/sip/qt/qmainwindow.sip
+++ b/sip/qt/qmainwindow.sip
@@ -1,48 +1,48 @@
-// This is the SIP interface definition for QMainWindow.
+// This is the SIP interface definition for TQMainWindow.
//
// 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>QMainWindow</Title>
+<Sect2><Title>TQMainWindow</Title>
<FuncSynopsis>
- <FuncDef>QTextStream &amp;<Function>operator&lt&lt;</Function></FuncDef>
- <ParamDef>QTextStream &amp;<Parameter></Parameter></ParamDef>
- <ParamDef>const QMainWindow &amp;<Parameter></Parameter></ParamDef>
+ <FuncDef>TQTextStream &amp;<Function>operator&lt&lt;</Function></FuncDef>
+ <ParamDef>TQTextStream &amp;<Parameter></Parameter></ParamDef>
+ <ParamDef>const TQMainWindow &amp;<Parameter></Parameter></ParamDef>
</FuncSynopsis>
<Para>
-This operator is fully implemented. (Qt v3+)
+This operator is fully implemented. (TQt v3+)
</Para>
<FuncSynopsis>
- <FuncDef>QTextStream &amp;<Function>operator&gt&gt;</Function></FuncDef>
- <ParamDef>QTextStream &amp;<Parameter></Parameter></ParamDef>
- <ParamDef>QMainWindow &amp;<Parameter></Parameter></ParamDef>
+ <FuncDef>TQTextStream &amp;<Function>operator&gt&gt;</Function></FuncDef>
+ <ParamDef>TQTextStream &amp;<Parameter></Parameter></ParamDef>
+ <ParamDef>TQMainWindow &amp;<Parameter></Parameter></ParamDef>
</FuncSynopsis>
<Para>
-This operator is fully implemented. (Qt v3+)
+This operator is fully implemented. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>getLocation</Function></FuncDef>
- <ParamDef>QToolBar *<Parameter>tb</Parameter></ParamDef>
+ <ParamDef>TQToolBar *<Parameter>tb</Parameter></ParamDef>
<ParamDef>ToolBarDock &amp;<Parameter>dock</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>index</Parameter></ParamDef>
<ParamDef>bool &amp;<Parameter>nl</Parameter></ParamDef>
@@ -51,41 +51,41 @@ This operator is fully implemented. (Qt v3+)
<Para>
This takes only the <Literal>tb</Literal> parameter and returns a tuple of the
result, <Literal>dock</Literal>, <Literal>index</Literal>,
-<Literal>nl</Literal> and <Literal>extraOffset</Literal> values. (Qt v2.1.0+)
+<Literal>nl</Literal> and <Literal>extraOffset</Literal> values. (TQt v2.1.0+)
</Para>
<FuncSynopsis>
- <FuncDef>QList&lt;QToolBar&gt; <Function>toolBars</Function></FuncDef>
+ <FuncDef>TQList&lt;TQToolBar&gt; <Function>toolBars</Function></FuncDef>
<ParamDef>ToolBarDock <Parameter>dock</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-This returns a list of <Literal>QToolBar</Literal> instances. (Qt v2.1.0+)
+This returns a list of <Literal>TQToolBar</Literal> instances. (TQt v2.1.0+)
</Para>
</Sect2>
%End
-class QMainWindow : QWidget
+class TQMainWindow : TQWidget
{
%TypeHeaderCode
#include <qmainwindow.h>
%End
public:
-%If (- Qt_2_00)
- QMainWindow(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+%If (- TQt_2_00)
+ TQMainWindow(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
%End
-%If (Qt_2_00 -)
- QMainWindow(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = WType_TopLevel);
+%If (TQt_2_00 -)
+ TQMainWindow(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = WType_TopLevel);
%End
- QMenuBar *menuBar() const;
- QStatusBar *statusBar() const;
- QToolTipGroup *toolTipGroup() const;
- virtual void setCentralWidget(QWidget *);
- QWidget *centralWidget() const;
+ TQMenuBar *menuBar() const;
+ TQStatusBar *statusBar() const;
+ TQToolTipGroup *toolTipGroup() const;
+ virtual void setCentralWidget(TQWidget *);
+ TQWidget *centralWidget() const;
-%If (- Qt_2_1_0)
+%If (- TQt_2_1_0)
enum ToolBarDock {
Unmanaged,
TornOff,
@@ -95,7 +95,7 @@ public:
Left
};
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
+%If (TQt_2_1_0 - TQt_3_0_0)
enum ToolBarDock {
Unmanaged,
TornOff,
@@ -107,102 +107,102 @@ public:
};
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setDockEnabled(ToolBarDock,bool);
- void addToolBar(QToolBar *,const char *,ToolBarDock = Top,bool = 0);
+ void addToolBar(TQToolBar *,const char *,ToolBarDock = Top,bool = 0);
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
virtual void setDockEnabled(ToolBarDock,bool);
- void addToolBar(QToolBar *,ToolBarDock = Top,bool = 0);
- void addToolBar(QToolBar *,const QString &,ToolBarDock = Top,bool = 0);
- void moveToolBar(QToolBar *,ToolBarDock = Top);
-%End
-%If (Qt_2_1_0 - Qt_3_0_0)
- void setDockEnabled(QToolBar *,ToolBarDock,bool);
- bool isDockEnabled(QToolBar *,ToolBarDock) const;
- void moveToolBar(QToolBar *,ToolBarDock,bool,int,int = -1);
+ void addToolBar(TQToolBar *,ToolBarDock = Top,bool = 0);
+ void addToolBar(TQToolBar *,const TQString &,ToolBarDock = Top,bool = 0);
+ void moveToolBar(TQToolBar *,ToolBarDock = Top);
+%End
+%If (TQt_2_1_0 - TQt_3_0_0)
+ void setDockEnabled(TQToolBar *,ToolBarDock,bool);
+ bool isDockEnabled(TQToolBar *,ToolBarDock) const;
+ void moveToolBar(TQToolBar *,ToolBarDock,bool,int,int = -1);
bool toolBarsMovable() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void setDockEnabled(Dock,bool);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
bool isDockEnabled(ToolBarDock) const;
- void removeToolBar(QToolBar *);
+ void removeToolBar(TQToolBar *);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isDockEnabled(Dock) const;
- bool isDockEnabled(QDockArea *) const;
- virtual void setDockEnabled(QDockWindow *,Dock,bool);
- bool isDockEnabled(QDockWindow *,Dock) const;
- bool isDockEnabled(QDockWindow *,QDockArea *) const;
+ bool isDockEnabled(TQDockArea *) const;
+ virtual void setDockEnabled(TQDockWindow *,Dock,bool);
+ bool isDockEnabled(TQDockWindow *,Dock) const;
+ bool isDockEnabled(TQDockWindow *,TQDockArea *) const;
- virtual void addDockWindow(QDockWindow *,Dock = DockTop,bool = 0);
- virtual void addDockWindow(QDockWindow *,const QString &,
+ virtual void addDockWindow(TQDockWindow *,Dock = DockTop,bool = 0);
+ virtual void addDockWindow(TQDockWindow *,const TQString &,
Dock = DockTop,bool = 0);
- virtual void moveDockWindow(QDockWindow *,Dock = DockTop);
- virtual void moveDockWindow(QDockWindow *,Dock,bool,int,int = -1);
- virtual void removeDockWindow(QDockWindow *);
+ virtual void moveDockWindow(TQDockWindow *,Dock = DockTop);
+ virtual void moveDockWindow(TQDockWindow *,Dock,bool,int,int = -1);
+ virtual void removeDockWindow(TQDockWindow *);
%End
void show();
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void hide();
%End
-%If (Qt_2_1_0 -)
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+%If (TQt_2_1_0 -)
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
%End
bool rightJustification() const;
bool usesBigPixmaps() const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
bool usesTextLabel() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool dockWindowsMovable() const;
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
bool opaqueMoving() const;
%End
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
-%If (Qt_3_0_0 -)
- bool getLocation(QDockWindow *,Dock &,int &,bool &,int &) const;
+%If (TQt_3_0_0 -)
+ bool getLocation(TQDockWindow *,Dock &,int &,bool &,int &) const;
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
- bool getLocation(QToolBar *,ToolBarDock &,int &,bool &,int &) const;
+%If (TQt_2_1_0 - TQt_3_0_0)
+ bool getLocation(TQToolBar *,ToolBarDock &,int &,bool &,int &) const;
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
- QList<QToolBar> toolBars(ToolBarDock) const;
+%If (TQt_2_1_0 - TQt_3_0_0)
+ TQList<TQToolBar> toolBars(ToolBarDock) const;
%End
-%If (Qt_3_0_0 -)
- QPtrList<QDockWindow> dockWindows(Dock) const;
- QPtrList<QDockWindow> dockWindows() const;
+%If (TQt_3_0_0 -)
+ TQPtrList<TQDockWindow> dockWindows(Dock) const;
+ TQPtrList<TQDockWindow> dockWindows() const;
void lineUpDockWindows(bool = 0);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void lineUpToolBars(bool = 0);
bool isDockMenuEnabled() const;
%End
-%If (Qt_3_0_0 -)
- bool hasDockWindow(QDockWindow *);
- QPtrList<QToolBar> toolBars(Dock) const;
+%If (TQt_3_0_0 -)
+ bool hasDockWindow(TQDockWindow *);
+ TQPtrList<TQToolBar> toolBars(Dock) const;
- // The following one is in Qt3 but not documented.
- //virtual QDockArea *dockingArea(const QPoint &);
- QDockArea *leftDock() const;
- QDockArea *rightDock() const;
- QDockArea *topDock() const;
- QDockArea *bottomDock() const;
+ // The following one is in TQt3 but not documented.
+ //virtual TQDockArea *dockingArea(const TQPoint &);
+ TQDockArea *leftDock() const;
+ TQDockArea *rightDock() const;
+ TQDockArea *topDock() const;
+ TQDockArea *bottomDock() const;
virtual bool isCustomizable() const;
- bool appropriate(QDockWindow *) const;
+ bool appropriate(TQDockWindow *) const;
enum DockWindows {
OnlyToolBars,
@@ -210,80 +210,80 @@ public:
AllDockWindows
};
- QPopupMenu *createDockWindowMenu(DockWindows = AllDockWindows) const;
+ TQPopupMenu *createDockWindowMenu(DockWindows = AllDockWindows) const;
%End
public slots:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setRightJustification(bool);
void setUsesBigPixmaps(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setRightJustification(bool);
virtual void setUsesBigPixmaps(bool);
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
+%If (TQt_2_1_0 - TQt_3_0_0)
void setUsesTextLabel(bool);
void setToolBarsMovable(bool);
void setOpaqueMoving(bool);
void setDockMenuEnabled(bool);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void setUsesTextLabel(bool);
virtual void setDockWindowsMovable(bool);
virtual void setOpaqueMoving(bool);
virtual void setDockMenuEnabled(bool);
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
void whatsThis();
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void whatsThis();
- virtual void setAppropriate(QDockWindow *,bool);
+ virtual void setAppropriate(TQDockWindow *,bool);
virtual void customize();
%End
signals:
void pixmapSizeChanged(bool);
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void usesTextLabelChanged(bool);
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
- void startMovingToolBar(QToolBar *);
- void endMovingToolBar(QToolBar *);
- void toolBarPositionChanged(QToolBar *);
+%If (TQt_2_1_0 - TQt_3_0_0)
+ void startMovingToolBar(TQToolBar *);
+ void endMovingToolBar(TQToolBar *);
+ void toolBarPositionChanged(TQToolBar *);
%End
-%If (Qt_3_0_0 -)
- void dockWindowPositionChanged(QDockWindow *);
+%If (TQt_3_0_0 -)
+ void dockWindowPositionChanged(TQDockWindow *);
%End
protected slots:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setUpLayout();
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setUpLayout();
%End
-%If (Qt_3_0_0 -)
- virtual bool showDockMenu(const QPoint &);
+%If (TQt_3_0_0 -)
+ virtual bool showDockMenu(const TQPoint &);
void menuAboutToShow();
%End
protected:
- void paintEvent(QPaintEvent *);
-%If (Qt_2_00 -)
- void childEvent(QChildEvent *);
+ void paintEvent(TQPaintEvent *);
+%If (TQt_2_00 -)
+ void childEvent(TQChildEvent *);
%End
- bool event(QEvent *);
-%If (Qt_2_00 - Qt_3_0_0)
- void resizeEvent(QResizeEvent *);
+ bool event(TQEvent *);
+%If (TQt_2_00 - TQt_3_0_0)
+ void resizeEvent(TQResizeEvent *);
%End
-%If (Qt_2_00 -)
- void styleChange(QStyle &);
+%If (TQt_2_00 -)
+ void styleChange(TQStyle &);
%End
private:
-%If (Qt_2_00 -)
- QMainWindow(const QMainWindow &);
+%If (TQt_2_00 -)
+ TQMainWindow(const TQMainWindow &);
%End
};
diff --git a/sip/qt/qmemarray.sip b/sip/qt/qmemarray.sip
index 9415a57..04a174e 100644
--- a/sip/qt/qmemarray.sip
+++ b/sip/qt/qmemarray.sip
@@ -1,39 +1,39 @@
-// This is the SIP interface definition for all types based on the QMemArray
+// This is the SIP interface definition for all types based on the TQMemArray
// template.
//
// 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>QMemArray&lt;type&gt; (Qt v3+)</Title>
+<Sect2><Title>TQMemArray&lt;type&gt; (TQt v3+)</Title>
<Para>
-Types based on the <Literal>QMemArray</Literal> template are automatically
+Types based on the <Literal>TQMemArray</Literal> template are automatically
converted to and from Python lists of the type.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-%MappedType QMemArray<int>
+%MappedType TQMemArray<int>
{
%TypeHeaderCode
#include <qmemarray.h>
@@ -61,12 +61,12 @@ converted to and from Python lists of the type.
%End
%ConvertToTypeCode
- // Convert a Python list of integers to a QMemArray<int> on the heap.
+ // Convert a Python list of integers to a TQMemArray<int> on the heap.
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- QMemArray<int> *qma = new QMemArray<int>(PyList_GET_SIZE(sipPy));
+ TQMemArray<int> *qma = new TQMemArray<int>(PyList_GET_SIZE(sipPy));
PyErr_Clear();
@@ -90,7 +90,7 @@ converted to and from Python lists of the type.
};
template<TYPE>
-%MappedType QMemArray<TYPE>
+%MappedType TQMemArray<TYPE>
{
%TypeHeaderCode
#include <qmemarray.h>
@@ -124,7 +124,7 @@ template<TYPE>
%End
%ConvertToTypeCode
- // Check the type if that is all that is required.
+ // Check the type if that is all that is retquired.
if (sipIsErr == NULL)
{
if (!PyList_Check(sipPy))
@@ -137,7 +137,7 @@ template<TYPE>
return 1;
}
- QMemArray<TYPE> *ql = new QMemArray<TYPE>;
+ TQMemArray<TYPE> *ql = new TQMemArray<TYPE>;
for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
{
diff --git a/sip/qt/qmenubar.sip b/sip/qt/qmenubar.sip
index 5f61458..b0bb9fa 100644
--- a/sip/qt/qmenubar.sip
+++ b/sip/qt/qmenubar.sip
@@ -1,49 +1,49 @@
-// This is the SIP interface definition for QMenuBar.
+// This is the SIP interface definition for TQMenuBar.
//
// 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>QMenuBar</Title>
+<Sect2><Title>TQMenuBar</Title>
<Para>
-<Literal>QMenuBar</Literal> is fully implemented.
+<Literal>TQMenuBar</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QMenuBar : QFrame, QMenuData
+class TQMenuBar : TQFrame, TQMenuData
{
%TypeHeaderCode
#include <qmenubar.h>
%End
public:
- QMenuBar(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQMenuBar(TQWidget * /TransferThis/ = 0,const char * = 0);
void updateItem(int);
void show();
void hide();
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
int heightForWidth(int) const;
@@ -53,29 +53,29 @@ public:
};
Separator separator() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setSeparator(Separator);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setSeparator(Separator);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setDefaultUp(bool);
bool isDefaultUp() const;
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
bool customWhatsThis() const;
%End
-%If (Qt_2_1_0 -)
- QSize sizeHint() const;
- QSize minimumSize() const;
- QSize minimumSizeHint() const;
+%If (TQt_2_1_0 -)
+ TQSize sizeHint() const;
+ TQSize minimumSize() const;
+ TQSize minimumSizeHint() const;
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
void activateItemAt(int);
%End
@@ -84,35 +84,35 @@ signals:
void highlighted(int);
protected:
- void drawContents(QPainter *);
- void fontChange(const QFont &);
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
- void keyPressEvent(QKeyEvent *);
-%If (Qt_2_1_0 -)
- void focusInEvent(QFocusEvent *);
+ void drawContents(TQPainter *);
+ void fontChange(const TQFont &);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+ void keyPressEvent(TQKeyEvent *);
+%If (TQt_2_1_0 -)
+ void focusInEvent(TQFocusEvent *);
%End
-%If (Qt_2_00 -)
- void focusOutEvent(QFocusEvent *);
+%If (TQt_2_00 -)
+ void focusOutEvent(TQFocusEvent *);
%End
- void resizeEvent(QResizeEvent *);
- void leaveEvent(QEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void leaveEvent(TQEvent *);
void menuContentsChanged();
void menuStateChanged();
-%If (Qt_2_00 -)
- void styleChange(QStyle &);
+%If (TQt_2_00 -)
+ void styleChange(TQStyle &);
%End
-%If (Qt_3_0_0 -)
- int itemAtPos(const QPoint &);
+%If (TQt_3_0_0 -)
+ int itemAtPos(const TQPoint &);
void hidePopups();
- QRect itemRect(int);
+ TQRect itemRect(int);
%End
private:
- void menuInsPopup(QPopupMenu *);
- void menuDelPopup(QPopupMenu *);
+ void menuInsPopup(TQPopupMenu *);
+ void menuDelPopup(TQPopupMenu *);
void frameChanged();
- QMenuBar(const QMenuBar &);
+ TQMenuBar(const TQMenuBar &);
};
diff --git a/sip/qt/qmenudata.sip b/sip/qt/qmenudata.sip
index ac5dab0..c72151a 100644
--- a/sip/qt/qmenudata.sip
+++ b/sip/qt/qmenudata.sip
@@ -1,168 +1,168 @@
-// This is the SIP interface definition for QMenuData, QCustomMenuItem and
-// QMenuItem.
+// This is the SIP interface definition for TQMenuData, TQCustomMenuItem and
+// TQMenuItem.
//
// 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>QMenuData</Title>
+<Sect2><Title>TQMenuData</Title>
<FuncSynopsis>
- <FuncDef>QMenuItem *<Function>findItem</Function></FuncDef>
+ <FuncDef>TQMenuItem *<Function>findItem</Function></FuncDef>
<ParamDef>int <Parameter>id</Parameter></ParamDef>
- <ParamDef>QMenuData **<Parameter>parent</Parameter></ParamDef>
+ <ParamDef>TQMenuData **<Parameter>parent</Parameter></ParamDef>
</FuncSynopsis>
<Para>
Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QCustomMenuItem (Qt v2.1+)</Title>
+<Sect2><Title>TQCustomMenuItem (TQt v2.1+)</Title>
<Para>
-<Literal>QCustomMenuItem</Literal> is fully implemented.
+<Literal>TQCustomMenuItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMenuItem</Title>
+<Sect2><Title>TQMenuItem</Title>
<Para>
-<Literal>QMenuItem</Literal> is an internal Qt class.
+<Literal>TQMenuItem</Literal> is an internal TQt class.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-// Even though this is an internal class, uic for Qt v3.1.0 generates code that
+// Even though this is an internal class, uic for TQt v3.1.0 generates code that
// uses it.
-class QMenuItem
+class TQMenuItem
{
%TypeHeaderCode
#include <qmenudata.h>
%End
public:
- QMenuItem();
+ TQMenuItem();
- void setText(const QString &);
+ void setText(const TQString &);
private:
- QMenuItem(const QMenuItem &);
+ TQMenuItem(const TQMenuItem &);
};
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
-class QMenuItem;
+class TQMenuItem;
%End
-class QMenuData
+class TQMenuData
{
%TypeHeaderCode
#include <qmenudata.h>
%End
public:
- QMenuData();
+ TQMenuData();
uint count();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
int insertItem(const char *,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int = 0);
- int insertItem(const QPixmap &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int = 0);
- int insertItem(const QPixmap &,const char *,SIP_RXOBJ_CON,
+ int insertItem(const TQPixmap &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int = 0);
+ int insertItem(const TQPixmap &,const char *,SIP_RXOBJ_CON,
SIP_SLOT_CON(int),int = 0);
int insertItem(const char *,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int,int,
int = -1);
- int insertItem(const QPixmap &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int,int,
+ int insertItem(const TQPixmap &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int,int,
int = -1);
- int insertItem(const QPixmap&,const char *,SIP_RXOBJ_CON,SIP_SLOT_CON(int),
+ int insertItem(const TQPixmap&,const char *,SIP_RXOBJ_CON,SIP_SLOT_CON(int),
int,int,int = -1);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- int insertItem(const QString &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int = 0,
+%If (TQt_2_00 - TQt_3_0_0)
+ int insertItem(const TQString &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int = 0,
int = -1,int = -1);
- int insertItem(const QIconSet &,const QString &,SIP_RXOBJ_CON,
+ int insertItem(const TQIconSet &,const TQString &,SIP_RXOBJ_CON,
SIP_SLOT_CON(int),int = 0,int = -1,int = -1);
- int insertItem(const QPixmap &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int = 0,
+ int insertItem(const TQPixmap &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),int = 0,
int = -1,int = -1);
- int insertItem(const QIconSet &,const QPixmap &,SIP_RXOBJ_CON,
+ int insertItem(const TQIconSet &,const TQPixmap &,SIP_RXOBJ_CON,
SIP_SLOT_CON(int),int = 0,int = -1,int = -1);
%End
-%If (Qt_3_0_0 -)
- int insertItem(const QString &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),
- const QKeySequence & = QKeySequence(0),int = -1,
+%If (TQt_3_0_0 -)
+ int insertItem(const TQString &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),
+ const TQKeySequence & = TQKeySequence(0),int = -1,
int = -1);
- int insertItem(const QIconSet &,const QString &,SIP_RXOBJ_CON,
+ int insertItem(const TQIconSet &,const TQString &,SIP_RXOBJ_CON,
SIP_SLOT_CON(int),
- const QKeySequence & = QKeySequence(0),int = -1,
+ const TQKeySequence & = TQKeySequence(0),int = -1,
int = -1);
- int insertItem(const QPixmap &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),
- const QKeySequence & = QKeySequence(0),int = -1,
+ int insertItem(const TQPixmap &,SIP_RXOBJ_CON,SIP_SLOT_CON(int),
+ const TQKeySequence & = TQKeySequence(0),int = -1,
int = -1);
- int insertItem(const QIconSet &,const QPixmap &,SIP_RXOBJ_CON,
+ int insertItem(const TQIconSet &,const TQPixmap &,SIP_RXOBJ_CON,
SIP_SLOT_CON(int),
- const QKeySequence & = QKeySequence(0),int = -1,
+ const TQKeySequence & = TQKeySequence(0),int = -1,
int = -1);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
int insertItem(const char *,int = -1,int = -1);
- int insertItem(const char *,QPopupMenu *,int = -1,int = -1);
- int insertItem(const QPixmap &,const char *,int = -1,int = -1);
- int insertItem(const QPixmap &,const char *,QPopupMenu *,int = -1,
+ int insertItem(const char *,TQPopupMenu *,int = -1,int = -1);
+ int insertItem(const TQPixmap &,const char *,int = -1,int = -1);
+ int insertItem(const TQPixmap &,const char *,TQPopupMenu *,int = -1,
int = -1);
%End
-%If (Qt_2_00 -)
- int insertItem(const QString &,int = -1,int = -1);
- int insertItem(const QIconSet &,const QString &,int = -1,int = -1);
+%If (TQt_2_00 -)
+ int insertItem(const TQString &,int = -1,int = -1);
+ int insertItem(const TQIconSet &,const TQString &,int = -1,int = -1);
- int insertItem(const QString &,QPopupMenu *,int = -1,int = -1);
- int insertItem(const QIconSet &,const QString &,QPopupMenu *,int = -1,
+ int insertItem(const TQString &,TQPopupMenu *,int = -1,int = -1);
+ int insertItem(const TQIconSet &,const TQString &,TQPopupMenu *,int = -1,
int = -1);
%End
- int insertItem(const QPixmap &,int = -1,int = -1);
-%If (Qt_2_00 -)
- int insertItem(const QIconSet &,const QPixmap &,int = -1,int = -1);
+ int insertItem(const TQPixmap &,int = -1,int = -1);
+%If (TQt_2_00 -)
+ int insertItem(const TQIconSet &,const TQPixmap &,int = -1,int = -1);
%End
- int insertItem(const QPixmap &,QPopupMenu *,int = -1,int = -1);
-%If (Qt_2_00 -)
- int insertItem(const QIconSet &,const QPixmap &,QPopupMenu *,int = -1,
+ int insertItem(const TQPixmap &,TQPopupMenu *,int = -1,int = -1);
+%If (TQt_2_00 -)
+ int insertItem(const TQIconSet &,const TQPixmap &,TQPopupMenu *,int = -1,
int = -1);
%End
-%If (Qt_2_1_0 -)
- int insertItem(QWidget * /Transfer/,int = -1,int = -1);
- int insertItem(const QIconSet &,QCustomMenuItem * /Transfer/,int = -1,
+%If (TQt_2_1_0 -)
+ int insertItem(TQWidget * /Transfer/,int = -1,int = -1);
+ int insertItem(const TQIconSet &,TQCustomMenuItem * /Transfer/,int = -1,
int = -1);
- int insertItem(QCustomMenuItem * /Transfer/,int = -1,int = -1);
+ int insertItem(TQCustomMenuItem * /Transfer/,int = -1,int = -1);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
int insertSeparator(int = -1);
%End
-%If (- Qt_2_1_0)
+%If (- TQt_2_1_0)
void insertSeparator(int = -1);
%End
@@ -170,42 +170,42 @@ public:
void removeItemAt(int);
void clear();
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int accel(int) const;
void setAccel(int,int);
%End
-%If (Qt_3_0_0 -)
- QKeySequence accel(int) const;
- void setAccel(const QKeySequence &,int);
+%If (TQt_3_0_0 -)
+ TQKeySequence accel(int) const;
+ void setAccel(const TQKeySequence &,int);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *text(int) const;
%End
-%If (Qt_2_00 -)
- QIconSet *iconSet(int) const;
- QString text(int) const;
+%If (TQt_2_00 -)
+ TQIconSet *iconSet(int) const;
+ TQString text(int) const;
%End
- QPixmap *pixmap(int) const;
+ TQPixmap *pixmap(int) const;
-%If (Qt_2_00 -)
- void setWhatsThis(int,const QString &);
- QString whatsThis(int) const;
+%If (TQt_2_00 -)
+ void setWhatsThis(int,const TQString &);
+ TQString whatsThis(int) const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void changeItem(const char *,int);
- void changeItem(const QPixmap &,int);
- void changeItem(const QPixmap &,const char *,int);
+ void changeItem(const TQPixmap &,int);
+ void changeItem(const TQPixmap &,const char *,int);
%End
-%If (Qt_2_00 -)
- void changeItem(int,const QString &);
- void changeItem(int,const QPixmap &);
- void changeItem(int,const QIconSet &,const QString &);
- void changeItem(int,const QIconSet &,const QPixmap &);
+%If (TQt_2_00 -)
+ void changeItem(int,const TQString &);
+ void changeItem(int,const TQPixmap &);
+ void changeItem(int,const TQIconSet &,const TQString &);
+ void changeItem(int,const TQIconSet &,const TQPixmap &);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isItemActive(int) const;
%End
@@ -215,7 +215,7 @@ public:
bool isItemChecked(int) const;
void setItemChecked(int,bool);
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
bool isItemVisible(int) const;
void setItemVisible(int,bool);
%End
@@ -224,68 +224,68 @@ public:
int indexOf(int) const;
int idAt(int) const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setId(int,int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setId(int,int);
%End
bool connectItem(int,SIP_RXOBJ_CON,SIP_SLOT_CON(int));
bool disconnectItem(int,SIP_RXOBJ_DIS,SIP_SLOT_DIS(int));
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
bool setItemParameter(int,int);
int itemParameter(int) const;
%End
- QMenuItem *findItem(int) const;
-// QMenuItem *findItem(int,QMenuData **) const;
-%If (Qt_3_0_0 -)
-// Not documented in the Qt3 API (the similar findPopup() was internal in
-// Qt2).
-// QMenuItem *findItem(QPopupMenu *,int * = 0) const;
+ TQMenuItem *findItem(int) const;
+// TQMenuItem *findItem(int,TQMenuData **) const;
+%If (TQt_3_0_0 -)
+// Not documented in the TQt3 API (the similar findPopup() was internal in
+// TQt2).
+// TQMenuItem *findItem(TQPopupMenu *,int * = 0) const;
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
+%If (TQt_2_2_0 - TQt_3_0_0)
void activateItemAt(int);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void activateItemAt(int);
%End
protected:
virtual void menuContentsChanged();
virtual void menuStateChanged();
- virtual void menuInsPopup(QPopupMenu *);
- virtual void menuDelPopup(QPopupMenu *);
-%If (- Qt_3_0_0)
-// Documented as internal in the Qt2 API.
-// QMenuItem *findPopup(QPopupMenu *,int * = 0);
+ virtual void menuInsPopup(TQPopupMenu *);
+ virtual void menuDelPopup(TQPopupMenu *);
+%If (- TQt_3_0_0)
+// Documented as internal in the TQt2 API.
+// TQMenuItem *findPopup(TQPopupMenu *,int * = 0);
%End
private:
- QMenuData(const QMenuData &);
+ TQMenuData(const TQMenuData &);
};
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
-class QCustomMenuItem : Qt
+class TQCustomMenuItem : TQt
{
%TypeHeaderCode
#include <qmenudata.h>
%End
public:
- QCustomMenuItem();
+ TQCustomMenuItem();
virtual bool fullSpan() const;
virtual bool isSeparator() const;
- virtual void setFont(const QFont &);
- virtual void paint(QPainter *,const QColorGroup &,bool,bool,int,int,
+ virtual void setFont(const TQFont &);
+ virtual void paint(TQPainter *,const TQColorGroup &,bool,bool,int,int,
int,int) = 0;
- virtual QSize sizeHint() = 0;
+ virtual TQSize sizeHint() = 0;
};
%End
diff --git a/sip/qt/qmessagebox.sip b/sip/qt/qmessagebox.sip
index 16e635e..a847d84 100644
--- a/sip/qt/qmessagebox.sip
+++ b/sip/qt/qmessagebox.sip
@@ -1,37 +1,37 @@
-// This is the SIP interface definition for QMessageBox.
+// This is the SIP interface definition for TQMessageBox.
//
// 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>QMessageBox</Title>
+<Sect2><Title>TQMessageBox</Title>
<Para>
-<Literal>QMessageBox</Literal> is fully implemented.
+<Literal>TQMessageBox</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_MESSAGEBOX)
+%If (TQt_MESSAGEBOX)
-class QMessageBox : QDialog
+class TQMessageBox : TQDialog
{
%TypeHeaderCode
#include <qmessagebox.h>
@@ -43,20 +43,20 @@ public:
Information,
Warning,
Critical,
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
Question,
%End
};
- QMessageBox(QWidget * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_2_00)
- QMessageBox(const char *,const char *,Icon,int,int,int,
- QWidget * /TransferThis/ = 0,const char * = 0,bool = 1,
+ TQMessageBox(TQWidget * /TransferThis/ = 0,const char * = 0);
+%If (- TQt_2_00)
+ TQMessageBox(const char *,const char *,Icon,int,int,int,
+ TQWidget * /TransferThis/ = 0,const char * = 0,bool = 1,
WFlags = 0);
%End
-%If (Qt_2_00 -)
- QMessageBox(const QString &,const QString &,Icon,int,int,int,
- QWidget * /TransferThis/ = 0,const char * = 0,bool = 1,
+%If (TQt_2_00 -)
+ TQMessageBox(const TQString &,const TQString &,Icon,int,int,int,
+ TQWidget * /TransferThis/ = 0,const char * = 0,bool = 1,
WFlags = WStyle_DialogBorder);
%End
@@ -68,7 +68,7 @@ public:
Abort,
Retry,
Ignore,
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
YesAll,
NoAll,
%End
@@ -78,127 +78,127 @@ public:
FlagMask
};
-%If (- Qt_2_00)
- static int information(QWidget *,const char *,const char *,int,int = 0,
+%If (- TQt_2_00)
+ static int information(TQWidget *,const char *,const char *,int,int = 0,
int = 0) /ReleaseGIL/;
- static int information(QWidget *,const char *,const char *,
+ static int information(TQWidget *,const char *,const char *,
const char * = "OK",const char * = 0,
const char * = 0,int = 0,int = -1) /ReleaseGIL/;
- static int warning(QWidget *,const char *,const char *,int,int,
+ static int warning(TQWidget *,const char *,const char *,int,int,
int = 0) /ReleaseGIL/;
- static int warning(QWidget *,const char *,const char *,
+ static int warning(TQWidget *,const char *,const char *,
const char * = "OK",const char * = 0,
const char * = 0,int = 0,int = -1) /ReleaseGIL/;
- static int critical(QWidget *,const char *,const char *,int,int,
+ static int critical(TQWidget *,const char *,const char *,int,int,
int = 0) /ReleaseGIL/;
- static int critical(QWidget *,const char *,const char *,
+ static int critical(TQWidget *,const char *,const char *,
const char * = "OK",const char * = 0,
const char * = 0,int = 0,int = -1) /ReleaseGIL/;
- static void about(QWidget *,const char *,const char *) /ReleaseGIL/;
- static void aboutQt(QWidget *,const char * = 0) /ReleaseGIL/;
+ static void about(TQWidget *,const char *,const char *) /ReleaseGIL/;
+ static void aboutTQt(TQWidget *,const char * = 0) /ReleaseGIL/;
const char *text() const;
void setText(const char *);
%End
-%If (Qt_2_00 -)
- static int information(QWidget *,const QString &,const QString &,int,
+%If (TQt_2_00 -)
+ static int information(TQWidget *,const TQString &,const TQString &,int,
int = 0,int = 0) /ReleaseGIL/;
- static int information(QWidget *,const QString &,const QString &,
- const QString & = QString::null,
- const QString & = QString::null,
- const QString & = QString::null,
+ static int information(TQWidget *,const TQString &,const TQString &,
+ const TQString & = TQString::null,
+ const TQString & = TQString::null,
+ const TQString & = TQString::null,
int = 0,int = -1) /ReleaseGIL/;
-%If (Qt_3_2_0 -)
- static int question(QWidget *,const QString &,const QString &,int,
+%If (TQt_3_2_0 -)
+ static int question(TQWidget *,const TQString &,const TQString &,int,
int = 0,int = 0) /ReleaseGIL/;
- static int question(QWidget *,const QString &,const QString &,
- const QString & = QString::null,
- const QString & = QString::null,
- const QString & = QString::null,
+ static int question(TQWidget *,const TQString &,const TQString &,
+ const TQString & = TQString::null,
+ const TQString & = TQString::null,
+ const TQString & = TQString::null,
int = 0,int = -1) /ReleaseGIL/;
%End
- static int warning(QWidget *,const QString &,const QString &,int,
+ static int warning(TQWidget *,const TQString &,const TQString &,int,
int = 0,int = 0) /ReleaseGIL/;
- static int warning(QWidget *,const QString &,const QString &,
- const QString & = QString::null,
- const QString & = QString::null,
- const QString & = QString::null,int = 0,
+ static int warning(TQWidget *,const TQString &,const TQString &,
+ const TQString & = TQString::null,
+ const TQString & = TQString::null,
+ const TQString & = TQString::null,int = 0,
int = -1) /ReleaseGIL/;
- static int critical(QWidget *,const QString &,const QString &,int,
+ static int critical(TQWidget *,const TQString &,const TQString &,int,
int = 0,int = 0) /ReleaseGIL/;
- static int critical(QWidget *,const QString &,const QString &,
- const QString & = QString::null,
- const QString & = QString::null,
- const QString & = QString::null,int = 0,
+ static int critical(TQWidget *,const TQString &,const TQString &,
+ const TQString & = TQString::null,
+ const TQString & = TQString::null,
+ const TQString & = TQString::null,int = 0,
int = -1) /ReleaseGIL/;
- static void about(QWidget *,const QString &,
- const QString &) /ReleaseGIL/;
- static void aboutQt(QWidget *,
- const QString & = QString::null) /ReleaseGIL/;
+ static void about(TQWidget *,const TQString &,
+ const TQString &) /ReleaseGIL/;
+ static void aboutTQt(TQWidget *,
+ const TQString & = TQString::null) /ReleaseGIL/;
- QString text() const;
- void setText(const QString &);
+ TQString text() const;
+ void setText(const TQString &);
%End
Icon icon() const;
void setIcon(Icon);
-%If (Qt_2_00 -)
- void setIcon(const QPixmap &);
+%If (TQt_2_00 -)
+ void setIcon(const TQPixmap &);
%End
- const QPixmap *iconPixmap() const;
- void setIconPixmap(const QPixmap &);
+ const TQPixmap *iconPixmap() const;
+ void setIconPixmap(const TQPixmap &);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *buttonText(int) const;
void setButtonText(int,const char *);
%End
-%If (Qt_2_00 -)
- QString buttonText(int) const;
- void setButtonText(int,const QString &);
+%If (TQt_2_00 -)
+ TQString buttonText(int) const;
+ void setButtonText(int,const TQString &);
%End
void adjustSize();
-%If (- Qt_3_0_0)
- static QPixmap standardIcon(Icon,GUIStyle);
+%If (- TQt_3_0_0)
+ static TQPixmap standardIcon(Icon,GUIStyle);
%End
-%If (Qt_3_0_0 -)
- static QPixmap standardIcon(Icon);
+%If (TQt_3_0_0 -)
+ static TQPixmap standardIcon(Icon);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
TextFormat textFormat() const;
void setTextFormat(TextFormat);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setStyle(GUIStyle);
%End
protected:
- void resizeEvent(QResizeEvent *);
-%If (Qt_3_0_0 -)
- void showEvent(QShowEvent *);
+ void resizeEvent(TQResizeEvent *);
+%If (TQt_3_0_0 -)
+ void showEvent(TQShowEvent *);
%End
-%If (Qt_3_2_0 -)
- void closeEvent(QCloseEvent *);
+%If (TQt_3_2_0 -)
+ void closeEvent(TQCloseEvent *);
%End
- void keyPressEvent(QKeyEvent *);
-%If (Qt_2_00 -)
- void styleChanged(QStyle &);
+ void keyPressEvent(TQKeyEvent *);
+%If (TQt_2_00 -)
+ void styleChanged(TQStyle &);
%End
private:
- QMessageBox(const QMessageBox &);
+ TQMessageBox(const TQMessageBox &);
};
%End
diff --git a/sip/qt/qmetaobject.sip b/sip/qt/qmetaobject.sip
index 5cf7703..b4cb53c 100644
--- a/sip/qt/qmetaobject.sip
+++ b/sip/qt/qmetaobject.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QMetaObject and QMetaProperty.
+// This is the SIP interface definition for TQMetaObject and TQMetaProperty.
//
// 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>QMetaObject</Title>
+<Sect2><Title>TQMetaObject</Title>
<FuncSynopsis>
<FuncDef>int <Function>numClassInfo</Function> const</FuncDef>
<ParamDef>bool <Parameter>super</Parameter> = FALSE</ParamDef>
@@ -31,7 +31,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>const QClassInfo *<Function>classInfo</Function> const</FuncDef>
+ <FuncDef>const TQClassInfo *<Function>classInfo</Function> const</FuncDef>
<ParamDef>bool <Parameter>super</Parameter> = FALSE</ParamDef>
</FuncSynopsis>
<Para>
@@ -39,15 +39,15 @@ Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QMetaProperty</Title>
+<Sect2><Title>TQMetaProperty</Title>
<Para>
-<Literal>QMetaProperty</Literal> is fully implemented.
+<Literal>TQMetaProperty</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QMetaObject
+class TQMetaObject
{
%TypeHeaderCode
#include <qmetaobject.h>
@@ -56,44 +56,44 @@ class QMetaObject
public:
const char *className() const;
const char *superClassName() const;
- QMetaObject *superClass() const;
+ TQMetaObject *superClass() const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
bool inherits(const char *) const;
int numSlots(bool = 0) const;
int numSignals(bool = 0) const;
- QStrList slotNames(bool = 0) const;
- QStrList signalNames(bool = 0) const;
+ TQStrList slotNames(bool = 0) const;
+ TQStrList signalNames(bool = 0) const;
//int numClassInfo(bool = 0) const;
- //QClassInfo *classInfo(int,bool = 0) const;
+ //TQClassInfo *classInfo(int,bool = 0) const;
const char *classInfo(const char *,bool = 0) const;
-%If (Qt_PROPERTIES)
-%If (Qt_3_0_0 -)
- const QMetaProperty *property(int,bool = 0) const;
+%If (TQt_PROPERTIES)
+%If (TQt_3_0_0 -)
+ const TQMetaProperty *property(int,bool = 0) const;
int findProperty(const char *,bool = 0) const;
int numProperties(bool = 0) const;
%End
-%If (- Qt_3_0_0)
- const QMetaProperty *property(const char *,bool = 0) const;
+%If (- TQt_3_0_0)
+ const TQMetaProperty *property(const char *,bool = 0) const;
%End
- QStrList propertyNames(bool = 0) const;
+ TQStrList propertyNames(bool = 0) const;
%End
%End
private:
- QMetaObject(const QMetaObject &);
+ TQMetaObject(const TQMetaObject &);
};
-%If (Qt_PROPERTIES)
-%If (Qt_2_1_0 -)
+%If (TQt_PROPERTIES)
+%If (TQt_2_1_0 -)
-class QMetaProperty
+class TQMetaProperty
{
%TypeHeaderCode
#include <qmetaobject.h>
@@ -103,40 +103,40 @@ public:
const char *type() const;
const char *name() const;
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
bool writable() const;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
bool writeable() const;
%End
bool isValid() const;
bool isSetType() const;
bool isEnumType() const;
- QStrList enumKeys() const;
+ TQStrList enumKeys() const;
int keyToValue(const char *) const;
const char *valueToKey(int) const;
- int keysToValue(const QStrList &) const;
- QStrList valueToKeys(int) const;
+ int keysToValue(const TQStrList &) const;
+ TQStrList valueToKeys(int) const;
-%If (Qt_3_1_0 -)
- bool designable(QObject * = 0) const;
- bool scriptable(QObject * = 0) const;
- bool stored(QObject * = 0) const;
+%If (TQt_3_1_0 -)
+ bool designable(TQObject * = 0) const;
+ bool scriptable(TQObject * = 0) const;
+ bool stored(TQObject * = 0) const;
%End
-%If (Qt_3_0_0 - Qt_3_1_0)
- bool designable(QObject *) const;
- bool scriptable(QObject *) const;
- bool stored(QObject *) const;
+%If (TQt_3_0_0 - TQt_3_1_0)
+ bool designable(TQObject *) const;
+ bool scriptable(TQObject *) const;
+ bool stored(TQObject *) const;
%End
-%If (Qt_3_0_0 -)
- bool reset(QObject *) const;
+%If (TQt_3_0_0 -)
+ bool reset(TQObject *) const;
%End
-%If (- Qt_3_0_0)
- bool stored(QObject *) const;
+%If (- TQt_3_0_0)
+ bool stored(TQObject *) const;
bool designable() const;
enum Specification {
@@ -155,7 +155,7 @@ public:
UnresolvedDesignable,
NotDesignable,
NotStored,
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
StdSet,
%End
};
diff --git a/sip/qt/qmime.sip b/sip/qt/qmime.sip
index cb5abd8..53d48fe 100644
--- a/sip/qt/qmime.sip
+++ b/sip/qt/qmime.sip
@@ -1,104 +1,104 @@
-// This is the SIP interface definition for the Qt v2+ QMimeSource,
-// QMimeSourceFactory and QWindowsMime classes.
+// This is the SIP interface definition for the TQt v2+ TQMimeSource,
+// TQMimeSourceFactory and TQWindowsMime classes.
//
// 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>QMimeSource (Qt v2+)</Title>
+<Sect2><Title>TQMimeSource (TQt v2+)</Title>
<Para>
-<Literal>QMimeSource</Literal> is fully implemented.
+<Literal>TQMimeSource</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMimeSourceFactory (Qt v2+)</Title>
+<Sect2><Title>TQMimeSourceFactory (TQt v2+)</Title>
<Para>
-<Literal>QMimeSourceFactory</Literal> is fully implemented.
+<Literal>TQMimeSourceFactory</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QWindowsMime (Qt v3+)</Title>
+<Sect2><Title>TQWindowsMime (TQt v3+)</Title>
<Para>
-<Literal>QWindowsMime</Literal> is fully implemented.
+<Literal>TQWindowsMime</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QMimeSource
+class TQMimeSource
{
%TypeHeaderCode
#include <qmime.h>
%End
public:
-%If (Qt_3_0_0 -)
- QMimeSource();
+%If (TQt_3_0_0 -)
+ TQMimeSource();
%End
virtual const char *format(int = 0) const = 0;
virtual bool provides(const char *) const;
- virtual QByteArray encodedData(const char *) const = 0;
-%If (Qt_3_0_0 -)
+ virtual TQByteArray encodedData(const char *) const = 0;
+%If (TQt_3_0_0 -)
int serialNumber() const;
%End
};
-class QMimeSourceFactory
+class TQMimeSourceFactory
{
%TypeHeaderCode
#include <qmime.h>
%End
public:
- QMimeSourceFactory();
+ TQMimeSourceFactory();
- static QMimeSourceFactory *defaultFactory();
- static void setDefaultFactory(QMimeSourceFactory * /Transfer/);
-%If (Qt_3_0_0 -)
- static QMimeSourceFactory *takeDefaultFactory() /TransferBack/;
- static void addFactory(QMimeSourceFactory *);
- static void removeFactory(QMimeSourceFactory *);
+ static TQMimeSourceFactory *defaultFactory();
+ static void setDefaultFactory(TQMimeSourceFactory * /Transfer/);
+%If (TQt_3_0_0 -)
+ static TQMimeSourceFactory *takeDefaultFactory() /TransferBack/;
+ static void addFactory(TQMimeSourceFactory *);
+ static void removeFactory(TQMimeSourceFactory *);
%End
- virtual const QMimeSource *data(const QString &) const;
- virtual QString makeAbsolute(const QString &,const QString &) const;
- const QMimeSource *data(const QString &,const QString &) const;
+ virtual const TQMimeSource *data(const TQString &) const;
+ virtual TQString makeAbsolute(const TQString &,const TQString &) const;
+ const TQMimeSource *data(const TQString &,const TQString &) const;
- virtual void setText(const QString &,const QString &);
- virtual void setImage(const QString &,const QImage &);
- virtual void setPixmap(const QString &,const QPixmap &);
- virtual void setData(const QString &,QMimeSource * /Transfer/);
- virtual void setFilePath(const QStringList &);
-%If (Qt_2_1_0 -)
- virtual QStringList filePath() const;
- void addFilePath(const QString &);
+ virtual void setText(const TQString &,const TQString &);
+ virtual void setImage(const TQString &,const TQImage &);
+ virtual void setPixmap(const TQString &,const TQPixmap &);
+ virtual void setData(const TQString &,TQMimeSource * /Transfer/);
+ virtual void setFilePath(const TQStringList &);
+%If (TQt_2_1_0 -)
+ virtual TQStringList filePath() const;
+ void addFilePath(const TQString &);
%End
- virtual void setExtensionType(const QString &,const char *);
+ virtual void setExtensionType(const TQString &,const char *);
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
%End
diff --git a/sip/qt/qmotifplusstyle.sip b/sip/qt/qmotifplusstyle.sip
index 18aaa3e..910cfdb 100644
--- a/sip/qt/qmotifplusstyle.sip
+++ b/sip/qt/qmotifplusstyle.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QMotifPlusStyle.
+// This is the SIP interface definition for TQMotifPlusStyle.
//
// 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>QMotifPlusStyle (Qt v2.2+)</Title>
+<Sect2><Title>TQMotifPlusStyle (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>getButtonShift</Function></FuncDef>
<ParamDef>int &amp;<Parameter>x</Parameter></ParamDef>
@@ -29,12 +29,12 @@
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>x</Literal> and
-<Literal>y</Literal> values. (Qt v2)
+<Literal>y</Literal> values. (TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QScrollBar *<Parameter>sb</Parameter></ParamDef>
+ <ParamDef>const TQScrollBar *<Parameter>sb</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderLength</Parameter></ParamDef>
@@ -44,106 +44,106 @@ This takes no parameters and returns a tuple of the <Literal>x</Literal> and
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
-(Qt v2)
+(TQt v2)
</Para>
</Sect2>
%End
-%If (Qt_STYLE_MOTIFPLUS)
-%If (Qt_2_2_0 -)
+%If (TQt_STYLE_MOTIFPLUS)
+%If (TQt_2_2_0 -)
-class QMotifPlusStyle : QMotifStyle
+class TQMotifPlusStyle : TQMotifStyle
{
%TypeHeaderCode
#include <qmotifplusstyle.h>
%End
public:
-%If (- Qt_3_0_5)
- QMotifPlusStyle(bool = 0);
+%If (- TQt_3_0_5)
+ TQMotifPlusStyle(bool = 0);
%End
-%If (Qt_3_0_5 -)
- QMotifPlusStyle(bool = 1);
+%If (TQt_3_0_5 -)
+ TQMotifPlusStyle(bool = 1);
%End
- void polish(QPalette &);
- void polish(QWidget *);
- void unPolish(QWidget *);
+ void polish(TQPalette &);
+ void polish(TQWidget *);
+ void unPolish(TQWidget *);
- void polish(QApplication *);
- void unPolish(QApplication *);
+ void polish(TQApplication *);
+ void unPolish(TQApplication *);
-%If (- Qt_3_0_0)
- void polishPopupMenu(QPopupMenu *);
+%If (- TQt_3_0_0)
+ void polishPopupMenu(TQPopupMenu *);
int defaultFrameWidth() const;
- void drawArrow(QPainter *,ArrowType,bool,int,int,int,int,
- const QColorGroup &,bool,const QBrush * = 0);
- void drawMenuBarItem(QPainter *,int,int,int,int,QMenuItem *,
- QColorGroup &,bool,bool);
- void drawPopupMenuItem(QPainter *,bool,int,int,QMenuItem *,
- const QPalette &,bool,bool,int,int,int,int);
- void drawPushButton(QPushButton *,QPainter *);
- void drawButton(QPainter *,int,int,int,int,const QColorGroup &,bool = 0,
- const QBrush * = 0);
- void drawBevelButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,const QBrush * = 0);
+ void drawArrow(TQPainter *,ArrowType,bool,int,int,int,int,
+ const TQColorGroup &,bool,const TQBrush * = 0);
+ void drawMenuBarItem(TQPainter *,int,int,int,int,TQMenuItem *,
+ TQColorGroup &,bool,bool);
+ void drawPopupMenuItem(TQPainter *,bool,int,int,TQMenuItem *,
+ const TQPalette &,bool,bool,int,int,int,int);
+ void drawPushButton(TQPushButton *,TQPainter *);
+ void drawButton(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
+ const TQBrush * = 0);
+ void drawBevelButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,const TQBrush * = 0);
void getButtonShift(int &,int &);
- void drawComboButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,bool = 0,bool = 1,const QBrush * = 0);
- QRect comboButtonRect(int,int,int,int);
- QRect comboButtonFocusRect(int,int,int,int);
- void drawIndicator(QPainter *,int,int,int,int,const QColorGroup &,int,
+ void drawComboButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,bool = 0,bool = 1,const TQBrush * = 0);
+ TQRect comboButtonRect(int,int,int,int);
+ TQRect comboButtonFocusRect(int,int,int,int);
+ void drawIndicator(TQPainter *,int,int,int,int,const TQColorGroup &,int,
bool = 0,bool = 1);
- QSize indicatorSize() const;
- void drawExclusiveIndicator(QPainter *,int,int,int,int,
- const QColorGroup &,bool,bool = 0,bool = 1);
- QSize exclusiveIndicatorSize() const;
- void drawPanel(QPainter *,int,int,int,int,const QColorGroup &,bool = 0,
- int = 1,const QBrush * = 0);
+ TQSize indicatorSize() const;
+ void drawExclusiveIndicator(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool,bool = 0,bool = 1);
+ TQSize exclusiveIndicatorSize() const;
+ void drawPanel(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
+ int = 1,const TQBrush * = 0);
- void scrollBarMetrics(const QScrollBar *,int &,int &,int &,int &);
+ void scrollBarMetrics(const TQScrollBar *,int &,int &,int &,int &);
- void drawScrollBarControls(QPainter *,const QScrollBar *,int,uint,uint);
- void drawTab(QPainter *,const QTabBar *,QTab *,bool);
- void drawSlider(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawScrollBarControls(TQPainter *,const TQScrollBar *,int,uint,uint);
+ void drawTab(TQPainter *,const TQTabBar *,TQTab *,bool);
+ void drawSlider(TQPainter *,int,int,int,int,const TQColorGroup &,
Orientation,bool,bool);
- void drawSliderGroove(QPainter *,int,int,int,int,const QColorGroup &,
- QCOORD,Orientation);
+ void drawSliderGroove(TQPainter *,int,int,int,int,const TQColorGroup &,
+ TQCOORD,Orientation);
%End
-%If (Qt_3_0_0 -)
- void drawPrimitive(PrimitiveElement,QPainter *,const QRect &,
- const QColorGroup &,SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const;
+%If (TQt_3_0_0 -)
+ void drawPrimitive(PrimitiveElement,TQPainter *,const TQRect &,
+ const TQColorGroup &,SFlags = Style_Default,
+ const TQStyleOption & = TQStyleOption()) const;
- void drawControl(ControlElement,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ void drawControl(ControlElement,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- QRect subRect(SubRect,const QWidget *) const;
+ TQRect subRect(SubRect,const TQWidget *) const;
- void drawComplexControl(ComplexControl,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ void drawComplexControl(ComplexControl,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,SCFlags = SC_All,
SCFlags = SC_None,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- QRect querySubControlMetrics(ComplexControl,const QWidget *,
+ TQRect querySubControlMetrics(ComplexControl,const TQWidget *,
SubControl,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- int pixelMetric(PixelMetric,const QWidget * = 0) const;
+ int pixelMetric(PixelMetric,const TQWidget * = 0) const;
- int styleHint(StyleHint,const QWidget *,
- const QStyleOption & = QStyleOption(),
- QStyleHintReturn * = 0) const;
+ int styleHint(StyleHint,const TQWidget *,
+ const TQStyleOption & = TQStyleOption(),
+ TQStyleHintReturn * = 0) const;
%End
protected:
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
};
%End
diff --git a/sip/qt/qmotifstyle.sip b/sip/qt/qmotifstyle.sip
index d749745..9e20296 100644
--- a/sip/qt/qmotifstyle.sip
+++ b/sip/qt/qmotifstyle.sip
@@ -1,30 +1,30 @@
-// This is the SIP interface definition for QMotifStyle.
+// This is the SIP interface definition for TQMotifStyle.
//
// 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>QMotifStyle (Qt v2+)</Title>
+<Sect2><Title>TQMotifStyle (TQt v2+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>sb</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
@@ -34,12 +34,12 @@
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
-(Qt v2)
+(TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>void <Function>tabbarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>t</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
<ParamDef>int &<Parameter>hframe</Parameter></ParamDef>
<ParamDef>int &<Parameter>vframe</Parameter></ParamDef>
<ParamDef>int &<Parameter>overlap</Parameter></ParamDef>
@@ -47,120 +47,120 @@ This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Para>
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
-<Literal>overlap</Literal> values. (Qt v2)
+<Literal>overlap</Literal> values. (TQt v2)
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
-%If (Qt_STYLE_MOTIF)
+%If (TQt_2_00 -)
+%If (TQt_STYLE_MOTIF)
-class QMotifStyle : QCommonStyle
+class TQMotifStyle : TQCommonStyle
{
%TypeHeaderCode
#include <qmotifstyle.h>
%End
public:
- QMotifStyle(bool = 0);
+ TQMotifStyle(bool = 0);
void setUseHighlightColors(bool);
bool useHighlightColors() const;
- void polish(QPalette &);
- void polish(QWidget *);
- void polish(QApplication *);
-
-%If (- Qt_3_0_0)
- void drawButton(QPainter *,int,int,int,int,const QColorGroup &,bool = 0,
- const QBrush * = 0);
- void drawBevelButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,const QBrush * = 0);
- void drawFocusRect(QPainter *,const QRect &,const QColorGroup &,
- const QColor * =0,bool = 0);
-
-%If (Qt_2_1_0 -)
- void drawComboButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,bool = 0,bool = 1,const QBrush * = 0);
- QRect comboButtonRect(int,int,int,int);
- QRect comboButtonFocusRect(int,int,int,int);
+ void polish(TQPalette &);
+ void polish(TQWidget *);
+ void polish(TQApplication *);
+
+%If (- TQt_3_0_0)
+ void drawButton(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
+ const TQBrush * = 0);
+ void drawBevelButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,const TQBrush * = 0);
+ void drawFocusRect(TQPainter *,const TQRect &,const TQColorGroup &,
+ const TQColor * =0,bool = 0);
+
+%If (TQt_2_1_0 -)
+ void drawComboButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,bool = 0,bool = 1,const TQBrush * = 0);
+ TQRect comboButtonRect(int,int,int,int);
+ TQRect comboButtonFocusRect(int,int,int,int);
%End
- void drawPushButton(QPushButton *,QPainter *);
- void drawArrow(QPainter *,ArrowType,bool,int,int,int,int,
- const QColorGroup &,bool,const QBrush * = 0);
- QSize indicatorSize() const;
- void drawIndicator(QPainter *,int,int,int,int,const QColorGroup &,int,
+ void drawPushButton(TQPushButton *,TQPainter *);
+ void drawArrow(TQPainter *,ArrowType,bool,int,int,int,int,
+ const TQColorGroup &,bool,const TQBrush * = 0);
+ TQSize indicatorSize() const;
+ void drawIndicator(TQPainter *,int,int,int,int,const TQColorGroup &,int,
bool = 0,bool = 1);
- QSize exclusiveIndicatorSize() const;
- void drawExclusiveIndicator(QPainter *,int,int,int,int,
- const QColorGroup &,bool,bool = 0,bool = 1);
- void drawExclusiveIndicatorMask(QPainter *,int,int,int,int,bool);
+ TQSize exclusiveIndicatorSize() const;
+ void drawExclusiveIndicator(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool,bool = 0,bool = 1);
+ void drawExclusiveIndicatorMask(TQPainter *,int,int,int,int,bool);
- void tabbarMetrics(const QTabBar *,int &,int &,int &);
+ void tabbarMetrics(const TQTabBar *,int &,int &,int &);
- void drawTab(QPainter *,const QTabBar *,QTab *,bool);
- void drawTabMask(QPainter *,const QTabBar *,QTab *,bool);
+ void drawTab(TQPainter *,const TQTabBar *,TQTab *,bool);
+ void drawTabMask(TQPainter *,const TQTabBar *,TQTab *,bool);
- void scrollBarMetrics(const QScrollBar *,int &,int &,int &,int &);
+ void scrollBarMetrics(const TQScrollBar *,int &,int &,int &,int &);
- void drawScrollBarControls(QPainter *,const QScrollBar *,int,uint,uint);
+ void drawScrollBarControls(TQPainter *,const TQScrollBar *,int,uint,uint);
int sliderLength() const;
- void drawSlider(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawSlider(TQPainter *,int,int,int,int,const TQColorGroup &,
Orientation,bool,bool);
- void drawSliderGroove(QPainter *,int,int,int,int,const QColorGroup &,
- QCOORD,Orientation);
+ void drawSliderGroove(TQPainter *,int,int,int,int,const TQColorGroup &,
+ TQCOORD,Orientation);
int splitterWidth() const;
- void drawSplitter(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawSplitter(TQPainter *,int,int,int,int,const TQColorGroup &,
Orientation);
- void drawCheckMark(QPainter *,int,int,int,int,const QColorGroup &,bool,
+ void drawCheckMark(TQPainter *,int,int,int,int,const TQColorGroup &,bool,
bool);
- void polishPopupMenu(QPopupMenu *);
- int extraPopupMenuItemWidth(bool,int,QMenuItem *,const QFontMetrics &);
- int popupMenuItemHeight(bool,QMenuItem *,const QFontMetrics &);
- void drawPopupMenuItem(QPainter *,bool,int,int,QMenuItem *,
- const QPalette &,bool,bool,int,int,int,int);
+ void polishPopupMenu(TQPopupMenu *);
+ int extraPopupMenuItemWidth(bool,int,TQMenuItem *,const TQFontMetrics &);
+ int popupMenuItemHeight(bool,TQMenuItem *,const TQFontMetrics &);
+ void drawPopupMenuItem(TQPainter *,bool,int,int,TQMenuItem *,
+ const TQPalette &,bool,bool,int,int,int,int);
%End
-%If (Qt_3_0_0 -)
- void polishPopupMenu(QPopupMenu *);
+%If (TQt_3_0_0 -)
+ void polishPopupMenu(TQPopupMenu *);
- void drawPrimitive(PrimitiveElement,QPainter *,const QRect &,
- const QColorGroup &,SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const;
+ void drawPrimitive(PrimitiveElement,TQPainter *,const TQRect &,
+ const TQColorGroup &,SFlags = Style_Default,
+ const TQStyleOption & = TQStyleOption()) const;
- void drawControl(ControlElement,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ void drawControl(ControlElement,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- void drawComplexControl(ComplexControl,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ void drawComplexControl(ComplexControl,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,SCFlags = SC_All,
SCFlags = SC_None,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- QRect querySubControlMetrics(ComplexControl,const QWidget *,SubControl,
- const QStyleOption & = QStyleOption()) const;
+ TQRect querySubControlMetrics(ComplexControl,const TQWidget *,SubControl,
+ const TQStyleOption & = TQStyleOption()) const;
- int pixelMetric(PixelMetric,const QWidget * = 0) const;
+ int pixelMetric(PixelMetric,const TQWidget * = 0) const;
- QSize sizeFromContents(ContentsType,const QWidget *,const QSize &,
- const QStyleOption & = QStyleOption()) const;
+ TQSize sizeFromContents(ContentsType,const TQWidget *,const TQSize &,
+ const TQStyleOption & = TQStyleOption()) const;
- QRect subRect(SubRect,const QWidget *) const;
+ TQRect subRect(SubRect,const TQWidget *) const;
- QPixmap stylePixmap(StylePixmap,const QWidget * = 0,
- const QStyleOption & = QStyleOption()) const;
+ TQPixmap stylePixmap(StylePixmap,const TQWidget * = 0,
+ const TQStyleOption & = TQStyleOption()) const;
- int styleHint(StyleHint,const QWidget *,
- const QStyleOption & = QStyleOption(),
- QStyleHintReturn * = 0) const;
+ int styleHint(StyleHint,const TQWidget *,
+ const TQStyleOption & = TQStyleOption(),
+ TQStyleHintReturn * = 0) const;
%End
private:
-%If (Qt_3_0_0 -)
- QMotifStyle(const QMotifStyle &);
+%If (TQt_3_0_0 -)
+ TQMotifStyle(const TQMotifStyle &);
%End
};
diff --git a/sip/qt/qmovie.sip b/sip/qt/qmovie.sip
index ba4f3e9..3b79830 100644
--- a/sip/qt/qmovie.sip
+++ b/sip/qt/qmovie.sip
@@ -1,30 +1,30 @@
-// This is the SIP interface definition for QMovie.
+// This is the SIP interface definition for TQMovie.
//
// 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>QMovie</Title>
+<Sect2><Title>TQMovie</Title>
<FuncSynopsis>
- <FuncDef><Function>QMovie</Function></FuncDef>
- <ParamDef>QDataSource *<Parameter>src</Parameter></ParamDef>
+ <FuncDef><Function>TQMovie</Function></FuncDef>
+ <ParamDef>TQDataSource *<Parameter>src</Parameter></ParamDef>
<ParamDef>int <Parameter>bufsize</Parameter> = 1024</ParamDef>
</FuncSynopsis>
<Para>
@@ -38,43 +38,43 @@ Not implemented.
</FuncSynopsis>
<Para>
<Literal>length</Literal> is derived from <Literal>data</Literal> and not
-passed as a parameter. (Qt v2.2.0+)
+passed as a parameter. (TQt v2.2.0+)
</Para>
</Sect2>
%End
-class QMovie
+class TQMovie
{
%TypeHeaderCode
#include <qmovie.h>
%End
public:
- QMovie();
-%If (Qt_2_2_0 -)
- QMovie(int);
+ TQMovie();
+%If (TQt_2_2_0 -)
+ TQMovie(int);
%End
-// QMovie(QDataSource *,int = 1024);
-%If (- Qt_2_00)
- QMovie(const char *,int = 1024);
+// TQMovie(TQDataSource *,int = 1024);
+%If (- TQt_2_00)
+ TQMovie(const char *,int = 1024);
%End
-%If (Qt_2_00 -)
- QMovie(const QString &,int = 1024);
+%If (TQt_2_00 -)
+ TQMovie(const TQString &,int = 1024);
%End
- QMovie(QByteArray,int = 1024);
- QMovie(const QMovie &);
+ TQMovie(TQByteArray,int = 1024);
+ TQMovie(const TQMovie &);
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
int pushSpace() const;
void pushData(const uchar * /Array/,int /ArraySize/);
%End
- const QColor &backgroundColor() const;
- void setBackgroundColor(const QColor &);
- const QRect &getValidRect() const;
- const QPixmap &framePixmap() const;
-%If (Qt_2_2_0 -)
- const QImage &frameImage() const;
+ const TQColor &backgroundColor() const;
+ void setBackgroundColor(const TQColor &);
+ const TQRect &getValidRect() const;
+ const TQPixmap &framePixmap() const;
+%If (TQt_2_2_0 -)
+ const TQImage &frameImage() const;
%End
bool isNull() const;
int frameNumber() const;
@@ -89,10 +89,10 @@ public:
void restart();
int speed() const;
void setSpeed(int);
- void connectResize(SIP_RXOBJ_CON,SIP_SLOT_CON(const QSize &));
- void disconnectResize(SIP_RXOBJ_DIS,SIP_SLOT_DIS(const QSize &));
- void connectUpdate(SIP_RXOBJ_CON,SIP_SLOT_CON(const QRect &));
- void disconnectUpdate(SIP_RXOBJ_DIS,SIP_SLOT_DIS(const QRect &));
+ void connectResize(SIP_RXOBJ_CON,SIP_SLOT_CON(const TQSize &));
+ void disconnectResize(SIP_RXOBJ_DIS,SIP_SLOT_DIS(const TQSize &));
+ void connectUpdate(SIP_RXOBJ_CON,SIP_SLOT_CON(const TQRect &));
+ void disconnectUpdate(SIP_RXOBJ_DIS,SIP_SLOT_DIS(const TQRect &));
enum Status {
SourceEmpty = -2,
diff --git a/sip/qt/qmultilinedit.sip b/sip/qt/qmultilinedit.sip
index 1d407ba..cc462be 100644
--- a/sip/qt/qmultilinedit.sip
+++ b/sip/qt/qmultilinedit.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QMultiLineEdit.
+// This is the SIP interface definition for TQMultiLineEdit.
//
// 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>QMultiLineEdit</Title>
+<Sect2><Title>TQMultiLineEdit</Title>
<FuncSynopsis>
<FuncDef>void <Function>cursorPosition</Function> const</FuncDef>
<ParamDef>int *<Parameter>line</Parameter></ParamDef>
@@ -29,7 +29,7 @@
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>line</Literal> and
-<Literal>col</Literal> values. (Qt v1.x, Qt v2.x)
+<Literal>col</Literal> values. (TQt v1.x, TQt v2.x)
</Para>
<FuncSynopsis>
@@ -37,7 +37,7 @@ This takes no parameters and returns a tuple of the <Literal>line</Literal> and
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-This has been renamed <Literal>delChar</Literal> in Python. (Qt v1.x, Qt v2.x)
+This has been renamed <Literal>delChar</Literal> in Python. (TQt v1.x, TQt v2.x)
</Para>
<FuncSynopsis>
@@ -47,7 +47,7 @@ This has been renamed <Literal>delChar</Literal> in Python. (Qt v1.x, Qt v2.x)
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>line</Literal> and
-<Literal>col</Literal> values. (Qt v1.x, Qt v2.x)
+<Literal>col</Literal> values. (TQt v1.x, TQt v2.x)
</Para>
<FuncSynopsis>
@@ -66,35 +66,35 @@ This takes no parameters and returns a tuple of the bool result and the
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QMultiLineEdit : QTextEdit
+class TQMultiLineEdit : TQTextEdit
{
%TypeHeaderCode
#include <qmultilineedit.h>
%End
public:
- QMultiLineEdit(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQMultiLineEdit(TQWidget * /TransferThis/ = 0,const char * = 0);
- QString textLine(int) const;
+ TQString textLine(int) const;
int numLines() const;
- virtual void insertLine(const QString &,int = -1);
-%If (Qt_3_1_0 -)
- virtual void insertAt(const QString &,int,int);
- virtual void insertAt(const QString &,int,int,bool);
+ virtual void insertLine(const TQString &,int = -1);
+%If (TQt_3_1_0 -)
+ virtual void insertAt(const TQString &,int,int);
+ virtual void insertAt(const TQString &,int,int,bool);
%End
-%If (- Qt_3_1_0)
- virtual void insertAt(const QString &,int,int,bool = 0);
+%If (- TQt_3_1_0)
+ virtual void insertAt(const TQString &,int,int,bool = 0);
%End
virtual void removeLine(int);
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
virtual void setCursorPosition(int,int);
virtual void setCursorPosition(int,int,bool);
%End
-%If (- Qt_3_1_0)
+%If (- TQt_3_1_0)
virtual void setCursorPosition(int,int,bool = 0);
%End
bool atBeginning() const;
@@ -107,7 +107,7 @@ public:
bool edited() const;
bool hasMarkedText() const;
- QString markedText() const;
+ TQString markedText() const;
void cursorWordForward(bool);
void cursorWordBackward(bool);
@@ -125,8 +125,8 @@ public slots:
void deselect();
protected:
- QPoint cursorPoint() const;
- virtual void insertAndMark(const QString &,bool);
+ TQPoint cursorPoint() const;
+ virtual void insertAndMark(const TQString &,bool);
virtual void newLine();
virtual void killLine();
virtual void pageUp(bool = 0);
@@ -142,22 +142,22 @@ protected:
int lineLength(int) const;
private:
- QMultiLineEdit(const QMultiLineEdit &);
+ TQMultiLineEdit(const TQMultiLineEdit &);
};
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
-class QMultiLineEdit : QTableView
+class TQMultiLineEdit : TQTableView
{
%TypeHeaderCode
#include <qmultilinedit.h>
%End
public:
- QMultiLineEdit(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQMultiLineEdit(TQWidget * /TransferThis/ = 0,const char * = 0);
int numLines() const;
virtual void removeLine(int);
@@ -171,11 +171,11 @@ public:
bool autoUpdate() const;
bool isReadOnly() const;
bool isOverwriteMode() const;
- QString text() const;
+ TQString text() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *textLine(int) const;
- void setFont(const QFont &);
+ void setFont(const TQFont &);
virtual void insertLine(const char *,int = -1);
virtual void insertAt(const char *,int,int);
void setCursorPosition(int,int,bool = 0);
@@ -183,20 +183,20 @@ public:
void setAutoUpdate(bool);
%End
-%If (Qt_2_00 -)
- QString textLine(int) const;
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
- QSizePolicy sizePolicy() const;
- virtual void setFont(const QFont &);
- virtual void insertLine(const QString &,int = -1);
- virtual void insertAt(const QString &,int,int,bool = 0);
+%If (TQt_2_00 -)
+ TQString textLine(int) const;
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
+ TQSizePolicy sizePolicy() const;
+ virtual void setFont(const TQFont &);
+ virtual void insertLine(const TQString &,int = -1);
+ virtual void insertAt(const TQString &,int,int,bool = 0);
virtual void setCursorPosition(int,int,bool = 0);
virtual void setFixedVisibleLines(int);
void setAlignment(int);
int alignment() const;
- virtual void setValidator(const QValidator *);
- const QValidator *validator() const;
+ virtual void setValidator(const TQValidator *);
+ const TQValidator *validator() const;
void setEdited(bool);
bool edited() const;
void cursorWordForward(bool);
@@ -221,7 +221,7 @@ public:
virtual void setAutoUpdate(bool);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setMaxLength(int);
int maxLength() const;
@@ -257,32 +257,32 @@ public slots:
void clear();
void deselect();
void selectAll();
-%If (Qt_CLIPBOARD)
+%If (TQt_CLIPBOARD)
void paste();
-%If (Qt_2_2_0 -)
- void pasteSubType(const QCString &);
+%If (TQt_2_2_0 -)
+ void pasteSubType(const TQCString &);
%End
void cut();
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setText(const char *);
void setReadOnly(bool);
void setOverwriteMode(bool);
void append(const char *);
void copyText();
%End
-%If (Qt_2_00 -)
- virtual void setText(const QString &);
+%If (TQt_2_00 -)
+ virtual void setText(const TQString &);
virtual void setReadOnly(bool);
virtual void setOverwriteMode(bool);
- void append(const QString &);
-%If (Qt_CLIPBOARD)
+ void append(const TQString &);
+%If (TQt_CLIPBOARD)
void copyText() const;
void copy() const;
%End
- void insert(const QString &);
+ void insert(const TQString &);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void undo();
void redo();
%End
@@ -290,59 +290,59 @@ public slots:
signals:
void textChanged();
void returnPressed();
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void undoAvailable(bool);
void redoAvailable(bool);
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
void copyAvailable(bool);
%End
protected:
- void paintCell(QPainter *,int,int);
-%If (Qt_2_2_0 -)
- bool event(QEvent *);
-%End
- void mousePressEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseDoubleClickEvent(QMouseEvent *);
-%If (Qt_2_00 -)
- void wheelEvent(QWheelEvent *);
-%End
- void keyPressEvent(QKeyEvent *);
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
- void timerEvent(QTimerEvent *);
- void leaveEvent(QEvent *);
- void resizeEvent(QResizeEvent *);
-%If (Qt_DRAGANDDROP)
-%If (Qt_2_00 -)
- void dragMoveEvent(QDragMoveEvent *);
-%End
-%If (Qt_2_1_0 -)
- void dragEnterEvent(QDragEnterEvent *);
-%End
-%If (Qt_2_00 -)
- void dropEvent(QDropEvent *);
- void dragLeaveEvent(QDragLeaveEvent *);
+ void paintCell(TQPainter *,int,int);
+%If (TQt_2_2_0 -)
+ bool event(TQEvent *);
+%End
+ void mousePressEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseDoubleClickEvent(TQMouseEvent *);
+%If (TQt_2_00 -)
+ void wheelEvent(TQWheelEvent *);
+%End
+ void keyPressEvent(TQKeyEvent *);
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
+ void timerEvent(TQTimerEvent *);
+ void leaveEvent(TQEvent *);
+ void resizeEvent(TQResizeEvent *);
+%If (TQt_DRAGANDDROP)
+%If (TQt_2_00 -)
+ void dragMoveEvent(TQDragMoveEvent *);
+%End
+%If (TQt_2_1_0 -)
+ void dragEnterEvent(TQDragEnterEvent *);
+%End
+%If (TQt_2_00 -)
+ void dropEvent(TQDropEvent *);
+ void dragLeaveEvent(TQDragLeaveEvent *);
%End
%End
bool hasMarkedText() const;
- QString markedText() const;
+ TQString markedText() const;
int textWidth(int);
-%If (- Qt_2_00)
- int textWidth(QString *);
+%If (- TQt_2_00)
+ int textWidth(TQString *);
%End
-%If (Qt_2_00 -)
- int textWidth(const QString &);
+%If (TQt_2_00 -)
+ int textWidth(const TQString &);
%End
- QPoint cursorPoint() const;
-%If (- Qt_2_00)
+ TQPoint cursorPoint() const;
+%If (- TQt_2_00)
virtual void insertChar(char);
%End
-%If (Qt_2_00 -)
- virtual void insert(const QString &,bool);
+%If (TQt_2_00 -)
+ virtual void insert(const TQString &,bool);
%End
virtual void newLine();
virtual void killLine();
@@ -358,17 +358,17 @@ protected:
virtual void end(bool = 0);
bool getMarkedRegion(int *,int *,int *,int *) const;
int lineLength(int) const;
- QString *getString(int) const;
-%If (Qt_2_1_0 -)
+ TQString *getString(int) const;
+%If (TQt_2_1_0 -)
bool isEndOfParagraph(int) const;
%End
-%If (Qt_2_00 -)
- QString stringShown(int) const;
- void insertChar(QChar);
+%If (TQt_2_00 -)
+ TQString stringShown(int) const;
+ void insertChar(TQChar);
%End
private:
- QMultiLineEdit(const QMultiLineEdit &);
+ TQMultiLineEdit(const TQMultiLineEdit &);
};
%End
diff --git a/sip/qt/qmutex.sip b/sip/qt/qmutex.sip
index 1f9ff86..3bf03bc 100644
--- a/sip/qt/qmutex.sip
+++ b/sip/qt/qmutex.sip
@@ -1,52 +1,52 @@
-// This is the SIP interface definition for QMutex and QMutexLocker.
+// This is the SIP interface definition for TQMutex and TQMutexLocker.
//
// 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>QMutex (Qt v2.2+)</Title>
+<Sect2><Title>TQMutex (TQt v2.2+)</Title>
<Para>
-<Literal>QMutex</Literal> is fully implemented.
+<Literal>TQMutex</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QMutexLocker (Qt v3.1+)</Title>
+<Sect2><Title>TQMutexLocker (TQt v3.1+)</Title>
<Para>
-<Literal>QMutexLocker</Literal> is fully implemented.
+<Literal>TQMutexLocker</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_THREAD_SUPPORT)
+%If (TQt_THREAD_SUPPORT)
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QMutex
+class TQMutex
{
%TypeHeaderCode
#include <qmutex.h>
%End
public:
- QMutex(bool = 0);
+ TQMutex(bool = 0);
void lock() /ReleaseGIL/;
void unlock();
@@ -54,49 +54,49 @@ public:
bool tryLock();
private:
- QMutex(const QMutex &);
+ TQMutex(const TQMutex &);
};
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
+%If (TQt_2_2_0 - TQt_3_0_0)
-class QMutex : Qt
+class TQMutex : TQt
{
%TypeHeaderCode
#include <qthread.h>
%End
public:
- QMutex(bool = 0);
+ TQMutex(bool = 0);
void lock() /ReleaseGIL/;
void unlock();
bool locked();
private:
- QMutex(const QMutex &);
+ TQMutex(const TQMutex &);
};
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
-class QMutexLocker
+class TQMutexLocker
{
%TypeHeaderCode
#include <qmutex.h>
%End
public:
- QMutexLocker(QMutex *) /ReleaseGIL/;
+ TQMutexLocker(TQMutex *) /ReleaseGIL/;
- QMutex *mutex() const;
+ TQMutex *mutex() const;
private:
- QMutexLocker(const QMutexLocker &);
+ TQMutexLocker(const TQMutexLocker &);
};
%End
diff --git a/sip/qt/qnamespace.sip b/sip/qt/qnamespace.sip
index cddd3b5..7bd009c 100644
--- a/sip/qt/qnamespace.sip
+++ b/sip/qt/qnamespace.sip
@@ -1,62 +1,62 @@
-// This is the SIP interface definition for the Qt v2+ Qt class.
+// This is the SIP interface definition for the TQt v2+ TQt class.
//
// 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>Qt (Qt v2+)</Title>
+<Sect2><Title>TQt (TQt v2+)</Title>
<Para>
-<Literal>Qt</Literal> is fully implemented.
+<Literal>TQt</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class Qt
+class TQt
{
%TypeHeaderCode
#include <qnamespace.h>
%End
public:
- static const QColor &color0;
- static const QColor &color1;
- static const QColor &black;
- static const QColor &white;
- static const QColor &darkGray;
- static const QColor &gray;
- static const QColor &lightGray;
- static const QColor &red;
- static const QColor &green;
- static const QColor &blue;
- static const QColor &cyan;
- static const QColor &magenta;
- static const QColor &yellow;
- static const QColor &darkRed;
- static const QColor &darkGreen;
- static const QColor &darkBlue;
- static const QColor &darkCyan;
- static const QColor &darkMagenta;
- static const QColor &darkYellow;
+ static const TQColor &color0;
+ static const TQColor &color1;
+ static const TQColor &black;
+ static const TQColor &white;
+ static const TQColor &darkGray;
+ static const TQColor &gray;
+ static const TQColor &lightGray;
+ static const TQColor &red;
+ static const TQColor &green;
+ static const TQColor &blue;
+ static const TQColor &cyan;
+ static const TQColor &magenta;
+ static const TQColor &yellow;
+ static const TQColor &darkRed;
+ static const TQColor &darkGreen;
+ static const TQColor &darkBlue;
+ static const TQColor &darkCyan;
+ static const TQColor &darkMagenta;
+ static const TQColor &darkYellow;
enum ButtonState {
NoButton,
@@ -67,11 +67,11 @@ public:
ShiftButton,
ControlButton,
AltButton,
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
MetaButton,
%End
KeyButtonMask,
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
Keypad,
%End
};
@@ -81,14 +81,14 @@ public:
Vertical
};
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
enum SortOrder {
Ascending,
Descending
};
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
enum AlignmentFlags {
AlignLeft,
AlignRight,
@@ -106,7 +106,7 @@ public:
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum AlignmentFlags {
AlignAuto,
AlignLeft,
@@ -135,7 +135,7 @@ public:
typedef uint WState;
// WidgetState isn't part of the public API but is used in code
- // generated by uic/pyuic, so we implement the minimum required.
+ // generated by uic/pyuic, so we implement the minimum retquired.
enum WidgetState {
WState_Polished
};
@@ -145,10 +145,10 @@ public:
enum WidgetFlags {
WType_TopLevel,
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
WType_Modal,
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
WType_Dialog,
%End
WType_Popup,
@@ -166,20 +166,20 @@ public:
WStyle_MinMax,
WStyle_Tool,
WStyle_StaysOnTop,
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
WStyle_Dialog,
%End
-%If (- Qt_2_1_0)
+%If (- TQt_2_1_0)
WStyle_Reserved2,
WStyle_Reserved3,
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
WStyle_ContextHelp,
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
+%If (TQt_2_1_0 - TQt_3_0_0)
WStyle_NoBorderEx,
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
WStyle_Reserved,
%End
WStyle_Mask,
@@ -190,37 +190,37 @@ public:
WPaintClever,
WResizeNoErase, // Obsolete
WMouseNoMask,
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
WNorthWestGravity,
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
WStaticContents,
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
WRepaintNoErase, // Obsolete
WX11BypassWM,
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
WWinOwnDC,
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
WGroupLeader,
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
WShowModal,
WNoMousePropagation,
WSubWindow,
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
WStyle_Splash,
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
WNoAutoErase,
%End
};
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
enum WindowState {
WindowNoState,
@@ -259,7 +259,7 @@ public:
OpaqueMode
};
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
enum PaintUnit {
PixelUnit,
LoMetricUnit,
@@ -271,18 +271,18 @@ public:
%End
enum GUIStyle {
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
MacStyle,
%End
WindowsStyle,
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
Win3Style,
PMStyle,
%End
MotifStyle
};
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum SequenceMatch {
NoMatch,
PartialMatch,
@@ -291,7 +291,7 @@ public:
%End
enum Modifier {
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
META,
%End
SHIFT,
@@ -316,7 +316,7 @@ public:
Key_Pause,
Key_Print,
Key_SysReq,
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
Key_Clear,
%End
@@ -380,7 +380,7 @@ public:
Key_Menu,
Key_Hyper_L,
Key_Hyper_R,
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Key_Help,
Key_Direction_L,
Key_Direction_R,
@@ -554,7 +554,7 @@ public:
Key_thorn,
Key_ydiaeresis,
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
Key_Back,
Key_Forward,
Key_Stop,
@@ -642,12 +642,12 @@ public:
DotLine,
DashDotLine,
DashDotDotLine,
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
MPenStyle
%End
};
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
enum PenCapStyle {
FlatCap,
SquareCap,
@@ -682,32 +682,32 @@ public:
CustomPattern
};
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum MacintoshVersion {
MV_Unknown,
MV_9,
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
MV_10_DOT_0,
%End
MV_10_DOT_1,
MV_10_DOT_2,
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
MV_10_DOT_3,
%End
-%If (Qt_3_3_5 -)
+%If (TQt_3_3_5 -)
MV_10_DOT_4,
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
MV_CHEETAH,
MV_PUMA,
%End
MV_JAGUAR,
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
MV_PANTHER,
%End
-%If (Qt_3_3_5 -)
+%If (TQt_3_3_5 -)
MV_TIGER,
%End
};
@@ -717,38 +717,38 @@ public:
WV_32s,
WV_95,
WV_98,
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
WV_Me,
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
WV_DOS_based,
%End
WV_NT,
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
WV_2000,
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
WV_XP,
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
WV_2003,
%End
-%If (Qt_3_3_6 -)
+%If (TQt_3_3_6 -)
WV_VISTA,
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
WV_NT_based,
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
WV_CE,
WV_CENET,
WV_CE_based,
%End
};
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
enum UIEffect {
UI_General,
UI_AnimateMenu,
@@ -756,13 +756,13 @@ public:
UI_AnimateCombo,
UI_AnimateTooltip,
UI_FadeTooltip,
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
UI_AnimateToolBox,
%End
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum CursorShape {
ArrowCursor,
UpArrowCursor,
@@ -780,7 +780,7 @@ public:
PointingHandCursor,
ForbiddenCursor,
WhatsThisCursor,
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
BusyCursor,
%End
LastCursor,
@@ -788,47 +788,47 @@ public:
};
%End
- static const QCursor &arrowCursor;
- static const QCursor &upArrowCursor;
- static const QCursor &crossCursor;
- static const QCursor &waitCursor;
- static const QCursor &ibeamCursor;
- static const QCursor &sizeVerCursor;
- static const QCursor &sizeHorCursor;
- static const QCursor &sizeBDiagCursor;
- static const QCursor &sizeFDiagCursor;
- static const QCursor &sizeAllCursor;
- static const QCursor &blankCursor;
- static const QCursor &splitVCursor;
- static const QCursor &splitHCursor;
- static const QCursor &pointingHandCursor;
-%If (Qt_2_1_0 -)
- static const QCursor &forbiddenCursor;
+ static const TQCursor &arrowCursor;
+ static const TQCursor &upArrowCursor;
+ static const TQCursor &crossCursor;
+ static const TQCursor &waitCursor;
+ static const TQCursor &ibeamCursor;
+ static const TQCursor &sizeVerCursor;
+ static const TQCursor &sizeHorCursor;
+ static const TQCursor &sizeBDiagCursor;
+ static const TQCursor &sizeFDiagCursor;
+ static const TQCursor &sizeAllCursor;
+ static const TQCursor &blankCursor;
+ static const TQCursor &splitVCursor;
+ static const TQCursor &splitHCursor;
+ static const TQCursor &pointingHandCursor;
+%If (TQt_2_1_0 -)
+ static const TQCursor &forbiddenCursor;
%End
-%If (Qt_3_0_0 -)
- static const QCursor &whatsThisCursor;
+%If (TQt_3_0_0 -)
+ static const TQCursor &whatsThisCursor;
%End
-%If (Qt_3_3_0 -)
- static const QCursor &busyCursor;
+%If (TQt_3_3_0 -)
+ static const TQCursor &busyCursor;
%End
enum TextFormat {
PlainText,
RichText,
AutoText,
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
LogText,
%End
};
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum AnchorAttribute {
AnchorName,
AnchorHref
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum Dock {
DockUnmanaged,
DockTornOff,
@@ -845,7 +845,7 @@ public:
LocalDate
};
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum TimeSpec {
LocalTime,
UTC
@@ -885,7 +885,7 @@ public:
ExactMatch
};
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
enum Corner {
TopLeft,
TopRight,
diff --git a/sip/qt/qnetworkprotocol.sip b/sip/qt/qnetworkprotocol.sip
index 6af512b..deee868 100644
--- a/sip/qt/qnetworkprotocol.sip
+++ b/sip/qt/qnetworkprotocol.sip
@@ -1,63 +1,63 @@
-// This is the SIP interface definition for QNetworkOperation, QNetworkProtocol
-// and QNetworkProtocolFactoryBase.
+// This is the SIP interface definition for TQNetworkOperation, TQNetworkProtocol
+// and TQNetworkProtocolFactoryBase.
//
// 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>QNetworkOperation (Qt v2.1+)</Title>
+<Sect2><Title>TQNetworkOperation (TQt v2.1+)</Title>
<Para>
-<Literal>QNetworkOperation</Literal> is fully implemented.
+<Literal>TQNetworkOperation</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QNetworkProtocol (Qt v2.1+)</Title>
+<Sect2><Title>TQNetworkProtocol (TQt v2.1+)</Title>
<Para>
-<Literal>QNetworkProtocol</Literal> is fully implemented.
+<Literal>TQNetworkProtocol</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QNetworkProtocolFactoryBase (Qt v2.1+)</Title>
+<Sect2><Title>TQNetworkProtocolFactoryBase (TQt v2.1+)</Title>
<Para>
-<Literal>QNetworkProtocolFactoryBase</Literal> is fully implemented.
+<Literal>TQNetworkProtocolFactoryBase</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_NETWORKPROTOCOL)
-%If (Qt_2_1_0 -)
+%If (TQt_NETWORKPROTOCOL)
+%If (TQt_2_1_0 -)
-class QNetworkProtocolFactoryBase
+class TQNetworkProtocolFactoryBase
{
%TypeHeaderCode
#include <qnetworkprotocol.h>
%End
public:
- virtual QNetworkProtocol *createObject() = 0 /Factory/;
+ virtual TQNetworkProtocol *createObject() = 0 /Factory/;
};
-class QNetworkProtocol : QObject
+class TQNetworkProtocol : TQObject
{
%TypeHeaderCode
#include <qnetworkprotocol.h>
@@ -72,7 +72,7 @@ public:
StStopped
};
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
enum Operation {
OpListChildren,
OpMkdir,
@@ -82,7 +82,7 @@ public:
OpPut
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum Operation {
OpListChildren,
OpMkDir,
@@ -99,7 +99,7 @@ public:
ConClosed
};
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
enum Error {
NoError,
ErrValid,
@@ -118,7 +118,7 @@ public:
ErrPermissionDenied
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum Error {
NoError,
ErrValid,
@@ -138,88 +138,88 @@ public:
};
%End
- QNetworkProtocol();
+ TQNetworkProtocol();
- virtual void setUrl(QUrlOperator *);
+ virtual void setUrl(TQUrlOperator *);
virtual void setAutoDelete(bool,int = 10000);
bool autoDelete() const;
- static void registerNetworkProtocol(const QString &,
- QNetworkProtocolFactoryBase *);
- static QNetworkProtocol *getNetworkProtocol(const QString &) /Factory/;
+ static void registerNetworkProtocol(const TQString &,
+ TQNetworkProtocolFactoryBase *);
+ static TQNetworkProtocol *getNetworkProtocol(const TQString &) /Factory/;
static bool hasOnlyLocalFileSystem();
virtual int supportedOperations() const;
- virtual void addOperation(QNetworkOperation *);
+ virtual void addOperation(TQNetworkOperation *);
- QUrlOperator *url() const;
- QNetworkOperation *operationInProgress() const;
+ TQUrlOperator *url() const;
+ TQNetworkOperation *operationInProgress() const;
virtual void clearOperationQueue();
virtual void stop();
signals:
- void data(const QByteArray &,QNetworkOperation *);
- void connectionStateChanged(int,const QString &);
- void finished(QNetworkOperation *);
- void start(QNetworkOperation *);
- void newChildren(const QValueList<QUrlInfo> &,QNetworkOperation *);
- void newChild(const QUrlInfo &,QNetworkOperation *);
- void createdDirectory(const QUrlInfo &,QNetworkOperation *);
- void removed(QNetworkOperation *);
- void itemChanged(QNetworkOperation *);
- void dataTransferProgress(int,int,QNetworkOperation *);
+ void data(const TQByteArray &,TQNetworkOperation *);
+ void connectionStateChanged(int,const TQString &);
+ void finished(TQNetworkOperation *);
+ void start(TQNetworkOperation *);
+ void newChildren(const TQValueList<TQUrlInfo> &,TQNetworkOperation *);
+ void newChild(const TQUrlInfo &,TQNetworkOperation *);
+ void createdDirectory(const TQUrlInfo &,TQNetworkOperation *);
+ void removed(TQNetworkOperation *);
+ void itemChanged(TQNetworkOperation *);
+ void dataTransferProgress(int,int,TQNetworkOperation *);
protected:
- virtual void processOperation(QNetworkOperation *);
- virtual void operationListChildren(QNetworkOperation *);
- virtual void operationMkDir(QNetworkOperation *);
- virtual void operationRemove(QNetworkOperation *);
- virtual void operationRename(QNetworkOperation *);
- virtual void operationGet(QNetworkOperation *);
- virtual void operationPut(QNetworkOperation *);
-%If (Qt_3_0_0 -)
- virtual void operationPutChunk(QNetworkOperation *);
+ virtual void processOperation(TQNetworkOperation *);
+ virtual void operationListChildren(TQNetworkOperation *);
+ virtual void operationMkDir(TQNetworkOperation *);
+ virtual void operationRemove(TQNetworkOperation *);
+ virtual void operationRename(TQNetworkOperation *);
+ virtual void operationGet(TQNetworkOperation *);
+ virtual void operationPut(TQNetworkOperation *);
+%If (TQt_3_0_0 -)
+ virtual void operationPutChunk(TQNetworkOperation *);
%End
- virtual bool checkConnection(QNetworkOperation *);
+ virtual bool checkConnection(TQNetworkOperation *);
private:
-%If (Qt_3_1_0 -)
- QNetworkProtocol(const QNetworkProtocol &);
+%If (TQt_3_1_0 -)
+ TQNetworkProtocol(const TQNetworkProtocol &);
%End
};
-class QNetworkOperation : QObject
+class TQNetworkOperation : TQObject
{
%TypeHeaderCode
#include <qnetworkprotocol.h>
%End
public:
- QNetworkOperation(QNetworkProtocol::Operation,const QString &,
- const QString &,const QString &);
- QNetworkOperation(QNetworkProtocol::Operation,const QByteArray &,
- const QByteArray &,const QByteArray &);
+ TQNetworkOperation(TQNetworkProtocol::Operation,const TQString &,
+ const TQString &,const TQString &);
+ TQNetworkOperation(TQNetworkProtocol::Operation,const TQByteArray &,
+ const TQByteArray &,const TQByteArray &);
- void setState(QNetworkProtocol::State);
- void setProtocolDetail(const QString &);
+ void setState(TQNetworkProtocol::State);
+ void setProtocolDetail(const TQString &);
void setErrorCode(int);
- void setArg(int,const QString &);
- void setRawArg(int,const QByteArray &);
-
- QNetworkProtocol::Operation operation() const;
- QNetworkProtocol::State state() const;
- QString arg(int) const;
- QByteArray rawArg(int) const;
- QString protocolDetail() const;
+ void setArg(int,const TQString &);
+ void setRawArg(int,const TQByteArray &);
+
+ TQNetworkProtocol::Operation operation() const;
+ TQNetworkProtocol::State state() const;
+ TQString arg(int) const;
+ TQByteArray rawArg(int) const;
+ TQString protocolDetail() const;
int errorCode() const;
void free();
private:
-%If (Qt_3_1_0 -)
- QNetworkOperation(const QNetworkOperation &);
+%If (TQt_3_1_0 -)
+ TQNetworkOperation(const TQNetworkOperation &);
%End
};
diff --git a/sip/qt/qobject.sip b/sip/qt/qobject.sip
index 0129284..8131cf3 100644
--- a/sip/qt/qobject.sip
+++ b/sip/qt/qobject.sip
@@ -1,30 +1,30 @@
-// This is the SIP interface definition for QObject.
+// This is the SIP interface definition for TQObject.
//
// 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>QObject</Title>
+<Sect2><Title>TQObject</Title>
<FuncSynopsis>
<FuncDef>bool <Function>disconnect</Function></FuncDef>
- <ParamDef>const QObject *<Parameter>receiver</Parameter></ParamDef>
+ <ParamDef>const TQObject *<Parameter>receiver</Parameter></ParamDef>
<ParamDef>const char *<Parameter>member</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -34,7 +34,7 @@ Not yet implemented.
<FuncSynopsis>
<FuncDef>bool <Function>disconnect</Function></FuncDef>
<ParamDef>const char *<Parameter>signal</Parameter> = 0</ParamDef>
- <ParamDef>const QObject *<Parameter>receiver</Parameter> = 0</ParamDef>
+ <ParamDef>const TQObject *<Parameter>receiver</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>member</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -43,13 +43,13 @@ Not yet implemented.
<FuncSynopsis>
<FuncDef>static bool <Function>disconnect</Function></FuncDef>
- <ParamDef>const QObject *<Parameter>sender</Parameter></ParamDef>
+ <ParamDef>const TQObject *<Parameter>sender</Parameter></ParamDef>
<ParamDef>const char *<Parameter>signal</Parameter></ParamDef>
- <ParamDef>const QObject *<Parameter>receiver</Parameter></ParamDef>
+ <ParamDef>const TQObject *<Parameter>receiver</Parameter></ParamDef>
<ParamDef>const char *<Parameter>member</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-At the moment PyQt does not support the full behaviour of the corresponding Qt
+At the moment PyTQt does not support the full behaviour of the corresponding TQt
method. In particular, specifying None (ie. 0 in C++) for the
<Literal>signal</Literal> and <Literal>receiver</Literal> parameters is not yet
supported.
@@ -58,9 +58,9 @@ supported.
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QObject : Qt
+class TQObject : TQt
{
%TypeHeaderCode
#include <qobject.h>
@@ -68,7 +68,7 @@ class QObject : Qt
%End
public:
- QObject(QObject * /TransferThis/ = 0,const char * = 0);
+ TQObject(TQObject * /TransferThis/ = 0,const char * = 0);
%ConvertToSubClassCode
static struct class_graph {
@@ -77,7 +77,7 @@ public:
int yes, no;
} graph[] = {
{sipName_QWidget, &sipClass_QWidget, 25, 1},
-#if QT_VERSION >= 0x030100 && defined(SIP_FEATURE_Qt_ASSISTANTCLIENT)
+#if QT_VERSION >= 0x030100 && defined(SIP_FEATURE_TQt_ASSISTANTCLIENT)
{sipName_QAssistantClient, &sipClass_QAssistantClient, -1, 2},
#else
{NULL, NULL, -1, 2},
@@ -90,12 +90,12 @@ public:
{NULL, NULL, -1, 5},
#endif
{sipName_QToolTipGroup, &sipClass_QToolTipGroup, -1, 6},
-#if defined(SIP_FEATURE_Qt_FILEDIALOG)
+#if defined(SIP_FEATURE_TQt_FILEDIALOG)
{sipName_QFileIconProvider, &sipClass_QFileIconProvider, -1, 7},
#else
{NULL, NULL, -1, 7},
#endif
-#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_ACTION)
+#if QT_VERSION >= 220 && defined(SIP_FEATURE_TQt_ACTION)
{sipName_QAction, &sipClass_QAction, 89, 8},
#else
{NULL, NULL, -1, 8},
@@ -107,14 +107,14 @@ public:
#endif
{sipName_QTimer, &sipClass_QTimer, -1, 10},
{sipName_QLayout, &sipClass_QLayout, 90, 11},
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_NETWORKPROTOCOL)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_NETWORKPROTOCOL)
{sipName_QUrlOperator, &sipClass_QUrlOperator, -1, 12},
#else
{NULL, NULL, -1, 12},
#endif
{sipName_QStyleSheet, &sipClass_QStyleSheet, -1, 13},
{sipName_QValidator, &sipClass_QValidator, 94, 14},
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_NETWORKPROTOCOL)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_NETWORKPROTOCOL)
{sipName_QNetworkOperation, &sipClass_QNetworkOperation, -1, 15},
#else
{NULL, NULL, -1, 15},
@@ -125,12 +125,12 @@ public:
#else
{NULL, NULL, -1, 17},
#endif
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_NETWORKPROTOCOL)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_NETWORKPROTOCOL)
{sipName_QNetworkProtocol, &sipClass_QNetworkProtocol, -1, 18},
#else
{NULL, NULL, -1, 18},
#endif
-#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_SOUND)
+#if QT_VERSION >= 220 && defined(SIP_FEATURE_TQt_SOUND)
{sipName_QSound, &sipClass_QSound, -1, 19},
#else
{NULL, NULL, -1, 19},
@@ -140,13 +140,13 @@ public:
{sipName_QSocketNotifier, &sipClass_QSocketNotifier, -1, 22},
{sipName_QStyle, &sipClass_QStyle, 103, 23},
{sipName_QSignalMapper, &sipClass_QSignalMapper, -1, 24},
-#if defined(SIP_FEATURE_Qt_CLIPBOARD)
+#if defined(SIP_FEATURE_TQt_CLIPBOARD)
{sipName_QClipboard, &sipClass_QClipboard, -1, -1},
#else
{NULL, NULL, -1, -1},
#endif
{sipName_QStatusBar, &sipClass_QStatusBar, -1, 26},
-#if defined(SIP_FEATURE_Qt_SIZEGRIP)
+#if defined(SIP_FEATURE_TQt_SIZEGRIP)
{sipName_QSizeGrip, &sipClass_QSizeGrip, -1, 27},
#else
{NULL, NULL, -1, 27},
@@ -170,7 +170,7 @@ public:
#endif
{sipName_QFrame, &sipClass_QFrame, 46, 33},
{sipName_QScrollBar, &sipClass_QScrollBar, -1, 34},
-#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_DIAL)
+#if QT_VERSION >= 220 && defined(SIP_FEATURE_TQt_DIAL)
{sipName_QDial, &sipClass_QDial, -1, 35},
#else
{NULL, NULL, -1, 35},
@@ -192,7 +192,7 @@ public:
#endif
{sipName_QSlider, &sipClass_QSlider, -1, 43},
{sipName_QSpinBox, &sipClass_QSpinBox, -1, 44},
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_WORKSPACE)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_WORKSPACE)
{sipName_QWorkspace, &sipClass_QWorkspace, -1, 45},
#else
{NULL, NULL, -1, 45},
@@ -219,7 +219,7 @@ public:
{sipName_QLabel, &sipClass_QLabel, -1, 53},
{sipName_QGroupBox, &sipClass_QGroupBox, 61, 54},
{sipName_QPopupMenu, &sipClass_QPopupMenu, -1, 55},
-#if defined(SIP_FEATURE_Qt_SPLITTER)
+#if defined(SIP_FEATURE_TQt_SPLITTER)
{sipName_QSplitter, &sipClass_QSplitter, -1, 56},
#else
{NULL, NULL, -1, 56},
@@ -234,7 +234,7 @@ public:
{sipName_QVGroupBox, &sipClass_QVGroupBox, -1, -1},
{sipName_QVButtonGroup, &sipClass_QVButtonGroup, -1, 65},
{sipName_QHButtonGroup, &sipClass_QHButtonGroup, -1, -1},
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_ICONVIEW)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_ICONVIEW)
{sipName_QIconView, &sipClass_QIconView, -1, 67},
#else
{NULL, NULL, -1, 67},
@@ -259,7 +259,7 @@ public:
{sipName_QRadioButton, &sipClass_QRadioButton, -1, 77},
{sipName_QPushButton, &sipClass_QPushButton, -1, 78},
{sipName_QCheckBox, &sipClass_QCheckBox, -1, -1},
-#if defined(WS_X11) && defined(SIP_FEATURE_Qt_PRINTDIALOG)
+#if defined(WS_X11) && defined(SIP_FEATURE_TQt_PRINTDIALOG)
{sipName_QPrintDialog, &sipClass_QPrintDialog, -1, 80},
#else
{NULL, NULL, -1, 80},
@@ -269,47 +269,47 @@ public:
#else
{NULL, NULL, -1, 81},
#endif
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_INPUTDIALOG)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_INPUTDIALOG)
{sipName_QInputDialog, &sipClass_QInputDialog, -1, 82},
#else
{NULL, NULL, -1, 82},
#endif
-#if defined(SIP_FEATURE_Qt_MESSAGEBOX)
+#if defined(SIP_FEATURE_TQt_MESSAGEBOX)
{sipName_QMessageBox, &sipClass_QMessageBox, -1, 83},
#else
{NULL, NULL, -1, 83},
#endif
-#if defined(SIP_FEATURE_Qt_WIZARD)
+#if defined(SIP_FEATURE_TQt_WIZARD)
{sipName_QWizard, &sipClass_QWizard, -1, 84},
#else
{NULL, NULL, -1, 84},
#endif
-#if defined(SIP_FEATURE_Qt_COLORDIALOG)
+#if defined(SIP_FEATURE_TQt_COLORDIALOG)
{sipName_QColorDialog, &sipClass_QColorDialog, -1, 85},
#else
{NULL, NULL, -1, 85},
#endif
-#if defined(SIP_FEATURE_Qt_FONTDIALOG)
+#if defined(SIP_FEATURE_TQt_FONTDIALOG)
{sipName_QFontDialog, &sipClass_QFontDialog, -1, 86},
#else
{NULL, NULL, -1, 86},
#endif
-#if defined(SIP_FEATURE_Qt_FILEDIALOG)
+#if defined(SIP_FEATURE_TQt_FILEDIALOG)
{sipName_QFileDialog, &sipClass_QFileDialog, -1, 87},
#else
{NULL, NULL, -1, 87},
#endif
-#if defined(SIP_FEATURE_Qt_PROGRESSDIALOG)
+#if defined(SIP_FEATURE_TQt_PROGRESSDIALOG)
{sipName_QProgressDialog, &sipClass_QProgressDialog, -1, 88},
#else
{NULL, NULL, -1, 88},
#endif
-#if defined(SIP_FEATURE_Qt_TABDIALOG)
+#if defined(SIP_FEATURE_TQt_TABDIALOG)
{sipName_QTabDialog, &sipClass_QTabDialog, -1, -1},
#else
{NULL, NULL, -1, -1},
#endif
-#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_ACTION)
+#if QT_VERSION >= 220 && defined(SIP_FEATURE_TQt_ACTION)
{sipName_QActionGroup, &sipClass_QActionGroup, -1, -1},
#else
{NULL, NULL, -1, -1},
@@ -327,7 +327,7 @@ public:
#endif
{sipName_QTextDrag, &sipClass_QTextDrag, -1, 98},
{sipName_QStoredDrag, &sipClass_QStoredDrag, 101, 99},
-#if QT_VERSION >= 210 && defined(SIP_FEATURE_Qt_ICONVIEW) && defined(SIP_FEATURE_Qt_DRAGANDDROP)
+#if QT_VERSION >= 210 && defined(SIP_FEATURE_TQt_ICONVIEW) && defined(SIP_FEATURE_TQt_DRAGANDDROP)
{sipName_QIconDrag, &sipClass_QIconDrag, -1, 100},
#else
{NULL, NULL, -1, 100},
@@ -340,32 +340,32 @@ public:
#endif
{sipName_QUriDrag, &sipClass_QUriDrag, -1, -1},
{sipName_QCommonStyle, &sipClass_QCommonStyle, 104, -1},
-#if defined(SIP_FEATURE_Qt_STYLE_WINDOWS)
+#if defined(SIP_FEATURE_TQt_STYLE_WINDOWS)
{sipName_QWindowsStyle, &sipClass_QWindowsStyle, 106, 105},
#else
{NULL, NULL, -1, 105},
#endif
-#if defined(SIP_FEATURE_Qt_STYLE_MOTIF)
+#if defined(SIP_FEATURE_TQt_STYLE_MOTIF)
{sipName_QMotifStyle, &sipClass_QMotifStyle, 107, -1},
#else
{NULL, NULL, -1, -1},
#endif
-#if defined(SIP_FEATURE_Qt_STYLE_PLATINUM)
+#if defined(SIP_FEATURE_TQt_STYLE_PLATINUM)
{sipName_QPlatinumStyle, &sipClass_QPlatinumStyle, -1, 110},
#else
{NULL, NULL, -1, 110},
#endif
-#if defined(SIP_FEATURE_Qt_STYLE_CDE)
+#if defined(SIP_FEATURE_TQt_STYLE_CDE)
{sipName_QCDEStyle, &sipClass_QCDEStyle, -1, 108},
#else
{NULL, NULL, -1, 108},
#endif
-#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_STYLE_MOTIFPLUS)
+#if QT_VERSION >= 220 && defined(SIP_FEATURE_TQt_STYLE_MOTIFPLUS)
{sipName_QMotifPlusStyle, &sipClass_QMotifPlusStyle, -1, 109},
#else
{NULL, NULL, -1, 109},
#endif
-#if QT_VERSION >= 220 && defined(SIP_FEATURE_Qt_STYLE_SGI)
+#if QT_VERSION >= 220 && defined(SIP_FEATURE_TQt_STYLE_SGI)
{sipName_QSGIStyle, &sipClass_QSGIStyle, -1, -1},
#else
{NULL, NULL, -1, -1},
@@ -406,26 +406,26 @@ public:
sipRes = sipClassName(sipSelf);
%End
-%If (- Qt_3_0_0)
- static QString tr(const char *) /AutoGen=Qt_TRANSLATION/;
+%If (- TQt_3_0_0)
+ static TQString tr(const char *) /AutoGen=TQt_TRANSLATION/;
%End
-%If (Qt_2_2_0 - Qt_2_3_1)
- // There was an apparent bug in moc prior to Qt v2.3.1 where this
+%If (TQt_2_2_0 - TQt_2_3_1)
+ // There was an apparent bug in moc prior to TQt v2.3.1 where this
// method wasn't automatically generated.
- static QString tr(const char *,const char *);
+ static TQString tr(const char *,const char *);
%End
-%If (Qt_2_3_1 - Qt_3_0_0)
- static QString tr(const char *,const char *) /AutoGen=Qt_TRANSLATION/;
+%If (TQt_2_3_1 - TQt_3_0_0)
+ static TQString tr(const char *,const char *) /AutoGen=TQt_TRANSLATION/;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
// Note that tr() and trUtf8() are really static methods. We pretend
// they aren't so that we can use self to get hold of the class name.
// We could mimic moc's behaviour more accurately by creating tr() and
// trUtf8() methods for a Python sub-class instance in the sub-class's
// ctor.
- QString tr(const char *,const char * = 0);
+ TQString tr(const char *,const char * = 0);
%MethodCode
PyObject *nmobj;
@@ -438,9 +438,9 @@ public:
Py_BEGIN_ALLOW_THREADS
if (cname && qApp)
- sipRes = new QString(qApp -> translate(cname,a0,a1,QApplication::DefaultCodec));
+ sipRes = new TQString(qApp -> translate(cname,a0,a1,TQApplication::DefaultCodec));
else
- sipRes = new QString(QString::fromLatin1(a0));
+ sipRes = new TQString(TQString::fromLatin1(a0));
Py_END_ALLOW_THREADS
@@ -448,7 +448,7 @@ public:
}
%End
- QString trUtf8(const char *,const char * = 0);
+ TQString trUtf8(const char *,const char * = 0);
%MethodCode
PyObject *nmobj;
@@ -461,9 +461,9 @@ public:
Py_BEGIN_ALLOW_THREADS
if (cname && qApp)
- sipRes = new QString(qApp -> translate(cname,a0,a1,QApplication::UnicodeUTF8));
+ sipRes = new TQString(qApp -> translate(cname,a0,a1,TQApplication::UnicodeUTF8));
else
- sipRes = new QString(QString::fromUtf8(a0));
+ sipRes = new TQString(TQString::fromUtf8(a0));
Py_END_ALLOW_THREADS
@@ -471,31 +471,31 @@ public:
}
%End
%End
- virtual QMetaObject *metaObject() const /AutoGen/;
- virtual bool event(QEvent *);
- virtual bool eventFilter(QObject *,QEvent *);
+ virtual TQMetaObject *metaObject() const /AutoGen/;
+ virtual bool event(TQEvent *);
+ virtual bool eventFilter(TQObject *,TQEvent *);
bool isA(const char *) const;
%MethodCode
- // The Qt implementation doesn't know anything about Python
+ // The TQt implementation doesn't know anything about Python
// sub-classes. For SIP v4 we use the Python type's name. For
- // SIP v3 we use the broken Qt behaviour as it's deprecated and
+ // SIP v3 we use the broken TQt behaviour as it's deprecated and
// we want to keep things simple.
#if SIP_VERSION >= 0x040000
sipRes = (strcmp(sipSelf -> ob_type -> tp_name,a0) == 0);
#else
Py_BEGIN_ALLOW_THREADS
- sipRes = sipCpp -> QObject::isA(a0);
+ sipRes = sipCpp -> TQObject::isA(a0);
Py_END_ALLOW_THREADS
#endif
%End
bool inherits(const char *) const;
%MethodCode
- // The Qt implementation doesn't know anything about Python
+ // The TQt implementation doesn't know anything about Python
// sub-classes. For SIP v4 we use the Python type's MRO. For
- // SIP v3 we use the broken Qt behaviour as it's deprecated and
+ // SIP v3 we use the broken TQt behaviour as it's deprecated and
// we want to keep things simple.
#if SIP_VERSION >= 0x040000
@@ -511,13 +511,13 @@ public:
}
#else
Py_BEGIN_ALLOW_THREADS
- sipRes = sipCpp -> QObject::inherits(a0);
+ sipRes = sipCpp -> TQObject::inherits(a0);
Py_END_ALLOW_THREADS
#endif
%End
-%If (- Qt_3_0_0)
- QStringList superClasses(bool = 0) const;
+%If (- TQt_3_0_0)
+ TQStringList superClasses(bool = 0) const;
%End
const char *name() const;
const char *name(const char *) const;
@@ -529,35 +529,35 @@ public:
int startTimer(int);
void killTimer(int);
void killTimers();
-%If (- Qt_3_0_0)
- QObject *child(const char *,const char * = 0);
+%If (- TQt_3_0_0)
+ TQObject *child(const char *,const char * = 0);
%End
-%If (Qt_3_0_0 -)
- QObject *child(const char *,const char * = 0,bool = 1);
+%If (TQt_3_0_0 -)
+ TQObject *child(const char *,const char * = 0,bool = 1);
%End
- const QObjectList *children() const;
-%If (Qt_2_1_0 -)
- static const QObjectList *objectTrees();
+ const TQObjectList *children() const;
+%If (TQt_2_1_0 -)
+ static const TQObjectList *objectTrees();
%End
-%If (- Qt_3_0_0)
- QObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1);
+%If (- TQt_3_0_0)
+ TQObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1);
%End
-%If (Qt_3_0_0 -)
- QObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1) const;
+%If (TQt_3_0_0 -)
+ TQObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1) const;
%MethodCode
- // The Qt implementation doesn't know anything about Python
+ // The TQt implementation doesn't know anything about Python
// sub-classes. For SIP v4 we get all classes and then use the
// Python type's MRO to weed out those we don't want. For SIP
- // v3 we use the broken Qt behaviour as it's deprecated and we
+ // v3 we use the broken TQt behaviour as it's deprecated and we
// want to keep things simple.
#if SIP_VERSION >= 0x040000
- sipRes = sipCpp -> QObject::queryList(0, a1, a2, a3);
+ sipRes = sipCpp -> TQObject::queryList(0, a1, a2, a3);
if (a0 && sipRes)
{
- QObject *o = sipRes -> first();
+ TQObject *o = sipRes -> first();
while (o)
{
@@ -589,16 +589,16 @@ public:
}
#else
Py_BEGIN_ALLOW_THREADS
- sipRes = sipCpp -> QObject::queryList(a0, a1, a2, a3);
+ sipRes = sipCpp -> TQObject::queryList(a0, a1, a2, a3);
Py_END_ALLOW_THREADS
#endif
%End
%End
- virtual void insertChild(QObject * /Transfer/);
- virtual void removeChild(QObject * /TransferBack/);
- void installEventFilter(const QObject *);
- void removeEventFilter(const QObject *);
+ virtual void insertChild(TQObject * /Transfer/);
+ virtual void removeChild(TQObject * /TransferBack/);
+ void installEventFilter(const TQObject *);
+ void removeEventFilter(const TQObject *);
static SIP_PYOBJECT connect(SIP_QOBJECT,SIP_SIGNAL,SIP_QOBJECT,SIP_SLOT);
%MethodCode
@@ -625,11 +625,11 @@ public:
sipRes = sipDisconnectRx(a0,a1,a2,0);
%End
-// bool disconnect(const char * = 0,const QObject * = 0,const char * = 0);
-// bool disconnect(const QObject *,const char * = 0);
+// bool disconnect(const char * = 0,const TQObject * = 0,const char * = 0);
+// bool disconnect(const TQObject *,const char * = 0);
void dumpObjectTree();
void dumpObjectInfo();
- QObject *parent() const;
+ TQObject *parent() const;
void emit(SIP_SIGNAL,SIP_PYTUPLE);
%MethodCode
@@ -637,25 +637,25 @@ public:
sipIsErr = 1;
%End
-%If (Qt_PROPERTIES)
-%If (Qt_2_1_0 - Qt_3_0_0)
- bool setProperty(const char *,const QVariant &);
- QVariant property(const char *) const;
+%If (TQt_PROPERTIES)
+%If (TQt_2_1_0 - TQt_3_0_0)
+ bool setProperty(const char *,const TQVariant &);
+ TQVariant property(const char *) const;
%End
-%If (Qt_3_0_0 -)
- virtual bool setProperty(const char *,const QVariant &);
- virtual QVariant property(const char *) const;
+%If (TQt_3_0_0 -)
+ virtual bool setProperty(const char *,const TQVariant &);
+ virtual TQVariant property(const char *) const;
%End
%End
signals:
void destroyed();
-%If (Qt_3_0_0 -)
- void destroyed(QObject *);
+%If (TQt_3_0_0 -)
+ void destroyed(TQObject *);
%End
public slots:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void deleteLater();
%End
@@ -668,14 +668,14 @@ public:
%End
protected:
- virtual void timerEvent(QTimerEvent *);
- virtual void childEvent(QChildEvent *);
-%If (Qt_3_0_0 -)
- virtual void customEvent(QCustomEvent *);
+ virtual void timerEvent(TQTimerEvent *);
+ virtual void childEvent(TQChildEvent *);
+%If (TQt_3_0_0 -)
+ virtual void customEvent(TQCustomEvent *);
%End
private:
- QObject(const QObject &);
+ TQObject(const TQObject &);
};
@@ -695,16 +695,16 @@ SIP_PYOBJECT QT_TRANSLATE_NOOP(SIP_PYOBJECT,SIP_PYOBJECT);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QObject
+class TQObject
{
%TypeHeaderCode
#include <qobject.h>
%End
public:
- QObject(QObject * /TransferThis/ = 0,const char * = 0);
+ TQObject(TQObject * /TransferThis/ = 0,const char * = 0);
%ConvertToSubClassCode
// The table of Python class objects indexed by their names. The table
@@ -717,14 +717,14 @@ public:
{sipName_QButton, &sipClass_QButton},
{sipName_QButtonGroup, &sipClass_QButtonGroup},
{sipName_QCheckBox, &sipClass_QCheckBox},
-#if defined(SIP_FEATURE_Qt_CLIPBOARD)
+#if defined(SIP_FEATURE_TQt_CLIPBOARD)
{sipName_QClipboard, &sipClass_QClipboard},
#endif
{sipName_QComboBox, &sipClass_QComboBox},
{sipName_QDialog, &sipClass_QDialog},
{sipName_QDoubleValidator, &sipClass_QDoubleValidator},
{sipName_QDragObject, &sipClass_QDragObject},
-#if defined(SIP_FEATURE_Qt_FILEDIALOG)
+#if defined(SIP_FEATURE_TQt_FILEDIALOG)
{sipName_QFileDialog, &sipClass_QFileDialog},
{sipName_QFileIconProvider, &sipClass_QFileIconProvider},
#endif
@@ -743,16 +743,16 @@ public:
{sipName_QListView, &sipClass_QListView},
{sipName_QMainWindow, &sipClass_QMainWindow},
{sipName_QMenuBar, &sipClass_QMenuBar},
-#if defined(SIP_FEATURE_Qt_MESSAGEBOX)
+#if defined(SIP_FEATURE_TQt_MESSAGEBOX)
{sipName_QMessageBox, &sipClass_QMessageBox},
#endif
{sipName_QMultiLineEdit, &sipClass_QMultiLineEdit},
{sipName_QPopupMenu, &sipClass_QPopupMenu},
-#if defined(WS_X11) && defined(SIP_FEATURE_Qt_PRINTDIALOG)
+#if defined(WS_X11) && defined(SIP_FEATURE_TQt_PRINTDIALOG)
{sipName_QPrintDialog, &sipClass_QPrintDialog},
#endif
{sipName_QProgressBar, &sipClass_QProgressBar},
-#if defined(SIP_FEATURE_Qt_PROGRESSDIALOG)
+#if defined(SIP_FEATURE_TQt_PROGRESSDIALOG)
{sipName_QProgressDialog, &sipClass_QProgressDialog},
#endif
{sipName_QPushButton, &sipClass_QPushButton},
@@ -762,7 +762,7 @@ public:
{sipName_QSlider, &sipClass_QSlider},
{sipName_QSocketNotifier, &sipClass_QSocketNotifier},
{sipName_QSpinBox, &sipClass_QSpinBox},
-#if defined(SIP_FEATURE_Qt_SPLITTER)
+#if defined(SIP_FEATURE_TQt_SPLITTER)
{sipName_QSplitter, &sipClass_QSplitter},
#endif
{sipName_QStatusBar, &sipClass_QStatusBar},
@@ -802,10 +802,10 @@ public:
sipRes = sipDisconnectRx(a0,a1,a2,0);
%End
- virtual bool event(QEvent *);
- virtual bool eventFilter(QObject *,QEvent *);
+ virtual bool event(TQEvent *);
+ virtual bool eventFilter(TQObject *,TQEvent *);
const char *tr(const char *) const;
- virtual QMetaObject *metaObject() const /AutoGen/;
+ virtual TQMetaObject *metaObject() const /AutoGen/;
// This is actually virtual. However, with the way we are implementing
// it we can ignore it.
@@ -826,18 +826,18 @@ public:
int startTimer(int);
void killTimer(int);
void killTimers();
- const QObjectList *children() const;
- QObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1);
- void insertChild(QObject * /Transfer/);
- void removeChild(QObject * /TransferBack/);
- void installEventFilter(const QObject *);
- void removeEventFilter(const QObject *);
-// bool connect(QObject *,const char *,const char *);
-// bool disconnect(const char * = 0,const QObject * = 0,const char * = 0);
-// bool disconnect(const QObject *,const char * = 0);
+ const TQObjectList *children() const;
+ TQObjectList *queryList(char * = 0,char * = 0,bool = 1,bool = 1);
+ void insertChild(TQObject * /Transfer/);
+ void removeChild(TQObject * /TransferBack/);
+ void installEventFilter(const TQObject *);
+ void removeEventFilter(const TQObject *);
+// bool connect(TQObject *,const char *,const char *);
+// bool disconnect(const char * = 0,const TQObject * = 0,const char * = 0);
+// bool disconnect(const TQObject *,const char * = 0);
void dumpObjectTree();
void dumpObjectInfo();
- QObject *parent() const;
+ TQObject *parent() const;
void emit(SIP_SIGNAL,SIP_PYTUPLE);
%MethodCode
@@ -857,10 +857,10 @@ public:
%End
protected:
- virtual void timerEvent(QTimerEvent *);
+ virtual void timerEvent(TQTimerEvent *);
private:
- QObject(const QObject &);
+ TQObject(const TQObject &);
};
%End
@@ -949,7 +949,7 @@ PyObject *pyqt3GetSender();
%End
-// This is the Qt support code for SIP v4.4 and later.
+// This is the TQt support code for SIP v4.4 and later.
%ModuleCode
#include <string.h>
@@ -961,36 +961,36 @@ PyObject *pyqt3GetSender();
#include <private/qucomextra_p.h>
-// These optional parts of the legacy Qt support API for SIP are implemented.
-#undef sipQtEmitSignal
-#undef sipQtConnectPySignal
-#undef sipQtDisconnectPySignal
+// These optional parts of the legacy TQt support API for SIP are implemented.
+#undef sipTQtEmitSignal
+#undef sipTQtConnectPySignal
+#undef sipTQtDisconnectPySignal
// Declare explicit C linkage.
extern "C"
{
- static void *sipQtCreateUniversalSlot(sipWrapper *, const char *,
+ static void *sipTQtCreateUniversalSlot(sipWrapper *, const char *,
PyObject *, const char *, const char **, int);
- static void sipQtDestroyUniversalSlot(void *);
- static void *sipQtFindSlot(void *, const char *, PyObject *, const char *,
+ static void sipTQtDestroyUniversalSlot(void *);
+ static void *sipTQtFindSlot(void *, const char *, PyObject *, const char *,
const char **);
- static int sipQtConnect(void *, const char *, void *, const char *, int);
- static int sipQtDisconnect(void *, const char *, void *, const char *);
- static int sipQtSameSignalSlotName(const char *, const char *);
- static sipSlot *sipQtFindSipslot(void *, void **);
- static int sipQtEmitSignal(PyObject *, const char *, PyObject *);
- static int sipQtConnectPySignal(PyObject *, const char *, PyObject *,
+ static int sipTQtConnect(void *, const char *, void *, const char *, int);
+ static int sipTQtDisconnect(void *, const char *, void *, const char *);
+ static int sipTQtSameSignalSlotName(const char *, const char *);
+ static sipSlot *sipTQtFindSipslot(void *, void **);
+ static int sipTQtEmitSignal(PyObject *, const char *, PyObject *);
+ static int sipTQtConnectPySignal(PyObject *, const char *, PyObject *,
const char *);
- static void sipQtDisconnectPySignal(PyObject *, const char *,
+ static void sipTQtDisconnectPySignal(PyObject *, const char *,
PyObject *, const char *);
}
extern "C" {
-// The meta-type for PyQt classes. It is just a marker type so that we can
-// safely cast to get access to PyQt3-specific data structures.
+// The meta-type for PyTQt classes. It is just a marker type so that we can
+// safely cast to get access to PyTQt3-specific data structures.
PyTypeObject pyqtWrapperType_Type = {
PyObject_HEAD_INIT(NULL)
0, /* ob_size */
@@ -1073,7 +1073,7 @@ typedef struct _pyqt3PySig {
/*
- * The C++ wrapper object used by PyQt3.
+ * The C++ wrapper object used by PyTQt3.
*/
typedef struct _pyqtWrapper {
/* The super-type. */
@@ -1109,7 +1109,7 @@ static pyqt3PySig *find_py_signal(pyqtWrapper *pw, const char *sig)
pyqt3PySig *ps;
for (ps = pw->pySigList; ps != NULL; ps = ps->next)
- if (sipQtSameSignalSlotName(ps->name, sig))
+ if (sipTQtSameSignalSlotName(ps->name, sig))
return ps;
return 0;
@@ -1219,7 +1219,7 @@ static sipWrapperType pyqtWrapper_Type = {
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC, /* tp_flags */
0, /* tp_doc */
(traverseproc)pyqtWrapper_traverse, /* tp_traverse */
- (inquiry)pyqtWrapper_clear, /* tp_clear */
+ (intquiry)pyqtWrapper_clear, /* tp_clear */
0, /* tp_richcompare */
0, /* tp_weaklistoffset */
0, /* tp_iter */
@@ -1330,7 +1330,7 @@ struct pyqt3Signature {
// A connection to a universal slot.
struct pyqt3SlotConnection
{
- // The transmitter QObject.
+ // The transmitter TQObject.
void *sc_transmitter;
// The parsed signature.
@@ -1342,46 +1342,46 @@ struct pyqt3SlotConnection
// This class is used as a slot on behalf of connections to a Python callable.
-// It is derived from QObject but is not run through moc. Instead the normal
+// It is derived from TQObject but is not run through moc. Instead the normal
// moc-generated methods are handwritten in order to implement a universal
-// slot. This requires some knowledge of the internal implementation of
+// slot. This retquires some knowledge of the internal implementation of
// signals and slots but it is likely that they will only change between major
-// Qt versions.
-class UniversalSlot : public QObject
+// TQt versions.
+class UniversalSlot : public TQObject
{
public:
- UniversalSlot(QObject *qtx, pyqt3SlotConnection *conn, const char **member);
+ UniversalSlot(TQObject *qtx, pyqt3SlotConnection *conn, const char **member);
~UniversalSlot();
- virtual QMetaObject *metaObject() const
+ virtual TQMetaObject *metaObject() const
{
return staticMetaObject();
}
- virtual bool qt_invoke(int, QUObject *args);
- static QMetaObject *staticMetaObject();
+ virtual bool qt_invoke(int, TQUObject *args);
+ static TQMetaObject *staticMetaObject();
- static QObject *lastSender;
+ static TQObject *lastSender;
static UniversalSlot *unislots;
UniversalSlot *nextus, *prevus;
pyqt3SlotConnection conn;
private:
- static QMetaObject *metaObj;
+ static TQMetaObject *metaObj;
};
// Create a universal slot. Note that this will leak if there is no signal
-// transmitter (ie. no parent) - QTimer.singleShot() for example.
-UniversalSlot::UniversalSlot(QObject *qtx, pyqt3SlotConnection *connection, const char **member) : QObject()
+// transmitter (ie. no parent) - TQTimer.singleShot() for example.
+UniversalSlot::UniversalSlot(TQObject *qtx, pyqt3SlotConnection *connection, const char **member) : TQObject()
{
// Save the connection.
conn = *connection;
// Detect when the transmitter is destroyed.
if (qtx)
- connect(qtx, SIGNAL(destroyed(QObject *)), SLOT(deleteLater()));
+ connect(qtx, SIGNAL(destroyed(TQObject *)), SLOT(deleteLater()));
// Return the slot to connect to.
*member = SLOT(unislot());
@@ -1419,32 +1419,32 @@ UniversalSlot::~UniversalSlot()
static PyObject *py_sender = 0;
-QMetaObject *UniversalSlot::metaObj = 0;
+TQMetaObject *UniversalSlot::metaObj = 0;
#if QT_VERSION >= 0x030100
-static QMetaObjectCleanUp cleanUp_UniversalSlot("UniversalSlot", &UniversalSlot::staticMetaObject);
+static TQMetaObjectCleanUp cleanUp_UniversalSlot("UniversalSlot", &UniversalSlot::staticMetaObject);
#else
-static QMetaObjectCleanUp cleanUp_UniversalSlot;
+static TQMetaObjectCleanUp cleanUp_UniversalSlot;
#endif
-QObject *UniversalSlot::lastSender = 0;
+TQObject *UniversalSlot::lastSender = 0;
UniversalSlot *UniversalSlot::unislots = 0;
-QMetaObject *UniversalSlot::staticMetaObject()
+TQMetaObject *UniversalSlot::staticMetaObject()
{
if (metaObj)
return metaObj;
// Define a single slot that takes no arguments and so will accept any
// connection.
- static const QUMethod slot = {"unislot", 0, 0};
- static const QMetaData slot_tbl[] = {
- {"unislot()", &slot, QMetaData::Public}
+ static const TQUMethod slot = {"unislot", 0, 0};
+ static const TQMetaData slot_tbl[] = {
+ {"unislot()", &slot, TQMetaData::Public}
};
- metaObj = QMetaObject::new_metaobject(
- "UniversalSlot", QObject::staticMetaObject(),
+ metaObj = TQMetaObject::new_metaobject(
+ "UniversalSlot", TQObject::staticMetaObject(),
slot_tbl, 1,
0, 0,
#ifndef QT_NO_PROPERTIES
@@ -1459,23 +1459,23 @@ QMetaObject *UniversalSlot::staticMetaObject()
}
-bool UniversalSlot::qt_invoke(int id, QUObject *qargs)
+bool UniversalSlot::qt_invoke(int id, TQUObject *qargs)
{
if (id - staticMetaObject()->slotOffset() != 0)
- return QObject::qt_invoke(id, qargs);
+ return TQObject::qt_invoke(id, qargs);
bool ok = TRUE;
const pyqt3Signature *psig = conn.sc_signature;
- QVariant *qv;
+ TQVariant *qv;
// Save in case it is asked for later.
- lastSender = const_cast<QObject *>(sender());
+ lastSender = const_cast<TQObject *>(sender());
- // If the sender was a QSignal then the single argument will be wrapped
- // in a QVariant instance. At the moment we handle int argument as
- // that is all that is needed by PyQt (and PyKDE).
- if (lastSender->inherits("QSignal"))
- qv = &static_QUType_QVariant.get(qargs + 1);
+ // If the sender was a TQSignal then the single argument will be wrapped
+ // in a TQVariant instance. At the moment we handle int argument as
+ // that is all that is needed by PyTQt (and PyKDE).
+ if (lastSender->inherits("TQSignal"))
+ qv = &static_QUType_TQVariant.get(qargs + 1);
else
qv = 0;
@@ -1576,7 +1576,7 @@ bool UniversalSlot::qt_invoke(int id, QUObject *qargs)
case qvariant_sat:
case qvariantp_sat:
- arg = sipConvertFromInstance((void *)&static_QUType_QVariant.get(qargs),sipClass_QVariant,0);
+ arg = sipConvertFromInstance((void *)&static_QUType_TQVariant.get(qargs),sipClass_QVariant,0);
break;
case pyobject_sat:
@@ -1622,7 +1622,7 @@ static void parseType(const char *type, pyqt3SigArg *arg);
// Factory function to create a universal slot instance. Returns a pointer to
// the instance or 0 if there was an error.
-static void *sipQtCreateUniversalSlot(sipWrapper *tx, const char *sig,
+static void *sipTQtCreateUniversalSlot(sipWrapper *tx, const char *sig,
PyObject *rxObj, const char *slot, const char **member, int)
{
pyqt3SlotConnection conn;
@@ -1641,16 +1641,16 @@ static void *sipQtCreateUniversalSlot(sipWrapper *tx, const char *sig,
return 0;
}
- QObject *qtx = 0;
+ TQObject *qtx = 0;
- // See if the transmitter is a QObject in which case we will connect
+ // See if the transmitter is a TQObject in which case we will connect
// to it's destroyed signal so that the universal slot can be destroyed
// at the same time. (Note that we used to do this by making the
// universal slot a child of the transmitter. This doesn't work as
- // expected because QWidget destroys its children before emitting the
+ // expected because TQWidget destroys its children before emitting the
// destroyed signal.)
if (tx && PyObject_TypeCheck((PyObject *)tx, (PyTypeObject *)sipClass_QObject))
- qtx = reinterpret_cast<QObject *>(conn.sc_transmitter);
+ qtx = reinterpret_cast<TQObject *>(conn.sc_transmitter);
return new UniversalSlot(qtx, &conn, member);
}
@@ -1669,7 +1669,7 @@ static pyqt3Signature *parseSignature(const char *sig)
// could be more clever, the most saving is when repeatedly emitting a
// signal for which this is sufficient.
for (psig = psig_list; psig != NULL; psig = psig->sg_next)
- if (sipQtSameSignalSlotName(psig->sg_signature, sig))
+ if (sipTQtSameSignalSlotName(psig->sg_signature, sig))
return psig;
// Create a new one including space for the copy of the signature.
@@ -1684,7 +1684,7 @@ static pyqt3Signature *parseSignature(const char *sig)
sp = strchr(sig, '(');
ep = strrchr(sig, ')');
- // If the signal isn't well formed we assume Qt will pick it up.
+ // If the signal isn't well formed we assume TQt will pick it up.
if (sp && ep && sp < ep)
{
// Copy the signature arguments while counting them and removing
@@ -1890,7 +1890,7 @@ static void parseType(const char *type, pyqt3SigArg *arg)
case 8:
if (strcmp(type, "unsigned") == 0)
sat = uint_sat;
- else if (strcmp(type, "QVariant") == 0)
+ else if (strcmp(type, "TQVariant") == 0)
{
if (indir == 0)
{
@@ -1931,7 +1931,7 @@ static void parseType(const char *type, pyqt3SigArg *arg)
sat = (indir ? ustring_sat : uchar_sat);
unsup = (isref || indir > 1);
}
- else if (strcmp(type, "PyQt_PyObject") == 0 && indir == 0)
+ else if (strcmp(type, "PyTQt_PyObject") == 0 && indir == 0)
{
sat = pyobject_sat;
unsup = FALSE;
@@ -1995,10 +1995,10 @@ static void parseType(const char *type, pyqt3SigArg *arg)
// Dispose of a receiver that might be a universal slot.
-static void sipQtDestroyUniversalSlot(void *rx)
+static void sipTQtDestroyUniversalSlot(void *rx)
{
for (UniversalSlot *us = UniversalSlot::unislots; us; us = us->nextus)
- if (us == reinterpret_cast<QObject *>(rx))
+ if (us == reinterpret_cast<TQObject *>(rx))
{
delete us;
break;
@@ -2006,8 +2006,8 @@ static void sipQtDestroyUniversalSlot(void *rx)
}
-// Search for the universal slot connected to a particular Qt signal.
-static void *sipQtFindSlot(void *tx, const char *sig, PyObject *rxObj,
+// Search for the universal slot connected to a particular TQt signal.
+static void *sipTQtFindSlot(void *tx, const char *sig, PyObject *rxObj,
const char *slot, const char **member)
{
for (UniversalSlot *us = UniversalSlot::unislots; us; us = us->nextus)
@@ -2017,7 +2017,7 @@ static void *sipQtFindSlot(void *tx, const char *sig, PyObject *rxObj,
if (conn->sc_transmitter != tx)
continue;
- if (!sipQtSameSignalSlotName(conn->sc_signature->sg_signature, sig))
+ if (!sipTQtSameSignalSlotName(conn->sc_signature->sg_signature, sig))
continue;
if (sipSameSlot(&conn->sc_slot, rxObj, slot))
@@ -2031,24 +2031,24 @@ static void *sipQtFindSlot(void *tx, const char *sig, PyObject *rxObj,
}
-// Connect a Qt signal to a Qt slot.
-static int sipQtConnect(void *tx, const char *sig, void *rx, const char *slot, int)
+// Connect a TQt signal to a TQt slot.
+static int sipTQtConnect(void *tx, const char *sig, void *rx, const char *slot, int)
{
- return QObject::connect(reinterpret_cast<QObject *>(tx), sig,
- reinterpret_cast<QObject *>(rx), slot);
+ return TQObject::connect(reinterpret_cast<TQObject *>(tx), sig,
+ reinterpret_cast<TQObject *>(rx), slot);
}
-// Disconnect a Qt signal from a Qt slot.
-static int sipQtDisconnect(void *tx, const char *sig, void *rx, const char *slot)
+// Disconnect a TQt signal from a TQt slot.
+static int sipTQtDisconnect(void *tx, const char *sig, void *rx, const char *slot)
{
- return QObject::disconnect(reinterpret_cast<QObject *>(tx), sig,
- reinterpret_cast<QObject *>(rx), slot);
+ return TQObject::disconnect(reinterpret_cast<TQObject *>(tx), sig,
+ reinterpret_cast<TQObject *>(rx), slot);
}
// See if two signal or slot names are the same.
-static int sipQtSameSignalSlotName(const char *s1, const char *s2)
+static int sipTQtSameSignalSlotName(const char *s1, const char *s2)
{
// moc formats signal names, so we should first convert the supplied
// string to the same format before comparing them. Instead we just
@@ -2075,7 +2075,7 @@ static int sipQtSameSignalSlotName(const char *s1, const char *s2)
// Return the next slot for a particular transmitter. This will be called with
// the GIL locked.
-static sipSlot *sipQtFindSipslot(void *tx, void **context)
+static sipSlot *sipTQtFindSipslot(void *tx, void **context)
{
UniversalSlot *us = *reinterpret_cast<UniversalSlot **>(context);
@@ -2104,7 +2104,7 @@ static sipSlot *sipQtFindSipslot(void *tx, void **context)
// Connect a slot from a Python signal.
-static int sipQtConnectPySignal(PyObject *txObj, const char *sig,
+static int sipTQtConnectPySignal(PyObject *txObj, const char *sig,
PyObject *rxObj, const char *slot)
{
pyqt3PySig *ps;
@@ -2149,7 +2149,7 @@ static int sipQtConnectPySignal(PyObject *txObj, const char *sig,
// Disconnect a slot from a Python signal.
-static void sipQtDisconnectPySignal(PyObject *txObj, const char *sig,
+static void sipTQtDisconnectPySignal(PyObject *txObj, const char *sig,
PyObject *rxObj, const char *slot)
{
pyqt3PySig *ps;
@@ -2174,29 +2174,29 @@ static void sipQtDisconnectPySignal(PyObject *txObj, const char *sig,
// Emit a signal for the sip module.
-static int sipQtEmitSignal(PyObject *self, const char *sig, PyObject *sigargs)
+static int sipTQtEmitSignal(PyObject *self, const char *sig, PyObject *sigargs)
{
return pyqt3EmitSignal(self, sig, sigargs);
}
-// Emit a Python or Qt signal.
+// Emit a Python or TQt signal.
int pyqt3EmitSignal(PyObject *self, const char *sig, PyObject *sigargs)
{
- // Don't do anything if signals are blocked. Qt signals would be blocked
+ // Don't do anything if signals are blocked. TQt signals would be blocked
// anyway, but this blocks Python signals as well.
void *tx = sipGetCppPtr((sipSimpleWrapper *)self, sipType_QObject);
if (!tx)
return 0;
- if (reinterpret_cast<QObject *>(tx)->signalsBlocked())
+ if (reinterpret_cast<TQObject *>(tx)->signalsBlocked())
return 0;
- // See if it is a Qt signal.
+ // See if it is a TQt signal.
if (*sig == '2')
{
- pyqt3QtSignal *tab;
+ pyqt3TQtSignal *tab;
// Search the table.
for (tab = ((pyqt3ClassTypeDef *)((sipWrapperType *)(self->ob_type))->type)->qt3_emit; tab->st_name != NULL; ++tab)
@@ -2234,7 +2234,7 @@ int pyqt3EmitSignal(PyObject *self, const char *sig, PyObject *sigargs)
int rc = 0;
pyqt3SlotList *rxlist = ps->rxlist;
- // Forget the last Qt sender and remember this one.
+ // Forget the last TQt sender and remember this one.
UniversalSlot::lastSender = 0;
py_sender = self;
@@ -2274,7 +2274,7 @@ PyObject *pyqt3GetSender()
{
PyObject *sender;
- // If there is a Qt sender then it is more recent than the last Python
+ // If there is a TQt sender then it is more recent than the last Python
// sender, so use it instead.
if (UniversalSlot::lastSender)
{
diff --git a/sip/qt/qobjectcleanuphandler.sip b/sip/qt/qobjectcleanuphandler.sip
index 0828fc7..f3ddf16 100644
--- a/sip/qt/qobjectcleanuphandler.sip
+++ b/sip/qt/qobjectcleanuphandler.sip
@@ -1,47 +1,47 @@
-// This is the SIP interface definition for QObjectCleanupHandler.
+// This is the SIP interface definition for TQObjectCleanupHandler.
//
// 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>QObjectCleanupHandler (Qt v3+)</Title>
+<Sect2><Title>TQObjectCleanupHandler (TQt v3+)</Title>
<Para>
-<Literal>QObjectCleanupHandler</Literal> is fully implemented.
+<Literal>TQObjectCleanupHandler</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QObjectCleanupHandler : QObject
+class TQObjectCleanupHandler : TQObject
{
%TypeHeaderCode
#include <qobjectcleanuphandler.h>
%End
public:
- QObjectCleanupHandler();
+ TQObjectCleanupHandler();
- QObject *add(QObject *);
- void remove(QObject *);
+ TQObject *add(TQObject *);
+ void remove(TQObject *);
bool isEmpty() const;
void clear();
};
diff --git a/sip/qt/qobjectlist.sip b/sip/qt/qobjectlist.sip
index 6fe34fc..2c528b0 100644
--- a/sip/qt/qobjectlist.sip
+++ b/sip/qt/qobjectlist.sip
@@ -1,37 +1,37 @@
-// This is the SIP interface definition for QObjectList.
+// This is the SIP interface definition for TQObjectList.
//
// 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>QObjectList</Title>
+<Sect2><Title>TQObjectList</Title>
<Para>
-This class isn't implemented. Whenever a <Literal>QObjectList</Literal> is the
+This class isn't implemented. Whenever a <Literal>TQObjectList</Literal> is the
return type of a function or the type of an argument, a Python list of
-<Literal>QObject</Literal> instances is used instead.
+<Literal>TQObject</Literal> instances is used instead.
</Para>
</Sect2>
%End
-%MappedType QObjectList
+%MappedType TQObjectList
{
%TypeHeaderCode
#include <qobjectlist.h>
@@ -41,12 +41,12 @@ return type of a function or the type of an argument, a Python list of
// Convert the list.
PyObject *pl;
- QObject *obj;
+ TQObject *obj;
if ((pl = PyList_New(0)) == NULL)
return NULL;
- for (QObjectListIt it(*sipCpp); (obj = it.current()) != NULL; ++it)
+ for (TQObjectListIt it(*sipCpp); (obj = it.current()) != NULL; ++it)
{
PyObject *inst;
@@ -65,7 +65,7 @@ return type of a function or the type of an argument, a Python list of
%End
%ConvertToTypeCode
- // Convert a Python list of QObject instances to a QObjectList on the
+ // Convert a Python list of TQObject instances to a TQObjectList on the
// heap.
if (sipIsErr == NULL)
@@ -80,16 +80,16 @@ return type of a function or the type of an argument, a Python list of
return 1;
}
- QObjectList *qol = new QObjectList;
+ TQObjectList *qol = new TQObjectList;
for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
{
- QObject *qobj;
+ TQObject *qobj;
// We apply the transfer to the list itself, not the elements.
// Note that any temporary element will never be destroyed.
// There is nothing that can be done about this.
- qobj = reinterpret_cast<QObject *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QObject,0,0,0,sipIsErr));
+ qobj = reinterpret_cast<TQObject *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QObject,0,0,0,sipIsErr));
if (*sipIsErr)
{
diff --git a/sip/qt/qpaintdevice.sip b/sip/qt/qpaintdevice.sip
index 52b78f2..89bddbb 100644
--- a/sip/qt/qpaintdevice.sip
+++ b/sip/qt/qpaintdevice.sip
@@ -1,32 +1,32 @@
-// This is the SIP interface definition for QPaintDevice.
+// This is the SIP interface definition for TQPaintDevice.
//
// 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>QPaintDevice</Title>
+<Sect2><Title>TQPaintDevice</Title>
<FuncSynopsis>
<FuncDef>virtual bool <Function>cmd</Function></FuncDef>
<ParamDef>int</ParamDef>
- <ParamDef>QPainter *</ParamDef>
- <ParamDef>QPDevCmdParam *</ParamDef>
+ <ParamDef>TQPainter *</ParamDef>
+ <ParamDef>TQPDevCmdParam *</ParamDef>
</FuncSynopsis>
<Para>
Not implemented.
@@ -40,7 +40,7 @@ Not implemented.
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
// Painter device types.
@@ -57,29 +57,29 @@ const int PDF_EXTDEV;
const int PDF_PAINTACTIVE;
-void bitBlt(QPaintDevice *,int,int,const QPaintDevice *,int = 0,int = 0,
+void bitBlt(TQPaintDevice *,int,int,const TQPaintDevice *,int = 0,int = 0,
int = -1,int = -1,RasterOp = CopyROP,bool = 0);
-void bitBlt(QPaintDevice *,int,int,const QImage *,int = 0,int = 0,int = -1,
+void bitBlt(TQPaintDevice *,int,int,const TQImage *,int = 0,int = 0,int = -1,
int = -1,int = 0);
-void bitBlt(QPaintDevice *,const QPoint &,const QPaintDevice *,
- const QRect & = QRect(0,0,-1,-1),RasterOp = CopyROP,bool = 0);
+void bitBlt(TQPaintDevice *,const TQPoint &,const TQPaintDevice *,
+ const TQRect & = TQRect(0,0,-1,-1),RasterOp = CopyROP,bool = 0);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-void bitBlt(QPaintDevice *,int,int,const QPaintDevice *,int = 0,int = 0,
- int = -1,int = -1,Qt::RasterOp = Qt::CopyROP,bool = 0);
-void bitBlt(QPaintDevice *,int,int,const QImage *,int = 0,int = 0,int = -1,
+void bitBlt(TQPaintDevice *,int,int,const TQPaintDevice *,int = 0,int = 0,
+ int = -1,int = -1,TQt::RasterOp = TQt::CopyROP,bool = 0);
+void bitBlt(TQPaintDevice *,int,int,const TQImage *,int = 0,int = 0,int = -1,
int = -1,int = 0);
-void bitBlt(QPaintDevice *,const QPoint &,const QPaintDevice *,
- const QRect & = QRect(0,0,-1,-1),Qt::RasterOp = Qt::CopyROP,
+void bitBlt(TQPaintDevice *,const TQPoint &,const TQPaintDevice *,
+ const TQRect & = TQRect(0,0,-1,-1),TQt::RasterOp = TQt::CopyROP,
bool = 0);
%End
-class QPaintDevice
+class TQPaintDevice
{
%TypeHeaderCode
#include <qpaintdevice.h>
@@ -90,12 +90,12 @@ public:
bool isExtDev() const;
bool paintingActive() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void setResolution(int);
virtual int resolution() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
HANDLE handle() const;
%If (WS_X11)
Display *x11Display() const;
@@ -109,24 +109,24 @@ public:
%End
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
%If (WS_X11)
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
HANDLE handle() const;
%End
-%If (Qt_3_0_0 -)
- Qt::HANDLE handle() const;
- Qt::HANDLE x11RenderHandle() const;
+%If (TQt_3_0_0 -)
+ TQt::HANDLE handle() const;
+ TQt::HANDLE x11RenderHandle() const;
%End
Display *x11Display() const;
int x11Screen() const;
int x11Depth() const;
int x11Cells() const;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
HANDLE x11Colormap() const;
%End
-%If (Qt_3_0_0 -)
- Qt::HANDLE x11Colormap() const;
+%If (TQt_3_0_0 -)
+ TQt::HANDLE x11Colormap() const;
%End
bool x11DefaultColormap() const;
void *x11Visual() const;
@@ -137,30 +137,30 @@ public:
static int x11AppDpiX();
static int x11AppDpiY();
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
static void x11SetAppDpiX(int);
static void x11SetAppDpiY(int);
%End
static int x11AppDepth();
static int x11AppCells();
-%If (Qt_3_1_0 -)
- static Qt::HANDLE x11AppRootWindow();
+%If (TQt_3_1_0 -)
+ static TQt::HANDLE x11AppRootWindow();
%End
-%If (Qt_3_0_0 -)
- static Qt::HANDLE x11AppColormap();
+%If (TQt_3_0_0 -)
+ static TQt::HANDLE x11AppColormap();
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
static HANDLE x11AppColormap();
%End
static bool x11AppDefaultColormap();
static void *x11AppVisual();
static bool x11AppDefaultVisual();
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
static int x11AppDepth(int);
static int x11AppCells(int);
- static Qt::HANDLE x11AppRootWindow(int);
- static Qt::HANDLE x11AppColormap(int);
+ static TQt::HANDLE x11AppRootWindow(int);
+ static TQt::HANDLE x11AppColormap(int);
static void *x11AppVisual(int);
static bool x11AppDefaultColormap(int);
static bool x11AppDefaultVisual(int);
@@ -188,10 +188,10 @@ public:
PdcDrawLineSegments,
PdcDrawPolyline,
PdcDrawPolygon,
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
PdcDrawCubicBezier,
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
PdcDrawQuadBezier,
%End
PdcDrawText,
@@ -200,7 +200,7 @@ public:
PdcDrawImage,
PdcDrawText2,
PdcDrawText2Formatted,
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
PdcDrawTextItem,
%End
PdcDrawLast,
@@ -236,12 +236,12 @@ public:
%End
protected:
- QPaintDevice(uint);
-// virtual bool cmd(int,QPainter *,QPDevCmdParam *);
+ TQPaintDevice(uint);
+// virtual bool cmd(int,TQPainter *,TQPDevCmdParam *);
// virtual int metric(int) const;
-// virtual int fontMet(QFont *,int,const char *,int = 0) const;
-// virtual int fontInf(QFont *,int) const;
+// virtual int fontMet(TQFont *,int,const char *,int = 0) const;
+// virtual int fontInf(TQFont *,int) const;
private:
- QPaintDevice(const QPaintDevice &);
+ TQPaintDevice(const TQPaintDevice &);
};
diff --git a/sip/qt/qpaintdevicemetrics.sip b/sip/qt/qpaintdevicemetrics.sip
index ece9356..04500c8 100644
--- a/sip/qt/qpaintdevicemetrics.sip
+++ b/sip/qt/qpaintdevicemetrics.sip
@@ -1,52 +1,52 @@
-// This is the SIP interface definition for QPaintDeviceMetrics.
+// This is the SIP interface definition for TQPaintDeviceMetrics.
//
// 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>QPaintDeviceMetrics</Title>
+<Sect2><Title>TQPaintDeviceMetrics</Title>
<Para>
-<Literal>QPaintDeviceMetrics</Literal> is fully implemented.
+<Literal>TQPaintDeviceMetrics</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QPaintDeviceMetrics
+class TQPaintDeviceMetrics
{
%TypeHeaderCode
#include <qpaintdevicemetrics.h>
%End
public:
- QPaintDeviceMetrics(const QPaintDevice *);
+ TQPaintDeviceMetrics(const TQPaintDevice *);
int width() const;
int height() const;
int widthMM() const;
int heightMM() const;
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
int logicalDpiX() const;
int logicalDpiY() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int physicalDpiX() const;
int physicalDpiY() const;
%End
diff --git a/sip/qt/qpainter.sip b/sip/qt/qpainter.sip
index f9b1fca..5d42678 100644
--- a/sip/qt/qpainter.sip
+++ b/sip/qt/qpainter.sip
@@ -1,29 +1,29 @@
-// This is the SIP interface definition for QPainter.
+// This is the SIP interface definition for TQPainter.
//
// 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>QPainter</Title>
+<Sect2><Title>TQPainter</Title>
<FuncSynopsis>
- <FuncDef>QRect <Function>boundingRect</Function></FuncDef>
+ <FuncDef>TQRect <Function>boundingRect</Function></FuncDef>
<ParamDef>int <Parameter>x</Parameter></ParamDef>
<ParamDef>int <Parameter>y</Parameter></ParamDef>
<ParamDef>int <Parameter>w</Parameter></ParamDef>
@@ -38,8 +38,8 @@ The <Literal>intern</Literal> parameter is not supported.
</Para>
<FuncSynopsis>
- <FuncDef>QRect <Function>boundingRect</Function></FuncDef>
- <ParamDef>const QRect&</ParamDef>
+ <FuncDef>TQRect <Function>boundingRect</Function></FuncDef>
+ <ParamDef>const TQRect&</ParamDef>
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
<ParamDef>const char *<Parameter>str</Parameter></ParamDef>
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
@@ -58,7 +58,7 @@ The <Literal>intern</Literal> parameter is not supported.
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
<ParamDef>const char *<Parameter>str</Parameter></ParamDef>
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
- <ParamDef>QRect *<Parameter>br</Parameter> = 0</ParamDef>
+ <ParamDef>TQRect *<Parameter>br</Parameter> = 0</ParamDef>
<ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -67,11 +67,11 @@ The <Literal>intern</Literal> parameter is not supported.
<FuncSynopsis>
<FuncDef>void <Function>drawText</Function></FuncDef>
- <ParamDef>const QRect&</ParamDef>
+ <ParamDef>const TQRect&</ParamDef>
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
<ParamDef>const char *<Parameter>str</Parameter></ParamDef>
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
- <ParamDef>QRect *<Parameter>br</Parameter> = 0</ParamDef>
+ <ParamDef>TQRect *<Parameter>br</Parameter> = 0</ParamDef>
<ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -97,7 +97,7 @@ This returns a list of tab stops.
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
%ModuleHeaderCode
#include <qpainter.h>
@@ -118,67 +118,67 @@ enum PaintUnit {
};
-class QPainter
+class TQPainter
{
%TypeHeaderCode
#include <qpainter.h>
%End
public:
- QPainter();
- QPainter(const QPaintDevice *);
- QPainter(const QPaintDevice *,const QWidget *);
+ TQPainter();
+ TQPainter(const TQPaintDevice *);
+ TQPainter(const TQPaintDevice *,const TQWidget *);
- bool begin(const QPaintDevice *);
- bool begin(const QPaintDevice *,const QWidget *);
+ bool begin(const TQPaintDevice *);
+ bool begin(const TQPaintDevice *,const TQWidget *);
bool end();
- QPaintDevice *device() const;
+ TQPaintDevice *device() const;
- static void redirect(QPaintDevice *,QPaintDevice *);
-%If (Qt_3_2_0 -)
- static QPaintDevice *redirect(QPaintDevice *);
+ static void redirect(TQPaintDevice *,TQPaintDevice *);
+%If (TQt_3_2_0 -)
+ static TQPaintDevice *redirect(TQPaintDevice *);
%End
bool isActive() const;
void flush();
void save();
void restore();
- QFontMetrics fontMetrics() const;
- QFontInfo fontInfo() const;
- const QFont &font() const;
- void setFont(const QFont&);
- const QPen &pen() const;
- void setPen(const QPen &);
+ TQFontMetrics fontMetrics() const;
+ TQFontInfo fontInfo() const;
+ const TQFont &font() const;
+ void setFont(const TQFont&);
+ const TQPen &pen() const;
+ void setPen(const TQPen &);
void setPen(PenStyle);
- void setPen(const QColor &);
- const QBrush &brush() const;
- void setBrush(const QBrush &);
+ void setPen(const TQColor &);
+ const TQBrush &brush() const;
+ void setBrush(const TQBrush &);
void setBrush(BrushStyle);
- void setBrush(const QColor &);
- const QColor &backgroundColor() const;
- void setBackgroundColor(const QColor &);
+ void setBrush(const TQColor &);
+ const TQColor &backgroundColor() const;
+ void setBackgroundColor(const TQColor &);
BGMode backgroundMode() const;
void setBackgroundMode(BGMode);
RasterOp rasterOp() const;
void setRasterOp(RasterOp);
- const QPoint &brushOrigin() const;
+ const TQPoint &brushOrigin() const;
void setBrushOrigin(int,int);
- void setBrushOrigin(const QPoint &);
+ void setBrushOrigin(const TQPoint &);
bool hasViewXForm() const;
bool hasWorldXForm() const;
void setViewXForm(bool);
- QRect window() const;
- void setWindow(const QRect &);
+ TQRect window() const;
+ void setWindow(const TQRect &);
void setWindow(int,int,int,int);
- QRect viewport() const;
- void setViewport(const QRect &);
+ TQRect viewport() const;
+ void setViewport(const TQRect &);
void setViewport(int,int,int,int);
void setWorldXForm(bool);
- const QWMatrix &worldMatrix() const;
- void setWorldMatrix(const QWMatrix &,bool = 0);
+ const TQWMatrix &worldMatrix() const;
+ void setWorldMatrix(const TQWMatrix &,bool = 0);
void scale(float,float);
void shear(float,float);
@@ -187,75 +187,75 @@ public:
void translate(float,float);
void resetXForm();
- QPoint xForm(QPoint &) const;
- QRect xForm(QRect &) const;
- QPointArray xForm(QPointArray &) const;
- QPointArray xForm(QPointArray &,int,int) const;
- QPoint xFormDev(QPoint &) const;
- QRect xFormDev(QRect &) const;
- QPointArray xFormDev(QPointArray &) const;
- QPointArray xFormDev(QPointArray &,int,int) const;
+ TQPoint xForm(TQPoint &) const;
+ TQRect xForm(TQRect &) const;
+ TQPointArray xForm(TQPointArray &) const;
+ TQPointArray xForm(TQPointArray &,int,int) const;
+ TQPoint xFormDev(TQPoint &) const;
+ TQRect xFormDev(TQRect &) const;
+ TQPointArray xFormDev(TQPointArray &) const;
+ TQPointArray xFormDev(TQPointArray &,int,int) const;
void setClipping(bool);
bool hasClipping() const;
- const QRegion &clipRegion() const;
- void setClipRect(const QRect &);
+ const TQRegion &clipRegion() const;
+ void setClipRect(const TQRect &);
void setClipRect(int,int,int,int);
- void setClipRegion(const QRegion &);
+ void setClipRegion(const TQRegion &);
void drawPoint(int,int);
- void drawPoint(const QPoint &);
- void drawPoints(const QPointArray &,int,int = -1);
+ void drawPoint(const TQPoint &);
+ void drawPoints(const TQPointArray &,int,int = -1);
void moveTo(int,int);
- void moveTo(const QPoint &);
+ void moveTo(const TQPoint &);
void lineTo(int,int);
- void lineTo(const QPoint &);
+ void lineTo(const TQPoint &);
void drawLine(int,int,int,int);
- void drawLine(const QPoint &,const QPoint &);
+ void drawLine(const TQPoint &,const TQPoint &);
void drawRect(int,int,int,int);
- void drawRect(const QRect &);
+ void drawRect(const TQRect &);
void drawWinFocusRect(int,int,int,int);
- void drawWinFocusRect(int,int,int,int,const QColor &);
- void drawWinFocusRect(const QRect &);
- void drawWinFocusRect(const QRect &,const QColor &);
+ void drawWinFocusRect(int,int,int,int,const TQColor &);
+ void drawWinFocusRect(const TQRect &);
+ void drawWinFocusRect(const TQRect &,const TQColor &);
void drawRoundRect(int,int,int,int,int,int);
- void drawRoundRect(const QRect &,int,int);
+ void drawRoundRect(const TQRect &,int,int);
void drawEllipse(int,int,int,int);
- void drawEllipse(const QRect &);
+ void drawEllipse(const TQRect &);
void drawArc(int,int,int,int,int,int);
- void drawArc(const QRect &,int,int);
+ void drawArc(const TQRect &,int,int);
void drawPie(int,int,int,int,int,int);
- void drawPie(const QRect &,int,int);
+ void drawPie(const TQRect &,int,int);
void drawChord(int,int,int,int,int,int);
- void drawChord(const QRect &,int,int);
- void drawLineSegments(const QPointArray &,int = 0,int = -1);
- void drawPolyline(const QPointArray &,int = 0,int = -1);
- void drawPolygon(const QPointArray &,bool = 0,int = 0,int = -1);
- void drawQuadBezier(const QPointArray &,int = 0);
- void drawPixmap(int,int,const QPixmap &,int = 0,int = 0,int = -1,int = -1);
- void drawPixmap(const QPoint &,const QPixmap &,const QRect &);
- void drawPixmap(const QPoint &,const QPixmap &);
- void drawImage(int,int,const QImage &,int = 0,int = 0,int = -1,int = -1);
- void drawImage(const QPoint &,const QImage &,const QRect &);
- void drawImage(const QPoint &,const QImage &);
- void drawTiledPixmap(int,int,int,int,const QPixmap &,int = 0,int = 0);
- void drawTiledPixmap(const QRect &,const QPixmap &,const QPoint &);
- void drawTiledPixmap(const QRect &,const QPixmap &);
- void drawPicture(const QPicture &);
- void fillRect(int,int,int,int,const QBrush &);
- void fillRect(const QRect &,const QBrush &);
+ void drawChord(const TQRect &,int,int);
+ void drawLineSegments(const TQPointArray &,int = 0,int = -1);
+ void drawPolyline(const TQPointArray &,int = 0,int = -1);
+ void drawPolygon(const TQPointArray &,bool = 0,int = 0,int = -1);
+ void drawQuadBezier(const TQPointArray &,int = 0);
+ void drawPixmap(int,int,const TQPixmap &,int = 0,int = 0,int = -1,int = -1);
+ void drawPixmap(const TQPoint &,const TQPixmap &,const TQRect &);
+ void drawPixmap(const TQPoint &,const TQPixmap &);
+ void drawImage(int,int,const TQImage &,int = 0,int = 0,int = -1,int = -1);
+ void drawImage(const TQPoint &,const TQImage &,const TQRect &);
+ void drawImage(const TQPoint &,const TQImage &);
+ void drawTiledPixmap(int,int,int,int,const TQPixmap &,int = 0,int = 0);
+ void drawTiledPixmap(const TQRect &,const TQPixmap &,const TQPoint &);
+ void drawTiledPixmap(const TQRect &,const TQPixmap &);
+ void drawPicture(const TQPicture &);
+ void fillRect(int,int,int,int,const TQBrush &);
+ void fillRect(const TQRect &,const TQBrush &);
void eraseRect(int,int,int,int);
- void eraseRect(const QRect &);
+ void eraseRect(const TQRect &);
void drawText(int,int,char *,int = -1);
- void drawText(const QPoint &,const char *,int = -1);
- void drawText(int,int,int,int,int,const char *,int = -1,QRect * = 0);
- void drawText(const QRect &,int,const char *,int = -1,QRect * = 0);
+ void drawText(const TQPoint &,const char *,int = -1);
+ void drawText(int,int,int,int,int,const char *,int = -1,TQRect * = 0);
+ void drawText(const TQRect &,int,const char *,int = -1,TQRect * = 0);
-%If (Qt_3_2_0 -)
- void drawTextItem(int,int,const QTextItem &,int = 0);
- void drawTextItem(const QPoint &,const QTextItem &,int = 0);
+%If (TQt_3_2_0 -)
+ void drawTextItem(int,int,const TQTextItem &,int = 0);
+ void drawTextItem(const TQPoint &,const TQTextItem &,int = 0);
%End
- QRect boundingRect(int,int,int,int,int,const char *,int = -1);
- QRect boundingRect(const QRect &,int,const char *,int = -1);
+ TQRect boundingRect(int,int,int,int,int,const char *,int = -1);
+ TQRect boundingRect(const TQRect &,int,const char *,int = -1);
int tabStops() const;
void setTabStops(int);
@@ -344,101 +344,101 @@ public:
static void cleanup();
private:
- QPainter(const QPainter &);
+ TQPainter(const TQPainter &);
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QPainter : Qt
+class TQPainter : TQt
{
%TypeHeaderCode
#include <qpainter.h>
%End
public:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum CoordinateMode {
CoordDevice,
CoordPainter
};
%End
- QPainter();
-%If (- Qt_3_0_0)
- QPainter(const QPaintDevice *);
- QPainter(const QPaintDevice *,const QWidget *);
+ TQPainter();
+%If (- TQt_3_0_0)
+ TQPainter(const TQPaintDevice *);
+ TQPainter(const TQPaintDevice *,const TQWidget *);
%End
-%If (Qt_3_0_0 -)
- QPainter(const QPaintDevice *,bool = 0);
- QPainter(const QPaintDevice *,const QWidget *,bool = 0);
+%If (TQt_3_0_0 -)
+ TQPainter(const TQPaintDevice *,bool = 0);
+ TQPainter(const TQPaintDevice *,const TQWidget *,bool = 0);
%End
-%If (- Qt_3_0_0)
- bool begin(const QPaintDevice *);
- bool begin(const QPaintDevice *,const QWidget *);
+%If (- TQt_3_0_0)
+ bool begin(const TQPaintDevice *);
+ bool begin(const TQPaintDevice *,const TQWidget *);
%End
-%If (Qt_3_0_0 -)
- bool begin(const QPaintDevice *,bool = 0);
- bool begin(const QPaintDevice *,const QWidget *,bool = 0);
+%If (TQt_3_0_0 -)
+ bool begin(const TQPaintDevice *,bool = 0);
+ bool begin(const TQPaintDevice *,const TQWidget *,bool = 0);
%End
bool end();
- QPaintDevice *device() const;
+ TQPaintDevice *device() const;
- static void redirect(QPaintDevice *,QPaintDevice *);
+ static void redirect(TQPaintDevice *,TQPaintDevice *);
bool isActive() const;
-%If (Qt_3_0_0 -)
- void flush(const QRegion &,CoordinateMode = CoordDevice);
+%If (TQt_3_0_0 -)
+ void flush(const TQRegion &,CoordinateMode = CoordDevice);
%End
void flush();
void save();
void restore();
- QFontMetrics fontMetrics() const;
- QFontInfo fontInfo() const;
+ TQFontMetrics fontMetrics() const;
+ TQFontInfo fontInfo() const;
- const QFont &font() const;
- void setFont(const QFont&);
- const QPen &pen() const;
- void setPen(const QPen &);
+ const TQFont &font() const;
+ void setFont(const TQFont&);
+ const TQPen &pen() const;
+ void setPen(const TQPen &);
void setPen(PenStyle);
- void setPen(const QColor &);
- const QBrush &brush() const;
- void setBrush(const QBrush &);
+ void setPen(const TQColor &);
+ const TQBrush &brush() const;
+ void setBrush(const TQBrush &);
void setBrush(BrushStyle);
- void setBrush(const QColor &);
-%If (Qt_2_1_0 -)
- // The omission of this from Qt/Embedded is probably a bug.
+ void setBrush(const TQColor &);
+%If (TQt_2_1_0 -)
+ // The omission of this from TQt/Embedded is probably a bug.
%End
- const QColor &backgroundColor() const;
- void setBackgroundColor(const QColor &);
+ const TQColor &backgroundColor() const;
+ void setBackgroundColor(const TQColor &);
BGMode backgroundMode() const;
void setBackgroundMode(BGMode);
RasterOp rasterOp() const;
void setRasterOp(RasterOp);
- const QPoint &brushOrigin() const;
+ const TQPoint &brushOrigin() const;
void setBrushOrigin(int,int);
- void setBrushOrigin(const QPoint &);
+ void setBrushOrigin(const TQPoint &);
bool hasViewXForm() const;
bool hasWorldXForm() const;
-%If (Qt_TRANSFORMATIONS)
+%If (TQt_TRANSFORMATIONS)
void setViewXForm(bool);
- QRect window() const;
- void setWindow(const QRect &);
+ TQRect window() const;
+ void setWindow(const TQRect &);
void setWindow(int,int,int,int);
- QRect viewport() const;
- void setViewport(const QRect &);
+ TQRect viewport() const;
+ void setViewport(const TQRect &);
void setViewport(int,int,int,int);
void setWorldXForm(bool);
- const QWMatrix &worldMatrix() const;
- void setWorldMatrix(const QWMatrix &,bool = 0);
+ const TQWMatrix &worldMatrix() const;
+ void setWorldMatrix(const TQWMatrix &,bool = 0);
void saveWorldMatrix();
void restoreWorldMatrix();
@@ -449,113 +449,113 @@ public:
%End
void translate(double,double);
void resetXForm();
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
double translationX() const;
double translationY() const;
%End
- QPoint xForm(const QPoint &) const;
- QRect xForm(const QRect &) const;
- QPointArray xForm(const QPointArray &) const;
- QPointArray xForm(const QPointArray &,int,int) const;
- QPoint xFormDev(const QPoint &) const;
- QRect xFormDev(const QRect &) const;
- QPointArray xFormDev(const QPointArray &) const;
- QPointArray xFormDev(const QPointArray &,int,int) const;
+ TQPoint xForm(const TQPoint &) const;
+ TQRect xForm(const TQRect &) const;
+ TQPointArray xForm(const TQPointArray &) const;
+ TQPointArray xForm(const TQPointArray &,int,int) const;
+ TQPoint xFormDev(const TQPoint &) const;
+ TQRect xFormDev(const TQRect &) const;
+ TQPointArray xFormDev(const TQPointArray &) const;
+ TQPointArray xFormDev(const TQPointArray &,int,int) const;
void setClipping(bool);
bool hasClipping() const;
-%If (- Qt_3_0_0)
- const QRegion &clipRegion() const;
- void setClipRect(const QRect &);
+%If (- TQt_3_0_0)
+ const TQRegion &clipRegion() const;
+ void setClipRect(const TQRect &);
void setClipRect(int,int,int,int);
- void setClipRegion(const QRegion &);
+ void setClipRegion(const TQRegion &);
%End
-%If (Qt_3_0_0 -)
- QRegion clipRegion(CoordinateMode = CoordDevice) const;
- void setClipRect(const QRect &,CoordinateMode = CoordDevice);
+%If (TQt_3_0_0 -)
+ TQRegion clipRegion(CoordinateMode = CoordDevice) const;
+ void setClipRect(const TQRect &,CoordinateMode = CoordDevice);
void setClipRect(int,int,int,int,CoordinateMode = CoordDevice);
- void setClipRegion(const QRegion &,CoordinateMode = CoordDevice);
+ void setClipRegion(const TQRegion &,CoordinateMode = CoordDevice);
%End
void drawPoint(int,int);
- void drawPoint(const QPoint &);
- void drawPoints(const QPointArray &,int,int = -1);
+ void drawPoint(const TQPoint &);
+ void drawPoints(const TQPointArray &,int,int = -1);
void moveTo(int,int);
- void moveTo(const QPoint &);
+ void moveTo(const TQPoint &);
void lineTo(int,int);
- void lineTo(const QPoint &);
+ void lineTo(const TQPoint &);
void drawLine(int,int,int,int);
- void drawLine(const QPoint &,const QPoint &);
+ void drawLine(const TQPoint &,const TQPoint &);
void drawRect(int,int,int,int);
- void drawRect(const QRect &);
+ void drawRect(const TQRect &);
void drawWinFocusRect(int,int,int,int);
- void drawWinFocusRect(int,int,int,int,const QColor &);
- void drawWinFocusRect(const QRect &);
- void drawWinFocusRect(const QRect &,const QColor &);
-%If (- Qt_3_0_0)
+ void drawWinFocusRect(int,int,int,int,const TQColor &);
+ void drawWinFocusRect(const TQRect &);
+ void drawWinFocusRect(const TQRect &,const TQColor &);
+%If (- TQt_3_0_0)
void drawRoundRect(int,int,int,int,int,int);
- void drawRoundRect(const QRect &,int,int);
+ void drawRoundRect(const TQRect &,int,int);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void drawRoundRect(int,int,int,int,int = 25,int = 25);
- void drawRoundRect(const QRect &,int = 25,int = 25);
+ void drawRoundRect(const TQRect &,int = 25,int = 25);
%End
void drawEllipse(int,int,int,int);
- void drawEllipse(const QRect &);
+ void drawEllipse(const TQRect &);
void drawArc(int,int,int,int,int,int);
- void drawArc(const QRect &,int,int);
+ void drawArc(const TQRect &,int,int);
void drawPie(int,int,int,int,int,int);
- void drawPie(const QRect &,int,int);
+ void drawPie(const TQRect &,int,int);
void drawChord(int,int,int,int,int,int);
- void drawChord(const QRect &,int,int);
- void drawLineSegments(const QPointArray &,int = 0,int = -1);
- void drawPolyline(const QPointArray &,int = 0,int = -1);
- void drawPolygon(const QPointArray &,bool = 0,int = 0,int = -1);
-%If (- Qt_3_0_0)
- void drawQuadBezier(const QPointArray &,int = 0);
-%End
-%If (Qt_3_0_0 -)
- void drawConvexPolygon(const QPointArray &,int = 0,int = -1);
- void drawCubicBezier(const QPointArray &,int = 0);
-%End
- void drawPixmap(int,int,const QPixmap &,int = 0,int = 0,int = -1,
+ void drawChord(const TQRect &,int,int);
+ void drawLineSegments(const TQPointArray &,int = 0,int = -1);
+ void drawPolyline(const TQPointArray &,int = 0,int = -1);
+ void drawPolygon(const TQPointArray &,bool = 0,int = 0,int = -1);
+%If (- TQt_3_0_0)
+ void drawQuadBezier(const TQPointArray &,int = 0);
+%End
+%If (TQt_3_0_0 -)
+ void drawConvexPolygon(const TQPointArray &,int = 0,int = -1);
+ void drawCubicBezier(const TQPointArray &,int = 0);
+%End
+ void drawPixmap(int,int,const TQPixmap &,int = 0,int = 0,int = -1,
int = -1);
- void drawPixmap(const QPoint &,const QPixmap &,const QRect &);
- void drawPixmap(const QPoint &,const QPixmap &);
-%If (Qt_3_0_0 -)
- void drawPixmap(const QRect &,const QPixmap &);
+ void drawPixmap(const TQPoint &,const TQPixmap &,const TQRect &);
+ void drawPixmap(const TQPoint &,const TQPixmap &);
+%If (TQt_3_0_0 -)
+ void drawPixmap(const TQRect &,const TQPixmap &);
%End
-%If (- Qt_3_0_0)
- void drawImage(int,int,const QImage &,int = 0,int = 0,int = -1,
+%If (- TQt_3_0_0)
+ void drawImage(int,int,const TQImage &,int = 0,int = 0,int = -1,
int = -1);
- void drawImage(const QPoint &,const QImage &,const QRect &);
- void drawImage(const QPoint &,const QImage &);
+ void drawImage(const TQPoint &,const TQImage &,const TQRect &);
+ void drawImage(const TQPoint &,const TQImage &);
%End
-%If (Qt_3_0_0 -)
- void drawImage(int,int,const QImage &,int = 0,int = 0,int = -1,
+%If (TQt_3_0_0 -)
+ void drawImage(int,int,const TQImage &,int = 0,int = 0,int = -1,
int = -1,int = 0);
- void drawImage(const QPoint &,const QImage &,const QRect &,int = 0);
- void drawImage(const QPoint &,const QImage &,int = 0);
- void drawImage(const QRect &,const QImage &);
+ void drawImage(const TQPoint &,const TQImage &,const TQRect &,int = 0);
+ void drawImage(const TQPoint &,const TQImage &,int = 0);
+ void drawImage(const TQRect &,const TQImage &);
%End
- void drawTiledPixmap(int,int,int,int,const QPixmap &,int = 0,int = 0);
- void drawTiledPixmap(const QRect &,const QPixmap &,const QPoint &);
- void drawTiledPixmap(const QRect &,const QPixmap &);
-%If (Qt_PICTURE)
- void drawPicture(const QPicture &);
-%If (Qt_3_0_0 -)
- void drawPicture(int,int,const QPicture &);
- void drawPicture(const QPoint &,const QPicture &);
+ void drawTiledPixmap(int,int,int,int,const TQPixmap &,int = 0,int = 0);
+ void drawTiledPixmap(const TQRect &,const TQPixmap &,const TQPoint &);
+ void drawTiledPixmap(const TQRect &,const TQPixmap &);
+%If (TQt_PICTURE)
+ void drawPicture(const TQPicture &);
+%If (TQt_3_0_0 -)
+ void drawPicture(int,int,const TQPicture &);
+ void drawPicture(const TQPoint &,const TQPicture &);
%End
%End
- void fillRect(int,int,int,int,const QBrush &);
- void fillRect(const QRect &,const QBrush &);
+ void fillRect(int,int,int,int,const TQBrush &);
+ void fillRect(const TQRect &,const TQBrush &);
void eraseRect(int,int,int,int);
- void eraseRect(const QRect &);
+ void eraseRect(const TQRect &);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum TextDirection {
Auto,
RTL,
@@ -563,23 +563,23 @@ public:
};
%End
-%If (- Qt_3_0_0)
- void drawText(int,int,const QString &,int = -1);
- void drawText(const QPoint &,const QString &,int = -1);
+%If (- TQt_3_0_0)
+ void drawText(int,int,const TQString &,int = -1);
+ void drawText(const TQPoint &,const TQString &,int = -1);
%End
-%If (Qt_3_0_0 -)
- void drawText(int,int,const QString &,int = -1,TextDirection = Auto);
- void drawText(const QPoint &,const QString &,int = -1,
+%If (TQt_3_0_0 -)
+ void drawText(int,int,const TQString &,int = -1,TextDirection = Auto);
+ void drawText(const TQPoint &,const TQString &,int = -1,
TextDirection = Auto);
- void drawText(int,int,const QString &,int,int,TextDirection = Auto);
- void drawText(const QPoint &,const QString &,int,int,
+ void drawText(int,int,const TQString &,int,int,TextDirection = Auto);
+ void drawText(const TQPoint &,const TQString &,int,int,
TextDirection = Auto);
%End
- void drawText(int,int,int,int,int,const QString &,int = -1,QRect * = 0);
- void drawText(const QRect &,int,const QString &,int = -1,QRect * = 0);
+ void drawText(int,int,int,int,int,const TQString &,int = -1,TQRect * = 0);
+ void drawText(const TQRect &,int,const TQString &,int = -1,TQRect * = 0);
- QRect boundingRect(int,int,int,int,int,const QString &,int = -1);
- QRect boundingRect(const QRect &,int,const QString &,int = -1);
+ TQRect boundingRect(int,int,int,int,int,const TQString &,int = -1);
+ TQRect boundingRect(const TQRect &,int,const TQString &,int = -1);
int tabStops() const;
void setTabStops(int);
@@ -670,7 +670,7 @@ public:
static void cleanup();
private:
- QPainter(const QPainter &);
+ TQPainter(const TQPainter &);
};
%End
diff --git a/sip/qt/qpair.sip b/sip/qt/qpair.sip
index 6064e22..a9a76a3 100644
--- a/sip/qt/qpair.sip
+++ b/sip/qt/qpair.sip
@@ -1,39 +1,39 @@
-// This is the SIP interface definition for all types based on the QPair
+// This is the SIP interface definition for all types based on the TQPair
// template.
//
// 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>QPair&lt;type,type&gt; (Qt v3+)</Title>
+<Sect2><Title>TQPair&lt;type,type&gt; (TQt v3+)</Title>
<Para>
-Types based on the <Literal>QPair</Literal> template are automatically
+Types based on the <Literal>TQPair</Literal> template are automatically
converted to and from Python tuples of two elements.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-%MappedType QPair<int,int>
+%MappedType TQPair<int,int>
{
%TypeHeaderCode
#include <qpair.h>
@@ -58,7 +58,7 @@ converted to and from Python tuples of two elements.
%End
%ConvertToTypeCode
- // Convert a Python tuple of integers to a QPair<int,int> on the heap.
+ // Convert a Python tuple of integers to a TQPair<int,int> on the heap.
if (sipIsErr == NULL)
return (PyTuple_Size(sipPy) == 2);
@@ -74,7 +74,7 @@ converted to and from Python tuples of two elements.
return 0;
}
- *sipCppPtr = new QPair<int,int>(fst,sec);
+ *sipCppPtr = new TQPair<int,int>(fst,sec);
return 1;
%End
diff --git a/sip/qt/qpalette.sip b/sip/qt/qpalette.sip
index ae7b94c..29d2581 100644
--- a/sip/qt/qpalette.sip
+++ b/sip/qt/qpalette.sip
@@ -1,51 +1,51 @@
-// This is the SIP interface definition for QPalette.
+// This is the SIP interface definition for TQPalette.
//
// 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>QPalette</Title>
+<Sect2><Title>TQPalette</Title>
<Para>
-<Literal>QPalette</Literal> is fully implemented, including the Python
+<Literal>TQPalette</Literal> is fully implemented, including the Python
<Literal>==</Literal> and <Literal>!=</Literal> operators.
</Para>
</Sect2>
%End
-class QPalette
+class TQPalette
{
%TypeHeaderCode
#include <qpalette.h>
%End
public:
- QPalette();
- QPalette(const QColor &);
-%If (Qt_2_00 -)
- QPalette(const QColor &,const QColor &);
+ TQPalette();
+ TQPalette(const TQColor &);
+%If (TQt_2_00 -)
+ TQPalette(const TQColor &,const TQColor &);
%End
- QPalette(const QColorGroup &,const QColorGroup &,const QColorGroup &);
- QPalette(const QPalette &);
+ TQPalette(const TQColorGroup &,const TQColorGroup &,const TQColorGroup &);
+ TQPalette(const TQPalette &);
-%If (Qt_2_00 - Qt_2_1_0)
+%If (TQt_2_00 - TQt_2_1_0)
enum ColorGroup {
Normal,
Disabled,
@@ -53,7 +53,7 @@ public:
NColorGroups
};
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
enum ColorGroup {
Normal,
Disabled,
@@ -63,40 +63,40 @@ public:
};
%End
-%If (Qt_2_00 -)
- const QColor &color(ColorGroup,QColorGroup::ColorRole) const;
- const QBrush &brush(ColorGroup,QColorGroup::ColorRole) const;
- void setColor(ColorGroup,QColorGroup::ColorRole,const QColor &);
- void setBrush(ColorGroup,QColorGroup::ColorRole,const QBrush &);
- void setColor(QColorGroup::ColorRole,const QColor &);
- void setBrush(QColorGroup::ColorRole,const QBrush &);
+%If (TQt_2_00 -)
+ const TQColor &color(ColorGroup,TQColorGroup::ColorRole) const;
+ const TQBrush &brush(ColorGroup,TQColorGroup::ColorRole) const;
+ void setColor(ColorGroup,TQColorGroup::ColorRole,const TQColor &);
+ void setBrush(ColorGroup,TQColorGroup::ColorRole,const TQBrush &);
+ void setColor(TQColorGroup::ColorRole,const TQColor &);
+ void setBrush(TQColorGroup::ColorRole,const TQBrush &);
%End
- QPalette copy() const;
+ TQPalette copy() const;
- const QColorGroup &active() const;
- const QColorGroup &disabled() const;
-%If (Qt_2_1_0 -)
- const QColorGroup &inactive() const;
+ const TQColorGroup &active() const;
+ const TQColorGroup &disabled() const;
+%If (TQt_2_1_0 -)
+ const TQColorGroup &inactive() const;
%End
- const QColorGroup &normal() const;
+ const TQColorGroup &normal() const;
- void setActive(const QColorGroup &);
- void setDisabled(const QColorGroup &);
-%If (Qt_2_1_0 -)
- void setInactive(const QColorGroup &);
+ void setActive(const TQColorGroup &);
+ void setDisabled(const TQColorGroup &);
+%If (TQt_2_1_0 -)
+ void setInactive(const TQColorGroup &);
%End
- void setNormal(const QColorGroup &);
+ void setNormal(const TQColorGroup &);
- bool operator==(const QPalette &) const;
- bool operator!=(const QPalette &) const;
+ bool operator==(const TQPalette &) const;
+ bool operator!=(const TQPalette &) const;
- bool isCopyOf(const QPalette &);
+ bool isCopyOf(const TQPalette &);
int serialNumber() const;
-%If (Qt_3_0_0 -)
- // These are defined in Qt3, but don't appear in the documentation.
- //static QColorGroup::ColorRole foregroundRoleFromMode(Qt::BackgroundMode);
- //static QColorGroup::ColorRole backgroundRoleFromMode(Qt::BackgroundMode);
+%If (TQt_3_0_0 -)
+ // These are defined in TQt3, but don't appear in the documentation.
+ //static TQColorGroup::ColorRole foregroundRoleFromMode(TQt::BackgroundMode);
+ //static TQColorGroup::ColorRole backgroundRoleFromMode(TQt::BackgroundMode);
%End
};
diff --git a/sip/qt/qpen.sip b/sip/qt/qpen.sip
index f59db98..87e5661 100644
--- a/sip/qt/qpen.sip
+++ b/sip/qt/qpen.sip
@@ -1,36 +1,36 @@
-// This is the SIP interface definition for QPen.
+// This is the SIP interface definition for TQPen.
//
// 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>QPen</Title>
+<Sect2><Title>TQPen</Title>
<Para>
-<Literal>QPen</Literal> is fully implemented, including the Python
+<Literal>TQPen</Literal> is fully implemented, including the Python
<Literal>==</Literal> and <Literal>!=</Literal> operators.
</Para>
</Sect2>
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
enum PenStyle {
NoPen,
@@ -42,60 +42,60 @@ enum PenStyle {
};
-class QPen
+class TQPen
{
%TypeHeaderCode
#include <qpen.h>
%End
public:
- QPen();
- QPen(PenStyle);
- QPen(const QColor &,uint = 0,PenStyle = SolidLine);
- QPen(const QPen &);
+ TQPen();
+ TQPen(PenStyle);
+ TQPen(const TQColor &,uint = 0,PenStyle = SolidLine);
+ TQPen(const TQPen &);
PenStyle style() const;
void setStyle(PenStyle);
uint width() const;
void setWidth(uint);
- const QColor &color() const;
- void setColor(const QColor &);
+ const TQColor &color() const;
+ void setColor(const TQColor &);
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QPen : Qt
+class TQPen : TQt
{
%TypeHeaderCode
#include <qpen.h>
%End
public:
- QPen();
- QPen(PenStyle);
- QPen(const QColor &,uint = 0,PenStyle = SolidLine);
-%If (Qt_2_1_0 -)
- QPen(const QColor &,uint,PenStyle,PenCapStyle,PenJoinStyle);
+ TQPen();
+ TQPen(PenStyle);
+ TQPen(const TQColor &,uint = 0,PenStyle = SolidLine);
+%If (TQt_2_1_0 -)
+ TQPen(const TQColor &,uint,PenStyle,PenCapStyle,PenJoinStyle);
%End
- QPen(const QPen &);
+ TQPen(const TQPen &);
PenStyle style() const;
void setStyle(PenStyle);
uint width() const;
void setWidth(uint);
- const QColor &color() const;
- void setColor(const QColor &);
-%If (Qt_2_1_0 -)
+ const TQColor &color() const;
+ void setColor(const TQColor &);
+%If (TQt_2_1_0 -)
PenCapStyle capStyle() const;
void setCapStyle(PenCapStyle);
PenJoinStyle joinStyle() const;
void setJoinStyle(PenJoinStyle);
%End
- bool operator==(const QPen &) const;
- bool operator!=(const QPen &) const;
+ bool operator==(const TQPen &) const;
+ bool operator!=(const TQPen &) const;
};
%End
diff --git a/sip/qt/qpicture.sip b/sip/qt/qpicture.sip
index dbeb309..014d7eb 100644
--- a/sip/qt/qpicture.sip
+++ b/sip/qt/qpicture.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QPicture.
+// This is the SIP interface definition for TQPicture.
//
// 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>QPicture</Title>
+<Sect2><Title>TQPicture</Title>
<FuncSynopsis>
<FuncDef>const char *<Function>data</Function></FuncDef>
<ParamDef></ParamDef>
@@ -43,68 +43,68 @@ as a parameter.
%End
-%If (Qt_PICTURE)
+%If (TQt_PICTURE)
-class QPicture : QPaintDevice
+class TQPicture : TQPaintDevice
{
%TypeHeaderCode
#include <qpicture.h>
%End
public:
-%If (- Qt_2_00)
- QPicture();
+%If (- TQt_2_00)
+ TQPicture();
%End
-%If (Qt_2_00 - Qt_3_0_0)
- QPicture(int = 0);
+%If (TQt_2_00 - TQt_3_0_0)
+ TQPicture(int = 0);
%End
-%If (Qt_3_0_0 -)
- QPicture(int = -1);
- QPicture(const QPicture &);
+%If (TQt_3_0_0 -)
+ TQPicture(int = -1);
+ TQPicture(const TQPicture &);
%End
bool isNull() const;
uint size() const;
// const char *data() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setData(const char * /Array/,uint /ArraySize/);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setData(const char * /Array/,uint /ArraySize/);
%End
- bool play(QPainter *);
+ bool play(TQPainter *);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
bool load(const char *);
bool save(const char *);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- bool load(const QString &);
- bool save(const QString &);
+%If (TQt_2_00 - TQt_3_0_0)
+ bool load(const TQString &);
+ bool save(const TQString &);
%End
-%If (Qt_3_0_0 -)
- bool load(QIODevice *,const char * = 0);
- bool load(const QString &,const char * = 0);
- bool save(QIODevice *,const char * = 0);
- bool save(const QString &,const char * = 0);
+%If (TQt_3_0_0 -)
+ bool load(TQIODevice *,const char * = 0);
+ bool load(const TQString &,const char * = 0);
+ bool save(TQIODevice *,const char * = 0);
+ bool save(const TQString &,const char * = 0);
- QRect boundingRect() const;
+ TQRect boundingRect() const;
%End
-%If (Qt_3_1_0 -)
- void setBoundingRect(const QRect &);
+%If (TQt_3_1_0 -)
+ void setBoundingRect(const TQRect &);
%End
protected:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void detach();
- QPicture copy() const;
+ TQPicture copy() const;
%End
private:
-%If (- Qt_3_0_0)
- QPicture(const QPicture &);
+%If (- TQt_3_0_0)
+ TQPicture(const TQPicture &);
%End
};
diff --git a/sip/qt/qpixmap.sip b/sip/qt/qpixmap.sip
index d00cd78..0ef4284 100644
--- a/sip/qt/qpixmap.sip
+++ b/sip/qt/qpixmap.sip
@@ -1,29 +1,29 @@
-// This is the SIP interface definition for QPixmap.
+// This is the SIP interface definition for TQPixmap.
//
// 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>QPixmap</Title>
+<Sect2><Title>TQPixmap</Title>
<FuncSynopsis>
- <FuncDef><Function>QPixmap</Function></FuncDef>
+ <FuncDef><Function>TQPixmap</Function></FuncDef>
<ParamDef>const char *<Parameter>xpm</Parameter>[]</ParamDef>
</FuncSynopsis>
<Para>
@@ -56,9 +56,9 @@ Not implemented.
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QPixmap : QPaintDevice
+class TQPixmap : TQPaintDevice
{
%TypeHeaderCode
#include <qpixmap.h>
@@ -72,62 +72,62 @@ public:
Mono
};
- QPixmap();
- QPixmap(int,int,int = -1);
- QPixmap(const QSize &,int = -1);
- QPixmap(const char *,const char * = 0,ColorMode = Auto);
- QPixmap(const char *,const char *,int);
+ TQPixmap();
+ TQPixmap(int,int,int = -1);
+ TQPixmap(const TQSize &,int = -1);
+ TQPixmap(const char *,const char * = 0,ColorMode = Auto);
+ TQPixmap(const char *,const char *,int);
- QPixmap(SIP_PYLIST) [(const char **)];
+ TQPixmap(SIP_PYLIST) [(const char **)];
%MethodCode
// The Python interface is a list of strings that make up the
// image.
const char **str;
- if ((str = PyQt_qt_ListToArray(a0)) == NULL)
+ if ((str = PyTQt_qt_ListToArray(a0)) == NULL)
sipIsErr = 1;
else
{
Py_BEGIN_ALLOW_THREADS
- sipCpp = new sipQPixmap(str);
+ sipCpp = new sipTQPixmap(str);
Py_END_ALLOW_THREADS
sipFree((ANY *)str);
}
%End
- QPixmap(const QPixmap &);
+ TQPixmap(const TQPixmap &);
bool isNull() const;
int width() const;
int height() const;
- QSize size() const;
- QRect rect() const;
+ TQSize size() const;
+ TQRect rect() const;
int depth() const;
static int defaultDepth();
- void fill(const QColor & = white);
- void fill(const QWidget *,int,int);
- void fill(const QWidget *,const QPoint &);
+ void fill(const TQColor & = white);
+ void fill(const TQWidget *,int,int);
+ void fill(const TQWidget *,const TQPoint &);
void resize(int,int);
- void resize(const QSize &);
- const QBitmap *mask() const;
- void setMask(const QBitmap &);
+ void resize(const TQSize &);
+ const TQBitmap *mask() const;
+ void setMask(const TQBitmap &);
bool selfMask() const;
- QBitmap createHeuristicMask(bool = 1) const;
- static QPixmap grabWindow(WId,int = 0,int = 0,int = -1,int = -1);
- QPixmap xForm(const QWMatrix &) const;
- static QWMatrix trueMatrix(const QWMatrix &,int,int);
- QImage convertToImage() const;
- bool convertFromImage(const QImage &,ColorMode = Auto);
- bool convertFromImage(const QImage &,int);
+ TQBitmap createHeuristicMask(bool = 1) const;
+ static TQPixmap grabWindow(WId,int = 0,int = 0,int = -1,int = -1);
+ TQPixmap xForm(const TQWMatrix &) const;
+ static TQWMatrix trueMatrix(const TQWMatrix &,int,int);
+ TQImage convertToImage() const;
+ bool convertFromImage(const TQImage &,ColorMode = Auto);
+ bool convertFromImage(const TQImage &,int);
static const char *imageFormat(const char *);
bool load(const char *,const char * = 0,ColorMode = Auto);
bool load(const char *,const char *,int);
bool loadFromData(const uchar * /Array/,uint /ArraySize/,
const char * = 0,ColorMode = Auto);
// bool loadFromData(const uchar *,uint,const char *,int);
- bool loadFromData(QByteArray,const char * = 0,int = 0);
+ bool loadFromData(TQByteArray,const char * = 0,int = 0);
bool save(const char *,const char *) const;
int serialNumber() const;
@@ -143,17 +143,17 @@ public:
static Optimization defaultOptimization();
static void setDefaultOptimization(Optimization);
virtual void detach();
- bool isQBitmap() const;
+ bool isTQBitmap() const;
protected:
- QPixmap(int,int,const uchar *,bool);
+ TQPixmap(int,int,const uchar *,bool);
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QPixmap : QPaintDevice, Qt
+class TQPixmap : TQPaintDevice, TQt
{
%TypeHeaderCode
#include <qpixmap.h>
@@ -176,90 +176,90 @@ public:
BestOptim
};
- QPixmap();
-%If (Qt_3_0_0 -)
- QPixmap(const QImage &);
+ TQPixmap();
+%If (TQt_3_0_0 -)
+ TQPixmap(const TQImage &);
%End
- QPixmap(int,int,int = -1,Optimization = DefaultOptim);
- QPixmap(const QSize &,int = -1,Optimization = DefaultOptim);
- QPixmap(const QString &,const char * = 0,ColorMode = Auto);
- QPixmap(const QString &,const char *,int);
+ TQPixmap(int,int,int = -1,Optimization = DefaultOptim);
+ TQPixmap(const TQSize &,int = -1,Optimization = DefaultOptim);
+ TQPixmap(const TQString &,const char * = 0,ColorMode = Auto);
+ TQPixmap(const TQString &,const char *,int);
- QPixmap(SIP_PYLIST) [(const char **)];
+ TQPixmap(SIP_PYLIST) [(const char **)];
%MethodCode
// The Python interface is a list of strings that make up the
// image.
const char **str;
- if ((str = PyQt_qt_ListToArray(a0)) == NULL)
+ if ((str = PyTQt_qt_ListToArray(a0)) == NULL)
sipIsErr = 1;
else
{
Py_BEGIN_ALLOW_THREADS
- sipCpp = new sipQPixmap(str);
+ sipCpp = new sipTQPixmap(str);
Py_END_ALLOW_THREADS
sipFree((ANY *)str);
}
%End
- QPixmap(const QByteArray &);
- QPixmap(const QPixmap &);
+ TQPixmap(const TQByteArray &);
+ TQPixmap(const TQPixmap &);
bool isNull() const;
int width() const;
int height() const;
- QSize size() const;
- QRect rect() const;
+ TQSize size() const;
+ TQRect rect() const;
int depth() const;
static int defaultDepth();
- void fill(const QColor & = Qt::white);
- void fill(const QWidget *,int,int);
- void fill(const QWidget *,const QPoint &);
+ void fill(const TQColor & = TQt::white);
+ void fill(const TQWidget *,int,int);
+ void fill(const TQWidget *,const TQPoint &);
void resize(int,int);
- void resize(const QSize &);
- const QBitmap *mask() const;
- void setMask(const QBitmap &);
+ void resize(const TQSize &);
+ const TQBitmap *mask() const;
+ void setMask(const TQBitmap &);
bool selfMask() const;
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
bool hasAlpha() const;
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
bool hasAlphaChannel() const;
%End
- QBitmap createHeuristicMask(bool = 1) const;
-%If (Qt_3_1_0 -)
- static QPixmap fromMimeSource(const QString &);
+ TQBitmap createHeuristicMask(bool = 1) const;
+%If (TQt_3_1_0 -)
+ static TQPixmap fromMimeSource(const TQString &);
%End
- static QPixmap grabWindow(WId,int = 0,int = 0,int = -1,int = -1);
-%If (Qt_2_1_0 -)
- static QPixmap grabWidget(QWidget *,int = 0,int = 0,int = -1,int = -1);
+ static TQPixmap grabWindow(WId,int = 0,int = 0,int = -1,int = -1);
+%If (TQt_2_1_0 -)
+ static TQPixmap grabWidget(TQWidget *,int = 0,int = 0,int = -1,int = -1);
%End
- QPixmap xForm(const QWMatrix &) const;
- static QWMatrix trueMatrix(const QWMatrix &,int,int);
- QImage convertToImage() const;
- bool convertFromImage(const QImage &,ColorMode = Auto);
- bool convertFromImage(const QImage &,int);
- static const char *imageFormat(const QString &);
- bool load(const QString &,const char * = 0,ColorMode = Auto);
- bool load(const QString &,const char *,int);
+ TQPixmap xForm(const TQWMatrix &) const;
+ static TQWMatrix trueMatrix(const TQWMatrix &,int,int);
+ TQImage convertToImage() const;
+ bool convertFromImage(const TQImage &,ColorMode = Auto);
+ bool convertFromImage(const TQImage &,int);
+ static const char *imageFormat(const TQString &);
+ bool load(const TQString &,const char * = 0,ColorMode = Auto);
+ bool load(const TQString &,const char *,int);
bool loadFromData(const uchar * /Array/,uint /ArraySize/,
const char * = 0,ColorMode = Auto);
// bool loadFromData(const uchar *,uint,const char *,int);
- bool loadFromData(QByteArray,const char * = 0,int = 0);
-%If (- Qt_3_0_0)
- bool save(const QString &,const char *) const;
+ bool loadFromData(TQByteArray,const char * = 0,int = 0);
+%If (- TQt_3_0_0)
+ bool save(const TQString &,const char *) const;
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
- bool save(const QString &,const char *,int) const;
+%If (TQt_2_2_0 - TQt_3_0_0)
+ bool save(const TQString &,const char *,int) const;
%End
-%If (Qt_3_0_0 -)
- bool save(const QString &,const char *,int = -1) const;
+%If (TQt_3_0_0 -)
+ bool save(const TQString &,const char *,int = -1) const;
%End
-%If (Qt_3_2_0 -)
- bool save(QIODevice *,const char *,int = -1) const;
+%If (TQt_3_2_0 -)
+ bool save(TQIODevice *,const char *,int = -1) const;
%End
int serialNumber() const;
Optimization optimization() const;
@@ -267,9 +267,9 @@ public:
static Optimization defaultOptimization();
static void setDefaultOptimization(Optimization);
virtual void detach();
- bool isQBitmap() const;
+ bool isTQBitmap() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
%If (WS_X11)
static int x11SetDefaultScreen(int);
void x11SetScreen(int);
@@ -277,12 +277,12 @@ public:
%End
protected:
- QPixmap(int,int,const uchar *,bool);
+ TQPixmap(int,int,const uchar *,bool);
};
%End
-%If (Qt_3_2_0 -)
-void copyBlt(QPixmap *,int,int,const QPixmap *,int = 0,int = 0,int = -1,
+%If (TQt_3_2_0 -)
+void copyBlt(TQPixmap *,int,int,const TQPixmap *,int = 0,int = 0,int = -1,
int = -1);
%End
diff --git a/sip/qt/qpixmapcache.sip b/sip/qt/qpixmapcache.sip
index 5e8e066..089296d 100644
--- a/sip/qt/qpixmapcache.sip
+++ b/sip/qt/qpixmapcache.sip
@@ -1,37 +1,37 @@
-// This is the SIP interface definition for QPixmapCache.
+// This is the SIP interface definition for TQPixmapCache.
//
// 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>QPixmapCache (Qt v3+)</Title>
+<Sect2><Title>TQPixmapCache (TQt v3+)</Title>
<Para>
-<Literal>QPixmapCache</Literal> is fully implemented.
+<Literal>TQPixmapCache</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QPixmapCache
+class TQPixmapCache
{
%TypeHeaderCode
#include <qpixmapcache.h>
@@ -40,12 +40,12 @@ class QPixmapCache
public:
static int cacheLimit();
static void setCacheLimit(int);
- static QPixmap *find(const QString &);
- static bool find(const QString &,QPixmap &);
-// static bool insert(const QString &,QPixmap *);
- static bool insert(const QString &,const QPixmap &);
-%If (Qt_3_2_0 -)
- static void remove(const QString &);
+ static TQPixmap *find(const TQString &);
+ static bool find(const TQString &,TQPixmap &);
+// static bool insert(const TQString &,TQPixmap *);
+ static bool insert(const TQString &,const TQPixmap &);
+%If (TQt_3_2_0 -)
+ static void remove(const TQString &);
%End
static void clear();
};
diff --git a/sip/qt/qplatinumstyle.sip b/sip/qt/qplatinumstyle.sip
index 5392eea..6d223d5 100644
--- a/sip/qt/qplatinumstyle.sip
+++ b/sip/qt/qplatinumstyle.sip
@@ -1,30 +1,30 @@
-// This is the SIP interface definition for QPlatinumStyle.
+// This is the SIP interface definition for TQPlatinumStyle.
//
// 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>QPlatinumStyle (Qt v2+)</Title>
+<Sect2><Title>TQPlatinumStyle (TQt v2+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>sb</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
@@ -34,107 +34,107 @@
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
-(Qt v2)
+(TQt v2)
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
-%If (Qt_STYLE_PLATINUM)
+%If (TQt_2_00 -)
+%If (TQt_STYLE_PLATINUM)
-class QPlatinumStyle : QWindowsStyle
+class TQPlatinumStyle : TQWindowsStyle
{
%TypeHeaderCode
#include <qplatinumstyle.h>
%End
public:
- QPlatinumStyle();
+ TQPlatinumStyle();
-%If (- Qt_3_0_0)
- void drawPopupPanel(QPainter *,int,int,int,int,const QColorGroup &,
- int = 2,const QBrush * = 0);
- void drawButton(QPainter *,int,int,int,int,const QColorGroup &,bool = 0,
- const QBrush * = 0);
- QRect buttonRect(int,int,int,int);
- void drawBevelButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,const QBrush * = 0);
- void drawPushButton(QPushButton *,QPainter *);
- void drawPushButtonLabel(QPushButton *,QPainter *);
+%If (- TQt_3_0_0)
+ void drawPopupPanel(TQPainter *,int,int,int,int,const TQColorGroup &,
+ int = 2,const TQBrush * = 0);
+ void drawButton(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
+ const TQBrush * = 0);
+ TQRect buttonRect(int,int,int,int);
+ void drawBevelButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,const TQBrush * = 0);
+ void drawPushButton(TQPushButton *,TQPainter *);
+ void drawPushButtonLabel(TQPushButton *,TQPainter *);
- void scrollBarMetrics(const QScrollBar *,int &,int &,int &,int &);
+ void scrollBarMetrics(const TQScrollBar *,int &,int &,int &,int &);
- void drawScrollBarControls(QPainter *,const QScrollBar *,int,uint,uint);
- ScrollControl scrollBarPointOver(const QScrollBar *,int,const QPoint &);
- QSize indicatorSize() const;
- void drawIndicator(QPainter *,int,int,int,int,const QColorGroup &,int,
+ void drawScrollBarControls(TQPainter *,const TQScrollBar *,int,uint,uint);
+ ScrollControl scrollBarPointOver(const TQScrollBar *,int,const TQPoint &);
+ TQSize indicatorSize() const;
+ void drawIndicator(TQPainter *,int,int,int,int,const TQColorGroup &,int,
bool = 0,bool = 1);
- void drawIndicatorMask(QPainter *,int,int,int,int,int);
- QSize exclusiveIndicatorSize() const;
- void drawExclusiveIndicator(QPainter *,int,int,int,int,
- const QColorGroup &,bool,bool = 0,bool = 1);
- void drawComboButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,bool = 0,bool = 1,const QBrush * = 0);
- QRect comboButtonRect(int,int,int,int);
- QRect comboButtonFocusRect(int,int,int,int);
+ void drawIndicatorMask(TQPainter *,int,int,int,int,int);
+ TQSize exclusiveIndicatorSize() const;
+ void drawExclusiveIndicator(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool,bool = 0,bool = 1);
+ void drawComboButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,bool = 0,bool = 1,const TQBrush * = 0);
+ TQRect comboButtonRect(int,int,int,int);
+ TQRect comboButtonFocusRect(int,int,int,int);
int sliderLength() const;
- void drawSlider(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawSlider(TQPainter *,int,int,int,int,const TQColorGroup &,
Orientation,bool,bool);
- void drawSliderMask(QPainter *,int,int,int,int,Orientation,bool,bool);
- void drawSliderGroove(QPainter *,int,int,int,int,const QColorGroup &,
- QCOORD,Orientation);
+ void drawSliderMask(TQPainter *,int,int,int,int,Orientation,bool,bool);
+ void drawSliderGroove(TQPainter *,int,int,int,int,const TQColorGroup &,
+ TQCOORD,Orientation);
int maximumSliderDragDistance() const;
- void drawCheckMark(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawCheckMark(TQPainter *,int,int,int,int,const TQColorGroup &,
bool,bool);
- void polishPopupMenu(QPopupMenu *);
- int extraPopupMenuItemWidth(bool,int,QMenuItem *,const QFontMetrics &);
- int popupMenuItemHeight(bool,QMenuItem *,const QFontMetrics &);
- void drawPopupMenuItem(QPainter *,bool,int,int,QMenuItem *,
- const QPalette &,bool,bool,int,int,int,int);
+ void polishPopupMenu(TQPopupMenu *);
+ int extraPopupMenuItemWidth(bool,int,TQMenuItem *,const TQFontMetrics &);
+ int popupMenuItemHeight(bool,TQMenuItem *,const TQFontMetrics &);
+ void drawPopupMenuItem(TQPainter *,bool,int,int,TQMenuItem *,
+ const TQPalette &,bool,bool,int,int,int,int);
%End
-%If (Qt_3_0_0 -)
- void drawPrimitive(PrimitiveElement,QPainter *,const QRect &,
- const QColorGroup &,SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const;
+%If (TQt_3_0_0 -)
+ void drawPrimitive(PrimitiveElement,TQPainter *,const TQRect &,
+ const TQColorGroup &,SFlags = Style_Default,
+ const TQStyleOption & = TQStyleOption()) const;
- void drawControl(ControlElement,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ void drawControl(ControlElement,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- void drawComplexControl(ComplexControl,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ void drawComplexControl(ComplexControl,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,SCFlags = SC_All,
SCFlags = SC_None,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- QRect querySubControlMetrics(ComplexControl,const QWidget *,SubControl,
- const QStyleOption & = QStyleOption()) const;
+ TQRect querySubControlMetrics(ComplexControl,const TQWidget *,SubControl,
+ const TQStyleOption & = TQStyleOption()) const;
- int pixelMetric(PixelMetric,const QWidget * = 0) const;
+ int pixelMetric(PixelMetric,const TQWidget * = 0) const;
- QRect subRect(SubRect,const QWidget *) const;
+ TQRect subRect(SubRect,const TQWidget *) const;
%End
protected:
-%If (- Qt_3_0_0)
- void drawScrollBarBackground(QPainter *,int,int,int,int,
- const QColorGroup &,bool,
- const QBrush * = 0);
+%If (- TQt_3_0_0)
+ void drawScrollBarBackground(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool,
+ const TQBrush * = 0);
%End
- QColor mixedColor(const QColor &,const QColor &) const;
-%If (- Qt_3_0_0)
- void drawRiffles(QPainter *,int,int,int,int,const QColorGroup &,bool);
+ TQColor mixedColor(const TQColor &,const TQColor &) const;
+%If (- TQt_3_0_0)
+ void drawRiffles(TQPainter *,int,int,int,int,const TQColorGroup &,bool);
%End
-%If (Qt_3_0_0 -)
- void drawRiffles(QPainter *,int,int,int,int,const QColorGroup &,
+%If (TQt_3_0_0 -)
+ void drawRiffles(TQPainter *,int,int,int,int,const TQColorGroup &,
bool) const;
%End
private:
-%If (Qt_3_0_0 -)
- QPlatinumStyle(const QPlatinumStyle &);
+%If (TQt_3_0_0 -)
+ TQPlatinumStyle(const TQPlatinumStyle &);
%End
};
diff --git a/sip/qt/qpoint.sip b/sip/qt/qpoint.sip
index 5265d57..68c6561 100644
--- a/sip/qt/qpoint.sip
+++ b/sip/qt/qpoint.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QPoint.
+// This is the SIP interface definition for TQPoint.
//
// 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>QPoint</Title>
+<Sect2><Title>TQPoint</Title>
<Para>
The Python
<Literal>+</Literal>, <Literal>+=</Literal>,
@@ -33,7 +33,7 @@ operators are supported.
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rx</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rx</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -41,7 +41,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>ry</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>ry</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -51,50 +51,50 @@ Not implemented.
%End
-class QPoint
+class TQPoint
{
%TypeHeaderCode
#include <qpoint.h>
%End
public:
- QPoint();
- QPoint(int,int);
+ TQPoint();
+ TQPoint(int,int);
bool isNull() const;
int x() const;
int y() const;
void setX(int);
void setY(int);
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
int manhattanLength() const;
%End
-// QCOORD &rx();
-// QCOORD &ry();
+// TQCOORD &rx();
+// TQCOORD &ry();
- QPoint &operator+=(const QPoint &);
- QPoint &operator-=(const QPoint &);
- QPoint &operator*=(int /Constrained/);
- QPoint &operator*=(double);
- QPoint &operator/=(int /Constrained/);
- QPoint &operator/=(double);
+ TQPoint &operator+=(const TQPoint &);
+ TQPoint &operator-=(const TQPoint &);
+ TQPoint &operator*=(int /Constrained/);
+ TQPoint &operator*=(double);
+ TQPoint &operator/=(int /Constrained/);
+ TQPoint &operator/=(double);
int __nonzero__();
%MethodCode
sipRes = !sipCpp -> isNull();
%End
- const QPoint __neg__();
+ const TQPoint __neg__();
%MethodCode
- sipRes = new QPoint(-(*sipCpp));
+ sipRes = new TQPoint(-(*sipCpp));
%End
};
-bool operator==(const QPoint &,const QPoint &);
-bool operator!=(const QPoint &,const QPoint &);
-const QPoint operator+(const QPoint &,const QPoint &);
-const QPoint operator-(const QPoint &,const QPoint &);
-const QPoint operator*(const QPoint &,int /Constrained/);
-const QPoint operator*(const QPoint &,double);
-const QPoint operator/(const QPoint &,int /Constrained/);
-const QPoint operator/(const QPoint &,double);
+bool operator==(const TQPoint &,const TQPoint &);
+bool operator!=(const TQPoint &,const TQPoint &);
+const TQPoint operator+(const TQPoint &,const TQPoint &);
+const TQPoint operator-(const TQPoint &,const TQPoint &);
+const TQPoint operator*(const TQPoint &,int /Constrained/);
+const TQPoint operator*(const TQPoint &,double);
+const TQPoint operator/(const TQPoint &,int /Constrained/);
+const TQPoint operator/(const TQPoint &,double);
diff --git a/sip/qt/qpointarray.sip b/sip/qt/qpointarray.sip
index c88b56b..f0daeea 100644
--- a/sip/qt/qpointarray.sip
+++ b/sip/qt/qpointarray.sip
@@ -1,31 +1,31 @@
-// This is the SIP interface definition for QPointArray.
+// This is the SIP interface definition for TQPointArray.
//
// 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>QPointArray</Title>
+<Sect2><Title>TQPointArray</Title>
<FuncSynopsis>
- <FuncDef><Function>QPointArray</Function></FuncDef>
+ <FuncDef><Function>TQPointArray</Function></FuncDef>
<ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
- <ParamDef>const QCOORD *<Parameter>points</Parameter></ParamDef>
+ <ParamDef>const TQCOORD *<Parameter>points</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes a single parameter which is a list of points.
@@ -46,7 +46,7 @@ This takes the single parameter <Literal>i</Literal> and returns the
<FuncDef>bool <Function>putPoints</Function></FuncDef>
<ParamDef>int <Parameter>index</Parameter></ParamDef>
<ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
- <ParamDef>const QCOORD *<Parameter>points</Parameter></ParamDef>
+ <ParamDef>const TQCOORD *<Parameter>points</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes two parameters, <Literal>index</Literal> and a list of points.
@@ -67,7 +67,7 @@ Not implemented.
<FuncSynopsis>
<FuncDef>bool <Function>setPoints</Function></FuncDef>
<ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
- <ParamDef>const QCOORD *<Parameter>points</Parameter></ParamDef>
+ <ParamDef>const TQCOORD *<Parameter>points</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This takes a single parameter which is a list of points.
@@ -87,20 +87,20 @@ Not implemented.
%End
-class QPointArray
+class TQPointArray
{
%TypeHeaderCode
#include <qpointarray.h>
%End
%TypeCode
-// Convert a list of numbers to an array on QCOORDs on the heap.
+// Convert a list of numbers to an array on TQCOORDs on the heap.
-static QCOORD *getPoints(int nrpnts,PyObject *pntlist)
+static TQCOORD *getPoints(int nrpnts,PyObject *pntlist)
{
- QCOORD *pnts, *pp;
+ TQCOORD *pnts, *pp;
- if ((pnts = (QCOORD *)sipMalloc(nrpnts * sizeof (QCOORD))) == NULL)
+ if ((pnts = (TQCOORD *)sipMalloc(nrpnts * sizeof (TQCOORD))) == NULL)
return NULL;
// Convert the list.
@@ -109,7 +109,7 @@ static QCOORD *getPoints(int nrpnts,PyObject *pntlist)
for (int i = 0; i < nrpnts; ++i)
{
- *pp++ = (QCOORD)PyInt_AsLong(PyList_GetItem(pntlist,i));
+ *pp++ = (TQCOORD)PyInt_AsLong(PyList_GetItem(pntlist,i));
if (PyErr_Occurred() != NULL)
{
@@ -123,17 +123,17 @@ static QCOORD *getPoints(int nrpnts,PyObject *pntlist)
%End
public:
- QPointArray();
- QPointArray(int);
- QPointArray(const QPointArray &);
- QPointArray(const QRect &,bool = 0);
+ TQPointArray();
+ TQPointArray(int);
+ TQPointArray(const TQPointArray &);
+ TQPointArray(const TQRect &,bool = 0);
- QPointArray(SIP_PYLIST) [(int,const QCOORD *)];
+ TQPointArray(SIP_PYLIST) [(int,const TQCOORD *)];
%MethodCode
- // The Python interface is a list of QCOORDs.
+ // The Python interface is a list of TQCOORDs.
int nrpnts;
- QCOORD *pnts;
+ TQCOORD *pnts;
nrpnts = PyList_GET_SIZE(a0);
@@ -141,31 +141,31 @@ public:
sipIsErr = 1;
else
{
- // No wrapper class for QPointArray.
+ // No wrapper class for TQPointArray.
Py_BEGIN_ALLOW_THREADS
- sipCpp = new QPointArray(nrpnts / 2,pnts);
+ sipCpp = new TQPointArray(nrpnts / 2,pnts);
Py_END_ALLOW_THREADS
sipFree((ANY *)pnts);
}
%End
- QPointArray copy() const;
+ TQPointArray copy() const;
void translate(int,int);
- QRect boundingRect() const;
+ TQRect boundingRect() const;
void point(uint,int *,int *) const;
// This is hidden by the above. It would probably be better to remove
// the one above, but that would break backwards compatibility.
- //QPoint point(uint) const;
+ //TQPoint point(uint) const;
void setPoint(uint,int,int);
- void setPoint(uint,const QPoint &);
+ void setPoint(uint,const TQPoint &);
bool setPoints(SIP_PYLIST);
%MethodCode
int nrpnts;
- QCOORD *pnts;
+ TQCOORD *pnts;
nrpnts = PyList_GET_SIZE(a0);
@@ -186,7 +186,7 @@ public:
bool putPoints(int,SIP_PYLIST);
%MethodCode
int nrpnts;
- QCOORD *pnts;
+ TQCOORD *pnts;
nrpnts = PyList_GET_SIZE(a1);
@@ -203,29 +203,29 @@ public:
%End
// bool putPoints(int,int,int,int,...);
-%If (Qt_3_0_0 -)
- bool putPoints(int,int,const QPointArray &,int = 0);
+%If (TQt_3_0_0 -)
+ bool putPoints(int,int,const TQPointArray &,int = 0);
%End
-%If (- Qt_2_00)
- QPoint at(uint) const;
+%If (- TQt_2_00)
+ TQPoint at(uint) const;
%End
void makeArc(int,int,int,int,int,int);
void makeEllipse(int,int,int,int);
-%If (Qt_TRANSFORMATIONS)
-%If (Qt_2_00 -)
- void makeArc(int,int,int,int,int,int,const QWMatrix &);
+%If (TQt_TRANSFORMATIONS)
+%If (TQt_2_00 -)
+ void makeArc(int,int,int,int,int,int,const TQWMatrix &);
%End
%End
-%If (- Qt_3_0_0)
- QPointArray quadBezier() const;
+%If (- TQt_3_0_0)
+ TQPointArray quadBezier() const;
%End
-%If (Qt_3_0_0 -)
- QPointArray cubicBezier() const;
+%If (TQt_3_0_0 -)
+ TQPointArray cubicBezier() const;
%End
- // These are actually in QArray, which isn't implemented so pretend
+ // These are actually in TQArray, which isn't implemented so pretend
// they are here.
uint nrefs() const;
@@ -234,14 +234,14 @@ public:
bool resize(uint);
uint size() const;
bool truncate(uint);
- bool fill(const QPoint &,int = -1);
-%If (Qt_2_00 -)
- QPoint &at(uint) const;
+ bool fill(const TQPoint &,int = -1);
+%If (TQt_2_00 -)
+ TQPoint &at(uint) const;
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void sort();
- int bsearch(const QPoint &) const;
+ int bsearch(const TQPoint &) const;
%End
- int find(const QPoint &,uint = 0) const;
- int contains(const QPoint &) const;
+ int find(const TQPoint &,uint = 0) const;
+ int contains(const TQPoint &) const;
};
diff --git a/sip/qt/qpopupmenu.sip b/sip/qt/qpopupmenu.sip
index 08366b4..067e8cd 100644
--- a/sip/qt/qpopupmenu.sip
+++ b/sip/qt/qpopupmenu.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QPopupMenu.
+// This is the SIP interface definition for TQPopupMenu.
//
// 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>QPopupMenu</Title>
+<Sect2><Title>TQPopupMenu</Title>
<FuncSynopsis>
<FuncDef>int <Function>exec</Function></FuncDef>
<ParamDef></ParamDef>
@@ -34,12 +34,12 @@ This method also causes ownership of the underlying C++ menu to be transfered
to Python. This means that the C++ menu will be deleted when the Python
wrapper is garbage collected. Although this is a little inconsistent, it
ensures that the menu is deleted without having to explicity code it using
-<Literal>QObject.deleteLater()</Literal> or other techniques.
+<Literal>TQObject.deleteLater()</Literal> or other techniques.
</Para>
<FuncSynopsis>
<FuncDef>int <Function>exec</Function></FuncDef>
- <ParamDef>const QPoint &<Parameter>pos</Parameter></ParamDef>
+ <ParamDef>const TQPoint &<Parameter>pos</Parameter></ParamDef>
<ParamDef>int <Parameter>indexAtPoint</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -50,69 +50,69 @@ This method also causes ownership of the underlying C++ menu to be transfered
to Python. This means that the C++ menu will be deleted when the Python
wrapper is garbage collected. Although this is a little inconsistent, it
ensures that the menu is deleted without having to explicity code it using
-<Literal>QObject.deleteLater()</Literal> or other techniques.
+<Literal>TQObject.deleteLater()</Literal> or other techniques.
</Para>
</Sect2>
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QPopupMenu : QTableView, QMenuData
+class TQPopupMenu : TQTableView, TQMenuData
{
%TypeHeaderCode
#include <qpopupmenu.h>
%End
public:
- QPopupMenu(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQPopupMenu(TQWidget * /TransferThis/ = 0,const char * = 0);
- void popup(const QPoint &,int = 0);
+ void popup(const TQPoint &,int = 0);
void updateItem(int);
void setCheckable(bool);
bool isCheckable() const;
- void setFont(const QFont &);
+ void setFont(const TQFont &);
void show();
void hide();
int exec() /PyName=exec_loop, ReleaseGIL,
- PreHook=__pyQtPreEventLoopHook__,
- PostHook=__pyQtPostEventLoopHook__/;
+ PreHook=__pyTQtPreEventLoopHook__,
+ PostHook=__pyTQtPostEventLoopHook__/;
%MethodCode
// Transfer ownership back to Python (a modal menu will
// probably have the main window as it's parent). This means
- // the Qt menu will be deleted when the Python wrapper is
+ // the TQt menu will be deleted when the Python wrapper is
// garbage collected. Although this is a little inconsistent,
// it saves having to code it explicitly to avoid the memory
// leak.
sipTransferBack(sipSelf);
Py_BEGIN_ALLOW_THREADS
- sipRes = sipCpp->QPopupMenu::exec();
+ sipRes = sipCpp->TQPopupMenu::exec();
Py_END_ALLOW_THREADS
%End
- int exec(const QPoint &,int = 0) /PyName=exec_loop, ReleaseGIL,
- PreHook=__pyQtPreEventLoopHook__,
- PostHook=__pyQtPostEventLoopHook__/;
+ int exec(const TQPoint &,int = 0) /PyName=exec_loop, ReleaseGIL,
+ PreHook=__pyTQtPreEventLoopHook__,
+ PostHook=__pyTQtPostEventLoopHook__/;
%MethodCode
// Transfer ownership back to Python (a modal menu will
// probably have the main window as it's parent). This means
- // the Qt menu will be deleted when the Python wrapper is
+ // the TQt menu will be deleted when the Python wrapper is
// garbage collected. Although this is a little inconsistent,
// it saves having to code it explicitly to avoid the memory
// leak.
sipTransferBack(sipSelf);
Py_BEGIN_ALLOW_THREADS
- sipRes = sipCpp->QPopupMenu::exec(*a0,a1);
+ sipRes = sipCpp->TQPopupMenu::exec(*a0,a1);
Py_END_ALLOW_THREADS
%End
void setActiveItem(int);
int idAt(int) const;
-%If (Qt_1_43 -)
- int idAt(const QPoint &) const;
+%If (TQt_1_43 -)
+ int idAt(const TQPoint &) const;
%End
signals:
@@ -125,103 +125,103 @@ signals:
protected:
int cellHeight(int);
int cellWidth(int);
- void paintCell(QPainter *,int,int);
- void paintEvent(QPaintEvent *);
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
- void keyPressEvent(QKeyEvent *);
- void timerEvent(QTimerEvent *);
+ void paintCell(TQPainter *,int,int);
+ void paintEvent(TQPaintEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void timerEvent(TQTimerEvent *);
private:
- QPopupMenu(const QPopupMenu &);
+ TQPopupMenu(const TQPopupMenu &);
void menuContentsChanged();
void menuStateChanged();
- void menuInsPopup(QPopupMenu *);
- void menuDelPopup(QPopupMenu *);
+ void menuInsPopup(TQPopupMenu *);
+ void menuDelPopup(TQPopupMenu *);
void frameChanged();
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QPopupMenu : QFrame, QMenuData
+class TQPopupMenu : TQFrame, TQMenuData
{
%TypeHeaderCode
#include <qpopupmenu.h>
%End
public:
- QPopupMenu(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQPopupMenu(TQWidget * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_3_0_5)
- void popup(const QPoint &,int = 0);
+%If (- TQt_3_0_5)
+ void popup(const TQPoint &,int = 0);
%End
-%If (Qt_3_0_5 -)
- void popup(const QPoint &,int = -1);
+%If (TQt_3_0_5 -)
+ void popup(const TQPoint &,int = -1);
%End
void updateItem(int);
virtual void setCheckable(bool);
bool isCheckable() const;
- void setFont(const QFont &);
+ void setFont(const TQFont &);
void show();
void hide();
int exec() /PyName=exec_loop, ReleaseGIL,
- PreHook=__pyQtPreEventLoopHook__,
- PostHook=__pyQtPostEventLoopHook__/;
+ PreHook=__pyTQtPreEventLoopHook__,
+ PostHook=__pyTQtPostEventLoopHook__/;
%MethodCode
// Transfer ownership back to Python (a modal menu will
// probably have the main window as it's parent). This means
- // the Qt menu will be deleted when the Python wrapper is
+ // the TQt menu will be deleted when the Python wrapper is
// garbage collected. Although this is a little inconsistent,
// it saves having to code it explicitly to avoid the memory
// leak.
sipTransferBack(sipSelf);
Py_BEGIN_ALLOW_THREADS
- sipRes = sipCpp->QPopupMenu::exec();
+ sipRes = sipCpp->TQPopupMenu::exec();
Py_END_ALLOW_THREADS
%End
- int exec(const QPoint &,int = 0) /PyName=exec_loop, ReleaseGIL,
- PreHook=__pyQtPreEventLoopHook__,
- PostHook=__pyQtPostEventLoopHook__/;
+ int exec(const TQPoint &,int = 0) /PyName=exec_loop, ReleaseGIL,
+ PreHook=__pyTQtPreEventLoopHook__,
+ PostHook=__pyTQtPostEventLoopHook__/;
%MethodCode
// Transfer ownership back to Python (a modal menu will
// probably have the main window as it's parent). This means
- // the Qt menu will be deleted when the Python wrapper is
+ // the TQt menu will be deleted when the Python wrapper is
// garbage collected. Although this is a little inconsistent,
// it saves having to code it explicitly to avoid the memory
// leak.
sipTransferBack(sipSelf);
Py_BEGIN_ALLOW_THREADS
- sipRes = sipCpp->QPopupMenu::exec(*a0,a1);
+ sipRes = sipCpp->TQPopupMenu::exec(*a0,a1);
Py_END_ALLOW_THREADS
%End
virtual void setActiveItem(int);
- QSize sizeHint() const;
+ TQSize sizeHint() const;
int idAt(int) const;
- int idAt(const QPoint &) const;
+ int idAt(const TQPoint &) const;
bool customWhatsThis() const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
int insertTearOffHandle(int = -1,int = -1);
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
void activateItemAt(int);
%End
-%If (Qt_3_0_0 -)
- QRect itemGeometry(int);
+%If (TQt_3_0_0 -)
+ TQRect itemGeometry(int);
%End
signals:
@@ -230,52 +230,52 @@ signals:
void activatedRedirect(int);
void highlightedRedirect(int);
void aboutToShow();
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
void aboutToHide();
%End
protected:
int itemHeight(int) const;
- int itemHeight(QMenuItem *) const;
- void drawItem(QPainter *,int,QMenuItem *,bool,int,int,int,int);
-
- void drawContents(QPainter *);
-
- void closeEvent(QCloseEvent *);
- void paintEvent(QPaintEvent *);
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
- void keyPressEvent(QKeyEvent *);
-%If (Qt_2_1_0 -)
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
+ int itemHeight(TQMenuItem *) const;
+ void drawItem(TQPainter *,int,TQMenuItem *,bool,int,int,int,int);
+
+ void drawContents(TQPainter *);
+
+ void closeEvent(TQCloseEvent *);
+ void paintEvent(TQPaintEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+ void keyPressEvent(TQKeyEvent *);
+%If (TQt_2_1_0 -)
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
%End
- void timerEvent(QTimerEvent *);
-%If (Qt_3_0_0 -)
- void leaveEvent(QEvent *);
+ void timerEvent(TQTimerEvent *);
+%If (TQt_3_0_0 -)
+ void leaveEvent(TQEvent *);
%End
- void styleChange(QStyle &);
-%If (Qt_3_1_0 -)
+ void styleChange(TQStyle &);
+%If (TQt_3_1_0 -)
void enabledChange(bool);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
int columns() const;
bool focusNextPrevChild(bool);
%End
-%If (Qt_3_0_0 -)
- int itemAtPos(const QPoint &,bool = 1) const;
+%If (TQt_3_0_0 -)
+ int itemAtPos(const TQPoint &,bool = 1) const;
%End
private:
- QPopupMenu(const QPopupMenu &);
+ TQPopupMenu(const TQPopupMenu &);
void menuContentsChanged();
void menuStateChanged();
- void menuInsPopup(QPopupMenu *);
- void menuDelPopup(QPopupMenu *);
+ void menuInsPopup(TQPopupMenu *);
+ void menuDelPopup(TQPopupMenu *);
void frameChanged();
};
diff --git a/sip/qt/qprintdialog.sip b/sip/qt/qprintdialog.sip
index 2ead1f9..83cf681 100644
--- a/sip/qt/qprintdialog.sip
+++ b/sip/qt/qprintdialog.sip
@@ -1,63 +1,63 @@
-// This is the SIP interface definition for QPrintDialog.
+// This is the SIP interface definition for TQPrintDialog.
//
// 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>QPrintDialog (X11)</Title>
+<Sect2><Title>TQPrintDialog (X11)</Title>
<Para>
-<Literal>QPrintDialog</Literal> is fully implemented.
+<Literal>TQPrintDialog</Literal> is fully implemented.
</Para>
</Sect2>
%End
%If (WS_X11)
-%If (Qt_PRINTDIALOG)
+%If (TQt_PRINTDIALOG)
-class QPrintDialog : QDialog
+class TQPrintDialog : TQDialog
{
%TypeHeaderCode
#include <qprintdialog.h>
%End
public:
- QPrintDialog(QPrinter *,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQPrintDialog(TQPrinter *,TQWidget * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_3_0_0)
- static bool getPrinterSetup(QPrinter *);
+%If (- TQt_3_0_0)
+ static bool getPrinterSetup(TQPrinter *);
%End
-%If (Qt_3_0_0 -)
- static bool getPrinterSetup(QPrinter *,QWidget * = 0);
- static void setGlobalPrintDialog(QPrintDialog *);
+%If (TQt_3_0_0 -)
+ static bool getPrinterSetup(TQPrinter *,TQWidget * = 0);
+ static void setGlobalPrintDialog(TQPrintDialog *);
%End
- void setPrinter(QPrinter *,bool = 0);
- QPrinter *printer() const;
+ void setPrinter(TQPrinter *,bool = 0);
+ TQPrinter *printer() const;
-%If (Qt_2_1_0 -)
- void addButton(QPushButton *);
+%If (TQt_2_1_0 -)
+ void addButton(TQPushButton *);
%End
private:
- QPrintDialog(const QPrintDialog &);
+ TQPrintDialog(const TQPrintDialog &);
};
%End
diff --git a/sip/qt/qprinter.sip b/sip/qt/qprinter.sip
index b8bf4f9..cc71284 100644
--- a/sip/qt/qprinter.sip
+++ b/sip/qt/qprinter.sip
@@ -1,44 +1,44 @@
-// This is the SIP interface definition for QPrinter.
+// This is the SIP interface definition for TQPrinter.
//
// 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>QPrinter</Title>
+<Sect2><Title>TQPrinter</Title>
<Para>
-<Literal>QPrinter</Literal> is fully implemented.
+<Literal>TQPrinter</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_PRINTER)
+%If (TQt_PRINTER)
-class QPrinter : QPaintDevice
+class TQPrinter : TQPaintDevice
{
%TypeHeaderCode
#include <qprinter.h>
%End
public:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum PrinterMode {
ScreenResolution,
PrinterResolution,
@@ -47,11 +47,11 @@ public:
};
%End
-%If (- Qt_3_0_0)
- QPrinter();
+%If (- TQt_3_0_0)
+ TQPrinter();
%End
-%If (Qt_3_0_0 -)
- QPrinter(PrinterMode = ScreenResolution);
+%If (TQt_3_0_0 -)
+ TQPrinter(PrinterMode = ScreenResolution);
%End
enum Orientation {
@@ -63,10 +63,10 @@ public:
A4, B5, Letter, Legal, Executive, A0, A1, A2, A3, A5, A6, A7,
A8, A9, B0, B1, B10, B2, B3, B4, B6, B7, B8, B9, C5E, Comm10E,
DLE, Folio, Ledger, Tabloid,
-%If (Qt_2_3_1 -)
+%If (TQt_2_3_1 -)
Custom,
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
NPageSize
%End
};
@@ -81,7 +81,7 @@ public:
Color
};
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum PaperSource {
OnlyOne,
Lower,
@@ -99,7 +99,7 @@ public:
};
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
enum PrintRange {
AllPages,
Selection,
@@ -113,16 +113,16 @@ public:
};
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *printerName() const;
void setPrinterName(const char *);
%End
-%If (Qt_2_00 -)
- QString printerName() const;
- virtual void setPrinterName(const QString &);
+%If (TQt_2_00 -)
+ TQString printerName() const;
+ virtual void setPrinterName(const TQString &);
%End
bool outputToFile() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setOutputToFile(bool);
const char *outputFileName() const;
void setOutputFileName(const char *);
@@ -135,92 +135,92 @@ public:
const char *creator() const;
void setCreator(const char *);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setOutputToFile(bool);
- QString outputFileName() const;
- virtual void setOutputFileName(const QString &);
+ TQString outputFileName() const;
+ virtual void setOutputFileName(const TQString &);
- QString printProgram() const;
- virtual void setPrintProgram(const QString &);
+ TQString printProgram() const;
+ virtual void setPrintProgram(const TQString &);
- QString printerSelectionOption() const;
- virtual void setPrinterSelectionOption(const QString &);
+ TQString printerSelectionOption() const;
+ virtual void setPrinterSelectionOption(const TQString &);
- QString docName() const;
- virtual void setDocName(const QString &);
- QString creator() const;
- virtual void setCreator(const QString &);
+ TQString docName() const;
+ virtual void setDocName(const TQString &);
+ TQString creator() const;
+ virtual void setCreator(const TQString &);
%End
Orientation orientation() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setOrientation(Orientation);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setOrientation(Orientation);
%End
PageSize pageSize() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setPageSize(PageSize);
void setPageOrder(PageOrder);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setPageSize(PageSize);
virtual void setPageOrder(PageOrder);
%End
PageOrder pageOrder() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setResolution(int);
int resolution() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setColorMode(ColorMode);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setColorMode(ColorMode);
%End
ColorMode colorMode() const;
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setFullPage(bool);
bool fullPage() const;
- QSize margins() const;
+ TQSize margins() const;
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void setMargins(uint,uint,uint,uint);
// void margins(uint *,uint *,uint *,uint *) const;
%End
int fromPage() const;
int toPage() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setFromTo(int,int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setFromTo(int,int);
%End
int minPage() const;
int maxPage() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setMinMax(int,int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setMinMax(int,int);
%End
int numCopies() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setNumCopies(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setNumCopies(int);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool collateCopiesEnabled() const;
void setCollateCopiesEnabled(bool);
@@ -228,7 +228,7 @@ public:
void setCollateCopies(bool);
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
PrintRange printRange() const;
void setPrintRange(PrintRange);
%End
@@ -237,20 +237,20 @@ public:
bool abort();
bool aborted() const;
- bool setup(QWidget * = 0);
+ bool setup(TQWidget * = 0);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
PaperSource paperSource() const;
virtual void setPaperSource(PaperSource);
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void setOptionEnabled(PrinterOption,bool);
bool isOptionEnabled(PrinterOption);
%End
private:
- QPrinter(const QPrinter &);
+ TQPrinter(const TQPrinter &);
};
%End
diff --git a/sip/qt/qprocess.sip b/sip/qt/qprocess.sip
index c02c512..cd14067 100644
--- a/sip/qt/qprocess.sip
+++ b/sip/qt/qprocess.sip
@@ -1,55 +1,55 @@
-// This is the SIP interface definition for QProcess.
+// This is the SIP interface definition for TQProcess.
//
// 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>QProcess (Qt v3+)</Title>
+<Sect2><Title>TQProcess (TQt v3+)</Title>
<Para>
-<Literal>QProcess</Literal> is fully implemented.
+<Literal>TQProcess</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QProcess : QObject
+class TQProcess : TQObject
{
%TypeHeaderCode
#include <qprocess.h>
%End
public:
- QProcess(QObject * /TransferThis/ = 0,const char * = 0);
- QProcess(const QString &,QObject * /TransferThis/ = 0,
+ TQProcess(TQObject * /TransferThis/ = 0,const char * = 0);
+ TQProcess(const TQString &,TQObject * /TransferThis/ = 0,
const char * = 0);
- QProcess(const QStringList &,QObject * /TransferThis/ = 0,
+ TQProcess(const TQStringList &,TQObject * /TransferThis/ = 0,
const char * = 0);
- QStringList arguments() const;
+ TQStringList arguments() const;
void clearArguments();
- virtual void setArguments(const QStringList &);
- virtual void addArgument(const QString &);
- QDir workingDirectory() const;
- virtual void setWorkingDirectory(const QDir &);
+ virtual void setArguments(const TQStringList &);
+ virtual void addArgument(const TQString &);
+ TQDir workingDirectory() const;
+ virtual void setWorkingDirectory(const TQDir &);
enum Communication {
Stdin,
@@ -61,20 +61,20 @@ public:
void setCommunication(int);
int communication() const;
- virtual bool start(QStringList * = 0);
- virtual bool launch(const QString &, QStringList * = 0 );
- virtual bool launch(const QByteArray &,QStringList * = 0 );
+ virtual bool start(TQStringList * = 0);
+ virtual bool launch(const TQString &, TQStringList * = 0 );
+ virtual bool launch(const TQByteArray &,TQStringList * = 0 );
bool isRunning() const;
bool normalExit() const;
int exitStatus() const;
- virtual QByteArray readStdout() /ReleaseGIL/;
- virtual QByteArray readStderr() /ReleaseGIL/;
+ virtual TQByteArray readStdout() /ReleaseGIL/;
+ virtual TQByteArray readStderr() /ReleaseGIL/;
bool canReadLineStdout() const;
bool canReadLineStderr() const;
- virtual QString readLineStdout() /ReleaseGIL/;
- virtual QString readLineStderr() /ReleaseGIL/;
+ virtual TQString readLineStdout() /ReleaseGIL/;
+ virtual TQString readLineStderr() /ReleaseGIL/;
%If (WS_X11 || WS_MACX || WS_QWS)
typedef long PID;
@@ -95,8 +95,8 @@ public slots:
void tryTerminate() const;
void kill() const;
- virtual void writeToStdin(const QByteArray &);
- virtual void writeToStdin(const QString &);
+ virtual void writeToStdin(const TQByteArray &);
+ virtual void writeToStdin(const TQString &);
virtual void closeStdin();
protected:
@@ -104,8 +104,8 @@ protected:
void disconnectNotify(const char *);
private:
-%If (Qt_3_1_0 -)
- QProcess(const QProcess &);
+%If (TQt_3_1_0 -)
+ TQProcess(const TQProcess &);
%End
};
diff --git a/sip/qt/qprogressbar.sip b/sip/qt/qprogressbar.sip
index bcf3ad2..d4d4b93 100644
--- a/sip/qt/qprogressbar.sip
+++ b/sip/qt/qprogressbar.sip
@@ -1,56 +1,56 @@
-// This is the SIP interface definition for QProgressBar.
+// This is the SIP interface definition for TQProgressBar.
//
// 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>QProgressBar</Title>
+<Sect2><Title>TQProgressBar</Title>
<Para>
-<Literal>QProgressBar</Literal> is fully implemented.
+<Literal>TQProgressBar</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QProgressBar : QFrame
+class TQProgressBar : TQFrame
{
%TypeHeaderCode
#include <qprogressbar.h>
%End
public:
- QProgressBar(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
- QProgressBar(int,QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+ TQProgressBar(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+ TQProgressBar(int,TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
int totalSteps() const;
int progress() const;
-%If (Qt_3_0_0 -)
- const QString &progressString() const;
+%If (TQt_3_0_0 -)
+ const TQString &progressString() const;
%End
- QSize sizeHint() const;
-%If (Qt_2_00 - Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+ TQSize sizeHint() const;
+%If (TQt_2_00 - TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
-%If (Qt_2_00 -)
- QSize minimumSizeHint() const;
+%If (TQt_2_00 -)
+ TQSize minimumSizeHint() const;
void setCenterIndicator(bool);
bool centerIndicator() const;
@@ -59,7 +59,7 @@ public:
bool indicatorFollowsStyle() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool percentageVisible() const;
void setPercentageVisible(bool);
%End
@@ -68,28 +68,28 @@ public:
public slots:
void reset();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setTotalSteps(int);
void setProgress(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setTotalSteps(int);
virtual void setProgress(int);
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void setProgress(int,int);
%End
protected:
- void drawContents(QPainter *);
- virtual bool setIndicator(QString &,int,int);
-%If (Qt_2_00 - Qt_3_0_0)
- void drawContentsMask(QPainter *);
+ void drawContents(TQPainter *);
+ virtual bool setIndicator(TQString &,int,int);
+%If (TQt_2_00 - TQt_3_0_0)
+ void drawContentsMask(TQPainter *);
%End
-%If (Qt_2_00 -)
- void styleChange(QStyle &);
+%If (TQt_2_00 -)
+ void styleChange(TQStyle &);
%End
private:
- QProgressBar(const QProgressBar &);
+ TQProgressBar(const TQProgressBar &);
};
diff --git a/sip/qt/qprogressdialog.sip b/sip/qt/qprogressdialog.sip
index 4963041..33ee6c6 100644
--- a/sip/qt/qprogressdialog.sip
+++ b/sip/qt/qprogressdialog.sip
@@ -1,69 +1,69 @@
-// This is the SIP interface definition for QProgressDialog.
+// This is the SIP interface definition for TQProgressDialog.
//
// 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>QProgressDialog</Title>
+<Sect2><Title>TQProgressDialog</Title>
<Para>
-<Literal>QProgressDialog</Literal> is fully implemented.
+<Literal>TQProgressDialog</Literal> is fully implemented.
value.
</Para>
</Sect2>
%End
-%If (Qt_PROGRESSDIALOG)
+%If (TQt_PROGRESSDIALOG)
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QProgressDialog : QDialog
+class TQProgressDialog : TQDialog
{
%TypeHeaderCode
#include <qprogressdialog.h>
%End
public:
- QProgressDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
+ TQProgressDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
WFlags = 0);
- QProgressDialog(const QString &,const QString &,int,
- QWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
+ TQProgressDialog(const TQString &,const TQString &,int,
+ TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
WFlags = 0);
- void setLabel(QLabel *);
- void setCancelButton(QPushButton *);
- void setBar(QProgressBar *);
+ void setLabel(TQLabel *);
+ void setCancelButton(TQPushButton *);
+ void setBar(TQProgressBar *);
bool wasCancelled() const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
bool wasCanceled() const;
%End
int totalSteps() const;
int progress() const;
- QSize sizeHint() const;
+ TQSize sizeHint() const;
int minimumDuration() const;
- QString labelText() const;
+ TQString labelText() const;
void setAutoReset(bool);
bool autoReset() const;
@@ -75,72 +75,72 @@ public slots:
void reset();
void setTotalSteps(int);
void setProgress(int);
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void setProgress(int,int);
%End
- void setLabelText(const QString &);
- void setCancelButtonText(const QString &);
+ void setLabelText(const TQString &);
+ void setCancelButtonText(const TQString &);
void setMinimumDuration(int);
signals:
void cancelled();
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void canceled();
%End
protected:
- void resizeEvent(QResizeEvent *);
- void closeEvent(QCloseEvent *);
- void styleChange(QStyle &);
- void showEvent(QShowEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void closeEvent(TQCloseEvent *);
+ void styleChange(TQStyle &);
+ void showEvent(TQShowEvent *);
protected slots:
void forceShow();
private:
- QProgressDialog(const QProgressDialog &);
+ TQProgressDialog(const TQProgressDialog &);
};
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
-class QProgressDialog : QSemiModal
+class TQProgressDialog : TQSemiModal
{
%TypeHeaderCode
#include <qprogressdialog.h>
%End
public:
- QProgressDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
+ TQProgressDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
WFlags = 0);
-%If (- Qt_2_00)
- QProgressDialog(const char *,const char *,int,QWidget * /TransferThis/ = 0,
+%If (- TQt_2_00)
+ TQProgressDialog(const char *,const char *,int,TQWidget * /TransferThis/ = 0,
const char * = 0,bool = 0,WFlags = 0);
%End
-%If (Qt_2_00 -)
- QProgressDialog(const QString &,const QString &,int,
- QWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
+%If (TQt_2_00 -)
+ TQProgressDialog(const TQString &,const TQString &,int,
+ TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
WFlags = 0);
%End
- void setLabel(QLabel *);
- void setCancelButton(QPushButton *);
- void setBar(QProgressBar *);
+ void setLabel(TQLabel *);
+ void setCancelButton(TQPushButton *);
+ void setBar(TQProgressBar *);
bool wasCancelled() const;
int totalSteps() const;
int progress() const;
- QSize sizeHint() const;
+ TQSize sizeHint() const;
int minimumDuration() const;
-%If (Qt_2_1_0 -)
- QString labelText() const;
+%If (TQt_2_1_0 -)
+ TQString labelText() const;
void setAutoReset(bool);
bool autoReset() const;
@@ -153,13 +153,13 @@ public slots:
void reset();
void setTotalSteps(int);
void setProgress(int);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setLabelText(const char *);
void setCancelButtonText(const char *);
%End
-%If (Qt_2_00 -)
- void setLabelText(const QString &);
- void setCancelButtonText(const QString &);
+%If (TQt_2_00 -)
+ void setLabelText(const TQString &);
+ void setCancelButtonText(const TQString &);
%End
void setMinimumDuration(int);
@@ -168,25 +168,25 @@ signals:
void cancelled();
protected:
- void resizeEvent(QResizeEvent *);
-%If (- Qt_2_00)
+ void resizeEvent(TQResizeEvent *);
+%If (- TQt_2_00)
void styleChange(GUIStyle);
%End
-%If (Qt_2_00 -)
- void closeEvent(QCloseEvent *);
- void styleChange(QStyle &);
+%If (TQt_2_00 -)
+ void closeEvent(TQCloseEvent *);
+ void styleChange(TQStyle &);
%End
-%If (Qt_2_1_0 -)
- void showEvent(QShowEvent *);
+%If (TQt_2_1_0 -)
+ void showEvent(TQShowEvent *);
%End
protected slots:
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
void forceShow();
%End
private:
- QProgressDialog(const QProgressDialog &);
+ TQProgressDialog(const TQProgressDialog &);
};
%End
diff --git a/sip/qt/qptrlist.sip b/sip/qt/qptrlist.sip
index c49afad..b3faa04 100644
--- a/sip/qt/qptrlist.sip
+++ b/sip/qt/qptrlist.sip
@@ -1,40 +1,40 @@
-// This is the SIP interface definition for all types based on the QPtrList
+// This is the SIP interface definition for all types based on the TQPtrList
// template.
//
// 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>QPtrList&lt;type&gt; (Qt v2+)</Title>
+<Sect2><Title>TQPtrList&lt;type&gt; (TQt v2+)</Title>
<Para>
-Types based on the <Literal>QPtrList</Literal> template are automatically
+Types based on the <Literal>TQPtrList</Literal> template are automatically
converted to and from Python lists of the type.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
template<Type>
-%MappedType QPtrList<Type>
+%MappedType TQPtrList<Type>
{
%TypeHeaderCode
#include <qptrlist.h>
@@ -85,7 +85,7 @@ template<Type>
return 1;
}
- QPtrList<Type> *qpl = new QPtrList<Type>;
+ TQPtrList<Type> *qpl = new TQPtrList<Type>;
for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
{
diff --git a/sip/qt/qpushbutton.sip b/sip/qt/qpushbutton.sip
index 93e6fa0..d9b4f60 100644
--- a/sip/qt/qpushbutton.sip
+++ b/sip/qt/qpushbutton.sip
@@ -1,143 +1,143 @@
-// This is the SIP interface definition for QPushButton.
+// This is the SIP interface definition for TQPushButton.
//
// 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>QPushButton</Title>
+<Sect2><Title>TQPushButton</Title>
<Para>
-<Literal>QPushButton</Literal> is fully implemented.
+<Literal>TQPushButton</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QPushButton : QButton
+class TQPushButton : TQButton
{
%TypeHeaderCode
#include <qpushbutton.h>
%End
public:
-%If (- Qt_2_00)
- QPushButton(QWidget * /TransferThis/ = 0,const char * = 0);
- QPushButton(const char *,QWidget * /TransferThis/ = 0,const char * = 0);
+%If (- TQt_2_00)
+ TQPushButton(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQPushButton(const char *,TQWidget * /TransferThis/ = 0,const char * = 0);
%End
-%If (Qt_2_00 -)
- QPushButton(QWidget * /TransferThis/,const char * = 0);
- QPushButton(const QString &,QWidget * /TransferThis/,const char * = 0);
+%If (TQt_2_00 -)
+ TQPushButton(TQWidget * /TransferThis/,const char * = 0);
+ TQPushButton(const TQString &,TQWidget * /TransferThis/,const char * = 0);
%End
-%If (Qt_2_1_0 -)
- QPushButton(const QIconSet &,const QString &,QWidget * /TransferThis/,const char * = 0);
+%If (TQt_2_1_0 -)
+ TQPushButton(const TQIconSet &,const TQString &,TQWidget * /TransferThis/,const char * = 0);
%End
- QSize sizeHint() const;
-%If (Qt_2_00 - Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+ TQSize sizeHint() const;
+%If (TQt_2_00 - TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
void move(int,int);
- void move(const QPoint &);
+ void move(const TQPoint &);
void resize(int,int);
- void resize(const QSize &);
-%If (- Qt_2_00)
+ void resize(const TQSize &);
+%If (- TQt_2_00)
void setGeometry(int,int,int,int);
- void setGeometry(const QRect &);
+ void setGeometry(const TQRect &);
void setToggleButton(bool);
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
virtual void setGeometry(int,int,int,int);
- virtual void setGeometry(const QRect &);
+ virtual void setGeometry(const TQRect &);
virtual void setToggleButton(bool);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setGeometry(int,int,int,int);
- void setGeometry(const QRect &);
+ void setGeometry(const TQRect &);
void setToggleButton(bool);
%End
bool autoDefault() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setAutoDefault(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setAutoDefault(bool);
%End
bool isDefault() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setDefault(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setDefault(bool);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setIsMenuButton(bool);
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
virtual void setIsMenuButton(bool);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
bool isMenuButton() const;
%End
-%If (Qt_2_1_0 -)
- void setPopup(QPopupMenu *);
- QPopupMenu *popup() const;
+%If (TQt_2_1_0 -)
+ void setPopup(TQPopupMenu *);
+ TQPopupMenu *popup() const;
- void setIconSet(const QIconSet &);
- QIconSet *iconSet() const;
+ void setIconSet(const TQIconSet &);
+ TQIconSet *iconSet() const;
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
void setFlat(bool);
bool isFlat() const;
%End
public slots:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setOn(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setOn(bool);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
void toggle();
%End
protected:
- void drawButton(QPainter *);
- void drawButtonLabel(QPainter *);
- void focusInEvent(QFocusEvent *);
-%If (Qt_2_00 -)
- void focusOutEvent(QFocusEvent *);
- void resizeEvent(QResizeEvent *);
+ void drawButton(TQPainter *);
+ void drawButtonLabel(TQPainter *);
+ void focusInEvent(TQFocusEvent *);
+%If (TQt_2_00 -)
+ void focusOutEvent(TQFocusEvent *);
+ void resizeEvent(TQResizeEvent *);
void updateMask();
%End
private:
- QPushButton(const QPushButton &);
+ TQPushButton(const TQPushButton &);
};
diff --git a/sip/qt/qradiobutton.sip b/sip/qt/qradiobutton.sip
index 77c00db..083e0eb 100644
--- a/sip/qt/qradiobutton.sip
+++ b/sip/qt/qradiobutton.sip
@@ -1,84 +1,84 @@
-// This is the SIP interface definition for QRadioButton.
+// This is the SIP interface definition for TQRadioButton.
//
// 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>QRadioButton</Title>
+<Sect2><Title>TQRadioButton</Title>
<Para>
-<Literal>QRadioButton</Literal> is fully implemented.
+<Literal>TQRadioButton</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QRadioButton : QButton
+class TQRadioButton : TQButton
{
%TypeHeaderCode
#include <qradiobutton.h>
%End
public:
-%If (- Qt_2_00)
- QRadioButton(QWidget * /TransferThis/ = 0,const char * = 0);
- QRadioButton(const char *,QWidget * /TransferThis/ = 0,const char * = 0);
+%If (- TQt_2_00)
+ TQRadioButton(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQRadioButton(const char *,TQWidget * /TransferThis/ = 0,const char * = 0);
%End
-%If (Qt_2_00 -)
- QRadioButton(QWidget * /TransferThis/,const char * = 0);
- QRadioButton(const QString &,QWidget * /TransferThis/,const char * = 0);
+%If (TQt_2_00 -)
+ TQRadioButton(TQWidget * /TransferThis/,const char * = 0);
+ TQRadioButton(const TQString &,TQWidget * /TransferThis/,const char * = 0);
%End
bool isChecked() const;
- QSize sizeHint() const;
+ TQSize sizeHint() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setChecked(bool);
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
virtual void setChecked(bool);
- QSizePolicy sizePolicy() const;
+ TQSizePolicy sizePolicy() const;
%End
public slots:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void setChecked(bool);
%End
protected:
- bool hitButton(const QPoint &) const;
- void drawButton(QPainter *);
- void drawButtonLabel(QPainter *);
-%If (- Qt_2_00)
- void mouseReleaseEvent(QMouseEvent *);
- void keyPressEvent(QKeyEvent *);
+ bool hitButton(const TQPoint &) const;
+ void drawButton(TQPainter *);
+ void drawButtonLabel(TQPainter *);
+%If (- TQt_2_00)
+ void mouseReleaseEvent(TQMouseEvent *);
+ void keyPressEvent(TQKeyEvent *);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void updateMask();
- void resizeEvent(QResizeEvent *);
+ void resizeEvent(TQResizeEvent *);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- void focusInEvent(QFocusEvent *);
+%If (TQt_2_00 - TQt_3_0_0)
+ void focusInEvent(TQFocusEvent *);
%End
private:
- QRadioButton(const QRadioButton &);
+ TQRadioButton(const TQRadioButton &);
};
diff --git a/sip/qt/qrangecontrol.sip b/sip/qt/qrangecontrol.sip
index 2c1c3af..e3e25da 100644
--- a/sip/qt/qrangecontrol.sip
+++ b/sip/qt/qrangecontrol.sip
@@ -1,43 +1,43 @@
-// This is the SIP interface definition for QRangeControl.
+// This is the SIP interface definition for TQRangeControl.
//
// 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>QRangeControl</Title>
+<Sect2><Title>TQRangeControl</Title>
<Para>
-<Literal>QRangeControl</Literal> is fully implemented.
+<Literal>TQRangeControl</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QRangeControl
+class TQRangeControl
{
%TypeHeaderCode
#include <qrangecontrol.h>
%End
public:
- QRangeControl();
- QRangeControl(int,int,int,int,int);
+ TQRangeControl();
+ TQRangeControl(int,int,int,int,int);
int value() const;
void setValue(int);
@@ -49,7 +49,7 @@ public:
int minValue() const;
int maxValue() const;
void setRange(int,int);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setMinValue(int);
void setMaxValue(int);
%End
@@ -58,12 +58,12 @@ public:
int pageStep() const;
void setSteps(int,int);
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
int bound(int) const;
%End
protected:
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
int positionFromValue(int,int) const;
int valueFromPosition(int,int) const;
%End
@@ -75,5 +75,5 @@ protected:
virtual void stepChange();
private:
- QRangeControl(const QRangeControl &);
+ TQRangeControl(const TQRangeControl &);
};
diff --git a/sip/qt/qrect.sip b/sip/qt/qrect.sip
index 0f5f213..50575b1 100644
--- a/sip/qt/qrect.sip
+++ b/sip/qt/qrect.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QRect.
+// This is the SIP interface definition for TQRect.
//
// 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>QRect</Title>
+<Sect2><Title>TQRect</Title>
<Para>
The Python
<Literal>&amp;</Literal>, <Literal>&amp;=</Literal>,
@@ -53,67 +53,67 @@ This takes no parameters and returns a tuple containing the four values.
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rBottom</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rBottom</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-Not implemented. (Qt v2+)
+Not implemented. (TQt v2+)
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rLeft</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rLeft</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-Not implemented. (Qt v2+)
+Not implemented. (TQt v2+)
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rRight</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rRight</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-Not implemented. (Qt v2+)
+Not implemented. (TQt v2+)
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rTop</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rTop</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-Not implemented. (Qt v2+)
+Not implemented. (TQt v2+)
</Para>
</Sect2>
%End
-class QRect
+class TQRect
{
%TypeHeaderCode
#include <qrect.h>
%End
public:
- QRect();
- QRect(const QPoint &,const QPoint &);
- QRect(const QPoint &,const QSize &);
- QRect(int,int,int,int);
+ TQRect();
+ TQRect(const TQPoint &,const TQPoint &);
+ TQRect(const TQPoint &,const TQSize &);
+ TQRect(int,int,int,int);
bool isNull() const;
bool isEmpty() const;
bool isValid() const;
- QRect normalize() const;
+ TQRect normalize() const;
int left() const;
int top() const;
int right() const;
int bottom() const;
-%If (Qt_2_00 -)
-// QCOORD &rLeft();
-// QCOORD &rTop();
-// QCOORD &rRight();
-// QCOORD &rBottom();
+%If (TQt_2_00 -)
+// TQCOORD &rLeft();
+// TQCOORD &rTop();
+// TQCOORD &rRight();
+// TQCOORD &rBottom();
%End
int x() const;
@@ -125,83 +125,83 @@ public:
void setX(int);
void setY(int);
-%If (Qt_3_1_0 -)
- void setTopLeft(const QPoint &);
- void setBottomRight(const QPoint &);
- void setTopRight(const QPoint &);
- void setBottomLeft(const QPoint &);
+%If (TQt_3_1_0 -)
+ void setTopLeft(const TQPoint &);
+ void setBottomRight(const TQPoint &);
+ void setTopRight(const TQPoint &);
+ void setBottomLeft(const TQPoint &);
%End
- QPoint topLeft() const;
- QPoint bottomRight() const;
- QPoint topRight() const;
- QPoint bottomLeft() const;
- QPoint center() const;
+ TQPoint topLeft() const;
+ TQPoint bottomRight() const;
+ TQPoint topRight() const;
+ TQPoint bottomLeft() const;
+ TQPoint center() const;
void rect(int *,int *,int *,int *) const;
void coords(int *,int *,int *,int *) const;
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void moveLeft(int);
void moveTop(int);
void moveRight(int);
void moveBottom(int);
%End
- void moveTopLeft(const QPoint &);
- void moveBottomLeft(const QPoint &);
- void moveTopRight(const QPoint &);
- void moveBottomRight(const QPoint &);
- void moveCenter(const QPoint &);
+ void moveTopLeft(const TQPoint &);
+ void moveBottomLeft(const TQPoint &);
+ void moveTopRight(const TQPoint &);
+ void moveBottomRight(const TQPoint &);
+ void moveCenter(const TQPoint &);
void moveBy(int,int);
void setRect(int,int,int,int);
void setCoords(int,int,int,int);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void addCoords(int,int,int,int);
%End
- QSize size() const;
+ TQSize size() const;
int width() const;
int height() const;
void setWidth(int);
void setHeight(int);
- void setSize(const QSize &);
+ void setSize(const TQSize &);
- QRect operator|(const QRect &) const;
- QRect operator&(const QRect &) const;
- QRect &operator|=(const QRect &);
- QRect &operator&=(const QRect &);
+ TQRect operator|(const TQRect &) const;
+ TQRect operator&(const TQRect &) const;
+ TQRect &operator|=(const TQRect &);
+ TQRect &operator&=(const TQRect &);
int __nonzero__() const;
%MethodCode
sipRes = sipCpp -> isValid();
%End
- bool contains(const QPoint &,bool = 0) const;
+ bool contains(const TQPoint &,bool = 0) const;
- int __contains__(const QPoint &) const;
+ int __contains__(const TQPoint &) const;
%MethodCode
sipRes = sipCpp -> contains(*a0);
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
bool contains(int,int) const;
bool contains(int,int,bool) const;
%End
-%If (Qt_2_2_0 - Qt_3_1_0)
+%If (TQt_2_2_0 - TQt_3_1_0)
bool contains(int,int,bool = 0) const;
%End
- bool contains(const QRect &,bool = 0) const;
+ bool contains(const TQRect &,bool = 0) const;
- int __contains__(const QRect &) const;
+ int __contains__(const TQRect &) const;
%MethodCode
sipRes = sipCpp -> contains(*a0);
%End
- QRect unite(const QRect &) const;
- QRect intersect(const QRect &) const;
- bool intersects(const QRect &) const;
+ TQRect unite(const TQRect &) const;
+ TQRect intersect(const TQRect &) const;
+ bool intersects(const TQRect &) const;
};
-bool operator==(const QRect &,const QRect &);
-bool operator!=(const QRect &,const QRect &);
+bool operator==(const TQRect &,const TQRect &);
+bool operator!=(const TQRect &,const TQRect &);
diff --git a/sip/qt/qregexp.sip b/sip/qt/qregexp.sip
index 3d1dc40..9103f18 100644
--- a/sip/qt/qregexp.sip
+++ b/sip/qt/qregexp.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QRegExp.
+// This is the SIP interface definition for TQRegExp.
//
// 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>QRegExp</Title>
+<Sect2><Title>TQRegExp</Title>
<Para>
The Python <Literal>==</Literal> and <Literal>!=</Literal> operators are
supported.
@@ -36,32 +36,32 @@ supported.
<Para>
This takes <Literal>str</Literal> and <Literal>index</Literal> parameters and
returns a tuple of the <Literal>int</Literal> result and the
-<Literal>len</Literal> value. (Qt v1.x)
+<Literal>len</Literal> value. (TQt v1.x)
</Para>
<FuncSynopsis>
<FuncDef>int <Function>match</Function></FuncDef>
- <ParamDef>const QString &<Parameter>str</Parameter></ParamDef>
+ <ParamDef>const TQString &<Parameter>str</Parameter></ParamDef>
<ParamDef>int <Parameter>index</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>len</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
This takes <Literal>str</Literal> and <Literal>index</Literal> parameters and
returns a tuple of the <Literal>int</Literal> result and the
-<Literal>len</Literal> value. (Qt v2+)
+<Literal>len</Literal> value. (TQt v2+)
</Para>
</Sect2>
%End
-class QRegExp
+class TQRegExp
{
%TypeHeaderCode
#include <qregexp.h>
%End
public:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum CaretMode {
CaretAtZero,
CaretAtOffset,
@@ -69,71 +69,71 @@ public:
};
%End
- QRegExp();
-%If (- Qt_2_00)
- QRegExp(const char *,bool = 1,bool = 0);
+ TQRegExp();
+%If (- TQt_2_00)
+ TQRegExp(const char *,bool = 1,bool = 0);
%End
-%If (Qt_2_00 -)
- QRegExp(const QString &,bool = 1,bool = 0);
+%If (TQt_2_00 -)
+ TQRegExp(const TQString &,bool = 1,bool = 0);
%End
- QRegExp(const QRegExp &);
+ TQRegExp(const TQRegExp &);
- bool operator==(const QRegExp &) const;
- bool operator!=(const QRegExp &) const;
+ bool operator==(const TQRegExp &) const;
+ bool operator!=(const TQRegExp &) const;
bool isEmpty() const;
bool isValid() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *pattern() const;
%End
-%If (Qt_2_00 -)
- QString pattern() const;
+%If (TQt_2_00 -)
+ TQString pattern() const;
%End
-%If (Qt_2_2_0 -)
- void setPattern(const QString &);
+%If (TQt_2_2_0 -)
+ void setPattern(const TQString &);
%End
bool caseSensitive() const;
void setCaseSensitive(bool);
bool wildcard() const;
void setWildcard(bool);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool minimal() const;
void setMinimal(bool);
- bool exactMatch(const QString &) const;
+ bool exactMatch(const TQString &) const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
int match(const char *,int = 0,int * = 0) const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
- int match(const QString &,int = 0,int * = 0) const;
+%If (TQt_2_00 - TQt_3_0_0)
+ int match(const TQString &,int = 0,int * = 0) const;
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
- int find(const QString &,int);
+%If (TQt_2_2_0 - TQt_3_0_0)
+ int find(const TQString &,int);
%End
-%If (Qt_3_0_0 -)
- int search(const QString &,int = 0) const;
-%If (Qt_3_1_0 -)
- int search(const QString &,int,CaretMode) const;
+%If (TQt_3_0_0 -)
+ int search(const TQString &,int = 0) const;
+%If (TQt_3_1_0 -)
+ int search(const TQString &,int,CaretMode) const;
%End
- int searchRev(const QString &,int = -1) const;
-%If (Qt_3_1_0 -)
- int searchRev(const QString &,int,CaretMode) const;
+ int searchRev(const TQString &,int = -1) const;
+%If (TQt_3_1_0 -)
+ int searchRev(const TQString &,int,CaretMode) const;
%End
int matchedLength() const;
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
int numCaptures() const;
%End
- QStringList capturedTexts();
- QString cap(int = 0);
+ TQStringList capturedTexts();
+ TQString cap(int = 0);
int pos(int = 0);
%End
-%If (Qt_3_1_0 -)
- QString errorString();
+%If (TQt_3_1_0 -)
+ TQString errorString();
- static QString escape(const QString &);
+ static TQString escape(const TQString &);
%End
};
diff --git a/sip/qt/qregion.sip b/sip/qt/qregion.sip
index 38b9beb..f73c83e 100644
--- a/sip/qt/qregion.sip
+++ b/sip/qt/qregion.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QRegion.
+// This is the SIP interface definition for TQRegion.
//
// 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>QRegion</Title>
+<Sect2><Title>TQRegion</Title>
<Para>
The Python
<Literal>|</Literal>, <Literal>|=</Literal>,
@@ -34,7 +34,7 @@ The Python
</Para>
<FuncSynopsis>
- <FuncDef>QArray&lt;QRect&gt; <Function>rects</Function></FuncDef>
+ <FuncDef>TQArray&lt;TQRect&gt; <Function>rects</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -43,17 +43,17 @@ Not implemented.
<FuncSynopsis>
<FuncDef>void <Function>setRects</Function></FuncDef>
- <ParamDef>QRect *<Parameter>rects</Parameter></ParamDef>
+ <ParamDef>TQRect *<Parameter>rects</Parameter></ParamDef>
<ParamDef>int <Parameter>num</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2.2+)
+Not yet implemented. (TQt v2.2+)
</Para>
</Sect2>
%End
-class QRegion
+class TQRegion
{
%TypeHeaderCode
#include <qregion.h>
@@ -66,63 +66,63 @@ public:
Ellipse
};
- QRegion();
- QRegion(int,int,int,int,RegionType = Rectangle);
- QRegion(const QRect &,RegionType = Rectangle);
- QRegion(const QPointArray &,bool = 0);
- QRegion(const QRegion &);
-%If (Qt_1_43 -)
- QRegion(const QBitmap &);
+ TQRegion();
+ TQRegion(int,int,int,int,RegionType = Rectangle);
+ TQRegion(const TQRect &,RegionType = Rectangle);
+ TQRegion(const TQPointArray &,bool = 0);
+ TQRegion(const TQRegion &);
+%If (TQt_1_43 -)
+ TQRegion(const TQBitmap &);
%End
bool isNull() const;
bool isEmpty() const;
- bool contains(const QPoint &) const;
+ bool contains(const TQPoint &) const;
- int __contains__(const QPoint &) const;
+ int __contains__(const TQPoint &) const;
%MethodCode
sipRes = sipCpp -> contains(*a0);
%End
- bool contains(const QRect &) const;
+ bool contains(const TQRect &) const;
- int __contains__(const QRect &) const;
+ int __contains__(const TQRect &) const;
%MethodCode
sipRes = sipCpp -> contains(*a0);
%End
void translate(int,int);
- QRegion unite(const QRegion &) const;
- QRegion intersect(const QRegion &) const;
- QRegion subtract(const QRegion &) const;
- QRegion eor(const QRegion &) const;
+ TQRegion unite(const TQRegion &) const;
+ TQRegion intersect(const TQRegion &) const;
+ TQRegion subtract(const TQRegion &) const;
+ TQRegion eor(const TQRegion &) const;
- QRect boundingRect() const;
-%If (Qt_3_0_0 -)
- QMemArray<QRect> rects() const;
+ TQRect boundingRect() const;
+%If (TQt_3_0_0 -)
+ TQMemArray<TQRect> rects() const;
%End
-%If (Qt_2_2_0 -)
-// void setRects(const QRect *,int);
+%If (TQt_2_2_0 -)
+// void setRects(const TQRect *,int);
%End
- const QRegion operator|(const QRegion &) const;
- const QRegion operator+(const QRegion &) const;
- const QRegion operator&(const QRegion &) const;
- const QRegion operator-(const QRegion &) const;
- const QRegion operator^(const QRegion &) const;
- QRegion &operator|=(const QRegion &);
- QRegion &operator+=(const QRegion &);
- QRegion &operator&=(const QRegion &);
- QRegion &operator-=(const QRegion &);
- QRegion &operator^=(const QRegion &);
+ const TQRegion operator|(const TQRegion &) const;
+ const TQRegion operator+(const TQRegion &) const;
+ const TQRegion operator&(const TQRegion &) const;
+ const TQRegion operator-(const TQRegion &) const;
+ const TQRegion operator^(const TQRegion &) const;
+ TQRegion &operator|=(const TQRegion &);
+ TQRegion &operator+=(const TQRegion &);
+ TQRegion &operator&=(const TQRegion &);
+ TQRegion &operator-=(const TQRegion &);
+ TQRegion &operator^=(const TQRegion &);
int __nonzero__() const;
%MethodCode
sipRes = !sipCpp -> isNull();
%End
- bool operator==(const QRegion &) const;
- bool operator!=(const QRegion &) const;
+ bool operator==(const TQRegion &) const;
+ bool operator!=(const TQRegion &) const;
};
diff --git a/sip/qt/qscrollbar.sip b/sip/qt/qscrollbar.sip
index 20b8e5d..d811a88 100644
--- a/sip/qt/qscrollbar.sip
+++ b/sip/qt/qscrollbar.sip
@@ -1,101 +1,101 @@
-// This is the SIP interface definition for QScrollBar.
+// This is the SIP interface definition for TQScrollBar.
//
// 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>QScrollBar</Title>
+<Sect2><Title>TQScrollBar</Title>
<Para>
-<Literal>QScrollBar</Literal> is fully implemented.
+<Literal>TQScrollBar</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QScrollBar : QWidget, QRangeControl
+class TQScrollBar : TQWidget, TQRangeControl
{
%TypeHeaderCode
#include <qscrollbar.h>
%End
public:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
enum Orientation {
Horizontal,
Vertical
};
%End
-%If (- Qt_2_00)
- QScrollBar(QWidget * /TransferThis/ = 0,const char * = 0);
- QScrollBar(Orientation,QWidget * /TransferThis/ = 0,const char * = 0);
- QScrollBar(int,int,int,int,int,Orientation,
- QWidget * /TransferThis/ = 0,const char * = 0);
+%If (- TQt_2_00)
+ TQScrollBar(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQScrollBar(Orientation,TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQScrollBar(int,int,int,int,int,Orientation,
+ TQWidget * /TransferThis/ = 0,const char * = 0);
%End
-%If (Qt_2_00 -)
- QScrollBar(QWidget * /TransferThis/,const char * = 0);
- QScrollBar(Orientation,QWidget * /TransferThis/,const char * = 0);
- QScrollBar(int,int,int,int,int,Orientation,QWidget * /TransferThis/,
+%If (TQt_2_00 -)
+ TQScrollBar(TQWidget * /TransferThis/,const char * = 0);
+ TQScrollBar(Orientation,TQWidget * /TransferThis/,const char * = 0);
+ TQScrollBar(int,int,int,int,int,Orientation,TQWidget * /TransferThis/,
const char * = 0);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setOrientation(Orientation);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setOrientation(Orientation);
%End
Orientation orientation() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setTracking(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setTracking(bool);
%End
bool tracking() const;
bool draggingSlider() const;
-%If (Qt_2_00 -)
- virtual void setPalette(const QPalette &);
+%If (TQt_2_00 -)
+ virtual void setPalette(const TQPalette &);
%End
-%If (- Qt_2_00)
- void setPalette(const QPalette &);
+%If (- TQt_2_00)
+ void setPalette(const TQPalette &);
%End
-%If (Qt_3_1_0 -)
- virtual QSize sizeHint() const;
+%If (TQt_3_1_0 -)
+ virtual TQSize sizeHint() const;
%End
-%If (- Qt_3_1_0)
- QSize sizeHint() const;
+%If (- TQt_3_1_0)
+ TQSize sizeHint() const;
%End
-%If (Qt_3_1_0 -)
- virtual void setSizePolicy(QSizePolicy);
+%If (TQt_3_1_0 -)
+ virtual void setSizePolicy(TQSizePolicy);
%End
-%If (Qt_3_2_0 -)
- void setSizePolicy(QSizePolicy::SizeType,QSizePolicy::SizeType,
+%If (TQt_3_2_0 -)
+ void setSizePolicy(TQSizePolicy::SizeType,TQSizePolicy::SizeType,
bool = 0);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+%If (TQt_2_00 - TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
int minValue() const;
int maxValue() const;
void setMinValue(int);
@@ -106,17 +106,17 @@ public:
void setPageStep(int);
int value() const;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
void setValue(int);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int sliderStart() const;
- QRect sliderRect() const;
+ TQRect sliderRect() const;
%End
public slots:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setValue(int);
%End
@@ -131,40 +131,40 @@ signals:
void prevPage();
protected:
-%If (Qt_2_00 -)
- void wheelEvent(QWheelEvent *);
+%If (TQt_2_00 -)
+ void wheelEvent(TQWheelEvent *);
%End
- void keyPressEvent(QKeyEvent *);
- void resizeEvent(QResizeEvent *);
- void paintEvent(QPaintEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void paintEvent(TQPaintEvent *);
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
-%If (Qt_3_0_0 -)
- void contextMenuEvent(QContextMenuEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+%If (TQt_3_0_0 -)
+ void contextMenuEvent(TQContextMenuEvent *);
%End
-%If (Qt_3_0_4 -)
- void hideEvent(QHideEvent *);
+%If (TQt_3_0_4 -)
+ void hideEvent(TQHideEvent *);
%End
void valueChange();
void stepChange();
void rangeChange();
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int sliderStart() const;
- QRect sliderRect() const;
+ TQRect sliderRect() const;
%End
-%If (- Qt_2_00)
- void timerEvent(QTimerEvent *);
+%If (- TQt_2_00)
+ void timerEvent(TQTimerEvent *);
%End
-%If (Qt_2_00 -)
- void styleChange(QStyle &);
+%If (TQt_2_00 -)
+ void styleChange(TQStyle &);
%End
private:
- QScrollBar(const QScrollBar &);
+ TQScrollBar(const TQScrollBar &);
};
diff --git a/sip/qt/qscrollview.sip b/sip/qt/qscrollview.sip
index 4d7161f..19a00d8 100644
--- a/sip/qt/qscrollview.sip
+++ b/sip/qt/qscrollview.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QScrollView.
+// This is the SIP interface definition for TQScrollView.
//
// 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>QScrollView</Title>
+<Sect2><Title>TQScrollView</Title>
<FuncSynopsis>
<FuncDef>void <Function>contentsToViewport</Function></FuncDef>
<ParamDef>int <Parameter>x</Parameter></ParamDef>
@@ -32,7 +32,7 @@
<Para>
This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
returns a tuple containing the <Literal>vx</Literal> and <Literal>vy</Literal>
-values. (Qt v2+)
+values. (TQt v2+)
</Para>
<FuncSynopsis>
@@ -45,26 +45,26 @@ values. (Qt v2+)
<Para>
This takes the <Literal>vx</Literal> and <Literal>vy</Literal> parameters and
returns a tuple containing the <Literal>x</Literal> and <Literal>y</Literal>
-values. (Qt v2+)
+values. (TQt v2+)
</Para>
</Sect2>
%End
-class QScrollView : QFrame
+class TQScrollView : TQFrame
{
%TypeHeaderCode
#include <qscrollview.h>
%End
public:
- QScrollView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+ TQScrollView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
enum ResizePolicy {
Default,
Manual,
AutoOne,
-%If (Qt_2_3_0 -)
+%If (TQt_2_3_0 -)
AutoOneFit,
%End
};
@@ -72,25 +72,25 @@ public:
virtual void setResizePolicy(ResizePolicy);
ResizePolicy resizePolicy() const;
-%If (Qt_2_1_0 -)
- void styleChange(QStyle &);
+%If (TQt_2_1_0 -)
+ void styleChange(TQStyle &);
%End
// The child was reparented when it was added, and it stays that way,
// so we don't transfer it back here.
- void removeChild(QWidget *);
-%If (- Qt_2_00)
- void addChild(QWidget * /Transfer/);
- virtual void addChild(QWidget * /Transfer/,int,int);
+ void removeChild(TQWidget *);
+%If (- TQt_2_00)
+ void addChild(TQWidget * /Transfer/);
+ virtual void addChild(TQWidget * /Transfer/,int,int);
%End
-%If (Qt_2_00 -)
- virtual void addChild(QWidget * /Transfer/,int = 0,int = 0);
+%If (TQt_2_00 -)
+ virtual void addChild(TQWidget * /Transfer/,int = 0,int = 0);
%End
- virtual void moveChild(QWidget *,int,int);
- int childX(QWidget *);
- int childY(QWidget *);
-%If (- Qt_3_0_0)
- bool childIsVisible(QWidget *);
- void showChild(QWidget *,bool = 1);
+ virtual void moveChild(TQWidget *,int,int);
+ int childX(TQWidget *);
+ int childY(TQWidget *);
+%If (- TQt_3_0_0)
+ bool childIsVisible(TQWidget *);
+ void showChild(TQWidget *,bool = 1);
%End
enum ScrollBarMode {
@@ -105,19 +105,19 @@ public:
ScrollBarMode hScrollBarMode() const;
virtual void setHScrollBarMode(ScrollBarMode);
- QWidget *cornerWidget() const;
- virtual void setCornerWidget(QWidget * /Transfer/);
+ TQWidget *cornerWidget() const;
+ virtual void setCornerWidget(TQWidget * /Transfer/);
-%If (- Qt_2_00)
- QScrollBar *horizontalScrollBar();
- QScrollBar *verticalScrollBar();
- QWidget *viewport();
+%If (- TQt_2_00)
+ TQScrollBar *horizontalScrollBar();
+ TQScrollBar *verticalScrollBar();
+ TQWidget *viewport();
%End
-%If (Qt_2_00 -)
- QScrollBar *horizontalScrollBar() const;
- QScrollBar *verticalScrollBar() const;
- QWidget *viewport() const;
- QWidget *clipper() const;
+%If (TQt_2_00 -)
+ TQScrollBar *horizontalScrollBar() const;
+ TQScrollBar *verticalScrollBar() const;
+ TQWidget *viewport() const;
+ TQWidget *clipper() const;
int visibleWidth() const;
int visibleHeight() const;
@@ -129,82 +129,82 @@ public:
int contentsY() const;
void resize(int,int);
- void resize(const QSize &);
+ void resize(const TQSize &);
void show();
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void updateContents(int,int,int,int);
%End
-%If (Qt_2_1_0 -)
- void updateContents(const QRect &);
+%If (TQt_2_1_0 -)
+ void updateContents(const TQRect &);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void updateContents();
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void repaintContents(int,int,int,int,bool = 1);
%End
-%If (Qt_2_1_0 -)
- void repaintContents(const QRect &,bool = 1);
+%If (TQt_2_1_0 -)
+ void repaintContents(const TQRect &,bool = 1);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void repaintContents(bool = 1);
%End
-%If (Qt_2_00 -)
- // Note that this wasn't actually const until Qt v3.0.0.
+%If (TQt_2_00 -)
+ // Note that this wasn't actually const until TQt v3.0.0.
void contentsToViewport(int,int,int &,int &) const;
- // Note that this wasn't actually const until Qt v3.0.0.
+ // Note that this wasn't actually const until TQt v3.0.0.
void viewportToContents(int,int,int &,int &) const;
-%If (- Qt_3_0_0)
- QPoint contentsToViewport(const QPoint &);
- QPoint viewportToContents(const QPoint &);
+%If (- TQt_3_0_0)
+ TQPoint contentsToViewport(const TQPoint &);
+ TQPoint viewportToContents(const TQPoint &);
%End
-%If (Qt_3_0_0 -)
- QPoint contentsToViewport(const QPoint &) const;
- QPoint viewportToContents(const QPoint &) const;
+%If (TQt_3_0_0 -)
+ TQPoint contentsToViewport(const TQPoint &) const;
+ TQPoint viewportToContents(const TQPoint &) const;
%End
void enableClipper(bool);
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
void setStaticBackground(bool);
bool hasStaticBackground() const;
%End
- QSize viewportSize(int,int) const;
-%If (Qt_2_1_0 -)
- QSize sizeHint() const;
+ TQSize viewportSize(int,int) const;
+%If (TQt_2_1_0 -)
+ TQSize sizeHint() const;
%End
-%If (- Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+%If (- TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
- QSize minimumSizeHint() const;
+ TQSize minimumSizeHint() const;
- void removeChild(QObject * /TransferBack/);
+ void removeChild(TQObject * /TransferBack/);
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
bool isHorizontalSliderPressed();
bool isVerticalSliderPressed();
%End
-%If (Qt_DRAGANDDROP)
-%If (Qt_2_1_0 - Qt_3_0_0)
+%If (TQt_DRAGANDDROP)
+%If (TQt_2_1_0 - TQt_3_0_0)
void setDragAutoScroll(bool);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void setDragAutoScroll(bool);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
bool dragAutoScroll() const;
%End
%End
signals:
void contentsMoving(int,int);
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void horizontalSliderPressed();
void horizontalSliderReleased();
void verticalSliderPressed();
@@ -214,10 +214,10 @@ signals:
public slots:
virtual void resizeContents(int,int);
void scrollBy(int,int);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setContentsPos(int,int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setContentsPos(int,int);
%End
void ensureVisible(int,int);
@@ -226,60 +226,60 @@ public slots:
void center(int,int,float,float);
void updateScrollBars();
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void setEnabled(bool);
%End
protected:
-%If (Qt_2_00 -)
- virtual void drawContents(QPainter *,int,int,int,int);
+%If (TQt_2_00 -)
+ virtual void drawContents(TQPainter *,int,int,int,int);
%End
- virtual void drawContentsOffset(QPainter *,int,int,int,int,int,int);
+ virtual void drawContentsOffset(TQPainter *,int,int,int,int,int,int);
-%If (Qt_2_00 -)
- virtual void contentsMousePressEvent(QMouseEvent *);
- virtual void contentsMouseReleaseEvent(QMouseEvent *);
- virtual void contentsMouseDoubleClickEvent(QMouseEvent *);
- virtual void contentsMouseMoveEvent(QMouseEvent *);
-%If (Qt_DRAGANDDROP)
- virtual void contentsDragEnterEvent(QDragEnterEvent *);
- virtual void contentsDragMoveEvent(QDragMoveEvent *);
- virtual void contentsDragLeaveEvent(QDragLeaveEvent *);
- virtual void contentsDropEvent(QDropEvent *);
+%If (TQt_2_00 -)
+ virtual void contentsMousePressEvent(TQMouseEvent *);
+ virtual void contentsMouseReleaseEvent(TQMouseEvent *);
+ virtual void contentsMouseDoubleClickEvent(TQMouseEvent *);
+ virtual void contentsMouseMoveEvent(TQMouseEvent *);
+%If (TQt_DRAGANDDROP)
+ virtual void contentsDragEnterEvent(TQDragEnterEvent *);
+ virtual void contentsDragMoveEvent(TQDragMoveEvent *);
+ virtual void contentsDragLeaveEvent(TQDragLeaveEvent *);
+ virtual void contentsDropEvent(TQDropEvent *);
%End
- virtual void contentsWheelEvent(QWheelEvent *);
+ virtual void contentsWheelEvent(TQWheelEvent *);
%End
-%If (Qt_3_0_0 -)
- virtual void contentsContextMenuEvent(QContextMenuEvent *);
+%If (TQt_3_0_0 -)
+ virtual void contentsContextMenuEvent(TQContextMenuEvent *);
%End
- virtual void viewportPaintEvent(QPaintEvent *);
-%If (Qt_2_00 -)
- virtual void viewportResizeEvent(QResizeEvent *);
+ virtual void viewportPaintEvent(TQPaintEvent *);
+%If (TQt_2_00 -)
+ virtual void viewportResizeEvent(TQResizeEvent *);
%End
- virtual void viewportMousePressEvent(QMouseEvent *);
- virtual void viewportMouseReleaseEvent(QMouseEvent *);
- virtual void viewportMouseDoubleClickEvent(QMouseEvent *);
- virtual void viewportMouseMoveEvent(QMouseEvent *);
-%If (Qt_2_00 -)
-%If (Qt_DRAGANDDROP)
- virtual void viewportDragEnterEvent(QDragEnterEvent *);
- virtual void viewportDragMoveEvent(QDragMoveEvent *);
- virtual void viewportDragLeaveEvent(QDragLeaveEvent *);
- virtual void viewportDropEvent(QDropEvent *);
+ virtual void viewportMousePressEvent(TQMouseEvent *);
+ virtual void viewportMouseReleaseEvent(TQMouseEvent *);
+ virtual void viewportMouseDoubleClickEvent(TQMouseEvent *);
+ virtual void viewportMouseMoveEvent(TQMouseEvent *);
+%If (TQt_2_00 -)
+%If (TQt_DRAGANDDROP)
+ virtual void viewportDragEnterEvent(TQDragEnterEvent *);
+ virtual void viewportDragMoveEvent(TQDragMoveEvent *);
+ virtual void viewportDragLeaveEvent(TQDragLeaveEvent *);
+ virtual void viewportDropEvent(TQDropEvent *);
%End
- virtual void viewportWheelEvent(QWheelEvent *);
+ virtual void viewportWheelEvent(TQWheelEvent *);
%End
-%If (Qt_3_0_0 -)
- virtual void viewportContextMenuEvent(QContextMenuEvent *);
+%If (TQt_3_0_0 -)
+ virtual void viewportContextMenuEvent(TQContextMenuEvent *);
%End
void frameChanged();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setMargins(int,int,int,int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setMargins(int,int,int,int);
%End
int leftMargin() const;
@@ -289,37 +289,37 @@ protected:
bool focusNextPrevChild(bool);
-%If (Qt_2_00 -)
- virtual void setHBarGeometry(QScrollBar &,int,int,int,int);
- virtual void setVBarGeometry(QScrollBar &,int,int,int,int);
+%If (TQt_2_00 -)
+ virtual void setHBarGeometry(TQScrollBar &,int,int,int,int);
+ virtual void setVBarGeometry(TQScrollBar &,int,int,int,int);
%End
- void resizeEvent(QResizeEvent *);
-%If (Qt_3_0_0 -)
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseDoubleClickEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
+ void resizeEvent(TQResizeEvent *);
+%If (TQt_3_0_0 -)
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseDoubleClickEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
%End
-%If (Qt_2_00 -)
- void wheelEvent(QWheelEvent *);
+%If (TQt_2_00 -)
+ void wheelEvent(TQWheelEvent *);
%End
-%If (Qt_3_0_0 -)
- void contextMenuEvent(QContextMenuEvent *);
+%If (TQt_3_0_0 -)
+ void contextMenuEvent(TQContextMenuEvent *);
%End
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
-%If (Qt_3_1_0 -)
- void setCachedSizeHint(const QSize &) const;
- QSize cachedSizeHint() const;
- void fontChange(const QFont &);
+%If (TQt_3_1_0 -)
+ void setCachedSizeHint(const TQSize &) const;
+ TQSize cachedSizeHint() const;
+ void fontChange(const TQFont &);
%End
private:
- QScrollView(const QScrollView &);
+ TQScrollView(const TQScrollView &);
public:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void disableSizeHintCaching();
%End
};
diff --git a/sip/qt/qsemaphore.sip b/sip/qt/qsemaphore.sip
index 5e1ba40..faef77e 100644
--- a/sip/qt/qsemaphore.sip
+++ b/sip/qt/qsemaphore.sip
@@ -1,55 +1,55 @@
-// This is the SIP interface definition for QSemaphore.
+// This is the SIP interface definition for TQSemaphore.
//
// 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>QSemaphore (Qt v2.2+)</Title>
+<Sect2><Title>TQSemaphore (TQt v2.2+)</Title>
<Para>
-<Literal>QSemaphore</Literal> is fully implemented. The <Literal>+=</Literal>
-and <Literal>-=</Literal> operators have also been implemented, but require
+<Literal>TQSemaphore</Literal> is fully implemented. The <Literal>+=</Literal>
+and <Literal>-=</Literal> operators have also been implemented, but retquire
Python v2.0 or later.
</Para>
</Sect2>
%End
-%If (Qt_THREAD_SUPPORT)
+%If (TQt_THREAD_SUPPORT)
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QSemaphore
+class TQSemaphore
{
%TypeHeaderCode
#include <qsemaphore.h>
%End
public:
- QSemaphore(int);
+ TQSemaphore(int);
int available() const;
int total() const;
- QSemaphore &operator+=(int);
+ TQSemaphore &operator+=(int);
%MethodCode
- // Some versions of Qt v3 under Windows have a bug where the +=
+ // Some versions of TQt v3 under Windows have a bug where the +=
// operator doesn't work properly (but ++ does). This way we
// make sure that the most common value of n (ie. 1) works
// properly with the buggy version.
@@ -62,9 +62,9 @@ public:
Py_END_ALLOW_THREADS
%End
- QSemaphore &operator-=(int);
+ TQSemaphore &operator-=(int);
%MethodCode
- // Some versions of Qt v3 under Windows have a bug where the -=
+ // Some versions of TQt v3 under Windows have a bug where the -=
// operator doesn't work properly (but -- does). This way we
// make sure that the most common value of n (ie. 1) works
// properly with the buggy version.
@@ -80,31 +80,31 @@ public:
bool tryAccess(int);
private:
- QSemaphore(const QSemaphore &);
+ TQSemaphore(const TQSemaphore &);
};
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
+%If (TQt_2_2_0 - TQt_3_0_0)
-class QSemaphore : Qt
+class TQSemaphore : TQt
{
%TypeHeaderCode
#include <qthread.h>
%End
public:
- QSemaphore(int);
+ TQSemaphore(int);
int available() const;
int total() const;
- QSemaphore &operator+=(int);
- QSemaphore &operator-=(int);
+ TQSemaphore &operator+=(int);
+ TQSemaphore &operator-=(int);
private:
- QSemaphore(const QSemaphore &);
+ TQSemaphore(const TQSemaphore &);
};
%End
diff --git a/sip/qt/qsemimodal.sip b/sip/qt/qsemimodal.sip
index 0efc1c8..f17914e 100644
--- a/sip/qt/qsemimodal.sip
+++ b/sip/qt/qsemimodal.sip
@@ -1,62 +1,62 @@
-// This is the SIP interface definition for QSemiModal.
+// This is the SIP interface definition for TQSemiModal.
//
// 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>QSemiModal (Qt v1, v2)</Title>
+<Sect2><Title>TQSemiModal (TQt v1, v2)</Title>
<Para>
-<Literal>QSemiModal</Literal> is fully implemented.
+<Literal>TQSemiModal</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_SEMIMODAL)
-%If (- Qt_3_0_0)
+%If (TQt_SEMIMODAL)
+%If (- TQt_3_0_0)
-class QSemiModal : QWidget
+class TQSemiModal : TQWidget
{
%TypeHeaderCode
#include <qsemimodal.h>
%End
public:
- QSemiModal(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0,WFlags = 0);
+ TQSemiModal(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,WFlags = 0);
void show();
void move(int,int);
- void move(const QPoint &);
+ void move(const TQPoint &);
void resize(int,int);
- void resize(const QSize &);
-%If (- Qt_2_00)
+ void resize(const TQSize &);
+%If (- TQt_2_00)
void setGeometry(int,int,int,int);
- void setGeometry(const QRect &);
+ void setGeometry(const TQRect &);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setGeometry(int,int,int,int);
- virtual void setGeometry(const QRect &);
+ virtual void setGeometry(const TQRect &);
%End
private:
- QSemiModal(const QSemiModal &);
+ TQSemiModal(const TQSemiModal &);
};
%End
diff --git a/sip/qt/qsessionmanager.sip b/sip/qt/qsessionmanager.sip
index 92ff03c..87af6c3 100644
--- a/sip/qt/qsessionmanager.sip
+++ b/sip/qt/qsessionmanager.sip
@@ -1,46 +1,46 @@
-// This is the SIP interface definition for QSessionManager.
+// This is the SIP interface definition for TQSessionManager.
//
// 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>QSessionManager (Qt v2+)</Title>
+<Sect2><Title>TQSessionManager (TQt v2+)</Title>
<Para>
-<Literal>QSessionManager</Literal> is fully implemented.
+<Literal>TQSessionManager</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QSessionManager : QObject
+class TQSessionManager : TQObject
{
%TypeHeaderCode
#include <qsessionmanager.h>
%End
public:
- QString sessionId() const;
-%If (Qt_3_1_0 -)
- QString sessionKey() const;
+ TQString sessionId() const;
+%If (TQt_3_1_0 -)
+ TQString sessionKey() const;
%End
bool allowsInteraction();
@@ -59,31 +59,31 @@ public:
void setRestartHint(RestartHint);
RestartHint restartHint() const;
- void setRestartCommand(const QStringList &);
- QStringList restartCommand() const;
- void setDiscardCommand(const QStringList &);
- QStringList discardCommand() const;
+ void setRestartCommand(const TQStringList &);
+ TQStringList restartCommand() const;
+ void setDiscardCommand(const TQStringList &);
+ TQStringList discardCommand() const;
-%If (- Qt_3_0_0)
- void setProperty(const QString &,const QString &);
- void setProperty(const QString &,const QStringList &);
+%If (- TQt_3_0_0)
+ void setProperty(const TQString &,const TQString &);
+ void setProperty(const TQString &,const TQStringList &);
%End
-%If (Qt_3_0_0 -)
- void setManagerProperty(const QString &,const QString &);
- void setManagerProperty(const QString &,const QStringList &);
+%If (TQt_3_0_0 -)
+ void setManagerProperty(const TQString &,const TQString &);
+ void setManagerProperty(const TQString &,const TQStringList &);
%End
bool isPhase2() const;
void requestPhase2();
private:
-%If (Qt_3_1_0 -)
- QSessionManager(QApplication * /TransferThis/,QString &,QString &);
+%If (TQt_3_1_0 -)
+ TQSessionManager(TQApplication * /TransferThis/,TQString &,TQString &);
%End
-%If (- Qt_3_1_0)
- QSessionManager(QApplication * /TransferThis/,QString &);
+%If (- TQt_3_1_0)
+ TQSessionManager(TQApplication * /TransferThis/,TQString &);
%End
- ~QSessionManager();
+ ~TQSessionManager();
};
%End
diff --git a/sip/qt/qsettings.sip b/sip/qt/qsettings.sip
index 122593e..b271787 100644
--- a/sip/qt/qsettings.sip
+++ b/sip/qt/qsettings.sip
@@ -1,30 +1,30 @@
-// This is the SIP interface definition for QSettings.
+// This is the SIP interface definition for TQSettings.
//
// 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>QSettings (Qt v3+)</Title>
+<Sect2><Title>TQSettings (TQt v3+)</Title>
<FuncSynopsis>
<FuncDef>bool <Function>readBoolEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
<ParamDef>bool <Parameter>def</Parameter> = 0</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -35,7 +35,7 @@ the <Literal>bool</Literal> result and the <Literal>ok</Literal> flag.
<FuncSynopsis>
<FuncDef>double <Function>readDoubleEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
<ParamDef>double <Parameter>def</Parameter> = 0</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -45,40 +45,40 @@ the <Literal>double</Literal> result and the <Literal>ok</Literal> flag.
</Para>
<FuncSynopsis>
-<FuncDef>QString <Function>readEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
- <ParamDef>const QString &amp;<Parameter>def</Parameter> = QString::null</ParamDef>
+<FuncDef>TQString <Function>readEntry</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>def</Parameter> = TQString::null</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QString</Literal> result and the <Literal>ok</Literal> flag.
+the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
</Para>
<FuncSynopsis>
-<FuncDef>QStringList <Function>readListEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
+<FuncDef>TQStringList <Function>readListEntry</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QStringList</Literal> result and the <Literal>ok</Literal> flag.
+the <Literal>TQStringList</Literal> result and the <Literal>ok</Literal> flag.
</Para>
<FuncSynopsis>
-<FuncDef>QStringList <Function>readListEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
- <ParamDef>const QChar &amp;<Parameter>separator</Parameter></ParamDef>
+<FuncDef>TQStringList <Function>readListEntry</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
+ <ParamDef>const TQChar &amp;<Parameter>separator</Parameter></ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
-the <Literal>QStringList</Literal> result and the <Literal>ok</Literal> flag.
+the <Literal>TQStringList</Literal> result and the <Literal>ok</Literal> flag.
</Para>
<FuncSynopsis>
<FuncDef>int <Function>readNumEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
<ParamDef>int <Parameter>def</Parameter> = 0</ParamDef>
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -89,7 +89,7 @@ the <Literal>int</Literal> result and the <Literal>ok</Literal> flag.
<FuncSynopsis>
<FuncDef>bool <Function>writeEntry</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>key</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
<ParamDef>bool <Parameter>value</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -99,16 +99,16 @@ Not implemented.
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QSettings
+class TQSettings
{
%TypeHeaderCode
#include <qsettings.h>
%End
public:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum Format {
Native,
Ini
@@ -121,57 +121,57 @@ public:
Mac
};
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum Scope {
User,
Global
};
%End
- QSettings();
-%If (Qt_3_1_0 -)
- QSettings(Format);
+ TQSettings();
+%If (TQt_3_1_0 -)
+ TQSettings(Format);
%End
-// bool writeEntry(const QString &,bool);
- bool writeEntry(const QString &,int /Constrained/);
- bool writeEntry(const QString &,double);
-// bool writeEntry(const QString &,const char *);
- bool writeEntry(const QString &,const QString &);
- bool writeEntry(const QString &,const QStringList &);
- bool writeEntry(const QString &,const QStringList &,const QChar &);
+// bool writeEntry(const TQString &,bool);
+ bool writeEntry(const TQString &,int /Constrained/);
+ bool writeEntry(const TQString &,double);
+// bool writeEntry(const TQString &,const char *);
+ bool writeEntry(const TQString &,const TQString &);
+ bool writeEntry(const TQString &,const TQStringList &);
+ bool writeEntry(const TQString &,const TQStringList &,const TQChar &);
- QStringList entryList(const QString &) const;
- QStringList subkeyList(const QString &) const;
+ TQStringList entryList(const TQString &) const;
+ TQStringList subkeyList(const TQString &) const;
- QStringList readListEntry(const QString &,bool * = 0);
- QStringList readListEntry(const QString &,const QChar &,bool * = 0);
- QString readEntry(const QString &,const QString & = QString::null,
+ TQStringList readListEntry(const TQString &,bool * = 0);
+ TQStringList readListEntry(const TQString &,const TQChar &,bool * = 0);
+ TQString readEntry(const TQString &,const TQString & = TQString::null,
bool * = 0);
- int readNumEntry(const QString &,int = 0,bool * = 0);
- double readDoubleEntry(const QString &,double = 0,bool * = 0);
- bool readBoolEntry(const QString &,bool = 0,bool * = 0);
+ int readNumEntry(const TQString &,int = 0,bool * = 0);
+ double readDoubleEntry(const TQString &,double = 0,bool * = 0);
+ bool readBoolEntry(const TQString &,bool = 0,bool * = 0);
- bool removeEntry(const QString &);
+ bool removeEntry(const TQString &);
- void insertSearchPath(System,const QString &);
- void removeSearchPath(System,const QString &);
+ void insertSearchPath(System,const TQString &);
+ void removeSearchPath(System,const TQString &);
-%If (Qt_3_1_0 -)
- void setPath(const QString &,const QString &,Scope = Global);
+%If (TQt_3_1_0 -)
+ void setPath(const TQString &,const TQString &,Scope = Global);
- void beginGroup(const QString &);
+ void beginGroup(const TQString &);
void endGroup();
void resetGroup();
- QString group() const;
+ TQString group() const;
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
bool sync();
%End
private:
- QSettings(const QSettings &);
+ TQSettings(const TQSettings &);
};
%End
diff --git a/sip/qt/qsgistyle.sip b/sip/qt/qsgistyle.sip
index c2563ea..f7cf4d1 100644
--- a/sip/qt/qsgistyle.sip
+++ b/sip/qt/qsgistyle.sip
@@ -1,30 +1,30 @@
-// This is the SIP interface definition for QSGIStyle.
+// This is the SIP interface definition for TQSGIStyle.
//
// 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>QSGIStyle (Qt v2.2+)</Title>
+<Sect2><Title>TQSGIStyle (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QScrollBar *<Parameter>sb</Parameter></ParamDef>
+ <ParamDef>const TQScrollBar *<Parameter>sb</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderLength</Parameter></ParamDef>
@@ -34,123 +34,123 @@
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
-(Qt v2)
+(TQt v2)
</Para>
</Sect2>
%End
-%If (Qt_STYLE_SGI)
-%If (Qt_2_2_0 -)
+%If (TQt_STYLE_SGI)
+%If (TQt_2_2_0 -)
-class QSGIStyle : QMotifStyle
+class TQSGIStyle : TQMotifStyle
{
%TypeHeaderCode
#include <qsgistyle.h>
%End
public:
- QSGIStyle(bool = 0);
+ TQSGIStyle(bool = 0);
- void polish(QWidget *);
- void unPolish(QWidget *);
- void polish(QApplication *);
- void unPolish(QApplication *);
+ void polish(TQWidget *);
+ void unPolish(TQWidget *);
+ void polish(TQApplication *);
+ void unPolish(TQApplication *);
-%If (- Qt_3_0_0)
- void polish(QPalette &);
+%If (- TQt_3_0_0)
+ void polish(TQPalette &);
int defaultFrameWidth() const;
- void drawPanel(QPainter *,int,int,int,int,const QColorGroup &,bool = 0,
- int = 1,const QBrush * = 0);
- void drawSeparator(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawPanel(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
+ int = 1,const TQBrush * = 0);
+ void drawSeparator(TQPainter *,int,int,int,int,const TQColorGroup &,
bool = 1,int = 1,int = 0);
- void drawButton(QPainter *,int,int,int,int,const QColorGroup &,bool = 0,
- const QBrush * = 0);
- void drawBevelButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,const QBrush * = 0);
- void drawPushButton(QPushButton *,QPainter *);
- void drawArrow(QPainter *,ArrowType,bool,int,int,int,int,
- const QColorGroup &,bool,const QBrush * = 0);
-
- QSize indicatorSize() const;
- void drawIndicator(QPainter *,int,int,int,int,const QColorGroup &,int,
+ void drawButton(TQPainter *,int,int,int,int,const TQColorGroup &,bool = 0,
+ const TQBrush * = 0);
+ void drawBevelButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,const TQBrush * = 0);
+ void drawPushButton(TQPushButton *,TQPainter *);
+ void drawArrow(TQPainter *,ArrowType,bool,int,int,int,int,
+ const TQColorGroup &,bool,const TQBrush * = 0);
+
+ TQSize indicatorSize() const;
+ void drawIndicator(TQPainter *,int,int,int,int,const TQColorGroup &,int,
bool = 0,bool = 1);
- void drawCheckMark(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawCheckMark(TQPainter *,int,int,int,int,const TQColorGroup &,
bool,bool);
- void drawIndicatorMask(QPainter *,int,int,int,int,int);
+ void drawIndicatorMask(TQPainter *,int,int,int,int,int);
- QSize exclusiveIndicatorSize() const;
- void drawExclusiveIndicator(QPainter *,int,int,int,int,
- const QColorGroup &,bool,bool = 0,bool = 1);
- void drawExclusiveIndicatorMask(QPainter *,int,int,int,int,bool);
+ TQSize exclusiveIndicatorSize() const;
+ void drawExclusiveIndicator(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool,bool = 0,bool = 1);
+ void drawExclusiveIndicatorMask(TQPainter *,int,int,int,int,bool);
- void drawComboButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,bool = 0,bool = 1,const QBrush * = 0);
- QRect comboButtonRect(int,int,int,int);
- QRect comboButtonFocusRect(int,int,int,int);
+ void drawComboButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,bool = 0,bool = 1,const TQBrush * = 0);
+ TQRect comboButtonRect(int,int,int,int);
+ TQRect comboButtonFocusRect(int,int,int,int);
- void scrollBarMetrics(const QScrollBar *,int &,int &,int &,int &);
+ void scrollBarMetrics(const TQScrollBar *,int &,int &,int &,int &);
- void drawScrollBarControls(QPainter *,const QScrollBar *,int,uint,uint);
+ void drawScrollBarControls(TQPainter *,const TQScrollBar *,int,uint,uint);
- void drawSlider(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawSlider(TQPainter *,int,int,int,int,const TQColorGroup &,
Orientation,bool,bool);
- void drawSliderMask(QPainter *,int,int,int,int,Orientation,bool,bool);
- void drawSliderGroove(QPainter *,int,int,int,int,const QColorGroup &,
- QCOORD,Orientation);
- void drawSliderGrooveMask(QPainter *,int,int,int,int,QCOORD,
+ void drawSliderMask(TQPainter *,int,int,int,int,Orientation,bool,bool);
+ void drawSliderGroove(TQPainter *,int,int,int,int,const TQColorGroup &,
+ TQCOORD,Orientation);
+ void drawSliderGrooveMask(TQPainter *,int,int,int,int,TQCOORD,
Orientation);
- void drawTab(QPainter *,const QTabBar *,QTab *,bool);
- void drawTabMask(QPainter *,const QTabBar *,QTab *,bool);
+ void drawTab(TQPainter *,const TQTabBar *,TQTab *,bool);
+ void drawTabMask(TQPainter *,const TQTabBar *,TQTab *,bool);
int splitterWidth() const;
- void drawSplitter(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawSplitter(TQPainter *,int,int,int,int,const TQColorGroup &,
Orientation);
- int popupMenuItemHeight(bool,QMenuItem *,const QFontMetrics &);
- void drawPopupPanel(QPainter *,int,int,int,int,const QColorGroup &,
- int = 2,const QBrush * = 0);
- void drawPopupMenuItem(QPainter *,bool,int,int,QMenuItem *,
- const QPalette &,bool,bool,int,int,int,int);
- void drawMenuBarItem(QPainter *,int,int,int,int,QMenuItem *,
- QColorGroup &,bool,bool);
+ int popupMenuItemHeight(bool,TQMenuItem *,const TQFontMetrics &);
+ void drawPopupPanel(TQPainter *,int,int,int,int,const TQColorGroup &,
+ int = 2,const TQBrush * = 0);
+ void drawPopupMenuItem(TQPainter *,bool,int,int,TQMenuItem *,
+ const TQPalette &,bool,bool,int,int,int,int);
+ void drawMenuBarItem(TQPainter *,int,int,int,int,TQMenuItem *,
+ TQColorGroup &,bool,bool);
%End
-%If (Qt_3_0_0 -)
- void drawPrimitive(PrimitiveElement,QPainter *,const QRect &,
- const QColorGroup &,SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const;
+%If (TQt_3_0_0 -)
+ void drawPrimitive(PrimitiveElement,TQPainter *,const TQRect &,
+ const TQColorGroup &,SFlags = Style_Default,
+ const TQStyleOption & = TQStyleOption()) const;
- void drawControl(ControlElement,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ void drawControl(ControlElement,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- void drawComplexControl(ComplexControl,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ void drawComplexControl(ComplexControl,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,SCFlags = SC_All,
SCFlags = SC_None,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- int pixelMetric(PixelMetric,const QWidget * = 0) const;
+ int pixelMetric(PixelMetric,const TQWidget * = 0) const;
- QSize sizeFromContents(ContentsType,const QWidget *,const QSize &,
- const QStyleOption & = QStyleOption()) const;
+ TQSize sizeFromContents(ContentsType,const TQWidget *,const TQSize &,
+ const TQStyleOption & = TQStyleOption()) const;
- QRect subRect(SubRect,const QWidget *) const;
+ TQRect subRect(SubRect,const TQWidget *) const;
- QRect querySubControlMetrics(ComplexControl,const QWidget *,
+ TQRect querySubControlMetrics(ComplexControl,const TQWidget *,
SubControl,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
%End
protected:
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
private:
- QSGIStyle(const QSGIStyle &);
+ TQSGIStyle(const TQSGIStyle &);
};
%End
diff --git a/sip/qt/qsignalmapper.sip b/sip/qt/qsignalmapper.sip
index d587723..47cd9fd 100644
--- a/sip/qt/qsignalmapper.sip
+++ b/sip/qt/qsignalmapper.sip
@@ -1,50 +1,50 @@
-// This is the SIP interface definition for QSignalMapper
+// This is the SIP interface definition for TQSignalMapper
//
// 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>QSignalMapper</Title>
+<Sect2><Title>TQSignalMapper</Title>
<Para>
-<Literal>QSignalMapper</Literal> is fully implemented.
+<Literal>TQSignalMapper</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QSignalMapper : QObject
+class TQSignalMapper : TQObject
{
%TypeHeaderCode
#include <qsignalmapper.h>
%End
public:
- QSignalMapper(QObject * /TransferThis/,const char * = 0);
+ TQSignalMapper(TQObject * /TransferThis/,const char * = 0);
- virtual void setMapping(const QObject *,int);
- virtual void setMapping(const QObject *,const QString &);
- void removeMappings(const QObject *);
+ virtual void setMapping(const TQObject *,int);
+ virtual void setMapping(const TQObject *,const TQString &);
+ void removeMappings(const TQObject *);
signals:
void mapped(int);
- void mapped(const QString &);
+ void mapped(const TQString &);
public slots:
void map();
diff --git a/sip/qt/qsimplerichtext.sip b/sip/qt/qsimplerichtext.sip
index 7b189c3..a44be99 100644
--- a/sip/qt/qsimplerichtext.sip
+++ b/sip/qt/qsimplerichtext.sip
@@ -1,90 +1,90 @@
-// This is the SIP interface definition for QSimpleRichText.
+// This is the SIP interface definition for TQSimpleRichText.
//
// 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>QSimpleRichText (Qt v2+)</Title>
+<Sect2><Title>TQSimpleRichText (TQt v2+)</Title>
<Para>
-<Literal>QSimpleRichText</Literal> is fully implemented.
+<Literal>TQSimpleRichText</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QSimpleRichText
+class TQSimpleRichText
{
%TypeHeaderCode
#include <qsimplerichtext.h>
%End
public:
- QSimpleRichText(const QString &,const QFont &,
- const QString & = QString::null,
- const QStyleSheet * = 0);
-%If (Qt_2_1_0 -)
- QSimpleRichText(const QString &,const QFont &,const QString &,
- const QStyleSheet *,const QMimeSourceFactory *,
- int = -1,const QColor & = Qt::blue,bool = 1);
+ TQSimpleRichText(const TQString &,const TQFont &,
+ const TQString & = TQString::null,
+ const TQStyleSheet * = 0);
+%If (TQt_2_1_0 -)
+ TQSimpleRichText(const TQString &,const TQFont &,const TQString &,
+ const TQStyleSheet *,const TQMimeSourceFactory *,
+ int = -1,const TQColor & = TQt::blue,bool = 1);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setWidth(int);
%End
- void setWidth(QPainter *,int);
-%If (Qt_3_0_0 -)
- void setDefaultFont(const QFont &);
+ void setWidth(TQPainter *,int);
+%If (TQt_3_0_0 -)
+ void setDefaultFont(const TQFont &);
%End
int width() const;
int widthUsed() const;
int height() const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void adjustSize();
%End
-%If (- Qt_3_0_0)
- void draw(QPainter *,int,int,const QRegion &,const QPalette &,
- const QBrush * = 0) const;
- void draw(QPainter *,int,int,const QRegion &,const QColorGroup &,
- const QBrush * = 0) const;
+%If (- TQt_3_0_0)
+ void draw(TQPainter *,int,int,const TQRegion &,const TQPalette &,
+ const TQBrush * = 0) const;
+ void draw(TQPainter *,int,int,const TQRegion &,const TQColorGroup &,
+ const TQBrush * = 0) const;
%End
-%If (Qt_3_0_0 -)
- void draw(QPainter *,int,int,const QRect &,const QColorGroup &,
- const QBrush * = 0) const;
+%If (TQt_3_0_0 -)
+ void draw(TQPainter *,int,int,const TQRect &,const TQColorGroup &,
+ const TQBrush * = 0) const;
%End
- QString context() const;
-%If (- Qt_3_0_0)
- QString anchor(QPainter *,const QPoint &);
+ TQString context() const;
+%If (- TQt_3_0_0)
+ TQString anchor(TQPainter *,const TQPoint &);
%End
-%If (Qt_2_1_0 -)
- QString anchorAt(const QPoint &) const;
+%If (TQt_2_1_0 -)
+ TQString anchorAt(const TQPoint &) const;
- bool inText(const QPoint &) const;
+ bool inText(const TQPoint &) const;
%End
private:
-%If (Qt_3_0_0 -)
- QSimpleRichText(const QSimpleRichText &);
+%If (TQt_3_0_0 -)
+ TQSimpleRichText(const TQSimpleRichText &);
%End
};
diff --git a/sip/qt/qsize.sip b/sip/qt/qsize.sip
index d802413..e2f570d 100644
--- a/sip/qt/qsize.sip
+++ b/sip/qt/qsize.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QSize.
+// This is the SIP interface definition for TQSize.
//
// 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>QSize</Title>
+<Sect2><Title>TQSize</Title>
<Para>
The Python
<Literal>+</Literal>, <Literal>+=</Literal>,
@@ -33,7 +33,7 @@ operators are supported.
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rheight</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rheight</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -41,7 +41,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QCOORD &amp;<Function>rwidth</Function></FuncDef>
+ <FuncDef>TQCOORD &amp;<Function>rwidth</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -51,14 +51,14 @@ Not implemented.
%End
-class QSize
+class TQSize
{
%TypeHeaderCode
#include <qsize.h>
%End
public:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum ScaleMode {
ScaleFree,
ScaleMin,
@@ -66,8 +66,8 @@ public:
};
%End
- QSize();
- QSize(int,int);
+ TQSize();
+ TQSize(int,int);
bool isNull() const;
bool isEmpty() const;
@@ -79,22 +79,22 @@ public:
void setHeight(int);
void transpose();
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void scale(int,int,ScaleMode);
- void scale(const QSize &,ScaleMode);
+ void scale(const TQSize &,ScaleMode);
%End
- QSize expandedTo(const QSize &) const;
- QSize boundedTo(const QSize &) const;
-// QCOORD &rwidth();
-// QCOORD &rheight();
+ TQSize expandedTo(const TQSize &) const;
+ TQSize boundedTo(const TQSize &) const;
+// TQCOORD &rwidth();
+// TQCOORD &rheight();
- QSize &operator+=(const QSize &);
- QSize &operator-=(const QSize &);
- QSize &operator*=(int /Constrained/);
- QSize &operator*=(double);
- QSize &operator/=(int /Constrained/);
- QSize &operator/=(double);
+ TQSize &operator+=(const TQSize &);
+ TQSize &operator-=(const TQSize &);
+ TQSize &operator*=(int /Constrained/);
+ TQSize &operator*=(double);
+ TQSize &operator/=(int /Constrained/);
+ TQSize &operator/=(double);
int __nonzero__() const;
%MethodCode
@@ -102,11 +102,11 @@ public:
%End
};
-bool operator==(const QSize &,const QSize &);
-bool operator!=(const QSize &,const QSize &);
-const QSize operator+(const QSize &,const QSize &);
-const QSize operator-(const QSize &,const QSize &);
-const QSize operator*(const QSize &,int /Constrained/);
-const QSize operator*(const QSize &,double);
-const QSize operator/(const QSize &,int /Constrained/);
-const QSize operator/(const QSize &,double);
+bool operator==(const TQSize &,const TQSize &);
+bool operator!=(const TQSize &,const TQSize &);
+const TQSize operator+(const TQSize &,const TQSize &);
+const TQSize operator-(const TQSize &,const TQSize &);
+const TQSize operator*(const TQSize &,int /Constrained/);
+const TQSize operator*(const TQSize &,double);
+const TQSize operator/(const TQSize &,int /Constrained/);
+const TQSize operator/(const TQSize &,double);
diff --git a/sip/qt/qsizegrip.sip b/sip/qt/qsizegrip.sip
index af21e94..f88f7dd 100644
--- a/sip/qt/qsizegrip.sip
+++ b/sip/qt/qsizegrip.sip
@@ -1,58 +1,58 @@
-// This is the SIP interface definition for QSizeGrip.
+// This is the SIP interface definition for TQSizeGrip.
//
// 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>QSizeGrip (Qt v2+)</Title>
+<Sect2><Title>TQSizeGrip (TQt v2+)</Title>
<Para>
-<Literal>QSizeGrip</Literal> is fully implemented.
+<Literal>TQSizeGrip</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
-%If (Qt_SIZEGRIP)
+%If (TQt_2_00 -)
+%If (TQt_SIZEGRIP)
-class QSizeGrip : QWidget
+class TQSizeGrip : TQWidget
{
%TypeHeaderCode
#include <qsizegrip.h>
%End
public:
- QSizeGrip(QWidget * /TransferThis/,const char * = 0);
+ TQSizeGrip(TQWidget * /TransferThis/,const char * = 0);
- QSize sizeHint() const;
-%If (- Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+ TQSize sizeHint() const;
+%If (- TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
protected:
- void paintEvent(QPaintEvent *);
- void mousePressEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
+ void paintEvent(TQPaintEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
-%If (Qt_3_0_0 -)
- bool eventFilter(QObject *,QEvent *);
+%If (TQt_3_0_0 -)
+ bool eventFilter(TQObject *,TQEvent *);
%End
};
diff --git a/sip/qt/qsizepolicy.sip b/sip/qt/qsizepolicy.sip
index c26b54a..7fb1d75 100644
--- a/sip/qt/qsizepolicy.sip
+++ b/sip/qt/qsizepolicy.sip
@@ -1,37 +1,37 @@
-// This is the SIP interface definition for QSizePolicy.
+// This is the SIP interface definition for TQSizePolicy.
//
// 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>QSizePolicy (Qt v2+)</Title>
+<Sect2><Title>TQSizePolicy (TQt v2+)</Title>
<Para>
-<Literal>QSizePolicy</Literal> is fully implemented.
+<Literal>TQSizePolicy</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QSizePolicy
+class TQSizePolicy
{
%TypeHeaderCode
#include <qsizepolicy.h>
@@ -46,7 +46,7 @@ public:
Preferred,
MinimumExpanding,
Expanding,
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Ignored
%End
};
@@ -54,23 +54,23 @@ public:
enum ExpandData
{
NoDirection,
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Horizontally,
Vertically,
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
Horizontal,
Vertical,
%End
BothDirections
};
- QSizePolicy();
- QSizePolicy(SizeType,SizeType,bool = 0);
-%If (Qt_3_0_0 -)
- // Note that Qt defines the 2nd and 3rd parameters as uchar, but it's
+ TQSizePolicy();
+ TQSizePolicy(SizeType,SizeType,bool = 0);
+%If (TQt_3_0_0 -)
+ // Note that TQt defines the 2nd and 3rd parameters as uchar, but it's
// really using them as numbers, not characters.
- QSizePolicy(SizeType,SizeType,uint,uint,bool = 0);
+ TQSizePolicy(SizeType,SizeType,uint,uint,bool = 0);
%End
SizeType horData() const;
@@ -89,13 +89,13 @@ public:
void setHeightForWidth(bool);
bool hasHeightForWidth() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
uint horStretch() const;
uint verStretch() const;
void setHorStretch(uint);
void setVerStretch(uint);
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void transpose();
%End
};
diff --git a/sip/qt/qslider.sip b/sip/qt/qslider.sip
index 9560216..513eb38 100644
--- a/sip/qt/qslider.sip
+++ b/sip/qt/qslider.sip
@@ -1,42 +1,42 @@
-// This is the SIP interface definition for QSlider.
+// This is the SIP interface definition for TQSlider.
//
// 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>QSlider</Title>
+<Sect2><Title>TQSlider</Title>
<Para>
-<Literal>QSlider</Literal> is fully implemented.
+<Literal>TQSlider</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QSlider : QWidget, QRangeControl
+class TQSlider : TQWidget, TQRangeControl
{
%TypeHeaderCode
#include <qslider.h>
%End
public:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
enum Orientation {
Horizontal,
Vertical
@@ -52,53 +52,53 @@ public:
Both = 3
};
-%If (- Qt_2_00)
- QSlider(QWidget * /TransferThis/ = 0,const char * = 0);
- QSlider(Orientation,QWidget * /TransferThis/ = 0,const char * = 0);
- QSlider(int,int,int,int,Orientation,QWidget * /TransferThis/ = 0,const char * = 0);
+%If (- TQt_2_00)
+ TQSlider(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQSlider(Orientation,TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQSlider(int,int,int,int,Orientation,TQWidget * /TransferThis/ = 0,const char * = 0);
%End
-%If (Qt_2_00 -)
- QSlider(QWidget * /TransferThis/,const char * = 0);
- QSlider(Orientation,QWidget * /TransferThis/,const char * = 0);
- QSlider(int,int,int,int,Orientation,QWidget * /TransferThis/,const char * = 0);
+%If (TQt_2_00 -)
+ TQSlider(TQWidget * /TransferThis/,const char * = 0);
+ TQSlider(Orientation,TQWidget * /TransferThis/,const char * = 0);
+ TQSlider(int,int,int,int,Orientation,TQWidget * /TransferThis/,const char * = 0);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setOrientation(Orientation);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setOrientation(Orientation);
%End
Orientation orientation() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setTracking(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setTracking(bool);
%End
bool tracking() const;
-%If (- Qt_2_00)
- void setPalette(const QPalette &);
+%If (- TQt_2_00)
+ void setPalette(const TQPalette &);
%End
-%If (Qt_2_00 -)
- virtual void setPalette(const QPalette &);
+%If (TQt_2_00 -)
+ virtual void setPalette(const TQPalette &);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int sliderStart() const;
%End
- QRect sliderRect() const;
- QSize sizeHint() const;
-%If (Qt_3_1_0 -)
- void setSizePolicy(QSizePolicy);
+ TQRect sliderRect() const;
+ TQSize sizeHint() const;
+%If (TQt_3_1_0 -)
+ void setSizePolicy(TQSizePolicy);
%End
-%If (Qt_3_2_0 -)
- void setSizePolicy(QSizePolicy::SizeType,QSizePolicy::SizeType,
+%If (TQt_3_2_0 -)
+ void setSizePolicy(TQSizePolicy::SizeType,TQSizePolicy::SizeType,
bool = 0);
%End
-%If (Qt_2_00 -)
- QSizePolicy sizePolicy() const;
- QSize minimumSizeHint() const;
+%If (TQt_2_00 -)
+ TQSizePolicy sizePolicy() const;
+ TQSize minimumSizeHint() const;
%End
virtual void setTickmarks(TickSetting);
@@ -107,7 +107,7 @@ public:
virtual void setTickInterval(int);
int tickInterval() const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
int minValue() const;
int maxValue() const;
void setMinValue(int);
@@ -120,15 +120,15 @@ public:
%End
public slots:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setValue(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setValue(int);
%End
void addStep();
void subtractStep();
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void addLine();
void subtractLine();
%End
@@ -140,48 +140,48 @@ signals:
void sliderReleased();
protected:
- void resizeEvent(QResizeEvent *);
- void paintEvent(QPaintEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void paintEvent(TQPaintEvent *);
- void keyPressEvent(QKeyEvent *);
- void mousePressEvent(QMouseEvent *);
- void mouseReleaseEvent(QMouseEvent *);
- void mouseMoveEvent(QMouseEvent *);
-%If (Qt_2_00 -)
- void wheelEvent(QWheelEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void mousePressEvent(TQMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void mouseMoveEvent(TQMouseEvent *);
+%If (TQt_2_00 -)
+ void wheelEvent(TQWheelEvent *);
%End
- void focusInEvent(QFocusEvent *);
-%If (Qt_2_00 -)
- void focusOutEvent(QFocusEvent *);
+ void focusInEvent(TQFocusEvent *);
+%If (TQt_2_00 -)
+ void focusOutEvent(TQFocusEvent *);
%End
-%If (Qt_2_00 -)
- void styleChange(QStyle &);
+%If (TQt_2_00 -)
+ void styleChange(TQStyle &);
%End
void valueChange();
void rangeChange();
-%If (- Qt_3_0_0)
- void drawWinGroove(QPainter *,QCOORD);
- void drawTicks(QPainter *,int,int,int = 1) const;
+%If (- TQt_3_0_0)
+ void drawWinGroove(TQPainter *,TQCOORD);
+ void drawTicks(TQPainter *,int,int,int = 1) const;
virtual int thickness() const;
%End
-%If (- Qt_2_00)
- virtual void paintSlider(QPainter *,const QRect &);
+%If (- TQt_2_00)
+ virtual void paintSlider(TQPainter *,const TQRect &);
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
void updateMask();
- virtual void paintSlider(QPainter *,const QColorGroup &,const QRect &);
- void drawTicks(QPainter *,const QColorGroup &,int,int,int = 1) const;
+ virtual void paintSlider(TQPainter *,const TQColorGroup &,const TQRect &);
+ void drawTicks(TQPainter *,const TQColorGroup &,int,int,int = 1) const;
%End
private:
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
int positionFromValue(int) const;
int valueFromPosition(int) const;
%End
- QSlider(const QSlider &);
+ TQSlider(const TQSlider &);
};
diff --git a/sip/qt/qsocketnotifier.sip b/sip/qt/qsocketnotifier.sip
index 1f1527a..ae93ec3 100644
--- a/sip/qt/qsocketnotifier.sip
+++ b/sip/qt/qsocketnotifier.sip
@@ -1,35 +1,35 @@
-// This is the SIP interface definition for QSocketNotifier.
+// This is the SIP interface definition for TQSocketNotifier.
//
// 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>QSocketNotifier</Title>
+<Sect2><Title>TQSocketNotifier</Title>
<Para>
-<Literal>QSocketNotifier</Literal> is fully implemented.
+<Literal>TQSocketNotifier</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QSocketNotifier : QObject
+class TQSocketNotifier : TQObject
{
%TypeHeaderCode
#include <qsocketnotifier.h>
@@ -42,16 +42,16 @@ public:
Exception
};
- QSocketNotifier(int,Type,QObject * /TransferThis/ = 0,const char * = 0);
+ TQSocketNotifier(int,Type,TQObject * /TransferThis/ = 0,const char * = 0);
int socket() const;
Type type() const;
bool isEnabled() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setEnabled(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setEnabled(bool);
%End
@@ -59,8 +59,8 @@ signals:
void activated(int);
protected:
- bool event(QEvent *);
+ bool event(TQEvent *);
private:
- QSocketNotifier(const QSocketNotifier &);
+ TQSocketNotifier(const TQSocketNotifier &);
};
diff --git a/sip/qt/qsound.sip b/sip/qt/qsound.sip
index 8cdbb1b..8b6a944 100644
--- a/sip/qt/qsound.sip
+++ b/sip/qt/qsound.sip
@@ -1,66 +1,66 @@
-// This is the SIP interface definition for QSound.
+// This is the SIP interface definition for TQSound.
//
// 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>QSound (Qt v2.2+)</Title>
+<Sect2><Title>TQSound (TQt v2.2+)</Title>
<Para>
-<Literal>QSound</Literal> is fully implemented.
+<Literal>TQSound</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_SOUND)
-%If (Qt_2_2_0 -)
+%If (TQt_SOUND)
+%If (TQt_2_2_0 -)
-class QSound : QObject
+class TQSound : TQObject
{
%TypeHeaderCode
#include <qsound.h>
%End
public:
- QSound(const QString &,QObject * /TransferThis/ = 0,const char * = 0);
+ TQSound(const TQString &,TQObject * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
static bool available();
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
static bool isAvailable();
%End
- static void play(const QString &);
+ static void play(const TQString &);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int loops() const;
int loopsRemaining() const;
void setLoops(int);
- QString fileName() const;
+ TQString fileName() const;
bool isFinished() const;
%End
public slots:
void play();
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void stop();
%End
};
diff --git a/sip/qt/qspinbox.sip b/sip/qt/qspinbox.sip
index fad9621..1f9025e 100644
--- a/sip/qt/qspinbox.sip
+++ b/sip/qt/qspinbox.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QSpinBox.
+// This is the SIP interface definition for TQSpinBox.
//
// 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>QSpinBox</Title>
+<Sect2><Title>TQSpinBox</Title>
<FuncSynopsis>
<FuncDef>virtual int <Function>mapTextToValue</Function></FuncDef>
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
@@ -34,26 +34,26 @@ This returns a tuple of the <Literal>int</Literal> result and the modified
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QSpinBox : QWidget, QRangeControl
+class TQSpinBox : TQWidget, TQRangeControl
{
%TypeHeaderCode
#include <qspinbox.h>
%End
public:
- QSpinBox(QWidget * /TransferThis/ = 0,const char * = 0);
- QSpinBox(int,int,int = 1,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQSpinBox(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQSpinBox(int,int,int = 1,TQWidget * /TransferThis/ = 0,const char * = 0);
- QString text() const;
+ TQString text() const;
- virtual QString prefix() const;
- virtual QString suffix() const;
- virtual QString cleanText() const;
+ virtual TQString prefix() const;
+ virtual TQString suffix() const;
+ virtual TQString cleanText() const;
- virtual void setSpecialValueText(const QString &);
- QString specialValueText() const;
+ virtual void setSpecialValueText(const TQString &);
+ TQString specialValueText() const;
virtual void setWrapping(bool);
bool wrapping() const;
@@ -66,11 +66,11 @@ public:
virtual void setButtonSymbols(ButtonSymbols);
ButtonSymbols buttonSymbols() const;
- virtual void setValidator(const QValidator *);
- const QValidator *validator() const;
+ virtual void setValidator(const TQValidator *);
+ const TQValidator *validator() const;
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
int minValue() const;
int maxValue() const;
@@ -80,13 +80,13 @@ public:
void setLineStep(int);
int value() const;
- QRect upRect() const;
- QRect downRect() const;
+ TQRect upRect() const;
+ TQRect downRect() const;
public slots:
virtual void setValue(int);
- virtual void setPrefix(const QString &);
- virtual void setSuffix(const QString &);
+ virtual void setPrefix(const TQString &);
+ virtual void setSuffix(const TQString &);
virtual void stepUp();
virtual void stepDown();
virtual void setEnabled(bool);
@@ -94,104 +94,104 @@ public slots:
signals:
void valueChanged(int);
- void valueChanged(const QString &);
+ void valueChanged(const TQString &);
protected:
- virtual QString mapValueToText(int);
+ virtual TQString mapValueToText(int);
virtual int mapTextToValue(bool *);
- QString currentValueText();
+ TQString currentValueText();
virtual void updateDisplay();
virtual void interpretText();
- QLineEdit *editor() const;
+ TQLineEdit *editor() const;
virtual void valueChange();
virtual void rangeChange();
- bool eventFilter(QObject *,QEvent *);
- void resizeEvent(QResizeEvent *);
- void wheelEvent(QWheelEvent *);
- void leaveEvent(QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void wheelEvent(TQWheelEvent *);
+ void leaveEvent(TQEvent *);
- void styleChange(QStyle &);
+ void styleChange(TQStyle &);
protected slots:
void textChanged();
private:
- QSpinBox(const QSpinBox &);
+ TQSpinBox(const TQSpinBox &);
};
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
-class QSpinBox : QFrame, QRangeControl
+class TQSpinBox : TQFrame, TQRangeControl
{
%TypeHeaderCode
#include <qspinbox.h>
%End
public:
- QSpinBox(QWidget * /TransferThis/ = 0,const char * = 0);
- QSpinBox(int,int,int = 1,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQSpinBox(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQSpinBox(int,int,int = 1,TQWidget * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *text() const;
virtual const char *prefix() const;
virtual const char *suffix() const;
%End
-%If (Qt_2_00 -)
- QString text() const;
+%If (TQt_2_00 -)
+ TQString text() const;
- virtual QString prefix() const;
- virtual QString suffix() const;
+ virtual TQString prefix() const;
+ virtual TQString suffix() const;
%End
- virtual QString cleanText() const;
+ virtual TQString cleanText() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setSpecialValueText(const char *);
const char *specialValueText() const;
void setWrapping(bool);
%End
-%If (Qt_2_00 -)
- virtual void setSpecialValueText(const QString &);
- QString specialValueText() const;
+%If (TQt_2_00 -)
+ virtual void setSpecialValueText(const TQString &);
+ TQString specialValueText() const;
virtual void setWrapping(bool);
%End
bool wrapping() const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
enum ButtonSymbols {
UpDownArrows,
PlusMinus
};
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setButtonSymbols(ButtonSymbols);
ButtonSymbols buttonSymbols() const;
%End
-%If (- Qt_2_00)
- void setValidator(QValidator *);
+%If (- TQt_2_00)
+ void setValidator(TQValidator *);
%End
-%If (Qt_2_00 -)
- virtual void setValidator(const QValidator *);
- const QValidator *validator() const;
+%If (TQt_2_00 -)
+ virtual void setValidator(const TQValidator *);
+ const TQValidator *validator() const;
%End
- QSize sizeHint() const;
-%If (Qt_2_00 -)
- QSizePolicy sizePolicy() const;
+ TQSize sizeHint() const;
+%If (TQt_2_00 -)
+ TQSizePolicy sizePolicy() const;
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
int minValue() const;
int maxValue() const;
void setMinValue(int);
@@ -203,66 +203,66 @@ public:
public slots:
virtual void setValue(int);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
virtual void setPrefix(const char *);
virtual void setSuffix(const char *);
%End
-%If (Qt_2_00 -)
- virtual void setPrefix(const QString &);
- virtual void setSuffix(const QString &);
+%If (TQt_2_00 -)
+ virtual void setPrefix(const TQString &);
+ virtual void setSuffix(const TQString &);
%End
virtual void stepUp();
virtual void stepDown();
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setEnabled(bool);
%End
signals:
void valueChanged(int);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void valueChanged(const char *);
%End
-%If (Qt_2_00 -)
- void valueChanged(const QString &);
+%If (TQt_2_00 -)
+ void valueChanged(const TQString &);
%End
protected:
- virtual QString mapValueToText(int);
+ virtual TQString mapValueToText(int);
virtual int mapTextToValue(bool *);
- QString currentValueText();
+ TQString currentValueText();
virtual void updateDisplay();
virtual void interpretText();
- QPushButton *upButton() const;
- QPushButton *downButton() const;
+ TQPushButton *upButton() const;
+ TQPushButton *downButton() const;
- QLineEdit *editor() const;
+ TQLineEdit *editor() const;
virtual void valueChange();
virtual void rangeChange();
- bool eventFilter(QObject *,QEvent *);
- void resizeEvent(QResizeEvent *);
-%If (- Qt_2_00)
- void paletteChange(const QPalette &);
+ bool eventFilter(TQObject *,TQEvent *);
+ void resizeEvent(TQResizeEvent *);
+%If (- TQt_2_00)
+ void paletteChange(const TQPalette &);
void enabledChange(bool);
- void fontChange(const QFont &);
+ void fontChange(const TQFont &);
void styleChange(GUIStyle);
%End
-%If (Qt_2_00 -)
- void wheelEvent(QWheelEvent *);
- void styleChange(QStyle &);
+%If (TQt_2_00 -)
+ void wheelEvent(TQWheelEvent *);
+ void styleChange(TQStyle &);
%End
-%If (Qt_2_1_0 -)
- void leaveEvent(QEvent *);
+%If (TQt_2_1_0 -)
+ void leaveEvent(TQEvent *);
%End
protected slots:
void textChanged();
private:
- QSpinBox(const QSpinBox &);
+ TQSpinBox(const TQSpinBox &);
};
%End
diff --git a/sip/qt/qsplashscreen.sip b/sip/qt/qsplashscreen.sip
index 8277f11..69d2f5c 100644
--- a/sip/qt/qsplashscreen.sip
+++ b/sip/qt/qsplashscreen.sip
@@ -1,61 +1,61 @@
-// This is the SIP interface definition for QSplashScreen.
+// This is the SIP interface definition for TQSplashScreen.
//
// 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>QSplashScreen (Qt v3.2.0+)</Title>
+<Sect2><Title>TQSplashScreen (TQt v3.2.0+)</Title>
<Para>
-<Literal>QSplashScreen</Literal> is fully implemented.
+<Literal>TQSplashScreen</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
-class QSplashScreen : QWidget
+class TQSplashScreen : TQWidget
{
%TypeHeaderCode
#include <qsplashscreen.h>
%End
public:
- QSplashScreen(const QPixmap & = QPixmap(),WFlags = 0);
- virtual ~QSplashScreen();
+ TQSplashScreen(const TQPixmap & = TQPixmap(),WFlags = 0);
+ virtual ~TQSplashScreen();
- void setPixmap(const QPixmap &);
- QPixmap *pixmap() const;
- void finish(QWidget *);
+ void setPixmap(const TQPixmap &);
+ TQPixmap *pixmap() const;
+ void finish(TQWidget *);
void repaint();
public slots:
- void message(const QString &,int = AlignLeft,const QColor & = Qt::black);
+ void message(const TQString &,int = AlignLeft,const TQColor & = TQt::black);
void clear();
signals:
- void messageChanged(const QString &);
+ void messageChanged(const TQString &);
protected:
- virtual void drawContents(QPainter *);
- void mousePressEvent(QMouseEvent *);
+ virtual void drawContents(TQPainter *);
+ void mousePressEvent(TQMouseEvent *);
};
%End
diff --git a/sip/qt/qsplitter.sip b/sip/qt/qsplitter.sip
index 167f8fc..b27ce7b 100644
--- a/sip/qt/qsplitter.sip
+++ b/sip/qt/qsplitter.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QSplitter.
+// This is the SIP interface definition for TQSplitter.
//
// 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>QSplitter</Title>
+<Sect2><Title>TQSplitter</Title>
<FuncSynopsis>
<FuncDef>void <Function>getRange</Function></FuncDef>
<ParamDef>int <Parameter>id</Parameter></ParamDef>
@@ -30,22 +30,22 @@
</FuncSynopsis>
<Para>
This takes the <Literal>id</Literal> parameter and returns the
-<Literal>min</Literal> and <Literal>max</Literal> values as a tuple. (Qt v2+)
+<Literal>min</Literal> and <Literal>max</Literal> values as a tuple. (TQt v2+)
</Para>
</Sect2>
%End
-%If (Qt_SPLITTER)
+%If (TQt_SPLITTER)
-class QSplitter : QFrame
+class TQSplitter : TQFrame
{
%TypeHeaderCode
#include <qsplitter.h>
%End
public:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
enum Orientation {
Horizontal,
Vertical
@@ -55,105 +55,105 @@ public:
enum ResizeMode {
Stretch,
KeepSize,
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
FollowSizeHint,
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
Auto
%End
};
- QSplitter(QWidget * /TransferThis/ = 0,const char * = 0);
- QSplitter(Orientation,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQSplitter(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQSplitter(Orientation,TQWidget * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setOrientation(Orientation);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setOrientation(Orientation);
%End
Orientation orientation() const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void setChildrenCollapsible(bool);
bool childrenCollapsible() const;
- void setCollapsible(QWidget *,bool);
+ void setCollapsible(TQWidget *,bool);
%End
-%If (- Qt_2_00)
- void setResizeMode(QWidget *,ResizeMode);
+%If (- TQt_2_00)
+ void setResizeMode(TQWidget *,ResizeMode);
void setOpaqueResize(bool = 1);
%End
-%If (Qt_2_00 -)
- virtual void setResizeMode(QWidget *,ResizeMode);
+%If (TQt_2_00 -)
+ virtual void setResizeMode(TQWidget *,ResizeMode);
virtual void setOpaqueResize(bool = 1);
%End
bool opaqueResize() const;
- void moveToFirst(QWidget *);
- void moveToLast(QWidget *);
+ void moveToFirst(TQWidget *);
+ void moveToLast(TQWidget *);
void refresh();
-%If (Qt_2_00 -)
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+%If (TQt_2_00 -)
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+%If (TQt_2_00 - TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
-%If (Qt_2_00 -)
- QValueList<int> sizes() const;
- void setSizes(QValueList<int>);
+%If (TQt_2_00 -)
+ TQValueList<int> sizes() const;
+ void setSizes(TQValueList<int>);
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
int handleWidth() const;
void setHandleWidth(int);
%End
-%If (- Qt_2_00)
- bool event(QEvent *);
+%If (- TQt_2_00)
+ bool event(TQEvent *);
%End
protected:
-%If (Qt_2_00 -)
- void childEvent(QChildEvent *);
+%If (TQt_2_00 -)
+ void childEvent(TQChildEvent *);
- bool event(QEvent *);
+ bool event(TQEvent *);
%End
- void resizeEvent(QResizeEvent *);
+ void resizeEvent(TQResizeEvent *);
-%If (- Qt_2_00)
- void childInsertEvent(QChildEvent *);
- void childRemoveEvent(QChildEvent *);
- void layoutHintEvent(QEvent *);
+%If (- TQt_2_00)
+ void childInsertEvent(TQChildEvent *);
+ void childRemoveEvent(TQChildEvent *);
+ void layoutHintEvent(TQEvent *);
- void moveSplitter(QCOORD);
+ void moveSplitter(TQCOORD);
%End
-%If (Qt_2_00 -)
- int idAfter(QWidget *) const;
+%If (TQt_2_00 -)
+ int idAfter(TQWidget *) const;
- void moveSplitter(QCOORD,int);
+ void moveSplitter(TQCOORD,int);
%End
- virtual void drawSplitter(QPainter *,QCOORD,QCOORD,QCOORD,QCOORD);
-%If (Qt_2_1_0 -)
- void styleChange(QStyle &);
+ virtual void drawSplitter(TQPainter *,TQCOORD,TQCOORD,TQCOORD,TQCOORD);
+%If (TQt_2_1_0 -)
+ void styleChange(TQStyle &);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
int adjustPos(int);
void setRubberband(int);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
int adjustPos(int,int);
virtual void setRubberband(int);
void getRange(int,int *,int *);
%End
private:
-%If (Qt_2_1_0 -)
- QSplitter(const QSplitter &);
+%If (TQt_2_1_0 -)
+ TQSplitter(const TQSplitter &);
%End
};
diff --git a/sip/qt/qstatusbar.sip b/sip/qt/qstatusbar.sip
index 4e1f704..5ab47fd 100644
--- a/sip/qt/qstatusbar.sip
+++ b/sip/qt/qstatusbar.sip
@@ -1,94 +1,94 @@
-// This is the SIP interface definition for QStatusBar.
+// This is the SIP interface definition for TQStatusBar.
//
// 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>QStatusBar</Title>
+<Sect2><Title>TQStatusBar</Title>
<Para>
-<Literal>QStatusBar</Literal> is fully implemented.
+<Literal>TQStatusBar</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QStatusBar : QWidget
+class TQStatusBar : TQWidget
{
%TypeHeaderCode
#include <qstatusbar.h>
%End
public:
- QStatusBar(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQStatusBar(TQWidget * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_2_1_0)
- void addWidget(QWidget * /Transfer/,int,bool = 0);
+%If (- TQt_2_1_0)
+ void addWidget(TQWidget * /Transfer/,int,bool = 0);
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
- void addWidget(QWidget * /Transfer/,int = 0,bool = 0);
+%If (TQt_2_1_0 - TQt_3_0_0)
+ void addWidget(TQWidget * /Transfer/,int = 0,bool = 0);
%End
-%If (Qt_3_0_0 -)
- virtual void addWidget(QWidget * /Transfer/,int = 0,bool = 0);
+%If (TQt_3_0_0 -)
+ virtual void addWidget(TQWidget * /Transfer/,int = 0,bool = 0);
%End
-%If (- Qt_3_0_0)
- void removeWidget(QWidget * /TransferBack/);
+%If (- TQt_3_0_0)
+ void removeWidget(TQWidget * /TransferBack/);
%End
-%If (Qt_3_0_0 -)
- virtual void removeWidget(QWidget * /TransferBack/);
+%If (TQt_3_0_0 -)
+ virtual void removeWidget(TQWidget * /TransferBack/);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setSizeGripEnabled(bool);
bool isSizeGripEnabled() const;
%End
public slots:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void message(const char *);
void message(const char *,int);
%End
-%If (Qt_2_00 -)
- void message(const QString &);
- void message(const QString &,int);
+%If (TQt_2_00 -)
+ void message(const TQString &);
+ void message(const TQString &,int);
%End
void clear();
signals:
-%If (Qt_3_1_0 -)
- void messageChanged(const QString &);
+%If (TQt_3_1_0 -)
+ void messageChanged(const TQString &);
%End
protected:
- void paintEvent(QPaintEvent *);
-%If (Qt_2_1_0 -)
- void resizeEvent(QResizeEvent *);
+ void paintEvent(TQPaintEvent *);
+%If (TQt_2_1_0 -)
+ void resizeEvent(TQResizeEvent *);
%End
void reformat();
void hideOrShow();
-%If (Qt_2_1_0 -)
- bool event(QEvent *);
+%If (TQt_2_1_0 -)
+ bool event(TQEvent *);
%End
private:
-%If (Qt_2_1_0 -)
- QStatusBar(const QStatusBar &);
+%If (TQt_2_1_0 -)
+ TQStatusBar(const TQStatusBar &);
%End
};
diff --git a/sip/qt/qstring.sip b/sip/qt/qstring.sip
index f0097f4..3b49341 100644
--- a/sip/qt/qstring.sip
+++ b/sip/qt/qstring.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QChar and QString.
+// This is the SIP interface definition for TQChar and TQString.
//
// 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>QChar (Qt v2+)</Title>
+<Sect2><Title>TQChar (TQt v2+)</Title>
<FuncSynopsis>
<FuncDef>uchar &<Function>cell</Function> const</FuncDef>
<ParamDef></ParamDef>
@@ -39,10 +39,10 @@ Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QString</Title>
+<Sect2><Title>TQString</Title>
<Para>
A Python string object (or Unicode object) can be used whenever a
-<Literal>QString</Literal> can be used. A <Literal>QString</Literal> can be
+<Literal>TQString</Literal> can be used. A <Literal>TQString</Literal> can be
converted to a Python string object using the Python <Literal>str()</Literal>
function, and to a Python Unicode object using the Python
<Literal>unicode()</Literal> function.
@@ -56,40 +56,40 @@ comparison operators are supported.
</Para>
<FuncSynopsis>
- <FuncDef>QCharRef <Function>at</Function></FuncDef>
+ <FuncDef>TQCharRef <Function>at</Function></FuncDef>
<ParamDef>uint <Parameter>i</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2+)
+Not yet implemented. (TQt v2+)
</Para>
<FuncSynopsis>
- <FuncDef>QChar <Function>constref</Function> const</FuncDef>
+ <FuncDef>TQChar <Function>constref</Function> const</FuncDef>
<ParamDef>uint <Parameter>i</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2+)
+Not yet implemented. (TQt v2+)
</Para>
<FuncSynopsis>
- <FuncDef>QChar &<Function>ref</Function></FuncDef>
+ <FuncDef>TQChar &<Function>ref</Function></FuncDef>
<ParamDef>uint <Parameter>i</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2+)
+Not yet implemented. (TQt v2+)
</Para>
<FuncSynopsis>
- <FuncDef>QString &<Function>setUnicodeCodes</Function></FuncDef>
+ <FuncDef>TQString &<Function>setUnicodeCodes</Function></FuncDef>
<ParamDef>const ushort *<Parameter>unicode_as_shorts</Parameter></ParamDef>
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v2.1+)
+Not yet implemented. (TQt v2.1+)
</Para>
<FuncSynopsis>
- <FuncDef>QString &<Function>sprintf</Function></FuncDef>
+ <FuncDef>TQString &<Function>sprintf</Function></FuncDef>
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
<ParamDef>...</ParamDef>
</FuncSynopsis>
@@ -172,34 +172,34 @@ This returns a tuple of the <Literal>double</Literal> result and the
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QChar
+class TQChar
{
%TypeHeaderCode
#include <qstring.h>
%End
public:
- QChar();
- QChar(char);
-// QChar(uchar);
- QChar(uchar,uchar);
- QChar(const QChar &);
-// QChar(ushort);
-// QChar(short);
-// QChar(uint);
- QChar(int);
-
- static const QChar null;
- static const QChar replacement;
- static const QChar byteOrderMark;
- static const QChar byteOrderSwapped;
-%If (Qt_2_2_0 -)
- static const QChar nbsp;
-%End
-
-%If (- Qt_3_0_0)
+ TQChar();
+ TQChar(char);
+// TQChar(uchar);
+ TQChar(uchar,uchar);
+ TQChar(const TQChar &);
+// TQChar(ushort);
+// TQChar(short);
+// TQChar(uint);
+ TQChar(int);
+
+ static const TQChar null;
+ static const TQChar replacement;
+ static const TQChar byteOrderMark;
+ static const TQChar byteOrderSwapped;
+%If (TQt_2_2_0 -)
+ static const TQChar nbsp;
+%End
+
+%If (- TQt_3_0_0)
enum Category {
NoCategory,
@@ -241,7 +241,7 @@ public:
Symbol_Other
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum Category {
NoCategory,
@@ -284,7 +284,7 @@ public:
};
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
enum Direction {
DirL,
DirR,
@@ -299,7 +299,7 @@ public:
DirON
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum Direction {
DirL,
DirR,
@@ -351,7 +351,7 @@ public:
Center
};
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum CombiningClass {
Combining_BelowLeftAttached,
Combining_BelowAttached,
@@ -378,24 +378,24 @@ public:
%End
int digitValue() const;
- QChar lower() const;
- QChar upper() const;
+ TQChar lower() const;
+ TQChar upper() const;
Category category() const;
Direction direction() const;
Joining joining() const;
bool mirrored() const;
-%If (Qt_2_1_0 -)
- QChar mirroredChar() const;
+%If (TQt_2_1_0 -)
+ TQChar mirroredChar() const;
%End
-%If (- Qt_3_0_0)
- QString decomposition() const;
+%If (- TQt_3_0_0)
+ TQString decomposition() const;
%End
-%If (Qt_3_0_0 -)
- const QString &decomposition() const;
+%If (TQt_3_0_0 -)
+ const TQString &decomposition() const;
%End
Decomposition decompositionTag() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
unsigned char combiningClass() const;
%End
@@ -409,11 +409,11 @@ public:
bool isMark() const;
bool isLetter() const;
bool isNumber() const;
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
bool isLetterOrNumber() const;
%End
bool isDigit() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isSymbol() const;
%End
@@ -421,7 +421,7 @@ public:
// uchar& row();
uchar cell() const;
uchar row() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setCell(uchar);
void setRow(uchar);
%End
@@ -429,101 +429,101 @@ public:
static bool networkOrdered();
};
-bool operator==(QChar,char);
-bool operator==(QChar,QChar);
-bool operator!=(QChar,QChar);
-bool operator!=(QChar,char);
-bool operator<=(QChar,char);
-bool operator<=(QChar,QChar);
-bool operator>=(QChar,char);
-bool operator>=(QChar,QChar);
-bool operator<(QChar,char);
-bool operator<(QChar,QChar);
-bool operator>(QChar,char);
-bool operator>(QChar,QChar);
-
-
-class QString
+bool operator==(TQChar,char);
+bool operator==(TQChar,TQChar);
+bool operator!=(TQChar,TQChar);
+bool operator!=(TQChar,char);
+bool operator<=(TQChar,char);
+bool operator<=(TQChar,TQChar);
+bool operator>=(TQChar,char);
+bool operator>=(TQChar,TQChar);
+bool operator<(TQChar,char);
+bool operator<(TQChar,TQChar);
+bool operator>(TQChar,char);
+bool operator>(TQChar,TQChar);
+
+
+class TQString
{
%TypeHeaderCode
#include <qstring.h>
%End
public:
- QString();
- QString(QChar);
- QString(const QString &);
- QString(const QByteArray &);
-// QString(const QChar *,uint);
-// QString(const char *);
+ TQString();
+ TQString(TQChar);
+ TQString(const TQString &);
+ TQString(const TQByteArray &);
+// TQString(const TQChar *,uint);
+// TQString(const char *);
-%If (Qt_2_1_0 -)
- // This is how we implement QUrl::operator QString() const.
- QString(const QUrl &);
+%If (TQt_2_1_0 -)
+ // This is how we implement TQUrl::operator TQString() const.
+ TQString(const TQUrl &);
%End
-%If (Qt_3_0_0 -)
- // This is how we implement QKeySequence::operator QString() const.
- QString(const QKeySequence &);
+%If (TQt_3_0_0 -)
+ // This is how we implement TQKeySequence::operator TQString() const.
+ TQString(const TQKeySequence &);
- // This is how we implement QUuid::operator QString() const.
- QString(const QUuid &);
+ // This is how we implement TQUuid::operator TQString() const.
+ TQString(const TQUuid &);
%End
- static const QString null;
+ static const TQString null;
bool isNull() const;
bool isEmpty() const;
uint length() const;
void truncate(uint);
-%If (- Qt_3_0_0)
- void fill(QChar,int = -1);
-%End
-%If (Qt_3_0_0 -)
- QString &fill(QChar,int = -1);
-%End
- QString copy() const;
-
- QString arg(int /Constrained/,int = 0,int = 10) const;
- QString arg(double /Constrained/,int = 0,char = 'g',int = -1) const;
-%If (Qt_3_2_0 -)
-// QString arg(Q_LLONG,int = 0,int = 10) const;
-// QString arg(Q_ULLONG,int = 0,int = 10) const;
-%End
- QString arg(long,int = 0,int = 10) const;
- QString arg(ulong,int = 0,int = 10) const;
-// QString arg(uint,int = 0,int = 10) const;
-// QString arg(short,int = 0,int = 10) const;
-// QString arg(ushort,int = 0,int = 10) const;
- QString arg(char,int = 0) const;
- QString arg(QChar,int = 0) const;
- QString arg(const QString&,int = 0) const;
-%If (Qt_3_2_0 -)
- QString arg(const QString &,const QString &) const;
- QString arg(const QString &,const QString &,const QString &) const;
- QString arg(const QString &,const QString &,const QString &,
- const QString &) const;
-%End
-
-// QString &sprintf(const char *,...);
-
- int find(QChar,int = 0,bool = 1) const;
+%If (- TQt_3_0_0)
+ void fill(TQChar,int = -1);
+%End
+%If (TQt_3_0_0 -)
+ TQString &fill(TQChar,int = -1);
+%End
+ TQString copy() const;
+
+ TQString arg(int /Constrained/,int = 0,int = 10) const;
+ TQString arg(double /Constrained/,int = 0,char = 'g',int = -1) const;
+%If (TQt_3_2_0 -)
+// TQString arg(Q_LLONG,int = 0,int = 10) const;
+// TQString arg(Q_ULLONG,int = 0,int = 10) const;
+%End
+ TQString arg(long,int = 0,int = 10) const;
+ TQString arg(ulong,int = 0,int = 10) const;
+// TQString arg(uint,int = 0,int = 10) const;
+// TQString arg(short,int = 0,int = 10) const;
+// TQString arg(ushort,int = 0,int = 10) const;
+ TQString arg(char,int = 0) const;
+ TQString arg(TQChar,int = 0) const;
+ TQString arg(const TQString&,int = 0) const;
+%If (TQt_3_2_0 -)
+ TQString arg(const TQString &,const TQString &) const;
+ TQString arg(const TQString &,const TQString &,const TQString &) const;
+ TQString arg(const TQString &,const TQString &,const TQString &,
+ const TQString &) const;
+%End
+
+// TQString &sprintf(const char *,...);
+
+ int find(TQChar,int = 0,bool = 1) const;
int find(char,int = 0,bool = 1) const;
- int find(const QString &,int = 0,bool = 1) const;
- int find(const QRegExp &,int = 0) const;
+ int find(const TQString &,int = 0,bool = 1) const;
+ int find(const TQRegExp &,int = 0) const;
// int find(const char *,int = 0) const;
- int findRev(QChar,int = -1,bool = 1) const;
+ int findRev(TQChar,int = -1,bool = 1) const;
int findRev(char,int = -1,bool = 1) const;
- int findRev(const QString &,int = -1,bool = 1) const;
- int findRev(const QRegExp &,int = -1) const;
+ int findRev(const TQString &,int = -1,bool = 1) const;
+ int findRev(const TQRegExp &,int = -1) const;
// int findRev(const char *,int = -1) const;
- int contains(QChar,bool = 1) const;
+ int contains(TQChar,bool = 1) const;
int contains(char,bool = 1) const;
// int contains(const char *,bool = 1) const;
- int contains(const QString &,bool = 1) const;
- int contains(const QRegExp &) const;
+ int contains(const TQString &,bool = 1) const;
+ int contains(const TQRegExp &) const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum SectionFlags {
SectionDefault,
SectionSkipEmpty,
@@ -532,76 +532,76 @@ public:
SectionCaseInsensitiveSeps
};
- QString section(QChar,int,int = 0xffffffff,int = SectionDefault) const;
-// QString section(char,int,int = 0xffffffff,int = SectionDefault) const;
-// QString section(const char *,int,int = 0xffffffff,
+ TQString section(TQChar,int,int = 0xffffffff,int = SectionDefault) const;
+// TQString section(char,int,int = 0xffffffff,int = SectionDefault) const;
+// TQString section(const char *,int,int = 0xffffffff,
// int = SectionDefault) const;
- QString section(const QString &,int,int = 0xffffffff,
+ TQString section(const TQString &,int,int = 0xffffffff,
int = SectionDefault) const;
- QString section(const QRegExp &,int,int = 0xffffffff,
+ TQString section(const TQRegExp &,int,int = 0xffffffff,
int = SectionDefault) const;
%End
- QString left(uint) const;
- QString right(uint) const;
- QString mid(uint,uint = 0xffffffff) const;
- QString leftJustify(uint,QChar = ' ',bool = 0) const;
- QString rightJustify(uint,QChar = ' ',bool = 0) const;
- QString lower() const;
- QString upper() const;
- QString stripWhiteSpace() const;
- QString simplifyWhiteSpace() const;
-
- QString &insert(uint,const QString &);
-%If (Qt_3_2_0 -)
- QString &insert(uint,const QByteArray &);
-// QString &insert(uint,const char *);
-%End
- QString &insert(uint,QChar *,uint);
- QString &insert(uint,QChar);
- QString &insert(uint,char);
-
- QString &append(char);
-%If (Qt_2_2_0 -)
- QString &append(QChar);
-%End
- QString &append(const QString &);
- QString &prepend(char);
-%If (Qt_2_2_0 -)
- QString &prepend(QChar);
-%End
- QString &prepend(const QString &);
- QString &remove(uint,uint);
-%If (Qt_3_1_0 -)
- QString &remove(const QString &);
-%If (Qt_3_2_0 -)
- QString &remove(const QString &,bool);
-%End
- QString &remove(QChar);
- QString &remove(char);
- QString &remove(const QRegExp &);
-%End
- QString &replace(uint,uint,const QString &);
- QString &replace(uint,uint,const QChar *,uint);
-%If (Qt_3_1_0 -)
- QString &replace(uint,uint,QChar);
- QString &replace(uint,uint,char);
- QString &replace(QChar,const QString &);
-%If (Qt_3_2_0 -)
- QString &replace(QChar,const QString &,bool);
-%End
- QString &replace(char,const QString &);
-%If (Qt_3_2_0 -)
- QString &replace(char,const QString &,bool);
-%End
- QString &replace(const QString &,const QString &);
-%If (Qt_3_2_0 -)
- QString &replace(const QString &,const QString &,bool);
-%End
-%End
- QString &replace(const QRegExp &,const QString &);
-%If (Qt_3_1_0 -)
- QString &replace(QChar,QChar);
+ TQString left(uint) const;
+ TQString right(uint) const;
+ TQString mid(uint,uint = 0xffffffff) const;
+ TQString leftJustify(uint,TQChar = ' ',bool = 0) const;
+ TQString rightJustify(uint,TQChar = ' ',bool = 0) const;
+ TQString lower() const;
+ TQString upper() const;
+ TQString stripWhiteSpace() const;
+ TQString simplifyWhiteSpace() const;
+
+ TQString &insert(uint,const TQString &);
+%If (TQt_3_2_0 -)
+ TQString &insert(uint,const TQByteArray &);
+// TQString &insert(uint,const char *);
+%End
+ TQString &insert(uint,TQChar *,uint);
+ TQString &insert(uint,TQChar);
+ TQString &insert(uint,char);
+
+ TQString &append(char);
+%If (TQt_2_2_0 -)
+ TQString &append(TQChar);
+%End
+ TQString &append(const TQString &);
+ TQString &prepend(char);
+%If (TQt_2_2_0 -)
+ TQString &prepend(TQChar);
+%End
+ TQString &prepend(const TQString &);
+ TQString &remove(uint,uint);
+%If (TQt_3_1_0 -)
+ TQString &remove(const TQString &);
+%If (TQt_3_2_0 -)
+ TQString &remove(const TQString &,bool);
+%End
+ TQString &remove(TQChar);
+ TQString &remove(char);
+ TQString &remove(const TQRegExp &);
+%End
+ TQString &replace(uint,uint,const TQString &);
+ TQString &replace(uint,uint,const TQChar *,uint);
+%If (TQt_3_1_0 -)
+ TQString &replace(uint,uint,TQChar);
+ TQString &replace(uint,uint,char);
+ TQString &replace(TQChar,const TQString &);
+%If (TQt_3_2_0 -)
+ TQString &replace(TQChar,const TQString &,bool);
+%End
+ TQString &replace(char,const TQString &);
+%If (TQt_3_2_0 -)
+ TQString &replace(char,const TQString &,bool);
+%End
+ TQString &replace(const TQString &,const TQString &);
+%If (TQt_3_2_0 -)
+ TQString &replace(const TQString &,const TQString &,bool);
+%End
+%End
+ TQString &replace(const TQRegExp &,const TQString &);
+%If (TQt_3_1_0 -)
+ TQString &replace(TQChar,TQChar);
%End
short toShort(bool * = 0,int = 10) const;
@@ -610,56 +610,56 @@ public:
uint toUInt(bool * = 0,int = 10) const;
long toLong(bool * = 0,int = 10) const;
ulong toULong(bool * = 0,int = 10) const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
// Q_LLONG toLongLong(bool * = 0,int = 10) const;
// Q_ULLONG toULongLong(bool * = 0,int = 10) const;
%End
float toFloat(bool * = 0) const;
double toDouble(bool * = 0) const;
- QString &setNum(int /Constrained/,int = 10);
- QString &setNum(double /Constrained/,char = 'g',int = 6);
-// QString &setNum(short,int = 10);
-// QString &setNum(ushort,int = 10);
-// QString &setNum(uint,int = 10);
- QString &setNum(long,int = 10);
- QString &setNum(ulong,int = 10);
-%If (Qt_3_2_0 -)
-// QString &setNum(Q_LLONG,int = 10);
-// QString &setNum(Q_ULLONG,int = 10);
+ TQString &setNum(int /Constrained/,int = 10);
+ TQString &setNum(double /Constrained/,char = 'g',int = 6);
+// TQString &setNum(short,int = 10);
+// TQString &setNum(ushort,int = 10);
+// TQString &setNum(uint,int = 10);
+ TQString &setNum(long,int = 10);
+ TQString &setNum(ulong,int = 10);
+%If (TQt_3_2_0 -)
+// TQString &setNum(Q_LLONG,int = 10);
+// TQString &setNum(Q_ULLONG,int = 10);
%End
-// QString &setNum(float,char = 'g',int = 6);
+// TQString &setNum(float,char = 'g',int = 6);
- static QString number(int /Constrained/,int = 10);
- static QString number(double /Constrained/,char = 'g',int = 6);
- static QString number(long,int = 10);
- static QString number(ulong,int = 10);
-%If (Qt_3_2_0 -)
-// static QString number(Q_LLONG,int = 10);
-// static QString number(Q_ULLONG,int = 10);
+ static TQString number(int /Constrained/,int = 10);
+ static TQString number(double /Constrained/,char = 'g',int = 6);
+ static TQString number(long,int = 10);
+ static TQString number(ulong,int = 10);
+%If (TQt_3_2_0 -)
+// static TQString number(Q_LLONG,int = 10);
+// static TQString number(Q_ULLONG,int = 10);
%End
-// static QString number(uint,int = 10);
+// static TQString number(uint,int = 10);
- void setExpand(uint,QChar);
+ void setExpand(uint,TQChar);
- QString &operator+=(const QString &);
-%If (Qt_3_3_0 -)
- QString &operator+=(const QByteArray &);
+ TQString &operator+=(const TQString &);
+%If (TQt_3_3_0 -)
+ TQString &operator+=(const TQByteArray &);
%End
- QString &operator+=(QChar);
- //QString &operator+=(char);
+ TQString &operator+=(TQChar);
+ //TQString &operator+=(char);
- QString operator*(int);
+ TQString operator*(int);
%MethodCode
- sipRes = new QString();
+ sipRes = new TQString();
while (a0-- > 0)
*sipRes += *sipCpp;
%End
- QString &operator*=(int);
+ TQString &operator*=(int);
%MethodCode
- QString orig(*sipCpp);
+ TQString orig(*sipCpp);
sipCpp -> truncate(0);
@@ -667,84 +667,84 @@ public:
*sipCpp += orig;
%End
- QChar at(uint) const;
-// QCharRef at(uint);
-// QChar constref(uint) const;
-// QChar &ref(uint);
-// const QChar *unicode() const;
+ TQChar at(uint) const;
+// TQCharRef at(uint);
+// TQChar constref(uint) const;
+// TQChar &ref(uint);
+// const TQChar *unicode() const;
const char *ascii() const;
-%If (Qt_3_1_0 -)
- static QString fromAscii(const char *,int = -1);
+%If (TQt_3_1_0 -)
+ static TQString fromAscii(const char *,int = -1);
%End
const char *latin1() const;
- static QString fromLatin1(const char *,int = -1);
- QCString utf8() const;
- static QString fromUtf8(const char *,int = -1);
- QCString local8Bit() const;
- static QString fromLocal8Bit(const char *,int = -1);
-
-%If (Qt_3_1_0 -)
-// static QString fromUcs2(const unsigned short *);
+ static TQString fromLatin1(const char *,int = -1);
+ TQCString utf8() const;
+ static TQString fromUtf8(const char *,int = -1);
+ TQCString local8Bit() const;
+ static TQString fromLocal8Bit(const char *,int = -1);
+
+%If (TQt_3_1_0 -)
+// static TQString fromUcs2(const unsigned short *);
// const unsigned short *ucs2() const;
%End
-%If (Qt_2_1_0 -)
-// QString &setUnicode(const QChar *,uint);
-// QString &setUnicodeCodes(const ushort *,uint);
+%If (TQt_2_1_0 -)
+// TQString &setUnicode(const TQChar *,uint);
+// TQString &setUnicodeCodes(const ushort *,uint);
%End
-%If (Qt_3_1_0 -)
- QString &setAscii(const char *,int = -1);
+%If (TQt_3_1_0 -)
+ TQString &setAscii(const char *,int = -1);
%End
-%If (Qt_2_1_0 -)
- QString &setLatin1(const char *,int = -1);
+%If (TQt_2_1_0 -)
+ TQString &setLatin1(const char *,int = -1);
%End
- int compare(const QString &) const;
- static int compare(const QString &,const QString &);
+ int compare(const TQString &) const;
+ static int compare(const TQString &,const TQString &);
-%If (Qt_3_0_0 -)
- int localeAwareCompare(const QString &) const;
- static int localeAwareCompare(const QString &,const QString &);
+%If (TQt_3_0_0 -)
+ int localeAwareCompare(const TQString &) const;
+ static int localeAwareCompare(const TQString &,const TQString &);
%End
void compose();
-%If (- Qt_3_0_0)
- QChar::Direction basicDirection();
- QString visual(int = 0,int = -1);
+%If (- TQt_3_0_0)
+ TQChar::Direction basicDirection();
+ TQString visual(int = 0,int = -1);
%End
-%If (Qt_2_2_0 -)
- bool startsWith(const QString &) const;
+%If (TQt_2_2_0 -)
+ bool startsWith(const TQString &) const;
%End
-%If (Qt_3_2_0 -)
- bool startsWith(const QString &,bool) const;
+%If (TQt_3_2_0 -)
+ bool startsWith(const TQString &,bool) const;
%End
-%If (Qt_3_0_0 -)
- bool endsWith(const QString &) const;
+%If (TQt_3_0_0 -)
+ bool endsWith(const TQString &) const;
%End
-%If (Qt_3_2_0 -)
- bool endsWith(const QString &,bool) const;
+%If (TQt_3_2_0 -)
+ bool endsWith(const TQString &,bool) const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setLength(uint);
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
uint capacity() const;
void reserve(uint);
void squeeze();
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool simpleText() const;
bool isRightToLeft() const;
%End
- // Force the numeric interpretation so that str + QString gets handled
+ // Force the numeric interpretation so that str + TQString gets handled
// as we want.
- const QString operator+(const QString &) /Numeric/;
+ const TQString operator+(const TQString &) /Numeric/;
- QString operator[](int) const;
+ TQString operator[](int) const;
%MethodCode
int len;
@@ -753,10 +753,10 @@ public:
if ((a0 = (int)sipConvertFromSequenceIndex(a0,len)) < 0)
sipIsErr = 1;
else
- sipRes = new QString(sipCpp -> at(a0));
+ sipRes = new TQString(sipCpp -> at(a0));
%End
- QString operator[](SIP_PYSLICE) const;
+ TQString operator[](SIP_PYSLICE) const;
%MethodCode
#if PY_VERSION_HEX >= 0x02050000
Py_ssize_t len, start, stop, step, slicelength, i;
@@ -770,7 +770,7 @@ public:
sipIsErr = 1;
else
{
- sipRes = new QString();
+ sipRes = new TQString();
for (i = 0; i < slicelength; ++i)
{
@@ -785,7 +785,7 @@ public:
sipRes = sipCpp -> length();
%End
- int __contains__(const QString &) const;
+ int __contains__(const TQString &) const;
%MethodCode
sipRes = (sipCpp -> contains(*a0) > 0);
%End
@@ -793,7 +793,7 @@ public:
SIP_PYOBJECT __unicode__();
%MethodCode
#if PY_VERSION_HEX >= 0x01060000
- sipRes = QStringToPyUnicode(sipCpp);
+ sipRes = TQStringToPyUnicode(sipCpp);
#else
Py_INCREF(Py_None);
sipRes = Py_None;
@@ -803,7 +803,7 @@ public:
SIP_PYOBJECT __str__();
%MethodCode
#if PY_VERSION_HEX >= 0x01060000
- sipRes = QStringToPyUnicode(sipCpp);
+ sipRes = TQStringToPyUnicode(sipCpp);
#else
const char *s;
@@ -822,8 +822,8 @@ public:
#include <qtextcodec.h>
#if PY_VERSION_HEX >= 0x01060000
-// Convenience function for converting a QString to a Python Unicode object.
-static PyObject *QStringToPyUnicode(QString *qs)
+// Convenience function for converting a TQString to a Python Unicode object.
+static PyObject *TQStringToPyUnicode(TQString *qs)
{
PyObject *uobj;
@@ -840,13 +840,13 @@ static PyObject *QStringToPyUnicode(QString *qs)
#endif
// Convenience function for converting a Python unicode or string object to a
-// QString on the heap.
-static QString *PyUnicodeStringToQString(PyObject *py)
+// TQString on the heap.
+static TQString *PyUnicodeStringToTQString(PyObject *py)
{
#if PY_VERSION_HEX >= 0x01060000
if (PyUnicode_Check(py))
{
- QString *qs = new QString;
+ TQString *qs = new TQString;
#if defined(Py_UNICODE_WIDE)
PY_UNICODE_TYPE *ucode = PyUnicode_AS_UNICODE(py);
@@ -863,14 +863,14 @@ static QString *PyUnicodeStringToQString(PyObject *py)
#endif
if (PyString_Check(py))
- return new QString(PyString_AS_STRING(py));
+ return new TQString(PyString_AS_STRING(py));
return 0;
}
%End
%ConvertToTypeCode
- // Allow a Python string (or a unicode string) whenever a QString is
+ // Allow a Python string (or a unicode string) whenever a TQString is
// expected.
if (sipIsErr == NULL)
@@ -880,12 +880,12 @@ static QString *PyUnicodeStringToQString(PyObject *py)
#endif
sipCanConvertToInstance(sipPy,sipClass_QString,SIP_NO_CONVERTORS));
- *sipCppPtr = PyUnicodeStringToQString(sipPy);
+ *sipCppPtr = PyUnicodeStringToTQString(sipPy);
if (*sipCppPtr)
return sipGetState(sipTransferObj);
- *sipCppPtr = reinterpret_cast<QString *>(sipConvertToInstance(sipPy,sipClass_QString,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
+ *sipCppPtr = reinterpret_cast<TQString *>(sipConvertToInstance(sipPy,sipClass_QString,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
return 0;
%End
@@ -893,7 +893,7 @@ static QString *PyUnicodeStringToQString(PyObject *py)
%BIGetReadBufferCode
if (sipSegment != 0)
{
- PyErr_SetString(PyExc_SystemError, "accessing non-existent QString segment");
+ PyErr_SetString(PyExc_SystemError, "accessing non-existent TQString segment");
sipRes = -1;
}
else
@@ -913,21 +913,21 @@ static QString *PyUnicodeStringToQString(PyObject *py)
%BIGetCharBufferCode
if (sipSegment != 0)
{
- PyErr_SetString(PyExc_SystemError, "accessing non-existent QString segment");
+ PyErr_SetString(PyExc_SystemError, "accessing non-existent TQString segment");
sipRes = -1;
}
else
{
- static QTextCodec *codec = 0;
+ static TQTextCodec *codec = 0;
static bool check_codec = TRUE;
- // For the first time only, try and find a Qt codec that
+ // For the first time only, try and find a TQt codec that
// corresponds to the default Python codec. If one wasn't
// found then fall back to ASCII (which is actually the codec
- // returned by QTextCodec::codecForCStrings()).
+ // returned by TQTextCodec::codecForCStrings()).
if (check_codec)
{
- codec = QTextCodec::codecForName(PyUnicode_GetDefaultEncoding());
+ codec = TQTextCodec::codecForName(PyUnicode_GetDefaultEncoding());
check_codec = FALSE;
}
@@ -936,7 +936,7 @@ static QString *PyUnicodeStringToQString(PyObject *py)
// A Python string is the most convenient method to
// save the encoded version on the heap.
PyObject *encobj = ((sipSimpleWrapper *)sipSelf)->user;
- QCString enc;
+ TQCString enc;
Py_XDECREF(encobj);
@@ -963,30 +963,30 @@ static QString *PyUnicodeStringToQString(PyObject *py)
%End
};
-bool operator==(const QString &,const QString &);
-bool operator!=(const QString &,const QString &);
-bool operator<(const QString &,const QString &);
-bool operator<=(const QString &,const QString &);
-bool operator>(const QString &,const QString &);
-bool operator>=(const QString &,const QString &);
+bool operator==(const TQString &,const TQString &);
+bool operator!=(const TQString &,const TQString &);
+bool operator<(const TQString &,const TQString &);
+bool operator<=(const TQString &,const TQString &);
+bool operator>(const TQString &,const TQString &);
+bool operator>=(const TQString &,const TQString &);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QString : QByteArray
+class TQString : TQByteArray
{
%TypeHeaderCode
#include <qstring.h>
%End
public:
- QString();
- QString(int);
- QString(const QString &);
- QString(const char *);
- QString(const char *,uint);
+ TQString();
+ TQString(int);
+ TQString(const TQString &);
+ TQString(const char *);
+ TQString(const char *,uint);
bool isNull() const;
bool isEmpty() const;
@@ -994,33 +994,33 @@ public:
bool resize(uint);
bool truncate(uint);
bool fill(char,int = -1);
- QString copy() const;
-// QString &sprintf(const char *,...);
+ TQString copy() const;
+// TQString &sprintf(const char *,...);
int find(char,int = 0,bool = 1) const;
int find(const char *,int = 0,bool = 1) const;
- int find(const QRegExp &,int = 0) const;
+ int find(const TQRegExp &,int = 0) const;
int findRev(char,int = -1,bool = 1) const;
int findRev(const char *,int = -1,bool = 1) const;
- int findRev(const QRegExp &,int = -1) const;
+ int findRev(const TQRegExp &,int = -1) const;
int contains(char,bool = 1) const;
int contains(const char *,bool = 1) const;
- int contains(const QRegExp &) const;
- QString left(uint) const;
- QString right(uint) const;
- QString mid(uint,uint) const;
- QString leftJustify(uint,char = ' ',bool = 0) const;
- QString rightJustify(uint,char = ' ',bool = 0) const;
- QString lower() const;
- QString upper() const;
- QString stripWhiteSpace() const;
- QString simplifyWhiteSpace() const;
- QString &insert(uint,const char *);
- QString &insert(uint,char);
- QString &append(const char *);
- QString &prepend(const char *);
- QString &remove(uint,uint);
- QString &replace(uint,uint,const char *);
- QString &replace(const QRegExp &,const char *);
+ int contains(const TQRegExp &) const;
+ TQString left(uint) const;
+ TQString right(uint) const;
+ TQString mid(uint,uint) const;
+ TQString leftJustify(uint,char = ' ',bool = 0) const;
+ TQString rightJustify(uint,char = ' ',bool = 0) const;
+ TQString lower() const;
+ TQString upper() const;
+ TQString stripWhiteSpace() const;
+ TQString simplifyWhiteSpace() const;
+ TQString &insert(uint,const char *);
+ TQString &insert(uint,char);
+ TQString &append(const char *);
+ TQString &prepend(const char *);
+ TQString &remove(uint,uint);
+ TQString &replace(uint,uint,const char *);
+ TQString &replace(const TQRegExp &,const char *);
short toShort(bool * = 0) const;
ushort toUShort(bool * = 0) const;
@@ -1031,15 +1031,15 @@ public:
float toFloat(bool * = 0) const;
double toDouble(bool * = 0) const;
- QString &setStr(const char *);
-// QString &setNum(short);
-// QString &setNum(ushort);
- QString &setNum(int /Constrained/);
-// QString &setNum(uint);
-// QString &setNum(long);
-// QString &setNum(ulong);
-// QString &setNum(float,char = 'g',int = 6);
- QString &setNum(double,char = 'g',int = 6);
+ TQString &setStr(const char *);
+// TQString &setNum(short);
+// TQString &setNum(ushort);
+ TQString &setNum(int /Constrained/);
+// TQString &setNum(uint);
+// TQString &setNum(long);
+// TQString &setNum(ulong);
+// TQString &setNum(float,char = 'g',int = 6);
+ TQString &setNum(double,char = 'g',int = 6);
bool setExpand(uint,char);
SIP_PYOBJECT __str__();
@@ -1057,7 +1057,7 @@ public:
%End
%ConvertToTypeCode
- // Allow a Python string whenever a QString is expected.
+ // Allow a Python string whenever a TQString is expected.
if (sipIsErr == NULL)
return (PyString_Check(sipPy) ||
@@ -1065,12 +1065,12 @@ public:
if (PyString_Check(sipPy))
{
- *sipCppPtr = new QString(PyString_AS_STRING(sipPy));
+ *sipCppPtr = new TQString(PyString_AS_STRING(sipPy));
return sipGetState(sipTransferObj);
}
- *sipCppPtr = reinterpret_cast<QString *>(sipConvertToInstance(sipPy,sipClass_QString,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
+ *sipCppPtr = reinterpret_cast<TQString *>(sipConvertToInstance(sipPy,sipClass_QString,sipTransferObj,SIP_NO_CONVERTORS,0,sipIsErr));
return 0;
%End
diff --git a/sip/qt/qstringlist.sip b/sip/qt/qstringlist.sip
index d95034c..b48a60d 100644
--- a/sip/qt/qstringlist.sip
+++ b/sip/qt/qstringlist.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QStringList.
+// This is the SIP interface definition for TQStringList.
//
// 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>QStringList (Qt v2+)</Title>
+<Sect2><Title>TQStringList (TQt v2+)</Title>
<Para>
The Python <Literal>len</Literal>, <Literal>[]</Literal> (for both reading and
writing slices and individual elements), <Literal>del</Literal> (for deleting
@@ -32,7 +32,7 @@ slices and individual elements), <Literal>+</Literal>, <Literal>+=</Literal>,
<FuncSynopsis>
<FuncDef>Iterator <Function>append</Function></FuncDef>
- <ParamDef>const QString &<Parameter>x</Parameter></ParamDef>
+ <ParamDef>const TQString &<Parameter>x</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This does not return a value.
@@ -40,7 +40,7 @@ This does not return a value.
<FuncSynopsis>
<FuncDef>Iterator <Function>prepend</Function></FuncDef>
- <ParamDef>const QString &<Parameter>x</Parameter></ParamDef>
+ <ParamDef>const TQString &<Parameter>x</Parameter></ParamDef>
</FuncSynopsis>
<Para>
This does not return a value.
@@ -49,46 +49,46 @@ This does not return a value.
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QStringList
+class TQStringList
{
%TypeHeaderCode
#include <qstringlist.h>
%End
public:
- QStringList();
- QStringList(const QStringList &);
- QStringList(const QString &);
+ TQStringList();
+ TQStringList(const TQStringList &);
+ TQStringList(const TQString &);
void sort();
-%If (Qt_2_1_0 -)
- static QStringList fromStrList(const QStrList &);
- static QStringList split(const QString &,const QString &,bool = 0);
- static QStringList split(const QChar &,const QString &,bool = 0);
- static QStringList split(const QRegExp &,const QString &,bool = 0);
- QString join(const QString &) const;
- QStringList grep(const QString &,bool = 1) const;
- QStringList grep(const QRegExp &) const;
+%If (TQt_2_1_0 -)
+ static TQStringList fromStrList(const TQStrList &);
+ static TQStringList split(const TQString &,const TQString &,bool = 0);
+ static TQStringList split(const TQChar &,const TQString &,bool = 0);
+ static TQStringList split(const TQRegExp &,const TQString &,bool = 0);
+ TQString join(const TQString &) const;
+ TQStringList grep(const TQString &,bool = 1) const;
+ TQStringList grep(const TQRegExp &) const;
%End
-%If (Qt_3_2_0 -)
- QStringList &gres(const QString &,const QString &,bool = 1);
- QStringList &gres(const QRegExp &,const QString &);
+%If (TQt_3_2_0 -)
+ TQStringList &gres(const TQString &,const TQString &,bool = 1);
+ TQStringList &gres(const TQRegExp &,const TQString &);
%End
- // These are actually in QValueList, which isn't implemented so
+ // These are actually in TQValueList, which isn't implemented so
// pretend they are here.
bool isEmpty() const;
- void append(const QString &);
- void prepend(const QString &);
- void remove(const QString &);
- const QString &first() const;
- const QString &last() const;
- int findIndex(const QString &) const;
- uint contains(const QString &) const;
+ void append(const TQString &);
+ void prepend(const TQString &);
+ void remove(const TQString &);
+ const TQString &first() const;
+ const TQString &last() const;
+ int findIndex(const TQString &) const;
+ uint contains(const TQString &) const;
uint count() const;
void clear();
@@ -97,7 +97,7 @@ public:
sipRes = sipCpp -> count();
%End
- void __setitem__(int,const QString &);
+ void __setitem__(int,const TQString &);
%MethodCode
int len;
@@ -109,7 +109,7 @@ public:
(*sipCpp)[a0] = *a1;
%End
- void __setitem__(SIP_PYSLICE,const QStringList &);
+ void __setitem__(SIP_PYSLICE,const TQStringList &);
%MethodCode
#if PY_VERSION_HEX >= 0x02050000
Py_ssize_t len, start, stop, step, slicelength, i;
@@ -132,7 +132,7 @@ public:
}
else
{
- QStringList::ConstIterator it = a1 -> begin();
+ TQStringList::ConstIterator it = a1 -> begin();
for (i = 0; i < slicelength; ++i)
{
@@ -176,7 +176,7 @@ public:
}
%End
- QString operator[](int);
+ TQString operator[](int);
%MethodCode
int len;
@@ -185,10 +185,10 @@ public:
if ((a0 = (int)sipConvertFromSequenceIndex(a0,len)) < 0)
sipIsErr = 1;
else
- sipRes = new QString((*sipCpp)[a0]);
+ sipRes = new TQString((*sipCpp)[a0]);
%End
- QStringList operator[](SIP_PYSLICE);
+ TQStringList operator[](SIP_PYSLICE);
%MethodCode
#if PY_VERSION_HEX >= 0x02050000
Py_ssize_t len, start, stop, step, slicelength, i;
@@ -202,7 +202,7 @@ public:
sipIsErr = 1;
else
{
- sipRes = new QStringList();
+ sipRes = new TQStringList();
for (i = 0; i < slicelength; ++i)
{
@@ -212,27 +212,27 @@ public:
}
%End
- int __contains__(const QString &);
+ int __contains__(const TQString &);
%MethodCode
sipRes = (sipCpp -> findIndex(*a0) >= 0);
%End
- QStringList operator+(const QStringList &);
- QStringList &operator+=(const QStringList &);
+ TQStringList operator+(const TQStringList &);
+ TQStringList &operator+=(const TQStringList &);
- QStringList &operator+=(const QString &);
+ TQStringList &operator+=(const TQString &);
- QStringList operator*(int);
+ TQStringList operator*(int);
%MethodCode
- sipRes = new QStringList();
+ sipRes = new TQStringList();
while (a0-- > 0)
*sipRes += *sipCpp;
%End
- QStringList &operator*=(int);
+ TQStringList &operator*=(int);
%MethodCode
- QStringList orig(*sipCpp);
+ TQStringList orig(*sipCpp);
sipCpp -> clear();
@@ -240,8 +240,8 @@ public:
*sipCpp += orig;
%End
- bool operator==(const QStringList &);
- bool operator!=(const QStringList &);
+ bool operator==(const TQStringList &);
+ bool operator!=(const TQStringList &);
};
%End
diff --git a/sip/qt/qstrlist.sip b/sip/qt/qstrlist.sip
index 189e134..6d31cf9 100644
--- a/sip/qt/qstrlist.sip
+++ b/sip/qt/qstrlist.sip
@@ -1,29 +1,29 @@
-// This is the SIP interface definition for QStrList.
+// This is the SIP interface definition for TQStrList.
//
// 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>QStrList</Title>
+<Sect2><Title>TQStrList</Title>
<Para>
-This class isn't implemented. Whenever a <Literal>QStrList</Literal> is the
+This class isn't implemented. Whenever a <Literal>TQStrList</Literal> is the
return type of a function or the type of an argument, a Python list of strings
is used instead.
</Para>
@@ -31,7 +31,7 @@ is used instead.
%End
-%MappedType QStrList
+%MappedType TQStrList
{
%TypeHeaderCode
#include <qstrlist.h>
@@ -71,12 +71,12 @@ is used instead.
%End
%ConvertToTypeCode
- // Convert a Python list of strings to a QStrList on the heap.
+ // Convert a Python list of strings to a TQStrList on the heap.
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- QStrList *qsl = new QStrList;
+ TQStrList *qsl = new TQStrList;
for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
{
diff --git a/sip/qt/qstyle.sip b/sip/qt/qstyle.sip
index bbef81c..358327b 100644
--- a/sip/qt/qstyle.sip
+++ b/sip/qt/qstyle.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QStyle and QStyleOption.
+// This is the SIP interface definition for TQStyle and TQStyleOption.
//
// 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>QStyle (Qt v2+)</Title>
+<Sect2><Title>TQStyle (TQt v2+)</Title>
<FuncSynopsis>
<FuncDef>virtual void <Function>getButtonShift</Function></FuncDef>
<ParamDef>int &amp;<Parameter>x</Parameter></ParamDef>
@@ -29,12 +29,12 @@
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>x</Literal> and
-<Literal>y</Literal> values. (Qt v2)
+<Literal>y</Literal> values. (TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>virtual void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QScrollBar *<Parameter>b</Parameter></ParamDef>
+ <ParamDef>const TQScrollBar *<Parameter>b</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>sliderLength</Parameter></ParamDef>
@@ -44,12 +44,12 @@ This takes no parameters and returns a tuple of the <Literal>x</Literal> and
Thus takes only the <Literal>b</Literal> parameter and returns a tuple of the
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
-(Qt v2)
+(TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>virtual void <Function>tabbarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>t</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>hframe</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>vframe</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>overlap</Parameter></ParamDef>
@@ -57,21 +57,21 @@ Thus takes only the <Literal>b</Literal> parameter and returns a tuple of the
<Para>
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
-<Literal>overlap</Literal> values. (Qt v2)
+<Literal>overlap</Literal> values. (TQt v2)
</Para>
</Sect2>
-<Sect2><Title>QStyleOption (Qt v3+)</Title>
+<Sect2><Title>TQStyleOption (TQt v3+)</Title>
<Para>
-<Literal>QStyleOption</Literal> is fully implemented.
+<Literal>TQStyleOption</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QStyleOption
+class TQStyleOption
{
%TypeHeaderCode
#include <qstyle.h>
@@ -82,31 +82,31 @@ public:
Default
};
- QStyleOption(StyleOptionDefault /Constrained/ = Default);
+ TQStyleOption(StyleOptionDefault /Constrained/ = Default);
-%If (Qt_3_2_0 -)
- QStyleOption(int);
-%End
- QStyleOption(int,int);
- QStyleOption(int,int,int,int);
- QStyleOption(QMenuItem *);
- QStyleOption(QMenuItem *,int);
- QStyleOption(QMenuItem *,int,int);
- QStyleOption(const QColor &);
- QStyleOption(QTab *);
- QStyleOption(QListViewItem *);
-%If (Qt_3_1_0 -)
- QStyleOption(QCheckListItem *);
-%End
- QStyleOption(Qt::ArrowType /Constrained/);
-%If (Qt_3_1_0 -)
- QStyleOption(const QRect &);
- QStyleOption(QWidget *);
+%If (TQt_3_2_0 -)
+ TQStyleOption(int);
+%End
+ TQStyleOption(int,int);
+ TQStyleOption(int,int,int,int);
+ TQStyleOption(TQMenuItem *);
+ TQStyleOption(TQMenuItem *,int);
+ TQStyleOption(TQMenuItem *,int,int);
+ TQStyleOption(const TQColor &);
+ TQStyleOption(TQTab *);
+ TQStyleOption(TQListViewItem *);
+%If (TQt_3_1_0 -)
+ TQStyleOption(TQCheckListItem *);
+%End
+ TQStyleOption(TQt::ArrowType /Constrained/);
+%If (TQt_3_1_0 -)
+ TQStyleOption(const TQRect &);
+ TQStyleOption(TQWidget *);
%End
bool isDefault() const;
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
int day() const;
%End
@@ -115,149 +115,149 @@ public:
int frameShape() const;
int frameShadow() const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
int headerSection() const;
%End
- QMenuItem* menuItem() const;
+ TQMenuItem* menuItem() const;
int maxIconWidth() const;
int tabWidth() const;
- const QColor& color() const;
+ const TQColor& color() const;
- QTab *tab() const;
+ TQTab *tab() const;
-%If (Qt_3_1_0 -)
- QCheckListItem *checkListItem() const;
+%If (TQt_3_1_0 -)
+ TQCheckListItem *checkListItem() const;
%End
- QListViewItem *listViewItem() const;
+ TQListViewItem *listViewItem() const;
- Qt::ArrowType arrowType() const;
-%If (Qt_3_1_0 -)
- QRect rect() const;
- QWidget *widget() const;
+ TQt::ArrowType arrowType() const;
+%If (TQt_3_1_0 -)
+ TQRect rect() const;
+ TQWidget *widget() const;
%End
};
%End
-%If (Qt_3_0_0 -)
-// Not yet defined in Qt v3Beta5.
-class QStyleHintReturn;
+%If (TQt_3_0_0 -)
+// Not yet defined in TQt v3Beta5.
+class TQStyleHintReturn;
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QStyle : QObject
+class TQStyle : TQObject
{
%TypeHeaderCode
#include <qstyle.h>
%End
public:
-%If (Qt_3_0_0 -)
- QStyle();
+%If (TQt_3_0_0 -)
+ TQStyle();
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
GUIStyle guiStyle() const;
%End
- virtual void polish(QWidget *);
- virtual void unPolish(QWidget *);
+ virtual void polish(TQWidget *);
+ virtual void unPolish(TQWidget *);
- virtual void polish(QApplication *);
- virtual void unPolish(QApplication *);
+ virtual void polish(TQApplication *);
+ virtual void unPolish(TQApplication *);
- virtual void polish(QPalette &);
+ virtual void polish(TQPalette &);
-%If (Qt_3_0_0 -)
- virtual void polishPopupMenu(QPopupMenu *) = 0;
+%If (TQt_3_0_0 -)
+ virtual void polishPopupMenu(TQPopupMenu *) = 0;
%End
-%If (- Qt_3_0_0)
- virtual QRect itemRect(QPainter *,int,int,int,int,int,bool,
- const QPixmap *,const QString &,int = -1);
+%If (- TQt_3_0_0)
+ virtual TQRect itemRect(TQPainter *,int,int,int,int,int,bool,
+ const TQPixmap *,const TQString &,int = -1);
- virtual void drawItem(QPainter *,int,int,int,int,int,
- const QColorGroup &,bool,const QPixmap *,
- const QString &,int = -1,const QColor * = 0);
+ virtual void drawItem(TQPainter *,int,int,int,int,int,
+ const TQColorGroup &,bool,const TQPixmap *,
+ const TQString &,int = -1,const TQColor * = 0);
%End
-%If (Qt_3_0_0 -)
- virtual QRect itemRect(QPainter *,const QRect &,int,bool,
- const QPixmap *,const QString &,int = -1) const;
+%If (TQt_3_0_0 -)
+ virtual TQRect itemRect(TQPainter *,const TQRect &,int,bool,
+ const TQPixmap *,const TQString &,int = -1) const;
- virtual void drawItem(QPainter *,const QRect &,int,const QColorGroup &,
- bool,const QPixmap *,const QString &,int = -1,
- const QColor * = 0) const;
+ virtual void drawItem(TQPainter *,const TQRect &,int,const TQColorGroup &,
+ bool,const TQPixmap *,const TQString &,int = -1,
+ const TQColor * = 0) const;
%End
-%If (- Qt_3_0_0)
- virtual void drawSeparator(QPainter *,int,int,int,int,
- const QColorGroup &,bool = 1,int = 1,
+%If (- TQt_3_0_0)
+ virtual void drawSeparator(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool = 1,int = 1,
int = 0);
- virtual void drawRect(QPainter *,int,int,int,int,const QColor &,
- int = 1,const QBrush * = 0);
- virtual void drawRectStrong(QPainter *,int,int,int,int,
- const QColorGroup &,bool = 0,int = 1,
- int = 0,const QBrush * = 0);
- virtual void drawButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,const QBrush * = 0) = 0;
- virtual QRect buttonRect(int,int,int,int);
- virtual void drawButtonMask(QPainter *,int,int,int,int);
- virtual void drawBevelButton(QPainter *,int,int,int,int,
- const QColorGroup &,bool = 0,
- const QBrush * = 0) = 0;
-%If (Qt_2_1_0 -)
- QRect bevelButtonRect(int,int,int,int);
-%End
- virtual void drawToolButton(QPainter *,int,int,int,int,
- const QColorGroup &,bool = 0,
- const QBrush * = 0);
-%If (Qt_2_1_0 -)
- void drawToolButton(QToolButton *,QPainter *);
- QRect toolButtonRect(int,int,int,int);
-%End
- virtual void drawPanel(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,int = 1,const QBrush * = 0);
- virtual void drawPopupPanel(QPainter *,int,int,int,int,
- const QColorGroup &,int = 2,
- const QBrush * = 0);
- virtual void drawArrow(QPainter *,Qt::ArrowType,bool,int,int,int,int,
- const QColorGroup &,bool,const QBrush * = 0) = 0;
- virtual QSize exclusiveIndicatorSize() const = 0;
- virtual void drawExclusiveIndicator(QPainter *,int,int,int,int,
- const QColorGroup &,bool,bool = 0,
+ virtual void drawRect(TQPainter *,int,int,int,int,const TQColor &,
+ int = 1,const TQBrush * = 0);
+ virtual void drawRectStrong(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool = 0,int = 1,
+ int = 0,const TQBrush * = 0);
+ virtual void drawButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,const TQBrush * = 0) = 0;
+ virtual TQRect buttonRect(int,int,int,int);
+ virtual void drawButtonMask(TQPainter *,int,int,int,int);
+ virtual void drawBevelButton(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool = 0,
+ const TQBrush * = 0) = 0;
+%If (TQt_2_1_0 -)
+ TQRect bevelButtonRect(int,int,int,int);
+%End
+ virtual void drawToolButton(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool = 0,
+ const TQBrush * = 0);
+%If (TQt_2_1_0 -)
+ void drawToolButton(TQToolButton *,TQPainter *);
+ TQRect toolButtonRect(int,int,int,int);
+%End
+ virtual void drawPanel(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,int = 1,const TQBrush * = 0);
+ virtual void drawPopupPanel(TQPainter *,int,int,int,int,
+ const TQColorGroup &,int = 2,
+ const TQBrush * = 0);
+ virtual void drawArrow(TQPainter *,TQt::ArrowType,bool,int,int,int,int,
+ const TQColorGroup &,bool,const TQBrush * = 0) = 0;
+ virtual TQSize exclusiveIndicatorSize() const = 0;
+ virtual void drawExclusiveIndicator(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool,bool = 0,
bool = 1) = 0;
- virtual void drawExclusiveIndicatorMask(QPainter *,int,int,int,int,
+ virtual void drawExclusiveIndicatorMask(TQPainter *,int,int,int,int,
bool);
- virtual QSize indicatorSize() const = 0;
- virtual void drawIndicator(QPainter *,int,int,int,int,
- const QColorGroup &,int,bool = 0,
+ virtual TQSize indicatorSize() const = 0;
+ virtual void drawIndicator(TQPainter *,int,int,int,int,
+ const TQColorGroup &,int,bool = 0,
bool = 1) = 0;
- virtual void drawIndicatorMask(QPainter *,int,int,int,int,int);
- virtual void drawFocusRect(QPainter *,const QRect &,const QColorGroup &,
- const QColor * = 0,bool = 0) = 0;
- virtual void drawComboButton(QPainter *,int,int,int,int,
- const QColorGroup &,bool = 0,bool = 0,
- bool = 1,const QBrush * = 0) = 0;
- virtual QRect comboButtonRect(int,int,int,int) = 0;
- virtual QRect comboButtonFocusRect(int,int,int,int) = 0;
- virtual void drawComboButtonMask(QPainter *,int,int,int,int) = 0;
- virtual void drawPushButton(QPushButton *,QPainter *) = 0;
- virtual void drawPushButtonLabel(QPushButton *,QPainter *) = 0;
-
-%If (Qt_2_1_0 -)
- QRect pushButtonContentsRect(QPushButton *);
+ virtual void drawIndicatorMask(TQPainter *,int,int,int,int,int);
+ virtual void drawFocusRect(TQPainter *,const TQRect &,const TQColorGroup &,
+ const TQColor * = 0,bool = 0) = 0;
+ virtual void drawComboButton(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool = 0,bool = 0,
+ bool = 1,const TQBrush * = 0) = 0;
+ virtual TQRect comboButtonRect(int,int,int,int) = 0;
+ virtual TQRect comboButtonFocusRect(int,int,int,int) = 0;
+ virtual void drawComboButtonMask(TQPainter *,int,int,int,int) = 0;
+ virtual void drawPushButton(TQPushButton *,TQPainter *) = 0;
+ virtual void drawPushButtonLabel(TQPushButton *,TQPainter *) = 0;
+
+%If (TQt_2_1_0 -)
+ TQRect pushButtonContentsRect(TQPushButton *);
int menuButtonIndicatorWidth(int);
%End
virtual void getButtonShift(int &,int &) = 0;
virtual int defaultFrameWidth() const = 0;
- virtual void tabbarMetrics(const QTabBar *,int &,int &,int &) = 0;
- virtual void drawTab(QPainter *,const QTabBar *,QTab *,bool) = 0;
- virtual void drawTabMask(QPainter *,const QTabBar* ,QTab* ,bool) = 0;
+ virtual void tabbarMetrics(const TQTabBar *,int &,int &,int &) = 0;
+ virtual void drawTab(TQPainter *,const TQTabBar *,TQTab *,bool) = 0;
+ virtual void drawTabMask(TQPainter *,const TQTabBar* ,TQTab* ,bool) = 0;
enum ScrollControl
{
@@ -271,57 +271,57 @@ public:
NoScroll = 0x80
};
- virtual void scrollBarMetrics(const QScrollBar *,int &,int &,int &,
+ virtual void scrollBarMetrics(const TQScrollBar *,int &,int &,int &,
int &) = 0;
- virtual void drawScrollBarControls(QPainter *,const QScrollBar *,int,
+ virtual void drawScrollBarControls(TQPainter *,const TQScrollBar *,int,
uint,uint) = 0;
- virtual ScrollControl scrollBarPointOver(const QScrollBar *,int,
- const QPoint &) = 0;
+ virtual ScrollControl scrollBarPointOver(const TQScrollBar *,int,
+ const TQPoint &) = 0;
virtual int sliderLength() const = 0;
- virtual void drawSlider(QPainter *,int,int,int,int,const QColorGroup &,
+ virtual void drawSlider(TQPainter *,int,int,int,int,const TQColorGroup &,
Orientation,bool,bool) = 0;
- virtual void drawSliderMask(QPainter *,int,int,int,int,Orientation,
+ virtual void drawSliderMask(TQPainter *,int,int,int,int,Orientation,
bool,bool) = 0;
- virtual void drawSliderGroove(QPainter *,int,int,int,int,
- const QColorGroup &,QCOORD,
+ virtual void drawSliderGroove(TQPainter *,int,int,int,int,
+ const TQColorGroup &,TQCOORD,
Orientation) = 0;
- virtual void drawSliderGrooveMask(QPainter *,int,int,int,int,QCOORD,
+ virtual void drawSliderGrooveMask(TQPainter *,int,int,int,int,TQCOORD,
Orientation) = 0;
virtual int maximumSliderDragDistance() const = 0;
virtual int splitterWidth() const = 0;
- virtual void drawSplitter(QPainter *,int,int,int,int,
- const QColorGroup &,Orientation) = 0;
- virtual void drawCheckMark(QPainter *,int,int,int,int,
- const QColorGroup &,bool,bool) = 0;
- virtual void polishPopupMenu(QPopupMenu *) = 0;
- virtual int extraPopupMenuItemWidth(bool,int,QMenuItem *,
- const QFontMetrics &) = 0;
- virtual int popupSubmenuIndicatorWidth(const QFontMetrics &) = 0;
- virtual int popupMenuItemHeight(bool,QMenuItem *,
- const QFontMetrics &) = 0;
- virtual void drawPopupMenuItem(QPainter *,bool,int,int,QMenuItem *,
- const QPalette &,bool, bool,int,int,int,
+ virtual void drawSplitter(TQPainter *,int,int,int,int,
+ const TQColorGroup &,Orientation) = 0;
+ virtual void drawCheckMark(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool,bool) = 0;
+ virtual void polishPopupMenu(TQPopupMenu *) = 0;
+ virtual int extraPopupMenuItemWidth(bool,int,TQMenuItem *,
+ const TQFontMetrics &) = 0;
+ virtual int popupSubmenuIndicatorWidth(const TQFontMetrics &) = 0;
+ virtual int popupMenuItemHeight(bool,TQMenuItem *,
+ const TQFontMetrics &) = 0;
+ virtual void drawPopupMenuItem(TQPainter *,bool,int,int,TQMenuItem *,
+ const TQPalette &,bool, bool,int,int,int,
int) = 0;
-%If (Qt_2_2_0 -)
- virtual void drawMenuBarItem(QPainter *,int,int,int,int,QMenuItem *,
- QColorGroup &,bool,bool);
+%If (TQt_2_2_0 -)
+ virtual void drawMenuBarItem(TQPainter *,int,int,int,int,TQMenuItem *,
+ TQColorGroup &,bool,bool);
%End
-%If (Qt_2_1_0 -)
- QSize scrollBarExtent();
+%If (TQt_2_1_0 -)
+ TQSize scrollBarExtent();
int buttonDefaultIndicatorWidth() const;
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
int buttonMargin() const;
int toolBarHandleExtent() const;
int sliderThickness() const;
%End
int toolBarHandleExtend() const;
- void drawToolBarHandle(QPainter *,const QRect &,Qt::Orientation,bool,
- const QColorGroup &,bool = 0);
+ void drawToolBarHandle(TQPainter *,const TQRect &,TQt::Orientation,bool,
+ const TQColorGroup &,bool = 0);
%End
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum PrimitiveElement {
PE_ButtonCommand,
PE_ButtonDefault,
@@ -381,23 +381,23 @@ public:
PE_ProgressBarChunk,
-%If (Qt_3_0_1 -)
+%If (TQt_3_0_1 -)
PE_PanelLineEdit,
PE_PanelTabWidget,
PE_WindowFrame,
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
PE_CheckListController,
PE_CheckListIndicator,
PE_CheckListExclusiveIndicator,
PE_PanelGroupBox,
%End
-%If (Qt_3_0_4 - Qt_3_0_5)
+%If (TQt_3_0_4 - TQt_3_0_5)
PE_PopupMenuScroller,
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
PE_RubberBand,
%End
@@ -428,9 +428,9 @@ public:
typedef uint SFlags;
- virtual void drawPrimitive(PrimitiveElement,QPainter *,const QRect &,
- const QColorGroup &,SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const = 0;
+ virtual void drawPrimitive(PrimitiveElement,TQPainter *,const TQRect &,
+ const TQColorGroup &,SFlags = Style_Default,
+ const TQStyleOption & = TQStyleOption()) const = 0;
enum ControlElement {
CE_PushButton,
@@ -453,16 +453,16 @@ public:
CE_MenuBarItem,
CE_ToolButtonLabel,
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
CE_MenuBarEmptyArea,
%End
-%If (Qt_3_0_5 -)
+%If (TQt_3_0_5 -)
CE_PopupMenuScroller,
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
CE_DockWindowEmptyArea,
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
CE_PopupMenuVerticalExtra,
CE_PopupMenuHorizontalExtra,
@@ -473,13 +473,13 @@ public:
CE_CustomBase
};
- virtual void drawControl(ControlElement,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ virtual void drawControl(ControlElement,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const = 0;
- virtual void drawControlMask(ControlElement,QPainter *,const QWidget *,
- const QRect &,
- const QStyleOption & = QStyleOption()) const = 0;
+ const TQStyleOption & = TQStyleOption()) const = 0;
+ virtual void drawControlMask(ControlElement,TQPainter *,const TQWidget *,
+ const TQRect &,
+ const TQStyleOption & = TQStyleOption()) const = 0;
enum SubRect {
SR_PushButtonContents,
@@ -505,7 +505,7 @@ public:
SR_ToolButtonContents,
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
SR_DialogButtonAccept,
SR_DialogButtonReject,
SR_DialogButtonApply,
@@ -522,7 +522,7 @@ public:
SR_CustomBase
};
- virtual QRect subRect(SubRect,const QWidget *) const = 0;
+ virtual TQRect subRect(SubRect,const TQWidget *) const = 0;
enum ComplexControl{
CC_SpinWidget,
@@ -557,7 +557,7 @@ public:
SC_ComboBoxFrame,
SC_ComboBoxEditField,
SC_ComboBoxArrow,
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
SC_ComboBoxListBoxPopup,
%End
@@ -586,22 +586,22 @@ public:
typedef uint SCFlags;
- virtual void drawComplexControl(ComplexControl,QPainter *,
- const QWidget *,const QRect &,
- const QColorGroup &,
+ virtual void drawComplexControl(ComplexControl,TQPainter *,
+ const TQWidget *,const TQRect &,
+ const TQColorGroup &,
SFlags = Style_Default,
SCFlags = SC_All,SCFlags = SC_None,
- const QStyleOption & = QStyleOption()) const = 0;
- virtual void drawComplexControlMask(ComplexControl,QPainter *,
- const QWidget *,const QRect &,
- const QStyleOption & = QStyleOption()) const = 0;
-
- virtual QRect querySubControlMetrics(ComplexControl,
- const QWidget *,SubControl,
- const QStyleOption & = QStyleOption()) const = 0;
- virtual SubControl querySubControl(ComplexControl,const QWidget *,
- const QPoint &,
- const QStyleOption & = QStyleOption()) const = 0;
+ const TQStyleOption & = TQStyleOption()) const = 0;
+ virtual void drawComplexControlMask(ComplexControl,TQPainter *,
+ const TQWidget *,const TQRect &,
+ const TQStyleOption & = TQStyleOption()) const = 0;
+
+ virtual TQRect querySubControlMetrics(ComplexControl,
+ const TQWidget *,SubControl,
+ const TQStyleOption & = TQStyleOption()) const = 0;
+ virtual SubControl querySubControl(ComplexControl,const TQWidget *,
+ const TQPoint &,
+ const TQStyleOption & = TQStyleOption()) const = 0;
enum PixelMetric {
PM_ButtonMargin,
@@ -645,13 +645,13 @@ public:
PM_IndicatorHeight,
PM_ExclusiveIndicatorWidth,
PM_ExclusiveIndicatorHeight,
-%If (Qt_3_0_4 -)
+%If (TQt_3_0_4 -)
PM_PopupMenuScrollerHeight,
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
PM_CheckListButtonSize,
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
PM_CheckListControllerSize,
PM_PopupMenuFrameHorizontalExtra,
PM_PopupMenuFrameVerticalExtra,
@@ -668,7 +668,7 @@ public:
PM_TabBarTabShiftHorizontal,
PM_TabBarTabShiftVertical,
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
PM_TabBarScrollButtonWidth,
PM_MenuBarItemSpacing,
@@ -678,7 +678,7 @@ public:
PM_CustomBase
};
- virtual int pixelMetric(PixelMetric,const QWidget * = 0) const = 0;
+ virtual int pixelMetric(PixelMetric,const TQWidget * = 0) const = 0;
enum ContentsType {
CT_PushButton,
@@ -690,7 +690,7 @@ public:
CT_DockWindow,
CT_ProgressBar,
CT_PopupMenuItem,
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
CT_TabBarTab,
CT_Slider,
CT_Header,
@@ -698,7 +698,7 @@ public:
CT_MenuBar,
CT_SpinBox,
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
CT_SizeGrip,
CT_TabWidget,
CT_DialogButtons,
@@ -707,9 +707,9 @@ public:
CT_CustomBase
};
- virtual QSize sizeFromContents(ContentsType,const QWidget *,
- const QSize &,
- const QStyleOption & = QStyleOption()) const = 0;
+ virtual TQSize sizeFromContents(ContentsType,const TQWidget *,
+ const TQSize &,
+ const TQStyleOption & = TQStyleOption()) const = 0;
enum StyleHint {
SH_EtchDisabledText,
@@ -764,23 +764,23 @@ public:
SH_ComboBox_Popup,
-%If (Qt_3_0_1 -)
+%If (TQt_3_0_1 -)
SH_TitleBar_NoBorder,
SH_ScrollBar_StopMouseOverSlider,
%End
-%If (Qt_3_0_2 -)
+%If (TQt_3_0_2 -)
SH_BlinkCursorWhenTextSelected,
SH_RichText_FullWidthSelection,
%End
-%If (Qt_3_0_4 -)
+%If (TQt_3_0_4 -)
SH_PopupMenu_Scrollable,
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
SH_GroupBox_TextLabelVerticalAlignment,
SH_GroupBox_TextLabelColor,
@@ -788,7 +788,7 @@ public:
SH_PopupMenu_SloppySubMenus,
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
SH_Table_GridLineColor,
SH_LineEdit_PasswordCharacter,
@@ -804,7 +804,7 @@ public:
SH_ListViewExpand_SelectMouseType,
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
SH_UnderlineAccelerator,
SH_ToolButton_Uses3D,
@@ -813,9 +813,9 @@ public:
SH_CustomBase
};
- virtual int styleHint(StyleHint,const QWidget * = 0,
- const QStyleOption & = QStyleOption(),
- QStyleHintReturn * = 0) const = 0;
+ virtual int styleHint(StyleHint,const TQWidget * = 0,
+ const TQStyleOption & = TQStyleOption(),
+ TQStyleHintReturn * = 0) const = 0;
enum StylePixmap {
SP_TitleBarMinButton,
@@ -828,34 +828,34 @@ public:
SP_MessageBoxInformation,
SP_MessageBoxWarning,
SP_MessageBoxCritical,
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
SP_MessageBoxQuestion,
%End
SP_CustomBase
};
- virtual QPixmap stylePixmap(StylePixmap,const QWidget * = 0,
- const QStyleOption & = QStyleOption()) const = 0;
+ virtual TQPixmap stylePixmap(StylePixmap,const TQWidget * = 0,
+ const TQStyleOption & = TQStyleOption()) const = 0;
- static QRect visualRect(const QRect &,const QWidget *);
+ static TQRect visualRect(const TQRect &,const TQWidget *);
- static QRect visualRect(const QRect &,const QRect &);
+ static TQRect visualRect(const TQRect &,const TQRect &);
%End
protected:
-%If (Qt_2_1_0 - Qt_3_0_0)
+%If (TQt_2_1_0 - TQt_3_0_0)
void setScrollBarExtent(int,int = -1);
void setButtonDefaultIndicatorWidth(int);
%End
private:
-%If (- Qt_3_0_0)
- QStyle();
- QStyle(GUIStyle);
+%If (- TQt_3_0_0)
+ TQStyle();
+ TQStyle(GUIStyle);
%End
-%If (Qt_2_1_0 -)
- QStyle(const QStyle &);
+%If (TQt_2_1_0 -)
+ TQStyle(const TQStyle &);
%End
};
diff --git a/sip/qt/qstylefactory.sip b/sip/qt/qstylefactory.sip
index 9249c62..faed8bc 100644
--- a/sip/qt/qstylefactory.sip
+++ b/sip/qt/qstylefactory.sip
@@ -1,45 +1,45 @@
-// This is the SIP interface definition for QStyleFactory.
+// This is the SIP interface definition for TQStyleFactory.
//
// 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>QStyleFactory (Qt v3+)</Title>
+<Sect2><Title>TQStyleFactory (TQt v3+)</Title>
<Para>
-<Literal>QStyleFactory</Literal> is fully implemented.
+<Literal>TQStyleFactory</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QStyleFactory
+class TQStyleFactory
{
%TypeHeaderCode
#include <qstylefactory.h>
%End
public:
- static QStringList keys();
- static QStyle *create(const QString &) /Factory/;
+ static TQStringList keys();
+ static TQStyle *create(const TQString &) /Factory/;
};
%End
diff --git a/sip/qt/qstylesheet.sip b/sip/qt/qstylesheet.sip
index c248e56..3b0d252 100644
--- a/sip/qt/qstylesheet.sip
+++ b/sip/qt/qstylesheet.sip
@@ -1,55 +1,55 @@
-// This is the SIP interface definition for QStyleSheet and QStyleSheetItem.
+// This is the SIP interface definition for TQStyleSheet and TQStyleSheetItem.
//
// 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>QStyleSheet (Qt v2+)</Title>
+<Sect2><Title>TQStyleSheet (TQt v2+)</Title>
<Para>
-<Literal>QStyleSheet</Literal> is fully implemented.
+<Literal>TQStyleSheet</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QStyleSheetItem (Qt v2+)</Title>
+<Sect2><Title>TQStyleSheetItem (TQt v2+)</Title>
<Para>
-<Literal>QStyleSheetItem</Literal> is fully implemented.
+<Literal>TQStyleSheetItem</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QStyleSheetItem : Qt
+class TQStyleSheetItem : TQt
{
%TypeHeaderCode
#include <qstylesheet.h>
%End
public:
- QStyleSheetItem(QStyleSheet * /TransferThis/,const QString &);
+ TQStyleSheetItem(TQStyleSheet * /TransferThis/,const TQString &);
- QString name() const;
+ TQString name() const;
- QStyleSheet *styleSheet();
-// const QStyleSheet *styleSheet() const;
+ TQStyleSheet *styleSheet();
+// const TQStyleSheet *styleSheet() const;
enum AdditionalStyleValues {
Undefined
@@ -68,7 +68,7 @@ public:
int alignment() const;
void setAlignment(int);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum VerticalAlignment {
VAlignBaseline,
VAlignSub,
@@ -91,14 +91,14 @@ public:
int fontSize() const;
void setFontSize(int);
- QString fontFamily() const;
- void setFontFamily(const QString &);
+ TQString fontFamily() const;
+ void setFontFamily(const TQString &);
int numberOfColumns() const;
void setNumberOfColumns(int);
- QColor color() const;
- void setColor(const QColor &);
+ TQColor color() const;
+ void setColor(const TQColor &);
bool fontItalic() const;
void setFontItalic(bool);
@@ -108,7 +108,7 @@ public:
void setFontUnderline(bool);
bool definesFontUnderline() const;
-%If (Qt_3_0_5 -)
+%If (TQt_3_0_5 -)
bool fontStrikeOut() const;
void setFontStrikeOut(bool);
bool definesFontStrikeOut() const;
@@ -117,13 +117,13 @@ public:
bool isAnchor() const;
void setAnchor(bool);
-%If (- Qt_2_1_0)
+%If (- TQt_2_1_0)
enum WhiteSpaceMode {
WhiteSpaceNormal,
WhiteSpacePre
};
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
enum WhiteSpaceMode {
WhiteSpaceNormal,
WhiteSpacePre,
@@ -134,7 +134,7 @@ public:
WhiteSpaceMode whiteSpaceMode() const;
void setWhiteSpaceMode(WhiteSpaceMode);
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
enum Margin {
MarginLeft,
MarginRight,
@@ -145,7 +145,7 @@ public:
MarginHorizontal
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum Margin {
MarginLeft,
MarginRight,
@@ -173,66 +173,66 @@ public:
ListStyle listStyle() const;
void setListStyle(ListStyle);
- QString contexts() const;
- void setContexts(const QString &);
- bool allowedInContext(const QStyleSheetItem *) const;
+ TQString contexts() const;
+ void setContexts(const TQString &);
+ bool allowedInContext(const TQStyleSheetItem *) const;
bool selfNesting() const;
void setSelfNesting(bool);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setLineSpacing(int);
int lineSpacing() const;
%End
};
-class QStyleSheet : QObject
+class TQStyleSheet : TQObject
{
%TypeHeaderCode
#include <qstylesheet.h>
%End
public:
- QStyleSheet(QObject * /TransferThis/ = 0,const char * = 0);
+ TQStyleSheet(TQObject * /TransferThis/ = 0,const char * = 0);
- static QStyleSheet *defaultSheet();
- static void setDefaultSheet(QStyleSheet *);
+ static TQStyleSheet *defaultSheet();
+ static void setDefaultSheet(TQStyleSheet *);
- QStyleSheetItem *item(const QString &);
-// const QStyleSheetItem *item(const QString &) const;
+ TQStyleSheetItem *item(const TQString &);
+// const TQStyleSheetItem *item(const TQString &) const;
- void insert(QStyleSheetItem *);
+ void insert(TQStyleSheetItem *);
-%If (- Qt_3_0_0)
-// virtual QTextNode *tag(const QString &,const QMap<QString,QString> &,
-// const QString &,const QMimeSourceFactory &,
+%If (- TQt_3_0_0)
+// virtual TQTextNode *tag(const TQString &,const TQMap<TQString,TQString> &,
+// const TQString &,const TQMimeSourceFactory &,
// bool = 0) const;
%End
-%If (Qt_3_0_0 -)
-// virtual QTextCustomItem *tag(const QString &,
-// const QMap<QString,QString> &,
-// const QString &,
-// const QMimeSourceFactory &,bool,
-// QTextDocument *) const;
+%If (TQt_3_0_0 -)
+// virtual TQTextCustomItem *tag(const TQString &,
+// const TQMap<TQString,TQString> &,
+// const TQString &,
+// const TQMimeSourceFactory &,bool,
+// TQTextDocument *) const;
%End
-%If (Qt_3_0_0 -)
- static QString escape(const QString &);
- static QString convertFromPlainText(const QString &,
- QStyleSheetItem::WhiteSpaceMode = QStyleSheetItem::WhiteSpacePre);
+%If (TQt_3_0_0 -)
+ static TQString escape(const TQString &);
+ static TQString convertFromPlainText(const TQString &,
+ TQStyleSheetItem::WhiteSpaceMode = TQStyleSheetItem::WhiteSpacePre);
%End
-%If (- Qt_3_0_0)
- static QString convertFromPlainText(const QString &);
+%If (- TQt_3_0_0)
+ static TQString convertFromPlainText(const TQString &);
%End
- static bool mightBeRichText(const QString &);
+ static bool mightBeRichText(const TQString &);
- virtual void scaleFont(QFont &,int) const;
- virtual void error(const QString &) const;
+ virtual void scaleFont(TQFont &,int) const;
+ virtual void error(const TQString &) const;
private:
-%If (Qt_3_1_0 -)
- QStyleSheet(const QStyleSheet &);
+%If (TQt_3_1_0 -)
+ TQStyleSheet(const TQStyleSheet &);
%End
};
diff --git a/sip/qt/qsyntaxhighlighter.sip b/sip/qt/qsyntaxhighlighter.sip
index 13d24e8..b0fd978 100644
--- a/sip/qt/qsyntaxhighlighter.sip
+++ b/sip/qt/qsyntaxhighlighter.sip
@@ -1,55 +1,55 @@
-// This is the SIP interface definition for QSyntaxHighlighter.
+// This is the SIP interface definition for TQSyntaxHighlighter.
//
// 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>QSyntaxHighlighter (Qt v3.1+)</Title>
+<Sect2><Title>TQSyntaxHighlighter (TQt v3.1+)</Title>
<Para>
-<Literal>QSyntaxHighlighter</Literal> is fully implemented.
+<Literal>TQSyntaxHighlighter</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
-class QSyntaxHighlighter : Qt
+class TQSyntaxHighlighter : TQt
{
%TypeHeaderCode
#include <qsyntaxhighlighter.h>
%End
public:
- QSyntaxHighlighter(QTextEdit * /TransferThis/);
+ TQSyntaxHighlighter(TQTextEdit * /TransferThis/);
- virtual int highlightParagraph(const QString &,int) = 0;
+ virtual int highlightParagraph(const TQString &,int) = 0;
- void setFormat(int,int,const QFont &,const QColor &);
- void setFormat(int,int,const QColor &);
- void setFormat(int,int,const QFont &);
- QTextEdit *textEdit() const;
+ void setFormat(int,int,const TQFont &,const TQColor &);
+ void setFormat(int,int,const TQColor &);
+ void setFormat(int,int,const TQFont &);
+ TQTextEdit *textEdit() const;
void rehighlight();
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
int currentParagraph() const;
%End
};
diff --git a/sip/qt/qtabbar.sip b/sip/qt/qtabbar.sip
index d53ffab..908011d 100644
--- a/sip/qt/qtabbar.sip
+++ b/sip/qt/qtabbar.sip
@@ -1,64 +1,64 @@
-// This is the SIP interface definition for QTab and QTabBar.
+// This is the SIP interface definition for TQTab and TQTabBar.
//
// Copyright (c) 2007
// Riverbank Computing Limited <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>QTab</Title>
+<Sect2><Title>TQTab</Title>
<Para>
-<Literal>QTab</Literal> is fully implemented.
+<Literal>TQTab</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTabBar</Title>
+<Sect2><Title>TQTabBar</Title>
<FuncSynopsis>
- <FuncDef>QList&lt;QTab&gt; <Function>tabList</Function></FuncDef>
+ <FuncDef>TQList&lt;TQTab&gt; <Function>tabList</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-This returns a list of <Literal>QTab</Literal> instances.
+This returns a list of <Literal>TQTab</Literal> instances.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QTab : Qt
+class TQTab : TQt
{
%TypeHeaderCode
#include <qtabbar.h>
%End
public:
- QTab();
- QTab(const QString &);
- QTab(const QIconSet &,const QString & = QString::null);
- virtual ~QTab();
-
- void setText(const QString &);
- QString text() const;
- void setIconSet(const QIconSet &);
- QIconSet *iconSet() const;
- void setRect(const QRect &);
- QRect rect() const;
+ TQTab();
+ TQTab(const TQString &);
+ TQTab(const TQIconSet &,const TQString & = TQString::null);
+ virtual ~TQTab();
+
+ void setText(const TQString &);
+ TQString text() const;
+ void setIconSet(const TQIconSet &);
+ TQIconSet *iconSet() const;
+ void setRect(const TQRect &);
+ TQRect rect() const;
void setEnabled(bool);
bool isEnabled() const;
void setIdentifier(int);
@@ -67,40 +67,40 @@ public:
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
-class QTab
+class TQTab
{
%TypeHeaderCode
#include <qtabbar.h>
%End
public:
- QTab();
-%If (Qt_2_1_0 -)
- QTab(const QString &);
- QTab(const QIconSet &,const QString & = QString::null);
+ TQTab();
+%If (TQt_2_1_0 -)
+ TQTab(const TQString &);
+ TQTab(const TQIconSet &,const TQString & = TQString::null);
%End
- virtual ~QTab();
+ virtual ~TQTab();
- QString label;
- QRect r;
+ TQString label;
+ TQRect r;
bool enabled;
int id;
- QIconSet *iconset;
+ TQIconSet *iconset;
};
%End
-class QTabBar : QWidget
+class TQTabBar : TQWidget
{
%TypeHeaderCode
#include <qtabbar.h>
%End
public:
- QTabBar(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQTabBar(TQWidget * /TransferThis/ = 0,const char * = 0);
enum Shape {
RoundedAbove,
@@ -110,131 +110,131 @@ public:
};
Shape shape() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setShape(Shape);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setShape(Shape);
%End
void show();
- virtual int addTab(QTab * /Transfer/);
-%If (Qt_2_00 -)
- virtual int insertTab(QTab * /Transfer/,int = -1);
- virtual void removeTab(QTab *);
+ virtual int addTab(TQTab * /Transfer/);
+%If (TQt_2_00 -)
+ virtual int insertTab(TQTab * /Transfer/,int = -1);
+ virtual void removeTab(TQTab *);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setTabEnabled(int,bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setTabEnabled(int,bool);
%End
bool isTabEnabled(int) const;
- QSize sizeHint() const;
-%If (Qt_2_2_0 -)
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+%If (TQt_2_2_0 -)
+ TQSize minimumSizeHint() const;
%End
-%If (Qt_2_00 -)
- QSizePolicy sizePolicy() const;
+%If (TQt_2_00 -)
+ TQSizePolicy sizePolicy() const;
%End
int currentTab() const;
int keyboardFocusTab() const;
-%If (- Qt_3_0_0)
- QTab *tab(int);
+%If (- TQt_3_0_0)
+ TQTab *tab(int);
%End
-%If (Qt_3_0_0 -)
- QTab *tab(int) const;
- QTab *tabAt(int) const;
+%If (TQt_3_0_0 -)
+ TQTab *tab(int) const;
+ TQTab *tabAt(int) const;
int indexOf(int) const;
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
int count() const;
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void layoutTabs();
%End
-%If (Qt_3_0_0 -)
- virtual QTab *selectTab(const QPoint &) const;
+%If (TQt_3_0_0 -)
+ virtual TQTab *selectTab(const TQPoint &) const;
void removeToolTip(int);
- void setToolTip(int,const QString &);
- QString toolTip(int) const;
+ void setToolTip(int,const TQString &);
+ TQString toolTip(int) const;
%End
public slots:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setCurrentTab(int);
- void setCurrentTab(QTab *);
+ void setCurrentTab(TQTab *);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setCurrentTab(int);
- virtual void setCurrentTab(QTab *);
+ virtual void setCurrentTab(TQTab *);
%End
signals:
void selected(int);
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void layoutChanged();
%End
protected:
- virtual void paint(QPainter *,QTab *,bool) const;
-%If (Qt_2_00 -)
- virtual void paintLabel(QPainter *,const QRect &,QTab *,bool) const;
+ virtual void paint(TQPainter *,TQTab *,bool) const;
+%If (TQt_2_00 -)
+ virtual void paintLabel(TQPainter *,const TQRect &,TQTab *,bool) const;
%End
-%If (- Qt_3_0_0)
- virtual QTab *selectTab(const QPoint &) const;
+%If (- TQt_3_0_0)
+ virtual TQTab *selectTab(const TQPoint &) const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
void updateMask();
%End
-%If (Qt_2_1_0 -)
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
+%If (TQt_2_1_0 -)
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
- void resizeEvent(QResizeEvent *);
+ void resizeEvent(TQResizeEvent *);
%End
- void paintEvent(QPaintEvent *);
- void mousePressEvent(QMouseEvent *);
-%If (Qt_3_0_0 -)
- void mouseMoveEvent(QMouseEvent *);
+ void paintEvent(TQPaintEvent *);
+ void mousePressEvent(TQMouseEvent *);
+%If (TQt_3_0_0 -)
+ void mouseMoveEvent(TQMouseEvent *);
%End
- void mouseReleaseEvent(QMouseEvent *);
- void keyPressEvent(QKeyEvent *);
-%If (Qt_2_1_0 -)
- void styleChange(QStyle &);
+ void mouseReleaseEvent(TQMouseEvent *);
+ void keyPressEvent(TQKeyEvent *);
+%If (TQt_2_1_0 -)
+ void styleChange(TQStyle &);
%End
-%If (Qt_3_0_0 -)
- void fontChange(const QFont &);
+%If (TQt_3_0_0 -)
+ void fontChange(const TQFont &);
%End
-%If (Qt_3_1_0 -)
- bool event(QEvent *);
+%If (TQt_3_1_0 -)
+ bool event(TQEvent *);
%End
- SIP_PYLIST tabList() [QList<QTab> *()];
+ SIP_PYLIST tabList() [TQList<TQTab> *()];
%MethodCode
if ((sipRes = PyList_New(0)) == NULL)
sipIsErr = 1;
else
{
- QList<QTab> *tl;
- QTab *tab;
+ TQList<TQTab> *tl;
+ TQTab *tab;
Py_BEGIN_ALLOW_THREADS
tl = sipCpp -> sipProtect_tabList();
Py_END_ALLOW_THREADS
// Convert the list.
- for (QListIterator<QTab> it(*tl); (tab = it.current()) != NULL; ++it)
+ for (TQListIterator<TQTab> it(*tl); (tab = it.current()) != NULL; ++it)
{
PyObject *inst = sipBuildResult(&sipIsErr,"C",tab,sipClass_QTab,NULL);
@@ -260,7 +260,7 @@ protected:
%End
private:
-%If (Qt_2_1_0 -)
- QTabBar(const QTabBar &);
+%If (TQt_2_1_0 -)
+ TQTabBar(const TQTabBar &);
%End
};
diff --git a/sip/qt/qtabdialog.sip b/sip/qt/qtabdialog.sip
index 115cf9d..8e930e1 100644
--- a/sip/qt/qtabdialog.sip
+++ b/sip/qt/qtabdialog.sip
@@ -1,142 +1,142 @@
-// This is the SIP interface definition for QTabDialog.
+// This is the SIP interface definition for TQTabDialog.
//
// 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>QTabDialog</Title>
+<Sect2><Title>TQTabDialog</Title>
<Para>
-<Literal>QTabDialog</Literal> is fully implemented.
+<Literal>TQTabDialog</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_TABDIALOG)
+%If (TQt_TABDIALOG)
-class QTabDialog : QDialog
+class TQTabDialog : TQDialog
{
%TypeHeaderCode
#include <qtabdialog.h>
%End
public:
- QTabDialog(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
+ TQTabDialog(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
WFlags = 0);
void show();
- void setFont(const QFont &);
+ void setFont(const TQFont &);
-%If (- Qt_2_00)
- void addTab(QWidget *,const char *);
+%If (- TQt_2_00)
+ void addTab(TQWidget *,const char *);
%End
-%If (Qt_2_00 -)
- void addTab(QWidget *,const QString &);
- void addTab(QWidget *,const QIconSet &,const QString &);
+%If (TQt_2_00 -)
+ void addTab(TQWidget *,const TQString &);
+ void addTab(TQWidget *,const TQIconSet &,const TQString &);
%End
- void addTab(QWidget *,QTab *);
+ void addTab(TQWidget *,TQTab *);
-%If (Qt_2_00 -)
- void insertTab(QWidget *,const QString &,int = -1);
- void insertTab(QWidget *,const QIconSet &,const QString &,int = -1);
- void insertTab(QWidget *,QTab *,int = -1);
+%If (TQt_2_00 -)
+ void insertTab(TQWidget *,const TQString &,int = -1);
+ void insertTab(TQWidget *,const TQIconSet &,const TQString &,int = -1);
+ void insertTab(TQWidget *,TQTab *,int = -1);
- void changeTab(QWidget *,const QString &);
- void changeTab(QWidget *,const QIconSet &,const QString &);
+ void changeTab(TQWidget *,const TQString &);
+ void changeTab(TQWidget *,const TQIconSet &,const TQString &);
%End
-%If (Qt_2_00 -)
- bool isTabEnabled(QWidget *) const;
- void setTabEnabled(QWidget *,bool);
+%If (TQt_2_00 -)
+ bool isTabEnabled(TQWidget *) const;
+ void setTabEnabled(TQWidget *,bool);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
bool isTabEnabled(const char *) const;
void setTabEnabled(const char *,bool);
%End
- void showPage(QWidget *);
-%If (Qt_2_00 -)
- void removePage(QWidget *);
- QString tabLabel(QWidget *);
+ void showPage(TQWidget *);
+%If (TQt_2_00 -)
+ void removePage(TQWidget *);
+ TQString tabLabel(TQWidget *);
%End
-%If (- Qt_2_00)
- const char *tabLabel(QWidget *);
+%If (- TQt_2_00)
+ const char *tabLabel(TQWidget *);
%End
-%If (Qt_2_00 -)
- QWidget *currentPage() const;
+%If (TQt_2_00 -)
+ TQWidget *currentPage() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setDefaultButton(const char * = "Defaults");
%End
-%If (Qt_2_00 -)
- void setDefaultButton(const QString &);
+%If (TQt_2_00 -)
+ void setDefaultButton(const TQString &);
void setDefaultButton();
%End
bool hasDefaultButton() const;
-%If (Qt_2_00 -)
- void setHelpButton(const QString &);
+%If (TQt_2_00 -)
+ void setHelpButton(const TQString &);
void setHelpButton();
bool hasHelpButton() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setCancelButton(const char * = "Cancel");
%End
-%If (Qt_2_00 -)
- void setCancelButton(const QString &);
+%If (TQt_2_00 -)
+ void setCancelButton(const TQString &);
void setCancelButton();
%End
bool hasCancelButton() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setApplyButton(const char * = "Apply");
%End
-%If (Qt_2_00 -)
- void setApplyButton(const QString &);
+%If (TQt_2_00 -)
+ void setApplyButton(const TQString &);
void setApplyButton();
%End
bool hasApplyButton() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setOkButton(const char * = "OK");
%End
-%If (Qt_2_00 -)
- void setOkButton(const QString &);
+%If (TQt_2_00 -)
+ void setOkButton(const TQString &);
void setOkButton();
%End
bool hasOkButton() const;
protected:
- void paintEvent(QPaintEvent *);
- void resizeEvent(QResizeEvent *);
-%If (- Qt_2_00)
+ void paintEvent(TQPaintEvent *);
+ void resizeEvent(TQResizeEvent *);
+%If (- TQt_2_00)
void styleChange(GUIStyle);
%End
-%If (Qt_2_00 -)
- void styleChange(QStyle &);
+%If (TQt_2_00 -)
+ void styleChange(TQStyle &);
%End
- void setTabBar(QTabBar *);
- QTabBar *tabBar() const;
+ void setTabBar(TQTabBar *);
+ TQTabBar *tabBar() const;
signals:
void aboutToShow();
@@ -144,23 +144,23 @@ signals:
void applyButtonPressed();
void cancelButtonPressed();
void defaultButtonPressed();
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void helpButtonPressed();
%End
-%If (Qt_2_2_0 -)
- void currentChanged(QWidget *);
+%If (TQt_2_2_0 -)
+ void currentChanged(TQWidget *);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void selected(const char *);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- void selected(const QString &);
+%If (TQt_2_00 - TQt_3_0_0)
+ void selected(const TQString &);
%End
private:
-%If (Qt_2_1_0 -)
- QTabDialog(const QTabDialog &);
+%If (TQt_2_1_0 -)
+ TQTabDialog(const TQTabDialog &);
%End
};
diff --git a/sip/qt/qtableview.sip b/sip/qt/qtableview.sip
index a2159be..3541ff9 100644
--- a/sip/qt/qtableview.sip
+++ b/sip/qt/qtableview.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QTableView.
+// This is the SIP interface definition for TQTableView.
//
// 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>QTableView (Qt 1.x, Qt 2.x)</Title>
+<Sect2><Title>TQTableView (TQt 1.x, TQt 2.x)</Title>
<FuncSynopsis>
<FuncDef>bool <Function>colXPos</Function></FuncDef>
<ParamDef>int <Parameter>col</Parameter></ParamDef>
@@ -45,8 +45,8 @@ the <Literal>bool</Literal> result and <Literal>yPos</Literal>.
%End
-%If (Qt_TABLEVIEW)
-%If (- Qt_3_0_0)
+%If (TQt_TABLEVIEW)
+%If (- TQt_3_0_0)
%ModuleHeaderCode
#include <qtableview.h>
@@ -76,29 +76,29 @@ const uint Tbl_snapToVGrid;
const uint Tbl_snapToGrid;
-class QTableView : QFrame
+class TQTableView : TQFrame
{
%TypeHeaderCode
#include <qtableview.h>
%End
public:
-%If (- Qt_2_00)
- void setBackgroundColor(const QColor &);
- void setPalette(const QPalette &);
+%If (- TQt_2_00)
+ void setBackgroundColor(const TQColor &);
+ void setPalette(const TQPalette &);
%End
-%If (Qt_2_00 -)
- virtual void setBackgroundColor(const QColor &);
- virtual void setPalette(const QPalette &);
+%If (TQt_2_00 -)
+ virtual void setBackgroundColor(const TQColor &);
+ virtual void setPalette(const TQPalette &);
%End
void show();
void repaint(bool = 1);
void repaint(int,int,int,int,bool = 1);
- void repaint(const QRect &,bool = 1);
+ void repaint(const TQRect &,bool = 1);
protected:
- QTableView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
- ~QTableView();
+ TQTableView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+ ~TQTableView();
int numRows() const;
int numCols() const;
@@ -117,18 +117,18 @@ protected:
void clearTableFlags(uint = ~0);
bool autoUpdate() const;
void updateCell(int,int,bool = 1);
- QRect cellUpdateRect() const;
- QRect viewRect() const;
+ TQRect cellUpdateRect() const;
+ TQRect viewRect() const;
int lastRowVisible() const;
int lastColVisible() const;
bool rowIsVisible(int) const;
bool colIsVisible(int) const;
- const QScrollBar *verticalScrollBar() const;
- const QScrollBar *horizontalScrollBar() const;
- virtual void paintCell(QPainter *,int,int) = 0;
- virtual void setupPainter(QPainter *);
- void paintEvent(QPaintEvent *);
- void resizeEvent(QResizeEvent *);
+ const TQScrollBar *verticalScrollBar() const;
+ const TQScrollBar *horizontalScrollBar() const;
+ virtual void paintCell(TQPainter *,int,int) = 0;
+ virtual void setupPainter(TQPainter *);
+ void paintEvent(TQPaintEvent *);
+ void resizeEvent(TQResizeEvent *);
int findRow(int) const;
int findCol(int) const;
bool rowYPos(int,int *) const;
@@ -147,7 +147,7 @@ protected:
void updateScrollBars();
void updateTableSize();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setNumRows(int);
void setNumCols(int);
void setTopCell(int);
@@ -162,7 +162,7 @@ protected:
void setAutoUpdate(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setNumRows(int);
virtual void setNumCols(int);
virtual void setTopCell(int);
@@ -178,7 +178,7 @@ protected:
%End
private:
- QTableView(const QTableView &);
+ TQTableView(const TQTableView &);
};
%End
diff --git a/sip/qt/qtabwidget.sip b/sip/qt/qtabwidget.sip
index 2f78472..34f19e6 100644
--- a/sip/qt/qtabwidget.sip
+++ b/sip/qt/qtabwidget.sip
@@ -1,122 +1,122 @@
-// This is the SIP interface definition for QTabWidget.
+// This is the SIP interface definition for TQTabWidget.
//
// 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>QTabWidget (Qt v2+)</Title>
+<Sect2><Title>TQTabWidget (TQt v2+)</Title>
<Para>
-<Literal>QTabWidget</Literal> is fully implemented.
+<Literal>TQTabWidget</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QTabWidget : QWidget
+class TQTabWidget : TQWidget
{
%TypeHeaderCode
#include <qtabwidget.h>
%End
public:
-%If (Qt_3_0_0 -)
- QTabWidget(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+%If (TQt_3_0_0 -)
+ TQTabWidget(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
- QTabWidget(QWidget * /TransferThis/,const char *,WFlags);
+%If (TQt_2_1_0 - TQt_3_0_0)
+ TQTabWidget(TQWidget * /TransferThis/,const char *,WFlags);
%End
-%If (- Qt_3_0_0)
- QTabWidget(QWidget * /TransferThis/ = 0,const char * = 0);
+%If (- TQt_3_0_0)
+ TQTabWidget(TQWidget * /TransferThis/ = 0,const char * = 0);
%End
- // The QWidget is passed to QWidgetStack::addWidget().
-%If (- Qt_3_0_0)
- void addTab(QWidget * /Transfer/,const QString &);
- void addTab(QWidget * /Transfer/,const QIconSet &,const QString &);
- void addTab(QWidget * /Transfer/,QTab *);
+ // The TQWidget is passed to TQWidgetStack::addWidget().
+%If (- TQt_3_0_0)
+ void addTab(TQWidget * /Transfer/,const TQString &);
+ void addTab(TQWidget * /Transfer/,const TQIconSet &,const TQString &);
+ void addTab(TQWidget * /Transfer/,TQTab *);
- void insertTab(QWidget * /Transfer/,const QString &,int = -1);
- void insertTab(QWidget * /Transfer/,const QIconSet &,const QString &,
+ void insertTab(TQWidget * /Transfer/,const TQString &,int = -1);
+ void insertTab(TQWidget * /Transfer/,const TQIconSet &,const TQString &,
int = -1);
- void insertTab(QWidget * /Transfer/,QTab *,int = -1);
+ void insertTab(TQWidget * /Transfer/,TQTab *,int = -1);
%End
-%If (Qt_3_0_0 -)
- virtual void addTab(QWidget * /Transfer/,const QString &);
- virtual void addTab(QWidget * /Transfer/,const QIconSet &,
- const QString &);
- virtual void addTab(QWidget * /Transfer/,QTab *);
+%If (TQt_3_0_0 -)
+ virtual void addTab(TQWidget * /Transfer/,const TQString &);
+ virtual void addTab(TQWidget * /Transfer/,const TQIconSet &,
+ const TQString &);
+ virtual void addTab(TQWidget * /Transfer/,TQTab *);
- virtual void insertTab(QWidget * /Transfer/,const QString &,int = -1);
- virtual void insertTab(QWidget * /Transfer/,const QIconSet &,
- const QString &,int = -1);
- virtual void insertTab(QWidget * /Transfer/,QTab *,int = -1);
+ virtual void insertTab(TQWidget * /Transfer/,const TQString &,int = -1);
+ virtual void insertTab(TQWidget * /Transfer/,const TQIconSet &,
+ const TQString &,int = -1);
+ virtual void insertTab(TQWidget * /Transfer/,TQTab *,int = -1);
%End
- void changeTab(QWidget *,const QString &);
- void changeTab(QWidget *,const QIconSet &,const QString &);
+ void changeTab(TQWidget *,const TQString &);
+ void changeTab(TQWidget *,const TQIconSet &,const TQString &);
- bool isTabEnabled(QWidget *) const;
- void setTabEnabled(QWidget *,bool);
+ bool isTabEnabled(TQWidget *) const;
+ void setTabEnabled(TQWidget *,bool);
-%If (Qt_3_2_0 -)
- void setCornerWidget(QWidget *,Qt::Corner = Qt::TopRight);
- QWidget *cornerWidget(Qt::Corner = Qt::TopRight) const;
+%If (TQt_3_2_0 -)
+ void setCornerWidget(TQWidget *,TQt::Corner = TQt::TopRight);
+ TQWidget *cornerWidget(TQt::Corner = TQt::TopRight) const;
%End
-%If (- Qt_3_0_0)
- void showPage(QWidget *);
- void removePage(QWidget *);
+%If (- TQt_3_0_0)
+ void showPage(TQWidget *);
+ void removePage(TQWidget *);
- QString tabLabel(QWidget *);
+ TQString tabLabel(TQWidget *);
%End
-%If (Qt_3_0_0 -)
- QString tabLabel(QWidget *) const;
- void setTabLabel(QWidget *,const QString &);
+%If (TQt_3_0_0 -)
+ TQString tabLabel(TQWidget *) const;
+ void setTabLabel(TQWidget *,const TQString &);
- QIconSet tabIconSet(QWidget *) const;
- void setTabIconSet(QWidget *,const QIconSet &);
+ TQIconSet tabIconSet(TQWidget *) const;
+ void setTabIconSet(TQWidget *,const TQIconSet &);
- void removeTabToolTip(QWidget *);
- void setTabToolTip(QWidget *,const QString &);
- QString tabToolTip(QWidget *) const;
+ void removeTabToolTip(TQWidget *);
+ void setTabToolTip(TQWidget *,const TQString &);
+ TQString tabToolTip(TQWidget *) const;
%End
- QWidget *currentPage() const;
-%If (Qt_3_0_0 -)
- QWidget *page(int) const;
- QString label(int) const;
+ TQWidget *currentPage() const;
+%If (TQt_3_0_0 -)
+ TQWidget *page(int) const;
+ TQString label(int) const;
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
int currentPageIndex() const;
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
+%If (TQt_2_2_0 - TQt_3_0_0)
void setCurrentPage(int);
%End
-%If (Qt_3_0_0 -)
- int indexOf(QWidget *) const;
+%If (TQt_3_0_0 -)
+ int indexOf(TQWidget *) const;
%End
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
enum TabPosition {
Top,
@@ -126,7 +126,7 @@ public:
TabPosition tabPosition() const;
void setTabPosition(TabPosition);
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
enum TabShape {
Rounded,
Triangular
@@ -139,38 +139,38 @@ public:
int margin() const;
void setMargin(int);
-%If (Qt_2_1_0 - Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+%If (TQt_2_1_0 - TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int count() const;
%End
public slots:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setCurrentPage(int);
- virtual void showPage(QWidget *);
- virtual void removePage(QWidget *);
+ virtual void showPage(TQWidget *);
+ virtual void removePage(TQWidget *);
%End
protected:
- void showEvent(QShowEvent *);
- void resizeEvent(QResizeEvent *);
- void setTabBar(QTabBar *);
- QTabBar *tabBar() const;
- void styleChange(QStyle &);
+ void showEvent(TQShowEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void setTabBar(TQTabBar *);
+ TQTabBar *tabBar() const;
+ void styleChange(TQStyle &);
void updateMask();
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
signals:
-%If (Qt_2_2_0 -)
- void currentChanged(QWidget *);
+%If (TQt_2_2_0 -)
+ void currentChanged(TQWidget *);
%End
private:
-%If (Qt_2_1_0 -)
- QTabWidget(const QTabWidget &);
+%If (TQt_2_1_0 -)
+ TQTabWidget(const TQTabWidget &);
%End
};
diff --git a/sip/qt/qtextbrowser.sip b/sip/qt/qtextbrowser.sip
index d7f4570..d9c60d3 100644
--- a/sip/qt/qtextbrowser.sip
+++ b/sip/qt/qtextbrowser.sip
@@ -1,92 +1,92 @@
-// This is the SIP interface definition for QTextBrowser.
+// This is the SIP interface definition for TQTextBrowser.
//
// 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>QTextBrowser (Qt v2+)</Title>
+<Sect2><Title>TQTextBrowser (TQt v2+)</Title>
<Para>
-<Literal>QTextBrowser</Literal> is fully implemented.
+<Literal>TQTextBrowser</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QTextBrowser : QTextEdit
+class TQTextBrowser : TQTextEdit
{
%TypeHeaderCode
#include <qtextbrowser.h>
%End
public:
- QTextBrowser(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQTextBrowser(TQWidget * /TransferThis/ = 0,const char * = 0);
- QString source() const;
+ TQString source() const;
public slots:
- virtual void setSource(const QString &);
+ virtual void setSource(const TQString &);
virtual void backward();
virtual void forward();
virtual void home();
virtual void reload();
- void setText(const QString &);
- virtual void setText(const QString &,const QString &);
+ void setText(const TQString &);
+ virtual void setText(const TQString &,const TQString &);
signals:
void backwardAvailable(bool);
void forwardAvailable(bool);
-%If (Qt_3_1_0 -)
- void sourceChanged(const QString &);
+%If (TQt_3_1_0 -)
+ void sourceChanged(const TQString &);
%End
- void highlighted(const QString &);
- void linkClicked(const QString &);
-%If (Qt_3_1_0 -)
- void anchorClicked(const QString &,const QString &);
+ void highlighted(const TQString &);
+ void linkClicked(const TQString &);
+%If (TQt_3_1_0 -)
+ void anchorClicked(const TQString &,const TQString &);
%End
protected:
- void keyPressEvent(QKeyEvent *);
+ void keyPressEvent(TQKeyEvent *);
private:
- QTextBrowser(const QTextBrowser &);
+ TQTextBrowser(const TQTextBrowser &);
};
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
-class QTextBrowser : QTextView
+class TQTextBrowser : TQTextView
{
%TypeHeaderCode
#include <qtextbrowser.h>
%End
public:
- QTextBrowser(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQTextBrowser(TQWidget * /TransferThis/ = 0,const char * = 0);
- virtual void setSource(const QString &);
- QString source() const;
- void setText(const QString &,const QString & = QString::null);
- void scrollToAnchor(const QString &);
+ virtual void setSource(const TQString &);
+ TQString source() const;
+ void setText(const TQString &,const TQString & = TQString::null);
+ void scrollToAnchor(const TQString &);
public slots:
virtual void backward();
@@ -96,18 +96,18 @@ public slots:
signals:
void backwardAvailable(bool);
void forwardAvailable(bool);
- void highlighted(const QString &);
+ void highlighted(const TQString &);
void textChanged();
protected:
- void viewportMousePressEvent(QMouseEvent *);
- void viewportMouseReleaseEvent(QMouseEvent *);
- void viewportMouseMoveEvent(QMouseEvent *);
- void keyPressEvent(QKeyEvent *);
+ void viewportMousePressEvent(TQMouseEvent *);
+ void viewportMouseReleaseEvent(TQMouseEvent *);
+ void viewportMouseMoveEvent(TQMouseEvent *);
+ void keyPressEvent(TQKeyEvent *);
private:
-%If (Qt_2_1_0 -)
- QTextBrowser(const QTextBrowser &);
+%If (TQt_2_1_0 -)
+ TQTextBrowser(const TQTextBrowser &);
%End
};
diff --git a/sip/qt/qtextcodec.sip b/sip/qt/qtextcodec.sip
index 626e12b..739fa95 100644
--- a/sip/qt/qtextcodec.sip
+++ b/sip/qt/qtextcodec.sip
@@ -1,108 +1,108 @@
-// This is the SIP interface definition for QTextCodec, QTextDecoder and
-// QTextEncoder.
+// This is the SIP interface definition for TQTextCodec, TQTextDecoder and
+// TQTextEncoder.
//
// 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>QTextCodec (Qt v2+)</Title>
+<Sect2><Title>TQTextCodec (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef>virtual QCString <Function>fromUnicode</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>uc</Parameter></ParamDef>
+ <FuncDef>virtual TQCString <Function>fromUnicode</Function></FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>uc</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>lenInOut</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-The returned value is a tuple of the <Literal>QCString</Literal> result and the
+The returned value is a tuple of the <Literal>TQCString</Literal> result and the
updated <Literal>lenInOut</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QTextDecoder (Qt v2+)</Title>
+<Sect2><Title>TQTextDecoder (TQt v2+)</Title>
<Para>
-<Literal>QTextDecoder</Literal> is fully implemented.
+<Literal>TQTextDecoder</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTextEncoder (Qt v2+)</Title>
+<Sect2><Title>TQTextEncoder (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef>virtual QCString <Function>fromUnicode</Function> = 0</FuncDef>
- <ParamDef>const QString &amp;<Parameter>uc</Parameter></ParamDef>
+ <FuncDef>virtual TQCString <Function>fromUnicode</Function> = 0</FuncDef>
+ <ParamDef>const TQString &amp;<Parameter>uc</Parameter></ParamDef>
<ParamDef>int &amp;<Parameter>lenInOut</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-The returned value is a tuple of the <Literal>QCString</Literal> result and the
+The returned value is a tuple of the <Literal>TQCString</Literal> result and the
updated <Literal>lenInOut</Literal>.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QTextEncoder
+class TQTextEncoder
{
%TypeHeaderCode
#include <qtextcodec.h>
%End
public:
- virtual QCString fromUnicode(const QString &,int & /In,Out/) = 0;
+ virtual TQCString fromUnicode(const TQString &,int & /In,Out/) = 0;
};
-class QTextDecoder
+class TQTextDecoder
{
%TypeHeaderCode
#include <qtextcodec.h>
%End
public:
- virtual QString toUnicode(const char *,int) = 0;
+ virtual TQString toUnicode(const char *,int) = 0;
};
-class QTextCodec
+class TQTextCodec
{
%TypeHeaderCode
#include <qtextcodec.h>
%End
public:
-%If (Qt_CODECS)
- static QTextCodec *loadCharmap(QIODevice *);
- static QTextCodec *loadCharmapFile(QString);
+%If (TQt_CODECS)
+ static TQTextCodec *loadCharmap(TQIODevice *);
+ static TQTextCodec *loadCharmapFile(TQString);
%End
- static QTextCodec *codecForMib(int);
- static QTextCodec *codecForName(const char *,int = 0);
- static QTextCodec *codecForContent(const char *,int);
- static QTextCodec *codecForIndex(int);
- static QTextCodec *codecForLocale();
-%If (Qt_3_0_0 -)
- static void setCodecForLocale(QTextCodec *);
+ static TQTextCodec *codecForMib(int);
+ static TQTextCodec *codecForName(const char *,int = 0);
+ static TQTextCodec *codecForContent(const char *,int);
+ static TQTextCodec *codecForIndex(int);
+ static TQTextCodec *codecForLocale();
+%If (TQt_3_0_0 -)
+ static void setCodecForLocale(TQTextCodec *);
%End
-%If (Qt_3_1_0 -)
- static QTextCodec *codecForTr();
- static void setCodecForTr(QTextCodec *);
- static QTextCodec *codecForCStrings();
- static void setCodecForCStrings(QTextCodec *);
+%If (TQt_3_1_0 -)
+ static TQTextCodec *codecForTr();
+ static void setCodecForTr(TQTextCodec *);
+ static TQTextCodec *codecForCStrings();
+ static void setCodecForCStrings(TQTextCodec *);
%End
static void deleteAllCodecs();
@@ -110,37 +110,37 @@ public:
static const char *locale();
virtual const char *name() const = 0;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual const char *mimeName() const;
%End
virtual int mibEnum() const = 0;
- virtual QTextDecoder *makeDecoder() const /Factory/;
- virtual QTextEncoder *makeEncoder() const /Factory/;
-
- virtual QString toUnicode(const char *,int) const;
- virtual QCString fromUnicode(const QString &,int & /In,Out/) const;
- QCString fromUnicode(const QString &) const;
- QString toUnicode(const QByteArray &,int) const;
- QString toUnicode(const QByteArray &) const;
-%If (Qt_3_0_0 -)
- QString toUnicode(const QCString &,int) const;
- QString toUnicode(const QCString &) const;
+ virtual TQTextDecoder *makeDecoder() const /Factory/;
+ virtual TQTextEncoder *makeEncoder() const /Factory/;
+
+ virtual TQString toUnicode(const char *,int) const;
+ virtual TQCString fromUnicode(const TQString &,int & /In,Out/) const;
+ TQCString fromUnicode(const TQString &) const;
+ TQString toUnicode(const TQByteArray &,int) const;
+ TQString toUnicode(const TQByteArray &) const;
+%If (TQt_3_0_0 -)
+ TQString toUnicode(const TQCString &,int) const;
+ TQString toUnicode(const TQCString &) const;
%End
- QString toUnicode(const char *) const;
- virtual bool canEncode(QChar) const;
- virtual bool canEncode(const QString &) const;
+ TQString toUnicode(const char *) const;
+ virtual bool canEncode(TQChar) const;
+ virtual bool canEncode(const TQString &) const;
virtual int heuristicContentMatch(const char *,int) const = 0;
virtual int heuristicNameMatch(const char *) const;
-%If (Qt_3_0_0 -)
- virtual QByteArray fromUnicode(const QString &,int,int) const;
- virtual unsigned short characterFromUnicode(const QString &,int) const;
+%If (TQt_3_0_0 -)
+ virtual TQByteArray fromUnicode(const TQString &,int,int) const;
+ virtual unsigned short characterFromUnicode(const TQString &,int) const;
%End
protected:
- QTextCodec();
+ TQTextCodec();
};
%End
diff --git a/sip/qt/qtextedit.sip b/sip/qt/qtextedit.sip
index 3576bf3..4d2362c 100644
--- a/sip/qt/qtextedit.sip
+++ b/sip/qt/qtextedit.sip
@@ -1,30 +1,30 @@
-// This is the SIP interface definition for QTextEdit.
+// This is the SIP interface definition for TQTextEdit.
//
// 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>QTextEdit (Qt v3+)</Title>
+<Sect2><Title>TQTextEdit (TQt v3+)</Title>
<FuncSynopsis>
<FuncDef>int <Function>charAt</Function></FuncDef>
- <ParamDef>const QPoint &amp;<Parameter>pos</Parameter></ParamDef>
+ <ParamDef>const TQPoint &amp;<Parameter>pos</Parameter></ParamDef>
<ParamDef>int *<Parameter>para</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -42,7 +42,7 @@ This has been renamed <Literal>delChar</Literal> in Python.
<FuncSynopsis>
<FuncDef>virtual bool <Function>find</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>expr</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>expr</Parameter></ParamDef>
<ParamDef>bool <Parameter>cs</Parameter></ParamDef>
<ParamDef>bool <Parameter>wo</Parameter></ParamDef>
<ParamDef>bool <Parameter>forward</Parameter> = TRUE</ParamDef>
@@ -83,16 +83,16 @@ the <Literal>paraFrom</Literal>, <Literal>indexFrom</Literal>,
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-// These aren't part of the public API in the Qt3 beta, so define them as
+// These aren't part of the public API in the TQt3 beta, so define them as
// opaque for the moment.
-class QTextDocument;
-class QTextCursor;
+class TQTextDocument;
+class TQTextCursor;
-class QTextEdit : QScrollView
+class TQTextEdit : TQScrollView
{
%TypeHeaderCode
#include <qtextedit.h>
@@ -110,12 +110,12 @@ public:
AtWordBoundary,
Anywhere,
AtWhiteSpace,
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
AtWordOrDocumentBoundary
%End
};
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum AutoFormatting {
AutoNone,
AutoBulletList,
@@ -128,7 +128,7 @@ public:
ActionDelete,
ActionReturn,
ActionKill,
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
ActionWordBackspace,
ActionWordDelete
%End
@@ -155,7 +155,7 @@ public:
AlignSubScript
};
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum TextInsertionFlags {
RedoIndentation,
CheckNewLines,
@@ -163,24 +163,24 @@ public:
};
%End
- QTextEdit(const QString &,const QString & = QString::null,
- QWidget * /TransferThis/ = 0,const char * = 0);
- QTextEdit(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQTextEdit(const TQString &,const TQString & = TQString::null,
+ TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQTextEdit(TQWidget * /TransferThis/ = 0,const char * = 0);
- void setPalette(const QPalette &);
+ void setPalette(const TQPalette &);
- QString text() const;
- QString text(int) const;
+ TQString text() const;
+ TQString text(int) const;
TextFormat textFormat() const;
- QString context() const;
- QString documentTitle() const;
+ TQString context() const;
+ TQString documentTitle() const;
void getSelection(int *,int *,int *,int *,int = 0) const;
// We implement find() as two separate methods as it's the easiest way
- // to handle the somewhat strange Qt interface.
- virtual bool find(const QString &,bool,bool,bool = 1);
- virtual bool find(const QString &,bool,bool,bool,int * /In,Out/,
+ // to handle the somewhat strange TQt interface.
+ virtual bool find(const TQString &,bool,bool,bool = 1);
+ virtual bool find(const TQString &,bool,bool,bool,int * /In,Out/,
int * /In,Out/);
int paragraphs() const;
@@ -188,17 +188,17 @@ public:
int linesOfParagraph(int) const;
int lineOfChar(int,int);
int length() const;
- QRect paragraphRect(int) const;
- int paragraphAt(const QPoint &) const;
+ TQRect paragraphRect(int) const;
+ int paragraphAt(const TQPoint &) const;
// Note that this is handwritten code because the generated code would
// return the values in the (correct but) reverse order.
- SIP_PYTUPLE charAt(const QPoint &) const;
+ SIP_PYTUPLE charAt(const TQPoint &) const;
%MethodCode
int para, index;
Py_BEGIN_ALLOW_THREADS
- index = sipCpp -> QTextEdit::charAt(*a0,&para);
+ index = sipCpp -> TQTextEdit::charAt(*a0,&para);
Py_END_ALLOW_THREADS
sipRes = sipBuildResult(&sipIsErr,"(ii)",para,index);
@@ -206,16 +206,16 @@ public:
int paragraphLength(int) const;
- QStyleSheet *styleSheet() const;
- QMimeSourceFactory *mimeSourceFactory() const;
+ TQStyleSheet *styleSheet() const;
+ TQMimeSourceFactory *mimeSourceFactory() const;
- QBrush paper() const;
+ TQBrush paper() const;
bool linkUnderline() const;
int heightForWidth(int) const;
bool hasSelectedText() const;
- QString selectedText() const;
+ TQString selectedText() const;
bool isUndoAvailable() const;
bool isRedoAvailable() const;
@@ -225,12 +225,12 @@ public:
int tabStopWidth() const;
- QString anchorAt(const QPoint &);
-%If (Qt_3_1_0 -)
- QString anchorAt(const QPoint &,AnchorAttribute);
+ TQString anchorAt(const TQPoint &);
+%If (TQt_3_1_0 -)
+ TQString anchorAt(const TQPoint &,AnchorAttribute);
%End
- QSize sizeHint() const;
+ TQSize sizeHint() const;
bool isReadOnly() const;
@@ -240,33 +240,33 @@ public:
bool italic() const;
bool bold() const;
bool underline() const;
- QString family() const;
+ TQString family() const;
int pointSize() const;
- QColor color() const;
- QFont font() const;
-%If (Qt_3_1_0 -)
- QFont currentFont() const;
+ TQColor color() const;
+ TQFont font() const;
+%If (TQt_3_1_0 -)
+ TQFont currentFont() const;
%End
int alignment() const;
int undoDepth() const;
// These are undocumented and marked as "don't use".
- //virtual bool getFormat(int,int,QFont *,QColor *,VerticalAlignment *);
- //virtual bool getParagraphFormat(int,QFont *,QColor *,
+ //virtual bool getFormat(int,int,TQFont *,TQColor *,VerticalAlignment *);
+ //virtual bool getParagraphFormat(int,TQFont *,TQColor *,
// VerticalAlignment *,int *,
- // QStyleSheetItem::DisplayMode *,
- // QStyleSheetItem::ListStyle *,
+ // TQStyleSheetItem::DisplayMode *,
+ // TQStyleSheetItem::ListStyle *,
// int *);
bool isOverwriteMode() const;
- QColor paragraphBackgroundColor(int) const;
+ TQColor paragraphBackgroundColor(int) const;
bool isUndoRedoEnabled() const;
- bool eventFilter(QObject *,QEvent *);
-%If (Qt_3_1_0 -)
+ bool eventFilter(TQObject *,TQEvent *);
+%If (TQt_3_1_0 -)
bool tabChangesFocus() const;
- // Qt defines the following as uint rather than int because it uses the
+ // TQt defines the following as uint rather than int because it uses the
// AutoFormatting enum as a set of flags. Because SIP implements enums
// as a subclass of int they are always signed. AutoAll is defined as
// 0xffffffff which Python converts to -1 and then fails to convert it
@@ -275,16 +275,16 @@ public:
void setAutoFormatting(int);
int autoFormatting() const;
%End
-%If (Qt_3_3_0 -)
- QSyntaxHighlighter *syntaxHighlighter() const;
+%If (TQt_3_3_0 -)
+ TQSyntaxHighlighter *syntaxHighlighter() const;
%End
public slots:
void setEnabled(bool);
- virtual void setMimeSourceFactory(QMimeSourceFactory *);
- virtual void setStyleSheet(QStyleSheet *);
- virtual void scrollToAnchor(const QString &);
- virtual void setPaper(const QBrush &);
+ virtual void setMimeSourceFactory(TQMimeSourceFactory *);
+ virtual void setStyleSheet(TQStyleSheet *);
+ virtual void scrollToAnchor(const TQString &);
+ virtual void setPaper(const TQBrush &);
virtual void setLinkUnderline(bool);
virtual void setWordWrap(WordWrap);
@@ -292,10 +292,10 @@ public slots:
virtual void setWrapPolicy(WrapPolicy);
virtual void copy();
- virtual void append(const QString &);
+ virtual void append(const TQString &);
- void setText(const QString &);
- virtual void setText(const QString &,const QString &);
+ void setText(const TQString &);
+ virtual void setText(const TQString &,const TQString &);
virtual void setTextFormat(TextFormat);
virtual void selectAll(bool = 1);
@@ -313,61 +313,61 @@ public slots:
virtual void redo();
virtual void cut();
virtual void paste();
- virtual void pasteSubType(const QCString &);
+ virtual void pasteSubType(const TQCString &);
virtual void clear();
virtual void del() /PyName=delChar/;
virtual void indent();
virtual void setItalic(bool);
virtual void setBold(bool);
virtual void setUnderline(bool);
- virtual void setFamily(const QString &);
+ virtual void setFamily(const TQString &);
virtual void setPointSize(int);
- virtual void setColor(const QColor &);
- virtual void setFont(const QFont &);
+ virtual void setColor(const TQColor &);
+ virtual void setFont(const TQFont &);
virtual void setVerticalAlignment(VerticalAlignment);
virtual void setAlignment(int);
- virtual void setParagType(QStyleSheetItem::DisplayMode,
- QStyleSheetItem::ListStyle);
+ virtual void setParagType(TQStyleSheetItem::DisplayMode,
+ TQStyleSheetItem::ListStyle);
virtual void setCursorPosition(int,int);
virtual void setSelection(int,int,int,int,int = 0);
- virtual void setSelectionAttributes(int,const QColor &,bool);
+ virtual void setSelectionAttributes(int,const TQColor &,bool);
virtual void setModified(bool);
virtual void resetFormat();
virtual void setUndoDepth(int);
-// Marked as internal in the Qt3 beta.
-// virtual void setFormat(QTextFormat *,int);
+// Marked as internal in the TQt3 beta.
+// virtual void setFormat(TQTextFormat *,int);
virtual void ensureCursorVisible();
- virtual void placeCursor(const QPoint &,QTextCursor * = 0);
+ virtual void placeCursor(const TQPoint &,TQTextCursor * = 0);
virtual void moveCursor(CursorAction,bool);
virtual void doKeyboardAction(KeyboardAction);
virtual void removeSelectedText(int = 0);
virtual void removeSelection(int = 0);
- virtual void setCurrentFont(const QFont &);
+ virtual void setCurrentFont(const TQFont &);
virtual void setOverwriteMode(bool);
virtual void scrollToBottom();
-%If (Qt_3_1_0 -)
- void insert(const QString &,uint = CheckNewLines | RemoveSelected);
- virtual void insert(const QString &,bool,bool = 1,bool = 1);
+%If (TQt_3_1_0 -)
+ void insert(const TQString &,uint = CheckNewLines | RemoveSelected);
+ virtual void insert(const TQString &,bool,bool = 1,bool = 1);
%End
-%If (- Qt_3_1_0)
- virtual void insert(const QString &,bool = 0,bool = 1,bool = 1);
+%If (- TQt_3_1_0)
+ virtual void insert(const TQString &,bool = 0,bool = 1,bool = 1);
%End
- virtual void insertAt(const QString &,int,int);
+ virtual void insertAt(const TQString &,int,int);
virtual void removeParagraph(int);
- virtual void insertParagraph(const QString &,int);
+ virtual void insertParagraph(const TQString &,int);
- virtual void setParagraphBackgroundColor(int,const QColor &);
+ virtual void setParagraphBackgroundColor(int,const TQColor &);
virtual void clearParagraphBackground(int);
virtual void setUndoRedoEnabled(bool);
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void setTabChangesFocus(bool);
void polish();
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void setMaxLogLines(int);
int maxLogLines();
%End
@@ -378,15 +378,15 @@ signals:
void copyAvailable(bool);
void undoAvailable(bool);
void redoAvailable(bool);
- void currentFontChanged(const QFont &);
- void currentColorChanged(const QColor &);
+ void currentFontChanged(const TQFont &);
+ void currentColorChanged(const TQColor &);
void currentAlignmentChanged(int);
void currentVerticalAlignmentChanged(VerticalAlignment);
- void cursorPositionChanged(QTextCursor *);
+ void cursorPositionChanged(TQTextCursor *);
void cursorPositionChanged(int,int);
void returnPressed();
void modificationChanged(bool);
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void clicked(int,int);
void doubleClicked(int,int);
%End
@@ -394,43 +394,43 @@ signals:
protected:
void repaintChanged();
void updateStyles();
- void drawContents(QPainter *,int,int,int,int);
- bool event(QEvent *);
- void keyPressEvent(QKeyEvent *);
- void resizeEvent(QResizeEvent *);
- void viewportResizeEvent(QResizeEvent *);
- void contentsMousePressEvent(QMouseEvent *);
- void contentsMouseMoveEvent(QMouseEvent *);
- void contentsMouseReleaseEvent(QMouseEvent *);
- void contentsMouseDoubleClickEvent(QMouseEvent *);
- void contentsWheelEvent(QWheelEvent *);
- void imStartEvent(QIMEvent *);
- void imComposeEvent(QIMEvent *);
- void imEndEvent(QIMEvent *);
- void contentsDragEnterEvent(QDragEnterEvent *);
- void contentsDragMoveEvent(QDragMoveEvent *);
- void contentsDragLeaveEvent(QDragLeaveEvent *);
- void contentsDropEvent(QDropEvent *);
- void contentsContextMenuEvent(QContextMenuEvent *);
+ void drawContents(TQPainter *,int,int,int,int);
+ bool event(TQEvent *);
+ void keyPressEvent(TQKeyEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void viewportResizeEvent(TQResizeEvent *);
+ void contentsMousePressEvent(TQMouseEvent *);
+ void contentsMouseMoveEvent(TQMouseEvent *);
+ void contentsMouseReleaseEvent(TQMouseEvent *);
+ void contentsMouseDoubleClickEvent(TQMouseEvent *);
+ void contentsWheelEvent(TQWheelEvent *);
+ void imStartEvent(TQIMEvent *);
+ void imComposeEvent(TQIMEvent *);
+ void imEndEvent(TQIMEvent *);
+ void contentsDragEnterEvent(TQDragEnterEvent *);
+ void contentsDragMoveEvent(TQDragMoveEvent *);
+ void contentsDragLeaveEvent(TQDragLeaveEvent *);
+ void contentsDropEvent(TQDropEvent *);
+ void contentsContextMenuEvent(TQContextMenuEvent *);
bool focusNextPrevChild(bool);
- QTextDocument *document() const;
- QTextCursor *textCursor() const;
- void setDocument(QTextDocument *);
- virtual QPopupMenu *createPopupMenu(const QPoint &) /Factory/;
- virtual QPopupMenu *createPopupMenu() /Factory/;
+ TQTextDocument *document() const;
+ TQTextCursor *textCursor() const;
+ void setDocument(TQTextDocument *);
+ virtual TQPopupMenu *createPopupMenu(const TQPoint &) /Factory/;
+ virtual TQPopupMenu *createPopupMenu() /Factory/;
void drawCursor(bool);
void windowActivationChange(bool);
protected slots:
virtual void doChangeInterval();
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void sliderReleased();
%End
private:
-%If (Qt_3_1_0 -)
- QTextEdit(const QTextEdit &);
+%If (TQt_3_1_0 -)
+ TQTextEdit(const TQTextEdit &);
%End
};
diff --git a/sip/qt/qtextstream.sip b/sip/qt/qtextstream.sip
index 7e8abcd..d546eb2 100644
--- a/sip/qt/qtextstream.sip
+++ b/sip/qt/qtextstream.sip
@@ -1,30 +1,30 @@
-// This is the SIP interface definition for QTextStream, QTextIStream and
-// QTextOStream.
+// This is the SIP interface definition for TQTextStream, TQTextIStream and
+// TQTextOStream.
//
// 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>QTextStream</Title>
+<Sect2><Title>TQTextStream</Title>
<FuncSynopsis>
- <FuncDef><Function>QTextStream</Function></FuncDef>
+ <FuncDef><Function>TQTextStream</Function></FuncDef>
<ParamDef>FILE *<Parameter>fp</Parameter></ParamDef>
<ParamDef>int <Parameter>mode</Parameter></ParamDef>
</FuncSynopsis>
@@ -33,7 +33,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QTextStream &<Function>readRawBytes</Function></FuncDef>
+ <FuncDef>TQTextStream &<Function>readRawBytes</Function></FuncDef>
<ParamDef>char *<Parameter>buf</Parameter></ParamDef>
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
</FuncSynopsis>
@@ -42,7 +42,7 @@ Not yet implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QTextStream &<Function>writeRawBytes</Function></FuncDef>
+ <FuncDef>TQTextStream &<Function>writeRawBytes</Function></FuncDef>
<ParamDef>const char *<Parameter>buf</Parameter></ParamDef>
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
</FuncSynopsis>
@@ -51,9 +51,9 @@ Not yet implemented.
</Para>
</Sect2>
-<Sect2><Title>QTextIStream (Qt v2+)</Title>
+<Sect2><Title>TQTextIStream (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QTextIStream</Function></FuncDef>
+ <FuncDef><Function>TQTextIStream</Function></FuncDef>
<ParamDef>FILE *<Parameter>fp</Parameter></ParamDef>
<ParamDef>int <Parameter>mode</Parameter></ParamDef>
</FuncSynopsis>
@@ -62,9 +62,9 @@ Not implemented.
</Para>
</Sect2>
-<Sect2><Title>QTextOStream (Qt v2+)</Title>
+<Sect2><Title>TQTextOStream (TQt v2+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QTextOStream</Function></FuncDef>
+ <FuncDef><Function>TQTextOStream</Function></FuncDef>
<ParamDef>FILE *<Parameter>fp</Parameter></ParamDef>
<ParamDef>int <Parameter>mode</Parameter></ParamDef>
</FuncSynopsis>
@@ -75,14 +75,14 @@ Not implemented.
%End
-class QTextStream
+class TQTextStream
{
%TypeHeaderCode
#include <qtextstream.h>
%End
public:
-%If (Qt_2_00 - Qt_2_2_0)
+%If (TQt_2_00 - TQt_2_2_0)
enum Encoding {
Locale,
Latin1,
@@ -92,7 +92,7 @@ public:
RawUnicode
};
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
enum Encoding {
Locale,
Latin1,
@@ -104,37 +104,37 @@ public:
};
%End
- QTextStream();
- QTextStream(QIODevice *);
-%If (Qt_2_00 -)
- QTextStream(QString *,int);
+ TQTextStream();
+ TQTextStream(TQIODevice *);
+%If (TQt_2_00 -)
+ TQTextStream(TQString *,int);
%End
- QTextStream(QByteArray,int);
-// QTextStream(FILE *,int);
+ TQTextStream(TQByteArray,int);
+// TQTextStream(FILE *,int);
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void setEncoding(Encoding);
- void setCodec(QTextCodec *);
+ void setCodec(TQTextCodec *);
%End
-%If (Qt_3_1_0 -)
- QTextCodec *codec();
+%If (TQt_3_1_0 -)
+ TQTextCodec *codec();
%End
- QIODevice *device() const;
- void setDevice(QIODevice *);
+ TQIODevice *device() const;
+ void setDevice(TQIODevice *);
void unsetDevice();
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
bool atEnd() const;
%End
bool eof() const;
-// QTextStream &readRawBytes(char *,uint) /ReleaseGIL/;
-// QTextStream &writeRawBytes(const char *,uint) /ReleaseGIL/;
+// TQTextStream &readRawBytes(char *,uint) /ReleaseGIL/;
+// TQTextStream &writeRawBytes(const char *,uint) /ReleaseGIL/;
- QString readLine() /ReleaseGIL/;
-%If (Qt_2_00 -)
- QString read() /ReleaseGIL/;
+ TQString readLine() /ReleaseGIL/;
+%If (TQt_2_00 -)
+ TQString read() /ReleaseGIL/;
void skipWhiteSpace();
%End
@@ -174,57 +174,57 @@ public:
int precision() const;
int precision(int);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
// These are defined in qmainwindow.h as global operators so we have
// to implement them here and pretend they are class operators.
- QTextStream &operator<<(const QMainWindow &);
- QTextStream &operator>>(QMainWindow &);
+ TQTextStream &operator<<(const TQMainWindow &);
+ TQTextStream &operator>>(TQMainWindow &);
// These are defined in qdockarea.h as global operators so we have
// to implement them here and pretend they are class operators.
- QTextStream &operator<<(const QDockArea &);
- QTextStream &operator>>(QDockArea &);
+ TQTextStream &operator<<(const TQDockArea &);
+ TQTextStream &operator>>(TQDockArea &);
%End
private:
- QTextStream(const QTextStream &);
+ TQTextStream(const TQTextStream &);
};
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QTextIStream : QTextStream
+class TQTextIStream : TQTextStream
{
%TypeHeaderCode
#include <qtextstream.h>
%End
public:
- QTextIStream(QString *);
- QTextIStream(QByteArray);
-// QTextIStream(FILE *);
+ TQTextIStream(TQString *);
+ TQTextIStream(TQByteArray);
+// TQTextIStream(FILE *);
private:
-%If (Qt_3_1_0 -)
- QTextIStream(const QTextIStream &);
+%If (TQt_3_1_0 -)
+ TQTextIStream(const TQTextIStream &);
%End
};
-class QTextOStream : QTextStream
+class TQTextOStream : TQTextStream
{
%TypeHeaderCode
#include <qtextstream.h>
%End
public:
- QTextOStream(QString *);
- QTextOStream(QByteArray);
-// QTextOStream(FILE *);
+ TQTextOStream(TQString *);
+ TQTextOStream(TQByteArray);
+// TQTextOStream(FILE *);
private:
-%If (Qt_3_1_0 -)
- QTextOStream(const QTextOStream &);
+%If (TQt_3_1_0 -)
+ TQTextOStream(const TQTextOStream &);
%End
};
diff --git a/sip/qt/qtextview.sip b/sip/qt/qtextview.sip
index d79a34a..c17b0d0 100644
--- a/sip/qt/qtextview.sip
+++ b/sip/qt/qtextview.sip
@@ -1,127 +1,127 @@
-// This is the SIP interface definition for QTextView.
+// This is the SIP interface definition for TQTextView.
//
// 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>QTextView (Qt v2+)</Title>
+<Sect2><Title>TQTextView (TQt v2+)</Title>
<Para>
-<Literal>QTextView</Literal> is fully implemented.
+<Literal>TQTextView</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QTextView : QTextEdit
+class TQTextView : TQTextEdit
{
%TypeHeaderCode
#include <qtextview.h>
%End
public:
- QTextView(QWidget * /TransferThis/ = 0,const char * = 0);
- QTextView(const QString &,const QString & = QString::null,
- QWidget * /TransferThis/ = 0,const char * = 0);
+ TQTextView(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQTextView(const TQString &,const TQString & = TQString::null,
+ TQWidget * /TransferThis/ = 0,const char * = 0);
private:
-%If (Qt_3_1_0 -)
- QTextView(const QTextView &);
+%If (TQt_3_1_0 -)
+ TQTextView(const TQTextView &);
%End
};
%End
-%If (Qt_2_00 - Qt_3_0_0)
+%If (TQt_2_00 - TQt_3_0_0)
-class QTextView : QScrollView
+class TQTextView : TQScrollView
{
%TypeHeaderCode
#include <qtextview.h>
%End
public:
- QTextView(QWidget * /TransferThis/ = 0,const char * = 0);
- QTextView(const QString &,const QString & = QString::null,
- QWidget * /TransferThis/ = 0,const char * = 0);
+ TQTextView(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQTextView(const TQString &,const TQString & = TQString::null,
+ TQWidget * /TransferThis/ = 0,const char * = 0);
-%If (- Qt_2_1_0)
- virtual void setText(const QString &,const QString & = QString::null);
+%If (- TQt_2_1_0)
+ virtual void setText(const TQString &,const TQString & = TQString::null);
%End
-%If (Qt_2_1_0 -)
- virtual void setText(const QString &,const QString &);
- void setText(const QString &);
+%If (TQt_2_1_0 -)
+ virtual void setText(const TQString &,const TQString &);
+ void setText(const TQString &);
%End
- virtual QString text() const;
- virtual QString context() const;
- Qt::TextFormat textFormat() const;
- void setTextFormat(Qt::TextFormat);
- QStyleSheet *styleSheet() const;
- void setStyleSheet(QStyleSheet *);
- void setPaper(const QBrush &);
- const QBrush &paper();
- void setPaperColorGroup(const QColorGroup &);
- const QColorGroup &paperColorGroup() const;
- void setLinkColor(const QColor &);
- const QColor &linkColor() const;
+ virtual TQString text() const;
+ virtual TQString context() const;
+ TQt::TextFormat textFormat() const;
+ void setTextFormat(TQt::TextFormat);
+ TQStyleSheet *styleSheet() const;
+ void setStyleSheet(TQStyleSheet *);
+ void setPaper(const TQBrush &);
+ const TQBrush &paper();
+ void setPaperColorGroup(const TQColorGroup &);
+ const TQColorGroup &paperColorGroup() const;
+ void setLinkColor(const TQColor &);
+ const TQColor &linkColor() const;
void setLinkUnderline(bool);
bool linkUnderline() const;
- void setMimeSourceFactory(QMimeSourceFactory *);
- QMimeSourceFactory *mimeSourceFactory() const;
- QString documentTitle() const;
+ void setMimeSourceFactory(TQMimeSourceFactory *);
+ TQMimeSourceFactory *mimeSourceFactory() const;
+ TQString documentTitle() const;
int heightForWidth(int) const;
-%If (Qt_2_1_0 -)
- void append(const QString &);
+%If (TQt_2_1_0 -)
+ void append(const TQString &);
bool hasSelectedText() const;
- QString selectedText() const;
+ TQString selectedText() const;
%End
public slots:
-%If (Qt_2_1_0 -)
-%If (Qt_CLIPBOARD)
+%If (TQt_2_1_0 -)
+%If (TQt_CLIPBOARD)
void copy();
%End
void selectAll();
%End
protected:
- void drawContentsOffset(QPainter *,int,int,int,int,int,int);
- void resizeEvent(QResizeEvent *);
- void viewportResizeEvent(QResizeEvent *);
- void viewportMousePressEvent(QMouseEvent *);
- void viewportMouseReleaseEvent(QMouseEvent *);
- void viewportMouseMoveEvent(QMouseEvent *);
- void keyPressEvent(QKeyEvent *);
-%If (Qt_2_1_0 -)
- void showEvent(QShowEvent *);
- void focusInEvent(QFocusEvent *);
- void focusOutEvent(QFocusEvent *);
+ void drawContentsOffset(TQPainter *,int,int,int,int,int,int);
+ void resizeEvent(TQResizeEvent *);
+ void viewportResizeEvent(TQResizeEvent *);
+ void viewportMousePressEvent(TQMouseEvent *);
+ void viewportMouseReleaseEvent(TQMouseEvent *);
+ void viewportMouseMoveEvent(TQMouseEvent *);
+ void keyPressEvent(TQKeyEvent *);
+%If (TQt_2_1_0 -)
+ void showEvent(TQShowEvent *);
+ void focusInEvent(TQFocusEvent *);
+ void focusOutEvent(TQFocusEvent *);
%End
-// QRichText &richText() const;
- void paletteChange(const QPalette &);
+// TQRichText &richText() const;
+ void paletteChange(const TQPalette &);
private:
-%If (Qt_2_1_0 -)
- QTextView(const QTextView &);
+%If (TQt_2_1_0 -)
+ TQTextView(const TQTextView &);
%End
};
diff --git a/sip/qt/qthread.sip b/sip/qt/qthread.sip
index 29966c6..6f47b61 100644
--- a/sip/qt/qthread.sip
+++ b/sip/qt/qthread.sip
@@ -1,66 +1,66 @@
-// This is the SIP interface definition for QThread.
+// This is the SIP interface definition for TQThread.
//
// 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>QThread (Qt v2.2+)</Title>
+<Sect2><Title>TQThread (TQt v2.2+)</Title>
<Para>
-<Literal>QThread</Literal> is fully implemented.
+<Literal>TQThread</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_THREAD_SUPPORT)
-%If (Qt_2_2_0 -)
+%If (TQt_THREAD_SUPPORT)
+%If (TQt_2_2_0 -)
-class QThread : Qt /CreatesThread/
+class TQThread : TQt /CreatesThread/
{
%TypeHeaderCode
#include <qthread.h>
%End
public:
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
static HANDLE currentThread();
%End
-%If (Qt_3_0_0 -)
- static Qt::HANDLE currentThread();
+%If (TQt_3_0_0 -)
+ static TQt::HANDLE currentThread();
%End
- static void postEvent(QObject *,QEvent * /Transfer/) /ReleaseGIL/;
-%If (Qt_3_0_0 -)
+ static void postEvent(TQObject *,TQEvent * /Transfer/) /ReleaseGIL/;
+%If (TQt_3_0_0 -)
static void initialize();
static void cleanup();
%End
static void exit() /ReleaseGIL/;
-%If (Qt_3_1_0 -)
- QThread(unsigned int);
+%If (TQt_3_1_0 -)
+ TQThread(unsigned int);
%End
- QThread();
+ TQThread();
bool wait(unsigned long = ULONG_MAX) /ReleaseGIL/;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
enum Priority {
IdlePriority,
LowestPriority,
@@ -76,7 +76,7 @@ public:
%End
void start() /ReleaseGIL/;
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void terminate();
%End
@@ -91,7 +91,7 @@ protected:
static void usleep(unsigned long) /ReleaseGIL/;
private:
- QThread(const QThread &);
+ TQThread(const TQThread &);
};
%End
diff --git a/sip/qt/qtimer.sip b/sip/qt/qtimer.sip
index 62d20b2..bb7fc9b 100644
--- a/sip/qt/qtimer.sip
+++ b/sip/qt/qtimer.sip
@@ -1,42 +1,42 @@
-// This is the SIP interface definition for QTimer.
+// This is the SIP interface definition for TQTimer.
//
// 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>QTimer</Title>
+<Sect2><Title>TQTimer</Title>
<Para>
-<Literal>QTimer</Literal> is fully implemented.
+<Literal>TQTimer</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QTimer : QObject
+class TQTimer : TQObject
{
%TypeHeaderCode
#include <qtimer.h>
%End
public:
- QTimer(QObject * /TransferThis/ = 0,char * = 0);
+ TQTimer(TQObject * /TransferThis/ = 0,char * = 0);
bool isActive() const;
int start(int,bool = 0);
@@ -44,7 +44,7 @@ public:
void stop();
static void singleShot(int,SIP_RXOBJ_CON,SIP_SLOT_CON());
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
int timerId() const;
%End
@@ -52,8 +52,8 @@ signals:
void timeout();
protected:
- bool event(QEvent *);
+ bool event(TQEvent *);
private:
- QTimer(const QTimer &);
+ TQTimer(const TQTimer &);
};
diff --git a/sip/qt/qtmod.sip b/sip/qt/qtmod.sip
index 045c779..d727a78 100644
--- a/sip/qt/qtmod.sip
+++ b/sip/qt/qtmod.sip
@@ -1,28 +1,28 @@
-// This is the SIP interface definition for the qt module of PyQt.
+// This is the SIP interface definition for the qt 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.
%Module qt 2
-%Plugin PyQt3
+%Plugin PyTQt3
%Include versions.sip
%Include copying.sip
@@ -49,7 +49,7 @@ static const char *PYQT_VERSION_STR = "3.18.1";
%PreInitialisationCode
if (!vendorid_check())
{
- PyErr_SetString(PyExc_RuntimeError, "PyQt cannot be used with this Python interpreter");
+ PyErr_SetString(PyExc_RuntimeError, "PyTQt cannot be used with this Python interpreter");
return;
}
%End
@@ -254,20 +254,20 @@ static const char *PYQT_VERSION_STR = "3.18.1";
# 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.
diff --git a/sip/qt/qtoolbar.sip b/sip/qt/qtoolbar.sip
index 7143ba0..3f281da 100644
--- a/sip/qt/qtoolbar.sip
+++ b/sip/qt/qtoolbar.sip
@@ -1,110 +1,110 @@
-// This is the SIP interface definition for QToolBar.
+// This is the SIP interface definition for TQToolBar.
//
// 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>QToolBar</Title>
+<Sect2><Title>TQToolBar</Title>
<Para>
-<Literal>QToolBar</Literal> is fully implemented.
+<Literal>TQToolBar</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QToolBar : QDockWindow
+class TQToolBar : TQDockWindow
{
%TypeHeaderCode
#include <qtoolbar.h>
%End
public:
- QToolBar(const QString &,QMainWindow * /TransferThis/,Dock = DockTop,
+ TQToolBar(const TQString &,TQMainWindow * /TransferThis/,Dock = DockTop,
bool = 0,const char * = 0);
- QToolBar(const QString &,QMainWindow *,QWidget * /TransferThis/,
+ TQToolBar(const TQString &,TQMainWindow *,TQWidget * /TransferThis/,
bool = 0,const char * = 0,WFlags = 0);
- QToolBar(QMainWindow * /TransferThis/ = 0,const char * = 0);
+ TQToolBar(TQMainWindow * /TransferThis/ = 0,const char * = 0);
void addSeparator();
void show();
void hide();
- QMainWindow *mainWindow() const;
+ TQMainWindow *mainWindow() const;
- virtual void setStretchableWidget(QWidget *);
+ virtual void setStretchableWidget(TQWidget *);
- bool event(QEvent *);
+ bool event(TQEvent *);
- virtual void setLabel(const QString &);
- QString label() const;
+ virtual void setLabel(const TQString &);
+ TQString label() const;
virtual void clear();
- QSize minimumSize() const;
- QSize minimumSizeHint() const;
+ TQSize minimumSize() const;
+ TQSize minimumSizeHint() const;
void setOrientation(Orientation);
void setMinimumSize(int,int);
protected:
- void resizeEvent(QResizeEvent *);
- void styleChange(QStyle &);
+ void resizeEvent(TQResizeEvent *);
+ void styleChange(TQStyle &);
private:
- QToolBar(const QToolBar &);
+ TQToolBar(const TQToolBar &);
};
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
-class QToolBar : QWidget
+class TQToolBar : TQWidget
{
%TypeHeaderCode
#include <qtoolbar.h>
%End
public:
-%If (- Qt_2_00)
- QToolBar(const char *,QMainWindow * /TransferThis/,
- QMainWindow::ToolBarDock = QMainWindow::Top,
+%If (- TQt_2_00)
+ TQToolBar(const char *,TQMainWindow * /TransferThis/,
+ TQMainWindow::ToolBarDock = TQMainWindow::Top,
bool = 0,const char * = 0);
- QToolBar(const char *,QMainWindow *,QWidget * /TransferThis/,bool = 0,
+ TQToolBar(const char *,TQMainWindow *,TQWidget * /TransferThis/,bool = 0,
const char * = 0,WFlags = 0);
%End
-%If (Qt_2_00 -)
- QToolBar(const QString &,QMainWindow * /TransferThis/,
- QMainWindow::ToolBarDock = QMainWindow::Top,bool = 0,
+%If (TQt_2_00 -)
+ TQToolBar(const TQString &,TQMainWindow * /TransferThis/,
+ TQMainWindow::ToolBarDock = TQMainWindow::Top,bool = 0,
const char * = 0);
- QToolBar(const QString &,QMainWindow *,QWidget * /TransferThis/,bool = 0,
+ TQToolBar(const TQString &,TQMainWindow *,TQWidget * /TransferThis/,bool = 0,
const char * = 0,WFlags = 0);
%End
- QToolBar(QMainWindow * /TransferThis/ = 0,const char * = 0);
+ TQToolBar(TQMainWindow * /TransferThis/ = 0,const char * = 0);
void addSeparator();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
enum Orientation
{
Horizontal,
@@ -115,45 +115,45 @@ public:
virtual void setOrientation(Orientation);
Orientation orientation() const;
void show();
- QMainWindow *mainWindow();
- bool event(QEvent *);
-%If (- Qt_2_00)
- void setStretchableWidget(QWidget *);
+ TQMainWindow *mainWindow();
+ bool event(TQEvent *);
+%If (- TQt_2_00)
+ void setStretchableWidget(TQWidget *);
%End
-%If (Qt_2_00 -)
- virtual void setStretchableWidget(QWidget *);
- bool eventFilter(QObject *,QEvent *);
- virtual void setLabel(const QString &);
- QString label() const;
+%If (TQt_2_00 -)
+ virtual void setStretchableWidget(TQWidget *);
+ bool eventFilter(TQObject *,TQEvent *);
+ virtual void setLabel(const TQString &);
+ TQString label() const;
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void hide();
void setHorizontalStretchable(bool);
void setVerticalStretchable(bool);
bool isHorizontalStretchable() const;
bool isVerticalStretchable() const;
void clear();
- QSize minimumSize() const;
- QSize minimumSizeHint() const;
+ TQSize minimumSize() const;
+ TQSize minimumSizeHint() const;
%End
protected:
- void paintEvent(QPaintEvent *);
-%If (Qt_2_1_0 -)
- void resizeEvent(QResizeEvent *);
+ void paintEvent(TQPaintEvent *);
+%If (TQt_2_1_0 -)
+ void resizeEvent(TQResizeEvent *);
%End
-%If (Qt_2_3_0 -)
- void styleChange(QStyle &);
+%If (TQt_2_3_0 -)
+ void styleChange(TQStyle &);
%End
signals:
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void orientationChanged(Orientation);
%End
private:
-%If (Qt_2_1_0 -)
- QToolBar(const QToolBar &);
+%If (TQt_2_1_0 -)
+ TQToolBar(const TQToolBar &);
%End
};
diff --git a/sip/qt/qtoolbox.sip b/sip/qt/qtoolbox.sip
index 804d7dd..9e8e220 100644
--- a/sip/qt/qtoolbox.sip
+++ b/sip/qt/qtoolbox.sip
@@ -1,74 +1,74 @@
-// This is the SIP interface definition for QToolBox.
+// This is the SIP interface definition for TQToolBox.
//
// 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>QToolBox (Qt v3.2.0+)</Title>
+<Sect2><Title>TQToolBox (TQt v3.2.0+)</Title>
<Para>
-<Literal>QToolBox</Literal> is fully implemented.
+<Literal>TQToolBox</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
-class QToolBox : QFrame
+class TQToolBox : TQFrame
{
%TypeHeaderCode
#include <qtoolbox.h>
%End
public:
- QToolBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
- ~QToolBox();
+ TQToolBox(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+ ~TQToolBox();
- int addItem(QWidget * /Transfer/,const QString &);
- int addItem(QWidget * /Transfer/,const QIconSet &,const QString &);
- int insertItem(int,QWidget * /Transfer/,const QString &);
- int insertItem(int,QWidget * /Transfer/,const QIconSet &,
- const QString &);
+ int addItem(TQWidget * /Transfer/,const TQString &);
+ int addItem(TQWidget * /Transfer/,const TQIconSet &,const TQString &);
+ int insertItem(int,TQWidget * /Transfer/,const TQString &);
+ int insertItem(int,TQWidget * /Transfer/,const TQIconSet &,
+ const TQString &);
- // On return the QWidget will have the QToolBox as it's parent, so we
+ // On return the TQWidget will have the TQToolBox as it's parent, so we
// don't transfer ownership back.
- int removeItem(QWidget *);
+ int removeItem(TQWidget *);
void setItemEnabled(int,bool);
bool isItemEnabled(int) const;
- void setItemLabel(int,const QString &);
- QString itemLabel(int) const;
+ void setItemLabel(int,const TQString &);
+ TQString itemLabel(int) const;
- void setItemIconSet(int,const QIconSet &);
- QIconSet itemIconSet(int) const;
+ void setItemIconSet(int,const TQIconSet &);
+ TQIconSet itemIconSet(int) const;
- void setItemToolTip(int,const QString &);
- QString itemToolTip(int) const;
+ void setItemToolTip(int,const TQString &);
+ TQString itemToolTip(int) const;
- QWidget *currentItem() const;
- void setCurrentItem(QWidget *);
+ TQWidget *currentItem() const;
+ void setCurrentItem(TQWidget *);
int currentIndex() const;
- QWidget *item(int) const;
- int indexOf(QWidget *) const;
+ TQWidget *item(int) const;
+ int indexOf(TQWidget *) const;
int count() const;
public slots:
@@ -80,9 +80,9 @@ signals:
protected:
virtual void itemInserted(int);
virtual void itemRemoved(int);
- void showEvent(QShowEvent *);
+ void showEvent(TQShowEvent *);
void frameChanged();
- void styleChange(QStyle &);
+ void styleChange(TQStyle &);
};
%End
diff --git a/sip/qt/qtoolbutton.sip b/sip/qt/qtoolbutton.sip
index 7de2e90..d640a8c 100644
--- a/sip/qt/qtoolbutton.sip
+++ b/sip/qt/qtoolbutton.sip
@@ -1,44 +1,44 @@
-// This is the SIP interface definition for QToolButton.
+// This is the SIP interface definition for TQToolButton.
//
// 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>QToolButton</Title>
+<Sect2><Title>TQToolButton</Title>
<Para>
-<Literal>QToolButton</Literal> is fully implemented.
+<Literal>TQToolButton</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QToolButton : QButton
+class TQToolButton : TQButton
{
%TypeHeaderCode
#include <qtoolbutton.h>
%End
public:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum TextPosition {
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
BesideIcon,
BelowIcon,
%End
@@ -47,153 +47,153 @@ public:
};
%End
-%If (- Qt_2_00)
- QToolButton(QWidget * /TransferThis/ = 0,const char * = 0);
- QToolButton(const QPixmap &,const char *,const char *,SIP_RXOBJ_CON,
- SIP_SLOT_CON(),QToolBar * /TransferThis/,const char * = 0);
- QToolButton(QIconSet,const char *,const char *,SIP_RXOBJ_CON,
- SIP_SLOT_CON(),QToolBar * /TransferThis/,const char * = 0);
+%If (- TQt_2_00)
+ TQToolButton(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQToolButton(const TQPixmap &,const char *,const char *,SIP_RXOBJ_CON,
+ SIP_SLOT_CON(),TQToolBar * /TransferThis/,const char * = 0);
+ TQToolButton(TQIconSet,const char *,const char *,SIP_RXOBJ_CON,
+ SIP_SLOT_CON(),TQToolBar * /TransferThis/,const char * = 0);
%End
-%If (Qt_2_00 -)
- QToolButton(QWidget * /TransferThis/,const char * = 0);
+%If (TQt_2_00 -)
+ TQToolButton(TQWidget * /TransferThis/,const char * = 0);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- QToolButton(const QPixmap &,const QString &,const QString &,
- SIP_RXOBJ_CON,SIP_SLOT_CON(),QToolBar * /TransferThis/,
+%If (TQt_2_00 - TQt_3_0_0)
+ TQToolButton(const TQPixmap &,const TQString &,const TQString &,
+ SIP_RXOBJ_CON,SIP_SLOT_CON(),TQToolBar * /TransferThis/,
const char * = 0);
%End
-%If (Qt_2_00 -)
- QToolButton(const QIconSet &,const QString &,const QString &,
- SIP_RXOBJ_CON,SIP_SLOT_CON(),QToolBar * /TransferThis/,
+%If (TQt_2_00 -)
+ TQToolButton(const TQIconSet &,const TQString &,const TQString &,
+ SIP_RXOBJ_CON,SIP_SLOT_CON(),TQToolBar * /TransferThis/,
const char * = 0);
%End
-%If (Qt_2_1_0 -)
- QToolButton(ArrowType,QWidget * /TransferThis/,const char * = 0);
+%If (TQt_2_1_0 -)
+ TQToolButton(ArrowType,TQWidget * /TransferThis/,const char * = 0);
%End
- QSize sizeHint() const;
-%If (Qt_3_0_0 -)
- QSize minimumSizeHint() const;
+ TQSize sizeHint() const;
+%If (TQt_3_0_0 -)
+ TQSize minimumSizeHint() const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+%If (TQt_2_00 - TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
- void setOnIconSet(const QIconSet &);
- void setOffIconSet(const QIconSet &);
+%If (TQt_2_1_0 - TQt_3_0_0)
+ void setOnIconSet(const TQIconSet &);
+ void setOffIconSet(const TQIconSet &);
%End
-%If (- Qt_2_00)
- void setIconSet(const QIconSet &);
+%If (- TQt_2_00)
+ void setIconSet(const TQIconSet &);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- virtual void setIconSet(const QIconSet &,bool = 0);
+%If (TQt_2_00 - TQt_3_0_0)
+ virtual void setIconSet(const TQIconSet &,bool = 0);
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
- QIconSet onIconSet() const;
- QIconSet offIconSet() const;
+%If (TQt_2_1_0 - TQt_3_0_0)
+ TQIconSet onIconSet() const;
+ TQIconSet offIconSet() const;
%End
-%If (- Qt_2_00)
- QIconSet iconSet() const;
+%If (- TQt_2_00)
+ TQIconSet iconSet() const;
%End
-%If (Qt_2_00 - Qt_3_0_0)
- QIconSet iconSet(bool = 0) const;
+%If (TQt_2_00 - TQt_3_0_0)
+ TQIconSet iconSet(bool = 0) const;
%End
-%If (Qt_3_0_0 -)
- virtual void setIconSet(const QIconSet &);
- QIconSet iconSet() const;
+%If (TQt_3_0_0 -)
+ virtual void setIconSet(const TQIconSet &);
+ TQIconSet iconSet() const;
%End
bool usesBigPixmap() const;
bool usesTextLabel() const;
-%If (- Qt_2_00)
+%If (- TQt_2_00)
const char *textLabel() const;
%End
-%If (Qt_2_00 -)
- QString textLabel() const;
+%If (TQt_2_00 -)
+ TQString textLabel() const;
%End
-%If (Qt_2_1_0 -)
- void setPopup(QPopupMenu *);
- QPopupMenu* popup() const;
+%If (TQt_2_1_0 -)
+ void setPopup(TQPopupMenu *);
+ TQPopupMenu* popup() const;
void setPopupDelay(int);
int popupDelay() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void openPopup();
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setAutoRaise(bool);
bool autoRaise() const;
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
TextPosition textPosition() const;
%End
-%If (Qt_3_2_0 -)
- void setText(const QString &);
+%If (TQt_3_2_0 -)
+ void setText(const TQString &);
%End
public slots:
virtual void setUsesBigPixmap(bool);
virtual void setUsesTextLabel(bool);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
virtual void setTextLabel(const char *,bool = 1);
%End
-%If (Qt_2_00 - Qt_3_0_0)
- virtual void setTextLabel(const QString &,bool = 1);
+%If (TQt_2_00 - TQt_3_0_0)
+ virtual void setTextLabel(const TQString &,bool = 1);
%End
-%If (Qt_3_0_0 -)
- virtual void setTextLabel(const QString &,bool);
+%If (TQt_3_0_0 -)
+ virtual void setTextLabel(const TQString &,bool);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setToggleButton(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setToggleButton(bool);
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setOn(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
virtual void setOn(bool);
%End
void toggle();
-%If (Qt_3_0_0 -)
- // This was actually introduced in Qt v2.1.0 but gives signature
- // conflict until Qt v3.0.0.
- void setTextLabel(const QString &);
+%If (TQt_3_0_0 -)
+ // This was actually introduced in TQt v2.1.0 but gives signature
+ // conflict until TQt v3.0.0.
+ void setTextLabel(const TQString &);
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void setTextPosition(TextPosition);
%End
protected:
-%If (Qt_3_0_0 -)
- void mousePressEvent(QMouseEvent *);
+%If (TQt_3_0_0 -)
+ void mousePressEvent(TQMouseEvent *);
%End
- void drawButton(QPainter *);
- void drawButtonLabel(QPainter *);
+ void drawButton(TQPainter *);
+ void drawButtonLabel(TQPainter *);
- void enterEvent(QEvent *);
- void leaveEvent(QEvent *);
-%If (Qt_2_1_0 -)
- void moveEvent(QMoveEvent *);
+ void enterEvent(TQEvent *);
+ void leaveEvent(TQEvent *);
+%If (TQt_2_1_0 -)
+ void moveEvent(TQMoveEvent *);
%End
bool uses3D() const;
-%If (Qt_3_0_0 -)
- bool eventFilter(QObject *,QEvent *);
+%If (TQt_3_0_0 -)
+ bool eventFilter(TQObject *,TQEvent *);
%End
private:
-%If (Qt_2_1_0 -)
- QToolButton(const QToolButton &);
+%If (TQt_2_1_0 -)
+ TQToolButton(const TQToolButton &);
%End
};
diff --git a/sip/qt/qtooltip.sip b/sip/qt/qtooltip.sip
index 5dacad7..eb9a073 100644
--- a/sip/qt/qtooltip.sip
+++ b/sip/qt/qtooltip.sip
@@ -1,167 +1,167 @@
-// This is the SIP interface definition for QToolTip and QToolTipGroup.
+// This is the SIP interface definition for TQToolTip and TQToolTipGroup.
//
// 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>QToolTip</Title>
+<Sect2><Title>TQToolTip</Title>
<Para>
-<Literal>QToolTip</Literal> is fully implemented.
+<Literal>TQToolTip</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QToolTipGroup</Title>
+<Sect2><Title>TQToolTipGroup</Title>
<Para>
-<Literal>QToolTipGroup</Literal> is fully implemented.
+<Literal>TQToolTipGroup</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QToolTipGroup : QObject
+class TQToolTipGroup : TQObject
{
%TypeHeaderCode
#include <qtooltip.h>
%End
public:
- QToolTipGroup(QObject * /TransferThis/,const char * = 0);
+ TQToolTipGroup(TQObject * /TransferThis/,const char * = 0);
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
bool delay() const;
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
bool enabled() const;
%End
public slots:
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void setDelay(bool);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setEnabled(bool);
%End
signals:
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void showTip(const char *);
%End
-%If (Qt_2_00 -)
- void showTip(const QString &);
+%If (TQt_2_00 -)
+ void showTip(const TQString &);
%End
void removeTip();
private:
- QToolTipGroup(const QToolTipGroup &);
+ TQToolTipGroup(const TQToolTipGroup &);
};
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QToolTip
+class TQToolTip
{
%TypeHeaderCode
#include <qtooltip.h>
%End
public:
- QToolTip(QWidget *,QToolTipGroup * = 0);
-
- static void add(QWidget *,const char *);
- static void add(QWidget *,const char *,QToolTipGroup *,const char *);
- static void remove(QWidget *);
- static void add(QWidget *,const QRect &,const char *);
- static void add(QWidget *,const QRect &,const char *,QToolTipGroup *,const char *);
- static void remove(QWidget *,const QRect &);
- static QFont font();
- static void setFont(const QFont &);
- static QPalette palette();
- static void setPalette(const QPalette &);
- QWidget *parentWidget() const;
- QToolTipGroup *group() const;
+ TQToolTip(TQWidget *,TQToolTipGroup * = 0);
+
+ static void add(TQWidget *,const char *);
+ static void add(TQWidget *,const char *,TQToolTipGroup *,const char *);
+ static void remove(TQWidget *);
+ static void add(TQWidget *,const TQRect &,const char *);
+ static void add(TQWidget *,const TQRect &,const char *,TQToolTipGroup *,const char *);
+ static void remove(TQWidget *,const TQRect &);
+ static TQFont font();
+ static void setFont(const TQFont &);
+ static TQPalette palette();
+ static void setPalette(const TQPalette &);
+ TQWidget *parentWidget() const;
+ TQToolTipGroup *group() const;
protected:
- virtual void maybeTip(const QPoint &) = 0;
- void tip(const QRect &,const char *);
- void tip(const QRect &,const char *,const char *);
+ virtual void maybeTip(const TQPoint &) = 0;
+ void tip(const TQRect &,const char *);
+ void tip(const TQRect &,const char *,const char *);
void clear();
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QToolTip : Qt
+class TQToolTip : TQt
{
%TypeHeaderCode
#include <qtooltip.h>
%End
public:
- QToolTip(QWidget *,QToolTipGroup * = 0);
+ TQToolTip(TQWidget *,TQToolTipGroup * = 0);
- static void add(QWidget *,const QString &);
- static void add(QWidget *,const QString &,QToolTipGroup *,
- const QString &);
- static void remove(QWidget *);
+ static void add(TQWidget *,const TQString &);
+ static void add(TQWidget *,const TQString &,TQToolTipGroup *,
+ const TQString &);
+ static void remove(TQWidget *);
- static void add(QWidget *,const QRect &,const QString &);
- static void add(QWidget *,const QRect &,const QString &,
- QToolTipGroup *,const QString &);
- static void remove(QWidget *,const QRect &);
+ static void add(TQWidget *,const TQRect &,const TQString &);
+ static void add(TQWidget *,const TQRect &,const TQString &,
+ TQToolTipGroup *,const TQString &);
+ static void remove(TQWidget *,const TQRect &);
-%If (Qt_3_0_0 -)
- static QString textFor(QWidget *,const QPoint & = QPoint());
+%If (TQt_3_0_0 -)
+ static TQString textFor(TQWidget *,const TQPoint & = TQPoint());
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
static void hide();
%End
- static QFont font();
- static void setFont(const QFont &);
- static QPalette palette();
- static void setPalette(const QPalette &);
+ static TQFont font();
+ static void setFont(const TQFont &);
+ static TQPalette palette();
+ static void setPalette(const TQPalette &);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
static void setGloballyEnabled(bool);
static bool isGloballyEnabled();
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
+%If (TQt_2_1_0 - TQt_3_0_0)
static void setEnabled(bool);
static bool enabled();
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
static void setWakeUpDelay(int);
%End
- QWidget *parentWidget() const;
- QToolTipGroup *group() const;
+ TQWidget *parentWidget() const;
+ TQToolTipGroup *group() const;
protected:
- virtual void maybeTip(const QPoint &) = 0;
- void tip(const QRect &,const QString &);
- void tip(const QRect &,const QString &,const QString &);
-%If (Qt_3_1_0 -)
- void tip(const QRect &,const QString &,const QRect &);
- void tip(const QRect &,const QString &,const QString &,const QRect &);
+ virtual void maybeTip(const TQPoint &) = 0;
+ void tip(const TQRect &,const TQString &);
+ void tip(const TQRect &,const TQString &,const TQString &);
+%If (TQt_3_1_0 -)
+ void tip(const TQRect &,const TQString &,const TQRect &);
+ void tip(const TQRect &,const TQString &,const TQString &,const TQRect &);
%End
void clear();
};
diff --git a/sip/qt/qtranslator.sip b/sip/qt/qtranslator.sip
index 08200ad..e368b7c 100644
--- a/sip/qt/qtranslator.sip
+++ b/sip/qt/qtranslator.sip
@@ -1,62 +1,62 @@
-// This is the SIP interface definition for QTranslator and QTranslatorMessage.
+// This is the SIP interface definition for TQTranslator and TQTranslatorMessage.
//
// 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>QTranslator (Qt v2+)</Title>
+<Sect2><Title>TQTranslator (TQt v2+)</Title>
<Para>
-<Literal>QTranslator</Literal> is fully implemented.
+<Literal>TQTranslator</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QTranslatorMessage (Qt v2.2+)</Title>
+<Sect2><Title>TQTranslatorMessage (TQt v2.2+)</Title>
<Para>
-<Literal>QTranslatorMessage</Literal> is fully implemented.
+<Literal>TQTranslatorMessage</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
-class QTranslatorMessage
+class TQTranslatorMessage
{
%TypeHeaderCode
#include <qtranslator.h>
%End
public:
- QTranslatorMessage();
- QTranslatorMessage(const char *,const char *,const char *,
- const QString & = QString::null);
- QTranslatorMessage(QDataStream &);
- QTranslatorMessage(const QTranslatorMessage &);
+ TQTranslatorMessage();
+ TQTranslatorMessage(const char *,const char *,const char *,
+ const TQString & = TQString::null);
+ TQTranslatorMessage(TQDataStream &);
+ TQTranslatorMessage(const TQTranslatorMessage &);
uint hash() const;
const char *context() const;
const char *sourceText() const;
const char *comment() const;
- void setTranslation(const QString &);
- QString translation() const;
+ void setTranslation(const TQString &);
+ TQString translation() const;
enum Prefix {
NoPrefix,
@@ -66,61 +66,61 @@ public:
HashContextSourceTextComment
};
-%If (- Qt_3_0_0)
- void write(QDataStream &,bool,
+%If (- TQt_3_0_0)
+ void write(TQDataStream &,bool,
Prefix = HashContextSourceTextComment) const /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
- void write(QDataStream &,bool = 0,
+%If (TQt_3_0_0 -)
+ void write(TQDataStream &,bool = 0,
Prefix = HashContextSourceTextComment) const /ReleaseGIL/;
%End
- Prefix commonPrefix(const QTranslatorMessage &) const;
+ Prefix commonPrefix(const TQTranslatorMessage &) const;
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QTranslator : QObject
+class TQTranslator : TQObject
{
%TypeHeaderCode
#include <qtranslator.h>
%End
public:
-%If (Qt_3_2_0 -)
- QTranslator(QObject * /TransferThis/ = 0,const char * = 0);
+%If (TQt_3_2_0 -)
+ TQTranslator(TQObject * /TransferThis/ = 0,const char * = 0);
%End
-%If (- Qt_3_2_0)
- QTranslator(QObject * /TransferThis/,const char * = 0);
+%If (- TQt_3_2_0)
+ TQTranslator(TQObject * /TransferThis/,const char * = 0);
%End
-%If (Qt_2_2_0 -)
- QString find(const char *,const char *,const char *) const;
+%If (TQt_2_2_0 -)
+ TQString find(const char *,const char *,const char *) const;
%End
-%If (- Qt_3_0_0)
- virtual QString find(const char *,const char *) const;
+%If (- TQt_3_0_0)
+ virtual TQString find(const char *,const char *) const;
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
- QTranslatorMessage findMessage(const char *,const char *,
+%If (TQt_2_2_0 - TQt_3_0_0)
+ TQTranslatorMessage findMessage(const char *,const char *,
const char *) const;
%End
-%If (Qt_3_0_0 - Qt_3_2_0)
- virtual QTranslatorMessage findMessage(const char *,const char *,
+%If (TQt_3_0_0 - TQt_3_2_0)
+ virtual TQTranslatorMessage findMessage(const char *,const char *,
const char *) const;
%End
-%If (Qt_3_2_0 -)
- virtual QTranslatorMessage findMessage(const char *,const char *,
+%If (TQt_3_2_0 -)
+ virtual TQTranslatorMessage findMessage(const char *,const char *,
const char * = 0) const;
%End
- bool load(const QString &,const QString & = QString::null,
- const QString & = QString::null,
- const QString & = QString::null);
-%If (Qt_3_1_0 -)
+ bool load(const TQString &,const TQString & = TQString::null,
+ const TQString & = TQString::null,
+ const TQString & = TQString::null);
+%If (TQt_3_1_0 -)
bool load(const uchar *,int);
%End
@@ -131,47 +131,47 @@ public:
Stripped
};
- bool save(const QString &,SaveMode = Everything);
+ bool save(const TQString &,SaveMode = Everything);
-%If (Qt_2_2_0 -)
- void insert(const QTranslatorMessage &);
+%If (TQt_2_2_0 -)
+ void insert(const TQTranslatorMessage &);
%End
-%If (- Qt_3_0_0)
- void insert(const char *,const char *,const QString &);
+%If (- TQt_3_0_0)
+ void insert(const char *,const char *,const TQString &);
%End
-%If (Qt_2_2_0 -)
- void remove(const QTranslatorMessage &);
+%If (TQt_2_2_0 -)
+ void remove(const TQTranslatorMessage &);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
void remove(const char *,const char *);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
bool contains(const char *,const char *) const;
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
+%If (TQt_2_2_0 - TQt_3_0_0)
bool contains(const char *,const char *,const char *) const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool contains(const char *,const char *,const char * = 0) const;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
void squeeze();
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
+%If (TQt_2_2_0 - TQt_3_0_0)
void squeeze(SaveMode);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void squeeze(SaveMode = Everything);
%End
void unsqueeze();
-%If (Qt_2_2_0 -)
- QValueList<QTranslatorMessage> messages() const;
+%If (TQt_2_2_0 -)
+ TQValueList<TQTranslatorMessage> messages() const;
%End
private:
- QTranslator(const QTranslator &);
+ TQTranslator(const TQTranslator &);
};
%End
diff --git a/sip/qt/qurl.sip b/sip/qt/qurl.sip
index 7d343a9..2e1006e 100644
--- a/sip/qt/qurl.sip
+++ b/sip/qt/qurl.sip
@@ -1,116 +1,116 @@
-// This is the SIP interface definition for QUrl.
+// This is the SIP interface definition for TQUrl.
//
// 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>QUrl (Qt v2.1+)</Title>
+<Sect2><Title>TQUrl (TQt v2.1+)</Title>
<Para>
-<Literal>QUrl</Literal> is fully implemented, including the
-<Literal>QString()</Literal>, <Literal>==</Literal> and <Literal>!=</Literal>
+<Literal>TQUrl</Literal> is fully implemented, including the
+<Literal>TQString()</Literal>, <Literal>==</Literal> and <Literal>!=</Literal>
operators.
</Para>
</Sect2>
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
-class QUrl
+class TQUrl
{
%TypeHeaderCode
#include <qurl.h>
%End
public:
- QUrl();
- QUrl(const QString &);
- QUrl(const QUrl &);
- QUrl(const QUrl &,const QString &,bool = 0);
+ TQUrl();
+ TQUrl(const TQString &);
+ TQUrl(const TQUrl &);
+ TQUrl(const TQUrl &,const TQString &,bool = 0);
- QString protocol() const;
- virtual void setProtocol(const QString &);
+ TQString protocol() const;
+ virtual void setProtocol(const TQString &);
- QString user() const;
- virtual void setUser(const QString &);
+ TQString user() const;
+ virtual void setUser(const TQString &);
bool hasUser() const;
- QString password() const;
- virtual void setPassword(const QString &);
+ TQString password() const;
+ virtual void setPassword(const TQString &);
bool hasPassword() const;
- QString host() const;
- virtual void setHost(const QString &);
+ TQString host() const;
+ virtual void setHost(const TQString &);
bool hasHost() const;
int port() const;
virtual void setPort(int);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool hasPort() const;
%End
- QString path(bool = 1) const;
- virtual void setPath(const QString &);
+ TQString path(bool = 1) const;
+ virtual void setPath(const TQString &);
bool hasPath() const;
- virtual void setEncodedPathAndQuery(const QString &);
- QString encodedPathAndQuery();
+ virtual void setEncodedPathAndQuery(const TQString &);
+ TQString encodedPathAndQuery();
- virtual void setQuery(const QString &);
- QString query() const;
+ virtual void setQuery(const TQString &);
+ TQString query() const;
- QString ref() const;
- virtual void setRef(const QString &);
+ TQString ref() const;
+ virtual void setRef(const TQString &);
bool hasRef() const;
bool isValid() const;
bool isLocalFile() const;
- virtual void addPath(const QString &);
- virtual void setFileName(const QString &);
+ virtual void addPath(const TQString &);
+ virtual void setFileName(const TQString &);
- QString fileName() const;
- QString dirPath() const;
+ TQString fileName() const;
+ TQString dirPath() const;
- bool operator==(const QUrl &) const;
- bool operator==(const QString &) const;
+ bool operator==(const TQUrl &) const;
+ bool operator==(const TQString &) const;
-%If (Qt_SIP_PRE_4_7_2)
- // Qt doesn't implement these, but SIP doesn't support C++'s default
+%If (TQt_SIP_PRE_4_7_2)
+ // TQt doesn't implement these, but SIP doesn't support C++'s default
// handling of != when == is implemented.
- bool operator!=(const QUrl &) const;
- bool operator!=(const QString &) const;
+ bool operator!=(const TQUrl &) const;
+ bool operator!=(const TQString &) const;
%End
- static void decode(QString &);
- static void encode(QString &);
+ static void decode(TQString &);
+ static void encode(TQString &);
- virtual QString toString(bool = 0,bool = 0) const;
+ virtual TQString toString(bool = 0,bool = 0) const;
virtual bool cdUp();
- static bool isRelativeUrl(const QString &);
+ static bool isRelativeUrl(const TQString &);
protected:
virtual void reset();
- virtual bool parse(const QString &);
+ virtual bool parse(const TQString &);
};
%End
diff --git a/sip/qt/qurlinfo.sip b/sip/qt/qurlinfo.sip
index 7f2d5d3..2f1e06b 100644
--- a/sip/qt/qurlinfo.sip
+++ b/sip/qt/qurlinfo.sip
@@ -1,45 +1,45 @@
-// This is the SIP interface definition for QUrlInfo.
+// This is the SIP interface definition for TQUrlInfo.
//
// 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>QUrlInfo (Qt v2.1+)</Title>
+<Sect2><Title>TQUrlInfo (TQt v2.1+)</Title>
<Para>
-<Literal>QUrlInfo</Literal> is fully implemented.
+<Literal>TQUrlInfo</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_NETWORKPROTOCOL)
-%If (Qt_2_1_0 -)
+%If (TQt_NETWORKPROTOCOL)
+%If (TQt_2_1_0 -)
-class QUrlInfo
+class TQUrlInfo
{
%TypeHeaderCode
#include <qurlinfo.h>
%End
public:
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
enum PermissionSpec {
ReadOwner, WriteOwner, ExeOwner,
ReadGroup, WriteGroup, ExeGroup,
@@ -47,39 +47,39 @@ public:
};
%End
- QUrlInfo();
- QUrlInfo(const QUrlOperator &,const QString &);
- QUrlInfo(const QUrlInfo &);
- QUrlInfo(const QString &,int,const QString &,const QString &,uint,
- const QDateTime &,const QDateTime &,bool,bool,bool,bool,bool,
+ TQUrlInfo();
+ TQUrlInfo(const TQUrlOperator &,const TQString &);
+ TQUrlInfo(const TQUrlInfo &);
+ TQUrlInfo(const TQString &,int,const TQString &,const TQString &,uint,
+ const TQDateTime &,const TQDateTime &,bool,bool,bool,bool,bool,
bool);
- QUrlInfo(const QUrl &,int,const QString &,const QString &,uint,
- const QDateTime &,const QDateTime &,bool,bool,bool,bool,bool,
+ TQUrlInfo(const TQUrl &,int,const TQString &,const TQString &,uint,
+ const TQDateTime &,const TQDateTime &,bool,bool,bool,bool,bool,
bool);
- virtual void setName(const QString &);
+ virtual void setName(const TQString &);
virtual void setDir(bool);
virtual void setFile(bool);
virtual void setSymLink(bool);
- virtual void setOwner(const QString &);
- virtual void setGroup(const QString &);
+ virtual void setOwner(const TQString &);
+ virtual void setGroup(const TQString &);
virtual void setSize(uint);
virtual void setWritable(bool);
virtual void setReadable(bool);
virtual void setPermissions(int);
- virtual void setLastModified(const QDateTime &);
+ virtual void setLastModified(const TQDateTime &);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isValid() const;
%End
- QString name() const;
+ TQString name() const;
int permissions() const;
- QString owner() const;
- QString group() const;
+ TQString owner() const;
+ TQString group() const;
uint size() const;
- QDateTime lastModified() const;
- QDateTime lastRead() const;
+ TQDateTime lastModified() const;
+ TQDateTime lastRead() const;
bool isDir() const;
bool isFile() const;
bool isSymLink() const;
@@ -87,9 +87,9 @@ public:
bool isReadable() const;
bool isExecutable() const;
- static bool greaterThan(const QUrlInfo &,const QUrlInfo &,int);
- static bool lessThan(const QUrlInfo &,const QUrlInfo &,int);
- static bool equal(const QUrlInfo &,const QUrlInfo &,int);
+ static bool greaterThan(const TQUrlInfo &,const TQUrlInfo &,int);
+ static bool lessThan(const TQUrlInfo &,const TQUrlInfo &,int);
+ static bool equal(const TQUrlInfo &,const TQUrlInfo &,int);
};
%End
diff --git a/sip/qt/qurloperator.sip b/sip/qt/qurloperator.sip
index b776516..522e1b2 100644
--- a/sip/qt/qurloperator.sip
+++ b/sip/qt/qurloperator.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QUrlOperator.
+// This is the SIP interface definition for TQUrlOperator.
//
// 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>QUrlOperator (Qt v2.1+)</Title>
+<Sect2><Title>TQUrlOperator (TQt v2.1+)</Title>
<FuncSynopsis>
<FuncDef>virtual bool <Function>isDir</Function></FuncDef>
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
@@ -34,76 +34,76 @@ This returns a tuple of the <Literal>bool</Literal> result and the
%End
-%If (Qt_NETWORKPROTOCOL)
-%If (Qt_2_1_0 -)
+%If (TQt_NETWORKPROTOCOL)
+%If (TQt_2_1_0 -)
-class QUrlOperator : QObject, QUrl
+class TQUrlOperator : TQObject, TQUrl
{
%TypeHeaderCode
#include <qurloperator.h>
%End
public:
- QUrlOperator();
- QUrlOperator(const QString &);
- QUrlOperator(const QUrlOperator &);
- QUrlOperator(const QUrlOperator &,const QString &,bool = 0);
+ TQUrlOperator();
+ TQUrlOperator(const TQString &);
+ TQUrlOperator(const TQUrlOperator &);
+ TQUrlOperator(const TQUrlOperator &,const TQString &,bool = 0);
- virtual void setPath(const QString &);
+ virtual void setPath(const TQString &);
virtual bool cdUp();
- virtual const QNetworkOperation *listChildren();
- virtual const QNetworkOperation *mkdir(const QString &);
- virtual const QNetworkOperation *remove(const QString &);
- virtual const QNetworkOperation *rename(const QString &,
- const QString &);
- virtual const QNetworkOperation *get(const QString & = QString::null);
- virtual const QNetworkOperation *put(const QByteArray &,
- const QString & = QString::null);
-%If (- Qt_3_0_0)
- virtual QList<QNetworkOperation> copy(const QString &,const QString &,
+ virtual const TQNetworkOperation *listChildren();
+ virtual const TQNetworkOperation *mkdir(const TQString &);
+ virtual const TQNetworkOperation *remove(const TQString &);
+ virtual const TQNetworkOperation *rename(const TQString &,
+ const TQString &);
+ virtual const TQNetworkOperation *get(const TQString & = TQString::null);
+ virtual const TQNetworkOperation *put(const TQByteArray &,
+ const TQString & = TQString::null);
+%If (- TQt_3_0_0)
+ virtual TQList<TQNetworkOperation> copy(const TQString &,const TQString &,
bool = 0);
%End
-%If (Qt_3_0_0 -)
- virtual QPtrList<QNetworkOperation> copy(const QString &,
- const QString &,bool = 0,
+%If (TQt_3_0_0 -)
+ virtual TQPtrList<TQNetworkOperation> copy(const TQString &,
+ const TQString &,bool = 0,
bool = 1);
%End
- virtual void copy(const QStringList &,const QString &,bool = 0);
+ virtual void copy(const TQStringList &,const TQString &,bool = 0);
virtual bool isDir(bool * = 0);
- virtual void setNameFilter(const QString &);
- QString nameFilter() const;
+ virtual void setNameFilter(const TQString &);
+ TQString nameFilter() const;
- virtual QUrlInfo info(const QString &) const;
+ virtual TQUrlInfo info(const TQString &) const;
virtual void stop();
signals:
- void newChildren(const QValueList<QUrlInfo> &,QNetworkOperation *);
- void finished(QNetworkOperation *);
- void start(QNetworkOperation *);
- void createdDirectory(const QUrlInfo &,QNetworkOperation *);
- void removed(QNetworkOperation *);
- void itemChanged(QNetworkOperation *);
- void data(const QByteArray &,QNetworkOperation *);
- void dataTransferProgress(int,int,QNetworkOperation *);
-%If (- Qt_3_0_0)
- void startedNextCopy(const QList<QNetworkOperation> &);
+ void newChildren(const TQValueList<TQUrlInfo> &,TQNetworkOperation *);
+ void finished(TQNetworkOperation *);
+ void start(TQNetworkOperation *);
+ void createdDirectory(const TQUrlInfo &,TQNetworkOperation *);
+ void removed(TQNetworkOperation *);
+ void itemChanged(TQNetworkOperation *);
+ void data(const TQByteArray &,TQNetworkOperation *);
+ void dataTransferProgress(int,int,TQNetworkOperation *);
+%If (- TQt_3_0_0)
+ void startedNextCopy(const TQList<TQNetworkOperation> &);
%End
-%If (Qt_3_0_0 -)
- void startedNextCopy(const QPtrList<QNetworkOperation> &);
+%If (TQt_3_0_0 -)
+ void startedNextCopy(const TQPtrList<TQNetworkOperation> &);
%End
- void connectionStateChanged(int,const QString &);
+ void connectionStateChanged(int,const TQString &);
protected:
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual void reset();
- virtual bool parse(const QString &);
+ virtual bool parse(const TQString &);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void reset();
- bool parse(const QString &);
+ bool parse(const TQString &);
%End
virtual bool checkValid();
virtual void clearEntries();
diff --git a/sip/qt/quuid.sip b/sip/qt/quuid.sip
index 5836dfb..ff9eda0 100644
--- a/sip/qt/quuid.sip
+++ b/sip/qt/quuid.sip
@@ -1,44 +1,44 @@
-// This is the SIP interface definition for QUuid.
+// This is the SIP interface definition for TQUuid.
//
// 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>QUuid (Qt v3.0+)</Title>
+<Sect2><Title>TQUuid (TQt v3.0+)</Title>
<Para>
-<Literal>QUuid</Literal> is fully implemented.
+<Literal>TQUuid</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QUuid
+class TQUuid
{
%TypeHeaderCode
#include <quuid.h>
%End
public:
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
enum Variant
{
VarUnknown,
@@ -58,29 +58,29 @@ public:
};
%End
- QUuid();
-%If (Qt_3_0_1 -)
- QUuid(uint,ushort,ushort,uchar,uchar,uchar,uchar,uchar,uchar,uchar,uchar);
+ TQUuid();
+%If (TQt_3_0_1 -)
+ TQUuid(uint,ushort,ushort,uchar,uchar,uchar,uchar,uchar,uchar,uchar,uchar);
%End
-%If (- Qt_3_0_1)
- QUuid(ulong,ushort,ushort,uchar,uchar,uchar,uchar,uchar,uchar,uchar,uchar);
+%If (- TQt_3_0_1)
+ TQUuid(ulong,ushort,ushort,uchar,uchar,uchar,uchar,uchar,uchar,uchar,uchar);
%End
- QUuid(const QUuid &);
- QUuid(const QString &);
+ TQUuid(const TQUuid &);
+ TQUuid(const TQString &);
- QString toString() const;
+ TQString toString() const;
bool isNull() const;
- bool operator==(const QUuid &) const;
- bool operator!=(const QUuid &) const;
+ bool operator==(const TQUuid &) const;
+ bool operator!=(const TQUuid &) const;
-%If (Qt_3_3_0 -)
- bool operator<(const QUuid &) const;
- bool operator>(const QUuid &) const;
+%If (TQt_3_3_0 -)
+ bool operator<(const TQUuid &) const;
+ bool operator>(const TQUuid &) const;
- static QUuid createUuid();
- QUuid::Variant variant() const;
- QUuid::Version version() const;
+ static TQUuid createUuid();
+ TQUuid::Variant variant() const;
+ TQUuid::Version version() const;
%End
};
diff --git a/sip/qt/qvalidator.sip b/sip/qt/qvalidator.sip
index d3329db..fa0f781 100644
--- a/sip/qt/qvalidator.sip
+++ b/sip/qt/qvalidator.sip
@@ -1,31 +1,31 @@
-// This is the SIP interface definition for QValidator, QDoubleValidator,
-// QIntValidator and QRegExpValidator.
+// This is the SIP interface definition for TQValidator, TQDoubleValidator,
+// TQIntValidator and TQRegExpValidator.
//
// 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>QValidator</Title>
+<Sect2><Title>TQValidator</Title>
<FuncSynopsis>
<FuncDef>virtual State <Function>validate</Function></FuncDef>
- <ParamDef>QString& <Parameter>input</Parameter></ParamDef>
+ <ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
<ParamDef>int& <Parameter>pos</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -34,10 +34,10 @@ updated <Literal>pos</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QDoubleValidator</Title>
+<Sect2><Title>TQDoubleValidator</Title>
<FuncSynopsis>
<FuncDef>State <Function>validate</Function></FuncDef>
- <ParamDef>QString& <Parameter>input</Parameter></ParamDef>
+ <ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
<ParamDef>int& <Parameter>pos</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -46,10 +46,10 @@ updated <Literal>pos</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QIntValidator</Title>
+<Sect2><Title>TQIntValidator</Title>
<FuncSynopsis>
<FuncDef>State <Function>validate</Function></FuncDef>
- <ParamDef>QString& <Parameter>input</Parameter></ParamDef>
+ <ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
<ParamDef>int& <Parameter>pos</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -58,10 +58,10 @@ updated <Literal>pos</Literal>.
</Para>
</Sect2>
-<Sect2><Title>QRegExpValidator (Qt v3+)</Title>
+<Sect2><Title>TQRegExpValidator (TQt v3+)</Title>
<FuncSynopsis>
<FuncDef>virtual State <Function>validate</Function></FuncDef>
- <ParamDef>QString& <Parameter>input</Parameter></ParamDef>
+ <ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
<ParamDef>int& <Parameter>pos</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -72,21 +72,21 @@ updated <Literal>pos</Literal>.
%End
-class QValidator : QObject
+class TQValidator : TQObject
{
%TypeHeaderCode
#include <qvalidator.h>
%End
public:
-%If (- Qt_3_0_0)
- QValidator(QWidget * /TransferThis/,const char * = 0);
+%If (- TQt_3_0_0)
+ TQValidator(TQWidget * /TransferThis/,const char * = 0);
%End
-%If (Qt_3_0_0 -)
- QValidator(QObject * /TransferThis/,const char * = 0);
+%If (TQt_3_0_0 -)
+ TQValidator(TQObject * /TransferThis/,const char * = 0);
%End
-%If (- Qt_2_1_0)
+%If (- TQt_2_1_0)
enum State
{
Invalid,
@@ -94,7 +94,7 @@ public:
Acceptable
};
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
enum State
{
Invalid,
@@ -104,46 +104,46 @@ public:
};
%End
-%If (Qt_2_00 -)
- virtual State validate(QString &,int & /In,Out/) const = 0;
- virtual void fixup(QString &) const;
+%If (TQt_2_00 -)
+ virtual State validate(TQString &,int & /In,Out/) const = 0;
+ virtual void fixup(TQString &) const;
%End
-%If (- Qt_2_00)
- virtual State validate(QString &,int & /In,Out/) = 0;
- virtual void fixup(QString &);
+%If (- TQt_2_00)
+ virtual State validate(TQString &,int & /In,Out/) = 0;
+ virtual void fixup(TQString &);
%End
private:
-%If (Qt_2_1_0 -)
- QValidator(const QValidator &);
+%If (TQt_2_1_0 -)
+ TQValidator(const TQValidator &);
%End
};
-class QIntValidator : QValidator
+class TQIntValidator : TQValidator
{
%TypeHeaderCode
#include <qvalidator.h>
%End
public:
-%If (Qt_3_0_0 -)
- QIntValidator(QObject * /TransferThis/,const char * = 0);
- QIntValidator(int,int,QObject * /TransferThis/,const char * = 0);
+%If (TQt_3_0_0 -)
+ TQIntValidator(TQObject * /TransferThis/,const char * = 0);
+ TQIntValidator(int,int,TQObject * /TransferThis/,const char * = 0);
%End
-%If (- Qt_3_0_0)
- QIntValidator(QWidget * /TransferThis/,const char * = 0);
- QIntValidator(int,int,QWidget * /TransferThis/,const char * = 0);
+%If (- TQt_3_0_0)
+ TQIntValidator(TQWidget * /TransferThis/,const char * = 0);
+ TQIntValidator(int,int,TQWidget * /TransferThis/,const char * = 0);
%End
-%If (Qt_2_00 -)
- QValidator::State validate(QString &,int & /In,Out/) const;
+%If (TQt_2_00 -)
+ TQValidator::State validate(TQString &,int & /In,Out/) const;
%End
-%If (- Qt_2_00)
- QValidator::State validate(QString &,int & /In,Out/);
+%If (- TQt_2_00)
+ TQValidator::State validate(TQString &,int & /In,Out/);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setBottom(int);
void setTop(int);
%End
@@ -153,39 +153,39 @@ public:
int top() const;
private:
-%If (Qt_2_1_0 -)
- QIntValidator(const QIntValidator &);
+%If (TQt_2_1_0 -)
+ TQIntValidator(const TQIntValidator &);
%End
};
-class QDoubleValidator : QValidator
+class TQDoubleValidator : TQValidator
{
%TypeHeaderCode
#include <qvalidator.h>
%End
public:
-%If (Qt_3_0_0 -)
- QDoubleValidator(QObject * /TransferThis/,const char * = 0);
- QDoubleValidator(double,double,int,QObject * /TransferThis/,
+%If (TQt_3_0_0 -)
+ TQDoubleValidator(TQObject * /TransferThis/,const char * = 0);
+ TQDoubleValidator(double,double,int,TQObject * /TransferThis/,
const char * = 0);
%End
-%If (- Qt_3_0_0)
- QDoubleValidator(QWidget * /TransferThis/,const char * = 0);
- QDoubleValidator(double,double,int,QWidget * /TransferThis/,
+%If (- TQt_3_0_0)
+ TQDoubleValidator(TQWidget * /TransferThis/,const char * = 0);
+ TQDoubleValidator(double,double,int,TQWidget * /TransferThis/,
const char * = 0);
%End
-%If (Qt_2_00 -)
- QValidator::State validate(QString &,int & /In,Out/) const;
+%If (TQt_2_00 -)
+ TQValidator::State validate(TQString &,int & /In,Out/) const;
%End
-%If (- Qt_2_00)
- QValidator::State validate(QString &,int & /In,Out/);
+%If (- TQt_2_00)
+ TQValidator::State validate(TQString &,int & /In,Out/);
%End
virtual void setRange(double,double,int = 0);
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void setBottom(double);
void setTop(double);
void setDecimals(int);
@@ -196,32 +196,32 @@ public:
int decimals() const;
private:
-%If (Qt_2_1_0 -)
- QDoubleValidator(const QDoubleValidator &);
+%If (TQt_2_1_0 -)
+ TQDoubleValidator(const TQDoubleValidator &);
%End
};
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QRegExpValidator : QValidator
+class TQRegExpValidator : TQValidator
{
%TypeHeaderCode
#include <qvalidator.h>
%End
public:
- QRegExpValidator(QObject * /TransferThis/,const char * = 0);
- QRegExpValidator(const QRegExp &,QObject * /TransferThis/,
+ TQRegExpValidator(TQObject * /TransferThis/,const char * = 0);
+ TQRegExpValidator(const TQRegExp &,TQObject * /TransferThis/,
const char * = 0);
- virtual QValidator::State validate(QString &,int & /In,Out/) const;
+ virtual TQValidator::State validate(TQString &,int & /In,Out/) const;
- void setRegExp(const QRegExp &);
- const QRegExp &regExp() const;
+ void setRegExp(const TQRegExp &);
+ const TQRegExp &regExp() const;
private:
- QRegExpValidator(const QRegExpValidator &);
+ TQRegExpValidator(const TQRegExpValidator &);
};
%End
diff --git a/sip/qt/qvaluelist.sip b/sip/qt/qvaluelist.sip
index 732740d..55bf35e 100644
--- a/sip/qt/qvaluelist.sip
+++ b/sip/qt/qvaluelist.sip
@@ -1,40 +1,40 @@
-// This is the SIP interface definition for all types based on the QValueList
+// This is the SIP interface definition for all types based on the TQValueList
// template.
//
// 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>QValueList&lt;type&gt; (Qt v2+)</Title>
+<Sect2><Title>TQValueList&lt;type&gt; (TQt v2+)</Title>
<Para>
-Types based on the <Literal>QValueList</Literal> template are automatically
+Types based on the <Literal>TQValueList</Literal> template are automatically
converted to and from Python lists of the type.
</Para>
</Sect2>
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
template<Type>
-%MappedType QValueList<Type>
+%MappedType TQValueList<Type>
{
%TypeHeaderCode
#include <qvaluelist.h>
@@ -52,7 +52,7 @@ template<Type>
// Get it.
i = 0;
- QValueListConstIterator<Type> it;
+ TQValueListConstIterator<Type> it;
for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it)
{
@@ -85,7 +85,7 @@ template<Type>
return 1;
}
- QValueList<Type> *qvl = new QValueList<Type>;
+ TQValueList<Type> *qvl = new TQValueList<Type>;
for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
{
@@ -118,9 +118,9 @@ template<Type>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-%MappedType QValueList<int>
+%MappedType TQValueList<int>
{
%TypeHeaderCode
#include <qvaluelist.h>
@@ -150,12 +150,12 @@ template<Type>
%End
%ConvertToTypeCode
- // Convert a Python list of integers to a QValueList<int> on the heap.
+ // Convert a Python list of integers to a TQValueList<int> on the heap.
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- QValueList<int> *qvl = new QValueList<int>;
+ TQValueList<int> *qvl = new TQValueList<int>;
PyErr_Clear();
diff --git a/sip/qt/qvariant.sip b/sip/qt/qvariant.sip
index c942c3e..3c7a134 100644
--- a/sip/qt/qvariant.sip
+++ b/sip/qt/qvariant.sip
@@ -1,29 +1,29 @@
-// This is the SIP interface definition for QVariant.
+// This is the SIP interface definition for TQVariant.
//
// 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>QVariant (Qt v2.1+)</Title>
+<Sect2><Title>TQVariant (TQt v2.1+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QVariant</Function></FuncDef>
+ <FuncDef><Function>TQVariant</Function></FuncDef>
<ParamDef>const char *<Parameter>val</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -31,35 +31,35 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QVariant</Function></FuncDef>
- <ParamDef>const QBitArray &amp;<Parameter>val</Parameter></ParamDef>
+ <FuncDef><Function>TQVariant</Function></FuncDef>
+ <ParamDef>const TQBitArray &amp;<Parameter>val</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v3+)
+Not yet implemented. (TQt v3+)
</Para>
<FuncSynopsis>
- <FuncDef><Function>QVariant</Function></FuncDef>
- <ParamDef>const QValueList&lt;QVariant&gt; &amp;<Parameter>val</Parameter></ParamDef>
+ <FuncDef><Function>TQVariant</Function></FuncDef>
+ <ParamDef>const TQValueList&lt;TQVariant&gt; &amp;<Parameter>val</Parameter></ParamDef>
</FuncSynopsis>
<Para>
Not yet implemented.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QVariant</Function></FuncDef>
- <ParamDef>const QMap&lt;QString,QVariant&gt; &amp;<Parameter>val</Parameter></ParamDef>
+ <FuncDef><Function>TQVariant</Function></FuncDef>
+ <ParamDef>const TQMap&lt;TQString,TQVariant&gt; &amp;<Parameter>val</Parameter></ParamDef>
</FuncSynopsis>
<Para>
Not yet implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QBitArray &amp;<Function>asBitArray</Function></FuncDef>
+ <FuncDef>TQBitArray &amp;<Function>asBitArray</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v3+)
+Not yet implemented. (TQt v3+)
</Para>
<FuncSynopsis>
@@ -87,7 +87,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QValueList&lt;QVariant&gt; &amp;<Function>asList</Function></FuncDef>
+ <FuncDef>TQValueList&lt;TQVariant&gt; &amp;<Function>asList</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -95,7 +95,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QMap&lt;QString,QVariant&gt; &amp;<Function>asMap</Function></FuncDef>
+ <FuncDef>TQMap&lt;TQString,TQVariant&gt; &amp;<Function>asMap</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -111,7 +111,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QValueListConstIterator&lt;QVariant&gt;<Function>listBegin</Function> const</FuncDef>
+ <FuncDef>TQValueListConstIterator&lt;TQVariant&gt;<Function>listBegin</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -119,7 +119,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QValueListConstIterator&lt;QVariant&gt;<Function>listEnd</Function> const</FuncDef>
+ <FuncDef>TQValueListConstIterator&lt;TQVariant&gt;<Function>listEnd</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -127,7 +127,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QMapConstIterator&lt;QString,QVariant&gt;<Function>mapBegin</Function> const</FuncDef>
+ <FuncDef>TQMapConstIterator&lt;TQString,TQVariant&gt;<Function>mapBegin</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -135,7 +135,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QMapConstIterator&lt;QString,QVariant&gt;<Function>mapEnd</Function> const</FuncDef>
+ <FuncDef>TQMapConstIterator&lt;TQString,TQVariant&gt;<Function>mapEnd</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -143,15 +143,15 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QMapConstIterator&lt;QString,QVariant&gt;<Function>mapFind</Function> const</FuncDef>
- <ParamDef>const QString &<Parameter>key</Parameter></ParamDef>
+ <FuncDef>TQMapConstIterator&lt;TQString,TQVariant&gt;<Function>mapFind</Function> const</FuncDef>
+ <ParamDef>const TQString &<Parameter>key</Parameter></ParamDef>
</FuncSynopsis>
<Para>
Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QValueListConstIterator&lt;QString&gt;<Function>stringListBegin</Function> const</FuncDef>
+ <FuncDef>TQValueListConstIterator&lt;TQString&gt;<Function>stringListBegin</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -159,7 +159,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QValueListConstIterator&lt;QString&gt;<Function>stringListEnd</Function> const</FuncDef>
+ <FuncDef>TQValueListConstIterator&lt;TQString&gt;<Function>stringListEnd</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -167,15 +167,15 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>const QBitArray <Function>toBitArray</Function> const</FuncDef>
+ <FuncDef>const TQBitArray <Function>toBitArray</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v3+)
+Not yet implemented. (TQt v3+)
</Para>
<FuncSynopsis>
- <FuncDef>const QValueList&lt;QVariant&gt;<Function>toList</Function> const</FuncDef>
+ <FuncDef>const TQValueList&lt;TQVariant&gt;<Function>toList</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -183,7 +183,7 @@ Not yet implemented.
</Para>
<FuncSynopsis>
- <FuncDef>const QMap&lt;QString,QVariant&gt;<Function>toMap</Function> const</FuncDef>
+ <FuncDef>const TQMap&lt;TQString,TQVariant&gt;<Function>toMap</Function> const</FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -193,9 +193,9 @@ Not yet implemented.
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
-class QVariant
+class TQVariant
{
%TypeHeaderCode
#include <qvariant.h>
@@ -228,10 +228,10 @@ public:
Region,
Bitmap,
Cursor,
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
SizePolicy,
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Date,
Time,
DateTime,
@@ -239,179 +239,179 @@ public:
BitArray,
KeySequence,
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
Pen,
%End
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
LongLong,
ULongLong,
%End
};
- QVariant();
- QVariant(const QVariant &);
- QVariant(QDataStream &);
-
- QVariant(const QString &);
- QVariant(const QCString &);
-// QVariant(const char *);
- QVariant(const QStringList &);
- QVariant(const QFont &);
- QVariant(const QPixmap &);
- QVariant(const QImage &);
- QVariant(const QBrush &);
- QVariant(const QPoint &);
- QVariant(const QRect &);
- QVariant(const QSize &);
- QVariant(const QColor &);
- QVariant(const QPalette &);
- QVariant(const QColorGroup &);
- QVariant(const QIconSet &);
- QVariant(const QPointArray &);
- QVariant(const QRegion &);
- QVariant(const QBitmap &);
- QVariant(const QCursor &);
-%If (Qt_3_0_0 -)
- QVariant(const QDate &);
- QVariant(const QTime &);
- QVariant(const QDateTime &);
- QVariant(const QByteArray &);
-// QVariant(const QBitArray &);
+ TQVariant();
+ TQVariant(const TQVariant &);
+ TQVariant(TQDataStream &);
+
+ TQVariant(const TQString &);
+ TQVariant(const TQCString &);
+// TQVariant(const char *);
+ TQVariant(const TQStringList &);
+ TQVariant(const TQFont &);
+ TQVariant(const TQPixmap &);
+ TQVariant(const TQImage &);
+ TQVariant(const TQBrush &);
+ TQVariant(const TQPoint &);
+ TQVariant(const TQRect &);
+ TQVariant(const TQSize &);
+ TQVariant(const TQColor &);
+ TQVariant(const TQPalette &);
+ TQVariant(const TQColorGroup &);
+ TQVariant(const TQIconSet &);
+ TQVariant(const TQPointArray &);
+ TQVariant(const TQRegion &);
+ TQVariant(const TQBitmap &);
+ TQVariant(const TQCursor &);
+%If (TQt_3_0_0 -)
+ TQVariant(const TQDate &);
+ TQVariant(const TQTime &);
+ TQVariant(const TQDateTime &);
+ TQVariant(const TQByteArray &);
+// TQVariant(const TQBitArray &);
%End
-// QVariant(const QValueList<QVariant> &);
-// QVariant(const QMap<QString,QVariant> &);
- QVariant(int /Constrained/);
-// QVariant(uint);
-%If (Qt_3_2_0 -)
-// QVariant(Q_LLONG);
-// QVariant(Q_ULLONG);
+// TQVariant(const TQValueList<TQVariant> &);
+// TQVariant(const TQMap<TQString,TQVariant> &);
+ TQVariant(int /Constrained/);
+// TQVariant(uint);
+%If (TQt_3_2_0 -)
+// TQVariant(Q_LLONG);
+// TQVariant(Q_ULLONG);
%End
- QVariant(bool,int);
- QVariant(double);
-%If (Qt_2_2_0 -)
- QVariant(QSizePolicy);
+ TQVariant(bool,int);
+ TQVariant(double);
+%If (TQt_2_2_0 -)
+ TQVariant(TQSizePolicy);
%End
-%If (Qt_3_0_0 -)
- // This must appear after the QString, int and double ctors because
- // each of those can be converted automatically to a QKeySequence and
+%If (TQt_3_0_0 -)
+ // This must appear after the TQString, int and double ctors because
+ // each of those can be converted automatically to a TQKeySequence and
// we want those to take precedence.
- QVariant(const QKeySequence &);
+ TQVariant(const TQKeySequence &);
%End
-%If (Qt_3_1_0 -)
- QVariant(const QPen &);
+%If (TQt_3_1_0 -)
+ TQVariant(const TQPen &);
%End
Type type() const;
const char* typeName() const;
bool canCast(Type) const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool cast(Type);
%End
bool isValid() const;
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
bool isNull() const;
%End
void clear();
- const QString toString() const;
- const QCString toCString() const;
- const QStringList toStringList() const;
- const QFont toFont() const;
- const QPixmap toPixmap() const;
- const QImage toImage() const;
- const QBrush toBrush() const;
- const QPoint toPoint() const;
- const QRect toRect() const;
- const QSize toSize() const;
- const QColor toColor() const;
- const QPalette toPalette() const;
- const QColorGroup toColorGroup() const;
- const QIconSet toIconSet() const;
- const QPointArray toPointArray() const;
- const QBitmap toBitmap() const;
- const QRegion toRegion() const;
- const QCursor toCursor() const;
-%If (Qt_3_0_0 -)
- const QDate toDate() const;
- const QTime toTime() const;
- const QDateTime toDateTime() const;
- const QByteArray toByteArray() const;
-// const QBitArray toBitArray() const;
- const QKeySequence toKeySequence() const;
+ const TQString toString() const;
+ const TQCString toCString() const;
+ const TQStringList toStringList() const;
+ const TQFont toFont() const;
+ const TQPixmap toPixmap() const;
+ const TQImage toImage() const;
+ const TQBrush toBrush() const;
+ const TQPoint toPoint() const;
+ const TQRect toRect() const;
+ const TQSize toSize() const;
+ const TQColor toColor() const;
+ const TQPalette toPalette() const;
+ const TQColorGroup toColorGroup() const;
+ const TQIconSet toIconSet() const;
+ const TQPointArray toPointArray() const;
+ const TQBitmap toBitmap() const;
+ const TQRegion toRegion() const;
+ const TQCursor toCursor() const;
+%If (TQt_3_0_0 -)
+ const TQDate toDate() const;
+ const TQTime toTime() const;
+ const TQDateTime toDateTime() const;
+ const TQByteArray toByteArray() const;
+// const TQBitArray toBitArray() const;
+ const TQKeySequence toKeySequence() const;
%End
-%If (Qt_3_1_0 -)
- const QPen toPen() const;
+%If (TQt_3_1_0 -)
+ const TQPen toPen() const;
%End
int toInt() const;
uint toUInt() const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
// Q_LLONG toLongLong(bool * = 0) const;
// Q_ULLONG toULongLong( bool * = 0) const;
%End
bool toBool() const;
double toDouble() const;
-// const QValueList<QVariant> toList() const;
-// const QMap<QString,QVariant> toMap() const;
-%If (Qt_2_2_0 -)
- QSizePolicy toSizePolicy() const;
+// const TQValueList<TQVariant> toList() const;
+// const TQMap<TQString,TQVariant> toMap() const;
+%If (TQt_2_2_0 -)
+ TQSizePolicy toSizePolicy() const;
%End
-// QValueListConstIterator<QVariant> listBegin() const;
-// QValueListConstIterator<QVariant> listEnd() const;
-// QValueListConstIterator<QString> stringListBegin() const;
-// QValueListConstIterator<QString> stringListEnd() const;
-// QMapConstIterator<QString,QVariant> mapBegin() const;
-// QMapConstIterator<QString,QVariant> mapEnd() const;
-// QMapConstIterator<QString,QVariant> mapFind(const QString &) const;
-
- QString & asString();
- QCString & asCString();
- QStringList & asStringList();
- QFont & asFont();
- QPixmap & asPixmap();
- QImage & asImage();
- QBrush & asBrush();
- QPoint & asPoint();
- QRect & asRect();
- QSize & asSize();
- QColor & asColor();
- QPalette & asPalette();
- QColorGroup & asColorGroup();
- QIconSet & asIconSet();
- QPointArray & asPointArray();
- QBitmap & asBitmap();
- QRegion & asRegion();
- QCursor & asCursor();
-%If (Qt_3_0_0 -)
- QDate & asDate();
- QTime & asTime();
- QDateTime & asDateTime();
- QByteArray & asByteArray();
-// QBitArray & asBitArray();
- QKeySequence & asKeySequence();
+// TQValueListConstIterator<TQVariant> listBegin() const;
+// TQValueListConstIterator<TQVariant> listEnd() const;
+// TQValueListConstIterator<TQString> stringListBegin() const;
+// TQValueListConstIterator<TQString> stringListEnd() const;
+// TQMapConstIterator<TQString,TQVariant> mapBegin() const;
+// TQMapConstIterator<TQString,TQVariant> mapEnd() const;
+// TQMapConstIterator<TQString,TQVariant> mapFind(const TQString &) const;
+
+ TQString & asString();
+ TQCString & asCString();
+ TQStringList & asStringList();
+ TQFont & asFont();
+ TQPixmap & asPixmap();
+ TQImage & asImage();
+ TQBrush & asBrush();
+ TQPoint & asPoint();
+ TQRect & asRect();
+ TQSize & asSize();
+ TQColor & asColor();
+ TQPalette & asPalette();
+ TQColorGroup & asColorGroup();
+ TQIconSet & asIconSet();
+ TQPointArray & asPointArray();
+ TQBitmap & asBitmap();
+ TQRegion & asRegion();
+ TQCursor & asCursor();
+%If (TQt_3_0_0 -)
+ TQDate & asDate();
+ TQTime & asTime();
+ TQDateTime & asDateTime();
+ TQByteArray & asByteArray();
+// TQBitArray & asBitArray();
+ TQKeySequence & asKeySequence();
%End
-%If (Qt_3_1_0 -)
- QPen & asPen();
+%If (TQt_3_1_0 -)
+ TQPen & asPen();
%End
// int & asInt();
// uint & asUInt();
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
// Q_LLONG & asLongLong();
// Q_ULLONG & asULongLong();
%End
// bool & asBool();
// double & asDouble();
-// QValueList<QVariant> & asList();
-// QMap<QString,QVariant> & asMap();
-%If (Qt_2_2_0 -)
- QSizePolicy & asSizePolicy();
+// TQValueList<TQVariant> & asList();
+// TQMap<TQString,TQVariant> & asMap();
+%If (TQt_2_2_0 -)
+ TQSizePolicy & asSizePolicy();
%End
- void load(QDataStream &);
- void save(QDataStream &) const;
+ void load(TQDataStream &);
+ void save(TQDataStream &) const;
static const char *typeToName(Type);
static Type nameToType(const char *);
diff --git a/sip/qt/qvbox.sip b/sip/qt/qvbox.sip
index 9f0e811..c8900c3 100644
--- a/sip/qt/qvbox.sip
+++ b/sip/qt/qvbox.sip
@@ -1,54 +1,54 @@
-// This is the SIP interface definition for QVBox.
+// This is the SIP interface definition for TQVBox.
//
// 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>QVBox (Qt v2+)</Title>
+<Sect2><Title>TQVBox (TQt v2+)</Title>
<Para>
-<Literal>QVBox</Literal> is fully implemented.
+<Literal>TQVBox</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QVBox : QHBox
+class TQVBox : TQHBox
{
%TypeHeaderCode
#include <qvbox.h>
%End
public:
-%If (- Qt_3_0_0)
- QVBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0,
+%If (- TQt_3_0_0)
+ TQVBox(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0,
bool = 1);
%End
-%If (Qt_3_0_0 -)
- QVBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+%If (TQt_3_0_0 -)
+ TQVBox(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
%End
private:
-%If (Qt_2_1_0 -)
- QVBox(const QVBox &);
+%If (TQt_2_1_0 -)
+ TQVBox(const TQVBox &);
%End
};
diff --git a/sip/qt/qvbuttongroup.sip b/sip/qt/qvbuttongroup.sip
index 9561ed5..0a88885 100644
--- a/sip/qt/qvbuttongroup.sip
+++ b/sip/qt/qvbuttongroup.sip
@@ -1,48 +1,48 @@
-// This is the SIP interface definition for QVButtonGroup.
+// This is the SIP interface definition for TQVButtonGroup.
//
// 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>QVButtonGroup (Qt v2+)</Title>
+<Sect2><Title>TQVButtonGroup (TQt v2+)</Title>
<Para>
-<Literal>QVButtonGroup</Literal> is fully implemented.
+<Literal>TQVButtonGroup</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QVButtonGroup : QButtonGroup
+class TQVButtonGroup : TQButtonGroup
{
%TypeHeaderCode
#include <qvbuttongroup.h>
%End
public:
- QVButtonGroup(QWidget * /TransferThis/ = 0,const char * = 0);
- QVButtonGroup(const QString &,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQVButtonGroup(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQVButtonGroup(const TQString &,TQWidget * /TransferThis/ = 0,const char * = 0);
private:
- QVButtonGroup(const QVButtonGroup &);
+ TQVButtonGroup(const TQVButtonGroup &);
};
%End
diff --git a/sip/qt/qvgroupbox.sip b/sip/qt/qvgroupbox.sip
index 06b355e..1ef6a0b 100644
--- a/sip/qt/qvgroupbox.sip
+++ b/sip/qt/qvgroupbox.sip
@@ -1,48 +1,48 @@
-// This is the SIP interface definition for QVGroupBox.
+// This is the SIP interface definition for TQVGroupBox.
//
// 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>QVGroupBox (Qt v2+)</Title>
+<Sect2><Title>TQVGroupBox (TQt v2+)</Title>
<Para>
-<Literal>QVGroupBox</Literal> is fully implemented.
+<Literal>TQVGroupBox</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QVGroupBox : QGroupBox
+class TQVGroupBox : TQGroupBox
{
%TypeHeaderCode
#include <qvgroupbox.h>
%End
public:
- QVGroupBox(QWidget * /TransferThis/ = 0,const char * = 0);
- QVGroupBox(const QString &,QWidget * /TransferThis/ = 0,const char * = 0);
+ TQVGroupBox(TQWidget * /TransferThis/ = 0,const char * = 0);
+ TQVGroupBox(const TQString &,TQWidget * /TransferThis/ = 0,const char * = 0);
private:
- QVGroupBox(const QVGroupBox &);
+ TQVGroupBox(const TQVGroupBox &);
};
%End
diff --git a/sip/qt/qwaitcondition.sip b/sip/qt/qwaitcondition.sip
index 5d8d66f..00c1e94 100644
--- a/sip/qt/qwaitcondition.sip
+++ b/sip/qt/qwaitcondition.sip
@@ -1,79 +1,79 @@
-// This is the SIP interface definition for QWaitCondition.
+// This is the SIP interface definition for TQWaitCondition.
//
// 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>QWaitCondition (Qt v2.2+)</Title>
+<Sect2><Title>TQWaitCondition (TQt v2.2+)</Title>
<Para>
-<Literal>QWaitCondition</Literal> is fully implemented.
+<Literal>TQWaitCondition</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_THREAD_SUPPORT)
+%If (TQt_THREAD_SUPPORT)
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QWaitCondition
+class TQWaitCondition
{
%TypeHeaderCode
#include <qwaitcondition.h>
%End
public:
- QWaitCondition();
+ TQWaitCondition();
bool wait(unsigned long = ULONG_MAX) /ReleaseGIL/;
- bool wait(QMutex *,unsigned long = ULONG_MAX) /ReleaseGIL/;
+ bool wait(TQMutex *,unsigned long = ULONG_MAX) /ReleaseGIL/;
void wakeOne();
void wakeAll();
private:
- QWaitCondition(const QWaitCondition &);
+ TQWaitCondition(const TQWaitCondition &);
};
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
+%If (TQt_2_2_0 - TQt_3_0_0)
-class QWaitCondition : Qt
+class TQWaitCondition : TQt
{
%TypeHeaderCode
#include <qthread.h>
%End
public:
- QWaitCondition();
+ TQWaitCondition();
bool wait(unsigned long = ULONG_MAX) /ReleaseGIL/;
- bool wait(QMutex *,unsigned long = ULONG_MAX) /ReleaseGIL/;
+ bool wait(TQMutex *,unsigned long = ULONG_MAX) /ReleaseGIL/;
void wakeOne();
void wakeAll();
private:
- QWaitCondition(const QWaitCondition &);
+ TQWaitCondition(const TQWaitCondition &);
};
%End
diff --git a/sip/qt/qwhatsthis.sip b/sip/qt/qwhatsthis.sip
index b745449..a93f1d3 100644
--- a/sip/qt/qwhatsthis.sip
+++ b/sip/qt/qwhatsthis.sip
@@ -1,96 +1,96 @@
-// This is the SIP interface definition for QWhatsThis.
+// This is the SIP interface definition for TQWhatsThis.
//
// 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>QWhatsThis</Title>
+<Sect2><Title>TQWhatsThis</Title>
<Para>
-<Literal>QWhatsThis</Literal> is fully implemented.
+<Literal>TQWhatsThis</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QWhatsThis
+class TQWhatsThis
{
%TypeHeaderCode
#include <qwhatsthis.h>
%End
public:
- static void add(QWidget *,const char *,bool = 1);
- static void add(QWidget *,const QPixmap &,const char *,const char *,bool = 1);
- static void remove(QWidget *);
- static const char *textFor(QWidget *);
- static QToolButton *whatsThisButton(QWidget *);
+ static void add(TQWidget *,const char *,bool = 1);
+ static void add(TQWidget *,const TQPixmap &,const char *,const char *,bool = 1);
+ static void remove(TQWidget *);
+ static const char *textFor(TQWidget *);
+ static TQToolButton *whatsThisButton(TQWidget *);
};
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-class QWhatsThis : Qt
+class TQWhatsThis : TQt
{
%TypeHeaderCode
#include <qwhatsthis.h>
%End
public:
- QWhatsThis(QWidget *);
+ TQWhatsThis(TQWidget *);
- virtual QString text(const QPoint &);
-%If (Qt_3_0_0 -)
- virtual bool clicked(const QString &);
+ virtual TQString text(const TQPoint &);
+%If (TQt_3_0_0 -)
+ virtual bool clicked(const TQString &);
%End
-%If (Qt_3_1_0 -)
- static void setFont(const QFont &);
+%If (TQt_3_1_0 -)
+ static void setFont(const TQFont &);
%End
- static void add(QWidget *,const QString &);
- static void remove(QWidget *);
-%If (- Qt_3_0_0)
- static QString textFor(QWidget *,const QPoint & = QPoint());
+ static void add(TQWidget *,const TQString &);
+ static void remove(TQWidget *);
+%If (- TQt_3_0_0)
+ static TQString textFor(TQWidget *,const TQPoint & = TQPoint());
%End
-%If (Qt_3_0_0 -)
- static QString textFor(QWidget *,const QPoint & = QPoint(),bool = 0);
+%If (TQt_3_0_0 -)
+ static TQString textFor(TQWidget *,const TQPoint & = TQPoint(),bool = 0);
%End
- static QToolButton *whatsThisButton(QWidget *);
+ static TQToolButton *whatsThisButton(TQWidget *);
static void enterWhatsThisMode();
static bool inWhatsThisMode();
-%If (- Qt_3_0_0)
- static void leaveWhatsThisMode(const QString & = QString::null,
- const QPoint & = QCursor::pos());
+%If (- TQt_3_0_0)
+ static void leaveWhatsThisMode(const TQString & = TQString::null,
+ const TQPoint & = TQCursor::pos());
%End
-%If (Qt_3_0_0 -)
- static void leaveWhatsThisMode(const QString & = QString::null,
- const QPoint & = QCursor::pos(),
- QWidget * = 0);
+%If (TQt_3_0_0 -)
+ static void leaveWhatsThisMode(const TQString & = TQString::null,
+ const TQPoint & = TQCursor::pos(),
+ TQWidget * = 0);
- static void display(const QString &,const QPoint & = QCursor::pos(),
- QWidget * = 0);
+ static void display(const TQString &,const TQPoint & = TQCursor::pos(),
+ TQWidget * = 0);
%End
};
diff --git a/sip/qt/qwidget.sip b/sip/qt/qwidget.sip
index 72b4304..c6da89c 100644
--- a/sip/qt/qwidget.sip
+++ b/sip/qt/qwidget.sip
@@ -1,29 +1,29 @@
-// This is the SIP interface definition for QWidget.
+// This is the SIP interface definition for TQWidget.
//
// 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>QWidget</Title>
+<Sect2><Title>TQWidget</Title>
<FuncSynopsis>
- <FuncDef>QWExtra *<Function>extraData</Function></FuncDef>
+ <FuncDef>TQWExtra *<Function>extraData</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -31,7 +31,7 @@ Not implemented.
</Para>
<FuncSynopsis>
- <FuncDef>QFocusData *<Function>focusData</Function></FuncDef>
+ <FuncDef>TQFocusData *<Function>focusData</Function></FuncDef>
<ParamDef></ParamDef>
</FuncSynopsis>
<Para>
@@ -57,109 +57,109 @@ This has been renamed to <Literal>raiseW</Literal> in Python.
%End
-class QWidget : QObject, QPaintDevice
+class TQWidget : TQObject, TQPaintDevice
{
%TypeHeaderCode
#include <qwidget.h>
%End
public:
- QWidget(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+ TQWidget(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
WId winId() const;
bool isTopLevel() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isDialog() const;
%End
bool isPopup() const;
bool isDesktop() const;
bool isModal() const;
bool isEnabled() const;
- bool isEnabledTo(QWidget *) const;
+ bool isEnabledTo(TQWidget *) const;
bool isEnabledToTLW() const;
- const QRect &geometry() const;
+ const TQRect &geometry() const;
int x() const;
int y() const;
- QPoint pos() const;
- QSize size() const;
+ TQPoint pos() const;
+ TQSize size() const;
int width() const;
int height() const;
- QRect rect() const;
- QRect childrenRect() const;
- QSize minimumSize() const;
- QSize maximumSize() const;
- void setMinimumSize(const QSize &);
- void setMaximumSize(const QSize &);
+ TQRect rect() const;
+ TQRect childrenRect() const;
+ TQSize minimumSize() const;
+ TQSize maximumSize() const;
+ void setMinimumSize(const TQSize &);
+ void setMaximumSize(const TQSize &);
void setMinimumWidth(int);
void setMinimumHeight(int);
void setMaximumWidth(int);
void setMaximumHeight(int);
- QSize sizeIncrement() const;
- void setSizeIncrement(const QSize &);
- void setFixedSize(const QSize &);
+ TQSize sizeIncrement() const;
+ void setSizeIncrement(const TQSize &);
+ void setFixedSize(const TQSize &);
void setFixedSize(int,int);
void setFixedWidth(int);
void setFixedHeight(int);
- QPoint mapToGlobal(const QPoint &) const;
- QPoint mapFromGlobal(const QPoint &) const;
- QPoint mapToParent(const QPoint &) const;
- QPoint mapFromParent(const QPoint &) const;
-%If (Qt_2_2_0 -)
- QPoint mapTo(QWidget *,const QPoint &) const;
- QPoint mapFrom(QWidget *,const QPoint &) const;
+ TQPoint mapToGlobal(const TQPoint &) const;
+ TQPoint mapFromGlobal(const TQPoint &) const;
+ TQPoint mapToParent(const TQPoint &) const;
+ TQPoint mapFromParent(const TQPoint &) const;
+%If (TQt_2_2_0 -)
+ TQPoint mapTo(TQWidget *,const TQPoint &) const;
+ TQPoint mapFrom(TQWidget *,const TQPoint &) const;
%End
- QWidget *topLevelWidget() const;
+ TQWidget *topLevelWidget() const;
BackgroundMode backgroundMode() const;
-%If (- Qt_3_0_0)
- const QColor &backgroundColor() const;
- virtual void setBackgroundColor(const QColor &);
- const QPixmap *backgroundPixmap();
- virtual void setBackgroundPixmap(const QPixmap &);
+%If (- TQt_3_0_0)
+ const TQColor &backgroundColor() const;
+ virtual void setBackgroundColor(const TQColor &);
+ const TQPixmap *backgroundPixmap();
+ virtual void setBackgroundPixmap(const TQPixmap &);
%End
- const QColor &foregroundColor() const;
+ const TQColor &foregroundColor() const;
-%If (Qt_3_0_0 -)
- const QColor &eraseColor() const;
- virtual void setEraseColor(const QColor &);
+%If (TQt_3_0_0 -)
+ const TQColor &eraseColor() const;
+ virtual void setEraseColor(const TQColor &);
- const QPixmap *erasePixmap() const;
- virtual void setErasePixmap(const QPixmap &);
+ const TQPixmap *erasePixmap() const;
+ virtual void setErasePixmap(const TQPixmap &);
%End
- const QColorGroup &colorGroup() const;
- const QPalette &palette() const;
-%If (Qt_2_2_0 -)
+ const TQColorGroup &colorGroup() const;
+ const TQPalette &palette() const;
+%If (TQt_2_2_0 -)
bool ownPalette() const;
%End
- virtual void setPalette(const QPalette &);
-%If (Qt_2_1_0 -)
+ virtual void setPalette(const TQPalette &);
+%If (TQt_2_1_0 -)
void unsetPalette();
%End
-%If (Qt_3_0_0 -)
- const QColor &paletteForegroundColor() const;
- void setPaletteForegroundColor(const QColor &);
+%If (TQt_3_0_0 -)
+ const TQColor &paletteForegroundColor() const;
+ void setPaletteForegroundColor(const TQColor &);
- const QColor &paletteBackgroundColor() const;
- virtual void setPaletteBackgroundColor(const QColor &);
+ const TQColor &paletteBackgroundColor() const;
+ virtual void setPaletteBackgroundColor(const TQColor &);
- const QPixmap *paletteBackgroundPixmap() const;
- virtual void setPaletteBackgroundPixmap(const QPixmap &);
+ const TQPixmap *paletteBackgroundPixmap() const;
+ virtual void setPaletteBackgroundPixmap(const TQPixmap &);
- const QBrush &backgroundBrush() const;
+ const TQBrush &backgroundBrush() const;
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
bool ownFont() const;
%End
- virtual void setFont(const QFont &);
- QFontMetrics fontMetrics() const;
- QFontInfo fontInfo() const;
+ virtual void setFont(const TQFont &);
+ TQFontMetrics fontMetrics() const;
+ TQFontInfo fontInfo() const;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
enum PropagationMode
{
NoChildren,
@@ -172,14 +172,14 @@ public:
PropagationMode palettePropagation() const;
%End
- const QCursor &cursor() const;
-%If (Qt_2_2_0 -)
+ const TQCursor &cursor() const;
+%If (TQt_2_2_0 -)
bool ownCursor() const;
%End
- virtual void setCursor(const QCursor &);
- const QPixmap *icon() const;
+ virtual void setCursor(const TQCursor &);
+ const TQPixmap *icon() const;
bool hasMouseTracking() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool hasMouse() const;
%End
@@ -188,60 +188,60 @@ public:
bool isFocusEnabled() const;
FocusPolicy focusPolicy() const;
bool hasFocus() const;
- static void setTabOrder(QWidget *,QWidget *);
- QWidget *focusProxy() const;
+ static void setTabOrder(TQWidget *,TQWidget *);
+ TQWidget *focusProxy() const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void setInputMethodEnabled(bool);
bool isInputMethodEnabled() const;
%End
void grabMouse();
- void grabMouse(const QCursor &);
+ void grabMouse(const TQCursor &);
void releaseMouse();
void grabKeyboard();
void releaseKeyboard();
- static QWidget *mouseGrabber();
- static QWidget *keyboardGrabber();
+ static TQWidget *mouseGrabber();
+ static TQWidget *keyboardGrabber();
bool isUpdatesEnabled() const;
bool isVisible() const;
- bool isVisibleTo(QWidget *) const;
+ bool isVisibleTo(TQWidget *) const;
bool isVisibleToTLW() const;
- virtual QSize sizeHint() const;
-%If (- Qt_3_1_0)
+ virtual TQSize sizeHint() const;
+%If (- TQt_3_1_0)
virtual void adjustSize();
%End
void erase();
void erase(int,int,int,int);
- void erase(const QRect &);
+ void erase(const TQRect &);
void scroll(int,int);
- QWidget *focusWidget() const;
+ TQWidget *focusWidget() const;
bool acceptDrops() const;
-%If (- Qt_3_0_0)
- QWidget *parentWidget() const;
+%If (- TQt_3_0_0)
+ TQWidget *parentWidget() const;
bool testWFlags(WFlags) const;
%End
-%If (Qt_3_0_0 -)
- QWidget *parentWidget(bool = 0) const;
+%If (TQt_3_0_0 -)
+ TQWidget *parentWidget(bool = 0) const;
WState testWState(WState) const;
WFlags testWFlags(WFlags) const;
%End
- static QWidget *find(WId);
+ static TQWidget *find(WId);
-%If (Qt_3_0_0 -)
- QWidget *childAt(int,int,bool = 0) const;
- QWidget *childAt(const QPoint &,bool = 0) const;
+%If (TQt_3_0_0 -)
+ TQWidget *childAt(int,int,bool = 0) const;
+ TQWidget *childAt(const TQPoint &,bool = 0) const;
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
void setWindowOpacity(double);
double windowOpacity() const;
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
GUIStyle style() const;
virtual void setStyle(GUIStyle);
- const QRect &frameGeometry() const;
+ const TQRect &frameGeometry() const;
void setMinimumSize(int,int);
void setMaximumSize(int,int);
void setSizeIncrement(int,int);
@@ -262,13 +262,13 @@ public:
};
void setBackgroundMode(BackgroundMode);
- const QFont &font() const;
+ const TQFont &font() const;
void setFontPropagation(PropagationMode);
void setPalettePropagation(PropagationMode);
const char *caption() const;
const char *iconText() const;
- void setMask(QBitmap);
- void setMask(const QRegion &);
+ void setMask(TQBitmap);
+ void setMask(const TQRegion &);
enum FocusPolicy
{
@@ -282,24 +282,24 @@ public:
void setFocusPolicy(FocusPolicy);
void setFocus();
void clearFocus();
- void setFocusProxy(QWidget *);
+ void setFocusProxy(TQWidget *);
virtual bool close(bool = 0);
- void recreate(QWidget *,WFlags,const QPoint &,bool = 0);
+ void recreate(TQWidget *,WFlags,const TQPoint &,bool = 0);
void drawText(int,int,const char *);
- void drawText(const QPoint &,const char *);
+ void drawText(const TQPoint &,const char *);
void setAcceptDrops(bool);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void setName(const char *);
- QStyle &style() const;
- void setStyle(QStyle *);
-%If (Qt_3_0_0 -)
- QStyle *setStyle(const QString &);
-%End
- QRect frameGeometry() const;
- QSize frameSize() const;
- QRegion childrenRegion() const;
+ TQStyle &style() const;
+ void setStyle(TQStyle *);
+%If (TQt_3_0_0 -)
+ TQStyle *setStyle(const TQString &);
+%End
+ TQRect frameGeometry() const;
+ TQSize frameSize() const;
+ TQRegion childrenRegion() const;
int minimumWidth() const;
int minimumHeight() const;
int maximumWidth() const;
@@ -307,11 +307,11 @@ public:
virtual void setMinimumSize(int,int);
virtual void setMaximumSize(int,int);
virtual void setSizeIncrement(int,int);
- QSize baseSize() const;
- void setBaseSize(const QSize &);
+ TQSize baseSize() const;
+ void setBaseSize(const TQSize &);
void setBaseSize(int,int);
-%If (- Qt_2_2_0)
+%If (- TQt_2_2_0)
enum BackgroundMode
{
FixedColor,
@@ -332,7 +332,7 @@ public:
PaletteHighlightedText
};
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
+%If (TQt_2_2_0 - TQt_3_0_0)
enum BackgroundMode
{
FixedColor,
@@ -357,21 +357,21 @@ public:
%End
virtual void setBackgroundMode(BackgroundMode);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void setBackgroundMode(BackgroundMode,BackgroundMode);
%End
- QFont font() const;
-%If (- Qt_3_0_0)
- void setPalette(const QPalette &,bool);
- void setFont(const QFont &,bool);
+ TQFont font() const;
+%If (- TQt_3_0_0)
+ void setPalette(const TQPalette &,bool);
+ void setFont(const TQFont &,bool);
virtual void setFontPropagation(PropagationMode);
virtual void setPalettePropagation(PropagationMode);
%End
virtual void unsetCursor();
- QString caption() const;
- QString iconText() const;
- virtual void setMask(const QBitmap &);
- virtual void setMask(const QRegion &);
+ TQString caption() const;
+ TQString iconText() const;
+ virtual void setMask(const TQBitmap &);
+ virtual void setMask(const TQRegion &);
enum FocusPolicy
{
@@ -384,47 +384,47 @@ public:
virtual void setActiveWindow();
virtual void setFocusPolicy(FocusPolicy);
- virtual void setFocusProxy(QWidget *);
+ virtual void setFocusProxy(TQWidget *);
virtual bool close(bool);
// Obsolete.
- QRect visibleRect() const;
+ TQRect visibleRect() const;
bool isMinimized() const;
- virtual QSize minimumSizeHint() const;
- virtual QSizePolicy sizePolicy() const;
-%If (Qt_2_2_0 -)
+ virtual TQSize minimumSizeHint() const;
+ virtual TQSizePolicy sizePolicy() const;
+%If (TQt_2_2_0 -)
bool isHidden() const;
bool isMaximized() const;
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
bool isShown() const;
bool isFullScreen() const;
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
uint windowState() const;
void setWindowState(uint);
%End
-%If (Qt_3_0_0 -)
- virtual void setSizePolicy(QSizePolicy);
+%If (TQt_3_0_0 -)
+ virtual void setSizePolicy(TQSizePolicy);
%End
-%If (Qt_3_1_0 -)
- void setSizePolicy(QSizePolicy::SizeType,QSizePolicy::SizeType,
+%If (TQt_3_1_0 -)
+ void setSizePolicy(TQSizePolicy::SizeType,TQSizePolicy::SizeType,
bool = 0);
%End
-%If (Qt_2_2_0 - Qt_3_0_0)
- void setSizePolicy(QSizePolicy);
+%If (TQt_2_2_0 - TQt_3_0_0)
+ void setSizePolicy(TQSizePolicy);
%End
virtual int heightForWidth(int) const;
-%If (Qt_3_2_0 -)
- QRegion clipRegion() const;
+%If (TQt_3_2_0 -)
+ TQRegion clipRegion() const;
%End
- QLayout *layout() const;
+ TQLayout *layout() const;
void updateGeometry();
- virtual void reparent(QWidget * /GetWrapper/,WFlags,const QPoint &,
+ virtual void reparent(TQWidget * /GetWrapper/,WFlags,const TQPoint &,
bool = 0);
%MethodCode
if (sipCpp -> parent() != a0)
@@ -436,12 +436,12 @@ public:
}
Py_BEGIN_ALLOW_THREADS
- sipSelfWasArg ? sipCpp->QWidget::reparent(a0, a1, *a2, a3) : sipCpp->reparent(a0, a1, *a2, a3);
+ sipSelfWasArg ? sipCpp->TQWidget::reparent(a0, a1, *a2, a3) : sipCpp->reparent(a0, a1, *a2, a3);
Py_END_ALLOW_THREADS
%End
-%If (Qt_2_1_0 -)
- void reparent(QWidget * /GetWrapper/,const QPoint &,bool = 0);
+%If (TQt_2_1_0 -)
+ void reparent(TQWidget * /GetWrapper/,const TQPoint &,bool = 0);
%MethodCode
if (sipCpp -> parent() != a0)
{
@@ -457,188 +457,188 @@ public:
%End
%End
- void erase(const QRegion &);
- void scroll(int,int,const QRect &);
- void drawText(int,int,const QString &);
- void drawText(const QPoint &,const QString &);
+ void erase(const TQRegion &);
+ void scroll(int,int,const TQRect &);
+ void drawText(int,int,const TQString &);
+ void drawText(const TQPoint &,const TQString &);
virtual void setAcceptDrops(bool);
virtual void setAutoMask(bool);
bool autoMask() const;
virtual bool customWhatsThis() const;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
bool testWState(uint) const;
%End
%End
-%If (Qt_2_1_0 -)
- QRect microFocusHint() const;
+%If (TQt_2_1_0 -)
+ TQRect microFocusHint() const;
void unsetFont();
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
enum BackgroundOrigin {
WidgetOrigin,
ParentOrigin,
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
WindowOrigin,
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
AncestorOrigin,
%End
};
%End
-%If (Qt_2_1_0 - Qt_3_0_0)
+%If (TQt_2_1_0 - TQt_3_0_0)
void setBackgroundOrigin(BackgroundOrigin);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
virtual void setBackgroundOrigin(BackgroundOrigin);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
BackgroundOrigin backgroundOrigin() const;
%End
-%If (Qt_3_1_0 -)
- QPoint backgroundOffset() const;
+%If (TQt_3_1_0 -)
+ TQPoint backgroundOffset() const;
%End
public slots:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
virtual void adjustSize();
%End
virtual void setEnabled(bool);
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
void setDisabled(bool);
%End
void update();
void update(int,int,int,int);
- void update(const QRect &);
+ void update(const TQRect &);
void repaint(int,int,int,int,bool = 1);
- void repaint(const QRect &,bool = 1);
+ void repaint(const TQRect &,bool = 1);
virtual void show();
virtual void hide();
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void setShown(bool);
void setHidden(bool);
%End
void raise() /PyName=raiseW/;
void lower() /PyName=lowerW/;
virtual void move(int,int);
- void move(const QPoint &);
+ void move(const TQPoint &);
virtual void resize(int,int);
- void resize(const QSize &);
+ void resize(const TQSize &);
virtual void setGeometry(int,int,int,int);
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setCaption(const char *);
- void setIcon(const QPixmap &);
+ void setIcon(const TQPixmap &);
void setIconText(const char *);
void setMouseTracking(bool);
void setUpdatesEnabled(bool);
void repaint(bool = 1);
void iconify();
- void setGeometry(const QRect &);
+ void setGeometry(const TQRect &);
%End
-%If (Qt_2_00 -)
- virtual void setCaption(const QString &);
- virtual void setIcon(const QPixmap &);
- virtual void setIconText(const QString &);
+%If (TQt_2_00 -)
+ virtual void setCaption(const TQString &);
+ virtual void setIcon(const TQPixmap &);
+ virtual void setIconText(const TQString &);
virtual void setMouseTracking(bool);
virtual void setFocus();
void clearFocus();
virtual void setUpdatesEnabled(bool);
void repaint();
void repaint(bool);
- void repaint(const QRegion &,bool = 1);
+ void repaint(const TQRegion &,bool = 1);
virtual void showMinimized();
virtual void showMaximized();
virtual void showNormal();
virtual void polish();
bool close();
- virtual void setGeometry(const QRect &);
+ virtual void setGeometry(const TQRect &);
%End
-%If (Qt_2_1_0 -)
+%If (TQt_2_1_0 -)
void showFullScreen();
void constPolish() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
// This was added before v3 but I can't be bothered to work out exactly
// when.
- void stackUnder(QWidget *);
+ void stackUnder(TQWidget *);
%End
protected:
- bool event(QEvent *);
- virtual void mousePressEvent(QMouseEvent *);
- virtual void mouseReleaseEvent(QMouseEvent *);
- virtual void mouseDoubleClickEvent(QMouseEvent *);
- virtual void mouseMoveEvent(QMouseEvent *);
- virtual void keyPressEvent(QKeyEvent *);
- virtual void keyReleaseEvent(QKeyEvent *);
- virtual void focusInEvent(QFocusEvent *);
- virtual void focusOutEvent(QFocusEvent *);
- virtual void enterEvent(QEvent *);
- virtual void leaveEvent(QEvent *);
- virtual void paintEvent(QPaintEvent *);
- virtual void moveEvent(QMoveEvent *);
- virtual void resizeEvent(QResizeEvent *);
- virtual void closeEvent(QCloseEvent *);
-%If (Qt_3_0_0 -)
- virtual void contextMenuEvent(QContextMenuEvent *);
- virtual void imStartEvent(QIMEvent *);
- virtual void imComposeEvent(QIMEvent *);
- virtual void imEndEvent(QIMEvent *);
- virtual void tabletEvent(QTabletEvent *);
+ bool event(TQEvent *);
+ virtual void mousePressEvent(TQMouseEvent *);
+ virtual void mouseReleaseEvent(TQMouseEvent *);
+ virtual void mouseDoubleClickEvent(TQMouseEvent *);
+ virtual void mouseMoveEvent(TQMouseEvent *);
+ virtual void keyPressEvent(TQKeyEvent *);
+ virtual void keyReleaseEvent(TQKeyEvent *);
+ virtual void focusInEvent(TQFocusEvent *);
+ virtual void focusOutEvent(TQFocusEvent *);
+ virtual void enterEvent(TQEvent *);
+ virtual void leaveEvent(TQEvent *);
+ virtual void paintEvent(TQPaintEvent *);
+ virtual void moveEvent(TQMoveEvent *);
+ virtual void resizeEvent(TQResizeEvent *);
+ virtual void closeEvent(TQCloseEvent *);
+%If (TQt_3_0_0 -)
+ virtual void contextMenuEvent(TQContextMenuEvent *);
+ virtual void imStartEvent(TQIMEvent *);
+ virtual void imComposeEvent(TQIMEvent *);
+ virtual void imEndEvent(TQIMEvent *);
+ virtual void tabletEvent(TQTabletEvent *);
%End
virtual void enabledChange(bool);
-%If (- Qt_3_0_0)
- virtual void backgroundColorChange(const QColor &);
- virtual void backgroundPixmapChange(const QPixmap &);
+%If (- TQt_3_0_0)
+ virtual void backgroundColorChange(const TQColor &);
+ virtual void backgroundPixmapChange(const TQPixmap &);
%End
- virtual void paletteChange(const QPalette &);
- virtual void fontChange(const QFont &);
-%If (Qt_3_0_0 -)
+ virtual void paletteChange(const TQPalette &);
+ virtual void fontChange(const TQFont &);
+%If (TQt_3_0_0 -)
virtual void windowActivationChange(bool);
void resetInputContext();
%End
WFlags getWFlags() const;
void clearWFlags(WFlags);
virtual bool focusNextPrevChild(bool);
-// QWExtra *extraData();
-// QFocusData *focusData();
+// TQWExtra *extraData();
+// TQFocusData *focusData();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
virtual void styleChange(GUIStyle);
void create(WId);
void create(WId,bool,bool);
void destroy(bool,bool);
void setWFlags(WFlags);
- void setFRect(const QRect &);
- void setCRect(const QRect &);
+ void setFRect(const TQRect &);
+ void setCRect(const TQRect &);
void setSizeGrip(bool);
%End
-%If (Qt_2_00 -)
- virtual void wheelEvent(QWheelEvent *);
-%If (Qt_DRAGANDDROP)
- virtual void dragEnterEvent(QDragEnterEvent *);
- virtual void dragMoveEvent(QDragMoveEvent *);
- virtual void dragLeaveEvent(QDragLeaveEvent *);
- virtual void dropEvent(QDropEvent *);
+%If (TQt_2_00 -)
+ virtual void wheelEvent(TQWheelEvent *);
+%If (TQt_DRAGANDDROP)
+ virtual void dragEnterEvent(TQDragEnterEvent *);
+ virtual void dragMoveEvent(TQDragMoveEvent *);
+ virtual void dragLeaveEvent(TQDragLeaveEvent *);
+ virtual void dropEvent(TQDropEvent *);
%End
- virtual void showEvent(QShowEvent *);
- virtual void hideEvent(QHideEvent *);
-%If (- Qt_3_0_0)
- virtual void customEvent(QCustomEvent *);
+ virtual void showEvent(TQShowEvent *);
+ virtual void hideEvent(TQHideEvent *);
+%If (- TQt_3_0_0)
+ virtual void customEvent(TQCustomEvent *);
%End
virtual void updateMask();
- virtual void styleChange(QStyle &);
+ virtual void styleChange(TQStyle &);
int metric(int) const;
virtual void create(WId = 0,bool = 1,bool = 1);
virtual void destroy(bool = 1,bool = 1);
@@ -646,19 +646,19 @@ protected:
virtual void setWState(uint);
void clearWState(uint);
virtual void setWFlags(WFlags);
-%If (- Qt_3_0_0)
- virtual void setFRect(const QRect &);
- virtual void setCRect(const QRect &);
+%If (- TQt_3_0_0)
+ virtual void setFRect(const TQRect &);
+ virtual void setCRect(const TQRect &);
%End
virtual void setKeyCompression(bool);
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual void setMicroFocusHint(int,int,int,int,bool = 1);
%End
-%If (Qt_3_0_0 -)
- virtual void setMicroFocusHint(int,int,int,int,bool = 1,QFont * = 0);
+%If (TQt_3_0_0 -)
+ virtual void setMicroFocusHint(int,int,int,int,bool = 1,TQFont * = 0);
%End
%End
private:
- QWidget(const QWidget &);
+ TQWidget(const TQWidget &);
};
diff --git a/sip/qt/qwidgetlist.sip b/sip/qt/qwidgetlist.sip
index 9fdc1ad..2b70a2b 100644
--- a/sip/qt/qwidgetlist.sip
+++ b/sip/qt/qwidgetlist.sip
@@ -1,29 +1,29 @@
-// This is the SIP interface definition for QWidgetList.
+// This is the SIP interface definition for TQWidgetList.
//
// 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>QWidgetList</Title>
+<Sect2><Title>TQWidgetList</Title>
<Para>
-This class isn't implemented. Whenever a <Literal>QWidgetList</Literal> is the
+This class isn't implemented. Whenever a <Literal>TQWidgetList</Literal> is the
return type of a function or the type of an argument, a Python list of
instances is used instead.
</Para>
@@ -31,7 +31,7 @@ instances is used instead.
%End
-%MappedType QWidgetList
+%MappedType TQWidgetList
{
%TypeHeaderCode
#include <qwidgetlist.h>
@@ -41,12 +41,12 @@ instances is used instead.
// Convert the list.
PyObject *pl;
- QWidget *obj;
+ TQWidget *obj;
if ((pl = PyList_New(0)) == NULL)
return NULL;
- for (QWidgetListIt it(*sipCpp); (obj = it.current()) != NULL; ++it)
+ for (TQWidgetListIt it(*sipCpp); (obj = it.current()) != NULL; ++it)
{
PyObject *inst;
@@ -65,7 +65,7 @@ instances is used instead.
%End
%ConvertToTypeCode
- // Convert a Python list of QWidget instances to a QWidgetList on the
+ // Convert a Python list of TQWidget instances to a TQWidgetList on the
// heap.
if (sipIsErr == NULL)
@@ -80,16 +80,16 @@ instances is used instead.
return 1;
}
- QWidgetList *qwl = new QWidgetList;
+ TQWidgetList *qwl = new TQWidgetList;
for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
{
- QWidget *qw;
+ TQWidget *qw;
// We apply the transfer to the list itself, not the elements.
// Note that any temporary element will never be destroyed.
// There is nothing that can be done about this.
- qw = reinterpret_cast<QWidget *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QWidget,0,0,0,sipIsErr));
+ qw = reinterpret_cast<TQWidget *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_QWidget,0,0,0,sipIsErr));
if (*sipIsErr)
{
diff --git a/sip/qt/qwidgetstack.sip b/sip/qt/qwidgetstack.sip
index daf6694..59aacc2 100644
--- a/sip/qt/qwidgetstack.sip
+++ b/sip/qt/qwidgetstack.sip
@@ -1,98 +1,98 @@
-// This is the SIP interface definition for QWidgetStack.
+// This is the SIP interface definition for TQWidgetStack.
//
// 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>QWidgetStack</Title>
+<Sect2><Title>TQWidgetStack</Title>
<Para>
-<Literal>QWidgetStack</Literal> is fully implemented.
+<Literal>TQWidgetStack</Literal> is fully implemented.
</Para>
</Sect2>
%End
-class QWidgetStack : QFrame
+class TQWidgetStack : TQFrame
{
%TypeHeaderCode
#include <qwidgetstack.h>
%End
public:
- QWidgetStack(QWidget * /TransferThis/ = 0,const char * = 0);
-%If (Qt_3_1_0 -)
- QWidgetStack(QWidget * /TransferThis/,const char *,WFlags);
+ TQWidgetStack(TQWidget * /TransferThis/ = 0,const char * = 0);
+%If (TQt_3_1_0 -)
+ TQWidgetStack(TQWidget * /TransferThis/,const char *,WFlags);
%End
- // The QWidget has it's parent changed to be `this' so it will be
+ // The TQWidget has it's parent changed to be `this' so it will be
// deleted automatically when `this' is deleted. It stays this way
// even if removeWidget() is called, so it isn't transferred back.
-%If (- Qt_3_0_0)
- void addWidget(QWidget * /Transfer/,int);
+%If (- TQt_3_0_0)
+ void addWidget(TQWidget * /Transfer/,int);
%End
-%If (Qt_3_0_0 -)
- int addWidget(QWidget * /Transfer/,int = -1);
+%If (TQt_3_0_0 -)
+ int addWidget(TQWidget * /Transfer/,int = -1);
%End
- void removeWidget(QWidget *);
+ void removeWidget(TQWidget *);
-%If (Qt_2_00 -)
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+%If (TQt_2_00 -)
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
%End
void show();
- QWidget *widget(int) const;
- int id(QWidget *) const;
+ TQWidget *widget(int) const;
+ int id(TQWidget *) const;
- QWidget *visibleWidget() const;
+ TQWidget *visibleWidget() const;
-%If (Qt_2_00 -)
- void setFrameRect(const QRect &);
+%If (TQt_2_00 -)
+ void setFrameRect(const TQRect &);
%End
-%If (- Qt_2_00)
- bool event(QEvent *);
+%If (- TQt_2_00)
+ bool event(TQEvent *);
%End
signals:
void aboutToShow(int);
- void aboutToShow(QWidget *);
+ void aboutToShow(TQWidget *);
public slots:
void raiseWidget(int);
- void raiseWidget(QWidget *);
+ void raiseWidget(TQWidget *);
protected:
void frameChanged();
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setChildGeometries();
%End
-%If (Qt_2_00 -)
- void resizeEvent(QResizeEvent *);
+%If (TQt_2_00 -)
+ void resizeEvent(TQResizeEvent *);
virtual void setChildGeometries();
- void childEvent(QChildEvent *);
+ void childEvent(TQChildEvent *);
%End
private:
-%If (Qt_2_1_0 -)
- QWidgetStack(const QWidgetStack &);
+%If (TQt_2_1_0 -)
+ TQWidgetStack(const TQWidgetStack &);
%End
};
diff --git a/sip/qt/qwindow.sip b/sip/qt/qwindow.sip
index 4305c42..9b1d511 100644
--- a/sip/qt/qwindow.sip
+++ b/sip/qt/qwindow.sip
@@ -1,47 +1,47 @@
-// This is the SIP interface definition for QWindow.
+// This is the SIP interface definition for TQWindow.
//
// 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>QWindow</Title>
+<Sect2><Title>TQWindow</Title>
<Para>
-<Literal>QWindow</Literal> is fully implemented (Qt v1.x).
+<Literal>TQWindow</Literal> is fully implemented (TQt v1.x).
</Para>
</Sect2>
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
-class QWindow : QWidget
+class TQWindow : TQWidget
{
%TypeHeaderCode
#include <qwindow.h>
%End
public:
- QWindow(QWidget * = 0,const char * = 0,WFlags = 0);
+ TQWindow(TQWidget * = 0,const char * = 0,WFlags = 0);
private:
- QWindow(const QWindow &);
+ TQWindow(const TQWindow &);
};
%End
diff --git a/sip/qt/qwindowdefs.sip b/sip/qt/qwindowdefs.sip
index 4638d71..3b1afdc 100644
--- a/sip/qt/qwindowdefs.sip
+++ b/sip/qt/qwindowdefs.sip
@@ -3,27 +3,27 @@
// 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>Qt Constants</Title>
+<Sect2><Title>TQt Constants</Title>
<Para>
-All constant values defined by Qt have equivalent constants defined to Python.
+All constant values defined by TQt have equivalent constants defined to Python.
</Para>
</Sect2>
%End
@@ -40,32 +40,32 @@ All constant values defined by Qt have equivalent constants defined to Python.
%OptionalInclude qwindowdefs_x11.sip
-%If (- Qt_2_00)
-typedef short QCOORD;
+%If (- TQt_2_00)
+typedef short TQCOORD;
-const int QCOORD_MIN;
-const int QCOORD_MAX;
+const int TQCOORD_MIN;
+const int TQCOORD_MAX;
%End
-%If (Qt_2_00 -)
-typedef Q_INT32 QCOORD;
+%If (TQt_2_00 -)
+typedef Q_INT32 TQCOORD;
-const QCOORD QCOORD_MIN;
-const QCOORD QCOORD_MAX;
+const TQCOORD TQCOORD_MIN;
+const TQCOORD TQCOORD_MAX;
%End
-typedef unsigned QRgb;
+typedef unsigned TQRgb;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
char *qAppName();
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
const char *qAppName();
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
enum GUIStyle {
MacStyle,
diff --git a/sip/qt/qwindowdefs_qws.sip b/sip/qt/qwindowdefs_qws.sip
index 53f4b77..e6493df 100644
--- a/sip/qt/qwindowdefs_qws.sip
+++ b/sip/qt/qwindowdefs_qws.sip
@@ -1,23 +1,23 @@
// This is the SIP interface definition for a variety of constant definitions
-// for Qt/Embedded.
+// for TQt/Embedded.
//
// 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.
diff --git a/sip/qt/qwindowdefs_x11.sip b/sip/qt/qwindowdefs_x11.sip
index 4ddfcd4..a771d63 100644
--- a/sip/qt/qwindowdefs_x11.sip
+++ b/sip/qt/qwindowdefs_x11.sip
@@ -4,31 +4,31 @@
// 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.
%If (WS_X11)
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
typedef unsigned HANDLE;
typedef unsigned WId;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
typedef unsigned long WId;
%End
@@ -37,11 +37,11 @@ typedef void Display;
Display *qt_xdisplay();
int qt_xscreen();
WId qt_xrootwin();
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
WId qt_xrootwin(int);
%End
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
const char *qAppClass();
%End
diff --git a/sip/qt/qwindowsstyle.sip b/sip/qt/qwindowsstyle.sip
index 34be426..5f4ed19 100644
--- a/sip/qt/qwindowsstyle.sip
+++ b/sip/qt/qwindowsstyle.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QWindowsStyle.
+// This is the SIP interface definition for TQWindowsStyle.
//
// 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>QWindowsStyle (Qt v2+)</Title>
+<Sect2><Title>TQWindowsStyle (TQt v2+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>getButtonShift</Function></FuncDef>
<ParamDef>int &<Parameter>x</Parameter></ParamDef>
@@ -29,12 +29,12 @@
</FuncSynopsis>
<Para>
This takes no parameters and returns a tuple of the <Literal>x</Literal> and
-<Literal>y</Literal> values. (Qt v2)
+<Literal>y</Literal> values. (TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>sb</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
@@ -44,12 +44,12 @@ This takes no parameters and returns a tuple of the <Literal>x</Literal> and
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
-(Qt v2)
+(TQt v2)
</Para>
<FuncSynopsis>
<FuncDef>void <Function>tabbarMetrics</Function></FuncDef>
- <ParamDef>const QTabBar *<Parameter>t</Parameter></ParamDef>
+ <ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
<ParamDef>int &<Parameter>hframe</Parameter></ParamDef>
<ParamDef>int &<Parameter>vframe</Parameter></ParamDef>
<ParamDef>int &<Parameter>overlap</Parameter></ParamDef>
@@ -57,134 +57,134 @@ This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
<Para>
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
-<Literal>overlap</Literal> values. (Qt v2)
+<Literal>overlap</Literal> values. (TQt v2)
</Para>
</Sect2>
%End
-%If (Qt_STYLE_WINDOWS)
-%If (Qt_2_00 -)
+%If (TQt_STYLE_WINDOWS)
+%If (TQt_2_00 -)
-class QWindowsStyle : QCommonStyle
+class TQWindowsStyle : TQCommonStyle
{
%TypeHeaderCode
#include <qwindowsstyle.h>
%End
public:
- QWindowsStyle();
+ TQWindowsStyle();
-%If (Qt_3_3_0 -)
- void polish(QApplication *);
- void unPolish(QApplication *);
+%If (TQt_3_3_0 -)
+ void polish(TQApplication *);
+ void unPolish(TQApplication *);
- void polish(QWidget *);
- void unPolish(QWidget *);
+ void polish(TQWidget *);
+ void unPolish(TQWidget *);
- void polish(QPalette &);
+ void polish(TQPalette &);
%End
-%If (- Qt_3_0_0)
- void drawButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,const QBrush * = 0);
- void drawBevelButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,const QBrush * = 0);
- void drawFocusRect(QPainter *,const QRect &,const QColorGroup &,
- const QColor * = 0,bool = 0);
- void drawPushButton(QPushButton *,QPainter *);
+%If (- TQt_3_0_0)
+ void drawButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,const TQBrush * = 0);
+ void drawBevelButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,const TQBrush * = 0);
+ void drawFocusRect(TQPainter *,const TQRect &,const TQColorGroup &,
+ const TQColor * = 0,bool = 0);
+ void drawPushButton(TQPushButton *,TQPainter *);
void getButtonShift(int &,int &);
- void drawPanel(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,int = 1,const QBrush * = 0);
- void drawPopupPanel(QPainter *,int,int,int,int,const QColorGroup &,
- int = 2,const QBrush * = 0);
- void drawArrow(QPainter *,ArrowType,bool,int,int,int,int,
- const QColorGroup &,bool,const QBrush * = 0);
- QSize indicatorSize() const;
- void drawIndicator(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawPanel(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,int = 1,const TQBrush * = 0);
+ void drawPopupPanel(TQPainter *,int,int,int,int,const TQColorGroup &,
+ int = 2,const TQBrush * = 0);
+ void drawArrow(TQPainter *,ArrowType,bool,int,int,int,int,
+ const TQColorGroup &,bool,const TQBrush * = 0);
+ TQSize indicatorSize() const;
+ void drawIndicator(TQPainter *,int,int,int,int,const TQColorGroup &,
int,bool = 0,bool = 1);
- QSize exclusiveIndicatorSize() const;
- void drawExclusiveIndicator(QPainter *,int,int,int,int,
- const QColorGroup &,bool,bool = 0,bool = 1);
- void drawExclusiveIndicatorMask(QPainter *,int,int,int,int,bool);
- void drawComboButton(QPainter *,int,int,int,int,const QColorGroup &,
- bool = 0,bool = 0,bool = 1,const QBrush * = 0);
- QRect comboButtonRect(int,int,int,int);
- QRect comboButtonFocusRect(int,int,int,int);
+ TQSize exclusiveIndicatorSize() const;
+ void drawExclusiveIndicator(TQPainter *,int,int,int,int,
+ const TQColorGroup &,bool,bool = 0,bool = 1);
+ void drawExclusiveIndicatorMask(TQPainter *,int,int,int,int,bool);
+ void drawComboButton(TQPainter *,int,int,int,int,const TQColorGroup &,
+ bool = 0,bool = 0,bool = 1,const TQBrush * = 0);
+ TQRect comboButtonRect(int,int,int,int);
+ TQRect comboButtonFocusRect(int,int,int,int);
- void tabbarMetrics(const QTabBar *,int &,int &,int &);
+ void tabbarMetrics(const TQTabBar *,int &,int &,int &);
- void drawTab(QPainter *,const QTabBar *,QTab *,bool);
- void drawTabMask(QPainter *,const QTabBar *,QTab *,bool);
+ void drawTab(TQPainter *,const TQTabBar *,TQTab *,bool);
+ void drawTabMask(TQPainter *,const TQTabBar *,TQTab *,bool);
- void scrollBarMetrics(const QScrollBar *,int &,int &,int &,int &);
+ void scrollBarMetrics(const TQScrollBar *,int &,int &,int &,int &);
- void drawScrollBarControls(QPainter *,const QScrollBar *,int,uint,uint);
+ void drawScrollBarControls(TQPainter *,const TQScrollBar *,int,uint,uint);
int sliderLength() const;
- void drawSlider(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawSlider(TQPainter *,int,int,int,int,const TQColorGroup &,
Orientation,bool,bool);
- void drawSliderMask(QPainter *,int,int,int,int,Orientation,bool,bool);
- void drawSliderGroove(QPainter *,int,int,int,int,const QColorGroup &,
- QCOORD,Orientation);
+ void drawSliderMask(TQPainter *,int,int,int,int,Orientation,bool,bool);
+ void drawSliderGroove(TQPainter *,int,int,int,int,const TQColorGroup &,
+ TQCOORD,Orientation);
int maximumSliderDragDistance() const;
int splitterWidth() const;
- void drawSplitter(QPainter *,int,int,int,int,const QColorGroup &,
+ void drawSplitter(TQPainter *,int,int,int,int,const TQColorGroup &,
Orientation);
- void drawCheckMark(QPainter *,int,int,int,int,const QColorGroup &,bool,
+ void drawCheckMark(TQPainter *,int,int,int,int,const TQColorGroup &,bool,
bool);
- void polishPopupMenu(QPopupMenu *);
- int extraPopupMenuItemWidth(bool,int,QMenuItem *,const QFontMetrics &);
- int popupMenuItemHeight(bool,QMenuItem *,const QFontMetrics &);
- void drawPopupMenuItem(QPainter *,bool,int,int,QMenuItem *,
- const QPalette &,bool,bool,int,int,int,int);
+ void polishPopupMenu(TQPopupMenu *);
+ int extraPopupMenuItemWidth(bool,int,TQMenuItem *,const TQFontMetrics &);
+ int popupMenuItemHeight(bool,TQMenuItem *,const TQFontMetrics &);
+ void drawPopupMenuItem(TQPainter *,bool,int,int,TQMenuItem *,
+ const TQPalette &,bool,bool,int,int,int,int);
%End
-%If (Qt_3_0_0 -)
- virtual void polishPopupMenu(QPopupMenu *);
+%If (TQt_3_0_0 -)
+ virtual void polishPopupMenu(TQPopupMenu *);
- void drawPrimitive(PrimitiveElement,QPainter *,const QRect &,
- const QColorGroup &,SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const;
+ void drawPrimitive(PrimitiveElement,TQPainter *,const TQRect &,
+ const TQColorGroup &,SFlags = Style_Default,
+ const TQStyleOption & = TQStyleOption()) const;
- void drawControl(ControlElement,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ void drawControl(ControlElement,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- void drawComplexControl(ComplexControl,QPainter *,const QWidget *,
- const QRect &,const QColorGroup &,
+ void drawComplexControl(ComplexControl,TQPainter *,const TQWidget *,
+ const TQRect &,const TQColorGroup &,
SFlags = Style_Default,SCFlags = SC_All,
SCFlags = SC_None,
- const QStyleOption & = QStyleOption()) const;
+ const TQStyleOption & = TQStyleOption()) const;
- int pixelMetric(PixelMetric,const QWidget * = 0) const;
+ int pixelMetric(PixelMetric,const TQWidget * = 0) const;
- QSize sizeFromContents(ContentsType,const QWidget *,const QSize &,
- const QStyleOption & = QStyleOption()) const;
+ TQSize sizeFromContents(ContentsType,const TQWidget *,const TQSize &,
+ const TQStyleOption & = TQStyleOption()) const;
- int styleHint(StyleHint,const QWidget *,
- const QStyleOption & = QStyleOption(),
- QStyleHintReturn * = 0) const;
+ int styleHint(StyleHint,const TQWidget *,
+ const TQStyleOption & = TQStyleOption(),
+ TQStyleHintReturn * = 0) const;
- QPixmap stylePixmap(StylePixmap,const QWidget * = 0,
- const QStyleOption & = QStyleOption()) const;
+ TQPixmap stylePixmap(StylePixmap,const TQWidget * = 0,
+ const TQStyleOption & = TQStyleOption()) const;
%End
-%If (Qt_3_1_0 -)
- QRect subRect(SubRect,const QWidget *) const;
+%If (TQt_3_1_0 -)
+ TQRect subRect(SubRect,const TQWidget *) const;
%End
protected:
-%If (- Qt_3_0_0)
- void drawWinShades(QPainter *,int,int,int,int,const QColor &,
- const QColor &,const QColor &,const QColor &,
- const QBrush *);
+%If (- TQt_3_0_0)
+ void drawWinShades(TQPainter *,int,int,int,int,const TQColor &,
+ const TQColor &,const TQColor &,const TQColor &,
+ const TQBrush *);
%End
private:
-%If (Qt_3_0_0 -)
- QWindowsStyle(const QWindowsStyle &);
+%If (TQt_3_0_0 -)
+ TQWindowsStyle(const TQWindowsStyle &);
%End
};
diff --git a/sip/qt/qwindowsxpstyle.sip b/sip/qt/qwindowsxpstyle.sip
index 394bfad..121e03b 100644
--- a/sip/qt/qwindowsxpstyle.sip
+++ b/sip/qt/qwindowsxpstyle.sip
@@ -1,29 +1,29 @@
-// This is the SIP interface definition for QWindowsXPStyle.
+// This is the SIP interface definition for TQWindowsXPStyle.
//
// 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>QWindowsXPStyle (Qt v3.0.1+, Windows)</Title>
+<Sect2><Title>TQWindowsXPStyle (TQt v3.0.1+, Windows)</Title>
<Para>
-<Literal>QWindowsXPStyle</Literal> is fully implemented.
+<Literal>TQWindowsXPStyle</Literal> is fully implemented.
</Para>
</Sect2>
%End
diff --git a/sip/qt/qwizard.sip b/sip/qt/qwizard.sip
index c062f65..fd50b45 100644
--- a/sip/qt/qwizard.sip
+++ b/sip/qt/qwizard.sip
@@ -1,100 +1,100 @@
-// This is the SIP interface definition for QWizard.
+// This is the SIP interface definition for TQWizard.
//
// 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>QWizard (Qt v2+)</Title>
+<Sect2><Title>TQWizard (TQt v2+)</Title>
<Para>
-<Literal>QWizard</Literal> is fully implemented.
+<Literal>TQWizard</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_WIZARD)
-%If (Qt_2_00 -)
+%If (TQt_WIZARD)
+%If (TQt_2_00 -)
-class QWizard : QDialog
+class TQWizard : TQDialog
{
%TypeHeaderCode
#include <qwizard.h>
%End
public:
- QWizard(QWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
+ TQWizard(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,
WFlags = 0);
void show();
- void setFont(const QFont &);
+ void setFont(const TQFont &);
- // The QWidget is passed to QWidgetStack::addWidget().
- virtual void addPage(QWidget * /Transfer/, const QString &);
-%If (Qt_3_0_0 -)
- // The QWidget is passed to QWidgetStack::addWidget().
- virtual void insertPage(QWidget * /Transfer/, const QString &,int);
+ // The TQWidget is passed to TQWidgetStack::addWidget().
+ virtual void addPage(TQWidget * /Transfer/, const TQString &);
+%If (TQt_3_0_0 -)
+ // The TQWidget is passed to TQWidgetStack::addWidget().
+ virtual void insertPage(TQWidget * /Transfer/, const TQString &,int);
%End
- virtual void removePage(QWidget *);
+ virtual void removePage(TQWidget *);
- QString title(QWidget *) const;
-%If (Qt_2_2_0 -)
- void setTitle(QWidget *,const QString &);
+ TQString title(TQWidget *) const;
+%If (TQt_2_2_0 -)
+ void setTitle(TQWidget *,const TQString &);
%End
-%If (Qt_3_0_0 -)
- QFont titleFont() const;
- void setTitleFont(const QFont &);
+%If (TQt_3_0_0 -)
+ TQFont titleFont() const;
+ void setTitleFont(const TQFont &);
%End
- virtual void showPage(QWidget *);
+ virtual void showPage(TQWidget *);
- QWidget *currentPage() const;
+ TQWidget *currentPage() const;
-%If (Qt_2_1_0 -)
- QWidget *page(int) const;
+%If (TQt_2_1_0 -)
+ TQWidget *page(int) const;
int pageCount() const;
%End
-%If (Qt_3_0_0 -)
- int indexOf(QWidget *) const;
+%If (TQt_3_0_0 -)
+ int indexOf(TQWidget *) const;
%End
- virtual bool appropriate(QWidget *) const;
- virtual void setAppropriate(QWidget *,bool);
+ virtual bool appropriate(TQWidget *) const;
+ virtual void setAppropriate(TQWidget *,bool);
- QPushButton *backButton() const;
- QPushButton *nextButton() const;
- QPushButton *finishButton() const;
- QPushButton *cancelButton() const;
- QPushButton *helpButton() const;
+ TQPushButton *backButton() const;
+ TQPushButton *nextButton() const;
+ TQPushButton *finishButton() const;
+ TQPushButton *cancelButton() const;
+ TQPushButton *helpButton() const;
- bool eventFilter(QObject *,QEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
public slots:
- virtual void setBackEnabled(QWidget *,bool);
- virtual void setNextEnabled(QWidget *,bool);
- virtual void setFinishEnabled(QWidget *,bool);
+ virtual void setBackEnabled(TQWidget *,bool);
+ virtual void setNextEnabled(TQWidget *,bool);
+ virtual void setFinishEnabled(TQWidget *,bool);
- virtual void setHelpEnabled(QWidget *,bool);
+ virtual void setHelpEnabled(TQWidget *,bool);
-%If (- Qt_3_0_0)
- virtual void setFinish(QWidget *,bool);
+%If (- TQt_3_0_0)
+ virtual void setFinish(TQWidget *,bool);
%End
protected slots:
@@ -104,17 +104,17 @@ protected slots:
signals:
void helpClicked();
-%If (Qt_2_2_0 -)
- void selected(const QString &);
+%If (TQt_2_2_0 -)
+ void selected(const TQString &);
%End
protected:
- virtual void layOutButtonRow(QHBoxLayout *);
- virtual void layOutTitleRow(QHBoxLayout *,const QString &);
+ virtual void layOutButtonRow(TQHBoxLayout *);
+ virtual void layOutTitleRow(TQHBoxLayout *,const TQString &);
private:
-%If (Qt_2_1_0 -)
- QWizard(const QWizard &);
+%If (TQt_2_1_0 -)
+ TQWizard(const TQWizard &);
%End
};
diff --git a/sip/qt/qwmatrix.sip b/sip/qt/qwmatrix.sip
index 1bb8cdc..ee482de 100644
--- a/sip/qt/qwmatrix.sip
+++ b/sip/qt/qwmatrix.sip
@@ -1,38 +1,38 @@
-// This is the SIP interface definition for QWMatrix.
+// This is the SIP interface definition for TQWMatrix.
//
// 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>QWMatrix</Title>
+<Sect2><Title>TQWMatrix</Title>
<Para>
The Python <Literal>==</Literal>, <Literal>!=</Literal> and
<Literal>*=</Literal> operators are supported.
</Para>
<FuncSynopsis>
- <FuncDef>QWMatrix <Function>invert</Function> const</FuncDef>
+ <FuncDef>TQWMatrix <Function>invert</Function> const</FuncDef>
<ParamDef>bool *<Parameter>invertible</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
-This takes no parameters and returns a tuple of the <Literal>QWMatrix</Literal>
+This takes no parameters and returns a tuple of the <Literal>TQWMatrix</Literal>
result and the <Literal>invertible</Literal> value.
</Para>
@@ -59,7 +59,7 @@ values.
<Para>
This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
returns a tuple containing the <Literal>tx</Literal> and <Literal>ty</Literal>
-values. (Qt v1.x)
+values. (TQt v1.x)
</Para>
<FuncSynopsis>
@@ -72,67 +72,67 @@ values. (Qt v1.x)
<Para>
This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
returns a tuple containing the <Literal>tx</Literal> and <Literal>ty</Literal>
-values. (Qt v2+)
+values. (TQt v2+)
</Para>
</Sect2>
%End
-class QWMatrix
+class TQWMatrix
{
%TypeHeaderCode
#include <qwmatrix.h>
%End
public:
- QWMatrix();
-%If (- Qt_2_00)
- QWMatrix(float,float,float,float,float,float);
+ TQWMatrix();
+%If (- TQt_2_00)
+ TQWMatrix(float,float,float,float,float,float);
%End
-%If (Qt_2_00 -)
- QWMatrix(double,double,double,double,double,double);
+%If (TQt_2_00 -)
+ TQWMatrix(double,double,double,double,double,double);
%End
void map(int /Constrained/,int /Constrained/,int *,int *) const;
-%If (Qt_3_0_0 -)
- QRect mapRect(const QRect &) const;
+%If (TQt_3_0_0 -)
+ TQRect mapRect(const TQRect &) const;
%End
- QPoint map(const QPoint &) const;
- QRect map(const QRect &); const
- QPointArray map(const QPointArray &) const;
-%If (Qt_3_1_0 -)
- QRegion map(const QRegion &) const;
- QRegion mapToRegion(const QRect &) const;
- QPointArray mapToPolygon(const QRect &) const;
+ TQPoint map(const TQPoint &) const;
+ TQRect map(const TQRect &); const
+ TQPointArray map(const TQPointArray &) const;
+%If (TQt_3_1_0 -)
+ TQRegion map(const TQRegion &) const;
+ TQRegion mapToRegion(const TQRect &) const;
+ TQPointArray mapToPolygon(const TQRect &) const;
%End
void reset();
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isIdentity() const;
bool isInvertible() const;
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
double det() const;
%End
- QWMatrix invert(bool * = 0) const;
+ TQWMatrix invert(bool * = 0) const;
- bool operator==(const QWMatrix &) const;
- bool operator!=(const QWMatrix &) const;
- QWMatrix &operator*=(const QWMatrix &);
+ bool operator==(const TQWMatrix &) const;
+ bool operator!=(const TQWMatrix &) const;
+ TQWMatrix &operator*=(const TQWMatrix &);
-%If (Qt_3_0_0 -)
- // These aren't documented but are used in Qt examples.
- QPoint operator*(const QPoint &) const;
- QRegion operator*(const QRect &) const;
- QRegion operator*(const QRegion &) const;
- QPointArray operator*(const QPointArray &) const;
+%If (TQt_3_0_0 -)
+ // These aren't documented but are used in TQt examples.
+ TQPoint operator*(const TQPoint &) const;
+ TQRegion operator*(const TQRect &) const;
+ TQRegion operator*(const TQRegion &) const;
+ TQPointArray operator*(const TQPointArray &) const;
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum TransformationMode {
Points,
Areas
@@ -142,7 +142,7 @@ public:
static TransformationMode transformationMode();
%End
-%If (- Qt_2_00)
+%If (- TQt_2_00)
void setMatrix(float,float,float,float,float,float);
float m11();
float m12();
@@ -153,13 +153,13 @@ public:
void map(float,float,float *,float *) const;
- QWMatrix &translate(float,float);
- QWMatrix &scale(float,float);
- QWMatrix &shear(float,float);
- QWMatrix &rotate(float);
+ TQWMatrix &translate(float,float);
+ TQWMatrix &scale(float,float);
+ TQWMatrix &shear(float,float);
+ TQWMatrix &rotate(float);
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
void setMatrix(double,double,double,double,double,double);
double m11();
double m12();
@@ -170,9 +170,9 @@ public:
void map(double,double,double *,double *) const;
- QWMatrix &translate(double,double);
- QWMatrix &scale(double,double);
- QWMatrix &shear(double,double);
- QWMatrix &rotate(double);
+ TQWMatrix &translate(double,double);
+ TQWMatrix &scale(double,double);
+ TQWMatrix &shear(double,double);
+ TQWMatrix &rotate(double);
%End
};
diff --git a/sip/qt/qworkspace.sip b/sip/qt/qworkspace.sip
index bbc9dfc..8c7d993 100644
--- a/sip/qt/qworkspace.sip
+++ b/sip/qt/qworkspace.sip
@@ -1,79 +1,79 @@
-// This is the SIP interface definition for QWorkspace.
+// This is the SIP interface definition for TQWorkspace.
//
// 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>QWorkspace (Qt v2.1+)</Title>
+<Sect2><Title>TQWorkspace (TQt v2.1+)</Title>
<Para>
-<Literal>QWorkspace</Literal> is fully implemented.
+<Literal>TQWorkspace</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_1_0 -)
-%If (Qt_WORKSPACE)
+%If (TQt_2_1_0 -)
+%If (TQt_WORKSPACE)
-class QWorkspace : QWidget
+class TQWorkspace : TQWidget
{
%TypeHeaderCode
#include <qworkspace.h>
%End
public:
- QWorkspace(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQWorkspace(TQWidget * /TransferThis/ = 0,const char * = 0);
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
enum WindowOrder {
CreationOrder,
StackingOrder
};
%End
- QWidget *activeWindow() const;
- QWidgetList windowList() const;
-%If (Qt_3_2_0 -)
- QWidgetList windowList(WindowOrder) const;
+ TQWidget *activeWindow() const;
+ TQWidgetList windowList() const;
+%If (TQt_3_2_0 -)
+ TQWidgetList windowList(WindowOrder) const;
%End
-%If (- Qt_3_0_0)
- QSizePolicy sizePolicy() const;
+%If (- TQt_3_0_0)
+ TQSizePolicy sizePolicy() const;
%End
- QSize sizeHint() const;
+ TQSize sizeHint() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool scrollBarsEnabled() const;
void setScrollBarsEnabled(bool);
- void setPaletteBackgroundColor(const QColor &);
- void setPaletteBackgroundPixmap(const QPixmap &);
+ void setPaletteBackgroundColor(const TQColor &);
+ void setPaletteBackgroundPixmap(const TQPixmap &);
%End
signals:
- void windowActivated(QWidget *);
+ void windowActivated(TQWidget *);
public slots:
void cascade();
void tile();
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void closeActiveWindow();
void closeAllWindows();
void activateNextWindow();
@@ -81,20 +81,20 @@ public slots:
%End
protected:
-%If (Qt_3_0_0 -)
- void styleChange(QStyle &);
+%If (TQt_3_0_0 -)
+ void styleChange(TQStyle &);
%End
- void childEvent(QChildEvent *);
- void resizeEvent(QResizeEvent *);
- bool eventFilter(QObject *,QEvent *);
- void showEvent(QShowEvent *);
-%If (Qt_3_0_0 -)
- void hideEvent(QHideEvent *);
- void wheelEvent(QWheelEvent *);
+ void childEvent(TQChildEvent *);
+ void resizeEvent(TQResizeEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
+ void showEvent(TQShowEvent *);
+%If (TQt_3_0_0 -)
+ void hideEvent(TQHideEvent *);
+ void wheelEvent(TQWheelEvent *);
%End
private:
- QWorkspace(const QWorkspace &);
+ TQWorkspace(const TQWorkspace &);
};
%End
diff --git a/sip/qt/versions.sip b/sip/qt/versions.sip
index 09aed5c..0c7a589 100644
--- a/sip/qt/versions.sip
+++ b/sip/qt/versions.sip
@@ -1,33 +1,33 @@
-// This defines the different versions of Qt that PyQt knows about.
+// This defines the different versions of TQt that PyTQt knows about.
//
// 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.
// Specify the releases over time - not all of them, just those that introduce
// something new.
-%Timeline {Qt_1_43
- Qt_2_00 Qt_2_1_0 Qt_2_2_0 Qt_2_3_0 Qt_2_3_1
- Qt_3_0_0 Qt_3_0_1 Qt_3_0_2 Qt_3_0_4 Qt_3_0_5 Qt_3_0_6
- Qt_3_1_0 Qt_3_1_1 Qt_3_1_2
- Qt_3_2_0
- Qt_3_3_0 Qt_3_3_5 Qt_3_3_6}
+%Timeline {TQt_1_43
+ TQt_2_00 TQt_2_1_0 TQt_2_2_0 TQt_2_3_0 TQt_2_3_1
+ TQt_3_0_0 TQt_3_0_1 TQt_3_0_2 TQt_3_0_4 TQt_3_0_5 TQt_3_0_6
+ TQt_3_1_0 TQt_3_1_1 TQt_3_1_2
+ TQt_3_2_0
+ TQt_3_3_0 TQt_3_3_5 TQt_3_3_6}
// Specify the platforms.
@@ -35,58 +35,58 @@
// Specify the features.
-%Feature Qt_THREAD_SUPPORT
+%Feature TQt_THREAD_SUPPORT
-%Feature Qt_ACTION
-%Feature Qt_ASSISTANTCLIENT
-%Feature Qt_CLIPBOARD
-%Feature Qt_CODECS
-%Feature Qt_COLORDIALOG
-%Feature Qt_DATASTREAM
-%Feature Qt_DIAL
-%Feature Qt_DNS
-%Feature Qt_DOM
-%Feature Qt_DRAGANDDROP
-%Feature Qt_ICONVIEW
-%Feature Qt_IMAGE_TEXT
-%Feature Qt_INPUTDIALOG
-%Feature Qt_FILEDIALOG
-%Feature Qt_FONTDATABASE
-%Feature Qt_FONTDIALOG
-%Feature Qt_MESSAGEBOX
-%Feature Qt_MIMECLIPBOARD
-%Feature Qt_NETWORKPROTOCOL
-%Feature Qt_NETWORKPROTOCOL_FTP
-%Feature Qt_NETWORKPROTOCOL_HTTP
-%Feature Qt_PICTURE
-%Feature Qt_PRINTDIALOG
-%Feature Qt_PRINTER
-%Feature Qt_PROGRESSDIALOG
-%Feature Qt_PROPERTIES
-%Feature Qt_SEMIMODAL
-%Feature Qt_SIZEGRIP
-%Feature Qt_SOUND
-%Feature Qt_SPLITTER
-%Feature Qt_STYLE_CDE
-%Feature Qt_STYLE_INTERLACE
-%Feature Qt_STYLE_MOTIF
-%Feature Qt_STYLE_MOTIFPLUS
-%Feature Qt_STYLE_PLATINUM
-%Feature Qt_STYLE_SGI
-%Feature Qt_STYLE_WINDOWS
-%Feature Qt_STYLE_WINDOWSXP
-%Feature Qt_TABDIALOG
-%Feature Qt_TABLE
-%Feature Qt_TABLEVIEW
-%Feature Qt_TRANSFORMATIONS
-%Feature Qt_TRANSLATION
-%Feature Qt_WIZARD
-%Feature Qt_WORKSPACE
+%Feature TQt_ACTION
+%Feature TQt_ASSISTANTCLIENT
+%Feature TQt_CLIPBOARD
+%Feature TQt_CODECS
+%Feature TQt_COLORDIALOG
+%Feature TQt_DATASTREAM
+%Feature TQt_DIAL
+%Feature TQt_DNS
+%Feature TQt_DOM
+%Feature TQt_DRAGANDDROP
+%Feature TQt_ICONVIEW
+%Feature TQt_IMAGE_TEXT
+%Feature TQt_INPUTDIALOG
+%Feature TQt_FILEDIALOG
+%Feature TQt_FONTDATABASE
+%Feature TQt_FONTDIALOG
+%Feature TQt_MESSAGEBOX
+%Feature TQt_MIMECLIPBOARD
+%Feature TQt_NETWORKPROTOCOL
+%Feature TQt_NETWORKPROTOCOL_FTP
+%Feature TQt_NETWORKPROTOCOL_HTTP
+%Feature TQt_PICTURE
+%Feature TQt_PRINTDIALOG
+%Feature TQt_PRINTER
+%Feature TQt_PROGRESSDIALOG
+%Feature TQt_PROPERTIES
+%Feature TQt_SEMIMODAL
+%Feature TQt_SIZEGRIP
+%Feature TQt_SOUND
+%Feature TQt_SPLITTER
+%Feature TQt_STYLE_CDE
+%Feature TQt_STYLE_INTERLACE
+%Feature TQt_STYLE_MOTIF
+%Feature TQt_STYLE_MOTIFPLUS
+%Feature TQt_STYLE_PLATINUM
+%Feature TQt_STYLE_SGI
+%Feature TQt_STYLE_WINDOWS
+%Feature TQt_STYLE_WINDOWSXP
+%Feature TQt_TABDIALOG
+%Feature TQt_TABLE
+%Feature TQt_TABLEVIEW
+%Feature TQt_TRANSFORMATIONS
+%Feature TQt_TRANSLATION
+%Feature TQt_WIZARD
+%Feature TQt_WORKSPACE
// On Windows64 Q_LONG is defined as __int64 (which SIP doesn't handle) so
// this feature is disabled.
-%Feature Qt_Q_LONG_IS_long
+%Feature TQt_Q_LONG_IS_long
// SIP v4.7.3 and later support automatic generation of missing complementary
// comparison operators. This fixes a problem with v4.7.2.
-%Feature Qt_SIP_PRE_4_7_2
+%Feature TQt_SIP_PRE_4_7_2
diff --git a/sip/qtaxcontainer/copying.sip b/sip/qtaxcontainer/copying.sip
index 463904b..6da646e 100644
--- a/sip/qtaxcontainer/copying.sip
+++ b/sip/qtaxcontainer/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/qtaxcontainer/qaxbase.sip b/sip/qtaxcontainer/qaxbase.sip
index fde55e2..02400b4 100644
--- a/sip/qtaxcontainer/qaxbase.sip
+++ b/sip/qtaxcontainer/qaxbase.sip
@@ -1,29 +1,29 @@
-// This is the SIP interface definition for QAxBase.
+// This is the SIP interface definition for TQAxBase.
//
// 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>QAxBase (Windows, Qt v3+)</Title>
+<Sect2><Title>TQAxBase (Windows, TQt v3+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QAxObject</Function></FuncDef>
+ <FuncDef><Function>TQAxObject</Function></FuncDef>
<ParamDef>IUnknown *<Parameter>iface</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -32,7 +32,7 @@ Not implemented.
<FuncSynopsis>
<FuncDef>long <Function>queryInterface</Function></FuncDef>
- <ParamDef>const QUuid &amp;<Parameter>uuid</Parameter></ParamDef>
+ <ParamDef>const TQUuid &amp;<Parameter>uuid</Parameter></ParamDef>
<ParamDef>void **<Parameter>iface</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -57,16 +57,16 @@ Not implemented.
<FuncSynopsis>
<FuncDef>unsigned long <Function>registerWeakActiveObject</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>guid</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>guid</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-This is a utility method provided by PyQt to make it easier to use
+This is a utility method provided by PyTQt to make it easier to use
Mark Hammond's <Literal>win32com</Literal> module to manipulate objects
created by the <Literal>qtaxcontainer</Literal> module.
</Para>
<Para>
The <Literal>RegisterActiveObject()</Literal> COM function is called to
-register the <Literal>QAxBase</Literal> instance as a weak object with the
+register the <Literal>TQAxBase</Literal> instance as a weak object with the
<Literal>guid</Literal> GUID. The revoke handle is returned.
</Para>
diff --git a/sip/qtaxcontainer/qaxobject.sip b/sip/qtaxcontainer/qaxobject.sip
index 0c0b0f8..01521c2 100644
--- a/sip/qtaxcontainer/qaxobject.sip
+++ b/sip/qtaxcontainer/qaxobject.sip
@@ -1,31 +1,31 @@
-// This is the SIP interface definition for QAxObject.
+// This is the SIP interface definition for TQAxObject.
//
// 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>QAxObject (Windows, Qt v3+)</Title>
+<Sect2><Title>TQAxObject (Windows, TQt v3+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QAxObject</Function></FuncDef>
+ <FuncDef><Function>TQAxObject</Function></FuncDef>
<ParamDef>IUnknown *<Parameter>iface</Parameter></ParamDef>
- <ParamDef>QObject *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQObject *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
diff --git a/sip/qtaxcontainer/qaxwidget.sip b/sip/qtaxcontainer/qaxwidget.sip
index dbcc729..3751088 100644
--- a/sip/qtaxcontainer/qaxwidget.sip
+++ b/sip/qtaxcontainer/qaxwidget.sip
@@ -1,31 +1,31 @@
-// This is the SIP interface definition for QAxWidget.
+// This is the SIP interface definition for TQAxWidget.
//
// 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>QAxWidget (Windows, Qt v3+)</Title>
+<Sect2><Title>TQAxWidget (Windows, TQt v3+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QAxWidget</Function></FuncDef>
+ <FuncDef><Function>TQAxWidget</Function></FuncDef>
<ParamDef>IUnknown *<Parameter>iface</Parameter></ParamDef>
- <ParamDef>QWidget *<Parameter>parent</Parameter> = 0</ParamDef>
+ <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
diff --git a/sip/qtaxcontainer/qtaxcontainermod.sip b/sip/qtaxcontainer/qtaxcontainermod.sip
index 33864f1..59e341c 100644
--- a/sip/qtaxcontainer/qtaxcontainermod.sip
+++ b/sip/qtaxcontainer/qtaxcontainermod.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for the qtaxcontainer module of PyQt.
+// This is the SIP interface definition for the qtaxcontainer 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.
diff --git a/sip/qtcanvas/copying.sip b/sip/qtcanvas/copying.sip
index 463904b..6da646e 100644
--- a/sip/qtcanvas/copying.sip
+++ b/sip/qtcanvas/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/qtcanvas/qcanvas.sip b/sip/qtcanvas/qcanvas.sip
index f9ce8e2..58b6e72 100644
--- a/sip/qtcanvas/qcanvas.sip
+++ b/sip/qtcanvas/qcanvas.sip
@@ -1,144 +1,144 @@
-// This is the SIP interface definition for QCanvas, QCanvasEllipse,
-// QCanvasItem, QCanvasItemList, QCanvasLine, QCanvasPixmap,
-// QCanvasPixmapArray, QCanvasPolygon, QCanvasPolygonalItem, QCanvasRectangle,
-// QCanvasSpline, QCanvasSprite, QCanvasText and QCanvasView.
+// This is the SIP interface definition for TQCanvas, TQCanvasEllipse,
+// TQCanvasItem, TQCanvasItemList, TQCanvasLine, TQCanvasPixmap,
+// TQCanvasPixmapArray, TQCanvasPolygon, TQCanvasPolygonalItem, TQCanvasRectangle,
+// TQCanvasSpline, TQCanvasSprite, TQCanvasText and TQCanvasView.
//
// 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>QCanvas (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvas (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvas</Literal> is fully implemented.
+<Literal>TQCanvas</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasEllipse (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasEllipse (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasEllipse</Literal> is fully implemented.
+<Literal>TQCanvasEllipse</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasItem (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasItem (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasItem</Literal> is fully implemented.
+<Literal>TQCanvasItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasItemList (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasItemList (TQt v2.2+)</Title>
<Para>
-This class isn't implemented. Whenever a <Literal>QCanvasItemList</Literal> is
+This class isn't implemented. Whenever a <Literal>TQCanvasItemList</Literal> is
the return type of a function or the type of an argument, a Python list of
-<Literal>QCanvasItem</Literal> instances is used instead.
+<Literal>TQCanvasItem</Literal> instances is used instead.
</Para>
</Sect2>
-<Sect2><Title>QCanvasLine (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasLine (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasLine</Literal> is fully implemented.
+<Literal>TQCanvasLine</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasPixmap (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasPixmap (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasPixmap</Literal> is fully implemented.
+<Literal>TQCanvasPixmap</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasPixmapArray (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasPixmapArray (TQt v2.2+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QPixmapArray</Function></FuncDef>
- <ParamDef>QList&lt;QPixmap&gt; <Parameter>pixmaps</Parameter></ParamDef>
- <ParamDef>QList&lt;QPoint&gt; <Parameter>hotspots</Parameter></ParamDef>
+ <FuncDef><Function>TQPixmapArray</Function></FuncDef>
+ <ParamDef>TQList&lt;TQPixmap&gt; <Parameter>pixmaps</Parameter></ParamDef>
+ <ParamDef>TQList&lt;TQPoint&gt; <Parameter>hotspots</Parameter></ParamDef>
</FuncSynopsis>
<Para>
-The <Literal>pixmaps</Literal> argument is a Python list of QPixmap instances,
-and the <Literal>hotspots</Literal> argument is a Python list of QPoint
-instances. (Qt v2.2.0 - Qt v2.3.1)
+The <Literal>pixmaps</Literal> argument is a Python list of TQPixmap instances,
+and the <Literal>hotspots</Literal> argument is a Python list of TQPoint
+instances. (TQt v2.2.0 - TQt v2.3.1)
</Para>
<FuncSynopsis>
- <FuncDef><Function>QPixmapArray</Function></FuncDef>
- <ParamDef>QValueList&lt;QPixmap&gt; <Parameter>pixmaps</Parameter></ParamDef>
- <ParamDef>QPointArray <Parameter>hotspots</Parameter> = QPointArray()</ParamDef>
+ <FuncDef><Function>TQPixmapArray</Function></FuncDef>
+ <ParamDef>TQValueList&lt;TQPixmap&gt; <Parameter>pixmaps</Parameter></ParamDef>
+ <ParamDef>TQPointArray <Parameter>hotspots</Parameter> = TQPointArray()</ParamDef>
</FuncSynopsis>
<Para>
-The <Literal>pixmaps</Literal> argument is a Python list of QPixmap instances.
-(Qt v3+)
+The <Literal>pixmaps</Literal> argument is a Python list of TQPixmap instances.
+(TQt v3+)
</Para>
</Sect2>
-<Sect2><Title>QCanvasPolygon (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasPolygon (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasPolygon</Literal> is fully implemented.
+<Literal>TQCanvasPolygon</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasPolygonalItem (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasPolygonalItem (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasPolygonalItem</Literal> is fully implemented.
+<Literal>TQCanvasPolygonalItem</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasRectangle (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasRectangle (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasRectangle</Literal> is fully implemented.
+<Literal>TQCanvasRectangle</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasSpline (Qt v3.0+)</Title>
+<Sect2><Title>TQCanvasSpline (TQt v3.0+)</Title>
<Para>
-<Literal>QCanvasSpline</Literal> is fully implemented.
+<Literal>TQCanvasSpline</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasSprite (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasSprite (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasSprite</Literal> is fully implemented.
+<Literal>TQCanvasSprite</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasText (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasText (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasText</Literal> is fully implemented.
+<Literal>TQCanvasText</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QCanvasView (Qt v2.2+)</Title>
+<Sect2><Title>TQCanvasView (TQt v2.2+)</Title>
<Para>
-<Literal>QCanvasView</Literal> is fully implemented.
+<Literal>TQCanvasView</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
-%MappedType QCanvasItemList
+%MappedType TQCanvasItemList
{
%TypeHeaderCode
#include <qcanvas.h>
%End
%ConvertFromTypeCode
- // Convert to a Python list of QCanvasItem instances.
+ // Convert to a Python list of TQCanvasItem instances.
int i;
PyObject *l;
@@ -152,7 +152,7 @@ The <Literal>pixmaps</Literal> argument is a Python list of QPixmap instances.
i = 0;
- for (QCanvasItemList::Iterator it = sipCpp -> begin(); it != sipCpp -> end(); ++it)
+ for (TQCanvasItemList::Iterator it = sipCpp -> begin(); it != sipCpp -> end(); ++it)
{
PyObject *ci;
@@ -177,7 +177,7 @@ The <Literal>pixmaps</Literal> argument is a Python list of QPixmap instances.
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- PyErr_Format(PyExc_TypeError,"Converting to QCanvasItemList not yet implemented");
+ PyErr_Format(PyExc_TypeError,"Converting to TQCanvasItemList not yet implemented");
*sipIsErr = 1;
@@ -186,19 +186,19 @@ The <Literal>pixmaps</Literal> argument is a Python list of QPixmap instances.
};
-class QCanvasItem : Qt
+class TQCanvasItem : TQt
{
%TypeHeaderCode
#include <qcanvas.h>
%End
public:
- QCanvasItem(QCanvas * /TransferThis/);
+ TQCanvasItem(TQCanvas * /TransferThis/);
%ConvertToSubClassCode
Py_BEGIN_ALLOW_THREADS
- // Use the numeric type values for compatibility with Qt v2.
+ // Use the numeric type values for compatibility with TQt v2.
switch (sipCpp -> rtti())
{
case 1:
@@ -261,11 +261,11 @@ public:
double yVelocity() const;
virtual void advance(int);
- virtual bool collidesWith(const QCanvasItem *) const = 0;
+ virtual bool collidesWith(const TQCanvasItem *) const = 0;
- QCanvasItemList collisions(bool) const;
+ TQCanvasItemList collisions(bool) const;
- virtual void setCanvas(QCanvas * /GetWrapper/);
+ virtual void setCanvas(TQCanvas * /GetWrapper/);
%MethodCode
if (sipCpp -> canvas() != a0)
{
@@ -276,45 +276,45 @@ public:
}
Py_BEGIN_ALLOW_THREADS
- sipSelfWasArg ? sipCpp->QCanvasItem::setCanvas(a0) : sipCpp->setCanvas(a0);
+ sipSelfWasArg ? sipCpp->TQCanvasItem::setCanvas(a0) : sipCpp->setCanvas(a0);
Py_END_ALLOW_THREADS
%End
- virtual void draw(QPainter &) = 0;
+ virtual void draw(TQPainter &) = 0;
void show();
void hide();
virtual void setVisible(bool);
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
bool visible() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isVisible() const;
%End
virtual void setSelected(bool);
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
bool selected() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isSelected() const;
%End
virtual void setEnabled(bool);
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
bool enabled() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isEnabled() const;
%End
virtual void setActive(bool);
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
bool active() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isActive() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum RttiValues {
Rtti_Item,
Rtti_Sprite,
@@ -330,35 +330,35 @@ public:
virtual int rtti() const;
- virtual QRect boundingRect() const = 0;
- virtual QRect boundingRectAdvanced() const;
+ virtual TQRect boundingRect() const = 0;
+ virtual TQRect boundingRectAdvanced() const;
- QCanvas *canvas() const;
+ TQCanvas *canvas() const;
protected:
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
void update();
%End
private:
- virtual bool collidesWith(const QCanvasSprite *,
- const QCanvasPolygonalItem *,
- const QCanvasRectangle *,
- const QCanvasEllipse *,
- const QCanvasText *) const = 0;
+ virtual bool collidesWith(const TQCanvasSprite *,
+ const TQCanvasPolygonalItem *,
+ const TQCanvasRectangle *,
+ const TQCanvasEllipse *,
+ const TQCanvasText *) const = 0;
};
-class QCanvas : QObject
+class TQCanvas : TQObject
{
%TypeHeaderCode
#include <qcanvas.h>
%End
public:
- QCanvas(QObject * /TransferThis/ = 0,const char * = 0);
- QCanvas(int,int);
- QCanvas(QPixmap,int,int,int,int);
+ TQCanvas(TQObject * /TransferThis/ = 0,const char * = 0);
+ TQCanvas(int,int);
+ TQCanvas(TQPixmap,int,int,int,int);
%ConvertToSubClassCode
static struct class_graph {
@@ -389,12 +389,12 @@ public:
while (i >= 0);
%End
- virtual void setTiles(QPixmap,int,int,int,int);
- virtual void setBackgroundPixmap(const QPixmap &);
- QPixmap backgroundPixmap() const;
+ virtual void setTiles(TQPixmap,int,int,int,int);
+ virtual void setBackgroundPixmap(const TQPixmap &);
+ TQPixmap backgroundPixmap() const;
- virtual void setBackgroundColor(const QColor &);
- QColor backgroundColor() const;
+ virtual void setBackgroundColor(const TQColor &);
+ TQColor backgroundColor() const;
virtual void setTile(int,int,int);
int tile(int,int) const;
@@ -408,37 +408,37 @@ public:
virtual void resize(int,int);
int width() const;
int height() const;
- QSize size() const;
-%If (Qt_3_0_0 -)
- QRect rect() const;
+ TQSize size() const;
+%If (TQt_3_0_0 -)
+ TQRect rect() const;
%End
bool onCanvas(int,int) const;
- bool onCanvas(const QPoint &) const;
+ bool onCanvas(const TQPoint &) const;
bool validChunk(int,int) const;
- bool validChunk(const QPoint &) const;
+ bool validChunk(const TQPoint &) const;
int chunkSize() const;
virtual void retune(int,int = 100);
- // These next three are marked as internal in the Qt v2.x
+ // These next three are marked as internal in the TQt v2.x
// documentation.
// bool sameChunk() const;
// virtual void setChangedChunk(int,int);
// virtual void setChangedChunkContaining(int,int);
virtual void setAllChanged();
- virtual void setChanged(const QRect &);
-%If (Qt_3_0_0 -)
- virtual void setUnchanged(const QRect &);
+ virtual void setChanged(const TQRect &);
+%If (TQt_3_0_0 -)
+ virtual void setUnchanged(const TQRect &);
%End
- QCanvasItemList allItems();
- QCanvasItemList collisions(const QPoint &) const;
- QCanvasItemList collisions(const QRect &) const;
- QCanvasItemList collisions(const QPointArray &,const QCanvasItem *,
+ TQCanvasItemList allItems();
+ TQCanvasItemList collisions(const TQPoint &) const;
+ TQCanvasItemList collisions(const TQRect &) const;
+ TQCanvasItemList collisions(const TQPointArray &,const TQCanvasItem *,
bool) const;
-%If (Qt_3_0_0 -)
- void drawArea(const QRect &,QPainter *,bool = 0);
+%If (TQt_3_0_0 -)
+ void drawArea(const TQRect &,TQPainter *,bool = 0);
%End
virtual void setAdvancePeriod(int);
@@ -454,67 +454,67 @@ public slots:
virtual void update();
protected:
- virtual void drawBackground(QPainter &,const QRect &);
- virtual void drawForeground(QPainter &,const QRect &);
+ virtual void drawBackground(TQPainter &,const TQRect &);
+ virtual void drawForeground(TQPainter &,const TQRect &);
private:
-%If (Qt_3_1_0 -)
- QCanvas(const QCanvas &);
+%If (TQt_3_1_0 -)
+ TQCanvas(const TQCanvas &);
%End
};
-class QCanvasView : QScrollView
+class TQCanvasView : TQScrollView
{
%TypeHeaderCode
#include <qcanvas.h>
%End
public:
-%If (- Qt_3_0_0)
- QCanvasView(QCanvas * = 0,QWidget * /TransferThis/ = 0,
+%If (- TQt_3_0_0)
+ TQCanvasView(TQCanvas * = 0,TQWidget * /TransferThis/ = 0,
const char * = 0,WFlags = 0);
%End
-%If (Qt_3_0_0 -)
- QCanvasView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
- QCanvasView(QCanvas *,QWidget * /TransferThis/ = 0,const char * = 0,
+%If (TQt_3_0_0 -)
+ TQCanvasView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
+ TQCanvasView(TQCanvas *,TQWidget * /TransferThis/ = 0,const char * = 0,
WFlags = 0);
%End
- QCanvas* canvas() const;
- void setCanvas(QCanvas *);
+ TQCanvas* canvas() const;
+ void setCanvas(TQCanvas *);
-%If (Qt_3_0_0 -)
- const QWMatrix &worldMatrix() const;
- const QWMatrix &inverseWorldMatrix() const;
- bool setWorldMatrix(const QWMatrix &);
+%If (TQt_3_0_0 -)
+ const TQWMatrix &worldMatrix() const;
+ const TQWMatrix &inverseWorldMatrix() const;
+ bool setWorldMatrix(const TQWMatrix &);
%End
protected:
- void drawContents(QPainter *,int,int,int,int);
- QSize sizeHint() const;
+ void drawContents(TQPainter *,int,int,int,int);
+ TQSize sizeHint() const;
private:
-%If (Qt_3_1_0 -)
- QCanvasView(const QCanvasView &);
+%If (TQt_3_1_0 -)
+ TQCanvasView(const TQCanvasView &);
%End
};
-class QCanvasPixmap : QPixmap
+class TQCanvasPixmap : TQPixmap
{
%TypeHeaderCode
#include <qcanvas.h>
%End
public:
- QCanvasPixmap(const QString &);
- QCanvasPixmap(const QImage &);
-%If (- Qt_3_0_0)
- QCanvasPixmap(const QPixmap &,QPoint);
+ TQCanvasPixmap(const TQString &);
+ TQCanvasPixmap(const TQImage &);
+%If (- TQt_3_0_0)
+ TQCanvasPixmap(const TQPixmap &,TQPoint);
%End
-%If (Qt_3_0_0 -)
- QCanvasPixmap(const QPixmap &,const QPoint &);
+%If (TQt_3_0_0 -)
+ TQCanvasPixmap(const TQPixmap &,const TQPoint &);
%End
int offsetX() const;
@@ -522,62 +522,62 @@ public:
void setOffset(int,int);
private:
-%If (Qt_3_1_0 -)
- QCanvasPixmap(const QCanvasPixmap &);
+%If (TQt_3_1_0 -)
+ TQCanvasPixmap(const TQCanvasPixmap &);
%End
};
-class QCanvasPixmapArray
+class TQCanvasPixmapArray
{
%TypeHeaderCode
#include <qcanvas.h>
%End
public:
- QCanvasPixmapArray();
- QCanvasPixmapArray(const QString &,int = 0);
-%If (- Qt_3_0_0)
- QCanvasPixmapArray(QPtrList<QPixmap>,QPtrList<QPoint>);
+ TQCanvasPixmapArray();
+ TQCanvasPixmapArray(const TQString &,int = 0);
+%If (- TQt_3_0_0)
+ TQCanvasPixmapArray(TQPtrList<TQPixmap>,TQPtrList<TQPoint>);
%End
-%If (Qt_3_0_0 -)
- QCanvasPixmapArray(QValueList<QPixmap>,QPointArray = QPointArray());
+%If (TQt_3_0_0 -)
+ TQCanvasPixmapArray(TQValueList<TQPixmap>,TQPointArray = TQPointArray());
%End
- bool readPixmaps(const QString &,int = 0) /ReleaseGIL/;
- bool readCollisionMasks(const QString &) /ReleaseGIL/;
+ bool readPixmaps(const TQString &,int = 0) /ReleaseGIL/;
+ bool readCollisionMasks(const TQString &) /ReleaseGIL/;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
bool isValid() const;
%End
- QCanvasPixmap *image(int) const;
- void setImage(int,QCanvasPixmap * /Transfer/);
+ TQCanvasPixmap *image(int) const;
+ void setImage(int,TQCanvasPixmap * /Transfer/);
uint count() const;
private:
-%If (Qt_3_1_0 -)
- QCanvasPixmapArray(const QCanvasPixmapArray &);
+%If (TQt_3_1_0 -)
+ TQCanvasPixmapArray(const TQCanvasPixmapArray &);
%End
};
-class QCanvasSprite : QCanvasItem
+class TQCanvasSprite : TQCanvasItem
{
%TypeHeaderCode
#include <qcanvas.h>
%End
public:
- QCanvasSprite(QCanvasPixmapArray *,QCanvas * /TransferThis/);
+ TQCanvasSprite(TQCanvasPixmapArray *,TQCanvas * /TransferThis/);
- void setSequence(QCanvasPixmapArray *);
+ void setSequence(TQCanvasPixmapArray *);
void move(double,double);
virtual void move(double,double,int);
void setFrame(int);
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
enum FrameAnimationType {
Cycle,
Oscillate
@@ -589,18 +589,18 @@ public:
int frame() const;
int frameCount() const;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual int rtti() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int rtti() const;
%End
- bool collidesWith(const QCanvasItem *) const;
+ bool collidesWith(const TQCanvasItem *) const;
- QRect boundingRect() const;
+ TQRect boundingRect() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int width() const;
int height() const;
@@ -613,19 +613,19 @@ public:
int topEdge(int) const;
int rightEdge(int) const;
int bottomEdge(int) const;
- QCanvasPixmap *image() const;
- virtual QCanvasPixmap *imageAdvanced() const;
- QCanvasPixmap *image(int) const;
+ TQCanvasPixmap *image() const;
+ virtual TQCanvasPixmap *imageAdvanced() const;
+ TQCanvasPixmap *image(int) const;
// This is really virtual, but we want to use the super-class's virtual
// handler. Having to do this is really a SIP bug.
void advance(int);
- void draw(QPainter &);
+ void draw(TQPainter &);
%End
protected:
-%If (- Qt_3_0_0)
- void draw(QPainter &);
+%If (- TQt_3_0_0)
+ void draw(TQPainter &);
int width() const;
int height() const;
int absX() const;
@@ -636,118 +636,118 @@ protected:
int absY(int) const;
int absX2(int) const;
int absY2(int) const;
- QCanvasPixmap *image() const;
- virtual QCanvasPixmap *imageAdvanced() const;
- QCanvasPixmap *image(int) const;
+ TQCanvasPixmap *image() const;
+ virtual TQCanvasPixmap *imageAdvanced() const;
+ TQCanvasPixmap *image(int) const;
%End
private:
-%If (Qt_3_1_0 -)
- QCanvasSprite(const QCanvasSprite &);
+%If (TQt_3_1_0 -)
+ TQCanvasSprite(const TQCanvasSprite &);
%End
};
-class QCanvasPolygonalItem : QCanvasItem
+class TQCanvasPolygonalItem : TQCanvasItem
{
%TypeHeaderCode
#include <qcanvas.h>
%End
public:
- QCanvasPolygonalItem(QCanvas * /TransferThis/);
+ TQCanvasPolygonalItem(TQCanvas * /TransferThis/);
- bool collidesWith(const QCanvasItem *) const;
+ bool collidesWith(const TQCanvasItem *) const;
- virtual void setPen(QPen);
- virtual void setBrush(QBrush);
+ virtual void setPen(TQPen);
+ virtual void setBrush(TQBrush);
- QPen pen() const;
- QBrush brush() const;
+ TQPen pen() const;
+ TQBrush brush() const;
- virtual QPointArray areaPoints() const = 0;
- virtual QPointArray areaPointsAdvanced() const;
- QRect boundingRect() const;
+ virtual TQPointArray areaPoints() const = 0;
+ virtual TQPointArray areaPointsAdvanced() const;
+ TQRect boundingRect() const;
int rtti() const;
protected:
- void draw(QPainter &);
- virtual void drawShape(QPainter &) = 0;
+ void draw(TQPainter &);
+ virtual void drawShape(TQPainter &) = 0;
bool winding() const;
void setWinding(bool);
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void invalidate();
bool isValid() const;
%End
};
-class QCanvasRectangle : QCanvasPolygonalItem
+class TQCanvasRectangle : TQCanvasPolygonalItem
{
%TypeHeaderCode
#include <qcanvas.h>
%End
public:
- QCanvasRectangle(QCanvas * /TransferThis/);
- QCanvasRectangle(const QRect &,QCanvas * /TransferThis/);
- QCanvasRectangle(int,int,int,int,QCanvas * /TransferThis/);
+ TQCanvasRectangle(TQCanvas * /TransferThis/);
+ TQCanvasRectangle(const TQRect &,TQCanvas * /TransferThis/);
+ TQCanvasRectangle(int,int,int,int,TQCanvas * /TransferThis/);
int width() const;
int height() const;
void setSize(int,int);
- QSize size() const;
- QPointArray areaPoints() const;
- QRect rect() const;
+ TQSize size() const;
+ TQPointArray areaPoints() const;
+ TQRect rect() const;
- bool collidesWith(const QCanvasItem *) const;
+ bool collidesWith(const TQCanvasItem *) const;
int rtti() const;
protected:
- void drawShape(QPainter &);
- QPointArray chunks() const;
+ void drawShape(TQPainter &);
+ TQPointArray chunks() const;
};
-class QCanvasPolygon : QCanvasPolygonalItem
+class TQCanvasPolygon : TQCanvasPolygonalItem
{
%TypeHeaderCode
#include <qcanvas.h>
%End
public:
- QCanvasPolygon(QCanvas * /TransferThis/);
+ TQCanvasPolygon(TQCanvas * /TransferThis/);
- void setPoints(QPointArray);
- QPointArray points() const;
+ void setPoints(TQPointArray);
+ TQPointArray points() const;
void moveBy(double,double);
- QPointArray areaPoints() const;
+ TQPointArray areaPoints() const;
int rtti() const;
protected:
- void drawShape(QPainter &);
+ void drawShape(TQPainter &);
};
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QCanvasSpline : QCanvasPolygon
+class TQCanvasSpline : TQCanvasPolygon
{
%TypeHeaderCode
#include <qcanvas.h>
%End
public:
- QCanvasSpline(QCanvas * /TransferThis/);
+ TQCanvasSpline(TQCanvas * /TransferThis/);
- void setControlPoints(QPointArray,bool = 1);
- QPointArray controlPoints() const;
+ void setControlPoints(TQPointArray,bool = 1);
+ TQPointArray controlPoints() const;
bool closed() const;
int rtti() const;
@@ -756,43 +756,43 @@ public:
%End
-class QCanvasLine : QCanvasPolygonalItem
+class TQCanvasLine : TQCanvasPolygonalItem
{
%TypeHeaderCode
#include <qcanvas.h>
%End
public:
- QCanvasLine(QCanvas * /TransferThis/);
+ TQCanvasLine(TQCanvas * /TransferThis/);
void setPoints(int,int,int,int);
- QPoint startPoint() const;
- QPoint endPoint() const;
+ TQPoint startPoint() const;
+ TQPoint endPoint() const;
int rtti() const;
- void setPen(QPen);
-%If (Qt_3_3_0 -)
+ void setPen(TQPen);
+%If (TQt_3_3_0 -)
void moveBy(double,double);
%End
protected:
- void drawShape(QPainter &);
- QPointArray areaPoints() const;
+ void drawShape(TQPainter &);
+ TQPointArray areaPoints() const;
};
-class QCanvasEllipse : QCanvasPolygonalItem
+class TQCanvasEllipse : TQCanvasPolygonalItem
{
%TypeHeaderCode
#include <qcanvas.h>
%End
public:
- QCanvasEllipse(QCanvas * /TransferThis/);
- QCanvasEllipse(int,int,QCanvas * /TransferThis/);
- QCanvasEllipse(int,int,int,int,QCanvas * /TransferThis/);
+ TQCanvasEllipse(TQCanvas * /TransferThis/);
+ TQCanvasEllipse(int,int,TQCanvas * /TransferThis/);
+ TQCanvasEllipse(int,int,int,int,TQCanvas * /TransferThis/);
int width() const;
int height() const;
@@ -800,57 +800,57 @@ public:
void setAngles(int,int);
int angleStart() const;
int angleLength() const;
- QPointArray areaPoints() const;
+ TQPointArray areaPoints() const;
- bool collidesWith(const QCanvasItem *) const;
+ bool collidesWith(const TQCanvasItem *) const;
int rtti() const;
protected:
- void drawShape(QPainter &);
+ void drawShape(TQPainter &);
};
-class QCanvasText : QCanvasItem
+class TQCanvasText : TQCanvasItem
{
%TypeHeaderCode
#include <qcanvas.h>
%End
public:
- QCanvasText(QCanvas * /TransferThis/);
- QCanvasText(const QString &,QCanvas * /TransferThis/);
- QCanvasText(const QString &,QFont,QCanvas * /TransferThis/);
+ TQCanvasText(TQCanvas * /TransferThis/);
+ TQCanvasText(const TQString &,TQCanvas * /TransferThis/);
+ TQCanvasText(const TQString &,TQFont,TQCanvas * /TransferThis/);
- void setText(const QString &);
- void setFont(const QFont &);
- void setColor(const QColor &);
- QString text() const;
- QFont font() const;
- QColor color() const;
+ void setText(const TQString &);
+ void setFont(const TQFont &);
+ void setColor(const TQColor &);
+ TQString text() const;
+ TQFont font() const;
+ TQColor color() const;
void moveBy(double,double);
int textFlags() const;
void setTextFlags(int);
- QRect boundingRect() const;
+ TQRect boundingRect() const;
- bool collidesWith(const QCanvasItem *) const;
+ bool collidesWith(const TQCanvasItem *) const;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual int rtti() const;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int rtti() const;
%End
protected:
- virtual void draw(QPainter &);
+ virtual void draw(TQPainter &);
private:
-%If (Qt_3_1_0 -)
- QCanvasText(const QCanvasText &);
+%If (TQt_3_1_0 -)
+ TQCanvasText(const TQCanvasText &);
%End
};
diff --git a/sip/qtcanvas/qtcanvasmod.sip b/sip/qtcanvas/qtcanvasmod.sip
index 1ef22ae..d3c936f 100644
--- a/sip/qtcanvas/qtcanvasmod.sip
+++ b/sip/qtcanvas/qtcanvasmod.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for the qtcanvas module of PyQt.
+// This is the SIP interface definition for the qtcanvas 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.
@@ -38,20 +38,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.
diff --git a/sip/qtext/copying.sip b/sip/qtext/copying.sip
index 463904b..6da646e 100644
--- a/sip/qtext/copying.sip
+++ b/sip/qtext/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/qtext/qextscintilla.sip b/sip/qtext/qextscintilla.sip
index c03dc56..e7609b9 100644
--- a/sip/qtext/qextscintilla.sip
+++ b/sip/qtext/qextscintilla.sip
@@ -3,20 +3,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.
@@ -40,7 +40,7 @@ public:
enum AutoCompletionSource {
AcsDocument,
AcsAPIs,
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
AcsAll,
%End
};
@@ -51,7 +51,7 @@ public:
SloppyBraceMatch
};
-%If (QScintilla_1_4 -)
+%If (TQScintilla_1_4 -)
enum EdgeMode {
EdgeNone,
EdgeLine,
@@ -111,12 +111,12 @@ public:
enum WrapMode {
WrapNone,
WrapWord,
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
WrapCharacter,
%End
};
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
enum WrapVisualFlag {
WrapFlagNone,
WrapFlagByText,
@@ -124,11 +124,11 @@ public:
};
%End
- QextScintilla(QWidget * /TransferThis/ = 0,const char * = 0,
+ QextScintilla(TQWidget * /TransferThis/ = 0,const char * = 0,
WFlags = 0);
bool autoCompletionCaseSensitivity();
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
bool autoCompletionFillupsEnabled();
%End
bool autoCompletionReplaceWord();
@@ -140,18 +140,18 @@ public:
void beginUndoAction();
BraceMatch braceMatching() const;
int callTipsVisible() const;
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
void cancelList();
%End
void clearRegisteredImages();
void convertEols(EolMode);
-%If (QScintilla_1_3 -)
+%If (TQScintilla_1_3 -)
QextScintillaDocument document();
%End
void endUndoAction();
-%If (QScintilla_1_4 -)
- QColor edgeColor();
+%If (TQScintilla_1_4 -)
+ TQColor edgeColor();
int edgeColumn();
EdgeMode edgeMode();
%End
@@ -159,22 +159,22 @@ public:
EolMode eolMode();
bool eolVisibility();
-%If (QScintilla_1_7 -)
- QColor color() const;
- QColor paper() const;
+%If (TQScintilla_1_7 -)
+ TQColor color() const;
+ TQColor paper() const;
%End
-%If (QScintilla_1_6 -)
- virtual bool findFirst(const QString &,bool,bool,bool,bool,bool = 1,
+%If (TQScintilla_1_6 -)
+ virtual bool findFirst(const TQString &,bool,bool,bool,bool,bool = 1,
int = -1,int = -1,bool = 1);
%End
-%If (- QScintilla_1_6)
- virtual bool findFirst(const QString &,bool,bool,bool,bool,bool = 1,
+%If (- TQScintilla_1_6)
+ virtual bool findFirst(const TQString &,bool,bool,bool,bool,bool = 1,
int = -1,int = -1);
%End
virtual bool findNext();
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
int firstVisibleLine();
%End
@@ -189,7 +189,7 @@ public:
bool indentationsUseTabs();
int indentationWidth();
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
bool isCallTipActive();
bool isListActive();
%End
@@ -198,11 +198,11 @@ public:
bool isRedoAvailable();
bool isUndoAvailable();
bool isUtf8();
- int lineAt(const QPoint &);
+ int lineAt(const TQPoint &);
int lineLength(int);
int lines();
int length();
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
QextScintillaLexer *lexer() const;
%End
@@ -213,7 +213,7 @@ public:
int markerDefine(MarkerSymbol,int = -1);
int markerDefine(char,int = -1);
- int markerDefine(const QPixmap *,int = -1);
+ int markerDefine(const TQPixmap *,int = -1);
int markerAdd(int,int);
unsigned markersAtLine(int);
void markerDelete(int,int = -1);
@@ -222,74 +222,74 @@ public:
int markerLine(int);
int markerFindNext(int,unsigned);
int markerFindPrevious(int,unsigned);
-%If (QScintilla_1_3 -)
+%If (TQScintilla_1_3 -)
virtual void recolor(int = 0,int = -1);
%End
- void registerImage(int,const QPixmap *);
- virtual void replace(const QString &);
+ void registerImage(int,const TQPixmap *);
+ virtual void replace(const TQString &);
void resetFoldMarginColors();
- void setFoldMarginColors(const QColor &,const QColor &);
+ void setFoldMarginColors(const TQColor &,const TQColor &);
void setAutoCompletionAPIs(QextScintillaAPIs * = 0);
void setAutoCompletionFillups(const char *);
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
void setAutoCompletionFillupsEnabled(bool);
void setAutoCompletionStartCharacters(const char *);
%End
void setCallTipsAPIs(QextScintillaAPIs * = 0);
- void setCallTipsBackgroundColor(const QColor &);
- void setCallTipsForegroundColor(const QColor &);
- void setCallTipsHighlightColor(const QColor &);
+ void setCallTipsBackgroundColor(const TQColor &);
+ void setCallTipsForegroundColor(const TQColor &);
+ void setCallTipsHighlightColor(const TQColor &);
void setCallTipsVisible(int);
-%If (QScintilla_1_3 -)
+%If (TQScintilla_1_3 -)
void setDocument(const QextScintillaDocument &);
%End
-%If (QScintilla_1_4 -)
- void setEdgeColor(const QColor &);
+%If (TQScintilla_1_4 -)
+ void setEdgeColor(const TQColor &);
void setEdgeColumn(int);
void setEdgeMode(EdgeMode);
%End
-%If (QScintilla_1_7 -)
- virtual void setFont(const QFont &);
+%If (TQScintilla_1_7 -)
+ virtual void setFont(const TQFont &);
%End
- void setMarkerBackgroundColor(const QColor &,int = -1);
- void setMarkerForegroundColor(const QColor &,int = -1);
+ void setMarkerBackgroundColor(const TQColor &,int = -1);
+ void setMarkerForegroundColor(const TQColor &,int = -1);
- void setMatchedBraceBackgroundColor(const QColor &);
- void setMatchedBraceForegroundColor(const QColor &);
- void setUnmatchedBraceBackgroundColor(const QColor &);
- void setUnmatchedBraceForegroundColor(const QColor &);
+ void setMatchedBraceBackgroundColor(const TQColor &);
+ void setMatchedBraceForegroundColor(const TQColor &);
+ void setUnmatchedBraceBackgroundColor(const TQColor &);
+ void setUnmatchedBraceForegroundColor(const TQColor &);
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
void setWrapVisualFlags(WrapVisualFlag,
WrapVisualFlag = QextScintilla::WrapFlagNone, int = 0);
%End
- QString selectedText();
-%If (QScintilla_1_7 -)
- void showUserList(int, const QStringList &);
+ TQString selectedText();
+%If (TQScintilla_1_7 -)
+ void showUserList(int, const TQStringList &);
%End
QextScintillaCommandSet *standardCommands() const;
bool tabIndents();
int tabWidth();
- QString text();
- QString text(int);
-%If (QScintilla_1_7 -)
+ TQString text();
+ TQString text(int);
+%If (TQScintilla_1_7 -)
int textHeight(int);
%End
WhitespaceVisibility whitespaceVisibility();
-%If (QScintilla_1_4 -)
+%If (TQScintilla_1_4 -)
WrapMode wrapMode();
%End
public slots:
- virtual void append(const QString &);
-%If (QScintilla_1_7 -)
+ virtual void append(const TQString &);
+%If (TQScintilla_1_7 -)
virtual void autoCompleteFromAll();
%End
virtual void autoCompleteFromAPIs();
@@ -301,23 +301,23 @@ public slots:
virtual void ensureCursorVisible();
virtual void ensureLineVisible(int);
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
virtual void foldAll(bool = 0);
%End
-%If (- QScintilla_1_7)
+%If (- TQScintilla_1_7)
virtual void foldAll();
%End
virtual void foldLine(int);
virtual void indent(int);
-%If (QScintilla_1_4 -)
- virtual void insert(const QString &);
+%If (TQScintilla_1_4 -)
+ virtual void insert(const TQString &);
%End
- virtual void insertAt(const QString &,int,int);
+ virtual void insertAt(const TQString &,int,int);
virtual void moveToMatchingBrace();
virtual void paste();
virtual void redo();
virtual void removeSelectedText();
-%If (QScintilla_1_4 -)
+%If (TQScintilla_1_4 -)
virtual void resetSelectionBackgroundColor();
virtual void resetSelectionForegroundColor();
%End
@@ -332,14 +332,14 @@ public slots:
virtual void setAutoIndent(bool);
virtual void setBraceMatching(BraceMatch);
virtual void setBackspaceUnindents(bool);
-%If (QScintilla_1_3 -)
- virtual void setCaretForegroundColor(const QColor &);
- virtual void setCaretLineBackgroundColor(const QColor &);
+%If (TQScintilla_1_3 -)
+ virtual void setCaretForegroundColor(const TQColor &);
+ virtual void setCaretLineBackgroundColor(const TQColor &);
virtual void setCaretLineVisible(bool);
virtual void setCaretWidth(int);
%End
-%If (QScintilla_1_7 -)
- virtual void setColor(const QColor &);
+%If (TQScintilla_1_7 -)
+ virtual void setColor(const TQColor &);
%End
virtual void setCursorPosition(int,int);
virtual void setEolMode(EolMode);
@@ -348,39 +348,39 @@ public slots:
virtual void setIndentation(int,int);
virtual void setIndentationGuides(bool);
- virtual void setIndentationGuidesBackgroundColor(const QColor &);
- virtual void setIndentationGuidesForegroundColor(const QColor &);
+ virtual void setIndentationGuidesBackgroundColor(const TQColor &);
+ virtual void setIndentationGuidesForegroundColor(const TQColor &);
virtual void setIndentationsUseTabs(bool);
virtual void setIndentationWidth(int);
virtual void setLexer(QextScintillaLexer * = 0);
- virtual void setMarginsBackgroundColor(const QColor &);
- virtual void setMarginsFont(const QFont &);
- virtual void setMarginsForegroundColor(const QColor &);
+ virtual void setMarginsBackgroundColor(const TQColor &);
+ virtual void setMarginsFont(const TQFont &);
+ virtual void setMarginsForegroundColor(const TQColor &);
virtual void setMarginLineNumbers(int,bool);
virtual void setMarginMarkerMask(int,int);
virtual void setMarginSensitivity(int,bool);
virtual void setMarginWidth(int,int);
- virtual void setMarginWidth(int,const QString &);
+ virtual void setMarginWidth(int,const TQString &);
virtual void setModified(bool);
-%If (QScintilla_1_7 -)
- virtual void setPaper(const QColor &);
+%If (TQScintilla_1_7 -)
+ virtual void setPaper(const TQColor &);
%End
virtual void setReadOnly(bool);
virtual void setSelection(int,int,int,int);
-%If (QScintilla_1_3 -)
- virtual void setSelectionBackgroundColor(const QColor &);
- virtual void setSelectionForegroundColor(const QColor &);
+%If (TQScintilla_1_3 -)
+ virtual void setSelectionBackgroundColor(const TQColor &);
+ virtual void setSelectionForegroundColor(const TQColor &);
%End
virtual void setTabIndents(bool);
virtual void setTabWidth(int);
- virtual void setText(const QString &);
+ virtual void setText(const TQString &);
virtual void setUtf8(bool);
virtual void setWhitespaceVisibility(WhitespaceVisibility);
-%If (QScintilla_1_4 -)
+%If (TQScintilla_1_4 -)
virtual void setWrapMode(WrapMode);
%End
@@ -396,13 +396,13 @@ public slots:
signals:
void cursorPositionChanged(int,int);
void copyAvailable(bool);
- void marginClicked(int,int,Qt::ButtonState);
+ void marginClicked(int,int,TQt::ButtonState);
void modificationAttempted();
void modificationChanged(bool);
void selectionChanged();
void textChanged();
-%If (QScintilla_1_7 -)
- void userListActivated(int, const QString &);
+%If (TQScintilla_1_7 -)
+ void userListActivated(int, const TQString &);
%End
private:
diff --git a/sip/qtext/qextscintillaapis.sip b/sip/qtext/qextscintillaapis.sip
index ad388fb..8d92e26 100644
--- a/sip/qtext/qextscintillaapis.sip
+++ b/sip/qtext/qextscintillaapis.sip
@@ -3,20 +3,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.
@@ -33,8 +33,8 @@ class QextScintillaAPIs
public:
QextScintillaAPIs();
- void add(const QString &);
- bool load(const QString &);
+ void add(const TQString &);
+ bool load(const TQString &);
void clear();
private:
diff --git a/sip/qtext/qextscintillabase.sip b/sip/qtext/qextscintillabase.sip
index 009ea0b..87f6275 100644
--- a/sip/qtext/qextscintillabase.sip
+++ b/sip/qtext/qextscintillabase.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-class QextScintillaBase : QWidget
+class QextScintillaBase : TQWidget
{
%TypeHeaderCode
#include <qextscintillabase.h>
@@ -239,13 +239,13 @@ public:
SCI_CALLTIPSETBACK,
SCI_CALLTIPSETFORE,
SCI_CALLTIPSETFOREHLT,
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
SCI_AUTOCSETMAXWIDTH,
SCI_AUTOCGETMAXWIDTH,
SCI_AUTOCSETMAXHEIGHT,
SCI_AUTOCGETMAXHEIGHT,
%End
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
SCI_CALLTIPUSESTYLE,
%End
SCI_VISIBLEFROMDOCLINE,
@@ -263,7 +263,7 @@ public:
SCI_ENSUREVISIBLE,
SCI_SETFOLDFLAGS,
SCI_ENSUREVISIBLEENFORCEPOLICY,
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
SCI_WRAPCOUNT,
%End
SCI_SETTABINDENTS,
@@ -409,13 +409,13 @@ public:
SCI_PARADOWNEXTEND,
SCI_PARAUP,
SCI_PARAUPEXTEND,
-%If (QScintilla_1_1 -)
+%If (TQScintilla_1_1 -)
SCI_POSITIONBEFORE,
SCI_POSITIONAFTER,
SCI_COPYRANGE,
SCI_COPYTEXT,
%End
-%If (QScintilla_1_3 -)
+%If (TQScintilla_1_3 -)
SCI_SETSELECTIONMODE,
SCI_GETSELECTIONMODE,
SCI_GETLINESELSTARTPOSITION,
@@ -448,16 +448,16 @@ public:
SCI_LINEENDWRAPEXTEND,
SCI_VCHOMEWRAP,
SCI_VCHOMEWRAPEXTEND,
-%If (QScintilla_1_1 -)
+%If (TQScintilla_1_1 -)
SCI_LINECOPY,
%End
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
SCI_FINDCOLUMN,
SCI_GETCARETSTICKY,
SCI_SETCARETSTICKY,
SCI_TOGGLECARETSTICKY,
%End
-%If (QScintilla_1_3 -)
+%If (TQScintilla_1_3 -)
SCI_SETWRAPVISUALFLAGS,
SCI_GETWRAPVISUALFLAGS,
SCI_SETWRAPVISUALFLAGSLOCATION,
@@ -465,7 +465,7 @@ public:
SCI_SETWRAPSTARTINDENT,
SCI_GETWRAPSTARTINDENT,
%End
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
SCI_MARKERADDSET,
SCI_SETPASTECONVERTENDINGS
SCI_GETPASTECONVERTENDINGS
@@ -484,27 +484,27 @@ public:
SCI_SETPROPERTY,
SCI_SETKEYWORDS,
SCI_SETLEXERLANGUAGE,
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
SCI_LOADLEXERLIBRARY,
SCI_GETPROPERTY,
SCI_GETPROPERTYEXPANDED,
SCI_GETPROPERTYINT,
%End
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
SCI_GETSTYLEBITSNEEDED,
%End
};
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
enum
{
SC_ALPHA_TRANSPARENT,
- SC_ALPHA_OPAQUE,
+ SC_ALPHA_OPATQUE,
SC_ALPHA_NOALPHA,
};
%End
-%If (QScintilla_1_3 -)
+%If (TQScintilla_1_3 -)
enum
{
SC_WRAPVISUALFLAG_NONE,
@@ -570,7 +570,7 @@ public:
SC_MARK_DOTDOTDOT,
SC_MARK_ARROWS,
SC_MARK_PIXMAP,
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
SC_MARK_FULLRECT,
%End
SC_MARK_CHARACTER
@@ -590,7 +590,7 @@ public:
enum {
SC_MARGIN_SYMBOL,
SC_MARGIN_NUMBER,
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
SC_MARGIN_BACK,
SC_MARGIN_FORE,
%End
@@ -603,11 +603,11 @@ public:
STYLE_BRACEBAD,
STYLE_CONTROLCHAR,
STYLE_INDENTGUIDE,
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
STYLE_CALLTIP,
%End
STYLE_LASTPREDEFINED,
-%If (QScintilla_1_3 -)
+%If (TQScintilla_1_3 -)
STYLE_MAX
%End
};
@@ -632,7 +632,7 @@ public:
SC_CHARSET_ARABIC,
SC_CHARSET_VIETNAMESE,
SC_CHARSET_THAI,
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
SC_CHARSET_8859_15,
%End
};
@@ -646,17 +646,17 @@ public:
enum {
INDIC_MAX,
INDIC_PLAIN,
- INDIC_SQUIGGLE,
+ INDIC_STQUIGGLE,
INDIC_TT,
INDIC_DIAGONAL,
INDIC_STRIKE,
-%If (QScintilla_1_2 -)
+%If (TQScintilla_1_2 -)
INDIC_HIDDEN,
%End
-%If (QScintilla_1_3 -)
+%If (TQScintilla_1_3 -)
INDIC_BOX,
%End
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
INDIC_ROUNDBOX,
%End
INDIC0_MASK,
@@ -709,7 +709,7 @@ public:
enum {
SC_WRAP_NONE,
SC_WRAP_WORD,
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
SC_WRAP_CHAR,
%End
};
@@ -752,14 +752,14 @@ public:
SC_PERFORMED_USER,
SC_PERFORMED_UNDO,
SC_PERFORMED_REDO,
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
SC_MULTISTEPUNDOREDO,
%End
SC_LASTSTEPINUNDOREDO,
SC_MOD_CHANGEMARKER,
SC_MOD_BEFOREINSERT,
SC_MOD_BEFOREDELETE,
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
SC_MULTILINEUNDOREDO,
%End
SC_MODEVENTMASKALL
@@ -786,7 +786,7 @@ public:
};
enum {
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
SCMOD_NORM,
%End
SCMOD_SHIFT,
@@ -827,7 +827,7 @@ public:
SCLEX_PHP,
SCLEX_BAAN,
SCLEX_MATLAB,
-%If (QScintilla_1_2 -)
+%If (TQScintilla_1_2 -)
SCLEX_SCRIPTOL,
%End
SCLEX_ASM,
@@ -836,16 +836,16 @@ public:
SCLEX_F77,
SCLEX_CSS,
SCLEX_POV,
-%If (QScintilla_1_1 -)
+%If (TQScintilla_1_1 -)
SCLEX_LOUT,
SCLEX_ESCRIPT,
%End
-%If (QScintilla_1_2 -)
+%If (TQScintilla_1_2 -)
SCLEX_PS,
SCLEX_NSIS,
SCLEX_MMIXAL,
%End
-%If (QScintilla_1_3 -)
+%If (TQScintilla_1_3 -)
SCLEX_CLW,
SCLEX_CLWNOCASE,
SCLEX_LOT,
@@ -865,11 +865,11 @@ public:
SCLEX_APDL,
SCLEX_BASH,
%End
-%If (QScintilla_1_5 -)
+%If (TQScintilla_1_5 -)
SCLEX_ASN1,
SCLEX_VHDL,
%End
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
SCLEX_CAML,
SCLEX_BLITZBASIC,
SCLEX_PUREBASIC,
@@ -881,7 +881,7 @@ public:
SCLEX_FLAGSHIP,
SCLEX_CSOUND,
%End
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
SCLEX_FREEBASIC,
SCLEX_INNOSETUP,
SCLEX_OPAL,
@@ -889,7 +889,7 @@ public:
%End
};
- QextScintillaBase(QWidget * /TransferThis/,const char *,
+ QextScintillaBase(TQWidget * /TransferThis/,const char *,
WFlags = 0);
%ConvertToSubClassCode
@@ -901,34 +901,34 @@ public:
{sipName_QextScintillaLexer, &sipClass_QextScintillaLexer, 3, 1},
{sipName_QextScintillaBase, &sipClass_QextScintillaBase, 15, 2},
{sipName_QextScintillaMacro, &sipClass_QextScintillaMacro, -1, -1},
-#if QSCINTILLA_VERSION >= 0x010300
+#if TQSCINTILLA_VERSION >= 0x010300
{sipName_QextScintillaLexerPerl, &sipClass_QextScintillaLexerPerl, -1, 4},
#else
{NULL, NULL, -1, 4},
#endif
-#if QSCINTILLA_VERSION >= 0x010100
+#if TQSCINTILLA_VERSION >= 0x010100
{sipName_QextScintillaLexerHTML, &sipClass_QextScintillaLexerHTML, -1, 5},
#else
{NULL, NULL, -1, 5},
#endif
-#if QSCINTILLA_VERSION >= 0x010500
+#if TQSCINTILLA_VERSION >= 0x010500
{sipName_QextScintillaLexerRuby, &sipClass_QextScintillaLexerRuby, -1, 6},
#else
{NULL, NULL, -1, 6},
#endif
{sipName_QextScintillaLexerCPP, &sipClass_QextScintillaLexerCPP, 11, 7},
{sipName_QextScintillaLexerPython, &sipClass_QextScintillaLexerPython, -1, 8},
-#if QSCINTILLA_VERSION >= 0x010100
+#if TQSCINTILLA_VERSION >= 0x010100
{sipName_QextScintillaLexerSQL, &sipClass_QextScintillaLexerSQL, -1, 9},
#else
{NULL, NULL, -1, 9},
#endif
-#if QSCINTILLA_VERSION >= 0x010400
+#if TQSCINTILLA_VERSION >= 0x010400
{sipName_QextScintillaLexerBash, &sipClass_QextScintillaLexerBash, -1, 10},
#else
{NULL, NULL, -1, 10},
#endif
-#if QSCINTILLA_VERSION >= 0x010500
+#if TQSCINTILLA_VERSION >= 0x010500
{sipName_QextScintillaLexerLua, &sipClass_QextScintillaLexerLua, -1, -1},
#else
{NULL, NULL, -1, -1},
@@ -959,7 +959,7 @@ public:
while (i >= 0);
%End
-%If (QScintilla_1_3 -)
+%If (TQScintilla_1_3 -)
QextScintillaBase *pool();
%End
@@ -970,23 +970,23 @@ public:
long SendScintilla(unsigned int,long);
//long SendScintilla(unsigned int,int);
long SendScintilla(unsigned int,long,long,char *);
- long SendScintilla(unsigned int,unsigned long,const QColor &);
- long SendScintilla(unsigned int,const QColor &);
- long SendScintilla(unsigned int,unsigned long,QPainter *,const QRect &,
+ long SendScintilla(unsigned int,unsigned long,const TQColor &);
+ long SendScintilla(unsigned int,const TQColor &);
+ long SendScintilla(unsigned int,unsigned long,TQPainter *,const TQRect &,
long,long);
- long SendScintilla(unsigned int,unsigned long,const QPixmap *);
+ long SendScintilla(unsigned int,unsigned long,const TQPixmap *);
- virtual QSize sizeHint() const;
-%If (QScintilla_1_5 -)
- QWidget *viewport() const;
+ virtual TQSize sizeHint() const;
+%If (TQScintilla_1_5 -)
+ TQWidget *viewport() const;
%End
signals:
- void QSCN_SELCHANGED(bool);
+ void TQSCN_SELCHANGED(bool);
void SCEN_CHANGE();
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
void SCN_AUTOCSELECTION(const char *,int);
%End
void SCN_CHARADDED(int);
@@ -1010,12 +1010,12 @@ signals:
void SCN_ZOOM();
protected:
- bool eventFilter(QObject *,QEvent *);
- virtual void keyPressEvent(QKeyEvent *);
- virtual void focusInEvent(QFocusEvent *);
- virtual void focusOutEvent(QFocusEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
+ virtual void keyPressEvent(TQKeyEvent *);
+ virtual void focusInEvent(TQFocusEvent *);
+ virtual void focusOutEvent(TQFocusEvent *);
virtual bool focusNextPrevChild(bool);
-%If (QScintilla_1_5 -)
+%If (TQScintilla_1_5 -)
virtual void startDrag();
%End
diff --git a/sip/qtext/qextscintillacommand.sip b/sip/qtext/qextscintillacommand.sip
index 148fdd6..b423a5b 100644
--- a/sip/qtext/qextscintillacommand.sip
+++ b/sip/qtext/qextscintillacommand.sip
@@ -3,20 +3,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.
@@ -36,7 +36,7 @@ public:
int key() const;
int alternateKey() const;
static bool validKey(int);
- QString description() const;
+ TQString description() const;
private:
QextScintillaCommand(QextScintilla *,int,int,const char *);
diff --git a/sip/qtext/qextscintillacommandset.sip b/sip/qtext/qextscintillacommandset.sip
index ae1be22..8d04f82 100644
--- a/sip/qtext/qextscintillacommandset.sip
+++ b/sip/qtext/qextscintillacommandset.sip
@@ -3,20 +3,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.
@@ -31,17 +31,17 @@ class QextScintillaCommandSet
%End
public:
- bool readSettings(QSettings &,const char * = "/Scintilla");
- bool writeSettings(QSettings &,const char * = "/Scintilla");
+ bool readSettings(TQSettings &,const char * = "/Scintilla");
+ bool writeSettings(TQSettings &,const char * = "/Scintilla");
-%If (QScintilla_1_4 -)
- QPtrList<QextScintillaCommand> &commands();
+%If (TQScintilla_1_4 -)
+ TQPtrList<QextScintillaCommand> &commands();
%End
-%If (- QScintilla_1_4)
- const QPtrList<QextScintillaCommand> &commands() const;
+%If (- TQScintilla_1_4)
+ const TQPtrList<QextScintillaCommand> &commands() const;
%End
-%If (QScintilla_1_4 -)
+%If (TQScintilla_1_4 -)
void clearKeys();
void clearAlternateKeys();
%End
diff --git a/sip/qtext/qextscintilladocument.sip b/sip/qtext/qextscintilladocument.sip
index 9108114..f66166d 100644
--- a/sip/qtext/qextscintilladocument.sip
+++ b/sip/qtext/qextscintilladocument.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_3 -)
+%If (TQScintilla_1_3 -)
class QextScintillaDocument
{
diff --git a/sip/qtext/qextscintillalexer.sip b/sip/qtext/qextscintillalexer.sip
index ed10f46..4ab290a 100644
--- a/sip/qtext/qextscintillalexer.sip
+++ b/sip/qtext/qextscintillalexer.sip
@@ -3,20 +3,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.
@@ -24,55 +24,55 @@
// enough to handle the resulting %Timeline complexity.
-class QextScintillaLexer : QObject
+class QextScintillaLexer : TQObject
{
%TypeHeaderCode
#include <qextscintillalexer.h>
%End
public:
- QextScintillaLexer(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexer(TQObject * /TransferThis/ = 0,const char * = 0);
virtual const char *language() const = 0;
virtual const char *lexer() const = 0;
int autoIndentStyle();
- virtual QColor color(int) const;
+ virtual TQColor color(int) const;
virtual bool eolFill(int) const;
- virtual QFont font(int) const;
+ virtual TQFont font(int) const;
virtual const char *keywords(int) const;
- virtual QString description(int) const = 0;
- virtual QColor paper(int) const;
- virtual QFont defaultFont() const;
-%If (QScintilla_1_7 -)
- virtual QColor defaultColor() const;
- virtual QColor defaultPaper() const;
+ virtual TQString description(int) const = 0;
+ virtual TQColor paper(int) const;
+ virtual TQFont defaultFont() const;
+%If (TQScintilla_1_7 -)
+ virtual TQColor defaultColor() const;
+ virtual TQColor defaultPaper() const;
%End
virtual void refreshProperties();
- bool readSettings(QSettings &,const char * = "/Scintilla");
- bool writeSettings(QSettings &,const char * = "/Scintilla") const;
+ bool readSettings(TQSettings &,const char * = "/Scintilla");
+ bool writeSettings(TQSettings &,const char * = "/Scintilla") const;
public slots:
virtual void setAutoIndentStyle(int);
- virtual void setColor(const QColor &,int = -1);
- virtual void setDefaultFont(const QFont &);
-%If (QScintilla_1_7 -)
- virtual void setDefaultColor(const QColor &);
- virtual void setDefaultPaper(const QColor &);
+ virtual void setColor(const TQColor &,int = -1);
+ virtual void setDefaultFont(const TQFont &);
+%If (TQScintilla_1_7 -)
+ virtual void setDefaultColor(const TQColor &);
+ virtual void setDefaultPaper(const TQColor &);
%End
virtual void setEolFill(bool,int = -1);
- virtual void setFont(const QFont &,int = -1);
- virtual void setPaper(const QColor &,int = -1);
+ virtual void setFont(const TQFont &,int = -1);
+ virtual void setPaper(const TQColor &,int = -1);
signals:
- void colorChanged(const QColor &,int);
+ void colorChanged(const TQColor &,int);
void eolFillChanged(bool,int);
- void fontChanged(const QFont &,int);
- void paperChanged(const QColor &,int);
+ void fontChanged(const TQFont &,int);
+ void paperChanged(const TQColor &,int);
void propertyChanged(const char *,const char *);
protected:
- virtual bool readProperties(QSettings &,const QString &);
- virtual bool writeProperties(QSettings &,const QString &) const;
+ virtual bool readProperties(TQSettings &,const TQString &);
+ virtual bool writeProperties(TQSettings &,const TQString &) const;
private:
QextScintillaLexer(const QextScintillaLexer &);
diff --git a/sip/qtext/qextscintillalexerbash.sip b/sip/qtext/qextscintillalexerbash.sip
index 3a4099d..eb71b13 100644
--- a/sip/qtext/qextscintillalexerbash.sip
+++ b/sip/qtext/qextscintillalexerbash.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_4 -)
+%If (TQScintilla_1_4 -)
class QextScintillaLexerBash : QextScintillaLexer
{
@@ -50,16 +50,16 @@ public:
SingleQuotedHereDocument
};
- QextScintillaLexerBash(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerBash(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
+ TQColor color(int) const;
bool eolFill(int) const;
- QFont font(int) const;
+ TQFont font(int) const;
const char *keywords(int) const;
- QString description(int) const;
- QColor paper(int) const;
+ TQString description(int) const;
+ TQColor paper(int) const;
void refreshProperties();
bool foldComments() const;
@@ -70,8 +70,8 @@ public slots:
virtual void setFoldCompact(bool);
protected:
- bool readProperties(QSettings &,const QString &);
- bool writeProperties(QSettings &,const QString &) const;
+ bool readProperties(TQSettings &,const TQString &);
+ bool writeProperties(TQSettings &,const TQString &) const;
private:
QextScintillaLexerBash(const QextScintillaLexerBash &);
diff --git a/sip/qtext/qextscintillalexerbatch.sip b/sip/qtext/qextscintillalexerbatch.sip
index f29f326..aa20a4f 100644
--- a/sip/qtext/qextscintillalexerbatch.sip
+++ b/sip/qtext/qextscintillalexerbatch.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
class QextScintillaLexerBatch : QextScintillaLexer
{
@@ -44,16 +44,16 @@ public:
Operator
};
- QextScintillaLexerBatch(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerBatch(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
+ TQColor color(int) const;
bool eolFill(int) const;
- QFont font(int) const;
+ TQFont font(int) const;
const char *keywords(int) const;
- QString description(int) const;
- QColor paper(int) const;
+ TQString description(int) const;
+ TQColor paper(int) const;
private:
QextScintillaLexerBatch(const QextScintillaLexerBatch &);
diff --git a/sip/qtext/qextscintillalexercpp.sip b/sip/qtext/qextscintillalexercpp.sip
index dab8cf2..3ce192d 100644
--- a/sip/qtext/qextscintillalexercpp.sip
+++ b/sip/qtext/qextscintillalexercpp.sip
@@ -3,20 +3,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.
@@ -32,7 +32,7 @@ class QextScintillaLexerCPP : QextScintillaLexer
public:
enum {
-%If (QScintilla_1_1 -)
+%If (TQScintilla_1_1 -)
Default,
%End
WhiteSpace,
@@ -54,25 +54,25 @@ public:
KeywordSet2,
CommentDocKeyword,
CommentDocKeywordError,
-%If (QScintilla_1_1 -)
+%If (TQScintilla_1_1 -)
GlobalClass,
%End
};
- QextScintillaLexerCPP(QObject * /TransferThis/ = 0,const char * = 0,
+ QextScintillaLexerCPP(TQObject * /TransferThis/ = 0,const char * = 0,
bool = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
+ TQColor color(int) const;
bool eolFill(int) const;
- QFont font(int) const;
+ TQFont font(int) const;
const char *keywords(int) const;
- QString description(int) const;
- QColor paper(int) const;
+ TQString description(int) const;
+ TQColor paper(int) const;
void refreshProperties();
-%If (QScintilla_1_1 -)
+%If (TQScintilla_1_1 -)
bool foldAtElse() const;
%End
bool foldComments() const;
@@ -81,7 +81,7 @@ public:
bool stylePreprocessor() const;
public slots:
-%If (QScintilla_1_1 -)
+%If (TQScintilla_1_1 -)
virtual void setFoldAtElse(bool);
%End
virtual void setFoldComments(bool);
@@ -90,8 +90,8 @@ public slots:
virtual void setStylePreprocessor(bool);
protected:
- bool readProperties(QSettings &,const QString &);
- bool writeProperties(QSettings &,const QString &) const;
+ bool readProperties(TQSettings &,const TQString &);
+ bool writeProperties(TQSettings &,const TQString &) const;
private:
QextScintillaLexerCPP(const QextScintillaLexerCPP &);
diff --git a/sip/qtext/qextscintillalexercsharp.sip b/sip/qtext/qextscintillalexercsharp.sip
index 9444248..f095269 100644
--- a/sip/qtext/qextscintillalexercsharp.sip
+++ b/sip/qtext/qextscintillalexercsharp.sip
@@ -3,20 +3,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.
@@ -31,16 +31,16 @@ class QextScintillaLexerCSharp : QextScintillaLexerCPP
%End
public:
- QextScintillaLexerCSharp(QObject * /TransferThis/ = 0,
+ QextScintillaLexerCSharp(TQObject * /TransferThis/ = 0,
const char * = 0);
const char *language() const;
- QColor color(int) const;
+ TQColor color(int) const;
bool eolFill(int) const;
- QFont font(int) const;
+ TQFont font(int) const;
const char *keywords(int) const;
- QString description(int) const;
- QColor paper(int) const;
+ TQString description(int) const;
+ TQColor paper(int) const;
private:
QextScintillaLexerCSharp(const QextScintillaLexerCSharp &);
diff --git a/sip/qtext/qextscintillalexercss.sip b/sip/qtext/qextscintillalexercss.sip
index eb02a09..e54b5e1 100644
--- a/sip/qtext/qextscintillalexercss.sip
+++ b/sip/qtext/qextscintillalexercss.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
class QextScintillaLexerCSS : QextScintillaLexer
{
@@ -53,14 +53,14 @@ public:
Attribute
};
- QextScintillaLexerCSS(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerCSS(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
- QFont font(int) const;
+ TQColor color(int) const;
+ TQFont font(int) const;
const char *keywords(int) const;
- QString description(int) const;
+ TQString description(int) const;
void refreshProperties();
bool foldComments() const;
@@ -71,8 +71,8 @@ public slots:
virtual void setFoldCompact(bool);
protected:
- bool readProperties(QSettings &,const QString &);
- bool writeProperties(QSettings &,const QString &) const;
+ bool readProperties(TQSettings &,const TQString &);
+ bool writeProperties(TQSettings &,const TQString &) const;
private:
QextScintillaLexerCSS(const QextScintillaLexerCSS &);
diff --git a/sip/qtext/qextscintillalexerdiff.sip b/sip/qtext/qextscintillalexerdiff.sip
index adfcb77..49d82ad 100644
--- a/sip/qtext/qextscintillalexerdiff.sip
+++ b/sip/qtext/qextscintillalexerdiff.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
class QextScintillaLexerDiff : QextScintillaLexer
{
@@ -43,12 +43,12 @@ public:
LineAdded
};
- QextScintillaLexerDiff(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerDiff(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
- QString description(int) const;
+ TQColor color(int) const;
+ TQString description(int) const;
private:
QextScintillaLexerDiff(const QextScintillaLexerDiff &);
diff --git a/sip/qtext/qextscintillalexerhtml.sip b/sip/qtext/qextscintillalexerhtml.sip
index 6b59162..deb7320 100644
--- a/sip/qtext/qextscintillalexerhtml.sip
+++ b/sip/qtext/qextscintillalexerhtml.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_1 -)
+%If (TQScintilla_1_1 -)
class QextScintillaLexerHTML : QextScintillaLexer
{
@@ -146,16 +146,16 @@ public:
PHPOperator
};
- QextScintillaLexerHTML(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerHTML(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
+ TQColor color(int) const;
bool eolFill(int) const;
- QFont font(int) const;
+ TQFont font(int) const;
const char *keywords(int) const;
- QString description(int) const;
- QColor paper(int) const;
+ TQString description(int) const;
+ TQColor paper(int) const;
void refreshProperties();
bool foldCompact() const;
@@ -168,8 +168,8 @@ public slots:
virtual void setCaseSensitiveTags(bool);
protected:
- bool readProperties(QSettings &,const QString &);
- bool writeProperties(QSettings &,const QString &) const;
+ bool readProperties(TQSettings &,const TQString &);
+ bool writeProperties(TQSettings &,const TQString &) const;
private:
QextScintillaLexerHTML(const QextScintillaLexerHTML &);
diff --git a/sip/qtext/qextscintillalexeridl.sip b/sip/qtext/qextscintillalexeridl.sip
index cf1fe5a..408d3fe 100644
--- a/sip/qtext/qextscintillalexeridl.sip
+++ b/sip/qtext/qextscintillalexeridl.sip
@@ -3,20 +3,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.
@@ -31,12 +31,12 @@ class QextScintillaLexerIDL : QextScintillaLexerCPP
%End
public:
- QextScintillaLexerIDL(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerIDL(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
- QColor color(int) const;
+ TQColor color(int) const;
const char *keywords(int) const;
- QString description(int) const;
+ TQString description(int) const;
private:
QextScintillaLexerIDL(const QextScintillaLexerIDL &);
diff --git a/sip/qtext/qextscintillalexerjava.sip b/sip/qtext/qextscintillalexerjava.sip
index 8db6bd4..dbb8b03 100644
--- a/sip/qtext/qextscintillalexerjava.sip
+++ b/sip/qtext/qextscintillalexerjava.sip
@@ -3,20 +3,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.
@@ -31,7 +31,7 @@ class QextScintillaLexerJava : QextScintillaLexerCPP
%End
public:
- QextScintillaLexerJava(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerJava(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *keywords(int) const;
diff --git a/sip/qtext/qextscintillalexerjavascript.sip b/sip/qtext/qextscintillalexerjavascript.sip
index 4b3c9a1..a19b902 100644
--- a/sip/qtext/qextscintillalexerjavascript.sip
+++ b/sip/qtext/qextscintillalexerjavascript.sip
@@ -3,20 +3,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.
@@ -31,16 +31,16 @@ class QextScintillaLexerJavaScript : QextScintillaLexerCPP
%End
public:
- QextScintillaLexerJavaScript(QObject * /TransferThis/ = 0,
+ QextScintillaLexerJavaScript(TQObject * /TransferThis/ = 0,
const char * = 0);
const char *language() const;
- QColor color(int) const;
+ TQColor color(int) const;
bool eolFill(int) const;
- QFont font(int) const;
+ TQFont font(int) const;
const char *keywords(int) const;
- QString description(int) const;
- QColor paper(int) const;
+ TQString description(int) const;
+ TQColor paper(int) const;
private:
QextScintillaLexerJavaScript(const QextScintillaLexerJavaScript &);
diff --git a/sip/qtext/qextscintillalexerlua.sip b/sip/qtext/qextscintillalexerlua.sip
index fe05ea1..12c725f 100644
--- a/sip/qtext/qextscintillalexerlua.sip
+++ b/sip/qtext/qextscintillalexerlua.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_5 -)
+%If (TQScintilla_1_5 -)
class QextScintillaLexerLua : QextScintillaLexer
{
@@ -51,16 +51,16 @@ public:
CoroutinesIOSystemFacilities
};
- QextScintillaLexerLua(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerLua(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
+ TQColor color(int) const;
bool eolFill(int) const;
- QFont font(int) const;
+ TQFont font(int) const;
const char *keywords(int) const;
- QString description(int) const;
- QColor paper(int) const;
+ TQString description(int) const;
+ TQColor paper(int) const;
void refreshProperties();
bool foldCompact() const;
@@ -69,8 +69,8 @@ public slots:
virtual void setFoldCompact(bool);
protected:
- bool readProperties(QSettings &,const QString &);
- bool writeProperties(QSettings &,const QString &) const;
+ bool readProperties(TQSettings &,const TQString &);
+ bool writeProperties(TQSettings &,const TQString &) const;
private:
QextScintillaLexerLua(const QextScintillaLexerLua &);
diff --git a/sip/qtext/qextscintillalexermakefile.sip b/sip/qtext/qextscintillalexermakefile.sip
index 83c15b1..90d210e 100644
--- a/sip/qtext/qextscintillalexermakefile.sip
+++ b/sip/qtext/qextscintillalexermakefile.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
class QextScintillaLexerMakefile : QextScintillaLexer
{
@@ -43,15 +43,15 @@ public:
Error
};
- QextScintillaLexerMakefile(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerMakefile(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
+ TQColor color(int) const;
bool eolFill(int) const;
- QFont font(int) const;
- QString description(int) const;
- QColor paper(int) const;
+ TQFont font(int) const;
+ TQString description(int) const;
+ TQColor paper(int) const;
private:
QextScintillaLexerMakefile(const QextScintillaLexerMakefile &);
diff --git a/sip/qtext/qextscintillalexerperl.sip b/sip/qtext/qextscintillalexerperl.sip
index a8db0a1..06bdd7c 100644
--- a/sip/qtext/qextscintillalexerperl.sip
+++ b/sip/qtext/qextscintillalexerperl.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_3 -)
+%If (TQScintilla_1_3 -)
class QextScintillaLexerPerl : QextScintillaLexer
{
@@ -61,21 +61,21 @@ public:
QuotedStringQX,
QuotedStringQR,
QuotedStringQW,
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
PODVerbatim,
%End
};
- QextScintillaLexerPerl(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerPerl(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
+ TQColor color(int) const;
bool eolFill(int) const;
- QFont font(int) const;
+ TQFont font(int) const;
const char *keywords(int) const;
- QString description(int) const;
- QColor paper(int) const;
+ TQString description(int) const;
+ TQColor paper(int) const;
void refreshProperties();
bool foldComments() const;
@@ -86,8 +86,8 @@ public slots:
virtual void setFoldCompact(bool);
protected:
- bool readProperties(QSettings &,const QString &);
- bool writeProperties(QSettings &,const QString &) const;
+ bool readProperties(TQSettings &,const TQString &);
+ bool writeProperties(TQSettings &,const TQString &) const;
private:
QextScintillaLexerPerl(const QextScintillaLexerPerl &);
diff --git a/sip/qtext/qextscintillalexerpov.sip b/sip/qtext/qextscintillalexerpov.sip
index 862e48e..6812baa 100644
--- a/sip/qtext/qextscintillalexerpov.sip
+++ b/sip/qtext/qextscintillalexerpov.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
class QextScintillaLexerPOV : QextScintillaLexer
{
@@ -53,16 +53,16 @@ public:
KeywordSet8
};
- QextScintillaLexerPOV(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerPOV(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
+ TQColor color(int) const;
bool eolFill(int) const;
- QFont font(int) const;
+ TQFont font(int) const;
const char *keywords(int) const;
- QString description(int) const;
- QColor paper(int) const;
+ TQString description(int) const;
+ TQColor paper(int) const;
void refreshProperties();
bool foldComments() const;
@@ -75,8 +75,8 @@ public slots:
virtual void setFoldDirectives(bool);
protected:
- bool readProperties(QSettings &,const QString &);
- bool writeProperties(QSettings &,const QString &) const;
+ bool readProperties(TQSettings &,const TQString &);
+ bool writeProperties(TQSettings &,const TQString &) const;
private:
QextScintillaLexerPOV(const QextScintillaLexerPOV &);
diff --git a/sip/qtext/qextscintillalexerproperties.sip b/sip/qtext/qextscintillalexerproperties.sip
index 45c52e5..b880ce9 100644
--- a/sip/qtext/qextscintillalexerproperties.sip
+++ b/sip/qtext/qextscintillalexerproperties.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
class QextScintillaLexerProperties : QextScintillaLexer
{
@@ -41,15 +41,15 @@ public:
DefaultValue
};
- QextScintillaLexerProperties(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerProperties(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
+ TQColor color(int) const;
bool eolFill(int) const;
- QFont font(int) const;
- QString description(int) const;
- QColor paper(int) const;
+ TQFont font(int) const;
+ TQString description(int) const;
+ TQColor paper(int) const;
void refreshProperties();
bool foldCompact() const;
@@ -58,8 +58,8 @@ public slots:
virtual void setFoldCompact(bool);
protected:
- bool readProperties(QSettings &,const QString &);
- bool writeProperties(QSettings &,const QString &) const;
+ bool readProperties(TQSettings &,const TQString &);
+ bool writeProperties(TQSettings &,const TQString &) const;
private:
QextScintillaLexerProperties(const QextScintillaLexerProperties &);
diff --git a/sip/qtext/qextscintillalexerpython.sip b/sip/qtext/qextscintillalexerpython.sip
index 3a2bca5..5e3b883 100644
--- a/sip/qtext/qextscintillalexerpython.sip
+++ b/sip/qtext/qextscintillalexerpython.sip
@@ -3,20 +3,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.
@@ -32,7 +32,7 @@ class QextScintillaLexerPython : QextScintillaLexer
public:
enum {
-%If (QScintilla_1_1 -)
+%If (TQScintilla_1_1 -)
Default,
%End
WhiteSpace,
@@ -49,7 +49,7 @@ public:
Identifier,
CommentBlock,
UnclosedString,
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
HighlightedIdentifier,
Decorator,
%End
@@ -63,17 +63,17 @@ public:
Tabs
};
- QextScintillaLexerPython(QObject * /TransferThis/ = 0,
+ QextScintillaLexerPython(TQObject * /TransferThis/ = 0,
const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
+ TQColor color(int) const;
bool eolFill(int) const;
- QFont font(int) const;
+ TQFont font(int) const;
const char *keywords(int) const;
- QString description(int) const;
- QColor paper(int) const;
+ TQString description(int) const;
+ TQColor paper(int) const;
void refreshProperties();
bool foldComments() const;
@@ -86,8 +86,8 @@ public slots:
virtual void setIndentationWarning(IndentationWarning);
protected:
- bool readProperties(QSettings &,const QString &);
- bool writeProperties(QSettings &,const QString &) const;
+ bool readProperties(TQSettings &,const TQString &);
+ bool writeProperties(TQSettings &,const TQString &) const;
private:
QextScintillaLexerPython(const QextScintillaLexerPython &);
diff --git a/sip/qtext/qextscintillalexerruby.sip b/sip/qtext/qextscintillalexerruby.sip
index 77beba0..f7c0a99 100644
--- a/sip/qtext/qextscintillalexerruby.sip
+++ b/sip/qtext/qextscintillalexerruby.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_5 -)
+%If (TQScintilla_1_5 -)
class QextScintillaLexerRuby : QextScintillaLexer
{
@@ -33,7 +33,7 @@ class QextScintillaLexerRuby : QextScintillaLexer
%End
public:
-%If (QScintilla_1_7 -)
+%If (TQScintilla_1_7 -)
enum {
Default,
Comment,
@@ -67,7 +67,7 @@ public:
Stderr
};
%End
-%If (- QScintilla_1_7)
+%If (- TQScintilla_1_7)
enum {
Default,
WhiteSpace,
@@ -94,31 +94,31 @@ public:
};
%End
- QextScintillaLexerRuby(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerRuby(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
+ TQColor color(int) const;
bool eolFill(int) const;
- QFont font(int) const;
+ TQFont font(int) const;
const char *keywords(int) const;
- QString description(int) const;
- QColor paper(int) const;
-%If (- QScintilla_1_7)
+ TQString description(int) const;
+ TQColor paper(int) const;
+%If (- TQScintilla_1_7)
void refreshProperties();
IndentationWarning indentationWarning() const;
%End
public slots:
-%If (- QScintilla_1_7)
+%If (- TQScintilla_1_7)
virtual void setIndentationWarning(IndentationWarning);
%End
protected:
-%If (- QScintilla_1_7)
- bool readProperties(QSettings &,const QString &);
- bool writeProperties(QSettings &,const QString &) const;
+%If (- TQScintilla_1_7)
+ bool readProperties(TQSettings &,const TQString &);
+ bool writeProperties(TQSettings &,const TQString &) const;
%End
private:
diff --git a/sip/qtext/qextscintillalexersql.sip b/sip/qtext/qextscintillalexersql.sip
index 85a5e19..5f601eb 100644
--- a/sip/qtext/qextscintillalexersql.sip
+++ b/sip/qtext/qextscintillalexersql.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_1 -)
+%If (TQScintilla_1_1 -)
class QextScintillaLexerSQL : QextScintillaLexer
{
@@ -36,24 +36,24 @@ public:
enum {
Default,
Comment,
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
CommentLine,
CommentDoc,
%End
LineComment, // Obsolete.
Number,
Keyword,
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
DoubleQuotedString,
%End
SingleQuotedString,
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
PlusKeyword,
PlusPrompt,
%End
Operator,
Identifier,
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
PlusComment,
CommentLineHash,
CommentDocKeyword,
@@ -65,19 +65,19 @@ public:
%End
};
- QextScintillaLexerSQL(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerSQL(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
-%If (QScintilla_1_6 -)
+ TQColor color(int) const;
+%If (TQScintilla_1_6 -)
bool eolFill(int) const;
%End
- QFont font(int) const;
+ TQFont font(int) const;
const char *keywords(int) const;
- QString description(int) const;
-%If (QScintilla_1_6 -)
- QColor paper(int) const;
+ TQString description(int) const;
+%If (TQScintilla_1_6 -)
+ TQColor paper(int) const;
void refreshProperties();
bool foldComments() const;
@@ -86,16 +86,16 @@ public:
%End
public slots:
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
virtual void setFoldComments(bool);
virtual void setFoldCompact(bool);
virtual void setBackslashEscapes(bool);
%End
protected:
-%If (QScintilla_1_6 -)
- bool readProperties(QSettings &,const QString &);
- bool writeProperties(QSettings &,const QString &) const;
+%If (TQScintilla_1_6 -)
+ bool readProperties(TQSettings &,const TQString &);
+ bool writeProperties(TQSettings &,const TQString &) const;
%End
private:
diff --git a/sip/qtext/qextscintillalexertex.sip b/sip/qtext/qextscintillalexertex.sip
index 668fcd0..8320b59 100644
--- a/sip/qtext/qextscintillalexertex.sip
+++ b/sip/qtext/qextscintillalexertex.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-%If (QScintilla_1_6 -)
+%If (TQScintilla_1_6 -)
class QextScintillaLexerTeX : QextScintillaLexer
{
@@ -42,13 +42,13 @@ public:
Text
};
- QextScintillaLexerTeX(QObject * /TransferThis/ = 0,const char * = 0);
+ QextScintillaLexerTeX(TQObject * /TransferThis/ = 0,const char * = 0);
const char *language() const;
const char *lexer() const;
- QColor color(int) const;
+ TQColor color(int) const;
const char *keywords(int) const;
- QString description(int) const;
+ TQString description(int) const;
private:
QextScintillaLexerTeX(const QextScintillaLexerTeX &);
diff --git a/sip/qtext/qextscintillamacro.sip b/sip/qtext/qextscintillamacro.sip
index 45615af..d5261f1 100644
--- a/sip/qtext/qextscintillamacro.sip
+++ b/sip/qtext/qextscintillamacro.sip
@@ -3,20 +3,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.
@@ -24,7 +24,7 @@
// enough to handle the resulting %Timeline complexity.
-class QextScintillaMacro : QObject
+class QextScintillaMacro : TQObject
{
%TypeHeaderCode
#include <qextscintillamacro.h>
@@ -32,12 +32,12 @@ class QextScintillaMacro : QObject
public:
QextScintillaMacro(QextScintilla * /TransferThis/,const char * = 0);
- QextScintillaMacro(const QCString &,QextScintilla * /TransferThis/,
+ QextScintillaMacro(const TQCString &,QextScintilla * /TransferThis/,
const char * = 0);
void clear();
- bool load(const QCString &);
- QCString save() const;
+ bool load(const TQCString &);
+ TQCString save() const;
public slots:
virtual void play();
diff --git a/sip/qtext/qextscintillaprinter.sip b/sip/qtext/qextscintillaprinter.sip
index dce068b..b19a312 100644
--- a/sip/qtext/qextscintillaprinter.sip
+++ b/sip/qtext/qextscintillaprinter.sip
@@ -3,20 +3,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.
@@ -24,16 +24,16 @@
// enough to handle the resulting %Timeline complexity.
-class QextScintillaPrinter : QPrinter
+class QextScintillaPrinter : TQPrinter
{
%TypeHeaderCode
#include <qextscintillaprinter.h>
%End
public:
- QextScintillaPrinter(QPrinter::PrinterMode = QPrinter::ScreenResolution);
+ QextScintillaPrinter(TQPrinter::PrinterMode = TQPrinter::ScreenResolution);
- virtual void formatPage(QPainter &,bool,QRect &,int);
+ virtual void formatPage(TQPainter &,bool,TQRect &,int);
virtual int printRange(QextScintillaBase *,int = -1,int = -1);
int magnification() const;
virtual void setMagnification(int);
diff --git a/sip/qtext/qtextmod.sip b/sip/qtext/qtextmod.sip
index 06024a6..0a831da 100644
--- a/sip/qtext/qtextmod.sip
+++ b/sip/qtext/qtextmod.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for the qtext module of PyQt.
+// This is the SIP interface definition for the qtext 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.
@@ -27,14 +27,14 @@
%Include copying.sip
-// The QScintilla versions.
-%Timeline {QScintilla_1_1 QScintilla_1_2 QScintilla_1_3 QScintilla_1_4
- QScintilla_1_5 QScintilla_1_6 QScintilla_1_7}
+// The TQScintilla versions.
+%Timeline {TQScintilla_1_1 TQScintilla_1_2 TQScintilla_1_3 TQScintilla_1_4
+ TQScintilla_1_5 TQScintilla_1_6 TQScintilla_1_7}
-const unsigned QSCINTILLA_VERSION;
-const char *QSCINTILLA_VERSION_STR;
-const char *QSCINTILLA_BUILD;
+const unsigned TQSCINTILLA_VERSION;
+const char *TQSCINTILLA_VERSION_STR;
+const char *TQSCINTILLA_BUILD;
%Include qextscintillaapis.sip
@@ -75,20 +75,20 @@ const char *QSCINTILLA_BUILD;
# 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.
@@ -97,7 +97,7 @@ TARGET = @BLX_TARGET_LIB@
DESTDIR = @PYQT_MODDIR@
CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@
INCLUDEPATH = @BLX_INCLUDEPATH@ @PYQT_QSCINTILLA_INC@
-DEFINES = @BLX_DEFINES@ QEXTSCINTILLA_DLL
+DEFINES = @BLX_DEFINES@ TQEXTSCINTILLA_DLL
LIBS += @PYQT_QT_MODULE@ @PYQT_QSCINTILLA_LIB@ @BLX_LIBS@
macx:QMAKE_LFLAGS += -framework Python
diff --git a/sip/qtgl/copying.sip b/sip/qtgl/copying.sip
index 463904b..6da646e 100644
--- a/sip/qtgl/copying.sip
+++ b/sip/qtgl/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/qtgl/qgl.sip b/sip/qtgl/qgl.sip
index e08b6a9..1e4feb1 100644
--- a/sip/qtgl/qgl.sip
+++ b/sip/qtgl/qgl.sip
@@ -1,62 +1,62 @@
-// This is the SIP interface definition for QGL, QGLContext, QGLFormat and
-// QGLWidget.
+// This is the SIP interface definition for TQGL, TQGLContext, TQGLFormat and
+// TQGLWidget.
//
// 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>QGL</Title>
+<Sect2><Title>TQGL</Title>
<Para>
-<Literal>QGL</Literal> is fully implemented.
+<Literal>TQGL</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGLContext</Title>
+<Sect2><Title>TQGLContext</Title>
<Para>
-<Literal>QGLContext</Literal> is fully implemented.
+<Literal>TQGLContext</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGLFormat</Title>
+<Sect2><Title>TQGLFormat</Title>
<Para>
-<Literal>QGLFormat</Literal> is fully implemented.
+<Literal>TQGLFormat</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QGLWidget</Title>
+<Sect2><Title>TQGLWidget</Title>
<Para>
-<Literal>QGLWidget</Literal> is fully implemented.
+<Literal>TQGLWidget</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_00 -)
+%If (TQt_2_00 -)
-const int QGL_VERSION;
-const char *QGL_VERSION_STR;
+const int TQGL_VERSION;
+const char *TQGL_VERSION_STR;
const char *qGLVersion();
-class QGL
+class TQGL
{
%TypeHeaderCode
#include <qgl.h>
@@ -86,15 +86,15 @@ public:
};
-class QGLFormat : QGL
+class TQGLFormat : TQGL
{
%TypeHeaderCode
#include <qgl.h>
%End
public:
- QGLFormat();
- QGLFormat(int,int = 0);
+ TQGLFormat();
+ TQGLFormat(int,int = 0);
bool doubleBuffer() const;
void setDoubleBuffer(bool);
@@ -121,55 +121,55 @@ public:
void setOption(FormatOption);
bool testOption(FormatOption) const;
- static QGLFormat defaultFormat();
- static void setDefaultFormat(const QGLFormat &);
+ static TQGLFormat defaultFormat();
+ static void setDefaultFormat(const TQGLFormat &);
- static QGLFormat defaultOverlayFormat();
- static void setDefaultOverlayFormat(const QGLFormat &);
+ static TQGLFormat defaultOverlayFormat();
+ static void setDefaultOverlayFormat(const TQGLFormat &);
static bool hasOpenGL();
static bool hasOpenGLOverlays();
};
-class QGLContext : QGL
+class TQGLContext : TQGL
{
%TypeHeaderCode
#include <qgl.h>
%End
public:
- QGLContext(const QGLFormat &,QPaintDevice *);
-%If (Qt_3_2_0 -)
- QGLContext(const QGLFormat &);
+ TQGLContext(const TQGLFormat &,TQPaintDevice *);
+%If (TQt_3_2_0 -)
+ TQGLContext(const TQGLFormat &);
%End
- virtual bool create(const QGLContext * = 0);
+ virtual bool create(const TQGLContext * = 0);
bool isValid() const;
bool isSharing() const;
virtual void reset();
- QGLFormat format() const;
-%If (Qt_3_0_0 -)
- QGLFormat requestedFormat() const;
+ TQGLFormat format() const;
+%If (TQt_3_0_0 -)
+ TQGLFormat requestedFormat() const;
%End
- virtual void setFormat(const QGLFormat &);
+ virtual void setFormat(const TQGLFormat &);
virtual void makeCurrent();
virtual void swapBuffers() const;
- QPaintDevice *device() const;
+ TQPaintDevice *device() const;
- QColor overlayTransparentColor() const;
+ TQColor overlayTransparentColor() const;
- static const QGLContext *currentContext();
+ static const TQGLContext *currentContext();
protected:
- virtual bool chooseContext(const QGLContext * = 0);
+ virtual bool chooseContext(const TQGLContext * = 0);
virtual void doneCurrent();
%If (WS_X11)
- virtual void *tryVisual(const QGLFormat &,int = 1);
+ virtual void *tryVisual(const TQGLFormat &,int = 1);
virtual void *chooseVisual();
%End
@@ -178,73 +178,73 @@ protected:
void setWindowCreated(bool);
bool initialized() const;
void setInitialized(bool);
-%If (Qt_3_1_0 -)
- void generateFontDisplayLists(const QFont &,int);
+%If (TQt_3_1_0 -)
+ void generateFontDisplayLists(const TQFont &,int);
%End
- uint colorIndex(const QColor &) const;
-%If (Qt_3_2_0 -)
+ uint colorIndex(const TQColor &) const;
+%If (TQt_3_2_0 -)
void setValid(bool);
- void setDevice(QPaintDevice *);
+ void setDevice(TQPaintDevice *);
%End
private:
- QGLContext();
- QGLContext(const QGLContext &);
+ TQGLContext();
+ TQGLContext(const TQGLContext &);
};
-class QGLWidget : QWidget, QGL
+class TQGLWidget : TQWidget, TQGL
{
%TypeHeaderCode
#include <qgl.h>
%End
public:
- QGLWidget(QWidget * /TransferThis/ = 0,const char * = 0,
- const QGLWidget * = 0,WFlags = 0);
-%If (Qt_3_2_0 -)
- QGLWidget(QGLContext * /Transfer/,QWidget * /TransferThis/ = 0,const char * = 0,
- const QGLWidget * = 0,WFlags = 0);
+ TQGLWidget(TQWidget * /TransferThis/ = 0,const char * = 0,
+ const TQGLWidget * = 0,WFlags = 0);
+%If (TQt_3_2_0 -)
+ TQGLWidget(TQGLContext * /Transfer/,TQWidget * /TransferThis/ = 0,const char * = 0,
+ const TQGLWidget * = 0,WFlags = 0);
%End
- QGLWidget(const QGLFormat &,QWidget * /TransferThis/ = 0,
- const char * = 0,const QGLWidget * = 0,WFlags = 0);
+ TQGLWidget(const TQGLFormat &,TQWidget * /TransferThis/ = 0,
+ const char * = 0,const TQGLWidget * = 0,WFlags = 0);
%ConvertToSubClassCode
sipClass = (sipCpp->inherits(sipName_QGLWidget) ? sipClass_QGLWidget : NULL);
%End
- void qglColor(const QColor &) const;
- void qglClearColor(const QColor &) const;
+ void qglColor(const TQColor &) const;
+ void qglClearColor(const TQColor &) const;
bool isValid() const;
bool isSharing() const;
virtual void makeCurrent();
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void doneCurrent();
%End
bool doubleBuffer() const;
virtual void swapBuffers();
- QGLFormat format() const;
+ TQGLFormat format() const;
- const QGLContext *context() const;
+ const TQGLContext *context() const;
- virtual QPixmap renderPixmap(int = 0,int = 0,bool = 0);
-%If (Qt_3_0_0 -)
- virtual QImage grabFrameBuffer(bool = 0);
+ virtual TQPixmap renderPixmap(int = 0,int = 0,bool = 0);
+%If (TQt_3_0_0 -)
+ virtual TQImage grabFrameBuffer(bool = 0);
%End
virtual void makeOverlayCurrent();
- const QGLContext *overlayContext() const;
+ const TQGLContext *overlayContext() const;
- static QImage convertToGLFormat(const QImage &);
+ static TQImage convertToGLFormat(const TQImage &);
void setMouseTracking(bool);
-%If (Qt_3_0_0 -)
- virtual void reparent(QWidget * /GetWrapper/,WFlags,const QPoint &,
+%If (TQt_3_0_0 -)
+ virtual void reparent(TQWidget * /GetWrapper/,WFlags,const TQPoint &,
bool = 0);
%MethodCode
if (sipCpp -> parent() != a0)
@@ -254,19 +254,19 @@ public:
sipTransferBack(sipSelf);
Py_BEGIN_ALLOW_THREADS
- sipSelfWasArg ? sipCpp->QGLWidget::reparent(a0, a1, *a2, a3) : sipCpp->reparent(a0, a1, *a2, a3);
+ sipSelfWasArg ? sipCpp->TQGLWidget::reparent(a0, a1, *a2, a3) : sipCpp->reparent(a0, a1, *a2, a3);
Py_END_ALLOW_THREADS
%End
- const QGLColormap &colormap() const;
- void setColormap(const QGLColormap &);
+ const TQGLColormap &colormap() const;
+ void setColormap(const TQGLColormap &);
%End
-%If (Qt_3_1_0 -)
- void renderText(int,int,const QString &,const QFont & = QFont(),
+%If (TQt_3_1_0 -)
+ void renderText(int,int,const TQString &,const TQFont & = TQFont(),
int = 2000);
- void renderText(double,double,double,const QString &,
- const QFont & = QFont(),int = 2000);
+ void renderText(double,double,double,const TQString &,
+ const TQFont & = TQFont(),int = 2000);
%End
public slots:
@@ -285,14 +285,14 @@ protected:
void setAutoBufferSwap(bool);
bool autoBufferSwap() const;
- void paintEvent(QPaintEvent *);
- void resizeEvent(QResizeEvent *);
+ void paintEvent(TQPaintEvent *);
+ void resizeEvent(TQResizeEvent *);
virtual void glInit();
virtual void glDraw();
private:
- QGLWidget(const QGLWidget &);
+ TQGLWidget(const TQGLWidget &);
};
%End
diff --git a/sip/qtgl/qglcolormap.sip b/sip/qtgl/qglcolormap.sip
index 512897e..591662a 100644
--- a/sip/qtgl/qglcolormap.sip
+++ b/sip/qtgl/qglcolormap.sip
@@ -1,31 +1,31 @@
-// This is the SIP interface definition for QGLColormap.
+// This is the SIP interface definition for TQGLColormap.
//
// 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>QGLColormap (Qt v3.0+)</Title>
+<Sect2><Title>TQGLColormap (TQt v3.0+)</Title>
<FuncSynopsis>
<FuncDef>void <Function>setEntries</Function></FuncDef>
<ParamDef>int <Parameter>count</Parameter></ParamDef>
- <ParamDef>const QRgb *<Parameter>colors</Parameter></ParamDef>
+ <ParamDef>const TQRgb *<Parameter>colors</Parameter></ParamDef>
<ParamDef>int <Parameter>base</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
@@ -35,29 +35,29 @@ Not yet implemented.
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QGLColormap
+class TQGLColormap
{
%TypeHeaderCode
#include <qglcolormap.h>
%End
public:
- QGLColormap();
- QGLColormap(const QGLColormap &);
+ TQGLColormap();
+ TQGLColormap(const TQGLColormap &);
bool isEmpty() const;
int size() const;
void detach();
-// void setEntries(int,const QRgb *,int = 0);
- void setEntry(int,QRgb);
- void setEntry(int,const QColor &);
- QRgb entryRgb(int) const;
- QColor entryColor(int) const;
- int find(QRgb) const;
- int findNearest(QRgb) const;
+// void setEntries(int,const TQRgb *,int = 0);
+ void setEntry(int,TQRgb);
+ void setEntry(int,const TQColor &);
+ TQRgb entryRgb(int) const;
+ TQColor entryColor(int) const;
+ int find(TQRgb) const;
+ int findNearest(TQRgb) const;
};
%End
diff --git a/sip/qtgl/qtglmod.sip b/sip/qtgl/qtglmod.sip
index 2d6a018..e5573e3 100644
--- a/sip/qtgl/qtglmod.sip
+++ b/sip/qtgl/qtglmod.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for the qtgl module of PyQt.
+// This is the SIP interface definition for the qtgl 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.
@@ -39,20 +39,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.
diff --git a/sip/qtnetwork/copying.sip b/sip/qtnetwork/copying.sip
index 463904b..6da646e 100644
--- a/sip/qtnetwork/copying.sip
+++ b/sip/qtnetwork/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/qtnetwork/qdns.sip b/sip/qtnetwork/qdns.sip
index b91bb9f..ed83928 100644
--- a/sip/qtnetwork/qdns.sip
+++ b/sip/qtnetwork/qdns.sip
@@ -1,38 +1,38 @@
-// This is the SIP interface definition for QDns.
+// This is the SIP interface definition for TQDns.
//
// 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>QDns (Qt v2.2+)</Title>
+<Sect2><Title>TQDns (TQt v2.2+)</Title>
<Para>
-<Literal>QDns</Literal> is fully implemented.
+<Literal>TQDns</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_DNS)
-%If (Qt_2_2_0 -)
+%If (TQt_DNS)
+%If (TQt_2_2_0 -)
-class QDns : QObject
+class TQDns : TQObject
{
%TypeHeaderCode
#include <qdns.h>
@@ -50,67 +50,67 @@ public:
Txt
};
- QDns();
- QDns(const QString &,RecordType = A);
- QDns(const QHostAddress &,RecordType = A);
+ TQDns();
+ TQDns(const TQString &,RecordType = A);
+ TQDns(const TQHostAddress &,RecordType = A);
- virtual void setLabel(const QString &);
- virtual void setLabel(const QHostAddress &);
- QString label() const;
+ virtual void setLabel(const TQString &);
+ virtual void setLabel(const TQHostAddress &);
+ TQString label() const;
virtual void setRecordType(RecordType = A);
RecordType recordType() const;
bool isWorking() const;
- QValueList<QHostAddress> addresses() const;
+ TQValueList<TQHostAddress> addresses() const;
class MailServer
{
public:
- MailServer(const QString & = QString::null,Q_UINT16 = 0);
+ MailServer(const TQString & = TQString::null,Q_UINT16 = 0);
- QString name;
+ TQString name;
Q_UINT16 priority;
};
- QValueList<QDns::MailServer> mailServers() const;
+ TQValueList<TQDns::MailServer> mailServers() const;
class Server
{
public:
- Server(const QString & = QString::null,Q_UINT16 = 0,
+ Server(const TQString & = TQString::null,Q_UINT16 = 0,
Q_UINT16 = 0,Q_UINT16 = 0);
- QString name;
+ TQString name;
Q_UINT16 priority;
Q_UINT16 weight;
Q_UINT16 port;
};
- QValueList<QDns::Server> servers() const;
+ TQValueList<TQDns::Server> servers() const;
- QStringList hostNames() const;
+ TQStringList hostNames() const;
- QStringList texts() const;
+ TQStringList texts() const;
- QString canonicalName() const;
+ TQString canonicalName() const;
- QStringList qualifiedNames() const;
+ TQStringList qualifiedNames() const;
signals:
void resultsReady();
};
-%MappedType QValueList<QHostAddress>
+%MappedType TQValueList<TQHostAddress>
{
%TypeHeaderCode
#include <qvaluelist.h>
%End
%ConvertFromTypeCode
- // Convert to a Python list of QHostAddress instances.
+ // Convert to a Python list of TQHostAddress instances.
int i;
PyObject *l;
@@ -123,13 +123,13 @@ signals:
// Get it.
i = 0;
- QValueListConstIterator<QHostAddress> it;
+ TQValueListConstIterator<TQHostAddress> it;
for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it)
{
PyObject *tmobj;
- if ((tmobj = sipConvertFromNewInstance(new QHostAddress(*it),sipClass_QHostAddress,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
+ if ((tmobj = sipConvertFromNewInstance(new TQHostAddress(*it),sipClass_QHostAddress,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
{
Py_XDECREF(tmobj);
Py_DECREF(l);
@@ -150,7 +150,7 @@ signals:
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- PyErr_Format(PyExc_TypeError,"Converting to QValueList<QHostAddress> not yet implemented");
+ PyErr_Format(PyExc_TypeError,"Converting to TQValueList<TQHostAddress> not yet implemented");
*sipIsErr = 1;
@@ -159,14 +159,14 @@ signals:
};
-%MappedType QValueList<QDns::MailServer>
+%MappedType TQValueList<TQDns::MailServer>
{
%TypeHeaderCode
#include <qvaluelist.h>
%End
%ConvertFromTypeCode
- // Convert to a Python list of QDns::MailServer instances.
+ // Convert to a Python list of TQDns::MailServer instances.
int i;
PyObject *l;
@@ -179,13 +179,13 @@ signals:
// Get it.
i = 0;
- QValueListConstIterator<QDns::MailServer> it;
+ TQValueListConstIterator<TQDns::MailServer> it;
for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it)
{
PyObject *tmobj;
- if ((tmobj = sipConvertFromNewInstance(new QDns::MailServer(*it),sipClass_QDns_MailServer,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
+ if ((tmobj = sipConvertFromNewInstance(new TQDns::MailServer(*it),sipClass_QDns_MailServer,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
{
Py_XDECREF(tmobj);
Py_DECREF(l);
@@ -206,7 +206,7 @@ signals:
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- PyErr_Format(PyExc_TypeError,"Converting to QValueList<QDns::MailServer> not yet implemented");
+ PyErr_Format(PyExc_TypeError,"Converting to TQValueList<TQDns::MailServer> not yet implemented");
*sipIsErr = 1;
@@ -215,14 +215,14 @@ signals:
};
-%MappedType QValueList<QDns::Server>
+%MappedType TQValueList<TQDns::Server>
{
%TypeHeaderCode
#include <qvaluelist.h>
%End
%ConvertFromTypeCode
- // Convert to a Python list of QDns::Server instances.
+ // Convert to a Python list of TQDns::Server instances.
int i;
PyObject *l;
@@ -235,13 +235,13 @@ signals:
// Get it.
i = 0;
- QValueListConstIterator<QDns::Server> it;
+ TQValueListConstIterator<TQDns::Server> it;
for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it)
{
PyObject *tmobj;
- if ((tmobj = sipConvertFromNewInstance(new QDns::Server(*it),sipClass_QDns_Server,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
+ if ((tmobj = sipConvertFromNewInstance(new TQDns::Server(*it),sipClass_QDns_Server,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
{
Py_XDECREF(tmobj);
Py_DECREF(l);
@@ -262,7 +262,7 @@ signals:
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- PyErr_Format(PyExc_TypeError,"Converting to QValueList<QDns::Server> not yet implemented");
+ PyErr_Format(PyExc_TypeError,"Converting to TQValueList<TQDns::Server> not yet implemented");
*sipIsErr = 1;
diff --git a/sip/qtnetwork/qftp.sip b/sip/qtnetwork/qftp.sip
index f79ecc1..e1e7613 100644
--- a/sip/qtnetwork/qftp.sip
+++ b/sip/qtnetwork/qftp.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QFtp.
+// This is the SIP interface definition for TQFtp.
//
// 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>QFtp (Qt v2.2+)</Title>
+<Sect2><Title>TQFtp (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
@@ -36,30 +36,30 @@ This takes a single <Literal>maxlen</Literal> parameter. The
%End
-%If (Qt_NETWORKPROTOCOL_FTP)
-%If (Qt_2_2_0 -)
+%If (TQt_NETWORKPROTOCOL_FTP)
+%If (TQt_2_2_0 -)
-class QFtp : QNetworkProtocol
+class TQFtp : TQNetworkProtocol
{
%TypeHeaderCode
#include <qftp.h>
%End
public:
- QFtp();
-%If (Qt_3_1_0 -)
- QFtp(QObject * /TransferThis/,const char * = 0);
+ TQFtp();
+%If (TQt_3_1_0 -)
+ TQFtp(TQObject * /TransferThis/,const char * = 0);
%End
- virtual ~QFtp();
+ virtual ~TQFtp();
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
int supportedOperations() const;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
virtual int supportedOperations() const;
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum State {
Unconnected,
HostLookup,
@@ -93,21 +93,21 @@ public:
RawCommand
};
- int connectToHost(const QString &,Q_UINT16 = 21) /ReleaseGIL/;
- int login(const QString & = QString::null,
- const QString & = QString::null) /ReleaseGIL/;
+ int connectToHost(const TQString &,Q_UINT16 = 21) /ReleaseGIL/;
+ int login(const TQString & = TQString::null,
+ const TQString & = TQString::null) /ReleaseGIL/;
int close() /ReleaseGIL/;
- int list(const QString & = QString::null) /ReleaseGIL/;
- int cd(const QString &) /ReleaseGIL/;
- int get(const QString &,QIODevice * = 0) /ReleaseGIL/;
- int put(const QByteArray &,const QString &) /ReleaseGIL/;
- int put(QIODevice *,const QString &) /ReleaseGIL/;
- int remove(const QString &) /ReleaseGIL/;
- int mkdir(const QString &) /ReleaseGIL/;
- int rmdir(const QString &) /ReleaseGIL/;
- int rename(const QString &,const QString &) /ReleaseGIL/;
-
- int rawCommand(const QString &) /ReleaseGIL/;
+ int list(const TQString & = TQString::null) /ReleaseGIL/;
+ int cd(const TQString &) /ReleaseGIL/;
+ int get(const TQString &,TQIODevice * = 0) /ReleaseGIL/;
+ int put(const TQByteArray &,const TQString &) /ReleaseGIL/;
+ int put(TQIODevice *,const TQString &) /ReleaseGIL/;
+ int remove(const TQString &) /ReleaseGIL/;
+ int mkdir(const TQString &) /ReleaseGIL/;
+ int rmdir(const TQString &) /ReleaseGIL/;
+ int rename(const TQString &,const TQString &) /ReleaseGIL/;
+
+ int rawCommand(const TQString &) /ReleaseGIL/;
unsigned long bytesAvailable() const;
@@ -122,7 +122,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipCpp -> QFtp::readBlock(buf,a0);
+ actlen = sipCpp -> TQFtp::readBlock(buf,a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -137,10 +137,10 @@ public:
}
%End
- QByteArray readAll() /ReleaseGIL/;
+ TQByteArray readAll() /ReleaseGIL/;
int currentId() const;
- QIODevice* currentDevice() const;
+ TQIODevice* currentDevice() const;
Command currentCommand() const;
bool hasPendingCommands() const;
void clearPendingCommands();
@@ -148,21 +148,21 @@ public:
State state() const;
Error error() const;
- QString errorString() const;
+ TQString errorString() const;
%End
public slots:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void abort();
%End
signals:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void stateChanged(int);
- void listInfo(const QUrlInfo &);
+ void listInfo(const TQUrlInfo &);
void readyRead();
void dataTransferProgress(int,int);
- void rawCommandReply(int,const QString &);
+ void rawCommandReply(int,const TQString &);
void commandStarted(int);
void commandFinished(int,bool);
@@ -170,13 +170,13 @@ signals:
%End
protected:
- void parseDir(const QString &,QUrlInfo &);
- virtual void operationListChildren(QNetworkOperation *);
- virtual void operationMkDir(QNetworkOperation *);
- virtual void operationRemove(QNetworkOperation *);
- virtual void operationRename(QNetworkOperation *);
- virtual void operationGet(QNetworkOperation *);
- virtual void operationPut(QNetworkOperation *);
+ void parseDir(const TQString &,TQUrlInfo &);
+ virtual void operationListChildren(TQNetworkOperation *);
+ virtual void operationMkDir(TQNetworkOperation *);
+ virtual void operationRemove(TQNetworkOperation *);
+ virtual void operationRename(TQNetworkOperation *);
+ virtual void operationGet(TQNetworkOperation *);
+ virtual void operationPut(TQNetworkOperation *);
};
%End
diff --git a/sip/qtnetwork/qhostaddress.sip b/sip/qtnetwork/qhostaddress.sip
index e2379e2..4862672 100644
--- a/sip/qtnetwork/qhostaddress.sip
+++ b/sip/qtnetwork/qhostaddress.sip
@@ -1,29 +1,29 @@
-// This is the SIP interface definition for QHostAddress.
+// This is the SIP interface definition for TQHostAddress.
//
// 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>QHostAddress (Qt v2.2+)</Title>
+<Sect2><Title>TQHostAddress (TQt v2.2+)</Title>
<FuncSynopsis>
- <FuncDef><Function>QHostAddress</Function></FuncDef>
+ <FuncDef><Function>TQHostAddress</Function></FuncDef>
<ParamDef>Q_UINT8 *<Parameter>ip6Addr</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -31,7 +31,7 @@ Not yet implemented.
</Para>
<FuncSynopsis>
- <FuncDef><Function>QHostAddress</Function></FuncDef>
+ <FuncDef><Function>TQHostAddress</Function></FuncDef>
<ParamDef>const Q_IPV6ADDR &amp;<Parameter>ip6Addr</Parameter></ParamDef>
</FuncSynopsis>
<Para>
@@ -57,41 +57,41 @@ Not yet implemented.
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
-class QHostAddress
+class TQHostAddress
{
%TypeHeaderCode
#include <qhostaddress.h>
%End
public:
- QHostAddress();
- QHostAddress(Q_UINT32);
-// QHostAddress(Q_UINT8 *);
-%If (Qt_3_3_0 -)
- //QHostAddress(const Q_IPV6ADDR &);
+ TQHostAddress();
+ TQHostAddress(Q_UINT32);
+// TQHostAddress(Q_UINT8 *);
+%If (TQt_3_3_0 -)
+ //TQHostAddress(const Q_IPV6ADDR &);
// This isn't mentioned in the documentation.
- //QHostAddress(const QString &);
+ //TQHostAddress(const TQString &);
%End
- QHostAddress(const QHostAddress &);
+ TQHostAddress(const TQHostAddress &);
void setAddress(Q_UINT32);
// void setAddress(Q_UINT8 *);
- bool setAddress(const QString &);
+ bool setAddress(const TQString &);
bool isIp4Addr() const;
Q_UINT32 ip4Addr() const;
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
bool isIPv4Address() const;
Q_UINT32 toIPv4Address() const;
bool isIPv6Address() const;
//Q_IPV6ADDR toIPv6Address() const;
%End
- QString toString() const;
+ TQString toString() const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
bool isNull() const;
%End
};
diff --git a/sip/qtnetwork/qhttp.sip b/sip/qtnetwork/qhttp.sip
index fbcc999..966cccf 100644
--- a/sip/qtnetwork/qhttp.sip
+++ b/sip/qtnetwork/qhttp.sip
@@ -1,28 +1,28 @@
-// This is the SIP interface definition for QHttp, QHttpHeader,
-// QHttpRequestHeader and QHttpResponseHeader.
+// This is the SIP interface definition for TQHttp, TQHttpHeader,
+// TQHttpRequestHeader and TQHttpResponseHeader.
//
// 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>QHttp (Qt v3+)</Title>
+<Sect2><Title>TQHttp (TQt v3+)</Title>
<FuncSynopsis>
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
@@ -35,141 +35,141 @@ This takes a single <Literal>maxlen</Literal> parameter. The
</Para>
</Sect2>
-<Sect2><Title>QHttpHeader (Qt v3.1+)</Title>
+<Sect2><Title>TQHttpHeader (TQt v3.1+)</Title>
<Para>
-<Literal>QHttpHeader</Literal> is fully implemented.
+<Literal>TQHttpHeader</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QHttpRequestHeader (Qt v3.1+)</Title>
+<Sect2><Title>TQHttpRequestHeader (TQt v3.1+)</Title>
<Para>
-<Literal>QHttpRequestHeader</Literal> is fully implemented.
+<Literal>TQHttpRequestHeader</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QHttpResponseHeader (Qt v3.1+)</Title>
+<Sect2><Title>TQHttpResponseHeader (TQt v3.1+)</Title>
<Para>
-<Literal>QHttpResponseHeader</Literal> is fully implemented.
+<Literal>TQHttpResponseHeader</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_NETWORKPROTOCOL_HTTP)
-%If (Qt_3_1_0 -)
+%If (TQt_NETWORKPROTOCOL_HTTP)
+%If (TQt_3_1_0 -)
-class QHttpHeader
+class TQHttpHeader
{
%TypeHeaderCode
#include <qhttp.h>
%End
public:
- QHttpHeader();
- QHttpHeader(const QHttpHeader &);
- QHttpHeader(const QString &);
- virtual ~QHttpHeader();
+ TQHttpHeader();
+ TQHttpHeader(const TQHttpHeader &);
+ TQHttpHeader(const TQString &);
+ virtual ~TQHttpHeader();
- QString value(const QString &) const;
- void setValue(const QString &,const QString &);
- void removeValue(const QString &);
+ TQString value(const TQString &) const;
+ void setValue(const TQString &,const TQString &);
+ void removeValue(const TQString &);
- QStringList keys() const;
- bool hasKey(const QString &) const;
+ TQStringList keys() const;
+ bool hasKey(const TQString &) const;
bool hasContentLength() const;
uint contentLength() const;
void setContentLength(int);
bool hasContentType() const;
- QString contentType() const;
- void setContentType(const QString &);
+ TQString contentType() const;
+ void setContentType(const TQString &);
- virtual QString toString() const;
+ virtual TQString toString() const;
bool isValid() const;
virtual int majorVersion() const = 0;
virtual int minorVersion() const = 0;
protected:
- virtual bool parseLine(const QString &,int);
- bool parse(const QString &);
+ virtual bool parseLine(const TQString &,int);
+ bool parse(const TQString &);
void setValid(bool);
};
-class QHttpResponseHeader : QHttpHeader
+class TQHttpResponseHeader : TQHttpHeader
{
%TypeHeaderCode
#include <qhttp.h>
%End
public:
- QHttpResponseHeader();
- QHttpResponseHeader(const QHttpResponseHeader &);
+ TQHttpResponseHeader();
+ TQHttpResponseHeader(const TQHttpResponseHeader &);
int statusCode() const;
- QString reasonPhrase() const;
+ TQString reasonPhrase() const;
int majorVersion() const;
int minorVersion() const;
- QString toString() const;
+ TQString toString() const;
protected:
- bool parseLine(const QString &,int);
+ bool parseLine(const TQString &,int);
};
-class QHttpRequestHeader : QHttpHeader
+class TQHttpRequestHeader : TQHttpHeader
{
%TypeHeaderCode
#include <qhttp.h>
%End
public:
- QHttpRequestHeader();
- QHttpRequestHeader(const QString &,const QString &,int = 1,int = 1);
- QHttpRequestHeader(const QHttpRequestHeader &);
- QHttpRequestHeader(const QString &);
+ TQHttpRequestHeader();
+ TQHttpRequestHeader(const TQString &,const TQString &,int = 1,int = 1);
+ TQHttpRequestHeader(const TQHttpRequestHeader &);
+ TQHttpRequestHeader(const TQString &);
- void setRequest(const QString &,const QString &,int = 1,int = 1);
+ void setRequest(const TQString &,const TQString &,int = 1,int = 1);
- QString method() const;
- QString path() const;
+ TQString method() const;
+ TQString path() const;
int majorVersion() const;
int minorVersion() const;
- QString toString() const;
+ TQString toString() const;
protected:
- bool parseLine(const QString &,int);
+ bool parseLine(const TQString &,int);
};
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QHttp : QNetworkProtocol
+class TQHttp : TQNetworkProtocol
{
%TypeHeaderCode
#include <qhttp.h>
%End
public:
- QHttp();
-%If (Qt_3_1_0 -)
- QHttp(QObject * /TransferThis/,const char * = 0);
- QHttp(const QString &,Q_UINT16 = 80,QObject * /TransferThis/ = 0,
+ TQHttp();
+%If (TQt_3_1_0 -)
+ TQHttp(TQObject * /TransferThis/,const char * = 0);
+ TQHttp(const TQString &,Q_UINT16 = 80,TQObject * /TransferThis/ = 0,
const char * = 0);
- virtual ~QHttp();
+ virtual ~TQHttp();
%End
int supportedOperations() const;
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
enum State {
Unconnected,
HostLookup,
@@ -191,17 +191,17 @@ public:
Aborted
};
- int setHost(const QString &,Q_UINT16 = 80);
+ int setHost(const TQString &,Q_UINT16 = 80);
- int get(const QString &,QIODevice * = 0) /ReleaseGIL/;
- int post(const QString &,QIODevice *,QIODevice * = 0) /ReleaseGIL/;
- int post(const QString &,const QByteArray &,
- QIODevice * = 0) /ReleaseGIL/;
- int head(const QString &) /ReleaseGIL/;
- int request(const QHttpRequestHeader &,QIODevice * = 0,
- QIODevice * = 0) /ReleaseGIL/;
- int request(const QHttpRequestHeader &,const QByteArray &,
- QIODevice * = 0) /ReleaseGIL/;
+ int get(const TQString &,TQIODevice * = 0) /ReleaseGIL/;
+ int post(const TQString &,TQIODevice *,TQIODevice * = 0) /ReleaseGIL/;
+ int post(const TQString &,const TQByteArray &,
+ TQIODevice * = 0) /ReleaseGIL/;
+ int head(const TQString &) /ReleaseGIL/;
+ int request(const TQHttpRequestHeader &,TQIODevice * = 0,
+ TQIODevice * = 0) /ReleaseGIL/;
+ int request(const TQHttpRequestHeader &,const TQByteArray &,
+ TQIODevice * = 0) /ReleaseGIL/;
int closeConnection();
@@ -218,7 +218,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipCpp -> QHttp::readBlock(buf,a0);
+ actlen = sipCpp -> TQHttp::readBlock(buf,a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -233,31 +233,31 @@ public:
}
%End
- QByteArray readAll() /ReleaseGIL/;
+ TQByteArray readAll() /ReleaseGIL/;
int currentId() const;
- QIODevice *currentSourceDevice() const;
- QIODevice *currentDestinationDevice() const;
- QHttpRequestHeader currentRequest() const;
+ TQIODevice *currentSourceDevice() const;
+ TQIODevice *currentDestinationDevice() const;
+ TQHttpRequestHeader currentRequest() const;
bool hasPendingRequests() const;
void clearPendingRequests();
State state() const;
Error error() const;
- QString errorString() const;
+ TQString errorString() const;
%End
public slots:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void abort();
%End
signals:
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void stateChanged(int);
- void responseHeaderReceived(const QHttpResponseHeader &);
- void readyRead(const QHttpResponseHeader &);
+ void responseHeaderReceived(const TQHttpResponseHeader &);
+ void readyRead(const TQHttpResponseHeader &);
void dataSendProgress(int,int);
void dataReadProgress(int,int);
@@ -267,11 +267,11 @@ signals:
%End
protected:
- void operationGet(QNetworkOperation *);
- void operationPut(QNetworkOperation *);
+ void operationGet(TQNetworkOperation *);
+ void operationPut(TQNetworkOperation *);
-%If (Qt_3_1_0 -)
- void timerEvent(QTimerEvent *);
+%If (TQt_3_1_0 -)
+ void timerEvent(TQTimerEvent *);
%End
};
diff --git a/sip/qtnetwork/qlocalfs.sip b/sip/qtnetwork/qlocalfs.sip
index a8b816f..59f15eb 100644
--- a/sip/qtnetwork/qlocalfs.sip
+++ b/sip/qtnetwork/qlocalfs.sip
@@ -1,55 +1,55 @@
-// This is the SIP interface definition for QLocalFs.
+// This is the SIP interface definition for TQLocalFs.
//
// 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>QLocalFs (Qt v2.1+)</Title>
+<Sect2><Title>TQLocalFs (TQt v2.1+)</Title>
<Para>
-<Literal>QLocalFs</Literal> is fully implemented.
+<Literal>TQLocalFs</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_NETWORKPROTOCOL)
-%If (Qt_2_1_0 -)
+%If (TQt_NETWORKPROTOCOL)
+%If (TQt_2_1_0 -)
-class QLocalFs : QNetworkProtocol
+class TQLocalFs : TQNetworkProtocol
{
%TypeHeaderCode
#include <qlocalfs.h>
%End
public:
- QLocalFs();
+ TQLocalFs();
virtual int supportedOperations() const;
protected:
- virtual void operationListChildren(QNetworkOperation *);
- virtual void operationMkDir(QNetworkOperation *);
- virtual void operationRemove(QNetworkOperation *);
- virtual void operationRename(QNetworkOperation *);
- virtual void operationGet(QNetworkOperation *);
- virtual void operationPut(QNetworkOperation *);
+ virtual void operationListChildren(TQNetworkOperation *);
+ virtual void operationMkDir(TQNetworkOperation *);
+ virtual void operationRemove(TQNetworkOperation *);
+ virtual void operationRename(TQNetworkOperation *);
+ virtual void operationGet(TQNetworkOperation *);
+ virtual void operationPut(TQNetworkOperation *);
};
%End
diff --git a/sip/qtnetwork/qnetwork.sip b/sip/qtnetwork/qnetwork.sip
index 6b87d4e..ef4db4b 100644
--- a/sip/qtnetwork/qnetwork.sip
+++ b/sip/qtnetwork/qnetwork.sip
@@ -3,25 +3,25 @@
// 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.
-%If (Qt_NETWORKPROTOCOL)
-%If (Qt_2_2_0 -)
+%If (TQt_NETWORKPROTOCOL)
+%If (TQt_2_2_0 -)
%ModuleHeaderCode
#include <qglobal.h>
diff --git a/sip/qtnetwork/qserversocket.sip b/sip/qtnetwork/qserversocket.sip
index c130969..ce83d7b 100644
--- a/sip/qtnetwork/qserversocket.sip
+++ b/sip/qtnetwork/qserversocket.sip
@@ -1,56 +1,56 @@
-// This is the SIP interface definition for QServerSocket.
+// This is the SIP interface definition for TQServerSocket.
//
// 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>QServerSocket (Qt v2.2+)</Title>
+<Sect2><Title>TQServerSocket (TQt v2.2+)</Title>
<Para>
-<Literal>QServerSocket</Literal> is fully implemented.
+<Literal>TQServerSocket</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
-class QServerSocket : QObject
+class TQServerSocket : TQObject
{
%TypeHeaderCode
#include <qserversocket.h>
%End
public:
-%If (- Qt_3_0_0)
- QServerSocket(Q_UINT16,int = 0,QObject * /TransferThis/ = 0,
+%If (- TQt_3_0_0)
+ TQServerSocket(Q_UINT16,int = 0,TQObject * /TransferThis/ = 0,
const char * = 0);
- QServerSocket(const QHostAddress &,Q_UINT16,int = 0,
- QObject * /TransferThis/ = 0,const char * = 0);
+ TQServerSocket(const TQHostAddress &,Q_UINT16,int = 0,
+ TQObject * /TransferThis/ = 0,const char * = 0);
%End
-%If (Qt_3_0_0 -)
- QServerSocket(Q_UINT16,int = 1,QObject * /TransferThis/ = 0,
+%If (TQt_3_0_0 -)
+ TQServerSocket(Q_UINT16,int = 1,TQObject * /TransferThis/ = 0,
const char * = 0);
- QServerSocket(const QHostAddress &,Q_UINT16,int = 1,
- QObject * /TransferThis/ = 0,const char * = 0);
+ TQServerSocket(const TQHostAddress &,Q_UINT16,int = 1,
+ TQObject * /TransferThis/ = 0,const char * = 0);
%End
- QServerSocket(QObject * /TransferThis/ = 0,const char * = 0);
+ TQServerSocket(TQObject * /TransferThis/ = 0,const char * = 0);
bool ok() const;
@@ -59,12 +59,12 @@ public:
int socket() const;
virtual void setSocket(int);
- QHostAddress address() const ;
+ TQHostAddress address() const ;
virtual void newConnection(int) = 0;
protected:
- QSocketDevice *socketDevice();
+ TQSocketDevice *socketDevice();
};
%End
diff --git a/sip/qtnetwork/qsocket.sip b/sip/qtnetwork/qsocket.sip
index 9da9bfc..a9cd733 100644
--- a/sip/qtnetwork/qsocket.sip
+++ b/sip/qtnetwork/qsocket.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QSocket.
+// This is the SIP interface definition for TQSocket.
//
// 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>QSocket (Qt v2.2+)</Title>
+<Sect2><Title>TQSocket (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
@@ -57,9 +57,9 @@ as a parameter.
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
-class QSocket : QObject, QIODevice
+class TQSocket : TQObject, TQIODevice
{
%TypeHeaderCode
#include <qsocket.h>
@@ -72,16 +72,16 @@ public:
ErrSocketRead
};
- QSocket(QObject * /TransferThis/ = 0,const char * = 0);
+ TQSocket(TQObject * /TransferThis/ = 0,const char * = 0);
enum State {
Idle,
HostLookup,
Connecting,
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Connected,
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
Listening,
%End
Closing,
@@ -130,47 +130,47 @@ public:
int socket() const;
virtual void setSocket(int);
-%If (Qt_3_0_0 -)
- QSocketDevice *socketDevice();
- virtual void setSocketDevice(QSocketDevice *);
+%If (TQt_3_0_0 -)
+ TQSocketDevice *socketDevice();
+ virtual void setSocketDevice(TQSocketDevice *);
%End
-%If (Qt_DNS)
- virtual void connectToHost(const QString &,Q_UINT16) /ReleaseGIL/;
+%If (TQt_DNS)
+ virtual void connectToHost(const TQString &,Q_UINT16) /ReleaseGIL/;
%End
- QString peerName() const;
+ TQString peerName() const;
bool open(int) /ReleaseGIL/;
void close() /ReleaseGIL/;
void flush() /ReleaseGIL/;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Offset size() const;
Offset at() const;
bool at(Offset);
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
uint size() const;
int at() const;
bool at(int);
%End
bool atEnd() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Q_ULONG bytesAvailable() const;
Q_ULONG waitForMore(int) const /ReleaseGIL/;
//Q_ULONG waitForMore(int,bool *) const /ReleaseGIL/;
Q_ULONG bytesToWrite() const;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int bytesAvailable() const;
int waitForMore(int) const /ReleaseGIL/;
int bytesToWrite() const;
%End
-%If (Qt_3_1_0 -)
+%If (TQt_3_1_0 -)
void clearPendingData();
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
SIP_PYOBJECT readBlock(uint) /ReleaseGIL/ [int (char *,uint)];
%MethodCode
char *buf;
@@ -182,7 +182,7 @@ public:
int actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QSocket::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
+ actlen = sipSelfWasArg ? sipCpp->TQSocket::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -239,7 +239,7 @@ public:
}
%End
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
SIP_PYOBJECT readBlock(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)];
%MethodCode
char *buf;
@@ -251,7 +251,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QSocket::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
+ actlen = sipSelfWasArg ? sipCpp->TQSocket::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -315,14 +315,14 @@ public:
int ungetch(int);
bool canReadLine() const;
- virtual QString readLine() /ReleaseGIL/;
+ virtual TQString readLine() /ReleaseGIL/;
Q_UINT16 port() const;
Q_UINT16 peerPort() const;
- QHostAddress address() const;
- QHostAddress peerAddress() const;
+ TQHostAddress address() const;
+ TQHostAddress peerAddress() const;
-%If (Qt_3_2_0 -)
+%If (TQt_3_2_0 -)
void setReadBufferSize(Q_ULONG);
Q_ULONG readBufferSize() const;
%End
@@ -337,12 +337,12 @@ signals:
void error(int);
protected:
-%If (- Qt_3_0_0)
- QSocketDevice *socketDevice();
+%If (- TQt_3_0_0)
+ TQSocketDevice *socketDevice();
%End
private:
- QSocket(const QSocket &);
+ TQSocket(const TQSocket &);
};
%End
diff --git a/sip/qtnetwork/qsocketdevice.sip b/sip/qtnetwork/qsocketdevice.sip
index 3b48096..b9249d8 100644
--- a/sip/qtnetwork/qsocketdevice.sip
+++ b/sip/qtnetwork/qsocketdevice.sip
@@ -1,27 +1,27 @@
-// This is the SIP interface definition for QSocketDevice.
+// This is the SIP interface definition for TQSocketDevice.
//
// 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>QSocketDevice (Qt v2.2+)</Title>
+<Sect2><Title>TQSocketDevice (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
@@ -46,9 +46,9 @@ as a parameter.
%End
-%If (Qt_2_2_0 -)
+%If (TQt_2_2_0 -)
-class QSocketDevice : QIODevice
+class TQSocketDevice : TQIODevice
{
%TypeHeaderCode
#include <qsocketdevice.h>
@@ -60,7 +60,7 @@ public:
Datagram
};
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
enum Protocol {
IPv4,
IPv6,
@@ -68,15 +68,15 @@ public:
};
%End
- QSocketDevice(Type = Stream);
-%If (Qt_3_3_0 -)
- QSocketDevice(Type,Protocol,int);
+ TQSocketDevice(Type = Stream);
+%If (TQt_3_3_0 -)
+ TQSocketDevice(Type,Protocol,int);
%End
- QSocketDevice(int,Type);
+ TQSocketDevice(int,Type);
bool isValid() const;
Type type() const;
-%If (Qt_3_3_0 -)
+%If (TQt_3_3_0 -)
Protocol protocol() const;
%End
@@ -87,12 +87,12 @@ public:
void close();
void flush() /ReleaseGIL/;
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
uint size() const;
int at() const;
bool at(int);
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Offset size() const;
Offset at() const;
bool at(Offset);
@@ -110,22 +110,22 @@ public:
int sendBufferSize() const;
virtual void setSendBufferSize(uint);
- virtual bool connect(const QHostAddress &,Q_UINT16);
+ virtual bool connect(const TQHostAddress &,Q_UINT16);
- virtual bool bind(const QHostAddress &,Q_UINT16);
+ virtual bool bind(const TQHostAddress &,Q_UINT16);
virtual bool listen(int);
virtual int accept();
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
int bytesAvailable() const;
int waitForMore(int) const /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
Q_LONG bytesAvailable() const;
Q_LONG waitForMore(int) const /ReleaseGIL/;
%End
-%If (- Qt_3_0_0)
+%If (- TQt_3_0_0)
SIP_PYOBJECT readBlock(uint) /ReleaseGIL/ [int (char *,uint)];
%MethodCode
char *buf;
@@ -137,7 +137,7 @@ public:
int actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QSocketDevice::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
+ actlen = sipSelfWasArg ? sipCpp->TQSocketDevice::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -154,9 +154,9 @@ public:
int writeBlock(const char * /Array/,uint /ArraySize/) /ReleaseGIL/;
virtual int writeBlock(const char * /Array/,uint /ArraySize/,
- const QHostAddress &,Q_UINT16) /ReleaseGIL/;
+ const TQHostAddress &,Q_UINT16) /ReleaseGIL/;
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
SIP_PYOBJECT readBlock(Q_ULONG) /ReleaseGIL/ [Q_LONG (char *,Q_ULONG)];
%MethodCode
char *buf;
@@ -168,7 +168,7 @@ public:
Q_LONG actlen;
Py_BEGIN_ALLOW_THREADS
- actlen = sipSelfWasArg ? sipCpp->QSocketDevice::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
+ actlen = sipSelfWasArg ? sipCpp->TQSocketDevice::readBlock(buf, a0) : sipCpp->readBlock(buf, a0);
Py_END_ALLOW_THREADS
if (actlen < 0)
@@ -187,7 +187,7 @@ public:
Q_LONG writeBlock(const char * /Array/,
Q_ULONG /ArraySize/) /ReleaseGIL/;
virtual Q_LONG writeBlock(const char * /Array/,Q_ULONG /ArraySize/,
- const QHostAddress &,Q_UINT16) /ReleaseGIL/;
+ const TQHostAddress &,Q_UINT16) /ReleaseGIL/;
%End
int getch();
@@ -196,8 +196,8 @@ public:
Q_UINT16 port() const;
Q_UINT16 peerPort() const;
- QHostAddress address() const;
- QHostAddress peerAddress() const;
+ TQHostAddress address() const;
+ TQHostAddress peerAddress() const;
enum Error {
NoError,
@@ -218,7 +218,7 @@ protected:
void setError(Error);
private:
- QSocketDevice(const QSocketDevice &);
+ TQSocketDevice(const TQSocketDevice &);
};
%End
diff --git a/sip/qtnetwork/qtnetworkmod.sip b/sip/qtnetwork/qtnetworkmod.sip
index ca580d7..aeb6b9e 100644
--- a/sip/qtnetwork/qtnetworkmod.sip
+++ b/sip/qtnetwork/qtnetworkmod.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for the qtnetwork module of PyQt.
+// This is the SIP interface definition for the qtnetwork 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.
@@ -46,20 +46,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.
diff --git a/sip/qtpe/copying.sip b/sip/qtpe/copying.sip
index 463904b..6da646e 100644
--- a/sip/qtpe/copying.sip
+++ b/sip/qtpe/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/qtpe/qpeapplication.sip b/sip/qtpe/qpeapplication.sip
index f71240e..de404c0 100644
--- a/sip/qtpe/qpeapplication.sip
+++ b/sip/qtpe/qpeapplication.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for QPEApplication.
+// This is the SIP interface definition for TQPEApplication.
//
// 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.
@@ -26,7 +26,7 @@
%If (WS_QWS)
-class QPEApplication : QApplication
+class TQPEApplication : TQApplication
{
%TypeHeaderCode
#include <qpe/qpeapplication.h>
@@ -34,7 +34,7 @@ class QPEApplication : QApplication
%End
public:
- QPEApplication(SIP_PYLIST,Type=GuiClient) [(int &,char **,Type=GuiClient)];
+ TQPEApplication(SIP_PYLIST,Type=GuiClient) [(int &,char **,Type=GuiClient)];
%MethodCode
// The Python interface is a list of argument strings that is
// modified.
@@ -51,7 +51,7 @@ public:
int nargc = argc;
Py_BEGIN_ALLOW_THREADS
- sipCpp = new sipQPEApplication(nargc,argv,(QApplication::Type)a1);
+ sipCpp = new sipTQPEApplication(nargc,argv,(TQApplication::Type)a1);
Py_END_ALLOW_THREADS
// Now modify the original list.
@@ -59,14 +59,14 @@ public:
}
%End
- ~QPEApplication();
+ ~TQPEApplication();
%MethodCode
- // See the comments in ~QApplication() to understand what's
+ // See the comments in ~TQApplication() to understand what's
// being done here.
- QWidgetList *tlw = QApplication::topLevelWidgets();
- QWidgetListIt it(*tlw);
- QWidget *w;
+ TQWidgetList *tlw = TQApplication::topLevelWidgets();
+ TQWidgetListIt it(*tlw);
+ TQWidget *w;
while ((w = it.current()) != 0)
{
@@ -97,8 +97,8 @@ public:
sizeof (map)/sizeof (map[0]));
%End
- static QString qpeDir();
- static QString documentDir();
+ static TQString qpeDir();
+ static TQString documentDir();
void applyStyle();
static int defaultRotation();
static void setDefaultRotation(int);
@@ -110,8 +110,8 @@ public:
RightOnHold
};
- static void setStylusOperation(QWidget *,StylusMode);
- static StylusMode stylusOperation(QWidget *);
+ static void setStylusOperation(TQWidget *,StylusMode);
+ static StylusMode stylusOperation(TQWidget *);
enum InputMethodHint {
Normal,
@@ -126,38 +126,38 @@ public:
Enable
};
- static void setInputMethodHint(QWidget *,InputMethodHint);
- static InputMethodHint inputMethodHint(QWidget *);
+ static void setInputMethodHint(TQWidget *,InputMethodHint);
+ static InputMethodHint inputMethodHint(TQWidget *);
- void showMainWidget(QWidget *,bool = 0);
- void showMainDocumentWidget(QWidget *,bool = 0);
+ void showMainWidget(TQWidget *,bool = 0);
+ void showMainDocumentWidget(TQWidget *,bool = 0);
static void setKeepRunning();
bool keepRunning() const;
int exec() /PyName=exec_loop, ReleaseGIL,
- PreHook=__pyQtPreEventLoopHook__,
- PostHook=__pyQtPostEventLoopHook__/;
+ PreHook=__pyTQtPreEventLoopHook__,
+ PostHook=__pyTQtPostEventLoopHook__/;
signals:
void clientMoused();
void timeChanged();
void clockChanged(bool);
void volumeChanged(bool);
- void appMessage(const QCString &,const QByteArray &);
+ void appMessage(const TQCString &,const TQByteArray &);
void weekChanged(bool);
void dateFormatChanged(DateFormat);
void flush();
void reload();
protected:
-// bool qwsEventFilter(QWSEvent *);
-// void internalSetStyle(const QString &);
+// bool qwsEventFilter(TQWSEvent *);
+// void internalSetStyle(const TQString &);
void prepareForTermination(bool);
virtual void restart();
virtual void shutdown();
- bool eventFilter(QObject *,QEvent *);
- void timerEvent(QTimerEvent *);
+ bool eventFilter(TQObject *,TQEvent *);
+ void timerEvent(TQTimerEvent *);
bool keyboardGrabbed() const;
bool raiseAppropriateWindow();
virtual void tryQuit();
diff --git a/sip/qtpe/qpeapplnk.sip b/sip/qtpe/qpeapplnk.sip
index f817ae5..9bf07fa 100644
--- a/sip/qtpe/qpeapplnk.sip
+++ b/sip/qtpe/qpeapplnk.sip
@@ -4,20 +4,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.
@@ -35,7 +35,7 @@ class AppLnk
public:
AppLnk();
- AppLnk(const QString &);
+ AppLnk(const TQString &);
AppLnk(const AppLnk &);
bool isValid() const;
@@ -45,43 +45,43 @@ public:
static int smallIconSize();
static int bigIconSize();
- QString name() const;
- const QPixmap& pixmap() const;
- const QPixmap& bigPixmap() const;
- virtual QString exec() const /PyName=exec_property/;
- QString type() const;
- QString rotation() const;
- QString comment() const;
- QString file() const;
- QString linkFile() const;
- QStringList mimeTypes() const;
- QStringList mimeTypeIcons() const;
- const QArray<int> &categories() const;
+ TQString name() const;
+ const TQPixmap& pixmap() const;
+ const TQPixmap& bigPixmap() const;
+ virtual TQString exec() const /PyName=exec_property/;
+ TQString type() const;
+ TQString rotation() const;
+ TQString comment() const;
+ TQString file() const;
+ TQString linkFile() const;
+ TQStringList mimeTypes() const;
+ TQStringList mimeTypeIcons() const;
+ const TQArray<int> &categories() const;
int id() const;
bool fileKnown() const;
bool linkFileKnown() const;
void execute() const /ReleaseGIL/;
- void execute(const QStringList &) const /ReleaseGIL/;
+ void execute(const TQStringList &) const /ReleaseGIL/;
void removeFiles();
void removeLinkFile();
- void setName(const QString &);
- void setExec(const QString &);
- void setFile(const QString &);
- void setLinkFile(const QString &);
- void setComment(const QString &);
- void setType(const QString &);
- void setIcon(const QString &);
- void setCategories(const QArray<int> &);
+ void setName(const TQString &);
+ void setExec(const TQString &);
+ void setFile(const TQString &);
+ void setLinkFile(const TQString &);
+ void setComment(const TQString &);
+ void setType(const TQString &);
+ void setIcon(const TQString &);
+ void setCategories(const TQArray<int> &);
bool writeLink() const;
- void setProperty(const QString &,const QString &);
- QString property(const QString &) const;
+ void setProperty(const TQString &,const TQString &);
+ TQString property(const TQString &) const;
protected:
- virtual void invoke(const QStringList &) const;
+ virtual void invoke(const TQStringList &) const;
bool ensureLinkExists() const;
// Undocumented and missing on the Zaurus.
// void storeLink() const;
@@ -97,13 +97,13 @@ class DocLnk : AppLnk
public:
DocLnk();
DocLnk(const DocLnk &);
- DocLnk(const QString &);
- DocLnk(const QString &,bool);
+ DocLnk(const TQString &);
+ DocLnk(const TQString &,bool);
- QString exec() const /PyName=exec_property/;
+ TQString exec() const /PyName=exec_property/;
protected:
- void invoke(const QStringList &) const;
+ void invoke(const TQStringList &) const;
};
@@ -115,20 +115,20 @@ class AppLnkSet
public:
AppLnkSet();
- AppLnkSet(const QString &);
+ AppLnkSet(const TQString &);
const AppLnk *find(int) const;
- const AppLnk *findExec(const QString &) const;
+ const AppLnk *findExec(const TQString &) const;
- QStringList types() const;
- QString typeName(const QString &) const;
- QPixmap typePixmap(const QString &) const;
- QPixmap typeBigPixmap(const QString &) const;
+ TQStringList types() const;
+ TQString typeName(const TQString &) const;
+ TQPixmap typePixmap(const TQString &) const;
+ TQPixmap typeBigPixmap(const TQString &) const;
void add(AppLnk *);
bool remove(AppLnk *);
- const QList<AppLnk> &children() const;
+ const TQList<AppLnk> &children() const;
void detachChildren();
private:
@@ -144,9 +144,9 @@ class DocLnkSet : AppLnkSet
public:
DocLnkSet();
- DocLnkSet(const QString &,const QString & = QString::null);
+ DocLnkSet(const TQString &,const TQString & = TQString::null);
- const QList<DocLnk> &children() const;
+ const TQList<DocLnk> &children() const;
void appendFrom(DocLnkSet &);
diff --git a/sip/qtpe/qpeconfig.sip b/sip/qtpe/qpeconfig.sip
index a8f78d7..e816101 100644
--- a/sip/qtpe/qpeconfig.sip
+++ b/sip/qtpe/qpeconfig.sip
@@ -3,20 +3,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.
@@ -33,46 +33,46 @@ class Config
%End
public:
- typedef QMap<QString,QString> ConfigGroup;
+ typedef TQMap<TQString,TQString> ConfigGroup;
enum Domain {
File,
User
};
- Config(const QString &,Domain = User);
+ Config(const TQString &,Domain = User);
bool isValid() const;
- bool hasKey(const QString &) const;
+ bool hasKey(const TQString &) const;
- void setGroup(const QString &);
-// void writeEntry(const QString &,const char *);
- void writeEntry(const QString &,const QString &);
- void writeEntryCrypt(const QString &,const QString &);
- void writeEntry(const QString &,int);
-// void writeEntry(const QString &,bool);
- void writeEntry(const QString &,const QStringList &,const QChar &);
- void removeEntry(const QString &);
+ void setGroup(const TQString &);
+// void writeEntry(const TQString &,const char *);
+ void writeEntry(const TQString &,const TQString &);
+ void writeEntryCrypt(const TQString &,const TQString &);
+ void writeEntry(const TQString &,int);
+// void writeEntry(const TQString &,bool);
+ void writeEntry(const TQString &,const TQStringList &,const TQChar &);
+ void removeEntry(const TQString &);
- QString readEntry(const QString &,
- const QString & = QString::null) const;
- QString readEntryCrypt(const QString &,
- const QString & = QString::null) const;
- QString readEntryDirect(const QString &,
- const QString & = QString::null) const;
- int readNumEntry(const QString &,int = -1) const;
- bool readBoolEntry(const QString &,bool = 0) const;
- QStringList readListEntry(const QString &,const QChar &) const;
+ TQString readEntry(const TQString &,
+ const TQString & = TQString::null) const;
+ TQString readEntryCrypt(const TQString &,
+ const TQString & = TQString::null) const;
+ TQString readEntryDirect(const TQString &,
+ const TQString & = TQString::null) const;
+ int readNumEntry(const TQString &,int = -1) const;
+ bool readBoolEntry(const TQString &,bool = 0) const;
+ TQStringList readListEntry(const TQString &,const TQChar &) const;
void clearGroup();
- void write(const QString & = QString::null);
+ void write(const TQString & = TQString::null);
protected:
// void read();
-// bool parse(const QString &);
+// bool parse(const TQString &);
-// static QString configFilename(const QString &,Domain);
+// static TQString configFilename(const TQString &,Domain);
};
%End
diff --git a/sip/qtpe/qpefilemanager.sip b/sip/qtpe/qpefilemanager.sip
index d917980..abd4cce 100644
--- a/sip/qtpe/qpefilemanager.sip
+++ b/sip/qtpe/qpefilemanager.sip
@@ -3,20 +3,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.
@@ -35,19 +35,19 @@ class FileManager
public:
FileManager();
- bool saveFile(const DocLnk &,const QByteArray &);
- bool saveFile(const DocLnk &,const QString &);
- bool loadFile(const DocLnk &,QByteArray &);
- bool loadFile(const DocLnk &,QString &);
+ bool saveFile(const DocLnk &,const TQByteArray &);
+ bool saveFile(const DocLnk &,const TQString &);
+ bool loadFile(const DocLnk &,TQByteArray &);
+ bool loadFile(const DocLnk &,TQString &);
bool copyFile(const AppLnk &,const AppLnk &);
- QIODevice *openFile(const DocLnk &) /ReleaseGIL/;
- QIODevice *saveFile(const DocLnk &) /ReleaseGIL/;
+ TQIODevice *openFile(const DocLnk &) /ReleaseGIL/;
+ TQIODevice *saveFile(const DocLnk &) /ReleaseGIL/;
bool exists(const DocLnk &);
protected:
- bool ensurePathExists(const QString &);
+ bool ensurePathExists(const TQString &);
};
%End
diff --git a/sip/qtpe/qpefileselector.sip b/sip/qtpe/qpefileselector.sip
index cfea063..044cd59 100644
--- a/sip/qtpe/qpefileselector.sip
+++ b/sip/qtpe/qpefileselector.sip
@@ -3,20 +3,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.
@@ -26,37 +26,37 @@
%If (WS_QWS)
-class FileSelectorItem : QListViewItem
+class FileSelectorItem : TQListViewItem
{
%TypeHeaderCode
#include <qpe/fileselector.h>
%End
public:
- FileSelectorItem(QListView * /TransferThis/,const DocLnk &);
+ FileSelectorItem(TQListView * /TransferThis/,const DocLnk &);
DocLnk file() const;
};
-class FileSelector : QVBox
+class FileSelector : TQVBox
{
%TypeHeaderCode
#include <qpe/fileselector.h>
%End
public:
- FileSelector(const QString &,QWidget * /TransferThis/,const char *,
+ FileSelector(const TQString &,TQWidget * /TransferThis/,const char *,
bool = 1,bool = 1);
void setNewVisible(bool);
void setCloseVisible(bool);
void reread();
int fileCount();
-%If (- QtPE_1_6_0)
+%If (- TQtPE_1_6_0)
const DocLnk *selected();
%End
-%If (QtPE_1_6_0 -)
+%If (TQtPE_1_6_0 -)
DocLnk selectedDocument();
%End
diff --git a/sip/qtpe/qpefontdatabase.sip b/sip/qtpe/qpefontdatabase.sip
index 2276b5b..4b9eb9c 100644
--- a/sip/qtpe/qpefontdatabase.sip
+++ b/sip/qtpe/qpefontdatabase.sip
@@ -3,20 +3,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.
@@ -26,9 +26,9 @@
%If (WS_QWS)
-%If (Qt_FONTDATABASE)
+%If (TQt_FONTDATABASE)
-class FontDatabase : QFontDatabase
+class FontDatabase : TQFontDatabase
{
%TypeHeaderCode
#include <qpe/fontdatabase.h>
@@ -37,7 +37,7 @@ class FontDatabase : QFontDatabase
public:
FontDatabase();
- QStringList families() const;
+ TQStringList families() const;
static void loadRenderers();
};
@@ -45,7 +45,7 @@ public:
%End
-%If (!Qt_FONTDATABASE)
+%If (!TQt_FONTDATABASE)
class FontDatabase
{
@@ -56,8 +56,8 @@ class FontDatabase
public:
FontDatabase();
- QStringList families() const;
- static QValueList<int> standardSizes();
+ TQStringList families() const;
+ static TQValueList<int> standardSizes();
static void loadRenderers();
};
diff --git a/sip/qtpe/qpeglobal.sip b/sip/qtpe/qpeglobal.sip
index f5b4482..89a32be 100644
--- a/sip/qtpe/qpeglobal.sip
+++ b/sip/qtpe/qpeglobal.sip
@@ -3,20 +3,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.
@@ -35,49 +35,49 @@ class Global
public:
Global();
- static const QDawg &fixedDawg();
- static const QDawg &addedDawg();
- static const QDawg &dawg(const QString &);
+ static const TQDawg &fixedDawg();
+ static const TQDawg &addedDawg();
+ static const TQDawg &dawg(const TQString &);
- static void addWords(const QStringList &);
- static void addWords(const QString &,const QStringList &);
+ static void addWords(const TQStringList &);
+ static void addWords(const TQString &,const TQStringList &);
static void createDocDir();
- static void findDocuments(DocLnkSet *,const QString & = QString::null);
+ static void findDocuments(DocLnkSet *,const TQString & = TQString::null);
- static QString applicationFileName(const QString &,const QString &);
+ static TQString applicationFileName(const TQString &,const TQString &);
// struct Command {
// const char *file;
-// QWidget *(*func)(bool);
+// TQWidget *(*func)(bool);
// bool maximized;
// bool documentary;
// };
// static void setBuiltinCommands(Command *);
-%If (- QtPE_1_6_0)
- static void invoke(const QString &);
+%If (- TQtPE_1_6_0)
+ static void invoke(const TQString &);
%End
- static void execute(const QString &,const QString & = QString::null) /ReleaseGIL/;
- static void setDocument(QWidget *,const QString &);
- static bool terminateBuiltin(const QString &);
+ static void execute(const TQString &,const TQString & = TQString::null) /ReleaseGIL/;
+ static void setDocument(TQWidget *,const TQString &);
+ static bool terminateBuiltin(const TQString &);
static void terminate(const AppLnk *);
- static bool isBuiltinCommand(const QString &);
+ static bool isBuiltinCommand(const TQString &);
static void applyStyle();
- static void statusMessage(const QString &);
- static QWidget *shutdown(bool = 0);
- static QWidget *restart(bool = 0);
+ static void statusMessage(const TQString &);
+ static TQWidget *shutdown(bool = 0);
+ static TQWidget *restart(bool = 0);
static void hideInputMethod();
static void showInputMethod();
static void writeHWClock();
- static QString shellQuote(const QString &);
- static QString stringQuote(const QString &);
+ static TQString shellQuote(const TQString &);
+ static TQString stringQuote(const TQString &);
};
%End
diff --git a/sip/qtpe/qpemenubar.sip b/sip/qtpe/qpemenubar.sip
index 4164843..faaa50f 100644
--- a/sip/qtpe/qpemenubar.sip
+++ b/sip/qtpe/qpemenubar.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for QPEMenuBar.
+// This is the SIP interface definition for TQPEMenuBar.
//
// 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.
@@ -26,17 +26,17 @@
%If (WS_QWS)
-class QPEMenuBar : QMenuBar
+class TQPEMenuBar : TQMenuBar
{
%TypeHeaderCode
#include <qpe/qpemenubar.h>
%End
public:
- QPEMenuBar(QWidget * /TransferThis/ = 0,const char * = 0);
+ TQPEMenuBar(TQWidget * /TransferThis/ = 0,const char * = 0);
protected:
- virtual void keyPressEvent(QKeyEvent *);
+ virtual void keyPressEvent(TQKeyEvent *);
};
%End
diff --git a/sip/qtpe/qpemenubutton.sip b/sip/qtpe/qpemenubutton.sip
index ff3a729..24538c3 100644
--- a/sip/qtpe/qpemenubutton.sip
+++ b/sip/qtpe/qpemenubutton.sip
@@ -3,20 +3,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.
@@ -26,36 +26,36 @@
%If (WS_QWS)
-class MenuButton : QPushButton
+class MenuButton : TQPushButton
{
%TypeHeaderCode
#include <qpe/menubutton.h>
%End
public:
- MenuButton(QWidget * /TransferThis/,const char * = 0);
- MenuButton(const QStringList &,QWidget * /TransferThis/,
+ MenuButton(TQWidget * /TransferThis/,const char * = 0);
+ MenuButton(const TQStringList &,TQWidget * /TransferThis/,
const char * = 0);
void clear();
int currentItem() const;
- QString currentText() const;
+ TQString currentText() const;
- void insertItems(const QStringList &);
- void insertItem(const QIconSet &,const QString & = QString::null);
- void insertItem(const QString &);
+ void insertItems(const TQStringList &);
+ void insertItem(const TQIconSet &,const TQString & = TQString::null);
+ void insertItem(const TQString &);
void insertSeparator();
- void setLabel(const QString &);
+ void setLabel(const TQString &);
signals:
void selected(int);
- void selected(const QString &);
+ void selected(const TQString &);
public slots:
void select(int);
- void select(const QString &);
+ void select(const TQString &);
};
%End
diff --git a/sip/qtpe/qpeqcopenvelope.sip b/sip/qtpe/qpeqcopenvelope.sip
index 9bbff30..49e0c39 100644
--- a/sip/qtpe/qpeqcopenvelope.sip
+++ b/sip/qtpe/qpeqcopenvelope.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for QCopEnvelope.
+// This is the SIP interface definition for TQCopEnvelope.
//
// 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.
@@ -26,14 +26,14 @@
%If (WS_QWS)
-class QCopEnvelope : QDataStream
+class TQCopEnvelope : TQDataStream
{
%TypeHeaderCode
#include <qpe/qcopenvelope_qws.h>
%End
public:
- QCopEnvelope(const QCString &,const QCString &);
+ TQCopEnvelope(const TQCString &,const TQCString &);
};
%End
diff --git a/sip/qtpe/qpeqdawg.sip b/sip/qtpe/qpeqdawg.sip
index f04d642..e681b9c 100644
--- a/sip/qtpe/qpeqdawg.sip
+++ b/sip/qtpe/qpeqdawg.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for QDawg.
+// This is the SIP interface definition for TQDawg.
//
// 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.
@@ -26,38 +26,38 @@
%If (WS_QWS)
-class QDawg
+class TQDawg
{
%TypeHeaderCode
#include <qpe/qdawg.h>
%End
public:
- QDawg();
+ TQDawg();
- bool readFile(const QString &) /ReleaseGIL/;
- bool read(QIODevice *) /ReleaseGIL/;
- bool write(QIODevice *) const /ReleaseGIL/;
- bool createFromWords(QIODevice *);
- void createFromWords(const QStringList &);
- QStringList allWords() const;
+ bool readFile(const TQString &) /ReleaseGIL/;
+ bool read(TQIODevice *) /ReleaseGIL/;
+ bool write(TQIODevice *) const /ReleaseGIL/;
+ bool createFromWords(TQIODevice *);
+ void createFromWords(const TQStringList &);
+ TQStringList allWords() const;
- bool contains(const QString &) const;
+ bool contains(const TQString &) const;
int countWords() const;
class Node {
public:
- QChar letter() const;
+ TQChar letter() const;
bool isWord() const;
bool isLast() const;
- const QDawg::Node *next() const;
- const QDawg::Node *jump() const;
+ const TQDawg::Node *next() const;
+ const TQDawg::Node *jump() const;
private:
Node();
};
- const QDawg::Node *root() const;
+ const TQDawg::Node *root() const;
void dump() const;
};
diff --git a/sip/qtpe/qperesource.sip b/sip/qtpe/qperesource.sip
index de094b0..79b940d 100644
--- a/sip/qtpe/qperesource.sip
+++ b/sip/qtpe/qperesource.sip
@@ -3,20 +3,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.
@@ -35,16 +35,16 @@ class Resource
public:
Resource();
- static QImage loadImage(const QString &);
+ static TQImage loadImage(const TQString &);
- static QPixmap loadPixmap(const QString &);
- static QBitmap loadBitmap(const QString &);
- static QString findPixmap(const QString &);
+ static TQPixmap loadPixmap(const TQString &);
+ static TQBitmap loadBitmap(const TQString &);
+ static TQString findPixmap(const TQString &);
- static QIconSet loadIconSet(const QString &);
+ static TQIconSet loadIconSet(const TQString &);
- static QString findSound(const QString &);
- static QStringList allSounds();
+ static TQString findSound(const TQString &);
+ static TQStringList allSounds();
};
%End
diff --git a/sip/qtpe/qpetimestring.sip b/sip/qtpe/qpetimestring.sip
index 4df6a4f..21961d1 100644
--- a/sip/qtpe/qpetimestring.sip
+++ b/sip/qtpe/qpetimestring.sip
@@ -3,20 +3,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.
@@ -39,8 +39,8 @@ public:
YearMonthDay
};
- DateFormat(QChar = '/',Order = MonthDayYear);
- DateFormat(QChar,Order,Order);
+ DateFormat(TQChar = '/',Order = MonthDayYear);
+ DateFormat(TQChar,Order,Order);
DateFormat(const DateFormat &);
enum Verbosity {
@@ -52,18 +52,18 @@ public:
showWeekDay
};
- QString toNumberString() const;
- QString toWordString() const;
+ TQString toNumberString() const;
+ TQString toWordString() const;
- QString numberDate(const QDate &,int = 0) const;
- QString wordDate(const QDate &,int = 0) const;
+ TQString numberDate(const TQDate &,int = 0) const;
+ TQString wordDate(const TQDate &,int = 0) const;
-%If (Qt_DATASTREAM)
- void load(QDataStream &);
- void save(QDataStream &) const;
+%If (TQt_DATASTREAM)
+ void load(TQDataStream &);
+ void save(TQDataStream &) const;
%End
- QChar separator() const;
+ TQChar separator() const;
Order shortOrder() const;
Order longOrder() const;
};
diff --git a/sip/qtpe/qpetoolbar.sip b/sip/qtpe/qpetoolbar.sip
index 1d503ea..541cb92 100644
--- a/sip/qtpe/qpetoolbar.sip
+++ b/sip/qtpe/qpetoolbar.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for QPEToolBar.
+// This is the SIP interface definition for TQPEToolBar.
//
// 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.
@@ -26,17 +26,17 @@
%If (WS_QWS)
-class QPEToolBar : QToolBar
+class TQPEToolBar : TQToolBar
{
%TypeHeaderCode
#include <qpe/qpetoolbar.h>
%End
public:
- QPEToolBar(QMainWindow * /TransferThis/ = 0,const char * = 0);
+ TQPEToolBar(TQMainWindow * /TransferThis/ = 0,const char * = 0);
protected:
- virtual void childEvent(QChildEvent *);
+ virtual void childEvent(TQChildEvent *);
};
%End
diff --git a/sip/qtpe/qtpemod.sip b/sip/qtpe/qtpemod.sip
index 3194a03..a00a1a3 100644
--- a/sip/qtpe/qtpemod.sip
+++ b/sip/qtpe/qtpemod.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for the qtpe module of PyQt.
+// This is the SIP interface definition for the qtpe 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.
@@ -27,15 +27,15 @@
%Include copying.sip
-// QPE has it's own version numbering.
-%Timeline {QtPE_1_5_0 QtPE_1_6_0}
+// TQPE has it's own version numbering.
+%Timeline {TQtPE_1_5_0 TQtPE_1_6_0}
%ModuleHeaderCode
#include <qpe/version.h>
%End
-const char *QPE_VERSION;
+const char *TQPE_VERSION;
%Include qpeapplication.sip
@@ -62,20 +62,20 @@ const char *QPE_VERSION;
# 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.
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 &amp;<Parameter>filter</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<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 &amp;<Parameter>query</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<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 &amp;<Parameter>query</Parameter> = QString::null</ParamDef>
+ <FuncDef>TQSqlQuery <Function>exec</Function></FuncDef>
+ <ParamDef>const TQString &amp;<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&lt;QString,QVariant&gt; <Function>boundValues</Function> const</FuncDef>
+ <FuncDef>TQMap&lt;TQString,TQVariant&gt; <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 &amp;<Parameter>query</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<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 &amp;<Parameter>query</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<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.
diff --git a/sip/qttable/copying.sip b/sip/qttable/copying.sip
index 463904b..6da646e 100644
--- a/sip/qttable/copying.sip
+++ b/sip/qttable/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/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
};
diff --git a/sip/qttable/qttablemod.sip b/sip/qttable/qttablemod.sip
index d470d22..191bb6e 100644
--- a/sip/qttable/qttablemod.sip
+++ b/sip/qttable/qttablemod.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for the qttable module of PyQt.
+// This is the SIP interface definition for the qttable 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.
@@ -38,20 +38,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.
diff --git a/sip/qtui/copying.sip b/sip/qtui/copying.sip
index 463904b..6da646e 100644
--- a/sip/qtui/copying.sip
+++ b/sip/qtui/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/qtui/qtuimod.sip b/sip/qtui/qtuimod.sip
index f6616b0..24324c7 100644
--- a/sip/qtui/qtuimod.sip
+++ b/sip/qtui/qtuimod.sip
@@ -1,23 +1,23 @@
-// This is the SIP interface definition for the qtui module of PyQt. Thanks to
+// This is the SIP interface definition for the qtui module of PyTQt. Thanks to
// Hans-Peter Jansen for the original work.
//
// 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.
@@ -39,20 +39,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.
diff --git a/sip/qtui/qwidgetfactory.sip b/sip/qtui/qwidgetfactory.sip
index b011658..6907b61 100644
--- a/sip/qtui/qwidgetfactory.sip
+++ b/sip/qtui/qwidgetfactory.sip
@@ -1,62 +1,62 @@
-// This is the SIP interface definition for QWidgetFactory. Thanks to
+// This is the SIP interface definition for TQWidgetFactory. Thanks to
// Hans-Peter Jansen for the original work.
//
// 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>QWidgetFactory (Qt v3+)</Title>
+<Sect2><Title>TQWidgetFactory (TQt v3+)</Title>
<Para>
-<Literal>QWidgetFactory</Literal> is fully implemented.
+<Literal>TQWidgetFactory</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
-class QWidgetFactory
+class TQWidgetFactory
{
%TypeHeaderCode
#include <qwidgetfactory.h>
%End
public:
- QWidgetFactory();
- virtual ~QWidgetFactory();
+ TQWidgetFactory();
+ virtual ~TQWidgetFactory();
- static QWidget *create(const QString &,QObject * = 0,
- QWidget * /TransferThis/ = 0,
+ static TQWidget *create(const TQString &,TQObject * = 0,
+ TQWidget * /TransferThis/ = 0,
const char * = 0) /Factory/;
- static QWidget *create(QIODevice *,QObject * = 0,
- QWidget * /TransferThis/ = 0,
+ static TQWidget *create(TQIODevice *,TQObject * = 0,
+ TQWidget * /TransferThis/ = 0,
const char * = 0) /Factory/;
- static void addWidgetFactory(QWidgetFactory * /Transfer/);
- static void loadImages(const QString &);
+ static void addWidgetFactory(TQWidgetFactory * /Transfer/);
+ static void loadImages(const TQString &);
- virtual QWidget *createWidget(const QString &,QWidget * /TransferThis/,
+ virtual TQWidget *createWidget(const TQString &,TQWidget * /TransferThis/,
const char *) const /Factory/;
-%If (Qt_3_1_0 -)
- static QStringList widgets();
- static bool supportsWidget(const QString &);
+%If (TQt_3_1_0 -)
+ static TQStringList widgets();
+ static bool supportsWidget(const TQString &);
%End
};
diff --git a/sip/qtxml/copying.sip b/sip/qtxml/copying.sip
index 463904b..6da646e 100644
--- a/sip/qtxml/copying.sip
+++ b/sip/qtxml/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/qtxml/qdom.sip b/sip/qtxml/qdom.sip
index 7a156d9..e0c2e09 100644
--- a/sip/qtxml/qdom.sip
+++ b/sip/qtxml/qdom.sip
@@ -1,51 +1,51 @@
-// This is the SIP interface definition for the QDom classes.
+// This is the SIP interface definition for the TQDom classes.
//
// 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>QDomImplementation (Qt v2.2+)</Title>
+<Sect2><Title>TQDomImplementation (TQt v2.2+)</Title>
<Para>
-<Literal>QDomImplementation</Literal> is fully implemented.
+<Literal>TQDomImplementation</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomNode (Qt v2.2+)</Title>
+<Sect2><Title>TQDomNode (TQt v2.2+)</Title>
<Para>
-<Literal>QDomNode</Literal> is fully implemented, including the Python
+<Literal>TQDomNode</Literal> is fully implemented, including the Python
<Literal>==</Literal> and <Literal>!=</Literal> operators.
</Para>
</Sect2>
-<Sect2><Title>QDomNodeList (Qt v2.2+)</Title>
+<Sect2><Title>TQDomNodeList (TQt v2.2+)</Title>
<Para>
-<Literal>QDomNodeList</Literal> is fully implemented.
+<Literal>TQDomNodeList</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomDocument (Qt v2.2+)</Title>
+<Sect2><Title>TQDomDocument (TQt v2.2+)</Title>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QCString &amp;<Parameter>buffer</Parameter></ParamDef>
+ <ParamDef>const TQCString &amp;<Parameter>buffer</Parameter></ParamDef>
<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -54,14 +54,14 @@ This takes the <Literal>buffer</Literal> and
<Literal>namespaceProcessing</Literal> parameters and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QByteArray &amp;<Parameter>buffer</Parameter></ParamDef>
+ <ParamDef>const TQByteArray &amp;<Parameter>buffer</Parameter></ParamDef>
<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -70,14 +70,14 @@ This takes the <Literal>buffer</Literal> and
<Literal>namespaceProcessing</Literal> parameters and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>text</Parameter></ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>text</Parameter></ParamDef>
<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -86,14 +86,14 @@ This takes the <Literal>text</Literal> and
<Literal>namespaceProcessing</Literal> parameters and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QIODevice *<Parameter>dev</Parameter></ParamDef>
+ <ParamDef>const TQIODevice *<Parameter>dev</Parameter></ParamDef>
<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -102,13 +102,13 @@ This takes the <Literal>dev</Literal> and
<Literal>namespaceProcessing</Literal> parameters and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QCString &amp;<Parameter>buffer</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>const TQCString &amp;<Parameter>buffer</Parameter></ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -116,13 +116,13 @@ containing the <Literal>bool</Literal> result and the
This takes the <Literal>buffer</Literal> parameter only and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QByteArray &amp;<Parameter>buffer</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>const TQByteArray &amp;<Parameter>buffer</Parameter></ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -130,13 +130,13 @@ containing the <Literal>bool</Literal> result and the
This takes the <Literal>buffer</Literal> parameter only and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QString &amp;<Parameter>text</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>const TQString &amp;<Parameter>text</Parameter></ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -144,13 +144,13 @@ containing the <Literal>bool</Literal> result and the
This takes the <Literal>text</Literal> parameter only and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>const QIODevice *<Parameter>dev</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>const TQIODevice *<Parameter>dev</Parameter></ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
@@ -158,128 +158,128 @@ containing the <Literal>bool</Literal> result and the
This takes the <Literal>dev</Literal> parameter only and returns a tuple
containing the <Literal>bool</Literal> result and the
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
-<Literal>errorColumn</Literal> values. (Qt v3+)
+<Literal>errorColumn</Literal> values. (TQt v3+)
</Para>
<FuncSynopsis>
<FuncDef>bool <Function>setContent</Function></FuncDef>
- <ParamDef>QXmlInputSource *<Parameter>source</Parameter></ParamDef>
- <ParamDef>QXmlReader *<Parameter>reader</Parameter></ParamDef>
- <ParamDef>QString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
+ <ParamDef>TQXmlInputSource *<Parameter>source</Parameter></ParamDef>
+ <ParamDef>TQXmlReader *<Parameter>reader</Parameter></ParamDef>
+ <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
</FuncSynopsis>
<Para>
-Not yet implemented. (Qt v3.2.0+)
+Not yet implemented. (TQt v3.2.0+)
</Para>
</Sect2>
-<Sect2><Title>QDomDocumentFragment (Qt v2.2+)</Title>
+<Sect2><Title>TQDomDocumentFragment (TQt v2.2+)</Title>
<Para>
-<Literal>QDomDocumentFragment</Literal> is fully implemented.
+<Literal>TQDomDocumentFragment</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomDocumentType (Qt v2.2+)</Title>
+<Sect2><Title>TQDomDocumentType (TQt v2.2+)</Title>
<Para>
-<Literal>QDomDocumentType</Literal> is fully implemented.
+<Literal>TQDomDocumentType</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomNamedNodeMap (Qt v2.2+)</Title>
+<Sect2><Title>TQDomNamedNodeMap (TQt v2.2+)</Title>
<Para>
-<Literal>QDomNamedNodeMap</Literal> is fully implemented.
+<Literal>TQDomNamedNodeMap</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomCharacterData (Qt v2.2+)</Title>
+<Sect2><Title>TQDomCharacterData (TQt v2.2+)</Title>
<Para>
-<Literal>QDomCharacterData</Literal> is fully implemented.
+<Literal>TQDomCharacterData</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomAttr (Qt v2.2+)</Title>
+<Sect2><Title>TQDomAttr (TQt v2.2+)</Title>
<Para>
-<Literal>QDomAttr</Literal> is fully implemented.
+<Literal>TQDomAttr</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomElement (Qt v2.2+)</Title>
+<Sect2><Title>TQDomElement (TQt v2.2+)</Title>
<Para>
-<Literal>QDomElement</Literal> is fully implemented.
+<Literal>TQDomElement</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomText (Qt v2.2+)</Title>
+<Sect2><Title>TQDomText (TQt v2.2+)</Title>
<Para>
-<Literal>QDomText</Literal> is fully implemented.
+<Literal>TQDomText</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomComment (Qt v2.2+)</Title>
+<Sect2><Title>TQDomComment (TQt v2.2+)</Title>
<Para>
-<Literal>QDomComment</Literal> is fully implemented.
+<Literal>TQDomComment</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomCDATASection (Qt v2.2+)</Title>
+<Sect2><Title>TQDomCDATASection (TQt v2.2+)</Title>
<Para>
-<Literal>QDomCDATASection</Literal> is fully implemented.
+<Literal>TQDomCDATASection</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomNotation (Qt v2.2+)</Title>
+<Sect2><Title>TQDomNotation (TQt v2.2+)</Title>
<Para>
-<Literal>QDomNotation</Literal> is fully implemented.
+<Literal>TQDomNotation</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomEntity (Qt v2.2+)</Title>
+<Sect2><Title>TQDomEntity (TQt v2.2+)</Title>
<Para>
-<Literal>QDomEntity</Literal> is fully implemented.
+<Literal>TQDomEntity</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomEntityReference (Qt v2.2+)</Title>
+<Sect2><Title>TQDomEntityReference (TQt v2.2+)</Title>
<Para>
-<Literal>QDomEntityReference</Literal> is fully implemented.
+<Literal>TQDomEntityReference</Literal> is fully implemented.
</Para>
</Sect2>
-<Sect2><Title>QDomProcessingInstruction (Qt v2.2+)</Title>
+<Sect2><Title>TQDomProcessingInstruction (TQt v2.2+)</Title>
<Para>
-<Literal>QDomProcessingInstruction</Literal> is fully implemented.
+<Literal>TQDomProcessingInstruction</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_DOM)
-%If (Qt_2_2_0 -)
+%If (TQt_DOM)
+%If (TQt_2_2_0 -)
-class QDomImplementation
+class TQDomImplementation
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomImplementation();
- QDomImplementation(const QDomImplementation &);
+ TQDomImplementation();
+ TQDomImplementation(const TQDomImplementation &);
- virtual bool hasFeature(const QString &,const QString &);
-%If (Qt_3_0_0 -)
- virtual QDomDocumentType createDocumentType(const QString &,
- const QString &,
- const QString &);
- virtual QDomDocument createDocument(const QString &,const QString &,
- const QDomDocumentType &);
+ virtual bool hasFeature(const TQString &,const TQString &);
+%If (TQt_3_0_0 -)
+ virtual TQDomDocumentType createDocumentType(const TQString &,
+ const TQString &,
+ const TQString &);
+ virtual TQDomDocument createDocument(const TQString &,const TQString &,
+ const TQDomDocumentType &);
%End
bool isNull();
};
-class QDomNode
+class TQDomNode
{
%TypeHeaderCode
#include <qdom.h>
@@ -303,47 +303,47 @@ public:
CharacterDataNode
};
- QDomNode();
- QDomNode(const QDomNode &);
+ TQDomNode();
+ TQDomNode(const TQDomNode &);
- bool operator==(const QDomNode &) const;
- bool operator!=(const QDomNode &) const;
+ bool operator==(const TQDomNode &) const;
+ bool operator!=(const TQDomNode &) const;
- virtual QDomNode insertBefore(const QDomNode &,const QDomNode &);
- virtual QDomNode insertAfter(const QDomNode &,const QDomNode &);
- virtual QDomNode replaceChild(const QDomNode &,const QDomNode &);
- virtual QDomNode removeChild(const QDomNode &);
- virtual QDomNode appendChild(const QDomNode &);
-%If (Qt_3_0_0 -)
+ virtual TQDomNode insertBefore(const TQDomNode &,const TQDomNode &);
+ virtual TQDomNode insertAfter(const TQDomNode &,const TQDomNode &);
+ virtual TQDomNode replaceChild(const TQDomNode &,const TQDomNode &);
+ virtual TQDomNode removeChild(const TQDomNode &);
+ virtual TQDomNode appendChild(const TQDomNode &);
+%If (TQt_3_0_0 -)
virtual bool hasChildNodes() const;
%End
- virtual QDomNode cloneNode(bool = 1) const;
-%If (Qt_3_0_0 -)
+ virtual TQDomNode cloneNode(bool = 1) const;
+%If (TQt_3_0_0 -)
virtual void normalize();
- virtual bool isSupported(const QString &,const QString &) const;
+ virtual bool isSupported(const TQString &,const TQString &) const;
%End
- virtual QString nodeName() const;
+ virtual TQString nodeName() const;
virtual NodeType nodeType() const;
- virtual QDomNode parentNode() const;
- virtual QDomNodeList childNodes() const;
- virtual QDomNode firstChild() const;
- virtual QDomNode lastChild() const;
- virtual QDomNode previousSibling() const;
- virtual QDomNode nextSibling() const;
- virtual QDomNamedNodeMap attributes() const;
- virtual QDomDocument ownerDocument() const;
-%If (Qt_3_0_0 -)
- virtual QString namespaceURI() const;
- virtual QString localName() const;
+ virtual TQDomNode parentNode() const;
+ virtual TQDomNodeList childNodes() const;
+ virtual TQDomNode firstChild() const;
+ virtual TQDomNode lastChild() const;
+ virtual TQDomNode previousSibling() const;
+ virtual TQDomNode nextSibling() const;
+ virtual TQDomNamedNodeMap attributes() const;
+ virtual TQDomDocument ownerDocument() const;
+%If (TQt_3_0_0 -)
+ virtual TQString namespaceURI() const;
+ virtual TQString localName() const;
virtual bool hasAttributes() const;
%End
- virtual QString nodeValue() const;
- virtual void setNodeValue(const QString &);
-%If (Qt_3_0_0 -)
- virtual QString prefix() const;
- virtual void setPrefix(const QString &);
+ virtual TQString nodeValue() const;
+ virtual void setNodeValue(const TQString &);
+%If (TQt_3_0_0 -)
+ virtual TQString prefix() const;
+ virtual void setPrefix(const TQString &);
%End
virtual bool isAttr() const;
@@ -360,217 +360,217 @@ public:
virtual bool isCharacterData() const;
virtual bool isComment() const;
- QDomNode namedItem(const QString &) const;
+ TQDomNode namedItem(const TQString &) const;
bool isNull() const;
void clear();
- QDomAttr toAttr();
- QDomCDATASection toCDATASection();
- QDomDocumentFragment toDocumentFragment();
- QDomDocument toDocument();
- QDomDocumentType toDocumentType();
- QDomElement toElement();
- QDomEntityReference toEntityReference();
- QDomText toText();
- QDomEntity toEntity();
- QDomNotation toNotation();
- QDomProcessingInstruction toProcessingInstruction();
- QDomCharacterData toCharacterData();
- QDomComment toComment();
-
- void save(QTextStream &,int) const;
+ TQDomAttr toAttr();
+ TQDomCDATASection toCDATASection();
+ TQDomDocumentFragment toDocumentFragment();
+ TQDomDocument toDocument();
+ TQDomDocumentType toDocumentType();
+ TQDomElement toElement();
+ TQDomEntityReference toEntityReference();
+ TQDomText toText();
+ TQDomEntity toEntity();
+ TQDomNotation toNotation();
+ TQDomProcessingInstruction toProcessingInstruction();
+ TQDomCharacterData toCharacterData();
+ TQDomComment toComment();
+
+ void save(TQTextStream &,int) const;
};
-class QDomNodeList
+class TQDomNodeList
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomNodeList();
- QDomNodeList(const QDomNodeList &);
+ TQDomNodeList();
+ TQDomNodeList(const TQDomNodeList &);
- virtual QDomNode item(int) const;
+ virtual TQDomNode item(int) const;
virtual uint length() const;
uint count() const;
};
-class QDomDocumentType : QDomNode
+class TQDomDocumentType : TQDomNode
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomDocumentType();
- QDomDocumentType(const QDomDocumentType &);
+ TQDomDocumentType();
+ TQDomDocumentType(const TQDomDocumentType &);
- virtual QString name() const;
- virtual QDomNamedNodeMap entities() const;
- virtual QDomNamedNodeMap notations() const;
-%If (Qt_3_0_0 -)
- virtual QString publicId() const;
- virtual QString systemId() const;
- virtual QString internalSubset() const;
+ virtual TQString name() const;
+ virtual TQDomNamedNodeMap entities() const;
+ virtual TQDomNamedNodeMap notations() const;
+%If (TQt_3_0_0 -)
+ virtual TQString publicId() const;
+ virtual TQString systemId() const;
+ virtual TQString internalSubset() const;
%End
- QDomNode::NodeType nodeType() const;
+ TQDomNode::NodeType nodeType() const;
bool isDocumentType() const;
};
-class QDomDocument : QDomNode
+class TQDomDocument : TQDomNode
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomDocument();
- QDomDocument(const QString &);
-%If (Qt_3_0_0 -)
- QDomDocument(const QDomDocumentType &);
-%End
- QDomDocument(const QDomDocument &);
-
- QDomElement createElement(const QString &);
- QDomDocumentFragment createDocumentFragment();
- QDomText createTextNode(const QString &);
- QDomComment createComment(const QString &);
- QDomCDATASection createCDATASection(const QString &);
- QDomProcessingInstruction createProcessingInstruction(const QString &,
- const QString &);
- QDomAttr createAttribute(const QString &);
- QDomEntityReference createEntityReference(const QString &);
- QDomNodeList elementsByTagName(const QString &) const;
-%If (Qt_3_0_0 -)
- QDomElement elementById(const QString &);
-%End
-
- QDomDocumentType doctype() const;
- QDomImplementation implementation() const;
- QDomElement documentElement() const;
-
-%If (- Qt_3_0_0)
- bool setContent(const QCString &);
- bool setContent(const QByteArray &);
- bool setContent(const QString &);
- bool setContent(QIODevice *);
-%End
-%If (Qt_3_0_0 -)
+ TQDomDocument();
+ TQDomDocument(const TQString &);
+%If (TQt_3_0_0 -)
+ TQDomDocument(const TQDomDocumentType &);
+%End
+ TQDomDocument(const TQDomDocument &);
+
+ TQDomElement createElement(const TQString &);
+ TQDomDocumentFragment createDocumentFragment();
+ TQDomText createTextNode(const TQString &);
+ TQDomComment createComment(const TQString &);
+ TQDomCDATASection createCDATASection(const TQString &);
+ TQDomProcessingInstruction createProcessingInstruction(const TQString &,
+ const TQString &);
+ TQDomAttr createAttribute(const TQString &);
+ TQDomEntityReference createEntityReference(const TQString &);
+ TQDomNodeList elementsByTagName(const TQString &) const;
+%If (TQt_3_0_0 -)
+ TQDomElement elementById(const TQString &);
+%End
+
+ TQDomDocumentType doctype() const;
+ TQDomImplementation implementation() const;
+ TQDomElement documentElement() const;
+
+%If (- TQt_3_0_0)
+ bool setContent(const TQCString &);
+ bool setContent(const TQByteArray &);
+ bool setContent(const TQString &);
+ bool setContent(TQIODevice *);
+%End
+%If (TQt_3_0_0 -)
// Note that we need handwritten code for these because of the need to
// allocate storage for the error string.
- SIP_PYTUPLE setContent(const QCString &,bool);
+ SIP_PYTUPLE setContent(const TQCString &,bool);
%MethodCode
bool res;
- QString *emsg = new QString();
+ TQString *emsg = new TQString();
int eline, ecol;
Py_BEGIN_ALLOW_THREADS
- res = sipCpp -> QDomDocument::setContent(*a0,a1,emsg,&eline,&ecol);
+ res = sipCpp -> TQDomDocument::setContent(*a0,a1,emsg,&eline,&ecol);
Py_END_ALLOW_THREADS
sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg,
sipType_QString, (PyObject *)0, eline, ecol);
%End
- SIP_PYTUPLE setContent(const QByteArray &,bool);
+ SIP_PYTUPLE setContent(const TQByteArray &,bool);
%MethodCode
bool res;
- QString *emsg = new QString();
+ TQString *emsg = new TQString();
int eline, ecol;
Py_BEGIN_ALLOW_THREADS
- res = sipCpp -> QDomDocument::setContent(*a0,a1,emsg,&eline,&ecol);
+ res = sipCpp -> TQDomDocument::setContent(*a0,a1,emsg,&eline,&ecol);
Py_END_ALLOW_THREADS
sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg,
sipType_QString, (PyObject *)0, eline, ecol);
%End
- SIP_PYTUPLE setContent(const QString &,bool);
+ SIP_PYTUPLE setContent(const TQString &,bool);
%MethodCode
bool res;
- QString *emsg = new QString();
+ TQString *emsg = new TQString();
int eline, ecol;
Py_BEGIN_ALLOW_THREADS
- res = sipCpp -> QDomDocument::setContent(*a0,a1,emsg,&eline,&ecol);
+ res = sipCpp -> TQDomDocument::setContent(*a0,a1,emsg,&eline,&ecol);
Py_END_ALLOW_THREADS
sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg,
sipType_QString, (PyObject *)0, eline, ecol);
%End
- SIP_PYTUPLE setContent(QIODevice *,bool);
+ SIP_PYTUPLE setContent(TQIODevice *,bool);
%MethodCode
bool res;
- QString *emsg = new QString();
+ TQString *emsg = new TQString();
int eline, ecol;
Py_BEGIN_ALLOW_THREADS
- res = sipCpp -> QDomDocument::setContent(a0,a1,emsg,&eline,&ecol);
+ res = sipCpp -> TQDomDocument::setContent(a0,a1,emsg,&eline,&ecol);
Py_END_ALLOW_THREADS
sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg,
sipType_QString, (PyObject *)0, eline, ecol);
%End
- SIP_PYTUPLE setContent(const QCString &);
+ SIP_PYTUPLE setContent(const TQCString &);
%MethodCode
bool res;
- QString *emsg = new QString();
+ TQString *emsg = new TQString();
int eline, ecol;
Py_BEGIN_ALLOW_THREADS
- res = sipCpp -> QDomDocument::setContent(*a0,emsg,&eline,&ecol);
+ res = sipCpp -> TQDomDocument::setContent(*a0,emsg,&eline,&ecol);
Py_END_ALLOW_THREADS
sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg,
sipType_QString, (PyObject *)0, eline, ecol);
%End
- SIP_PYTUPLE setContent(const QByteArray &);
+ SIP_PYTUPLE setContent(const TQByteArray &);
%MethodCode
bool res;
- QString *emsg = new QString();
+ TQString *emsg = new TQString();
int eline, ecol;
Py_BEGIN_ALLOW_THREADS
- res = sipCpp -> QDomDocument::setContent(*a0,emsg,&eline,&ecol);
+ res = sipCpp -> TQDomDocument::setContent(*a0,emsg,&eline,&ecol);
Py_END_ALLOW_THREADS
sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg,
sipType_QString, (PyObject *)0, eline, ecol);
%End
- SIP_PYTUPLE setContent(const QString &);
+ SIP_PYTUPLE setContent(const TQString &);
%MethodCode
bool res;
- QString *emsg = new QString();
+ TQString *emsg = new TQString();
int eline, ecol;
Py_BEGIN_ALLOW_THREADS
- res = sipCpp -> QDomDocument::setContent(*a0,emsg,&eline,&ecol);
+ res = sipCpp -> TQDomDocument::setContent(*a0,emsg,&eline,&ecol);
Py_END_ALLOW_THREADS
sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg,
sipType_QString, (PyObject *)0, eline, ecol);
%End
- SIP_PYTUPLE setContent(QIODevice *);
+ SIP_PYTUPLE setContent(TQIODevice *);
%MethodCode
bool res;
- QString *emsg = new QString();
+ TQString *emsg = new TQString();
int eline, ecol;
Py_BEGIN_ALLOW_THREADS
- res = sipCpp -> QDomDocument::setContent(a0,emsg,&eline,&ecol);
+ res = sipCpp -> TQDomDocument::setContent(a0,emsg,&eline,&ecol);
Py_END_ALLOW_THREADS
sipRes = sipBuildResult(&sipIsErr, "(bNii)", res, emsg,
@@ -579,294 +579,294 @@ public:
%End
-%If (Qt_3_2_0 -)
-// bool setContent(QXmlInputSource *,QXmlReader *,QString * = 0,int * = 0,
+%If (TQt_3_2_0 -)
+// bool setContent(TQXmlInputSource *,TQXmlReader *,TQString * = 0,int * = 0,
// int * = 0);
%End
- QDomNode::NodeType nodeType() const;
+ TQDomNode::NodeType nodeType() const;
bool isDocument() const;
- QString toString() const;
-%If (Qt_3_1_0 -)
- QString toString(int) const;
+ TQString toString() const;
+%If (TQt_3_1_0 -)
+ TQString toString(int) const;
%End
- QCString toCString() const;
-%If (Qt_3_1_0 -)
- QCString toCString(int) const;
+ TQCString toCString() const;
+%If (TQt_3_1_0 -)
+ TQCString toCString(int) const;
%End
};
-class QDomNamedNodeMap
+class TQDomNamedNodeMap
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomNamedNodeMap();
- QDomNamedNodeMap(const QDomNamedNodeMap &);
+ TQDomNamedNodeMap();
+ TQDomNamedNodeMap(const TQDomNamedNodeMap &);
- QDomNode namedItem(const QString &) const;
- QDomNode setNamedItem(const QDomNode &);
- QDomNode removeNamedItem(const QString &);
- QDomNode item(int) const;
-%If (Qt_3_0_0 -)
- QDomNode namedItemNS(const QString &,const QString &) const;
- QDomNode setNamedItemNS(const QDomNode &);
- QDomNode removeNamedItemNS(const QString &,const QString &);
+ TQDomNode namedItem(const TQString &) const;
+ TQDomNode setNamedItem(const TQDomNode &);
+ TQDomNode removeNamedItem(const TQString &);
+ TQDomNode item(int) const;
+%If (TQt_3_0_0 -)
+ TQDomNode namedItemNS(const TQString &,const TQString &) const;
+ TQDomNode setNamedItemNS(const TQDomNode &);
+ TQDomNode removeNamedItemNS(const TQString &,const TQString &);
%End
uint length() const;
-%If (Qt_3_0_0 -)
+%If (TQt_3_0_0 -)
uint count() const;
%End
- bool contains(const QString &) const;
+ bool contains(const TQString &) const;
};
-class QDomDocumentFragment : QDomNode
+class TQDomDocumentFragment : TQDomNode
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomDocumentFragment();
- QDomDocumentFragment(const QDomDocumentFragment &);
+ TQDomDocumentFragment();
+ TQDomDocumentFragment(const TQDomDocumentFragment &);
- QDomNode::NodeType nodeType() const;
+ TQDomNode::NodeType nodeType() const;
bool isDocumentFragment() const;
};
-class QDomCharacterData : QDomNode
+class TQDomCharacterData : TQDomNode
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomCharacterData();
- QDomCharacterData(const QDomCharacterData &);
+ TQDomCharacterData();
+ TQDomCharacterData(const TQDomCharacterData &);
- virtual QString substringData(unsigned long,unsigned long);
- virtual void appendData(const QString &);
- virtual void insertData(unsigned long,const QString &);
+ virtual TQString substringData(unsigned long,unsigned long);
+ virtual void appendData(const TQString &);
+ virtual void insertData(unsigned long,const TQString &);
virtual void deleteData(unsigned long,unsigned long);
- virtual void replaceData(unsigned long,unsigned long,const QString &);
+ virtual void replaceData(unsigned long,unsigned long,const TQString &);
virtual uint length() const;
- virtual QString data() const;
- virtual void setData(const QString &);
+ virtual TQString data() const;
+ virtual void setData(const TQString &);
- QDomNode::NodeType nodeType() const;
+ TQDomNode::NodeType nodeType() const;
bool isCharacterData() const;
};
-class QDomAttr : QDomNode
+class TQDomAttr : TQDomNode
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomAttr();
- QDomAttr(const QDomAttr&);
+ TQDomAttr();
+ TQDomAttr(const TQDomAttr&);
- virtual QString name() const;
+ virtual TQString name() const;
virtual bool specified() const;
-%If (Qt_3_0_0 -)
- virtual QDomElement ownerElement() const;
+%If (TQt_3_0_0 -)
+ virtual TQDomElement ownerElement() const;
%End
- virtual QString value() const;
- virtual void setValue(const QString &);
+ virtual TQString value() const;
+ virtual void setValue(const TQString &);
- QDomNode::NodeType nodeType() const;
+ TQDomNode::NodeType nodeType() const;
bool isAttr() const;
};
-class QDomElement : QDomNode
+class TQDomElement : TQDomNode
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomElement();
- QDomElement(const QDomElement &);
-
- QString attribute(const QString &,
- const QString & = QString::null) const;
- void setAttribute(const QString &,const QString &);
- void setAttribute(const QString &,int /Constrained/);
-// void setAttribute(const QString &,uint);
-%If (Qt_3_2_0 -)
-// void setAttribute(const QString &,long);
-// void setAttribute(const QString &,ulong);
-%End
- void setAttribute(const QString &,double);
- void removeAttribute(const QString &);
- QDomAttr attributeNode(const QString &);
- QDomAttr setAttributeNode(const QDomAttr &);
- QDomAttr removeAttributeNode(const QDomAttr &);
- virtual QDomNodeList elementsByTagName(const QString &) const;
- bool hasAttribute(const QString &) const;
-%If (- Qt_3_0_0)
+ TQDomElement();
+ TQDomElement(const TQDomElement &);
+
+ TQString attribute(const TQString &,
+ const TQString & = TQString::null) const;
+ void setAttribute(const TQString &,const TQString &);
+ void setAttribute(const TQString &,int /Constrained/);
+// void setAttribute(const TQString &,uint);
+%If (TQt_3_2_0 -)
+// void setAttribute(const TQString &,long);
+// void setAttribute(const TQString &,ulong);
+%End
+ void setAttribute(const TQString &,double);
+ void removeAttribute(const TQString &);
+ TQDomAttr attributeNode(const TQString &);
+ TQDomAttr setAttributeNode(const TQDomAttr &);
+ TQDomAttr removeAttributeNode(const TQDomAttr &);
+ virtual TQDomNodeList elementsByTagName(const TQString &) const;
+ bool hasAttribute(const TQString &) const;
+%If (- TQt_3_0_0)
void normalize();
%End
-%If (Qt_3_0_0 -)
- QString attributeNS(const QString,const QString &,
- const QString &) const;
- void setAttributeNS(const QString,const QString &,const QString &);
- void setAttributeNS(const QString,const QString &,int /Constrained/);
-// void setAttributeNS(const QString,const QString &,uint);
-%If (Qt_3_2_0 -)
-// void setAttributeNS(const QString &,const QString &,long);
-// void setAttributeNS(const QString &,const QString &,ulong);
+%If (TQt_3_0_0 -)
+ TQString attributeNS(const TQString,const TQString &,
+ const TQString &) const;
+ void setAttributeNS(const TQString,const TQString &,const TQString &);
+ void setAttributeNS(const TQString,const TQString &,int /Constrained/);
+// void setAttributeNS(const TQString,const TQString &,uint);
+%If (TQt_3_2_0 -)
+// void setAttributeNS(const TQString &,const TQString &,long);
+// void setAttributeNS(const TQString &,const TQString &,ulong);
%End
- void setAttributeNS(const QString,const QString &,double);
- void removeAttributeNS(const QString &,const QString &);
- QDomAttr attributeNodeNS(const QString &,const QString &);
- QDomAttr setAttributeNodeNS(const QDomAttr &);
- virtual QDomNodeList elementsByTagNameNS(const QString &,
- const QString &) const;
- bool hasAttributeNS(const QString &,const QString &) const;
+ void setAttributeNS(const TQString,const TQString &,double);
+ void removeAttributeNS(const TQString &,const TQString &);
+ TQDomAttr attributeNodeNS(const TQString &,const TQString &);
+ TQDomAttr setAttributeNodeNS(const TQDomAttr &);
+ virtual TQDomNodeList elementsByTagNameNS(const TQString &,
+ const TQString &) const;
+ bool hasAttributeNS(const TQString &,const TQString &) const;
%End
- QString tagName() const;
- void setTagName(const QString &);
+ TQString tagName() const;
+ void setTagName(const TQString &);
- QDomNamedNodeMap attributes() const;
- QDomNode::NodeType nodeType() const;
+ TQDomNamedNodeMap attributes() const;
+ TQDomNode::NodeType nodeType() const;
bool isElement() const;
- QString text() const;
+ TQString text() const;
};
-class QDomText : QDomCharacterData
+class TQDomText : TQDomCharacterData
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomText();
- QDomText(const QDomText &);
+ TQDomText();
+ TQDomText(const TQDomText &);
- QDomText splitText(int);
+ TQDomText splitText(int);
- QDomNode::NodeType nodeType() const;
+ TQDomNode::NodeType nodeType() const;
bool isText() const;
};
-class QDomComment : QDomCharacterData
+class TQDomComment : TQDomCharacterData
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomComment();
- QDomComment(const QDomComment &);
+ TQDomComment();
+ TQDomComment(const TQDomComment &);
- QDomNode::NodeType nodeType() const;
+ TQDomNode::NodeType nodeType() const;
bool isComment() const;
};
-class QDomCDATASection : QDomText
+class TQDomCDATASection : TQDomText
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomCDATASection();
- QDomCDATASection(const QDomCDATASection&);
+ TQDomCDATASection();
+ TQDomCDATASection(const TQDomCDATASection&);
- QDomNode::NodeType nodeType() const;
+ TQDomNode::NodeType nodeType() const;
bool isCDATASection() const;
};
-class QDomNotation : QDomNode
+class TQDomNotation : TQDomNode
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomNotation();
- QDomNotation(const QDomNotation &);
+ TQDomNotation();
+ TQDomNotation(const TQDomNotation &);
- QString publicId() const;
- QString systemId() const;
+ TQString publicId() const;
+ TQString systemId() const;
- QDomNode::NodeType nodeType() const;
+ TQDomNode::NodeType nodeType() const;
bool isNotation() const;
};
-class QDomEntity : QDomNode
+class TQDomEntity : TQDomNode
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomEntity();
- QDomEntity(const QDomEntity &);
+ TQDomEntity();
+ TQDomEntity(const TQDomEntity &);
- virtual QString publicId() const;
- virtual QString systemId() const;
- virtual QString notationName() const;
+ virtual TQString publicId() const;
+ virtual TQString systemId() const;
+ virtual TQString notationName() const;
- QDomNode::NodeType nodeType() const;
+ TQDomNode::NodeType nodeType() const;
bool isEntity() const;
};
-class QDomEntityReference : QDomNode
+class TQDomEntityReference : TQDomNode
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomEntityReference();
- QDomEntityReference(const QDomEntityReference &);
+ TQDomEntityReference();
+ TQDomEntityReference(const TQDomEntityReference &);
- QDomNode::NodeType nodeType() const;
+ TQDomNode::NodeType nodeType() const;
bool isEntityReference() const;
};
-class QDomProcessingInstruction : QDomNode
+class TQDomProcessingInstruction : TQDomNode
{
%TypeHeaderCode
#include <qdom.h>
%End
public:
- QDomProcessingInstruction();
- QDomProcessingInstruction(const QDomProcessingInstruction &);
+ TQDomProcessingInstruction();
+ TQDomProcessingInstruction(const TQDomProcessingInstruction &);
- virtual QString target() const;
+ virtual TQString target() const;
- virtual QString data() const;
- virtual void setData(const QString &);
+ virtual TQString data() const;
+ virtual void setData(const TQString &);
- QDomNode::NodeType nodeType() const;
+ TQDomNode::NodeType nodeType() const;
bool isProcessingInstruction() const;
};
diff --git a/sip/qtxml/qtxmlmod.sip b/sip/qtxml/qtxmlmod.sip
index 58eebf4..4e058d8 100644
--- a/sip/qtxml/qtxmlmod.sip
+++ b/sip/qtxml/qtxmlmod.sip
@@ -1,22 +1,22 @@
-// This is the SIP interface definition for the qtxml module of PyQt.
+// This is the SIP interface definition for the qtxml 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.
@@ -36,7 +36,7 @@
// qt module which sorts it out, but this module doesn't so we add a dummy. It
// is ignored by SIP v4.x and later.
%PrePythonCode
-from qt import QObject
+from qt import TQObject
%End
@@ -48,20 +48,20 @@ from qt import QObject
# 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.