diff options
-rw-r--r-- | build.py | 184 | ||||
-rw-r--r-- | configure.py | 652 | ||||
-rw-r--r-- | doc/PyTQt.html (renamed from doc/PyQt.html) | 180 | ||||
-rw-r--r-- | doc/PyTQt.sgml (renamed from doc/PyQt.sgml) | 184 | ||||
-rw-r--r-- | doc/tqtdocs.sip (renamed from doc/qtdocs.sip) | 596 | ||||
-rw-r--r-- | examples/SQL/README | 4 | ||||
-rw-r--r-- | examples/SQL/connect.ui.h | 2 | ||||
-rwxr-xr-x | examples/SQL/dbconnect.py | 6 | ||||
-rw-r--r-- | examples/SQL/frmconnect.py | 4 | ||||
-rwxr-xr-x | examples/SQL/runform1.py | 2 | ||||
-rwxr-xr-x | examples/SQL/runform2.py | 2 | ||||
-rwxr-xr-x | examples/SQL/runsqlex.py | 4 | ||||
-rwxr-xr-x | examples/SQL/sqlcustom1.py | 4 | ||||
-rwxr-xr-x | examples/SQL/sqlsubclass5.py | 4 | ||||
-rwxr-xr-x | examples/SQL/sqltable4.py | 4 | ||||
-rwxr-xr-x | examples/aclock.py | 4 | ||||
-rwxr-xr-x | examples/addressbook.py | 2 | ||||
-rwxr-xr-x | examples/application.py | 2 | ||||
-rwxr-xr-x | examples/biff.py | 2 | ||||
-rwxr-xr-x | examples/bigtable.py | 4 | ||||
-rwxr-xr-x | examples/buttongroups.py | 4 | ||||
-rwxr-xr-x | examples/canvas/canvas.py | 10 | ||||
-rw-r--r-- | examples/canvas/tqt-trans.xpm (renamed from examples/canvas/qt-trans.xpm) | 0 | ||||
-rw-r--r-- | examples/canvas/tqtlogo.png (renamed from examples/canvas/qtlogo.png) | bin | 22603 -> 22603 bytes | |||
-rwxr-xr-x | examples/checklists.py | 2 | ||||
-rwxr-xr-x | examples/cursor.py | 2 | ||||
-rwxr-xr-x | examples/dclock.py | 2 | ||||
-rwxr-xr-x | examples/desktop.py | 2 | ||||
-rwxr-xr-x | examples/dirview.py | 2 | ||||
-rwxr-xr-x | examples/dragdrop.py | 2 | ||||
-rwxr-xr-x | examples/drawlines.py | 2 | ||||
-rw-r--r-- | examples/dropsite.py | 4 | ||||
-rwxr-xr-x | examples/fontdisplayer.py | 2 | ||||
-rwxr-xr-x | examples/fonts.py | 2 | ||||
-rwxr-xr-x | examples/gears.py | 4 | ||||
-rwxr-xr-x | examples/i18n/i18n.py | 2 | ||||
-rw-r--r-- | examples/i18n/mywidget.py | 2 | ||||
-rwxr-xr-x | examples/lineedits.py | 2 | ||||
-rwxr-xr-x | examples/listbox.py | 2 | ||||
-rwxr-xr-x | examples/listboxcombo.py | 4 | ||||
-rwxr-xr-x | examples/mdi.py | 2 | ||||
-rwxr-xr-x | examples/menu.py | 2 | ||||
-rwxr-xr-x | examples/progress.py | 2 | ||||
-rwxr-xr-x | examples/progressbar.py | 2 | ||||
-rwxr-xr-x | examples/rangecontrols.py | 2 | ||||
-rwxr-xr-x | examples/richtext.py | 2 | ||||
-rw-r--r-- | examples/secret.py | 2 | ||||
-rwxr-xr-x | examples/semaphore.py | 4 | ||||
-rwxr-xr-x | examples/smalltable.py | 4 | ||||
-rwxr-xr-x | examples/splitter.py | 2 | ||||
-rwxr-xr-x | examples/tabdialog.py | 2 | ||||
-rwxr-xr-x | examples/tablestatistics.py | 12 | ||||
-rwxr-xr-x | examples/tooltip.py | 2 | ||||
-rwxr-xr-x | examples/tqdir.py (renamed from examples/qdir.py) | 2 | ||||
-rwxr-xr-x | examples/tqmag.py (renamed from examples/qmag.py) | 2 | ||||
-rw-r--r-- | examples/tqt.png (renamed from examples/qt.png) | bin | 355 -> 355 bytes | |||
-rw-r--r-- | examples/tqtlogo.png (renamed from examples/qtlogo.png) | bin | 12634 -> 12634 bytes | |||
-rwxr-xr-x | examples/tut1.py | 6 | ||||
-rwxr-xr-x | examples/tut10.py | 66 | ||||
-rwxr-xr-x | examples/tut11.py | 92 | ||||
-rwxr-xr-x | examples/tut12.py | 116 | ||||
-rwxr-xr-x | examples/tut13.py | 152 | ||||
-rwxr-xr-x | examples/tut14.py | 176 | ||||
-rwxr-xr-x | examples/tut2.py | 10 | ||||
-rwxr-xr-x | examples/tut3.py | 12 | ||||
-rwxr-xr-x | examples/tut4.py | 14 | ||||
-rwxr-xr-x | examples/tut5.py | 20 | ||||
-rwxr-xr-x | examples/tut6.py | 26 | ||||
-rwxr-xr-x | examples/tut7.py | 30 | ||||
-rwxr-xr-x | examples/tut8.py | 46 | ||||
-rwxr-xr-x | examples/tut9.py | 56 | ||||
-rw-r--r-- | examples/webbrowser/mainwindow.py | 8 | ||||
-rw-r--r-- | examples/webbrowser/webbrowser.py | 18 | ||||
-rwxr-xr-x | examples/widgets.py | 8 | ||||
-rw-r--r-- | module-init.py | 30 | ||||
-rw-r--r-- | pytqlupdate3/LICENSE.GPL (renamed from pylupdate3/LICENSE.GPL) | 0 | ||||
-rw-r--r-- | pytqlupdate3/fetchtr.cpp (renamed from pylupdate3/fetchtr.cpp) | 2 | ||||
-rw-r--r-- | pytqlupdate3/main.cpp (renamed from pylupdate3/main.cpp) | 14 | ||||
-rw-r--r-- | pytqlupdate3/merge.cpp (renamed from pylupdate3/merge.cpp) | 0 | ||||
-rw-r--r-- | pytqlupdate3/metatranslator.cpp (renamed from pylupdate3/metatranslator.cpp) | 0 | ||||
-rw-r--r-- | pytqlupdate3/metatranslator.h (renamed from pylupdate3/metatranslator.h) | 0 | ||||
-rw-r--r-- | pytqlupdate3/numberh.cpp (renamed from pylupdate3/numberh.cpp) | 0 | ||||
-rw-r--r-- | pytqlupdate3/proparser.cpp (renamed from pylupdate3/proparser.cpp) | 0 | ||||
-rw-r--r-- | pytqlupdate3/proparser.h (renamed from pylupdate3/proparser.h) | 0 | ||||
-rw-r--r-- | pytqlupdate3/pytqlupdate-prof.sbf (renamed from pylupdate3/pylupdate-prof.sbf) | 4 | ||||
-rw-r--r-- | pytqlupdate3/pytqlupdate.pro.in (renamed from pylupdate3/pylupdate.pro.in) | 12 | ||||
-rw-r--r-- | pytqlupdate3/pytqlupdate.sbf (renamed from pylupdate3/pylupdate.sbf) | 4 | ||||
-rw-r--r-- | pytqlupdate3/sametexth.cpp (renamed from pylupdate3/sametexth.cpp) | 0 | ||||
-rw-r--r-- | pytqtconfig.py.in (renamed from pyqtconfig.py.in) | 50 | ||||
-rw-r--r-- | pytquic3/LICENSE.GPL (renamed from pyuic3/LICENSE.GPL) | 0 | ||||
-rw-r--r-- | pytquic3/domtool.cpp (renamed from pyuic3/domtool.cpp) | 0 | ||||
-rw-r--r-- | pytquic3/domtool.h (renamed from pyuic3/domtool.h) | 0 | ||||
-rw-r--r-- | pytquic3/embed.cpp (renamed from pyuic3/embed.cpp) | 14 | ||||
-rw-r--r-- | pytquic3/form.cpp (renamed from pyuic3/form.cpp) | 24 | ||||
-rw-r--r-- | pytquic3/globaldefs.h (renamed from pyuic3/globaldefs.h) | 0 | ||||
-rw-r--r-- | pytquic3/main.cpp (renamed from pyuic3/main.cpp) | 16 | ||||
-rw-r--r-- | pytquic3/object.cpp (renamed from pyuic3/object.cpp) | 2 | ||||
-rw-r--r-- | pytquic3/parser.cpp (renamed from pyuic3/parser.cpp) | 0 | ||||
-rw-r--r-- | pytquic3/parser.h (renamed from pyuic3/parser.h) | 0 | ||||
-rw-r--r-- | pytquic3/pytquic-prof.sbf (renamed from pyuic3/pyuic-prof.sbf) | 6 | ||||
-rw-r--r-- | pytquic3/pytquic.pro.in (renamed from pyuic3/pyuic.pro.in) | 16 | ||||
-rw-r--r-- | pytquic3/pytquic.sbf (renamed from pyuic3/pyuic.sbf) | 4 | ||||
-rw-r--r-- | pytquic3/subclassing.cpp (renamed from pyuic3/subclassing.cpp) | 0 | ||||
-rw-r--r-- | pytquic3/uic.cpp (renamed from pyuic3/uic.cpp) | 0 | ||||
-rw-r--r-- | pytquic3/uic.h (renamed from pyuic3/uic.h) | 0 | ||||
-rw-r--r-- | pytquic3/widgetdatabase.cpp (renamed from pyuic3/widgetdatabase.cpp) | 24 | ||||
-rw-r--r-- | pytquic3/widgetdatabase.h (renamed from pyuic3/widgetdatabase.h) | 0 | ||||
-rw-r--r-- | pytquic3/widgetinterface.h (renamed from pyuic3/widgetinterface.h) | 0 | ||||
-rw-r--r-- | sip/pytqt-gpl.sip (renamed from sip/pyqt-gpl.sip) | 0 | ||||
-rw-r--r-- | sip/qt/qtmod.sip | 279 | ||||
-rw-r--r-- | sip/qtgl/copying.sip | 51 | ||||
-rw-r--r-- | sip/qtnetwork/copying.sip | 51 | ||||
-rw-r--r-- | sip/qtpe/copying.sip | 51 | ||||
-rw-r--r-- | sip/qtsql/copying.sip | 51 | ||||
-rw-r--r-- | sip/qttable/copying.sip | 51 | ||||
-rw-r--r-- | sip/qtui/copying.sip | 51 | ||||
-rw-r--r-- | sip/qtxml/copying.sip | 51 | ||||
-rw-r--r-- | sip/tqt/copying.sip (renamed from sip/qtaxcontainer/copying.sip) | 14 | ||||
-rw-r--r-- | sip/tqt/tqaccel.sip (renamed from sip/qt/qaccel.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqaction.sip (renamed from sip/qt/qaction.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqapplication.sip (renamed from sip/qt/qapplication.sip) | 18 | ||||
-rw-r--r-- | sip/tqt/tqassistantclient.sip (renamed from sip/qt/qassistantclient.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqbitmap.sip (renamed from sip/qt/qbitmap.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqbrush.sip (renamed from sip/qt/qbrush.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqbutton.sip (renamed from sip/qt/qbutton.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqbuttongroup.sip (renamed from sip/qt/qbuttongroup.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqbytearray.sip (renamed from sip/qt/qbytearray.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqcdestyle.sip (renamed from sip/qt/qcdestyle.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqcheckbox.sip (renamed from sip/qt/qcheckbox.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqclipboard.sip (renamed from sip/qt/qclipboard.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqcolor.sip (renamed from sip/qt/qcolor.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqcolordialog.sip (renamed from sip/qt/qcolordialog.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqcolorgroup.sip (renamed from sip/qt/qcolorgroup.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqcombobox.sip (renamed from sip/qt/qcombobox.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqcommonstyle.sip (renamed from sip/qt/qcommonstyle.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqcstring.sip (renamed from sip/qt/qcstring.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqcursor.sip (renamed from sip/qt/qcursor.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqdatastream.sip (renamed from sip/qt/qdatastream.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqdatetime.sip (renamed from sip/qt/qdatetime.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqdatetimeedit.sip (renamed from sip/qt/qdatetimeedit.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqdesktopwidget.sip (renamed from sip/qt/qdesktopwidget.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqdial.sip (renamed from sip/qt/qdial.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqdialog.sip (renamed from sip/qt/qdialog.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqdir.sip (renamed from sip/qt/qdir.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqdockarea.sip (renamed from sip/qt/qdockarea.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqdockwindow.sip (renamed from sip/qt/qdockwindow.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqdragobject.sip (renamed from sip/qt/qdragobject.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqdrawutil.sip (renamed from sip/qt/qdrawutil.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqdropsite.sip (renamed from sip/qt/qdropsite.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqerrormessage.sip (renamed from sip/qt/qerrormessage.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqevent.sip (renamed from sip/qt/qevent.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqeventloop.sip (renamed from sip/qt/qeventloop.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqfile.sip (renamed from sip/qt/qfile.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqfiledialog.sip (renamed from sip/qt/qfiledialog.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqfileinfo.sip (renamed from sip/qt/qfileinfo.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqfont.sip (renamed from sip/qt/qfont.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqfontdatabase.sip (renamed from sip/qt/qfontdatabase.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqfontdialog.sip (renamed from sip/qt/qfontdialog.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqfontinfo.sip (renamed from sip/qt/qfontinfo.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqfontmetrics.sip (renamed from sip/qt/qfontmetrics.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqframe.sip (renamed from sip/qt/qframe.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqglobal.sip (renamed from sip/qt/qglobal.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqgrid.sip (renamed from sip/qt/qgrid.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqgridview.sip (renamed from sip/qt/qgridview.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqgroupbox.sip (renamed from sip/qt/qgroupbox.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqhbox.sip (renamed from sip/qt/qhbox.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqhbuttongroup.sip (renamed from sip/qt/qhbuttongroup.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqheader.sip (renamed from sip/qt/qheader.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqhgroupbox.sip (renamed from sip/qt/qhgroupbox.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqiconset.sip (renamed from sip/qt/qiconset.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqiconview.sip (renamed from sip/qt/qiconview.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqimage.sip (renamed from sip/qt/qimage.sip) | 6 | ||||
-rw-r--r-- | sip/tqt/tqinputdialog.sip (renamed from sip/qt/qinputdialog.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqinterlacestyle.sip (renamed from sip/qt/qinterlacestyle.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqiodevice.sip (renamed from sip/qt/qiodevice.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqkeysequence.sip (renamed from sip/qt/qkeysequence.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqlabel.sip (renamed from sip/qt/qlabel.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqlayout.sip (renamed from sip/qt/qlayout.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqlcdnumber.sip (renamed from sip/qt/qlcdnumber.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqlibrary.sip (renamed from sip/qt/qlibrary.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqlineedit.sip (renamed from sip/qt/qlineedit.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqlistbox.sip (renamed from sip/qt/qlistbox.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqlistview.sip (renamed from sip/qt/qlistview.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqlocale.sip (renamed from sip/qt/qlocale.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqmainwindow.sip (renamed from sip/qt/qmainwindow.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqmemarray.sip (renamed from sip/qt/qmemarray.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqmenubar.sip (renamed from sip/qt/qmenubar.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqmenudata.sip (renamed from sip/qt/qmenudata.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqmessagebox.sip (renamed from sip/qt/qmessagebox.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqmetaobject.sip (renamed from sip/qt/qmetaobject.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqmime.sip (renamed from sip/qt/qmime.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqmotifplusstyle.sip (renamed from sip/qt/qmotifplusstyle.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqmotifstyle.sip (renamed from sip/qt/qmotifstyle.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqmovie.sip (renamed from sip/qt/qmovie.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqmultilinedit.sip (renamed from sip/qt/qmultilinedit.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqmutex.sip (renamed from sip/qt/qmutex.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqnamespace.sip (renamed from sip/qt/qnamespace.sip) | 2 | ||||
-rw-r--r-- | sip/tqt/tqnetworkprotocol.sip (renamed from sip/qt/qnetworkprotocol.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqobject.sip (renamed from sip/qt/qobject.sip) | 212 | ||||
-rw-r--r-- | sip/tqt/tqobjectcleanuphandler.sip (renamed from sip/qt/qobjectcleanuphandler.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqobjectlist.sip (renamed from sip/qt/qobjectlist.sip) | 12 | ||||
-rw-r--r-- | sip/tqt/tqpaintdevice.sip (renamed from sip/qt/qpaintdevice.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqpaintdevicemetrics.sip (renamed from sip/qt/qpaintdevicemetrics.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqpainter.sip (renamed from sip/qt/qpainter.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqpair.sip (renamed from sip/qt/qpair.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqpalette.sip (renamed from sip/qt/qpalette.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqpen.sip (renamed from sip/qt/qpen.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqpicture.sip (renamed from sip/qt/qpicture.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqpixmap.sip (renamed from sip/qt/qpixmap.sip) | 2 | ||||
-rw-r--r-- | sip/tqt/tqpixmapcache.sip (renamed from sip/qt/qpixmapcache.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqplatinumstyle.sip (renamed from sip/qt/qplatinumstyle.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqpoint.sip (renamed from sip/qt/qpoint.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqpointarray.sip (renamed from sip/qt/qpointarray.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqpopupmenu.sip (renamed from sip/qt/qpopupmenu.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqprintdialog.sip (renamed from sip/qt/qprintdialog.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqprinter.sip (renamed from sip/qt/qprinter.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqprocess.sip (renamed from sip/qt/qprocess.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqprogressbar.sip (renamed from sip/qt/qprogressbar.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqprogressdialog.sip (renamed from sip/qt/qprogressdialog.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqptrlist.sip (renamed from sip/qt/qptrlist.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqpushbutton.sip (renamed from sip/qt/qpushbutton.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqradiobutton.sip (renamed from sip/qt/qradiobutton.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqrangecontrol.sip (renamed from sip/qt/qrangecontrol.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqrect.sip (renamed from sip/qt/qrect.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqregexp.sip (renamed from sip/qt/qregexp.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqregion.sip (renamed from sip/qt/qregion.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqscrollbar.sip (renamed from sip/qt/qscrollbar.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqscrollview.sip (renamed from sip/qt/qscrollview.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsemaphore.sip (renamed from sip/qt/qsemaphore.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsessionmanager.sip (renamed from sip/qt/qsessionmanager.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsettings.sip (renamed from sip/qt/qsettings.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsgistyle.sip (renamed from sip/qt/qsgistyle.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsignalmapper.sip (renamed from sip/qt/qsignalmapper.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsimplerichtext.sip (renamed from sip/qt/qsimplerichtext.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsize.sip (renamed from sip/qt/qsize.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsizegrip.sip (renamed from sip/qt/qsizegrip.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsizepolicy.sip (renamed from sip/qt/qsizepolicy.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqslider.sip (renamed from sip/qt/qslider.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsocketnotifier.sip (renamed from sip/qt/qsocketnotifier.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsound.sip (renamed from sip/qt/qsound.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqspinbox.sip (renamed from sip/qt/qspinbox.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsplashscreen.sip (renamed from sip/qt/qsplashscreen.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsplitter.sip (renamed from sip/qt/qsplitter.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqstatusbar.sip (renamed from sip/qt/qstatusbar.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqstring.sip (renamed from sip/qt/qstring.sip) | 76 | ||||
-rw-r--r-- | sip/tqt/tqstringlist.sip (renamed from sip/qt/qstringlist.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqstrlist.sip (renamed from sip/qt/qstrlist.sip) | 8 | ||||
-rw-r--r-- | sip/tqt/tqstyle.sip (renamed from sip/qt/qstyle.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqstylefactory.sip (renamed from sip/qt/qstylefactory.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqstylesheet.sip (renamed from sip/qt/qstylesheet.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqsyntaxhighlighter.sip (renamed from sip/qt/qsyntaxhighlighter.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtabbar.sip (renamed from sip/qt/qtabbar.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtabdialog.sip (renamed from sip/qt/qtabdialog.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtabwidget.sip (renamed from sip/qt/qtabwidget.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtextbrowser.sip (renamed from sip/qt/qtextbrowser.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtextcodec.sip (renamed from sip/qt/qtextcodec.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtextedit.sip (renamed from sip/qt/qtextedit.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtextstream.sip (renamed from sip/qt/qtextstream.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtextview.sip (renamed from sip/qt/qtextview.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqthread.sip (renamed from sip/qt/qthread.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtimer.sip (renamed from sip/qt/qtimer.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtmod.sip | 279 | ||||
-rw-r--r-- | sip/tqt/tqtoolbar.sip (renamed from sip/qt/qtoolbar.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtoolbox.sip (renamed from sip/qt/qtoolbox.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtoolbutton.sip (renamed from sip/qt/qtoolbutton.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtooltip.sip (renamed from sip/qt/qtooltip.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqtranslator.sip (renamed from sip/qt/qtranslator.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqurl.sip (renamed from sip/qt/qurl.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqurlinfo.sip (renamed from sip/qt/qurlinfo.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqurloperator.sip (renamed from sip/qt/qurloperator.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tquuid.sip (renamed from sip/qt/quuid.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqvalidator.sip (renamed from sip/qt/qvalidator.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqvaluelist.sip (renamed from sip/qt/qvaluelist.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqvariant.sip (renamed from sip/qt/qvariant.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqvbox.sip (renamed from sip/qt/qvbox.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqvbuttongroup.sip (renamed from sip/qt/qvbuttongroup.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqvgroupbox.sip (renamed from sip/qt/qvgroupbox.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqwaitcondition.sip (renamed from sip/qt/qwaitcondition.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqwhatsthis.sip (renamed from sip/qt/qwhatsthis.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqwidget.sip (renamed from sip/qt/qwidget.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqwidgetlist.sip (renamed from sip/qt/qwidgetlist.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqwidgetstack.sip (renamed from sip/qt/qwidgetstack.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqwindowdefs.sip (renamed from sip/qt/qwindowdefs.sip) | 8 | ||||
-rw-r--r-- | sip/tqt/tqwindowdefs_qws.sip (renamed from sip/qt/qwindowdefs_qws.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqwindowdefs_x11.sip (renamed from sip/qt/qwindowdefs_x11.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqwindowsstyle.sip (renamed from sip/qt/qwindowsstyle.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqwindowsxpstyle.sip (renamed from sip/qt/qwindowsxpstyle.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqwizard.sip (renamed from sip/qt/qwizard.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqwmatrix.sip (renamed from sip/qt/qwmatrix.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/tqworkspace.sip (renamed from sip/qt/qworkspace.sip) | 0 | ||||
-rw-r--r-- | sip/tqt/versions.sip (renamed from sip/qt/versions.sip) | 0 | ||||
-rw-r--r-- | sip/tqtaxcontainer/copying.sip (renamed from sip/qtcanvas/copying.sip) | 14 | ||||
-rw-r--r-- | sip/tqtaxcontainer/tqaxbase.sip (renamed from sip/qtaxcontainer/qaxbase.sip) | 2 | ||||
-rw-r--r-- | sip/tqtaxcontainer/tqaxobject.sip (renamed from sip/qtaxcontainer/qaxobject.sip) | 0 | ||||
-rw-r--r-- | sip/tqtaxcontainer/tqaxwidget.sip (renamed from sip/qtaxcontainer/qaxwidget.sip) | 0 | ||||
-rw-r--r-- | sip/tqtaxcontainer/tqtaxcontainermod.sip (renamed from sip/qtaxcontainer/qtaxcontainermod.sip) | 12 | ||||
-rw-r--r-- | sip/tqtcanvas/copying.sip (renamed from sip/qt/copying.sip) | 14 | ||||
-rw-r--r-- | sip/tqtcanvas/tqcanvas.sip (renamed from sip/qtcanvas/qcanvas.sip) | 0 | ||||
-rw-r--r-- | sip/tqtcanvas/tqtcanvasmod.sip (renamed from sip/qttable/qttablemod.sip) | 18 | ||||
-rw-r--r-- | sip/tqtext/copying.sip (renamed from sip/qtext/copying.sip) | 14 | ||||
-rw-r--r-- | sip/tqtext/tqextscintilla.sip (renamed from sip/qtext/qextscintilla.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillaapis.sip (renamed from sip/qtext/qextscintillaapis.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillabase.sip (renamed from sip/qtext/qextscintillabase.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillacommand.sip (renamed from sip/qtext/qextscintillacommand.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillacommandset.sip (renamed from sip/qtext/qextscintillacommandset.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintilladocument.sip (renamed from sip/qtext/qextscintilladocument.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexer.sip (renamed from sip/qtext/qextscintillalexer.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexerbash.sip (renamed from sip/qtext/qextscintillalexerbash.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexerbatch.sip (renamed from sip/qtext/qextscintillalexerbatch.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexercpp.sip (renamed from sip/qtext/qextscintillalexercpp.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexercsharp.sip (renamed from sip/qtext/qextscintillalexercsharp.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexercss.sip (renamed from sip/qtext/qextscintillalexercss.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexerdiff.sip (renamed from sip/qtext/qextscintillalexerdiff.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexerhtml.sip (renamed from sip/qtext/qextscintillalexerhtml.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexeridl.sip (renamed from sip/qtext/qextscintillalexeridl.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexerjava.sip (renamed from sip/qtext/qextscintillalexerjava.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexerjavascript.sip (renamed from sip/qtext/qextscintillalexerjavascript.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexerlua.sip (renamed from sip/qtext/qextscintillalexerlua.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexermakefile.sip (renamed from sip/qtext/qextscintillalexermakefile.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexerperl.sip (renamed from sip/qtext/qextscintillalexerperl.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexerpov.sip (renamed from sip/qtext/qextscintillalexerpov.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexerproperties.sip (renamed from sip/qtext/qextscintillalexerproperties.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexerpython.sip (renamed from sip/qtext/qextscintillalexerpython.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexerruby.sip (renamed from sip/qtext/qextscintillalexerruby.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexersql.sip (renamed from sip/qtext/qextscintillalexersql.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillalexertex.sip (renamed from sip/qtext/qextscintillalexertex.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillamacro.sip (renamed from sip/qtext/qextscintillamacro.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqextscintillaprinter.sip (renamed from sip/qtext/qextscintillaprinter.sip) | 0 | ||||
-rw-r--r-- | sip/tqtext/tqtextmod.sip (renamed from sip/qtext/qtextmod.sip) | 74 | ||||
-rw-r--r-- | sip/tqtgl/copying.sip | 51 | ||||
-rw-r--r-- | sip/tqtgl/tqgl.sip (renamed from sip/qtgl/qgl.sip) | 0 | ||||
-rw-r--r-- | sip/tqtgl/tqglcolormap.sip (renamed from sip/qtgl/qglcolormap.sip) | 0 | ||||
-rw-r--r-- | sip/tqtgl/tqtglmod.sip (renamed from sip/qtgl/qtglmod.sip) | 20 | ||||
-rw-r--r-- | sip/tqtnetwork/copying.sip | 51 | ||||
-rw-r--r-- | sip/tqtnetwork/tqdns.sip (renamed from sip/qtnetwork/qdns.sip) | 0 | ||||
-rw-r--r-- | sip/tqtnetwork/tqftp.sip (renamed from sip/qtnetwork/qftp.sip) | 0 | ||||
-rw-r--r-- | sip/tqtnetwork/tqhostaddress.sip (renamed from sip/qtnetwork/qhostaddress.sip) | 0 | ||||
-rw-r--r-- | sip/tqtnetwork/tqhttp.sip (renamed from sip/qtnetwork/qhttp.sip) | 0 | ||||
-rw-r--r-- | sip/tqtnetwork/tqlocalfs.sip (renamed from sip/qtnetwork/qlocalfs.sip) | 0 | ||||
-rw-r--r-- | sip/tqtnetwork/tqnetwork.sip (renamed from sip/qtnetwork/qnetwork.sip) | 0 | ||||
-rw-r--r-- | sip/tqtnetwork/tqserversocket.sip (renamed from sip/qtnetwork/qserversocket.sip) | 0 | ||||
-rw-r--r-- | sip/tqtnetwork/tqsocket.sip (renamed from sip/qtnetwork/qsocket.sip) | 0 | ||||
-rw-r--r-- | sip/tqtnetwork/tqsocketdevice.sip (renamed from sip/qtnetwork/qsocketdevice.sip) | 0 | ||||
-rw-r--r-- | sip/tqtnetwork/tqtnetworkmod.sip (renamed from sip/qtnetwork/qtnetworkmod.sip) | 34 | ||||
-rw-r--r-- | sip/tqtpe/copying.sip | 51 | ||||
-rw-r--r-- | sip/tqtpe/tqpeapplication.sip (renamed from sip/qtpe/qpeapplication.sip) | 0 | ||||
-rw-r--r-- | sip/tqtpe/tqpeapplnk.sip (renamed from sip/qtpe/qpeapplnk.sip) | 0 | ||||
-rw-r--r-- | sip/tqtpe/tqpeconfig.sip (renamed from sip/qtpe/qpeconfig.sip) | 0 | ||||
-rw-r--r-- | sip/tqtpe/tqpefilemanager.sip (renamed from sip/qtpe/qpefilemanager.sip) | 0 | ||||
-rw-r--r-- | sip/tqtpe/tqpefileselector.sip (renamed from sip/qtpe/qpefileselector.sip) | 0 | ||||
-rw-r--r-- | sip/tqtpe/tqpefontdatabase.sip (renamed from sip/qtpe/qpefontdatabase.sip) | 0 | ||||
-rw-r--r-- | sip/tqtpe/tqpeglobal.sip (renamed from sip/qtpe/qpeglobal.sip) | 0 | ||||
-rw-r--r-- | sip/tqtpe/tqpemenubar.sip (renamed from sip/qtpe/qpemenubar.sip) | 0 | ||||
-rw-r--r-- | sip/tqtpe/tqpemenubutton.sip (renamed from sip/qtpe/qpemenubutton.sip) | 0 | ||||
-rw-r--r-- | sip/tqtpe/tqpeqcopenvelope.sip (renamed from sip/qtpe/qpeqcopenvelope.sip) | 2 | ||||
-rw-r--r-- | sip/tqtpe/tqpeqdawg.sip (renamed from sip/qtpe/qpeqdawg.sip) | 0 | ||||
-rw-r--r-- | sip/tqtpe/tqperesource.sip (renamed from sip/qtpe/qperesource.sip) | 0 | ||||
-rw-r--r-- | sip/tqtpe/tqpetimestring.sip (renamed from sip/qtpe/qpetimestring.sip) | 0 | ||||
-rw-r--r-- | sip/tqtpe/tqpetoolbar.sip (renamed from sip/qtpe/qpetoolbar.sip) | 0 | ||||
-rw-r--r-- | sip/tqtpe/tqtpemod.sip (renamed from sip/qtpe/qtpemod.sip) | 44 | ||||
-rw-r--r-- | sip/tqtsql/copying.sip | 51 | ||||
-rw-r--r-- | sip/tqtsql/tqdatabrowser.sip (renamed from sip/qtsql/qdatabrowser.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqdatatable.sip (renamed from sip/qtsql/qdatatable.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqdataview.sip (renamed from sip/qtsql/qdataview.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqeditorfactory.sip (renamed from sip/qtsql/qeditorfactory.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsql.sip (renamed from sip/qtsql/qsql.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsqlcursor.sip (renamed from sip/qtsql/qsqlcursor.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsqldatabase.sip (renamed from sip/qtsql/qsqldatabase.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsqldriver.sip (renamed from sip/qtsql/qsqldriver.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsqleditorfactory.sip (renamed from sip/qtsql/qsqleditorfactory.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsqlerror.sip (renamed from sip/qtsql/qsqlerror.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsqlfield.sip (renamed from sip/qtsql/qsqlfield.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsqlform.sip (renamed from sip/qtsql/qsqlform.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsqlindex.sip (renamed from sip/qtsql/qsqlindex.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsqlpropertymap.sip (renamed from sip/qtsql/qsqlpropertymap.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsqlquery.sip (renamed from sip/qtsql/qsqlquery.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsqlrecord.sip (renamed from sip/qtsql/qsqlrecord.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsqlresult.sip (renamed from sip/qtsql/qsqlresult.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqsqlselectcursor.sip (renamed from sip/qtsql/qsqlselectcursor.sip) | 0 | ||||
-rw-r--r-- | sip/tqtsql/tqtsqlmod.sip (renamed from sip/qtsql/qtsqlmod.sip) | 54 | ||||
-rw-r--r-- | sip/tqttable/copying.sip | 51 | ||||
-rw-r--r-- | sip/tqttable/tqtable.sip (renamed from sip/qttable/qtable.sip) | 0 | ||||
-rw-r--r-- | sip/tqttable/tqttablemod.sip (renamed from sip/qtcanvas/qtcanvasmod.sip) | 18 | ||||
-rw-r--r-- | sip/tqtui/copying.sip | 51 | ||||
-rw-r--r-- | sip/tqtui/tqtuimod.sip (renamed from sip/qtui/qtuimod.sip) | 18 | ||||
-rw-r--r-- | sip/tqtui/tqwidgetfactory.sip (renamed from sip/qtui/qwidgetfactory.sip) | 0 | ||||
-rw-r--r-- | sip/tqtxml/copying.sip | 51 | ||||
-rw-r--r-- | sip/tqtxml/tqdom.sip (renamed from sip/qtxml/qdom.sip) | 0 | ||||
-rw-r--r-- | sip/tqtxml/tqtxmlmod.sip (renamed from sip/qtxml/qtxmlmod.sip) | 24 |
389 files changed, 2506 insertions, 2506 deletions
@@ -19,7 +19,7 @@ # # 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 +# it is being built. It uses either tqmake or tmake to do the hard work of # generating the platform specific Makefiles. @@ -46,14 +46,14 @@ config = sip_tqt_config.SIPConfig("PyTQt 3.18.1") # Initialise the globals. sipMajorVersion = config.sip_version >> 16 -sciIncDir = config.qt_inc_dir -sciLibDir = config.qt_lib_dir +sciIncDir = config.tqt_inc_dir +sciLibDir = config.tqt_lib_dir sciLib = None sciVersion = None binDir = config.default_bin_dir modDir = config.default_mod_dir sipDir = config.default_sip_dir -buildModules = ["qt"] +buildModules = ["tqt"] tempBuildDir = None catCppFiles = 0 catSplit = 1 @@ -71,14 +71,14 @@ def usage(rcode = 2): print(" %s [-h] [-a version] [-b dir] [-c] [-d dir] [-g] [-j #] [-n dir] [-o dir] [-r] [-v dir]" % sip_tqt_config.script()) print("where:") print(" -h display this help message") - print(" -a tag explicitly enable the qtpe module") + print(" -a tag explicitly enable the tqtpe 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 PyTQt modules will be installed [default %s]" % config.default_mod_dir) print(" -g always release the GIL (SIP-TQt v3.x behaviour)") print(" -j # split the concatenated C++ source files into # pieces [default 1]") - 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(" -n dir the directory containing the TQScintilla header files [default %s]" % config.tqt_inc_dir) + print(" -o dir the directory containing the TQScintilla library [default %s]" % config.tqt_lib_dir) print(" -r generate code with tracing enabled [default disabled]") print(" -v dir where the PyTQt .sip files will be installed [default %s]" % config.default_sip_dir) @@ -87,7 +87,7 @@ def usage(rcode = 2): def mkTempBuildDir(olddir=None): """Create a temporary build directory for a console application called - qttest, complete with patched Makefile. The global tempBuildDir is set to + tqttest, complete with patched Makefile. The global tempBuildDir is set to the name of the directory. The temporary directory becomes the current directory. @@ -107,26 +107,26 @@ def mkTempBuildDir(olddir=None): prevdir = sip_tqt_config.push_dir(tempBuildDir) - sip_tqt_config.copy_to_file("qttest.pro.in", + sip_tqt_config.copy_to_file("tqttest.pro.in", """TEMPLATE = app -TARGET = qttest +TARGET = tqttest CONFIG += console warn_off @TEST_OPENGL@ @BLX_CONFIG_APP@ -INCLUDEPATH = @BLX_INCLUDEPATH@ @TEST_QSCINTILLA_INC@ +INCLUDEPATH = @BLX_INCLUDEPATH@ @TEST_TQSCINTILLA_INC@ DEFINES = @BLX_DEFINES@ -SOURCES = qttest.cpp -LIBS += @TEST_QUI_LIB@ @TEST_QSCINTILLA_LIB@ +SOURCES = tqttest.cpp +LIBS += @TEST_TQUI_LIB@ @TEST_TQSCINTILLA_LIB@ """) # Disable OpenGL, tqui and TQScintilla support by default. config.patches["@TEST_OPENGL@"] = "" - config.patches["@TEST_QUI_LIB@"] = "" - config.patches["@TEST_QSCINTILLA_INC@"] = "" - config.patches["@TEST_QSCINTILLA_LIB@"] = "" + config.patches["@TEST_TQUI_LIB@"] = "" + config.patches["@TEST_TQSCINTILLA_INC@"] = "" + config.patches["@TEST_TQSCINTILLA_LIB@"] = "" # Create a dummy source file to suppress a qmake warning. - sip_tqt_config.copy_to_file("qttest.cpp", "") + sip_tqt_config.copy_to_file("tqttest.cpp", "") - config.create_makefile("qttest.pro") + config.create_makefile("tqttest.pro") else: sip_tqt_config.pop_dir(olddir) prevdir = None @@ -152,7 +152,7 @@ def tryModule(maindir, mname, incfile, ctor): if not os.access(msip, os.F_OK): return - sip_tqt_config.copy_to_file("qttest.cpp", + sip_tqt_config.copy_to_file("tqttest.cpp", """#include <%s> int main(int argc,char **argv) @@ -177,7 +177,7 @@ def checkTQScintilla(): sciglobal = os.path.join(sciIncDir, "tqextscintillaglobal.h") if os.access(sciglobal,os.F_OK): - config.patches["@PYQT_QSCINTILLA_INC@"] = sciIncDir + config.patches["@PYTQT_TQSCINTILLA_INC@"] = sciIncDir sip_tqt_config.inform("%s contains tqextscintillaglobal.h." % (sciIncDir)) @@ -209,13 +209,13 @@ def checkTQScintilla(): else: sciLib = sip_tqt_config.escape("-L" + sciLibDir) + " -ltqscintilla" - config.patches["@PYQT_QSCINTILLA_LIB@"] = sciLib + config.patches["@PYTQT_TQSCINTILLA_LIB@"] = sciLib else: - sip_tqt_config.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)) + sip_tqt_config.inform("The TQScintilla library could not be found in %s and so the tqtext module will not be built. If TQScintilla is installed then use the -o argument to explicitly specify the correct directory." % (sciLibDir)) sciVersion = -1 else: - sip_tqt_config.inform("tqextscintillaglobal.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) + sip_tqt_config.inform("tqextscintillaglobal.h could not be found in %s and so the tqtext module will not be built. If TQScintilla is installed then use the -n argument to explicitly specify the correct directory." % sciIncDir) sciVersion = -1 @@ -225,54 +225,54 @@ def moduleChecks(maindir): """ sip_tqt_config.inform("Checking which additional PyTQt modules to build."); - tryModule(maindir,"qtcanvas", "qcanvas.h", "TQCanvas()") - tryModule(maindir,"qtnetwork", "qsocket.h", "TQSocket()") - tryModule(maindir,"qttable", "qtable.h", "TQTable()") - tryModule(maindir,"qtxml", "qdom.h", "TQDomImplementation()") + tryModule(maindir,"tqtcanvas", "tqcanvas.h", "TQCanvas()") + tryModule(maindir,"tqtnetwork", "tqsocket.h", "TQSocket()") + tryModule(maindir,"tqttable", "tqtable.h", "TQTable()") + tryModule(maindir,"tqtxml", "tqdom.h", "TQDomImplementation()") - if config.qt_version >= 0x030000: - tryModule(maindir,"qtsql", "qsql.h", "TQSql()") + if config.tqt_version >= 0x030000: + tryModule(maindir,"tqtsql", "tqsql.h", "TQSql()") - # We need a different Makefile for the qtgl module. + # We need a different Makefile for the tqtgl module. config.patches["@TEST_OPENGL@"] = "opengl" - config.create_makefile("qttest.pro") + config.create_makefile("tqttest.pro") - tryModule(maindir,"qtgl", "qgl.h", "TQGLWidget()") + tryModule(maindir,"tqtgl", "tqgl.h", "TQGLWidget()") # Put things back. config.patches["@TEST_OPENGL@"] = "" - config.create_makefile("qttest.pro") + config.create_makefile("tqttest.pro") # Check for the tqui library. - if config.qt_version >= 0x030000: + if config.tqt_version >= 0x030000: if sys.platform == "win32": tquilib = r"$(TQTDIR)\lib\tqui.lib" else: tquilib = "-ltqui" - config.patches["@PYQT_QUI_LIB@"] = tquilib + config.patches["@PYTQT_TQUI_LIB@"] = tquilib - config.patches["@TEST_QUI_LIB@"] = tquilib - config.create_makefile("qttest.pro") + config.patches["@TEST_TQUI_LIB@"] = tquilib + config.create_makefile("tqttest.pro") - tryModule(maindir,"qtui", "qwidgetfactory.h", "TQWidgetFactory()") + tryModule(maindir,"tqtui", "tqwidgetfactory.h", "TQWidgetFactory()") # Put things back. - config.patches["@TEST_QUI_LIB@"] = "" - config.create_makefile("qttest.pro") + config.patches["@TEST_TQUI_LIB@"] = "" + config.create_makefile("tqttest.pro") # Check for the TQScintilla library. if sciVersion >= 0: - config.patches["@TEST_QSCINTILLA_INC@"] = sciIncDir - config.patches["@TEST_QSCINTILLA_LIB@"] = sciLib - config.create_makefile("qttest.pro") + config.patches["@TEST_TQSCINTILLA_INC@"] = sciIncDir + config.patches["@TEST_TQSCINTILLA_LIB@"] = sciLib + config.create_makefile("tqttest.pro") - tryModule(maindir,"qtext", "tqextscintillabase.h", "TQextScintillaBase()") + tryModule(maindir,"tqtext", "tqextscintillabase.h", "TQextScintillaBase()") # Put things back. - config.patches["@TEST_QSCINTILLA_INC@"] = "" - config.patches["@TEST_QSCINTILLA_LIB@"] = "" - config.create_makefile("qttest.pro") + config.patches["@TEST_TQSCINTILLA_INC@"] = "" + config.patches["@TEST_TQSCINTILLA_LIB@"] = "" + config.create_makefile("tqttest.pro") def generateFeatures(featfile): @@ -302,7 +302,7 @@ def generateFeatures(featfile): "WORKSPACE"] # Generate the program which will generate the features file. - f = open("qttest.cpp","w") + f = open("tqttest.cpp","w") # Escape the backslashes so that the name can be embedded in a C++ string. ffstr = string.replace(featfile, "\\", "\\\\") @@ -328,7 +328,7 @@ int main(int argc,char **argv) #endif #if (defined(Q_OS_WIN32) || defined(Q_OS_WIN64)) && TQT_VERSION >= 0x030000 - if (qWinVersion() != TQt::WV_XP) + if (tqWinVersion() != TQt::WV_XP) fprintf(fp,"-x TQt_STYLE_WINDOWSXP\\n"); #endif """ % (ffstr, ffstr)) @@ -352,18 +352,18 @@ int main(int argc,char **argv) f.close() sip_tqt_config.run_make() - sip_tqt_config.run_program(os.path.join(os.getcwd(), "qttest")) + sip_tqt_config.run_program(os.path.join(os.getcwd(), "tqttest")) sip_tqt_config.run_make("clean") sip_tqt_config.inform("Generated the features file.") -def generateSource(mname, plattag, qttag, xtrtag): +def generateSource(mname, plattag, tqttag, xtrtag): """Generate the C++ source code for a particular PyTQt module. mname is the name of the module. plattag is the SIP-TQt tag for the platform. - qttag is the SIP-TQt tag for the TQt version. + tqttag is the SIP-TQt tag for the TQt version. xtrtag is an optional extra SIP-TQt tag. """ sip_tqt_config.inform("Generating the C++ source for the %s module." % mname) @@ -381,7 +381,7 @@ def generateSource(mname, plattag, qttag, xtrtag): pro = mname + ".pro" argv = ["-t", plattag, - "-t", qttag, + "-t", tqttag, "-z", "features", "-I", "sip", "-m", mname + "/" + pro + ".in", @@ -474,8 +474,8 @@ def main(argv): if opt == "-h": usage(0) elif opt == "-a": - global qpeTag - qpeTag = arg + global tqpeTag + tqpeTag = arg elif opt == "-b": global binDir binDir = arg @@ -522,19 +522,19 @@ def main(argv): sip_tqt_config.error("Please copy the license file %s to the sip directory.\n" % config.license_file) # Check the TQt version. - if config.qt_version == 0: + if config.tqt_version == 0: sip_tqt_config.error("SIP-TQt has been built with TQt support disabled.\n") # 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: + if sys.platform == "darwin" and config.tqt_version < 0x030100: sip_tqt_config.error("PyTQt for MacOS/X requires 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): sip_tqt_config.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@"] = sip_tqt_config.escape(modDir) + config.patches["@PYTQT_MODDIR@"] = sip_tqt_config.escape(modDir) sip_tqt_config.inform("%s is the PyTQt installation directory." % (modDir)) @@ -544,7 +544,7 @@ def main(argv): else: warn = "warn_off" - config.patches["@PYQT_WARN@"] = warn + config.patches["@PYTQT_WARN@"] = warn # Create patches to allow some modules to link against others. if sipMajorVersion >= 4: @@ -552,52 +552,52 @@ def main(argv): elif sys.platform == "win32": modlink = sip_tqt_config.escape(os.path.join(modDir, "libtqtc.lib")) else: - modlink = sip_tqt_config.escape("-L" + modDir) + " -lqtcmodule" + modlink = sip_tqt_config.escape("-L" + modDir) + " -ltqtcmodule" - config.patches["@PYQT_QT_MODULE@"] = modlink + config.patches["@PYTQT_TQT_MODULE@"] = modlink if sipMajorVersion >= 4: modlink = "" elif sys.platform == "win32": modlink = sip_tqt_config.escape(os.path.join(modDir, "libtqttablec.lib")) + " " + sip_tqt_config.escape(os.path.join(modDir, "libtqtc.lib")) else: - modlink = sip_tqt_config.escape("-L" + modDir) + " -lqttablecmodule -lqtcmodule" + modlink = sip_tqt_config.escape("-L" + modDir) + " -ltqttablecmodule -ltqtcmodule" - config.patches["@PYQT_QTTABLE_MODULE@"] = modlink + config.patches["@PYTQT_TQTTABLE_MODULE@"] = modlink # The professional edition needs special handling if XML support is needed. - if config.qt_edition == "professional": + if config.tqt_edition == "professional": rbprof = "rbprof" else: rbprof = "" - config.patches["@PYQT_RBPROF@"] = rbprof + config.patches["@PYTQT_RBPROF@"] = rbprof # Link in the qassistantclient library for TQt v3.1+. - qaclib = "" + tqaclib = "" - if config.qt_version >= 0x030100: + if config.tqt_version >= 0x030100: if sys.platform == "win32": - qaclib = r"$(TQTDIR)\lib\qassistantclient.lib" + tqaclib = r"$(TQTDIR)\lib\tqassistantclient.lib" else: - qaclib = "-lqassistantclient" + tqaclib = "-ltqassistantclient" - config.patches["@PYQT_QASSISTANTCLIENT_LIB@"] = qaclib + config.patches["@PYTQT_QASSISTANTCLIENT_LIB@"] = tqaclib # Check for TQScintilla. - if config.qt_version >= 0x030000: + if config.tqt_version >= 0x030000: checkTQScintilla() # Create a build directory that we can compile test programs. maindir = mkTempBuildDir() # Check what additional modules to build. - if config.qt_version >= 0x020000: + if config.tqt_version >= 0x020000: moduleChecks(maindir) # Work out the platform and TQt version tags to pass to SIP-TQt to generate the # code we need. - if config.qt_lib == "qte": + if config.tqt_lib == "tqte": plattag = "WS_QWS" elif sys.platform == "win32": plattag = "WS_WIN" @@ -606,7 +606,7 @@ def main(argv): else: plattag = "WS_X11" - qttags = { + tqttags = { 0x020000: "TQt_1_43", 0x020100: "TQt_2_00", 0x020200: "TQt_2_1_0", @@ -626,7 +626,7 @@ def main(argv): 0x040000: "TQt_3_3_0" } - qttag = versionToTag(config.qt_version, qttags, "TQt") + tqttag = versionToTag(config.tqt_version, tqttags, "TQt") # Work out the TQScintilla tag. if sciVersion >= 0: @@ -648,20 +648,20 @@ def main(argv): subdirs = [] for mname in buildModules: - if mname == "qtext": + if mname == "tqtext": xtratag = scitag else: xtratag = None - generateSource(mname, plattag, qttag, xtratag) + generateSource(mname, plattag, tqttag, xtratag) subdirs.append(mname) - # We handle the qtpe module explicitly rather than auto-detect. This is + # We handle the tqtpe module explicitly rather than auto-detect. This is # because it does things a bit differently and I'm too lazy to deal with it # properly at the moment. - if qpeTag: - generateSource("qtpe", plattag, qttag, qpeTag) - subdirs.append("qtpe") + if tqpeTag: + generateSource("tqtpe", plattag, tqttag, tqpeTag) + subdirs.append("tqtpe") # Install the .sip files. sip_tqt_config.inform("Creating Makefile for .sip files.") @@ -683,23 +683,23 @@ def main(argv): subdirs.append("sip") # See which version of pyuic to build. - config.patches["@PYQT_BINDIR@"] = sip_tqt_config.escape(binDir) + config.patches["@PYTQT_BINDIR@"] = sip_tqt_config.escape(binDir) - if config.qt_version >= 0x030000: - sip_tqt_config.inform("Creating Makefile for pyuic3.") - subdirs.append("pyuic3") - olddir = sip_tqt_config.push_dir("pyuic3") + if config.tqt_version >= 0x030000: + sip_tqt_config.inform("Creating Makefile for pytquic3.") + subdirs.append("pytquic3") + olddir = sip_tqt_config.push_dir("pytquic3") - config.create_makefile("pyuic.pro", []) + config.create_makefile("pytquic.pro", []) sip_tqt_config.pop_dir(olddir) # Build pylupdate if TQt v3.0 or later. - if config.qt_version >= 0x030000: - sip_tqt_config.inform("Creating Makefile for pylupdate3.") - subdirs.append("pylupdate3") - olddir = sip_tqt_config.push_dir("pylupdate3") + if config.tqt_version >= 0x030000: + sip_tqt_config.inform("Creating Makefile for pytqlupdate3.") + subdirs.append("pytqlupdate3") + olddir = sip_tqt_config.push_dir("pytqlupdate3") - config.create_makefile("pylupdate.pro", []) + config.create_makefile("pytqlupdate.pro", []) sip_tqt_config.pop_dir(olddir) # Generate the top-level Makefile. diff --git a/configure.py b/configure.py index 56c3537..30b117a 100644 --- a/configure.py +++ b/configure.py @@ -33,51 +33,51 @@ import sip_tqt_config src_dir = os.path.dirname(os.path.abspath(__file__)) # Initialise the globals. -pyqt_version = 0x031201 -pyqt_version_str = "3.18.1" +pytqt_version = 0x031201 +pytqt_version_str = "3.18.1" sip_min_version = 0x040800 # Try and find a TQt installation to use as the default. try: - qt_dir = os.environ["TQTDIR"] + tqt_dir = os.environ["TQTDIR"] except KeyError: - qt_dir = "" - - -qt_version = 0 -qt_edition = "" -qt_incdir = None -qt_libdir = None -qt_threaded = 0 -qt_winconfig = "" - -pyqt = None -pyqt_modules = [] -qt_sip_flags = [] -qtext_sip_flags = [] -qtpe_sip_flags = [] -qsci_version = 0 + tqt_dir = "" + + +tqt_version = 0 +tqt_edition = "" +tqt_incdir = None +tqt_libdir = None +tqt_threaded = 0 +tqt_winconfig = "" + +pytqt = None +pytqt_modules = [] +tqt_sip_flags = [] +tqtext_sip_flags = [] +tqtpe_sip_flags = [] +tqsci_version = 0 disabled_classes = [] if sys.platform == "win32": - qsci_define = "TQEXTSCINTILLA_DLL" + tqsci_define = "TQEXTSCINTILLA_DLL" else: - qsci_define = "" + tqsci_define = "" # Get the SIP-TQt configuration. sipcfg = sip_tqt_config.Configuration() # Command line options. opt_tqtlib = None -opt_qconfigdir = None -opt_pyqtbindir = sipcfg.default_bin_dir -opt_pyqtmoddir = os.path.join(sipcfg.default_mod_dir, "PyTQt") -opt_pyqtsipdir = sipcfg.default_sip_dir -opt_qtpetag = None -opt_qsciincdir = None -opt_qscilibdir = None +opt_tqconfigdir = None +opt_pytqtbindir = sipcfg.default_bin_dir +opt_pytqtmoddir = os.path.join(sipcfg.default_mod_dir, "PyTQt") +opt_pytqtsipdir = sipcfg.default_sip_dir +opt_tqtpetag = None +opt_tqsciincdir = None +opt_tqscilibdir = None opt_static = 0 opt_debug = 0 opt_concat = 0 @@ -97,22 +97,22 @@ def usage(rcode = 2): rcode is the return code passed back to the calling process. """ - if qt_dir: - def_qt_dir = qt_dir + if tqt_dir: + def_tqt_dir = tqt_dir else: - def_qt_dir = "none" + def_tqt_dir = "none" sys.stdout.write("Usage:\n") sys.stdout.write(" python configure.py [-h] [-a tag] [-b dir] [-c] [-d dir] [-e lib] [-f] [-g dir] [-i] [-j #] [-k] [-l dir] [-m dir] [-n dir] [-o dir] [-q dir] [-r] [-s] [-u] [-v dir] [-w] [-y lib] option=value option+=value ...\n") sys.stdout.write("where:\n") sys.stdout.write(" -h display this help message\n") - 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(" -a tag explicitly enable the tqtpe module\n") + sys.stdout.write(" -b dir where pytquic and pytqlupdate will be installed [default %s]\n" % opt_pytqtbindir) sys.stdout.write(" -c concatenate each module's C/C++ source files\n") - sys.stdout.write(" -d dir where the PyTQt modules will be installed [default %s]\n" % opt_pyqtmoddir) + sys.stdout.write(" -d dir where the PyTQt modules will be installed [default %s]\n" % opt_pytqtmoddir) sys.stdout.write(" -e lib explicitly specify the python library\n") sys.stdout.write(" -f keep any existing features file (when cross-compiling) [default remove]\n") - sys.stdout.write(" -g dir where the TQt qconfig.h file can be found [default TQt include directory]\n") + sys.stdout.write(" -g dir where the TQt tqconfig.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 PyTQt modules as static libraries\n") @@ -120,13 +120,13 @@ def usage(rcode = 2): 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 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(" -q dir the root directory of the TQt installation [default %s]\n" % def_tqt_dir) sys.stdout.write(" -r generate code with tracing enabled [default disabled]\n") sys.stdout.write(" -s TQScintilla 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 PyTQt .sip files will be installed [default %s]\n" % opt_pyqtsipdir) + sys.stdout.write(" -v dir where the PyTQt .sip files will be installed [default %s]\n" % opt_pytqtsipdir) sys.stdout.write(" -w don't suppress compiler output during configuration\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.stdout.write(" -y lib explicitly specify the type of TQt library, either tqt, tqt-mt, tqte, tqte-mt or tqtmt\n") sys.stdout.write(" -z accept the license terms without prompting\n") sys.exit(rcode) @@ -151,7 +151,7 @@ class ConfigureBase: """ return [] - def qt_version_tags(self): + def tqt_version_tags(self): """Get the versions tags for the configuration. Returns a dictionary of versions and corresponding tags. @@ -181,66 +181,66 @@ class ConfigureBase: def module_dir(self): """Return the configuration's module directory. """ - return opt_pyqtmoddir + return opt_pytqtmoddir def module_installs(self): """Return a list of files to install in the module directory other than the modules themselves. """ - return ["__init__.py", "pyqtconfig.py"] + return ["__init__.py", "pytqtconfig.py"] def sip_dir(self): """Return the configuration's .sip files directory. """ - return opt_pyqtsipdir + return opt_pytqtsipdir class ConfigurePyTQt3(ConfigureBase): """This class defines the methods to configure PyTQt v3. """ def check_modules(self): - pyqt_modules.append("qt") + pytqt_modules.append("tqt") - 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) + check_module("tqtcanvas", "tqcanvas.h", "TQCanvas()") + check_module("tqtnetwork", "tqsocket.h", "TQSocket()") + check_module("tqttable", "tqtable.h", "TQTable()") + check_module("tqtxml", "tqdom.h", "TQDomImplementation()") + check_module("tqtgl", "tqgl.h", "TQGLWidget()", opengl=1) - if qt_version >= 0x030000: - check_module("qtui", "qwidgetfactory.h", "TQWidgetFactory()", lib="tqui") + if tqt_version >= 0x030000: + check_module("tqtui", "tqwidgetfactory.h", "TQWidgetFactory()", lib="tqui") - if qt_edition in ("enterprise", "free"): - check_module("qtsql", "qsql.h", "TQSql()") + if tqt_edition in ("enterprise", "free"): + check_module("tqtsql", "tqsql.h", "TQSql()") if sys.platform == "win32" and sipcfg.sip_version >= 0x040200: - check_module("qtaxcontainer", "qaxobject.h", "TQAxObject()", lib="qaxcontainer") + check_module("tqtaxcontainer", "tqaxobject.h", "TQAxObject()", lib="tqaxcontainer") - if qsci_version: - check_module("qtext", "tqextscintillabase.h", "TQextScintillaBase()", define=qsci_define, include_dir=opt_qsciincdir, lib_dir=opt_qscilibdir, lib="tqscintilla") + if tqsci_version: + check_module("tqtext", "tqextscintillabase.h", "TQextScintillaBase()", define=tqsci_define, include_dir=opt_tqsciincdir, lib_dir=opt_tqscilibdir, lib="tqscintilla") - if opt_qtpetag: - pyqt_modules.append("qtpe") + if opt_tqtpetag: + pytqt_modules.append("tqtpe") - qtmod_lib = None + tqtmod_lib = None - if qt_version >= 0x030100: + if tqt_version >= 0x030100: sip_tqt_config.inform("Checking to see if the TQAssistantClient class is available...") - if check_class("qassistantclient.h", "TQAssistantClient(\"foo\")", lib="qassistantclient"): - qtmod_lib = "qassistantclient" + if check_class("tqassistantclient.h", "TQAssistantClient(\"foo\")", lib="tqassistantclient"): + tqtmod_lib = "tqassistantclient" else: - if check_class("ntqassistantclient.h", "TQAssistantClient(\"foo\")", lib="qassistantclient"): - qtmod_lib = "qassistantclient" + if check_class("ntqassistantclient.h", "TQAssistantClient(\"foo\")", lib="tqassistantclient"): + tqtmod_lib = "tqassistantclient" else: disabled_classes.append("TQAssistantClient") - return qtmod_lib + return tqtmod_lib def sip_flags(self): return get_feature_flags() - def qt_version_tags(self): + def tqt_version_tags(self): return { 0x010403: None, 0x020000: "TQt_1_43", @@ -265,102 +265,102 @@ class ConfigurePyTQt3(ConfigureBase): } def code(self, extra_include_dirs, extra_lib_dir, extra_libs): - generate_code("qt", extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=extra_libs) + generate_code("tqt", extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=extra_libs) - if "qtext" in pyqt_modules: - generate_code("qtext", extra_define=qsci_define, extra_include_dirs=[opt_qsciincdir], extra_lib_dir=opt_qscilibdir, extra_libs=["tqscintilla"]+extra_libs, sip_flags=qtext_sip_flags) + if "tqtext" in pytqt_modules: + generate_code("tqtext", extra_define=tqsci_define, extra_include_dirs=[opt_tqsciincdir], extra_lib_dir=opt_tqscilibdir, extra_libs=["tqscintilla"]+extra_libs, sip_flags=tqtext_sip_flags) - if "qtgl" in pyqt_modules: - generate_code("qtgl", opengl=1, extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=extra_libs) + if "tqtgl" in pytqt_modules: + generate_code("tqtgl", opengl=1, extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=extra_libs) - if "qtpe" in pyqt_modules: - generate_code("qtpe", extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=["qpe"]+extra_libs, sip_flags=qtpe_sip_flags) + if "tqtpe" in pytqt_modules: + generate_code("tqtpe", extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=["tqpe"]+extra_libs, sip_flags=tqtpe_sip_flags) - if "qtui" in pyqt_modules: - generate_code("qtui", extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=["tqui"]+extra_libs) + if "tqtui" in pytqt_modules: + generate_code("tqtui", extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=["tqui"]+extra_libs) - if "qtaxcontainer" in pyqt_modules: - generate_code("qtaxcontainer", extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=["qaxcontainer"]+extra_libs) + if "tqtaxcontainer" in pytqt_modules: + generate_code("tqtaxcontainer", extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=["tqaxcontainer"]+extra_libs) # The rest don't need special handling. - for m in ("qtcanvas", "qtnetwork", "qtsql", "qttable", "qtxml"): - if m in pyqt_modules: + for m in ("tqtcanvas", "tqtnetwork", "tqtsql", "tqttable", "tqtxml"): + if m in pytqt_modules: generate_code(m, extra_include_dirs=extra_include_dirs, extra_lib_dir=extra_lib_dir, extra_libs=extra_libs) def tools(self): tool_dirs = [] - if qt_version >= 0x030000: + if tqt_version >= 0x030000: # The Professional Edition needs special handling. - prof = (qt_edition == "professional") + prof = (tqt_edition == "professional") - sip_tqt_config.inform("Creating pyuic Makefile...") + sip_tqt_config.inform("Creating pytquic Makefile...") - if prof or "qtxml" not in pyqt_modules: - buildfile= "pyuic-prof.sbf" + if prof or "tqtxml" not in pytqt_modules: + buildfile= "pytquic-prof.sbf" - for xml in ("qdom.cpp", "qxml.cpp"): - shutil.copyfile(qt_dir + "/src/xml/" + xml, "pyuic3/" + xml) + for xml in ("tqdom.cpp", "tqxml.cpp"): + shutil.copyfile(tqt_dir + "/src/xml/" + xml, "pytquic3/" + xml) else: - buildfile= "pyuic.sbf" + buildfile= "pytquic.sbf" makefile = sip_tqt_config.ProgramMakefile( configuration=sipcfg, - build_file=os.path.join(src_dir, "pyuic3", buildfile), - dir="pyuic3", - install_dir=opt_pyqtbindir, + build_file=os.path.join(src_dir, "pytquic3", buildfile), + dir="pytquic3", + install_dir=opt_pytqtbindir, console=1, - qt=1, + tqt=1, warnings=1 ) makefile.extra_defines.append("UIC") - makefile.extra_defines.append("QT_INTERNAL_XML") + makefile.extra_defines.append("TQT_INTERNAL_XML") - if prof or "qtxml" not in pyqt_modules: + if prof or "tqtxml" not in pytqt_modules: makefile.extra_defines.append("TQT_MODULE_XML") - if qt_version < 0x030100: - makefile.extra_include_dirs.append(qt_dir + "/src/3rdparty/zlib") - makefile.extra_include_dirs.append(os.path.join(src_dir, "pyuic3")) + if tqt_version < 0x030100: + makefile.extra_include_dirs.append(tqt_dir + "/src/3rdparty/zlib") + makefile.extra_include_dirs.append(os.path.join(src_dir, "pytquic3")) - if not os.access("pyuic3", os.F_OK): - os.mkdir("pyuic3") + if not os.access("pytquic3", os.F_OK): + os.mkdir("pytquic3") makefile.generate() - tool_dirs.append("pyuic3") + tool_dirs.append("pytquic3") - sip_tqt_config.inform("Creating pylupdate Makefile...") + sip_tqt_config.inform("Creating pytqlupdate Makefile...") - if prof or "qtxml" not in pyqt_modules: - buildfile= "pylupdate-prof.sbf" + if prof or "tqtxml" not in pytqt_modules: + buildfile= "pytqlupdate-prof.sbf" - shutil.copyfile(qt_dir + "/src/xml/qxml.cpp", "pylupdate3/qxml.cpp") + shutil.copyfile(tqt_dir + "/src/xml/tqxml.cpp", "pytqlupdate3/tqxml.cpp") else: - buildfile= "pylupdate.sbf" + buildfile= "pytqlupdate.sbf" makefile = sip_tqt_config.ProgramMakefile( configuration=sipcfg, - build_file=os.path.join(src_dir, "pylupdate3", buildfile), - dir="pylupdate3", - install_dir=opt_pyqtbindir, + build_file=os.path.join(src_dir, "pytqlupdate3", buildfile), + dir="pytqlupdate3", + install_dir=opt_pytqtbindir, console=1, - qt=1, + tqt=1, warnings=1 ) - makefile.extra_defines.append("QT_INTERNAL_XML") + makefile.extra_defines.append("TQT_INTERNAL_XML") - if prof or "qtxml" not in pyqt_modules: + if prof or "tqtxml" not in pytqt_modules: makefile.extra_defines.append("TQT_MODULE_XML") - makefile.extra_include_dirs.append(os.path.join(src_dir, "pylupdate3")) + makefile.extra_include_dirs.append(os.path.join(src_dir, "pytqlupdate3")) - if not os.access("pylupdate3", os.F_OK): - os.mkdir("pylupdate3") + if not os.access("pytqlupdate3", os.F_OK): + os.mkdir("pytqlupdate3") makefile.generate() - tool_dirs.append("pylupdate3") + tool_dirs.append("pytqlupdate3") return tool_dirs @@ -368,29 +368,29 @@ class ConfigurePyTQt3(ConfigureBase): def inform_user(): """Tell the user the option values that are going to be used. """ - if qt_edition: - edstr = qt_edition + " edition " + if tqt_edition: + edstr = tqt_edition + " edition " else: edstr = "" - sip_tqt_config.inform("TQt v%s %sis being used." % (sip_tqt_config.version_to_string(qt_version), edstr)) + sip_tqt_config.inform("TQt v%s %sis being used." % (sip_tqt_config.version_to_string(tqt_version), edstr)) sip_tqt_config.inform("SIP-TQt %s is being used." % sipcfg.sip_version_str) - sip_tqt_config.inform("These PyTQt modules will be built: %s." % ' '.join(pyqt_modules)) + sip_tqt_config.inform("These PyTQt modules will be built: %s." % ' '.join(pytqt_modules)) if disabled_classes: sip_tqt_config.inform("Support for these TQt classes has been disabled: %s." % ' '.join(disabled_classes)) - sip_tqt_config.inform("The PyTQt modules will be installed in %s." % opt_pyqtmoddir) - sip_tqt_config.inform("The PyTQt .sip files will be installed in %s." % opt_pyqtsipdir) + sip_tqt_config.inform("The PyTQt modules will be installed in %s." % opt_pytqtmoddir) + sip_tqt_config.inform("The PyTQt .sip files will be installed in %s." % opt_pytqtsipdir) - sip_tqt_config.inform("The TQt header files are in %s." % qt_incdir) - sip_tqt_config.inform("The %s TQt library is in %s." % (opt_tqtlib, qt_libdir)) + sip_tqt_config.inform("The TQt header files are in %s." % tqt_incdir) + sip_tqt_config.inform("The %s TQt library is in %s." % (opt_tqtlib, tqt_libdir)) - if qt_version >= 0x020000: - sip_tqt_config.inform("pyuic will be installed in %s." % opt_pyqtbindir) + if tqt_version >= 0x020000: + sip_tqt_config.inform("pyuic will be installed in %s." % opt_pytqtbindir) - if qt_version >= 0x030000: - sip_tqt_config.inform("pylupdate will be installed in %s." % opt_pyqtbindir) + if tqt_version >= 0x030000: + sip_tqt_config.inform("pylupdate will be installed in %s." % opt_pytqtbindir) if opt_vendorcheck: sip_tqt_config.inform("PyTQt will only be usable with signed interpreters.") @@ -407,64 +407,64 @@ def create_config(module, template, macros): sip_tqt_config.inform("Creating %s..." % module) content = { - "pyqt_config_args": sys.argv[1:], - "pyqt_version": pyqt_version, - "pyqt_version_str": pyqt_version_str, - "pyqt_bin_dir": opt_pyqtbindir, - "pyqt_mod_dir": opt_pyqtmoddir, - "pyqt_sip_dir": opt_pyqtsipdir, - "pyqt_modules": pyqt_modules, - "pyqt_qt_sip_flags": qt_sip_flags, - "qt_version": qt_version, - "qt_edition": qt_edition, - "qt_winconfig": qt_winconfig, - "qt_framework": 0, - "qt_threaded": qt_threaded, - "qt_dir": qt_dir, - "qt_inc_dir": qt_incdir, - "qt_lib": opt_tqtlib, - "qt_lib_dir": qt_libdir + "pytqt_config_args": sys.argv[1:], + "pytqt_version": pytqt_version, + "pytqt_version_str": pytqt_version_str, + "pytqt_bin_dir": opt_pytqtbindir, + "pytqt_mod_dir": opt_pytqtmoddir, + "pytqt_sip_dir": opt_pytqtsipdir, + "pytqt_modules": pytqt_modules, + "pytqt_tqt_sip_flags": tqt_sip_flags, + "tqt_version": tqt_version, + "tqt_edition": tqt_edition, + "tqt_winconfig": tqt_winconfig, + "tqt_framework": 0, + "tqt_threaded": tqt_threaded, + "tqt_dir": tqt_dir, + "tqt_inc_dir": tqt_incdir, + "tqt_lib": opt_tqtlib, + "tqt_lib_dir": tqt_libdir } - if "qtaxcontainer" in pyqt_modules: - content["pyqt_qtaxcontainer_sip_flags"] = qt_sip_flags + if "tqtaxcontainer" in pytqt_modules: + content["pytqt_tqtaxcontainer_sip_flags"] = tqt_sip_flags - if "qtcanvas" in pyqt_modules: - content["pyqt_qtcanvas_sip_flags"] = qt_sip_flags + if "tqtcanvas" in pytqt_modules: + content["pytqt_tqtcanvas_sip_flags"] = tqt_sip_flags - if "qtext" in pyqt_modules: - content["pyqt_qtext_sip_flags"] = qtext_sip_flags + if "tqtext" in pytqt_modules: + content["pytqt_tqtext_sip_flags"] = tqtext_sip_flags # These are internal. - content["_pyqt_qscintilla_defines"] = qsci_define - content["_pyqt_qscintilla_inc_dir"] = opt_qsciincdir - content["_pyqt_qscintilla_lib_dir"] = opt_qscilibdir + content["_pytqt_tqscintilla_defines"] = tqsci_define + content["_pytqt_tqscintilla_inc_dir"] = opt_tqsciincdir + content["_pytqt_tqscintilla_lib_dir"] = opt_tqscilibdir - if "qtgl" in pyqt_modules: - content["pyqt_qtgl_sip_flags"] = qt_sip_flags + if "tqtgl" in pytqt_modules: + content["pytqt_tqtgl_sip_flags"] = tqt_sip_flags - if "qtnetwork" in pyqt_modules: - content["pyqt_qtnetwork_sip_flags"] = qt_sip_flags + if "tqtnetwork" in pytqt_modules: + content["pytqt_tqtnetwork_sip_flags"] = tqt_sip_flags - if "qtpe" in pyqt_modules: - content["pyqt_qtpe_sip_flags"] = qtpe_sip_flags + if "tqtpe" in pytqt_modules: + content["pytqt_tqtpe_sip_flags"] = tqtpe_sip_flags - if "qtsql" in pyqt_modules: - content["pyqt_qtsql_sip_flags"] = qt_sip_flags + if "tqtstql" in pytqt_modules: + content["pytqt_tqtsql_sip_flags"] = tqt_sip_flags - if "qttable" in pyqt_modules: - content["pyqt_qttable_sip_flags"] = qt_sip_flags + if "tqttable" in pytqt_modules: + content["pytqt_tqttable_sip_flags"] = tqt_sip_flags - if "qtui" in pyqt_modules: - content["pyqt_qtui_sip_flags"] = qt_sip_flags + if "tqtui" in pytqt_modules: + content["pytqt_tqtui_sip_flags"] = tqt_sip_flags - if "qtxml" in pyqt_modules: - content["pyqt_qtxml_sip_flags"] = qt_sip_flags + if "tqtxml" in pytqt_modules: + content["pytqt_tqtxml_sip_flags"] = tqt_sip_flags sip_tqt_config.create_config_module(module, template, content, macros) -def compile_qt_program(name, define=None, include_dir=None, lib_dir=None, lib=None, opengl=0, python=0, debug=0): +def compile_tqt_program(name, define=None, include_dir=None, lib_dir=None, lib=None, opengl=0, python=0, debug=0): """Compile a simple TQt application. name is the name of the single source file. @@ -481,7 +481,7 @@ def compile_qt_program(name, define=None, include_dir=None, lib_dir=None, lib=No Returns the name of the executable suitable for running or None if it wasn't created. """ - makefile = sip_tqt_config.ProgramMakefile(sipcfg, console=1, qt=1, warnings=0, opengl=opengl, python=python, debug=debug) + makefile = sip_tqt_config.ProgramMakefile(sipcfg, console=1, tqt=1, warnings=0, opengl=opengl, python=python, debug=debug) if define: makefile.extra_defines.append(define) @@ -537,38 +537,38 @@ def compile_qt_program(name, define=None, include_dir=None, lib_dir=None, lib=No return exe -def check_qscintilla(): +def check_tqscintilla(): """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 + global opt_tqsciincdir, opt_tqscilibdir - if opt_qsciincdir is None: - opt_qsciincdir = qt_incdir + if opt_tqsciincdir is None: + opt_tqsciincdir = tqt_incdir - if opt_qscilibdir is None: - opt_qscilibdir = qt_libdir + if opt_tqscilibdir is None: + opt_tqscilibdir = tqt_libdir # Find the TQScintilla header files. - sciglobal = os.path.join(opt_qsciincdir, "tqextscintillaglobal.h") + sciglobal = os.path.join(opt_tqsciincdir, "tqextscintillaglobal.h") if os.access(sciglobal, os.F_OK): # Get the TQScintilla version number. - global qsci_version + global tqsci_version - qsci_version, sciversstr = sip_tqt_config.read_version(sciglobal, "TQScintilla", "TQSCINTILLA_VERSION", "TQSCINTILLA_VERSION_STR") + tqsci_version, sciversstr = sip_tqt_config.read_version(sciglobal, "TQScintilla", "TQSCINTILLA_VERSION", "TQSCINTILLA_VERSION_STR") - if glob.glob(os.path.join(opt_qscilibdir, "*tqscintilla*")): + if glob.glob(os.path.join(opt_tqscilibdir, "*tqscintilla*")): sip_tqt_config.inform("TQScintilla %s is being used." % sciversstr) # If we find a snapshot then set a negative version number as a # special case. if sciversstr.find("snapshot") >= 0: - qsci_version = -1 + tqsci_version = -1 else: - sip_tqt_config.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) + sip_tqt_config.inform("The TQScintilla library could not be found in %s and so the tqtext module will not be built. If TQScintilla is installed then use the -o argument to explicitly specify the correct directory." % opt_tqscilibdir) else: - sip_tqt_config.inform("tqextscintillaglobal.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) + sip_tqt_config.inform("tqextscintillaglobal.h could not be found in %s and so the tqtext module will not be built. If TQScintilla is installed then use the -n argument to explicitly specify the correct directory." % opt_tqsciincdir) def check_vendorid(): @@ -608,10 +608,10 @@ def check_module(mname, incfile, ctor, define=None, include_dir=None, lib_dir=No sip_tqt_config.inform("Checking to see if the %s module should be built..." % mname) if check_class(incfile, ctor, define, include_dir, lib_dir, lib, opengl): - pyqt_modules.append(mname) + pytqt_modules.append(mname) else: if check_class("nt" + incfile, ctor, define, include_dir, lib_dir, lib, opengl): - pyqt_modules.append(mname) + pytqt_modules.append(mname) def check_class(incfile, ctor, define=None, include_dir=None, lib_dir=None, lib=None, opengl=0): @@ -641,7 +641,7 @@ int main(int argc, char **argv) f.close() - return compile_qt_program(cfgtest, define, include_dir, lib_dir, lib, opengl) + return compile_tqt_program(cfgtest, define, include_dir, lib_dir, lib, opengl) def check_plugin(cname, incfile): @@ -735,7 +735,7 @@ int main(int argc,char **argv) f.close() # Build the program. - exe = compile_qt_program("mkfeatures.cpp", include_dir=sipcfg.py_inc_dir, python=1) + exe = compile_tqt_program("mkfeatures.cpp", include_dir=sipcfg.py_inc_dir, python=1) if not exe: sip_tqt_config.error("Unable to build mkfeatures utility.") @@ -746,14 +746,14 @@ int main(int argc,char **argv) sip_tqt_config.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", "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")] + plugins = [("STYLE_CDE", "tqcdestyle.h", "TQCDEStyle"), + ("STYLE_INTERLACE", "tqinterlacestyle.h", "TQInterlaceStyle"), + ("STYLE_MOTIF", "tqmotifstyle.h", "TQMotifStyle"), + ("STYLE_MOTIFPLUS", "tqmotifplusstyle.h", "TQMotifPlusStyle"), + ("STYLE_PLATINUM", "tqplatinumstyle.h", "TQPlatinumStyle"), + ("STYLE_SGI", "tqsgistyle.h", "TQSGIStyle"), + ("STYLE_WINDOWSXP", "tqwindowsxpstyle.h", "TQWindowsXPStyle"), + ("STYLE_WINDOWS", "tqwindowsstyle.h", "TQWindowsStyle")] f = open(name, "a") @@ -797,16 +797,16 @@ def get_feature_flags(): def set_sip_flags(): """Set the SIP-TQt platform, version and feature flags. """ - qt_sip_flags.extend(pyqt.sip_flags()) + tqt_sip_flags.extend(pytqt.sip_flags()) # If we don't check for signed interpreters, we exclude the 'VendorID' # feature if not opt_vendorcheck: - qt_sip_flags.append("-x") - qt_sip_flags.append("VendorID") + tqt_sip_flags.append("-x") + tqt_sip_flags.append("VendorID") # Handle the platform tag. - if opt_qtpetag: + if opt_tqtpetag: plattag = "WS_QWS" elif sys.platform == "win32": plattag = "WS_WIN" @@ -818,24 +818,24 @@ def set_sip_flags(): else: plattag = "WS_X11" - qt_sip_flags.append("-t") - qt_sip_flags.append(plattag) + tqt_sip_flags.append("-t") + tqt_sip_flags.append(plattag) # Handle the TQt version tag. - verstag = sip_tqt_config.version_to_sip_tag(qt_version, pyqt.qt_version_tags(), "TQt") + verstag = sip_tqt_config.version_to_sip_tag(tqt_version, pytqt.tqt_version_tags(), "TQt") if verstag: - qt_sip_flags.append("-t") - qt_sip_flags.append(verstag) + tqt_sip_flags.append("-t") + tqt_sip_flags.append(verstag) # The flags so far are common. - for f in qt_sip_flags: - qtext_sip_flags.append(f) - qtpe_sip_flags.append(f) + for f in tqt_sip_flags: + tqtext_sip_flags.append(f) + tqtpe_sip_flags.append(f) # Handle the TQScintilla version tag. - if qsci_version: - qscitags = { + if tqsci_version: + tqscitags = { 0x010100: None, 0x010200: "TQScintilla_1_1", 0x010300: "TQScintilla_1_2", @@ -846,16 +846,16 @@ def set_sip_flags(): 0x020000: "TQScintilla_1_7" } - verstag = sip_tqt_config.version_to_sip_tag(qsci_version, qscitags, "TQScintilla") + verstag = sip_tqt_config.version_to_sip_tag(tqsci_version, tqscitags, "TQScintilla") if verstag: - qtext_sip_flags.append("-t") - qtext_sip_flags.append(verstag) + tqtext_sip_flags.append("-t") + tqtext_sip_flags.append(verstag) # Handle the TQtopia tag. - if opt_qtpetag: - qtpe_sip_flags.append("-t") - qtpe_sip_flags.append(opt_qtpetag) + if opt_tqtpetag: + tqtpe_sip_flags.append("-t") + tqtpe_sip_flags.append(opt_tqtpetag) def generate_code(mname, extra_cflags=None, extra_cxxflags=None, extra_define=None, extra_include_dirs=None, extra_lflags=None, extra_lib_dir=None, extra_libs=None, opengl=0, sip_flags=None): @@ -891,7 +891,7 @@ def generate_code(mname, extra_cflags=None, extra_cxxflags=None, extra_define=No argv = ['"' + sipcfg.sip_bin + '"'] if sip_flags is None: - sip_flags = qt_sip_flags + sip_flags = tqt_sip_flags argv.extend(sip_flags) @@ -930,15 +930,15 @@ def generate_code(mname, extra_cflags=None, extra_cxxflags=None, extra_define=No for s in glob.glob("sip/" + mname + "/*.sip"): sipfiles.append(os.path.join(src_dir, "sip", mname, os.path.basename(s))) - installs.append([sipfiles, os.path.join(pyqt.sip_dir(), mname)]) + installs.append([sipfiles, os.path.join(pytqt.sip_dir(), mname)]) makefile = sip_tqt_config.SIPModuleMakefile( configuration=sipcfg, build_file=mname + ".sbf", dir=mname, - install_dir=pyqt.module_dir(), + install_dir=pytqt.module_dir(), installs=installs, - qt=1, + tqt=1, opengl=opengl, warnings=1, static=opt_static, @@ -989,20 +989,20 @@ def check_license(): lname = "GNU General Public License" lfile = None - sip_tqt_config.inform("This is the %s version of PyTQt %s (licensed under the %s) for Python %s on %s." % (ltype, pyqt_version_str, lname, sys.version[0].split(), sys.platform)) + sip_tqt_config.inform("This is the %s version of PyTQt %s (licensed under the %s) for Python %s on %s." % (ltype, pytqt_version_str, lname, sys.version[0].split(), sys.platform)) # Common checks. if ltype == "GPL" and sys.platform == "win32": error("You cannot use the GPL version of PyTQt under Windows.") try: - qted = qt_edition + tqted = tqt_edition except AttributeError: - qted = None + tqted = None - if qted and ltype != "internal": - if (qted == "free" and ltype != "GPL") or (qted != "free" and ltype == "GPL"): - sip_tqt_config.error("This version of PyTQt and the %s edition of TQt have incompatible licenses." % qted) + if tqted and ltype != "internal": + if (tqted == "free" and ltype != "GPL") or (tqted != "free" and ltype == "GPL"): + sip_tqt_config.error("This version of PyTQt and the %s edition of TQt have incompatible licenses." % tqted) # Confirm the license. sys.stdout.write(""" @@ -1050,9 +1050,9 @@ def get_build_macros(overrides): """ # Get the name of the qmake configuration file to take the macros from. if "QMAKESPEC" in list(os.environ.keys()): - fname = os.path.join(qt_dir, "mkspecs", os.environ["QMAKESPEC"], "qmake.conf") + fname = os.path.join(tqt_dir, "mkspecs", os.environ["QMAKESPEC"], "qmake.conf") else: - fname = os.path.join(qt_dir, "mkspecs", "default", "qmake.conf") + fname = os.path.join(tqt_dir, "mkspecs", "default", "qmake.conf") if not os.access(fname, os.F_OK): sip_tqt_config.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) @@ -1064,18 +1064,18 @@ def get_build_macros(overrides): names.append("MOC") # Make sure $TQTDIR reflects any directory passed on the command line. - os.environ["TQTDIR"] = qt_dir + os.environ["TQTDIR"] = tqt_dir properties = { - "QT_INSTALL_BINS": os.path.join(qt_dir, "bin"), - "QT_INSTALL_HEADERS": os.path.join(qt_dir, "include"), - "QT_INSTALL_LIBS": os.path.join(qt_dir, "lib") + "TQT_INSTALL_BINS": os.path.join(tqt_dir, "bin"), + "TQT_INSTALL_HEADERS": os.path.join(tqt_dir, "include"), + "TQT_INSTALL_LIBS": os.path.join(tqt_dir, "lib") } return sip_tqt_config.parse_build_macros(fname, names, overrides, properties) -def check_qt_installation(macros): +def check_tqt_installation(macros): """Check the TQt installation and get the version number and edition. macros is the dictionary of build macros. @@ -1084,97 +1084,97 @@ def check_qt_installation(macros): generator = macros["MAKEFILE_GENERATOR"] # Set the TQt include and lib directories. - global qt_incdir, qt_libdir + global tqt_incdir, tqt_libdir - qt_incdir = macros["INCDIR_TQT"] + tqt_incdir = macros["INCDIR_TQT"] - if not qt_incdir: - qt_incdir = os.path.join(qt_dir, "include") - macros["INCDIR_TQT"] = qt_incdir + if not tqt_incdir: + tqt_incdir = os.path.join(tqt_dir, "include") + macros["INCDIR_TQT"] = tqt_incdir - qt_libdir = macros["LIBDIR_TQT"] + tqt_libdir = macros["LIBDIR_TQT"] - if not qt_libdir: - qt_libdir = os.path.join(qt_dir, "lib") - macros["LIBDIR_TQT"] = qt_libdir + if not tqt_libdir: + tqt_libdir = os.path.join(tqt_dir, "lib") + macros["LIBDIR_TQT"] = tqt_libdir # Check the TQt header files have been installed. Quietly check for TQt v4. - qt4_d = os.path.join(qt_incdir, "TQtCore") + tqt4_d = os.path.join(tqt_incdir, "TQtCore") - qglobal = os.path.join(qt4_d, "qglobal.h") + tqglobal = os.path.join(tqt4_d, "tqglobal.h") - if not os.access(qglobal, os.F_OK): - qglobal = os.path.join(qt_incdir, "qglobal.h") + if not os.access(tqglobal, os.F_OK): + tqglobal = os.path.join(tqt_incdir, "tqglobal.h") - if not os.access(qglobal, os.F_OK): - qglobal = os.path.join(qt_incdir, "ntqglobal.h") + if not os.access(tqglobal, os.F_OK): + tqglobal = os.path.join(tqt_incdir, "ntqglobal.h") - if not os.access(qglobal, os.F_OK): - sip_tqt_config.error("qglobal.h or ntqglobal.h could not be found in %s." % qt_incdir) + if not os.access(tqglobal, os.F_OK): + sip_tqt_config.error("tqglobal.h or ntqglobal.h could not be found in %s." % tqt_incdir) # Get the TQt version number. - global qt_version + global tqt_version - qt_version, ignore = sip_tqt_config.read_version(qglobal, "TQt", "TQT_VERSION") + tqt_version, ignore = sip_tqt_config.read_version(tqglobal, "TQt", "TQT_VERSION") # 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: + if sys.platform == "darwin" and tqt_version < 0x030100: sip_tqt_config.error("PyTQt for MacOS/X requires TQt v3.1.0 or later.") # The way SIP-TQt v4.2 and later handle connections between signals and Python # slots only works with TQt v3 and later. Therefore TQt v2 and earlier needs # SIP-TQt v3. - if qt_version < 0x030000: + if tqt_version < 0x030000: sip_tqt_config.error("TQt v2.x and earlier require SIP-TQt v3.x.") - if qt_version >= 0x040000: - sip_tqt_config.error("TQt v4.x requires PyTQt v4.x.") + if tqt_version >= 0x040000: + sip_tqt_config.error("TQt v4.x requires PyTQt v5.x.") # Try and work out which edition it is. - global qt_edition + global tqt_edition - if qt_version >= 0x030000: - if opt_qconfigdir: - qconfigdir = opt_qconfigdir + if tqt_version >= 0x030000: + if opt_tqconfigdir: + tqconfigdir = opt_tqconfigdir else: - qconfigdir = qt_incdir + tqconfigdir = tqt_incdir - qconfig = os.path.join(qconfigdir, "qconfig.h") + tqconfig = os.path.join(tqconfigdir, "tqconfig.h") - if not os.access(qconfig,os.F_OK): - qconfig = os.path.join(qconfigdir, "ntqconfig.h") + if not os.access(tqconfig,os.F_OK): + tqconfig = os.path.join(tqconfigdir, "ntqconfig.h") - if not os.access(qconfig,os.F_OK): - sip_tqt_config.error("qconfig.h or ntqconfig.h could not be found in %s." % qconfigdir) + if not os.access(tqconfig,os.F_OK): + sip_tqt_config.error("tqconfig.h or ntqconfig.h could not be found in %s." % tqconfigdir) - f = open(qconfig) + f = open(tqconfig) l = f.readline() while l: wl = l.split() if len(wl) == 3 and wl[0] == "#define" and wl[1] == "QT_PRODUCT_LICENSE": - qt_edition = wl[2][4:-1] + tqt_edition = wl[2][4:-1] break l = f.readline() f.close() - if not qt_edition: - sip_tqt_config.error("The TQt edition could not be determined by parsing %s." % qconfig) - elif qt_version == 0x020300 and sys.platform == "win32": + if not tqt_edition: + sip_tqt_config.error("The TQt edition could not be determined by parsing %s." % tqconfig) + elif tqt_version == 0x020300 and sys.platform == "win32": # 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 os.access(os.path.join(tqt_libdir, "tqt-mt230nc.lib"), os.F_OK): + tqt_edition = "non-commercial" if sys.platform == "win32": # Work out how TQt was built on Windows. - global qt_winconfig + global tqt_winconfig try: - f = open(os.path.join(qt_dir, ".qtwinconfig"), "r") + f = open(os.path.join(tqt_dir, ".tqtwinconfig"), "r") except IOError: f = None @@ -1185,37 +1185,37 @@ def check_qt_installation(macros): val = cfg.find("=") if val >= 0: - qt_winconfig = string.strip(cfg[val + 1:]) + tqt_winconfig = string.strip(cfg[val + 1:]) else: # Assume it was built as a DLL. - qt_winconfig = "shared" + tqt_winconfig = "shared" # Determine the TQt library to link against and if it has thread support. - global qt_threaded + global tqt_threaded - resolve_qt3_library(generator) + resolve_tqt3_library(generator) - if opt_tqtlib 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 + if opt_tqtlib in ("tqt-mt", "tqt-mtedu", "tqt-mteval", "tqte-mt", "tqtmt", "tqtmtedu", "tqtmteval", "tqt-mt", "tqt-mtedu", "tqt-mteval", "tqte-mt", "tqtmt", "tqtmtedu", "tqtmteval"): + tqt_threaded = 1 - global pyqt + global pytqt - pyqt = ConfigurePyTQt3() + pytqt = ConfigurePyTQt3() # We haven't yet factored out sip_tqt_config'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 - sipcfg.qt_edition = qt_edition - sipcfg.qt_winconfig = qt_winconfig - sipcfg.qt_framework = 0 - sipcfg.qt_threaded = qt_threaded - sipcfg.qt_dir = qt_dir - sipcfg.qt_lib = opt_tqtlib - sipcfg.qt_lib_dir = qt_libdir + sipcfg.tqt_version = tqt_version + sipcfg.tqt_edition = tqt_edition + sipcfg.tqt_winconfig = tqt_winconfig + sipcfg.tqt_framework = 0 + sipcfg.tqt_threaded = tqt_threaded + sipcfg.tqt_dir = tqt_dir + sipcfg.tqt_lib = opt_tqtlib + sipcfg.tqt_lib_dir = tqt_libdir -def resolve_qt3_library(generator): +def resolve_tqt3_library(generator): """See which version of the TQt v3 library can be found. (We can't trust the configuration files.) @@ -1224,20 +1224,20 @@ def resolve_qt3_library(generator): global opt_tqtlib if opt_tqtlib: - if not is_qt_library(generator, opt_tqtlib): - sip_tqt_config.error("The %s TQt library could not be found in %s." % (opt_tqtlib, qt_libdir)) + if not is_tqt_library(generator, opt_tqtlib): + sip_tqt_config.error("The %s TQt library could not be found in %s." % (opt_tqtlib, tqt_libdir)) else: - 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") + stlib = is_tqt_library(generator, "tqt") + mtlib = is_tqt_library(generator, "tqt-mt") + edlib = is_tqt_library(generator, "tqt-mtedu") + evlib = is_tqt_library(generator, "tqt-mteval") + emlib = is_tqt_library(generator, "tqte") + etlib = is_tqt_library(generator, "tqte-mt") # Borland likes to be a little different. - bmtlib = is_qt_library(generator, "tqtmt") - bedlib = is_qt_library(generator, "tqtmtedu") - bevlib = is_qt_library(generator, "tqtmteval") + bmtlib = is_tqt_library(generator, "tqtmt") + bedlib = is_tqt_library(generator, "tqtmtedu") + bevlib = is_tqt_library(generator, "tqtmteval") names = [] @@ -1278,13 +1278,13 @@ def resolve_qt3_library(generator): names.append(opt_tqtlib) if not names: - sip_tqt_config.error("No TQt libraries could be found in %s." % qt_libdir) + sip_tqt_config.error("No TQt libraries could be found in %s." % tqt_libdir) if len(names) > 1: sip_tqt_config.error("These TQt libraries were found: %s. Use the -y argument to explicitly specify which you want to use." % ' '.join(names)) -def is_qt_library(generator, lib): +def is_tqt_library(generator, lib): """See if a particular TQt library is installed. generator is the name of the Makefile generator. @@ -1296,7 +1296,7 @@ def is_qt_library(generator, lib): lpatts = ["lib" + lib + ".*"] for lpatt in lpatts: - lmatch = glob.glob(os.path.join(qt_libdir, lpatt)) + lmatch = glob.glob(os.path.join(tqt_libdir, lpatt)) if lmatch: return lmatch @@ -1320,11 +1320,11 @@ def main(argv): except getopt.GetoptError: usage() - global qt_dir, opt_tqtlib, opt_qconfigdir - global opt_pyqtbindir, opt_pyqtmoddir, opt_pyqtsipdir - global opt_qtpetag, opt_static, opt_debug, opt_concat + global tqt_dir, opt_tqtlib, opt_tqconfigdir + global opt_pytqtbindir, opt_pytqtmoddir, opt_pytqtsipdir + global opt_tqtpetag, opt_static, opt_debug, opt_concat global opt_split, opt_tracing, opt_verbose, opt_keepfeatures - global opt_qsciincdir, opt_qscilibdir, qsci_define + global opt_tqsciincdir, opt_tqscilibdir, tqsci_define global opt_vendorcheck, opt_vendincdir, opt_vendlibdir global opt_libpython global opt_accept_license @@ -1335,19 +1335,19 @@ def main(argv): if opt == "-h": usage(0) elif opt == "-a": - opt_qtpetag = arg + opt_tqtpetag = arg elif opt == "-b": - opt_pyqtbindir = os.path.abspath(arg) + opt_pytqtbindir = os.path.abspath(arg) elif opt == "-c": opt_concat = 1 elif opt == "-d": - opt_pyqtmoddir = os.path.abspath(arg) + opt_pytqtmoddir = os.path.abspath(arg) elif opt == "-e": opt_libpython = arg elif opt == "-f": opt_keepfeatures = 1 elif opt == "-g": - opt_qconfigdir = os.path.abspath(arg) + opt_tqconfigdir = os.path.abspath(arg) elif opt == "-i": opt_vendorcheck = 1 elif opt == "-j": @@ -1362,23 +1362,23 @@ def main(argv): elif opt == "-m": opt_vendlibdir = arg elif opt == "-n": - opt_qsciincdir = arg + opt_tqsciincdir = arg elif opt == "-o": - opt_qscilibdir = arg + opt_tqscilibdir = arg elif opt == "-q": - qt_dir = os.path.abspath(arg) + tqt_dir = os.path.abspath(arg) elif opt == "-r": opt_tracing = 1 elif opt == "-s": - qsci_define = "" + tqsci_define = "" elif opt == "-u": opt_debug = 1 elif opt == "-v": - opt_pyqtsipdir = os.path.abspath(arg) + opt_pytqtsipdir = os.path.abspath(arg) elif opt == "-w": opt_verbose = 1 elif opt == "-y": - 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"): + if arg in ("tqt", "tqt-mt", "tqt-mtedu", "tqt-mteval", "tqte", "tqte-mt", "tqtmt", "tqtmtedu", "tqt", "tqt-mt", "tqt-mtedu", "tqt-mteval", "tqte", "tqte-mt", "tqtmt", "tqtmtedu"): opt_tqtlib = arg else: usage() @@ -1386,7 +1386,7 @@ def main(argv): opt_accept_license = 1 # Check that we know the name of the TQt root directory. - if not qt_dir: + if not tqt_dir: sip_tqt_config.error("A TQt installation could not be found. Use use the -q argument or the TQTDIR environment variable to explicitly specify the correct directory.") # When building static libraries, signed interpreter checking makes no @@ -1403,7 +1403,7 @@ def main(argv): sipcfg.set_build_macros(macros) # Check TQt is what we need. - check_qt_installation(macros) + check_tqt_installation(macros) # Check the licenses are compatible. if opt_accept_license == 1: @@ -1412,10 +1412,10 @@ def main(argv): check_license() # Check for TQScintilla. - check_qscintilla() + check_tqscintilla() # Check which modules to build. - qtmod_lib = pyqt.check_modules() + tqtmod_lib = pytqt.check_modules() # Check for the VendorID package. check_vendorid() @@ -1431,8 +1431,8 @@ def main(argv): extra_include_dirs = [] extra_libs = [] - if qtmod_lib: - extra_libs.append(qtmod_lib) + if tqtmod_lib: + extra_libs.append(tqtmod_lib) if opt_libpython: extra_libs.append(opt_libpython) @@ -1444,22 +1444,22 @@ def main(argv): else: extra_lib_dir = None - pyqt.code(extra_include_dirs, extra_lib_dir, extra_libs) + pytqt.code(extra_include_dirs, extra_lib_dir, extra_libs) # Create the additional Makefiles. sip_tqt_config.inform("Creating top level Makefile...") sip_tqt_config.ParentMakefile( configuration=sipcfg, - subdirs=pyqt_modules + pyqt.tools(), - installs=(pyqt.module_installs(), pyqt.module_dir()) + subdirs=pytqt_modules + pytqt.tools(), + installs=(pytqt.module_installs(), pytqt.module_dir()) ).generate() # Install module initialization script. create_config("__init__.py", os.path.join(src_dir, "module-init.py"), macros) # Install the configuration module. - create_config("pyqtconfig.py", os.path.join(src_dir, "pyqtconfig.py.in"), macros) + create_config("pytqtconfig.py", os.path.join(src_dir, "pytqtconfig.py.in"), macros) ############################################################################### diff --git a/doc/PyQt.html b/doc/PyTQt.html index 05c0b69..afde2d4 100644 --- a/doc/PyQt.html +++ b/doc/PyTQt.html @@ -82,7 +82,7 @@ and run this version of PyTQt.</P ><P ><TT CLASS="LITERAL" ->qt</TT +>tqt</TT > is the main module and contains the core classes and most user interface widgets.</P ></LI @@ -90,7 +90,7 @@ user interface widgets.</P ><P ><TT CLASS="LITERAL" ->qtaxcontainer</TT +>tqtaxcontainer</TT > contains a sub-set of the classes implemented in TQt's TQAxContainer module, part of TQt's ActiveTQt framework.</P ></LI @@ -98,7 +98,7 @@ in TQt's TQAxContainer module, part of TQt's ActiveTQt framework.</P ><P ><TT CLASS="LITERAL" ->qtcanvas</TT +>tqtcanvas</TT > contains the classes implemented in TQt's Canvas module.</P ></LI @@ -106,14 +106,14 @@ module.</P ><P ><TT CLASS="LITERAL" ->qtgl</TT +>tqtgl</TT > contains the classes implemented in TQt's OpenGL module.</P ></LI ><LI ><P ><TT CLASS="LITERAL" ->qtnetwork</TT +>tqtnetwork</TT > contains the classes implemented in TQt's Network module.</P ></LI @@ -121,7 +121,7 @@ module.</P ><P ><TT CLASS="LITERAL" ->qtpe</TT +>tqtpe</TT > contains the classes implemented in TQtopia (originally called the TQt Palmtop Environment). It is only supported with TQt/Embedded.</P ></LI @@ -129,14 +129,14 @@ called the TQt Palmtop Environment). It is only supported with TQt/Embedded.</P ><P ><TT CLASS="LITERAL" ->qtsql</TT +>tqtsql</TT > contains the classes implemented in TQt's SQL module.</P ></LI ><LI ><P ><TT CLASS="LITERAL" ->qttable</TT +>tqttable</TT > contains the classes implemented in TQt's Table module.</P ></LI @@ -144,7 +144,7 @@ module.</P ><P ><TT CLASS="LITERAL" ->qtui</TT +>tqtui</TT > contains the classes implemented in TQt's tqui library. These allow GUIs to be created directly from TQt Designer's <TT @@ -156,14 +156,14 @@ CLASS="LITERAL" ><P ><TT CLASS="LITERAL" ->qtxml</TT +>tqtxml</TT > contains the classes implemented in TQt's XML module.</P ></LI ><LI ><P ><TT CLASS="LITERAL" ->qtext</TT +>tqtext</TT > contains useful third-party classes that are not part of TQt. At the moment it contains bindings for TQScintilla, the port to TQt of the Scintilla programmer's editor class.</P @@ -172,11 +172,11 @@ the Scintilla programmer's editor class.</P ><P >PyTQt also includes the <TT CLASS="LITERAL" ->pyuic</TT +>pytquic</TT > and <TT CLASS="LITERAL" ->pylupdate</TT +>pytqlupdate</TT > utilities which correspond to the TQt <TT CLASS="LITERAL" @@ -187,11 +187,11 @@ CLASS="LITERAL" > utilities. <TT CLASS="LITERAL" ->pyuic</TT +>pytquic</TT > converts the GUI designs created with TQt Designer to executable Python code. <TT CLASS="LITERAL" ->pylupdate</TT +>pytqlupdate</TT > scans Python code, extracts all strings that are candidates for internationalisation, and creates an XML file for use by TQt Linguist.</P @@ -223,18 +223,18 @@ CLASS="LITERAL" ><P >PyTQt includes <TT CLASS="LITERAL" ->pyuic</TT +>pytquic</TT > which generates Python code from the same XML. The Python code is self contained and can be executed immediately.</P ><P >It is sometimes useful to be able to include some specific Python code in the output generated by <TT CLASS="LITERAL" ->pyuic</TT +>pytquic</TT >. For example, if you are using custom widgets, <TT CLASS="LITERAL" ->pyuic</TT +>pytquic</TT > has no way of knowing the name of the Python module containing the widget and so cannot generate the required <TT @@ -243,7 +243,7 @@ CLASS="LITERAL" > statement. To help get around this, <TT CLASS="LITERAL" ->pyuic</TT +>pytquic</TT > will extract any lines entered in the <TT CLASS="LITERAL" @@ -271,7 +271,7 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" ->This comment will be ignored by pyuic. +>This comment will be ignored by pytquic. Python: Python:# Import our custom widget. Python:from foo import bar</PRE @@ -281,7 +281,7 @@ Python:from foo import bar</PRE ><P >Here's the corresponding output from <TT CLASS="LITERAL" ->pyuic</TT +>pytquic</TT >.</P ><TABLE BORDER="0" @@ -291,7 +291,7 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" ->from PyTQt.qt import * +>from PyTQt.tqt import * # Import our custom widget. from foo import bar</PRE @@ -301,7 +301,7 @@ from foo import bar</PRE ><P >Thanks to Christian Bird, <TT CLASS="LITERAL" ->pyuic</TT +>pytquic</TT > will extract Python code 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 @@ -317,7 +317,7 @@ CLASS="LITERAL" >.ui</TT > file when using <TT CLASS="LITERAL" ->pyuic</TT +>pytquic</TT >. The <TT CLASS="LITERAL" @@ -348,7 +348,7 @@ if self.debugging: ><P >Here is the resulting code when <TT CLASS="LITERAL" ->pyuic</TT +>pytquic</TT > is run.</P ><TABLE BORDER="0" @@ -413,7 +413,7 @@ your application.</P ><P >Thanks to Detlev Offenbach, PyTQt includes the <TT CLASS="LITERAL" ->pylupdate</TT +>pytqlupdate</TT > program. This generates the same <TT CLASS="LITERAL" @@ -467,7 +467,7 @@ CLASS="SECT1" NAME="AEN153" ><TT CLASS="LITERAL" ->pyqtconfig</TT +>pytqtconfig</TT > and Build System Support</A ></H2 ><P @@ -477,14 +477,14 @@ CLASS="LITERAL" > module) is described in the SIP documentation. PyTQt includes the <TT CLASS="LITERAL" ->pyqtconfig</TT +>pytqtconfig</TT > module that can be used by configuration scripts of other bindings that are built on top of PyTQt.</P ><P >The <TT CLASS="LITERAL" ->pyqtconfig</TT +>pytqtconfig</TT > module contains the following classes:</P ><P ></P @@ -514,17 +514,17 @@ CLASS="VARIABLELIST" ><DT ><TT CLASS="LITERAL" ->pyqt_bin_dir</TT +>pytqt_bin_dir</TT ></DT ><DD ><P >The name of the directory containing the <TT CLASS="LITERAL" ->pyuic</TT +>pytquic</TT > and <TT CLASS="LITERAL" ->pylupdate</TT +>pytqlupdate</TT > executables.</P ><P ></P @@ -534,7 +534,7 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_mod_dir</TT +>pytqt_mod_dir</TT ></DT ><DD ><P @@ -547,7 +547,7 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_modules</TT +>pytqt_modules</TT ></DT ><DD ><P @@ -560,18 +560,18 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_qt_sip_flags</TT +>pytqt_tqt_sip_flags</TT ></DT ><DD ><P >A string of the SIP flags used to generate the code for the <TT CLASS="LITERAL" ->qt</TT +>tqt</TT > module and which should be added to those needed by any module that imports the <TT CLASS="LITERAL" ->qt</TT +>tqt</TT > module.</P ><P ></P @@ -581,18 +581,18 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_qtaxcontainer_sip_flags</TT +>pytqt_tqtaxcontainer_sip_flags</TT ></DT ><DD ><P >A string of the SIP flags used to generate the code for the <TT CLASS="LITERAL" ->qtaxcontainer</TT +>tqtaxcontainer</TT > module and which should be added to those needed by any module that imports the <TT CLASS="LITERAL" ->qtaxcontainer</TT +>tqtaxcontainer</TT > module.</P ><P ></P @@ -602,18 +602,18 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_qtcanvas_sip_flags</TT +>pytqt_tqtcanvas_sip_flags</TT ></DT ><DD ><P >A string of the SIP flags used to generate the code for the <TT CLASS="LITERAL" ->qtcanvas</TT +>tqtcanvas</TT > module and which should be added to those needed by any module that imports the <TT CLASS="LITERAL" ->qtcanvas</TT +>tqtcanvas</TT > module.</P ><P ></P @@ -623,18 +623,18 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_qtext_sip_flags</TT +>pytqt_tqtext_sip_flags</TT ></DT ><DD ><P >A string of the SIP flags used to generate the code for the <TT CLASS="LITERAL" ->qtext</TT +>tqtext</TT > module and which should be added to those needed by any module that imports the <TT CLASS="LITERAL" ->qtext</TT +>tqtext</TT > module.</P ><P ></P @@ -644,18 +644,18 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_qtgl_sip_flags</TT +>pytqt_tqtgl_sip_flags</TT ></DT ><DD ><P >A string of the SIP flags used to generate the code for the <TT CLASS="LITERAL" ->qtgl</TT +>tqtgl</TT > module and which should be added to those needed by any module that imports the <TT CLASS="LITERAL" ->qtgl</TT +>tqtgl</TT > module.</P ><P ></P @@ -665,18 +665,18 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_qtnetwork_sip_flags</TT +>pytqt_tqtnetwork_sip_flags</TT ></DT ><DD ><P >A string of the SIP flags used to generate the code for the <TT CLASS="LITERAL" ->qtnetwork</TT +>tqtnetwork</TT > module and which should be added to those needed by any module that imports the <TT CLASS="LITERAL" ->qtnetwork</TT +>tqtnetwork</TT > module.</P ><P ></P @@ -686,18 +686,18 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_qtsql_sip_flags</TT +>pytqt_tqtsql_sip_flags</TT ></DT ><DD ><P >A string of the SIP flags used to generate the code for the <TT CLASS="LITERAL" ->qtsql</TT +>tqtsql</TT > module and which should be added to those needed by any module that imports the <TT CLASS="LITERAL" ->qtsql</TT +>tqtsql</TT > module.</P ><P ></P @@ -707,18 +707,18 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_qttable_sip_flags</TT +>pytqt_tqttable_sip_flags</TT ></DT ><DD ><P >A string of the SIP flags used to generate the code for the <TT CLASS="LITERAL" ->qttable</TT +>tqttable</TT > module and which should be added to those needed by any module that imports the <TT CLASS="LITERAL" ->qttable</TT +>tqttable</TT > module.</P ><P ></P @@ -728,18 +728,18 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_qtui_sip_flags</TT +>pytqt_tqtui_sip_flags</TT ></DT ><DD ><P >A string of the SIP flags used to generate the code for the <TT CLASS="LITERAL" ->qtui</TT +>tqtui</TT > module and which should be added to those needed by any module that imports the <TT CLASS="LITERAL" ->qtui</TT +>tqtui</TT > module.</P ><P ></P @@ -749,18 +749,18 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_qtxml_sip_flags</TT +>pytqt_tqtxml_sip_flags</TT ></DT ><DD ><P >A string of the SIP flags used to generate the code for the <TT CLASS="LITERAL" ->qtxml</TT +>tqtxml</TT > module and which should be added to those needed by any module that imports the <TT CLASS="LITERAL" ->qtxml</TT +>tqtxml</TT > module.</P ><P ></P @@ -770,7 +770,7 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_sip_dir</TT +>pytqt_sip_dir</TT ></DT ><DD ><P @@ -788,7 +788,7 @@ the module.</P ><DT ><TT CLASS="LITERAL" ->pyqt_version</TT +>pytqt_version</TT ></DT ><DD ><P @@ -805,7 +805,7 @@ CLASS="LITERAL" ><DT ><TT CLASS="LITERAL" ->pyqt_version_str</TT +>pytqt_version_str</TT ></DT ><DD ><P @@ -831,7 +831,7 @@ CLASS="LITERAL" ><P >The Makefile class for modules that import the <TT CLASS="LITERAL" ->qt</TT +>tqt</TT > module.</P ><P ></P @@ -866,7 +866,7 @@ CLASS="LITERAL" ><P >The Makefile class for modules that import the <TT CLASS="LITERAL" ->qtaxcontainer</TT +>tqtaxcontainer</TT > module.</P ><P @@ -902,7 +902,7 @@ CLASS="LITERAL" ><P >The Makefile class for modules that import the <TT CLASS="LITERAL" ->qtcanvas</TT +>tqtcanvas</TT > module.</P ><P @@ -938,7 +938,7 @@ CLASS="LITERAL" ><P >The Makefile class for modules that import the <TT CLASS="LITERAL" ->qtext</TT +>tqtext</TT > module.</P ><P ></P @@ -973,7 +973,7 @@ CLASS="LITERAL" ><P >The Makefile class for modules that import the <TT CLASS="LITERAL" ->qtgl</TT +>tqtgl</TT > module.</P ><P ></P @@ -1008,7 +1008,7 @@ CLASS="LITERAL" ><P >The Makefile class for modules that import the <TT CLASS="LITERAL" ->qtnetwork</TT +>tqtnetwork</TT > module.</P ><P @@ -1044,7 +1044,7 @@ CLASS="LITERAL" ><P >The Makefile class for modules that import the <TT CLASS="LITERAL" ->qttable</TT +>tqttable</TT > module.</P ><P @@ -1080,7 +1080,7 @@ CLASS="LITERAL" ><P >The Makefile class for modules that import the <TT CLASS="LITERAL" ->qtsql</TT +>tqtsql</TT > module.</P ><P ></P @@ -1115,7 +1115,7 @@ CLASS="LITERAL" ><P >The Makefile class for modules that import the <TT CLASS="LITERAL" ->qtui</TT +>tqtui</TT > module.</P ><P ></P @@ -1150,7 +1150,7 @@ CLASS="LITERAL" ><P >The Makefile class for modules that import the <TT CLASS="LITERAL" ->qtxml</TT +>tqtxml</TT > module.</P ><P ></P @@ -1751,7 +1751,7 @@ CLASS="PROGRAMLISTING" ><P >Note that the code generated by <TT CLASS="LITERAL" ->pyuic</TT +>pytquic</TT > uses <TT CLASS="LITERAL" @@ -1982,7 +1982,7 @@ CLASS="SECT1" NAME="AEN632" ><TT CLASS="LITERAL" ->qt</TT +>tqt</TT > Module Reference</A ></H2 ><DIV @@ -10048,7 +10048,7 @@ CLASS="SECT1" NAME="AEN3784" ><TT CLASS="LITERAL" ->qtaxcontainer</TT +>tqtaxcontainer</TT > Module Reference</A ></H2 ><DIV @@ -10140,7 +10140,7 @@ CLASS="LITERAL" > module to manipulate objects created by the <TT CLASS="LITERAL" ->qtaxcontainer</TT +>tqtaxcontainer</TT > module.</P ><P >The <TT @@ -10243,7 +10243,7 @@ CLASS="SECT1" NAME="AEN3860" ><TT CLASS="LITERAL" ->qtcanvas</TT +>tqtcanvas</TT > Module Reference</A ></H2 ><DIV @@ -10493,7 +10493,7 @@ CLASS="SECT1" NAME="AEN3937" ><TT CLASS="LITERAL" ->qtext</TT +>tqtext</TT > Module Reference</A ></H2 ><DIV @@ -10943,7 +10943,7 @@ CLASS="SECT1" NAME="AEN4076" ><TT CLASS="LITERAL" ->qtgl</TT +>tqtgl</TT > Module Reference</A ></H2 ><DIV @@ -11035,7 +11035,7 @@ CLASS="SECT1" NAME="AEN4107" ><TT CLASS="LITERAL" ->qtnetwork</TT +>tqtnetwork</TT > Module Reference</A ></H2 ><DIV @@ -11410,7 +11410,7 @@ CLASS="SECT1" NAME="AEN4243" ><TT CLASS="LITERAL" ->qtpe</TT +>tqtpe</TT > Module Reference</A ></H2 ><DIV @@ -11739,7 +11739,7 @@ CLASS="SECT1" NAME="AEN4343" ><TT CLASS="LITERAL" ->qtsql</TT +>tqtsql</TT > Module Reference</A ></H2 ><DIV @@ -12192,7 +12192,7 @@ CLASS="SECT1" NAME="AEN4486" ><TT CLASS="LITERAL" ->qttable</TT +>tqttable</TT > Module Reference</A ></H2 ><DIV @@ -12274,7 +12274,7 @@ CLASS="SECT1" NAME="AEN4509" ><TT CLASS="LITERAL" ->qtui</TT +>tqtui</TT > Module Reference</A ></H2 ><DIV @@ -12300,7 +12300,7 @@ CLASS="SECT1" NAME="AEN4516" ><TT CLASS="LITERAL" ->qtxml</TT +>tqtxml</TT > Module Reference</A ></H2 ><DIV diff --git a/doc/PyQt.sgml b/doc/PyTQt.sgml index 3eece7e..2e26209 100644 --- a/doc/PyQt.sgml +++ b/doc/PyTQt.sgml @@ -54,61 +54,61 @@ The bindings are implemented as a number of Python modules <ItemizedList> <ListItem> <Para> -<Literal>qt</Literal> is the main module and contains the core classes and most +<Literal>tqt</Literal> is the main module and contains the core classes and most user interface widgets. </Para> </ListItem> <ListItem> <Para> -<Literal>qtaxcontainer</Literal> contains a sub-set of the classes implemented +<Literal>tqtaxcontainer</Literal> contains a sub-set of the classes implemented in TQt's TQAxContainer module, part of TQt's ActiveTQt framework. </Para> </ListItem> <ListItem> <Para> -<Literal>qtcanvas</Literal> contains the classes implemented in TQt's Canvas +<Literal>tqtcanvas</Literal> contains the classes implemented in TQt's Canvas module. </Para> </ListItem> <ListItem> <Para> -<Literal>qtgl</Literal> contains the classes implemented in TQt's OpenGL module. +<Literal>tqtgl</Literal> contains the classes implemented in TQt's OpenGL module. </Para> </ListItem> <ListItem> <Para> -<Literal>qtnetwork</Literal> contains the classes implemented in TQt's Network +<Literal>tqtnetwork</Literal> contains the classes implemented in TQt's Network module. </Para> </ListItem> <ListItem> <Para> -<Literal>qtpe</Literal> contains the classes implemented in TQtopia (originally +<Literal>tqtpe</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 TQt's SQL module. +<Literal>tqtsql</Literal> contains the classes implemented in TQt's SQL module. </Para> </ListItem> <ListItem> <Para> -<Literal>qttable</Literal> contains the classes implemented in TQt's Table +<Literal>tqttable</Literal> contains the classes implemented in TQt's Table module. </Para> </ListItem> <ListItem> <Para> -<Literal>qtui</Literal> contains the classes implemented in TQt's tqui library. +<Literal>tqtui</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> @@ -116,13 +116,13 @@ These allow GUIs to be created directly from TQt Designer's <ListItem> <Para> -<Literal>qtxml</Literal> contains the classes implemented in TQt's XML module. +<Literal>tqtxml</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 +<Literal>tqtext</Literal> contains useful third-party classes that are not part of TQt. At the moment it contains bindings for TQScintilla, the port to TQt of the Scintilla programmer's editor class. </Para> @@ -130,11 +130,11 @@ the Scintilla programmer's editor class. </ItemizedList> <Para> -PyTQt also includes the <Literal>pyuic</Literal> and -<Literal>pylupdate</Literal> utilities which correspond to the TQt +PyTQt also includes the <Literal>pytquic</Literal> and +<Literal>pytqlupdate</Literal> utilities which correspond to the TQt <Literal>uic</Literal> and <Literal>lupdate</Literal> utilities. -<Literal>pyuic</Literal> converts the GUI designs created with TQt Designer to -executable Python code. <Literal>pylupdate</Literal> scans Python code, +<Literal>pytquic</Literal> converts the GUI designs created with TQt Designer to +executable Python code. <Literal>pytqlupdate</Literal> scans Python code, extracts all strings that are candidates for internationalisation, and creates an XML file for use by TQt Linguist. </Para> @@ -196,7 +196,7 @@ The missing <Literal>MacintoshVersion</Literal> enum has been added. <ListItem> <Para> -<Literal>PYQT_BUILD</Literal> has been removed. +<Literal>PYTQT_BUILD</Literal> has been removed. </Para> </ListItem> @@ -223,17 +223,17 @@ It generates an XML description of a GUI design. TQt includes </Para> <Para> -PyTQt includes <Literal>pyuic</Literal> which generates Python code from the +PyTQt includes <Literal>pytquic</Literal> which generates Python code from the same XML. The Python code is self contained and can be executed immediately. </Para> <Para> 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 +output generated by <Literal>pytquic</Literal>. For example, if you are using +custom widgets, <Literal>pytquic</Literal> has no way of knowing the name of the Python module containing the widget and so cannot generate the required <Literal>import</Literal> statement. To help get around this, -<Literal>pyuic</Literal> will extract any lines entered in the +<Literal>pytquic</Literal> will extract any lines entered in the <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. @@ -245,25 +245,25 @@ field. </Para> <ProgramListing> -This comment will be ignored by pyuic. +This comment will be ignored by pytquic. Python: Python:# Import our custom widget. Python:from foo import bar </ProgramListing> <Para> -Here's the corresponding output from <Literal>pyuic</Literal>. +Here's the corresponding output from <Literal>pytquic</Literal>. </Para> <ProgramListing> -from PyTQt.qt import * +from PyTQt.tqt import * # Import our custom widget. from foo import bar </ProgramListing> <Para> -Thanks to Christian Bird, <Literal>pyuic</Literal> will extract Python code +Thanks to Christian Bird, <Literal>pytquic</Literal> will extract Python code 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 @@ -272,7 +272,7 @@ prepended with a correct indentation. <Para> Make sure that the <Literal>ui.h</Literal> file is in the same directory as the -<Literal>.ui</Literal> file when using <Literal>pyuic</Literal>. The +<Literal>.ui</Literal> file when using <Literal>pytquic</Literal>. The <Literal>.ui</Literal> file implies the name of the <Literal>.ui.h</Literal> file so there is no need to specify it on the command line. </Para> @@ -290,7 +290,7 @@ if self.debugging: </ProgramListing> <Para> -Here is the resulting code when <Literal>pyuic</Literal> is run. +Here is the resulting code when <Literal>pytquic</Literal> is run. </Para> <ProgramListing> @@ -324,7 +324,7 @@ your application. </Para> <Para> -Thanks to Detlev Offenbach, PyTQt includes the <Literal>pylupdate</Literal> +Thanks to Detlev Offenbach, PyTQt includes the <Literal>pytqlupdate</Literal> program. This generates the same <Literal>.ts</Literal> language source files from your PyTQt source files. </Para> @@ -358,16 +358,16 @@ In order to build PyTQt with support for the VendorID package, pass the </Para> </Sect1> -<Sect1><Title><Literal>pyqtconfig</Literal> and Build System Support</Title> +<Sect1><Title><Literal>pytqtconfig</Literal> and Build System Support</Title> <Para> The SIP build system (ie. the <Literal>sipconfig</Literal> module) is described -in the SIP documentation. PyTQt includes the <Literal>pyqtconfig</Literal> +in the SIP documentation. PyTQt includes the <Literal>pytqtconfig</Literal> module that can be used by configuration scripts of other bindings that are built on top of PyTQt. </Para> <Para> -The <Literal>pyqtconfig</Literal> module contains the following classes: +The <Literal>pytqtconfig</Literal> module contains the following classes: </Para> <VariableList> @@ -386,18 +386,18 @@ by the <Literal>sipconfig.Configuration</Literal> class): <VariableList> <VarListEntry> -<Term><Literal>pyqt_bin_dir</Literal></Term> +<Term><Literal>pytqt_bin_dir</Literal></Term> <ListItem> <Para> -The name of the directory containing the <Literal>pyuic</Literal> and -<Literal>pylupdate</Literal> executables. +The name of the directory containing the <Literal>pytquic</Literal> and +<Literal>pytqlupdate</Literal> executables. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_config_args</Literal></Term> +<Term><Literal>pytqt_config_args</Literal></Term> <ListItem> <Para> The command line passed to <Literal>configure.py</Literal> when PyTQt was @@ -408,7 +408,7 @@ configured. </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_mod_dir</Literal></Term> +<Term><Literal>pytqt_mod_dir</Literal></Term> <ListItem> <Para> The name of the directory containing the PyTQt modules. @@ -418,7 +418,7 @@ The name of the directory containing the PyTQt modules. </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_modules</Literal></Term> +<Term><Literal>pytqt_modules</Literal></Term> <ListItem> <Para> A string containing the names of the PyTQt modules that were installed. @@ -428,127 +428,127 @@ A string containing the names of the PyTQt modules that were installed. </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qt_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqt_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qt</Literal> module and which should be added to those needed by any -module that imports the <Literal>qt</Literal> module. +<Literal>tqt</Literal> module and which should be added to those needed by any +module that imports the <Literal>tqt</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtaxcontainer_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtaxcontainer_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtaxcontainer</Literal> module and which should be added to those -needed by any module that imports the <Literal>qtaxcontainer</Literal> module. +<Literal>tqtaxcontainer</Literal> module and which should be added to those +needed by any module that imports the <Literal>tqtaxcontainer</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtcanvas_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtcanvas_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtcanvas</Literal> module and which should be added to those needed by -any module that imports the <Literal>qtcanvas</Literal> module. +<Literal>tqtcanvas</Literal> module and which should be added to those needed by +any module that imports the <Literal>tqtcanvas</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtext_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtext_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtext</Literal> module and which should be added to those needed by -any module that imports the <Literal>qtext</Literal> module. +<Literal>tqtext</Literal> module and which should be added to those needed by +any module that imports the <Literal>tqtext</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtgl_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtgl_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtgl</Literal> module and which should be added to those needed by any -module that imports the <Literal>qtgl</Literal> module. +<Literal>tqtgl</Literal> module and which should be added to those needed by any +module that imports the <Literal>tqtgl</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtnetwork_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtnetwork_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtnetwork</Literal> module and which should be added to those needed -by any module that imports the <Literal>qtnetwork</Literal> module. +<Literal>tqtnetwork</Literal> module and which should be added to those needed +by any module that imports the <Literal>tqtnetwork</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtsql_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtsql_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtsql</Literal> module and which should be added to those needed by -any module that imports the <Literal>qtsql</Literal> module. +<Literal>tqtsql</Literal> module and which should be added to those needed by +any module that imports the <Literal>tqtsql</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qttable_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqttable_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qttable</Literal> module and which should be added to those needed by -any module that imports the <Literal>qttable</Literal> module. +<Literal>tqttable</Literal> module and which should be added to those needed by +any module that imports the <Literal>tqttable</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtui_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtui_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtui</Literal> module and which should be added to those needed by any -module that imports the <Literal>qtui</Literal> module. +<Literal>tqtui</Literal> module and which should be added to those needed by any +module that imports the <Literal>tqtui</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtxml_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtxml_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtxml</Literal> module and which should be added to those needed by -any module that imports the <Literal>qtxml</Literal> module. +<Literal>tqtxml</Literal> module and which should be added to those needed by +any module that imports the <Literal>tqtxml</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_sip_dir</Literal></Term> +<Term><Literal>pytqt_sip_dir</Literal></Term> <ListItem> <Para> The name of the base directory where the <Literal>.sip</Literal> files for each @@ -560,7 +560,7 @@ the module. </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_version</Literal></Term> +<Term><Literal>pytqt_version</Literal></Term> <ListItem> <Para> The PyTQt version as a 3 part hexadecimal number (eg. v3.10 is represented as @@ -571,7 +571,7 @@ The PyTQt version as a 3 part hexadecimal number (eg. v3.10 is represented as </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_version_str</Literal></Term> +<Term><Literal>pytqt_version_str</Literal></Term> <ListItem> <Para> The PyTQt version as a string. For development snapshots it will start with @@ -589,7 +589,7 @@ The PyTQt version as a string. For development snapshots it will start with <Term><Literal>TQtModuleMakefile(sipconfig.SIPModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qt</Literal> module. +The Makefile class for modules that import the <Literal>tqt</Literal> module. </Para> <VariableList> <VarListEntry> @@ -609,7 +609,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtAxContainerModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtaxcontainer</Literal> +The Makefile class for modules that import the <Literal>tqtaxcontainer</Literal> module. </Para> <VariableList> @@ -630,7 +630,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtCanvasModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtcanvas</Literal> +The Makefile class for modules that import the <Literal>tqtcanvas</Literal> module. </Para> <VariableList> @@ -651,7 +651,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtExtModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtext</Literal> module. +The Makefile class for modules that import the <Literal>tqtext</Literal> module. </Para> <VariableList> <VarListEntry> @@ -671,7 +671,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtGLModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtgl</Literal> module. +The Makefile class for modules that import the <Literal>tqtgl</Literal> module. </Para> <VariableList> <VarListEntry> @@ -691,7 +691,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtNetworkModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtnetwork</Literal> +The Makefile class for modules that import the <Literal>tqtnetwork</Literal> module. </Para> <VariableList> @@ -712,7 +712,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtTableModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qttable</Literal> +The Makefile class for modules that import the <Literal>tqttable</Literal> module. </Para> <VariableList> @@ -733,7 +733,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtSQLModuleMakefile(TQtTableModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtsql</Literal> module. +The Makefile class for modules that import the <Literal>tqtsql</Literal> module. </Para> <VariableList> <VarListEntry> @@ -753,7 +753,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtUIModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtui</Literal> module. +The Makefile class for modules that import the <Literal>tqtui</Literal> module. </Para> <VariableList> <VarListEntry> @@ -773,7 +773,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtXMLModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtxml</Literal> module. +The Makefile class for modules that import the <Literal>tqtxml</Literal> module. </Para> <VariableList> <VarListEntry> @@ -1094,7 +1094,7 @@ class A(TQObject): </ProgramListing> <Para> -Note that the code generated by <Literal>pyuic</Literal> uses +Note that the code generated by <Literal>pytquic</Literal> uses <Literal>TQApplication.translate()</Literal>. </Para> </Sect2> @@ -1243,7 +1243,7 @@ Classes that are not mentioned have not yet been implemented. </Sect1> -<Sect1><Title><Literal>qt</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqt</Literal> Module Reference</Title> <Sect2><Title>TQt Constants</Title> <Para> All constant values defined by TQt have equivalent constants defined to Python. @@ -4663,7 +4663,7 @@ values. (TQt v2+) </Para> </Sect2> </Sect1> -<Sect1><Title><Literal>qtaxcontainer</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtaxcontainer</Literal> Module Reference</Title> <Sect2><Title>TQAxBase (Windows, TQt v3+)</Title> <FuncSynopsis> <FuncDef><Function>TQAxObject</Function></FuncDef> @@ -4705,7 +4705,7 @@ Not implemented. <Para> 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. +created by the <Literal>tqtaxcontainer</Literal> module. </Para> <Para> The <Literal>RegisterActiveObject()</Literal> COM function is called to @@ -4747,7 +4747,7 @@ Not implemented. </Para> </Sect2> </Sect1> -<Sect1><Title><Literal>qtcanvas</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtcanvas</Literal> Module Reference</Title> <Sect2><Title>TQCanvas (TQt v2.2+)</Title> <Para> <Literal>TQCanvas</Literal> is fully implemented. @@ -4851,7 +4851,7 @@ The <Literal>pixmaps</Literal> argument is a Python list of TQPixmap instances. </Para> </Sect2> </Sect1> -<Sect1><Title><Literal>qtext</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtext</Literal> Module Reference</Title> <Sect2><Title>TQextScintilla</Title> <FuncSynopsis> @@ -5040,7 +5040,7 @@ This takes no parameters and returns a tuple of the values returned by the </Para> </Sect2> </Sect1> -<Sect1><Title><Literal>qtgl</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtgl</Literal> Module Reference</Title> <Sect2><Title>TQGL</Title> <Para> <Literal>TQGL</Literal> is fully implemented. @@ -5076,7 +5076,7 @@ Not yet implemented. </Para> </Sect2> </Sect1> -<Sect1><Title><Literal>qtnetwork</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtnetwork</Literal> Module Reference</Title> <Sect2><Title>TQDns (TQt v2.2+)</Title> <Para> <Literal>TQDns</Literal> is fully implemented. @@ -5223,7 +5223,7 @@ as a parameter. </Para> </Sect2> </Sect1> -<Sect1><Title><Literal>qtpe</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtpe</Literal> Module Reference</Title> <Sect2><Title>TQPEApplication</Title> <FuncSynopsis> @@ -5361,7 +5361,7 @@ Not implemented. </Sect2> </Sect1> -<Sect1><Title><Literal>qtsql</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtsql</Literal> Module Reference</Title> <Sect2><Title>TQDataBrowser (TQt v3+)</Title> <FuncSynopsis> <FuncDef>virtual void <Function>del</Function></FuncDef> @@ -5534,7 +5534,7 @@ This has been renamed <Literal>execQuery</Literal> in Python. </Para> </Sect2> </Sect1> -<Sect1><Title><Literal>qttable</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqttable</Literal> Module Reference</Title> <Sect2><Title>TQTable (TQt v2.2+)</Title> <Para> <Literal>TQTable</Literal> is fully implemented. @@ -5565,14 +5565,14 @@ This has been renamed <Literal>execQuery</Literal> in Python. </Para> </Sect2> </Sect1> -<Sect1><Title><Literal>qtui</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtui</Literal> Module Reference</Title> <Sect2><Title>TQWidgetFactory (TQt v3+)</Title> <Para> <Literal>TQWidgetFactory</Literal> is fully implemented. </Para> </Sect2> </Sect1> -<Sect1><Title><Literal>qtxml</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtxml</Literal> Module Reference</Title> <Sect2><Title>TQDomImplementation (TQt v2.2+)</Title> <Para> <Literal>TQDomImplementation</Literal> is fully implemented. diff --git a/doc/qtdocs.sip b/doc/tqtdocs.sip index 171bacd..5c8c295 100644 --- a/doc/qtdocs.sip +++ b/doc/tqtdocs.sip @@ -23,7 +23,7 @@ %Module Dummy -%Include qt/versions.sip +%Include tqt/versions.sip %Doc @@ -83,61 +83,61 @@ The bindings are implemented as a number of Python modules <ItemizedList> <ListItem> <Para> -<Literal>qt</Literal> is the main module and contains the core classes and most +<Literal>tqt</Literal> is the main module and contains the core classes and most user interface widgets. </Para> </ListItem> <ListItem> <Para> -<Literal>qtaxcontainer</Literal> contains a sub-set of the classes implemented +<Literal>tqtaxcontainer</Literal> contains a sub-set of the classes implemented in TQt's TQAxContainer module, part of TQt's ActiveTQt framework. </Para> </ListItem> <ListItem> <Para> -<Literal>qtcanvas</Literal> contains the classes implemented in TQt's Canvas +<Literal>tqtcanvas</Literal> contains the classes implemented in TQt's Canvas module. </Para> </ListItem> <ListItem> <Para> -<Literal>qtgl</Literal> contains the classes implemented in TQt's OpenGL module. +<Literal>tqtgl</Literal> contains the classes implemented in TQt's OpenGL module. </Para> </ListItem> <ListItem> <Para> -<Literal>qtnetwork</Literal> contains the classes implemented in TQt's Network +<Literal>tqtnetwork</Literal> contains the classes implemented in TQt's Network module. </Para> </ListItem> <ListItem> <Para> -<Literal>qtpe</Literal> contains the classes implemented in TQtopia (originally +<Literal>tqtpe</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 TQt's SQL module. +<Literal>tqtsql</Literal> contains the classes implemented in TQt's SQL module. </Para> </ListItem> <ListItem> <Para> -<Literal>qttable</Literal> contains the classes implemented in TQt's Table +<Literal>tqttable</Literal> contains the classes implemented in TQt's Table module. </Para> </ListItem> <ListItem> <Para> -<Literal>qtui</Literal> contains the classes implemented in TQt's tqui library. +<Literal>tqtui</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> @@ -145,13 +145,13 @@ These allow GUIs to be created directly from TQt Designer's <ListItem> <Para> -<Literal>qtxml</Literal> contains the classes implemented in TQt's XML module. +<Literal>tqtxml</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 +<Literal>tqtext</Literal> contains useful third-party classes that are not part of TQt. At the moment it contains bindings for TQScintilla, the port to TQt of the Scintilla programmer's editor class. </Para> @@ -159,11 +159,11 @@ the Scintilla programmer's editor class. </ItemizedList> <Para> -PyTQt also includes the <Literal>pyuic</Literal> and -<Literal>pylupdate</Literal> utilities which correspond to the TQt +PyTQt also includes the <Literal>pytquic</Literal> and +<Literal>pytqlupdate</Literal> utilities which correspond to the TQt <Literal>uic</Literal> and <Literal>lupdate</Literal> utilities. -<Literal>pyuic</Literal> converts the GUI designs created with TQt Designer to -executable Python code. <Literal>pylupdate</Literal> scans Python code, +<Literal>pytquic</Literal> converts the GUI designs created with TQt Designer to +executable Python code. <Literal>pytqlupdate</Literal> scans Python code, extracts all strings that are candidates for internationalisation, and creates an XML file for use by TQt Linguist. </Para> @@ -225,7 +225,7 @@ The missing <Literal>MacintoshVersion</Literal> enum has been added. <ListItem> <Para> -<Literal>PYQT_BUILD</Literal> has been removed. +<Literal>PYTQT_BUILD</Literal> has been removed. </Para> </ListItem> @@ -252,17 +252,17 @@ It generates an XML description of a GUI design. TQt includes </Para> <Para> -PyTQt includes <Literal>pyuic</Literal> which generates Python code from the +PyTQt includes <Literal>pytquic</Literal> which generates Python code from the same XML. The Python code is self contained and can be executed immediately. </Para> <Para> 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 +output generated by <Literal>pytquic</Literal>. For example, if you are using +custom widgets, <Literal>pytquic</Literal> has no way of knowing the name of the Python module containing the widget and so cannot generate the required <Literal>import</Literal> statement. To help get around this, -<Literal>pyuic</Literal> will extract any lines entered in the +<Literal>pytquic</Literal> will extract any lines entered in the <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. @@ -274,25 +274,25 @@ field. </Para> <ProgramListing> -This comment will be ignored by pyuic. +This comment will be ignored by pytquic. Python: Python:# Import our custom widget. Python:from foo import bar </ProgramListing> <Para> -Here's the corresponding output from <Literal>pyuic</Literal>. +Here's the corresponding output from <Literal>pytquic</Literal>. </Para> <ProgramListing> -from PyTQt.qt import * +from PyTQt.tqt import * # Import our custom widget. from foo import bar </ProgramListing> <Para> -Thanks to Christian Bird, <Literal>pyuic</Literal> will extract Python code +Thanks to Christian Bird, <Literal>pytquic</Literal> will extract Python code 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 @@ -301,7 +301,7 @@ prepended with a correct indentation. <Para> Make sure that the <Literal>ui.h</Literal> file is in the same directory as the -<Literal>.ui</Literal> file when using <Literal>pyuic</Literal>. The +<Literal>.ui</Literal> file when using <Literal>pytquic</Literal>. The <Literal>.ui</Literal> file implies the name of the <Literal>.ui.h</Literal> file so there is no need to specify it on the command line. </Para> @@ -319,7 +319,7 @@ if self.debugging: </ProgramListing> <Para> -Here is the resulting code when <Literal>pyuic</Literal> is run. +Here is the resulting code when <Literal>pytquic</Literal> is run. </Para> <ProgramListing> @@ -353,7 +353,7 @@ your application. </Para> <Para> -Thanks to Detlev Offenbach, PyTQt includes the <Literal>pylupdate</Literal> +Thanks to Detlev Offenbach, PyTQt includes the <Literal>pytqlupdate</Literal> program. This generates the same <Literal>.ts</Literal> language source files from your PyTQt source files. </Para> @@ -387,16 +387,16 @@ In order to build PyTQt with support for the VendorID package, pass the </Para> </Sect1> -<Sect1><Title><Literal>pyqtconfig</Literal> and Build System Support</Title> +<Sect1><Title><Literal>pytqtconfig</Literal> and Build System Support</Title> <Para> The SIP build system (ie. the <Literal>sipconfig</Literal> module) is described -in the SIP documentation. PyTQt includes the <Literal>pyqtconfig</Literal> +in the SIP documentation. PyTQt includes the <Literal>pytqtconfig</Literal> module that can be used by configuration scripts of other bindings that are built on top of PyTQt. </Para> <Para> -The <Literal>pyqtconfig</Literal> module contains the following classes: +The <Literal>pytqtconfig</Literal> module contains the following classes: </Para> <VariableList> @@ -415,18 +415,18 @@ by the <Literal>sipconfig.Configuration</Literal> class): <VariableList> <VarListEntry> -<Term><Literal>pyqt_bin_dir</Literal></Term> +<Term><Literal>pytqt_bin_dir</Literal></Term> <ListItem> <Para> -The name of the directory containing the <Literal>pyuic</Literal> and -<Literal>pylupdate</Literal> executables. +The name of the directory containing the <Literal>pytquic</Literal> and +<Literal>pytqlupdate</Literal> executables. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_config_args</Literal></Term> +<Term><Literal>pytqt_config_args</Literal></Term> <ListItem> <Para> The command line passed to <Literal>configure.py</Literal> when PyTQt was @@ -437,7 +437,7 @@ configured. </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_mod_dir</Literal></Term> +<Term><Literal>pytqt_mod_dir</Literal></Term> <ListItem> <Para> The name of the directory containing the PyTQt modules. @@ -447,7 +447,7 @@ The name of the directory containing the PyTQt modules. </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_modules</Literal></Term> +<Term><Literal>pytqt_modules</Literal></Term> <ListItem> <Para> A string containing the names of the PyTQt modules that were installed. @@ -457,127 +457,127 @@ A string containing the names of the PyTQt modules that were installed. </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qt_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqt_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qt</Literal> module and which should be added to those needed by any -module that imports the <Literal>qt</Literal> module. +<Literal>tqt</Literal> module and which should be added to those needed by any +module that imports the <Literal>tqt</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtaxcontainer_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtaxcontainer_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtaxcontainer</Literal> module and which should be added to those -needed by any module that imports the <Literal>qtaxcontainer</Literal> module. +<Literal>tqtaxcontainer</Literal> module and which should be added to those +needed by any module that imports the <Literal>tqtaxcontainer</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtcanvas_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtcanvas_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtcanvas</Literal> module and which should be added to those needed by -any module that imports the <Literal>qtcanvas</Literal> module. +<Literal>tqtcanvas</Literal> module and which should be added to those needed by +any module that imports the <Literal>tqtcanvas</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtext_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtext_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtext</Literal> module and which should be added to those needed by -any module that imports the <Literal>qtext</Literal> module. +<Literal>tqtext</Literal> module and which should be added to those needed by +any module that imports the <Literal>tqtext</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtgl_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtgl_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtgl</Literal> module and which should be added to those needed by any -module that imports the <Literal>qtgl</Literal> module. +<Literal>tqtgl</Literal> module and which should be added to those needed by any +module that imports the <Literal>tqtgl</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtnetwork_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtnetwork_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtnetwork</Literal> module and which should be added to those needed -by any module that imports the <Literal>qtnetwork</Literal> module. +<Literal>tqtnetwork</Literal> module and which should be added to those needed +by any module that imports the <Literal>tqtnetwork</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtsql_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtsql_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtsql</Literal> module and which should be added to those needed by -any module that imports the <Literal>qtsql</Literal> module. +<Literal>tqtsql</Literal> module and which should be added to those needed by +any module that imports the <Literal>tqtsql</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qttable_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqttable_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qttable</Literal> module and which should be added to those needed by -any module that imports the <Literal>qttable</Literal> module. +<Literal>tqttable</Literal> module and which should be added to those needed by +any module that imports the <Literal>tqttable</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtui_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtui_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtui</Literal> module and which should be added to those needed by any -module that imports the <Literal>qtui</Literal> module. +<Literal>tqtui</Literal> module and which should be added to those needed by any +module that imports the <Literal>tqtui</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_qtxml_sip_flags</Literal></Term> +<Term><Literal>pytqt_tqtxml_sip_flags</Literal></Term> <ListItem> <Para> A string of the SIP flags used to generate the code for the -<Literal>qtxml</Literal> module and which should be added to those needed by -any module that imports the <Literal>qtxml</Literal> module. +<Literal>tqtxml</Literal> module and which should be added to those needed by +any module that imports the <Literal>tqtxml</Literal> module. </Para> <Para></Para><Para></Para> </ListItem> </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_sip_dir</Literal></Term> +<Term><Literal>pytqt_sip_dir</Literal></Term> <ListItem> <Para> The name of the base directory where the <Literal>.sip</Literal> files for each @@ -589,7 +589,7 @@ the module. </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_version</Literal></Term> +<Term><Literal>pytqt_version</Literal></Term> <ListItem> <Para> The PyTQt version as a 3 part hexadecimal number (eg. v3.10 is represented as @@ -600,7 +600,7 @@ The PyTQt version as a 3 part hexadecimal number (eg. v3.10 is represented as </VarListEntry> <VarListEntry> -<Term><Literal>pyqt_version_str</Literal></Term> +<Term><Literal>pytqt_version_str</Literal></Term> <ListItem> <Para> The PyTQt version as a string. For development snapshots it will start with @@ -618,7 +618,7 @@ The PyTQt version as a string. For development snapshots it will start with <Term><Literal>TQtModuleMakefile(sipconfig.SIPModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qt</Literal> module. +The Makefile class for modules that import the <Literal>tqt</Literal> module. </Para> <VariableList> <VarListEntry> @@ -638,7 +638,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtAxContainerModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtaxcontainer</Literal> +The Makefile class for modules that import the <Literal>tqtaxcontainer</Literal> module. </Para> <VariableList> @@ -659,7 +659,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtCanvasModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtcanvas</Literal> +The Makefile class for modules that import the <Literal>tqtcanvas</Literal> module. </Para> <VariableList> @@ -680,7 +680,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtExtModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtext</Literal> module. +The Makefile class for modules that import the <Literal>tqtext</Literal> module. </Para> <VariableList> <VarListEntry> @@ -700,7 +700,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtGLModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtgl</Literal> module. +The Makefile class for modules that import the <Literal>tqtgl</Literal> module. </Para> <VariableList> <VarListEntry> @@ -720,7 +720,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtNetworkModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtnetwork</Literal> +The Makefile class for modules that import the <Literal>tqtnetwork</Literal> module. </Para> <VariableList> @@ -741,7 +741,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtTableModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qttable</Literal> +The Makefile class for modules that import the <Literal>tqttable</Literal> module. </Para> <VariableList> @@ -762,7 +762,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtSQLModuleMakefile(TQtTableModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtsql</Literal> module. +The Makefile class for modules that import the <Literal>tqtsql</Literal> module. </Para> <VariableList> <VarListEntry> @@ -782,7 +782,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtUIModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtui</Literal> module. +The Makefile class for modules that import the <Literal>tqtui</Literal> module. </Para> <VariableList> <VarListEntry> @@ -802,7 +802,7 @@ This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>. <Term><Literal>TQtXMLModuleMakefile(TQtModuleMakefile)</Literal></Term> <ListItem> <Para> -The Makefile class for modules that import the <Literal>qtxml</Literal> module. +The Makefile class for modules that import the <Literal>tqtxml</Literal> module. </Para> <VariableList> <VarListEntry> @@ -1127,7 +1127,7 @@ class A(TQObject): </ProgramListing> <Para> -Note that the code generated by <Literal>pyuic</Literal> uses +Note that the code generated by <Literal>pytquic</Literal> uses <Literal>TQApplication.translate()</Literal>. </Para> </Sect2> @@ -1276,179 +1276,179 @@ Classes that are not mentioned have not yet been implemented. </Sect1> -<Sect1><Title><Literal>qt</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqt</Literal> Module Reference</Title> %End -%Include qt/qglobal.sip -%Include qt/qwindowdefs.sip -%Include qt/qnamespace.sip - -%Include qt/qaccel.sip -%Include qt/qaction.sip -%Include qt/qapplication.sip -%Include qt/qassistantclient.sip -%Include qt/qbitmap.sip -%Include qt/qbrush.sip -%Include qt/qbutton.sip -%Include qt/qbuttongroup.sip -%Include qt/qbytearray.sip -%Include qt/qcdestyle.sip -%Include qt/qcheckbox.sip -%Include qt/qclipboard.sip -%Include qt/qcolor.sip -%Include qt/qcolordialog.sip -%Include qt/qcolorgroup.sip -%Include qt/qcombobox.sip -%Include qt/qcommonstyle.sip -%Include qt/qcstring.sip -%Include qt/qcursor.sip -%Include qt/qdatastream.sip -%Include qt/qdatetime.sip -%Include qt/qdatetimeedit.sip -%Include qt/qdesktopwidget.sip -%Include qt/qdial.sip -%Include qt/qdialog.sip -%Include qt/qdir.sip -%Include qt/qdockarea.sip -%Include qt/qdockwindow.sip -%Include qt/qdragobject.sip -%Include qt/qdrawutil.sip -%Include qt/qdropsite.sip -%Include qt/qerrormessage.sip -%Include qt/qevent.sip -%Include qt/qeventloop.sip -%Include qt/qfile.sip -%Include qt/qfiledialog.sip -%Include qt/qfileinfo.sip -%Include qt/qfont.sip -%Include qt/qfontdatabase.sip -%Include qt/qfontdialog.sip -%Include qt/qfontinfo.sip -%Include qt/qfontmetrics.sip -%Include qt/qframe.sip -%Include qt/qgrid.sip -%Include qt/qgridview.sip -%Include qt/qgroupbox.sip -%Include qt/qhbox.sip -%Include qt/qhbuttongroup.sip -%Include qt/qheader.sip -%Include qt/qhgroupbox.sip -%Include qt/qiconset.sip -%Include qt/qiconview.sip -%Include qt/qimage.sip -%Include qt/qinputdialog.sip -%Include qt/qinterlacestyle.sip -%Include qt/qiodevice.sip -%Include qt/qkeysequence.sip -%Include qt/qlabel.sip -%Include qt/qlayout.sip -%Include qt/qlcdnumber.sip -%Include qt/qlibrary.sip -%Include qt/qlineedit.sip -%Include qt/qlistbox.sip -%Include qt/qlistview.sip -%Include qt/qlocale.sip -%Include qt/qmainwindow.sip -%Include qt/qmemarray.sip -%Include qt/qmenubar.sip -%Include qt/qmenudata.sip -%Include qt/qmessagebox.sip -%Include qt/qmetaobject.sip -%Include qt/qmime.sip -%Include qt/qmotifplusstyle.sip -%Include qt/qmotifstyle.sip -%Include qt/qmovie.sip -%Include qt/qmultilinedit.sip -%Include qt/qmutex.sip -%Include qt/qnetworkprotocol.sip -%Include qt/qobject.sip -%Include qt/qobjectcleanuphandler.sip -%Include qt/qobjectlist.sip -%Include qt/qpaintdevicemetrics.sip -%Include qt/qpaintdevice.sip -%Include qt/qpainter.sip -%Include qt/qpalette.sip -%Include qt/qpixmap.sip -%Include qt/qpixmapcache.sip -%Include qt/qpair.sip -%Include qt/qpen.sip -%Include qt/qpicture.sip -%Include qt/qplatinumstyle.sip -%Include qt/qpoint.sip -%Include qt/qpointarray.sip -%Include qt/qpopupmenu.sip -%Include qt/qprintdialog.sip -%Include qt/qprinter.sip -%Include qt/qprocess.sip -%Include qt/qprogressbar.sip -%Include qt/qprogressdialog.sip -%Include qt/qptrlist.sip -%Include qt/qpushbutton.sip -%Include qt/qradiobutton.sip -%Include qt/qrangecontrol.sip -%Include qt/qrect.sip -%Include qt/qregexp.sip -%Include qt/qregion.sip -%Include qt/qscrollbar.sip -%Include qt/qscrollview.sip -%Include qt/qsemaphore.sip -%Include qt/qsemimodal.sip -%Include qt/qsessionmanager.sip -%Include qt/qsettings.sip -%Include qt/qsgistyle.sip -%Include qt/qsignalmapper.sip -%Include qt/qsimplerichtext.sip -%Include qt/qsize.sip -%Include qt/qsizegrip.sip -%Include qt/qsizepolicy.sip -%Include qt/qslider.sip -%Include qt/qsocketnotifier.sip -%Include qt/qsound.sip -%Include qt/qspinbox.sip -%Include qt/qsplashscreen.sip -%Include qt/qsplitter.sip -%Include qt/qstatusbar.sip -%Include qt/qstring.sip -%Include qt/qstringlist.sip -%Include qt/qstrlist.sip -%Include qt/qstyle.sip -%Include qt/qstylesheet.sip -%Include qt/qsyntaxhighlighter.sip -%Include qt/qtabbar.sip -%Include qt/qtabdialog.sip -%Include qt/qtabwidget.sip -%Include qt/qtextbrowser.sip -%Include qt/qtextcodec.sip -%Include qt/qtextedit.sip -%Include qt/qtextstream.sip -%Include qt/qtextview.sip -%Include qt/qthread.sip -%Include qt/qtimer.sip -%Include qt/qtoolbar.sip -%Include qt/qtoolbox.sip -%Include qt/qtoolbutton.sip -%Include qt/qtooltip.sip -%Include qt/qtranslator.sip -%Include qt/qurl.sip -%Include qt/qurlinfo.sip -%Include qt/qurloperator.sip -%Include qt/quuid.sip -%Include qt/qvalidator.sip -%Include qt/qvaluelist.sip -%Include qt/qvariant.sip -%Include qt/qvbox.sip -%Include qt/qvbuttongroup.sip -%Include qt/qvgroupbox.sip -%Include qt/qwaitcondition.sip -%Include qt/qwhatsthis.sip -%Include qt/qwidget.sip -%Include qt/qwidgetlist.sip -%Include qt/qwidgetstack.sip -%Include qt/qwindowsstyle.sip -%Include qt/qwindowsxpstyle.sip -%Include qt/qwizard.sip -%Include qt/qwmatrix.sip -%Include qt/qworkspace.sip +%Include tqt/tqglobal.sip +%Include tqt/tqwindowdefs.sip +%Include tqt/tqnamespace.sip + +%Include tqt/tqaccel.sip +%Include tqt/tqaction.sip +%Include tqt/tqapplication.sip +%Include tqt/tqassistantclient.sip +%Include tqt/tqbitmap.sip +%Include tqt/tqbrush.sip +%Include tqt/tqbutton.sip +%Include tqt/tqbuttongroup.sip +%Include tqt/tqbytearray.sip +%Include tqt/tqcdestyle.sip +%Include tqt/tqcheckbox.sip +%Include tqt/tqclipboard.sip +%Include tqt/tqcolor.sip +%Include tqt/tqcolordialog.sip +%Include tqt/tqcolorgroup.sip +%Include tqt/tqcombobox.sip +%Include tqt/tqcommonstyle.sip +%Include tqt/tqcstring.sip +%Include tqt/tqcursor.sip +%Include tqt/tqdatastream.sip +%Include tqt/tqdatetime.sip +%Include tqt/tqdatetimeedit.sip +%Include tqt/tqdesktopwidget.sip +%Include tqt/tqdial.sip +%Include tqt/tqdialog.sip +%Include tqt/tqdir.sip +%Include tqt/tqdockarea.sip +%Include tqt/tqdockwindow.sip +%Include tqt/tqdragobject.sip +%Include tqt/tqdrawutil.sip +%Include tqt/tqdropsite.sip +%Include tqt/tqerrormessage.sip +%Include tqt/tqevent.sip +%Include tqt/tqeventloop.sip +%Include tqt/tqfile.sip +%Include tqt/tqfiledialog.sip +%Include tqt/tqfileinfo.sip +%Include tqt/tqfont.sip +%Include tqt/tqfontdatabase.sip +%Include tqt/tqfontdialog.sip +%Include tqt/tqfontinfo.sip +%Include tqt/tqfontmetrics.sip +%Include tqt/tqframe.sip +%Include tqt/tqgrid.sip +%Include tqt/tqgridview.sip +%Include tqt/tqgroupbox.sip +%Include tqt/tqhbox.sip +%Include tqt/tqhbuttongroup.sip +%Include tqt/tqheader.sip +%Include tqt/tqhgroupbox.sip +%Include tqt/tqiconset.sip +%Include tqt/tqiconview.sip +%Include tqt/tqimage.sip +%Include tqt/tqinputdialog.sip +%Include tqt/tqinterlacestyle.sip +%Include tqt/tqiodevice.sip +%Include tqt/tqkeysequence.sip +%Include tqt/tqlabel.sip +%Include tqt/tqlayout.sip +%Include tqt/tqlcdnumber.sip +%Include tqt/tqlibrary.sip +%Include tqt/tqlineedit.sip +%Include tqt/tqlistbox.sip +%Include tqt/tqlistview.sip +%Include tqt/tqlocale.sip +%Include tqt/tqmainwindow.sip +%Include tqt/tqmemarray.sip +%Include tqt/tqmenubar.sip +%Include tqt/tqmenudata.sip +%Include tqt/tqmessagebox.sip +%Include tqt/tqmetaobject.sip +%Include tqt/tqmime.sip +%Include tqt/tqmotifplusstyle.sip +%Include tqt/tqmotifstyle.sip +%Include tqt/tqmovie.sip +%Include tqt/tqmultilinedit.sip +%Include tqt/tqmutex.sip +%Include tqt/tqnetworkprotocol.sip +%Include tqt/tqobject.sip +%Include tqt/tqobjectcleanuphandler.sip +%Include tqt/tqobjectlist.sip +%Include tqt/tqpaintdevicemetrics.sip +%Include tqt/tqpaintdevice.sip +%Include tqt/tqpainter.sip +%Include tqt/tqpalette.sip +%Include tqt/tqpixmap.sip +%Include tqt/tqpixmapcache.sip +%Include tqt/tqpair.sip +%Include tqt/tqpen.sip +%Include tqt/tqpicture.sip +%Include tqt/tqplatinumstyle.sip +%Include tqt/tqpoint.sip +%Include tqt/tqpointarray.sip +%Include tqt/tqpopupmenu.sip +%Include tqt/tqprintdialog.sip +%Include tqt/tqprinter.sip +%Include tqt/tqprocess.sip +%Include tqt/tqprogressbar.sip +%Include tqt/tqprogressdialog.sip +%Include tqt/tqptrlist.sip +%Include tqt/tqpushbutton.sip +%Include tqt/tqradiobutton.sip +%Include tqt/tqrangecontrol.sip +%Include tqt/tqrect.sip +%Include tqt/tqregexp.sip +%Include tqt/tqregion.sip +%Include tqt/tqscrollbar.sip +%Include tqt/tqscrollview.sip +%Include tqt/tqsemaphore.sip +%Include tqt/tqsemimodal.sip +%Include tqt/tqsessionmanager.sip +%Include tqt/tqsettings.sip +%Include tqt/tqsgistyle.sip +%Include tqt/tqsignalmapper.sip +%Include tqt/tqsimplerichtext.sip +%Include tqt/tqsize.sip +%Include tqt/tqsizegrip.sip +%Include tqt/tqsizepolicy.sip +%Include tqt/tqslider.sip +%Include tqt/tqsocketnotifier.sip +%Include tqt/tqsound.sip +%Include tqt/tqspinbox.sip +%Include tqt/tqsplashscreen.sip +%Include tqt/tqsplitter.sip +%Include tqt/tqstatusbar.sip +%Include tqt/tqstring.sip +%Include tqt/tqstringlist.sip +%Include tqt/tqstrlist.sip +%Include tqt/tqstyle.sip +%Include tqt/tqstylesheet.sip +%Include tqt/tqsyntaxhighlighter.sip +%Include tqt/tqtabbar.sip +%Include tqt/tqtabdialog.sip +%Include tqt/tqtabwidget.sip +%Include tqt/tqtextbrowser.sip +%Include tqt/tqtextcodec.sip +%Include tqt/tqtextedit.sip +%Include tqt/tqtextstream.sip +%Include tqt/tqtextview.sip +%Include tqt/tqthread.sip +%Include tqt/tqtimer.sip +%Include tqt/tqtoolbar.sip +%Include tqt/tqtoolbox.sip +%Include tqt/tqtoolbutton.sip +%Include tqt/tqtooltip.sip +%Include tqt/tqtranslator.sip +%Include tqt/tqurl.sip +%Include tqt/tqurlinfo.sip +%Include tqt/tqurloperator.sip +%Include tqt/tquuid.sip +%Include tqt/tqvalidator.sip +%Include tqt/tqvaluelist.sip +%Include tqt/tqvariant.sip +%Include tqt/tqvbox.sip +%Include tqt/tqvbuttongroup.sip +%Include tqt/tqvgroupbox.sip +%Include tqt/tqwaitcondition.sip +%Include tqt/tqwhatsthis.sip +%Include tqt/tqwidget.sip +%Include tqt/tqwidgetlist.sip +%Include tqt/tqwidgetstack.sip +%Include tqt/tqwindowsstyle.sip +%Include tqt/tqwindowsxpstyle.sip +%Include tqt/tqwizard.sip +%Include tqt/tqwmatrix.sip +%Include tqt/tqworkspace.sip %ExportedDoc </Sect1> @@ -1456,12 +1456,12 @@ Classes that are not mentioned have not yet been implemented. %ExportedDoc -<Sect1><Title><Literal>qtaxcontainer</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtaxcontainer</Literal> Module Reference</Title> %End -%Include qtaxcontainer/qaxbase.sip -%Include qtaxcontainer/qaxobject.sip -%Include qtaxcontainer/qaxwidget.sip +%Include tqtaxcontainer/tqaxbase.sip +%Include tqtaxcontainer/tqaxobject.sip +%Include tqtaxcontainer/tqaxwidget.sip %ExportedDoc </Sect1> @@ -1469,10 +1469,10 @@ Classes that are not mentioned have not yet been implemented. %ExportedDoc -<Sect1><Title><Literal>qtcanvas</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtcanvas</Literal> Module Reference</Title> %End -%Include qtcanvas/qcanvas.sip +%Include tqtcanvas/tqcanvas.sip %ExportedDoc </Sect1> @@ -1480,7 +1480,7 @@ Classes that are not mentioned have not yet been implemented. %ExportedDoc -<Sect1><Title><Literal>qtext</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtext</Literal> Module Reference</Title> <Sect2><Title>TQextScintilla</Title> <FuncSynopsis> @@ -1677,11 +1677,11 @@ This takes no parameters and returns a tuple of the values returned by the %ExportedDoc -<Sect1><Title><Literal>qtgl</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtgl</Literal> Module Reference</Title> %End -%Include qtgl/qgl.sip -%Include qtgl/qglcolormap.sip +%Include tqtgl/tqgl.sip +%Include tqtgl/tqglcolormap.sip %ExportedDoc </Sect1> @@ -1689,18 +1689,18 @@ This takes no parameters and returns a tuple of the values returned by the %ExportedDoc -<Sect1><Title><Literal>qtnetwork</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtnetwork</Literal> Module Reference</Title> %End -%Include qtnetwork/qdns.sip -%Include qtnetwork/qftp.sip -%Include qtnetwork/qhostaddress.sip -%Include qtnetwork/qhttp.sip -%Include qtnetwork/qlocalfs.sip -%Include qtnetwork/qnetwork.sip -%Include qtnetwork/qserversocket.sip -%Include qtnetwork/qsocket.sip -%Include qtnetwork/qsocketdevice.sip +%Include tqtnetwork/tqdns.sip +%Include tqtnetwork/tqftp.sip +%Include tqtnetwork/tqhostaddress.sip +%Include tqtnetwork/tqhttp.sip +%Include tqtnetwork/tqlocalfs.sip +%Include tqtnetwork/tqnetwork.sip +%Include tqtnetwork/tqserversocket.sip +%Include tqtnetwork/tqsocket.sip +%Include tqtnetwork/tqsocketdevice.sip %ExportedDoc </Sect1> @@ -1708,7 +1708,7 @@ This takes no parameters and returns a tuple of the values returned by the %ExportedDoc -<Sect1><Title><Literal>qtpe</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtpe</Literal> Module Reference</Title> <Sect2><Title>TQPEApplication</Title> <FuncSynopsis> @@ -1850,27 +1850,27 @@ Not implemented. %ExportedDoc -<Sect1><Title><Literal>qtsql</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtsql</Literal> Module Reference</Title> %End -%Include qtsql/qdatabrowser.sip -%Include qtsql/qdatatable.sip -%Include qtsql/qdataview.sip -%Include qtsql/qeditorfactory.sip -%Include qtsql/qsql.sip -%Include qtsql/qsqlcursor.sip -%Include qtsql/qsqldatabase.sip -%Include qtsql/qsqldriver.sip -%Include qtsql/qsqleditorfactory.sip -%Include qtsql/qsqlerror.sip -%Include qtsql/qsqlfield.sip -%Include qtsql/qsqlform.sip -%Include qtsql/qsqlindex.sip -%Include qtsql/qsqlpropertymap.sip -%Include qtsql/qsqlquery.sip -%Include qtsql/qsqlrecord.sip -%Include qtsql/qsqlresult.sip -%Include qtsql/qsqlselectcursor.sip +%Include tqtsql/tqdatabrowser.sip +%Include tqtsql/tqdatatable.sip +%Include tqtsql/tqdataview.sip +%Include tqtsql/tqeditorfactory.sip +%Include tqtsql/tqsql.sip +%Include tqtsql/tqsqlcursor.sip +%Include tqtsql/tqsqldatabase.sip +%Include tqtsql/tqsqldriver.sip +%Include tqtsql/tqsqleditorfactory.sip +%Include tqtsql/tqsqlerror.sip +%Include tqtsql/tqsqlfield.sip +%Include tqtsql/tqsqlform.sip +%Include tqtsql/tqsqlindex.sip +%Include tqtsql/tqsqlpropertymap.sip +%Include tqtsql/tqsqlquery.sip +%Include tqtsql/tqsqlrecord.sip +%Include tqtsql/tqsqlresult.sip +%Include tqtsql/tqsqlselectcursor.sip %ExportedDoc </Sect1> @@ -1878,10 +1878,10 @@ Not implemented. %ExportedDoc -<Sect1><Title><Literal>qttable</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqttable</Literal> Module Reference</Title> %End -%Include qttable/qtable.sip +%Include tqttable/tqtable.sip %ExportedDoc </Sect1> @@ -1889,10 +1889,10 @@ Not implemented. %ExportedDoc -<Sect1><Title><Literal>qtui</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtui</Literal> Module Reference</Title> %End -%Include qtui/qwidgetfactory.sip +%Include tqtui/tqwidgetfactory.sip %ExportedDoc </Sect1> @@ -1900,10 +1900,10 @@ Not implemented. %ExportedDoc -<Sect1><Title><Literal>qtxml</Literal> Module Reference</Title> +<Sect1><Title><Literal>tqtxml</Literal> Module Reference</Title> %End -%Include qtxml/qdom.sip +%Include tqtxml/tqdom.sip %ExportedDoc </Sect1> diff --git a/examples/SQL/README b/examples/SQL/README index 862e608..823937f 100644 --- a/examples/SQL/README +++ b/examples/SQL/README @@ -2,11 +2,11 @@ This directory contains some translated sql examples from TQt 3.x. runform1.py, form1.ui: - A simple designer generated TQDataTable. Run "pyuic form1.ui -o form1.py". + A simple designer generated TQDataTable. Run "pytquic form1.ui -o form1.py". runform2.py, form2.ui: - A simple designer generated TQDataBrowser. Run "pyuic form2.ui -o form2.py". + A simple designer generated TQDataBrowser. Run "pytquic form2.ui -o form2.py". sqlcustom1.py: diff --git a/examples/SQL/connect.ui.h b/examples/SQL/connect.ui.h index 1e9f544..fd37494 100644 --- a/examples/SQL/connect.ui.h +++ b/examples/SQL/connect.ui.h @@ -9,7 +9,7 @@ void ConnectDialog::init() { -from PyTQt.qtsql import TQSqlDatabase +from PyTQt.tqtsql import TQSqlDatabase #qDebug("ConnectDialog init") self.comboDriver.clear() self.comboDriver.insertStringList(TQSqlDatabase.drivers()) diff --git a/examples/SQL/dbconnect.py b/examples/SQL/dbconnect.py index 2fb2b08..75887e6 100755 --- a/examples/SQL/dbconnect.py +++ b/examples/SQL/dbconnect.py @@ -1,8 +1,8 @@ #!/usr/bin/env python import sys -from PyTQt.qt import * -from PyTQt.qtsql import * +from PyTQt.tqt import * +from PyTQt.tqtsql import * from frmconnect import frmConnect from dbpar import * @@ -12,7 +12,7 @@ FALSE = 0 def createConnection(): driver = DB_DRIVER - # all qt examples use TQSqlDatabase::addDatabase, but + # all tqt examples use TQSqlDatabase::addDatabase, but # this never returns NULL in my experience drivers = list(map(str, TQSqlDatabase.drivers())) if driver in drivers: diff --git a/examples/SQL/frmconnect.py b/examples/SQL/frmconnect.py index 0fec45f..430f5b2 100644 --- a/examples/SQL/frmconnect.py +++ b/examples/SQL/frmconnect.py @@ -1,12 +1,12 @@ # Form implementation generated from reading ui file 'frmconnect.ui' # # Created: Sam Jul 6 12:47:10 2002 -# by: The PyTQt User Interface Compiler (pyuic) +# by: The PyTQt User Interface Compiler (pytquic) # # WARNING! All changes made in this file will be lost! -from PyTQt.qt import * +from PyTQt.tqt import * class frmConnect(TQDialog): diff --git a/examples/SQL/runform1.py b/examples/SQL/runform1.py index 0724547..8ef4908 100755 --- a/examples/SQL/runform1.py +++ b/examples/SQL/runform1.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys -from PyTQt.qt import * +from PyTQt.tqt import * from form1 import Form1 from dbconnect import createConnection diff --git a/examples/SQL/runform2.py b/examples/SQL/runform2.py index 5644475..112d04f 100755 --- a/examples/SQL/runform2.py +++ b/examples/SQL/runform2.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys -from PyTQt.qt import * +from PyTQt.tqt import * from form2 import Form2 from dbconnect import createConnection diff --git a/examples/SQL/runsqlex.py b/examples/SQL/runsqlex.py index ccdec9d..4f35e52 100755 --- a/examples/SQL/runsqlex.py +++ b/examples/SQL/runsqlex.py @@ -1,8 +1,8 @@ #!/usr/bin/env python import sys -from PyTQt.qt import * -from PyTQt.qtsql import * +from PyTQt.tqt import * +from PyTQt.tqtsql import * from sqlex import SqlEx from connect import ConnectDialog diff --git a/examples/SQL/sqlcustom1.py b/examples/SQL/sqlcustom1.py index 1ea3471..0c37911 100755 --- a/examples/SQL/sqlcustom1.py +++ b/examples/SQL/sqlcustom1.py @@ -11,8 +11,8 @@ #*****************************************************************************/ import sys -from PyTQt.qt import * -from PyTQt.qtsql import * +from PyTQt.tqt import * +from PyTQt.tqtsql import * from dbconnect import createConnection diff --git a/examples/SQL/sqlsubclass5.py b/examples/SQL/sqlsubclass5.py index a288099..d627a6c 100755 --- a/examples/SQL/sqlsubclass5.py +++ b/examples/SQL/sqlsubclass5.py @@ -11,8 +11,8 @@ #*****************************************************************************/ import sys -from PyTQt.qt import * -from PyTQt.qtsql import * +from PyTQt.tqt import * +from PyTQt.tqtsql import * from dbconnect import createConnection diff --git a/examples/SQL/sqltable4.py b/examples/SQL/sqltable4.py index 75eddad..13bbe3f 100755 --- a/examples/SQL/sqltable4.py +++ b/examples/SQL/sqltable4.py @@ -11,8 +11,8 @@ #*****************************************************************************/ import sys -from PyTQt.qt import * -from PyTQt.qtsql import * +from PyTQt.tqt import * +from PyTQt.tqtsql import * from dbconnect import createConnection diff --git a/examples/aclock.py b/examples/aclock.py index 23ef169..ca81eb3 100755 --- a/examples/aclock.py +++ b/examples/aclock.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys -from PyTQt.qt import * +from PyTQt.tqt import * def TQMIN(x, y): if y > x: return y @@ -19,7 +19,7 @@ class AnalogClock(TQWidget): if new_time.minute() != self.time.minute(): self.update() - def paintEvent(self, qe): + def paintEvent(self, tqe): if not self.isVisible(): return self.time = TQTime.currentTime() diff --git a/examples/addressbook.py b/examples/addressbook.py index 760a164..22683d4 100755 --- a/examples/addressbook.py +++ b/examples/addressbook.py @@ -4,7 +4,7 @@ import sys, string -from PyTQt.qt import * +from PyTQt.tqt import * TRUE = 1 FALSE = 0 diff --git a/examples/application.py b/examples/application.py index 30747e0..6e8a638 100755 --- a/examples/application.py +++ b/examples/application.py @@ -4,7 +4,7 @@ import sys, string -from PyTQt.qt import * +from PyTQt.tqt import * fileopen = [ diff --git a/examples/biff.py b/examples/biff.py index 0fdc9f6..2d41184 100755 --- a/examples/biff.py +++ b/examples/biff.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import os, sys, string -from PyTQt.qt import * +from PyTQt.tqt import * if TQT_VERSION < 0x030100: diff --git a/examples/bigtable.py b/examples/bigtable.py index 85a0349..e3c47a9 100755 --- a/examples/bigtable.py +++ b/examples/bigtable.py @@ -12,8 +12,8 @@ import sys import os -from PyTQt.qt import * -from PyTQt.qttable import * +from PyTQt.tqt import * +from PyTQt.tqttable import * TRUE = 1 FALSE = 0 diff --git a/examples/buttongroups.py b/examples/buttongroups.py index 1fe595a..7b780c2 100755 --- a/examples/buttongroups.py +++ b/examples/buttongroups.py @@ -10,7 +10,7 @@ #*****************************************************************************/ import sys -from PyTQt.qt import * +from PyTQt.tqt import * TRUE = 1 FALSE = 0 @@ -118,7 +118,7 @@ a = TQApplication( sys.argv ) buttonsgroups = ButtonsGroups() buttonsgroups.resize( 500, 250 ) -buttonsgroups.setCaption( "PyQT Example - Buttons and Groups" ) +buttonsgroups.setCaption( "PyTQt Example - Buttons and Groups" ) a.setMainWidget( buttonsgroups ) buttonsgroups.show() diff --git a/examples/canvas/canvas.py b/examples/canvas/canvas.py index 3039cdb..50797e5 100755 --- a/examples/canvas/canvas.py +++ b/examples/canvas/canvas.py @@ -1,8 +1,8 @@ #!/usr/bin/env python import sys -from PyTQt.qt import * -from PyTQt.qtcanvas import * +from PyTQt.tqt import * +from PyTQt.tqtcanvas import * import random @@ -124,7 +124,7 @@ class BouncyLogo(TQCanvasSprite): # Make sure the logo exists. global bouncy_logo if bouncy_logo is None: - bouncy_logo=TQCanvasPixmapArray("qt-trans.xpm") + bouncy_logo=TQCanvasPixmapArray("tqt-trans.xpm") TQCanvasSprite.__init__(self,None,canvas) self.setSequence(bouncy_logo) @@ -587,11 +587,11 @@ if __name__=='__main__': if len(sys.argv) > 2: logo_fn = TQString(sys.argv[2]) else: - logo_fn=TQString("qtlogo.png") + logo_fn=TQString("tqtlogo.png") canvas=TQCanvas(800,600) canvas.setAdvancePeriod(30) - m=Main(canvas,None,"pyqt canvas example") + m=Main(canvas,None,"pytqt canvas example") m.resize(m.sizeHint()) tqApp.setMainWidget(m) diff --git a/examples/canvas/qt-trans.xpm b/examples/canvas/tqt-trans.xpm index 225f684..225f684 100644 --- a/examples/canvas/qt-trans.xpm +++ b/examples/canvas/tqt-trans.xpm diff --git a/examples/canvas/qtlogo.png b/examples/canvas/tqtlogo.png Binary files differindex 96202de..96202de 100644 --- a/examples/canvas/qtlogo.png +++ b/examples/canvas/tqtlogo.png diff --git a/examples/checklists.py b/examples/checklists.py index 5249bb0..52b93e8 100755 --- a/examples/checklists.py +++ b/examples/checklists.py @@ -3,7 +3,7 @@ # Copyright (C) 2002 Oleksandr Yakovlyev (yshurik) <yshurik@thekompany.com> import sys -from PyTQt.qt import * +from PyTQt.tqt import * TRUE = 1 FALSE = 0 diff --git a/examples/cursor.py b/examples/cursor.py index f6ef6ee..f4a0ca4 100755 --- a/examples/cursor.py +++ b/examples/cursor.py @@ -10,7 +10,7 @@ ***************************************************************************""" import sys -from PyTQt.qt import * +from PyTQt.tqt import * # cb_bits and cm_bits were generated by X bitmap program. diff --git a/examples/dclock.py b/examples/dclock.py index 9be19eb..08fcafe 100755 --- a/examples/dclock.py +++ b/examples/dclock.py @@ -4,7 +4,7 @@ import sys, string -from PyTQt.qt import * +from PyTQt.tqt import * class DigitalClock(TQLCDNumber): diff --git a/examples/desktop.py b/examples/desktop.py index 909ab91..f695835 100755 --- a/examples/desktop.py +++ b/examples/desktop.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys -from PyTQt.qt import * +from PyTQt.tqt import * seed = 0.353535353535 KINDA_RAND_MAX = 32767 diff --git a/examples/dirview.py b/examples/dirview.py index d3c8b0e..a147f3c 100755 --- a/examples/dirview.py +++ b/examples/dirview.py @@ -12,7 +12,7 @@ ***************************************************************************""" import sys -from PyTQt.qt import * +from PyTQt.tqt import * folder_closed_xpm = [ "16 16 9 1", diff --git a/examples/dragdrop.py b/examples/dragdrop.py index ae577be..439e92d 100755 --- a/examples/dragdrop.py +++ b/examples/dragdrop.py @@ -3,7 +3,7 @@ # Ported to PyTQt by Issac Trotts on Jan 1, 2002 import sys -from PyTQt.qt import * +from PyTQt.tqt import * import dropsite, secret diff --git a/examples/drawlines.py b/examples/drawlines.py index 75da388..8e1ac82 100755 --- a/examples/drawlines.py +++ b/examples/drawlines.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys, random -from PyTQt.qt import * +from PyTQt.tqt import * TRUE = 1 FALSE = 0 diff --git a/examples/dropsite.py b/examples/dropsite.py index ee8fcfb..162081e 100644 --- a/examples/dropsite.py +++ b/examples/dropsite.py @@ -1,7 +1,7 @@ # This is part of the dragdrop example. -from PyTQt.qt import * +from PyTQt.tqt import * import secret @@ -23,7 +23,7 @@ class DropSite(TQLabel): drobj = TQTextDrag( self.text(), self ) drobj.dragCopy() - def backgroundColorChange( self, qcolor ): + def backgroundColorChange( self, tqcolor ): # Reduce flicker by using repaint() rather than update() self.repaint() diff --git a/examples/fontdisplayer.py b/examples/fontdisplayer.py index bbf53a5..381b4d0 100755 --- a/examples/fontdisplayer.py +++ b/examples/fontdisplayer.py @@ -11,7 +11,7 @@ ***************************************************************************""" import sys -from PyTQt.qt import * +from PyTQt.tqt import * class FontRowTable( TQFrame ): def __init__( self, parent=None, name=None ): diff --git a/examples/fonts.py b/examples/fonts.py index 770778c..7cb3cd1 100755 --- a/examples/fonts.py +++ b/examples/fonts.py @@ -11,7 +11,7 @@ ***************************************************************************""" import sys -from PyTQt.qt import * +from PyTQt.tqt import * class Viewer( TQWidget ): def __init__( self ): diff --git a/examples/gears.py b/examples/gears.py index 71d81c0..e7bef18 100755 --- a/examples/gears.py +++ b/examples/gears.py @@ -3,8 +3,8 @@ import sys import math -from PyTQt.qt import * -from PyTQt.qtgl import * +from PyTQt.tqt import * +from PyTQt.tqtgl import * from OpenGL.GL import * def gear(inner_radius,outer_radius,width,teeth,tooth_depth): diff --git a/examples/i18n/i18n.py b/examples/i18n/i18n.py index 03d7c0c..ba64098 100755 --- a/examples/i18n/i18n.py +++ b/examples/i18n/i18n.py @@ -5,7 +5,7 @@ from whrandom import randint import sys -from PyTQt.qt import * +from PyTQt.tqt import * from mywidget import MyWidget diff --git a/examples/i18n/mywidget.py b/examples/i18n/mywidget.py index 760f4f8..cf5abea 100644 --- a/examples/i18n/mywidget.py +++ b/examples/i18n/mywidget.py @@ -1,6 +1,6 @@ # Copyright (c) 2002 Detlev Offenbach <detlev@die-offenbachs.de> -from PyTQt.qt import * +from PyTQt.tqt import * class MyWidget(TQMainWindow): diff --git a/examples/lineedits.py b/examples/lineedits.py index b3248fe..fe566ba 100755 --- a/examples/lineedits.py +++ b/examples/lineedits.py @@ -11,7 +11,7 @@ #*****************************************************************************/ import sys -from PyTQt.qt import * +from PyTQt.tqt import * TRUE = 1 FALSE = 0 diff --git a/examples/listbox.py b/examples/listbox.py index af142eb..d5bf2e1 100755 --- a/examples/listbox.py +++ b/examples/listbox.py @@ -11,7 +11,7 @@ ***************************************************************************""" import sys -from PyTQt.qt import * +from PyTQt.tqt import * FALSE = 0 TRUE = 1 diff --git a/examples/listboxcombo.py b/examples/listboxcombo.py index c997dab..b6b546e 100755 --- a/examples/listboxcombo.py +++ b/examples/listboxcombo.py @@ -11,7 +11,7 @@ ***************************************************************************""" import sys -from PyTQt.qt import * +from PyTQt.tqt import * FALSE = 0 TRUE = 1 @@ -34,7 +34,7 @@ class ListBoxCombo( TQVBox ): self.lb1.setSelectionMode( TQListBox.Multi ) # ...insert a pixmap item... - xpm = TQPixmap( "qtlogo.png" ) + xpm = TQPixmap( "tqtlogo.png" ) txt = TQString() TQListBoxPixmap( self.lb1, xpm, txt ) diff --git a/examples/mdi.py b/examples/mdi.py index daf750b..591a4eb 100755 --- a/examples/mdi.py +++ b/examples/mdi.py @@ -4,7 +4,7 @@ import sys, string -from PyTQt.qt import * +from PyTQt.tqt import * fileopen = [ diff --git a/examples/menu.py b/examples/menu.py index ab9146e..f363195 100755 --- a/examples/menu.py +++ b/examples/menu.py @@ -11,7 +11,7 @@ #*****************************************************************************/ import sys, string -from PyTQt.qt import * +from PyTQt.tqt import * TRUE = 1 FALSE = 0 diff --git a/examples/progress.py b/examples/progress.py index e38e737..e2344cc 100755 --- a/examples/progress.py +++ b/examples/progress.py @@ -13,7 +13,7 @@ #*****************************************************************************/ import sys -from PyTQt.qt import * +from PyTQt.tqt import * from random import randint class AnimatedThingy(TQLabel): diff --git a/examples/progressbar.py b/examples/progressbar.py index dbb6e4e..b507d08 100755 --- a/examples/progressbar.py +++ b/examples/progressbar.py @@ -12,7 +12,7 @@ #import pdb import sys -from PyTQt.qt import * +from PyTQt.tqt import * FALSE = 0 TRUE = 1 diff --git a/examples/rangecontrols.py b/examples/rangecontrols.py index f59d7fc..e7983e2 100755 --- a/examples/rangecontrols.py +++ b/examples/rangecontrols.py @@ -11,7 +11,7 @@ ***************************************************************************""" import sys -from PyTQt.qt import * +from PyTQt.tqt import * INT_MAX = sys.maxsize diff --git a/examples/richtext.py b/examples/richtext.py index 3ae6e81..14728ab 100755 --- a/examples/richtext.py +++ b/examples/richtext.py @@ -11,7 +11,7 @@ ***************************************************************************""" import sys -from PyTQt.qt import * +from PyTQt.tqt import * sayings = [ "<b>Saying 1:</b><br>" diff --git a/examples/secret.py b/examples/secret.py index f2f5a64..9d3f2d4 100644 --- a/examples/secret.py +++ b/examples/secret.py @@ -1,7 +1,7 @@ # This is part of the dragdrop example. -from PyTQt.qt import * +from PyTQt.tqt import * def canDecode(e): diff --git a/examples/semaphore.py b/examples/semaphore.py index ecf1209..99b9bc6 100755 --- a/examples/semaphore.py +++ b/examples/semaphore.py @@ -7,12 +7,12 @@ import sys # Check if thread support was enabled. try: - from PyTQt.qt import TQThread + from PyTQt.tqt import TQThread except: print("Thread support not enabled") sys.exit(1) -from PyTQt.qt import * +from PyTQt.tqt import * # The semaphore instances. diff --git a/examples/smalltable.py b/examples/smalltable.py index ccee6c8..e3521e1 100755 --- a/examples/smalltable.py +++ b/examples/smalltable.py @@ -12,8 +12,8 @@ import sys import os -from PyTQt.qt import * -from PyTQt.qttable import * +from PyTQt.tqt import * +from PyTQt.tqttable import * TRUE = 1 FALSE = 0 diff --git a/examples/splitter.py b/examples/splitter.py index 534e50e..935cf66 100755 --- a/examples/splitter.py +++ b/examples/splitter.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys -from PyTQt.qt import * +from PyTQt.tqt import * class Test(TQWidget): def __init__(self, parent=None, name='Test', f=0): diff --git a/examples/tabdialog.py b/examples/tabdialog.py index 2fcc050..05365ff 100755 --- a/examples/tabdialog.py +++ b/examples/tabdialog.py @@ -11,7 +11,7 @@ ***************************************************************************""" import sys -from PyTQt.qt import * +from PyTQt.tqt import * class TabDialog( TQTabDialog ): def __init__( self, parent=None, name=None, filename=None ): diff --git a/examples/tablestatistics.py b/examples/tablestatistics.py index 1288ff0..dd3058d 100755 --- a/examples/tablestatistics.py +++ b/examples/tablestatistics.py @@ -12,8 +12,8 @@ import sys import os -from PyTQt.qt import * -from PyTQt.qttable import * +from PyTQt.tqt import * +from PyTQt.tqttable import * TRUE = 1 FALSE = 0 @@ -52,11 +52,11 @@ class Table(TQTable): def initTable(self): # read all the TQt source and header files into a list all = [] - qtdir = os.getenv("TQTDIR") - if qtdir is None: + tqtdir = os.getenv("TQTDIR") + if tqtdir is None: raise Exception("The TQTDIR environment variable has not been set.") for i in dirs: - dir = TQDir(os.path.join(qtdir, "src", i)) + dir = TQDir(os.path.join(tqtdir, "src", i)) lst = TQStringList(dir.entryList("*.cpp; *.h")) for f in lst: if f.contains("moc"): @@ -71,7 +71,7 @@ class Table(TQTable): # insert the data into the table for it in all: self.setText(i, TB_FILE, it) - f = TQFile(os.path.join(qtdir, "src", str(it))) + f = TQFile(os.path.join(tqtdir, "src", str(it))) self.setText(i, TB_SIZE, str(f.size())) ci = ComboItem(self, TQTableItem.WhenCurrent) self.setItem(i, TB_FLAG, ci) diff --git a/examples/tooltip.py b/examples/tooltip.py index b55e0d6..ed36888 100755 --- a/examples/tooltip.py +++ b/examples/tooltip.py @@ -11,7 +11,7 @@ ***************************************************************************""" import sys -from PyTQt.qt import * +from PyTQt.tqt import * from random import random class DynamicTip( TQToolTip ): diff --git a/examples/qdir.py b/examples/tqdir.py index c08e9bc..8ed9d5e 100755 --- a/examples/qdir.py +++ b/examples/tqdir.py @@ -5,7 +5,7 @@ from __future__ import print_function import os import pickle -from PyTQt.qt import * +from PyTQt.tqt import * from dirview import Directory, DirectoryView bookmarks = [ diff --git a/examples/qmag.py b/examples/tqmag.py index bad7ecf..df4a85d 100755 --- a/examples/qmag.py +++ b/examples/tqmag.py @@ -11,7 +11,7 @@ #*****************************************************************************/ import sys -from PyTQt.qt import * +from PyTQt.tqt import * TRUE = 1 FALSE = 0 diff --git a/examples/qt.png b/examples/tqt.png Binary files differindex d63e16f..d63e16f 100644 --- a/examples/qt.png +++ b/examples/tqt.png diff --git a/examples/qtlogo.png b/examples/tqtlogo.png Binary files differindex c83c7b2..c83c7b2 100644 --- a/examples/qtlogo.png +++ b/examples/tqtlogo.png diff --git a/examples/tut1.py b/examples/tut1.py index c38a1ff..0f3d9a1 100755 --- a/examples/tut1.py +++ b/examples/tut1.py @@ -3,12 +3,12 @@ # TQt tutorial 1. import sys -from PyTQt import qt +from PyTQt import tqt -a = qt.TQApplication(sys.argv) +a = tqt.TQApplication(sys.argv) -hello = qt.TQPushButton("Hello world!", None) +hello = tqt.TQPushButton("Hello world!", None) hello.resize(100, 30) a.setMainWidget(hello) diff --git a/examples/tut10.py b/examples/tut10.py index 6b21e47..507c979 100755 --- a/examples/tut10.py +++ b/examples/tut10.py @@ -3,19 +3,19 @@ # TQt tutorial 10. import sys -from PyTQt import qt +from PyTQt import tqt -class LCDRange(qt.TQVBox): +class LCDRange(tqt.TQVBox): def __init__(self, parent=None, name=None): - qt.TQVBox.__init__(self, parent, name) + tqt.TQVBox.__init__(self, parent, name) - lcd = qt.TQLCDNumber(2, self, "lcd") - self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider") + lcd = tqt.TQLCDNumber(2, self, "lcd") + self.slider = tqt.TQSlider(tqt.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)")) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)")) + self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), lcd, tqt.SLOT("display(int)")) + self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), self, tqt.PYSIGNAL("valueChanged(int)")) self.setFocusProxy(self.slider) @@ -31,13 +31,13 @@ class LCDRange(qt.TQVBox): self.slider.setRange(minVal, maxVal) -class CannonField(qt.TQWidget): +class CannonField(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) self.ang = 45 self.f = 0 - self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200))) + self.setPalette(tqt.TQPalette(tqt.TQColor(250, 250, 200))) def angle(self): return self.ang @@ -51,7 +51,7 @@ class CannonField(qt.TQWidget): return self.ang = degrees self.repaint(self.cannonRect(), 0) - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) + self.emit(tqt.PYSIGNAL("angleChanged(int)"), (self.ang, )) def force(self): return self.f @@ -62,46 +62,46 @@ class CannonField(qt.TQWidget): if self.f == newton: return self.f = newton - self.emit(qt.PYSIGNAL("forceChanged(int)"), (self.f, )) + self.emit(tqt.PYSIGNAL("forceChanged(int)"), (self.f, )) def paintEvent(self, ev): if not ev.rect().intersects(self.cannonRect()): return cr = self.cannonRect() - pix = qt.TQPixmap(cr.size()) + pix = tqt.TQPixmap(cr.size()) pix.fill(self, cr.topLeft()) - p = qt.TQPainter(pix) + p = tqt.TQPainter(pix) - p.setBrush(qt.TQt.blue) - p.setPen(qt.TQt.NoPen) + p.setBrush(tqt.TQt.blue) + p.setPen(tqt.TQt.NoPen) p.translate(0, pix.height() - 1) - p.drawPie(qt.TQRect(-35, -35, 70, 70), 0, 90 * 16) + p.drawPie(tqt.TQRect(-35, -35, 70, 70), 0, 90 * 16) p.rotate(-self.ang) - p.drawRect(qt.TQRect(33, -4, 15, 8)) + p.drawRect(tqt.TQRect(33, -4, 15, 8)) p.end() p.begin(self) p.drawPixmap(cr.topLeft(), pix) def cannonRect(self): - r = qt.TQRect(0, 0, 50, 50) + r = tqt.TQRect(0, 0, 50, 50) r.moveBottomLeft(self.rect().bottomLeft()) return r def sizePolicy(self): - return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding) + return tqt.TQSizePolicy(tqt.TQSizePolicy.Expanding, tqt.TQSizePolicy.Expanding) -class MyWidget(qt.TQWidget): +class MyWidget(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) - quit = qt.TQPushButton("&Quit", self, "quit") - quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) + quit = tqt.TQPushButton("&Quit", self, "quit") + quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) + self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()")) self.angle = LCDRange(self, "angle") self.angle.setRange(5, 70) @@ -111,19 +111,19 @@ class MyWidget(qt.TQWidget): self.cannonField = CannonField(self, "cannonField") - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) + self.connect(self.angle, tqt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) + self.connect(self.cannonField, tqt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - self.connect(self.force, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) - self.connect(self.cannonField, qt.PYSIGNAL("forceChanged(int)"), self.force.setValue) + self.connect(self.force, tqt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) + self.connect(self.cannonField, tqt.PYSIGNAL("forceChanged(int)"), self.force.setValue) - grid = qt.TQGridLayout(self, 2, 2, 10) + grid = tqt.TQGridLayout(self, 2, 2, 10) grid.addWidget(quit, 0, 0) grid.addWidget(self.cannonField, 1, 1) grid.setColStretch(1, 10) - leftBox = qt.TQVBoxLayout() + leftBox = tqt.TQVBoxLayout() grid.addLayout(leftBox, 1, 0) @@ -135,8 +135,8 @@ class MyWidget(qt.TQWidget): self.angle.setFocus() -qt.TQApplication.setColorSpec(qt.TQApplication.CustomColor) -a = qt.TQApplication(sys.argv) +qt.TQApplication.setColorSpec(tqt.TQApplication.CustomColor) +a = tqt.TQApplication(sys.argv) w = MyWidget() w.setGeometry(100, 100, 500, 355) diff --git a/examples/tut11.py b/examples/tut11.py index f5a9930..a71ff03 100755 --- a/examples/tut11.py +++ b/examples/tut11.py @@ -4,19 +4,19 @@ import sys import math -from PyTQt import qt +from PyTQt import tqt -class LCDRange(qt.TQVBox): +class LCDRange(tqt.TQVBox): def __init__(self, parent=None, name=None): - qt.TQVBox.__init__(self, parent, name) + tqt.TQVBox.__init__(self, parent, name) - lcd = qt.TQLCDNumber(2, self, "lcd") - self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider") + lcd = tqt.TQLCDNumber(2, self, "lcd") + self.slider = tqt.TQSlider(tqt.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)")) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)")) + self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), lcd, tqt.SLOT("display(int)")) + self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), self, tqt.PYSIGNAL("valueChanged(int)")) self.setFocusProxy(self.slider) @@ -32,23 +32,23 @@ class LCDRange(qt.TQVBox): self.slider.setRange(minVal, maxVal) -class CannonField(qt.TQWidget): +class CannonField(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) self.ang = 45 self.f = 0 self.timerCount = 0 - self.autoShootTimer = qt.TQTimer(self, "movement handler") - self.connect(self.autoShootTimer, qt.SIGNAL("timeout()"), self.moveShot) + self.autoShootTimer = tqt.TQTimer(self, "movement handler") + self.connect(self.autoShootTimer, tqt.SIGNAL("timeout()"), self.moveShot) self.shoot_ang = 0 self.shoot_f = 0 - self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200))) + self.setPalette(tqt.TQPalette(tqt.TQColor(250, 250, 200))) - self.barrelRect = qt.TQRect(33, -4, 15, 8) + self.barrelRect = tqt.TQRect(33, -4, 15, 8) def angle(self): return self.ang @@ -62,7 +62,7 @@ class CannonField(qt.TQWidget): return self.ang = degrees self.repaint(self.cannonRect(), 0) - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) + self.emit(tqt.PYSIGNAL("angleChanged(int)"), (self.ang, )) def force(self): return self.f @@ -73,7 +73,7 @@ class CannonField(qt.TQWidget): if self.f == newton: return self.f = newton - self.emit(qt.PYSIGNAL("forceChanged(int)"), (self.f, )) + self.emit(tqt.PYSIGNAL("forceChanged(int)"), (self.f, )) def shoot(self): if self.autoShootTimer.isActive(): @@ -85,7 +85,7 @@ class CannonField(qt.TQWidget): self.autoShootTimer.start(50) def moveShot(self): - r = qt.TQRegion(self.shotRect()) + r = tqt.TQRegion(self.shotRect()) self.timerCount = self.timerCount + 1 shotR = self.shotRect() @@ -93,13 +93,13 @@ class CannonField(qt.TQWidget): if shotR.x() > self.width() or shotR.y() > self.height(): self.autoShootTimer.stop() else: - r = r.unite(qt.TQRegion(shotR)) + r = r.unite(tqt.TQRegion(shotR)) self.repaint(r) def paintEvent(self, ev): updateR = ev.rect() - p = qt.TQPainter(self) + p = tqt.TQPainter(self) if updateR.intersects(self.cannonRect()): self.paintCannon(p) @@ -108,21 +108,21 @@ class CannonField(qt.TQWidget): self.paintShot(p) def paintShot(self, p): - p.setBrush(qt.TQt.black) - p.setPen(qt.TQt.NoPen) + p.setBrush(tqt.TQt.black) + p.setPen(tqt.TQt.NoPen) p.drawRect(self.shotRect()) def paintCannon(self, p): cr = self.cannonRect() - pix = qt.TQPixmap(cr.size()) + pix = tqt.TQPixmap(cr.size()) pix.fill(self, cr.topLeft()) - tmp = qt.TQPainter(pix) - tmp.setBrush(qt.TQt.blue) - tmp.setPen(qt.TQt.NoPen) + tmp = tqt.TQPainter(pix) + tmp.setBrush(tqt.TQt.blue) + tmp.setPen(tqt.TQt.NoPen) tmp.translate(0, pix.height() - 1) - tmp.drawPie(qt.TQRect(-35, -35, 70, 70), 0, 90 * 16) + tmp.drawPie(tqt.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.TQWidget): p.drawPixmap(cr.topLeft(), pix) def cannonRect(self): - r = qt.TQRect(0, 0, 50, 50) + r = tqt.TQRect(0, 0, 50, 50) r.moveBottomLeft(self.rect().bottomLeft()) return r @@ -148,21 +148,21 @@ class CannonField(qt.TQWidget): x = x0 + velx * time y = y0 + vely * time - 0.5 * gravity * time * time - r = qt.TQRect(0, 0, 6, 6) - r.moveCenter(qt.TQPoint(int(x), int(self.height() - 1 - y))) + r = tqt.TQRect(0, 0, 6, 6) + r.moveCenter(tqt.TQPoint(int(x), int(self.height() - 1 - y))) return r def sizePolicy(self): - return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding) + return tqt.TQSizePolicy(tqt.TQSizePolicy.Expanding, tqt.TQSizePolicy.Expanding) -class MyWidget(qt.TQWidget): +class MyWidget(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) - quit = qt.TQPushButton("&Quit", self, "quit") - quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) + quit = tqt.TQPushButton("&Quit", self, "quit") + quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) + self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()")) self.angle = LCDRange(self, "angle") self.angle.setRange(5, 70) @@ -172,28 +172,28 @@ class MyWidget(qt.TQWidget): self.cannonField = CannonField(self, "cannonField") - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) + self.connect(self.angle, tqt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) + self.connect(self.cannonField, tqt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - self.connect(self.force, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) - self.connect(self.cannonField, qt.PYSIGNAL("forceChanged(int)"), self.force.setValue) + self.connect(self.force, tqt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) + self.connect(self.cannonField, tqt.PYSIGNAL("forceChanged(int)"), self.force.setValue) - shoot = qt.TQPushButton("&Shoot", self, "shoot") - shoot.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) - self.connect(shoot, qt.SIGNAL("clicked()"), self.cannonField.shoot) + shoot = tqt.TQPushButton("&Shoot", self, "shoot") + shoot.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) + self.connect(shoot, tqt.SIGNAL("clicked()"), self.cannonField.shoot) - grid = qt.TQGridLayout(self, 2, 2, 10) + grid = tqt.TQGridLayout(self, 2, 2, 10) grid.addWidget(quit, 0, 0) grid.addWidget(self.cannonField, 1, 1) grid.setColStretch(1, 10) - leftBox = qt.TQVBoxLayout() + leftBox = tqt.TQVBoxLayout() grid.addLayout(leftBox, 1, 0) leftBox.addWidget(self.angle) leftBox.addWidget(self.force) - topBox = qt.TQHBoxLayout() + topBox = tqt.TQHBoxLayout() grid.addLayout(topBox, 0, 1) topBox.addWidget(shoot) topBox.addStretch(1) @@ -203,8 +203,8 @@ class MyWidget(qt.TQWidget): self.angle.setFocus() -qt.TQApplication.setColorSpec(qt.TQApplication.CustomColor) -a = qt.TQApplication(sys.argv) +qt.TQApplication.setColorSpec(tqt.TQApplication.CustomColor) +a = tqt.TQApplication(sys.argv) w = MyWidget() w.setGeometry(100, 100, 500, 355) diff --git a/examples/tut12.py b/examples/tut12.py index d0370f8..f901b70 100755 --- a/examples/tut12.py +++ b/examples/tut12.py @@ -5,23 +5,23 @@ import sys import math import random -from PyTQt import qt +from PyTQt import tqt -class LCDRange(qt.TQVBox): +class LCDRange(tqt.TQVBox): def __init__(self, s=None, parent=None, name=None): - qt.TQVBox.__init__(self, parent, name) + tqt.TQVBox.__init__(self, parent, name) - lcd = qt.TQLCDNumber(2, self, "lcd") - self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider") + lcd = tqt.TQLCDNumber(2, self, "lcd") + self.slider = tqt.TQSlider(tqt.TQt.Horizontal, self, "slider") self.slider.setRange(0, 99) self.slider.setValue(0) - self.label = qt.TQLabel(" ", self, "label") - self.label.setAlignment(qt.TQt.AlignCenter) + self.label = tqt.TQLabel(" ", self, "label") + self.label.setAlignment(tqt.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.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), lcd, tqt.SLOT("display(int)")) + self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), self, tqt.PYSIGNAL("valueChanged(int)")) self.setFocusProxy(self.slider) @@ -47,24 +47,24 @@ class LCDRange(qt.TQVBox): self.label.setText(s) -class CannonField(qt.TQWidget): +class CannonField(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) self.ang = 45 self.f = 0 self.timerCount = 0 - self.autoShootTimer = qt.TQTimer(self, "movement handler") - self.connect(self.autoShootTimer, qt.SIGNAL("timeout()"), self.moveShot) + self.autoShootTimer = tqt.TQTimer(self, "movement handler") + self.connect(self.autoShootTimer, tqt.SIGNAL("timeout()"), self.moveShot) self.shoot_ang = 0 self.shoot_f = 0 - self.target = qt.TQPoint(0, 0) + self.target = tqt.TQPoint(0, 0) - self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200))) + self.setPalette(tqt.TQPalette(tqt.TQColor(250, 250, 200))) - self.barrelRect = qt.TQRect(33, -4, 15, 8) + self.barrelRect = tqt.TQRect(33, -4, 15, 8) self.newTarget() @@ -80,7 +80,7 @@ class CannonField(qt.TQWidget): return self.ang = degrees self.repaint(self.cannonRect(), 0) - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) + self.emit(tqt.PYSIGNAL("angleChanged(int)"), (self.ang, )) def force(self): return self.f @@ -91,7 +91,7 @@ class CannonField(qt.TQWidget): if self.f == newton: return self.f = newton - self.emit(qt.PYSIGNAL("forceChanged(int)"), (self.f, )) + self.emit(tqt.PYSIGNAL("forceChanged(int)"), (self.f, )) def shoot(self): if self.autoShootTimer.isActive(): @@ -103,30 +103,30 @@ class CannonField(qt.TQWidget): self.autoShootTimer.start(50) def newTarget(self): - 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()))) + r = tqt.TQRegion(self.targetRect()) + self.target = tqt.TQPoint(random.randint(200, 390), random.randint(10, 265)) + self.repaint(r.unite(tqt.TQRegion(self.targetRect()))) def moveShot(self): - r = qt.TQRegion(self.shotRect()) + r = tqt.TQRegion(self.shotRect()) self.timerCount = self.timerCount + 1 shotR = self.shotRect() if shotR.intersects(self.targetRect()): self.autoShootTimer.stop() - self.emit(qt.PYSIGNAL("hit()"), ()) + self.emit(tqt.PYSIGNAL("hit()"), ()) elif shotR.x() > self.width() or shotR.y() > self.height(): self.autoShootTimer.stop() - self.emit(qt.PYSIGNAL("missed()"), ()) + self.emit(tqt.PYSIGNAL("missed()"), ()) else: - r = r.unite(qt.TQRegion(shotR)) + r = r.unite(tqt.TQRegion(shotR)) self.repaint(r) def paintEvent(self, ev): updateR = ev.rect() - p = qt.TQPainter(self) + p = tqt.TQPainter(self) if updateR.intersects(self.cannonRect()): self.paintCannon(p) @@ -138,26 +138,26 @@ class CannonField(qt.TQWidget): self.paintTarget(p) def paintShot(self, p): - p.setBrush(qt.TQt.black) - p.setPen(qt.TQt.NoPen) + p.setBrush(tqt.TQt.black) + p.setPen(tqt.TQt.NoPen) p.drawRect(self.shotRect()) def paintTarget(self, p): - p.setBrush(qt.TQt.red) - p.setPen(qt.TQt.black) + p.setBrush(tqt.TQt.red) + p.setPen(tqt.TQt.black) p.drawRect(self.targetRect()) def paintCannon(self, p): cr = self.cannonRect() - pix = qt.TQPixmap(cr.size()) + pix = tqt.TQPixmap(cr.size()) pix.fill(self, cr.topLeft()) - tmp = qt.TQPainter(pix) - tmp.setBrush(qt.TQt.blue) - tmp.setPen(qt.TQt.NoPen) + tmp = tqt.TQPainter(pix) + tmp.setBrush(tqt.TQt.blue) + tmp.setPen(tqt.TQt.NoPen) tmp.translate(0, pix.height() - 1) - tmp.drawPie(qt.TQRect(-35, -35, 70, 70), 0, 90 * 16) + tmp.drawPie(tqt.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.TQWidget): p.drawPixmap(cr.topLeft(), pix) def cannonRect(self): - r = qt.TQRect(0, 0, 50, 50) + r = tqt.TQRect(0, 0, 50, 50) r.moveBottomLeft(self.rect().bottomLeft()) return r @@ -183,26 +183,26 @@ class CannonField(qt.TQWidget): x = x0 + velx * time y = y0 + vely * time - 0.5 * gravity * time * time - r = qt.TQRect(0, 0, 6, 6) - r.moveCenter(qt.TQPoint(int(x), int(self.height() - 1 - y))) + r = tqt.TQRect(0, 0, 6, 6) + r.moveCenter(tqt.TQPoint(int(x), int(self.height() - 1 - y))) return r def targetRect(self): - r = qt.TQRect(0, 0, 20, 10) - r.moveCenter(qt.TQPoint(self.target.x(), self.height() - 1 - self.target.y())) + r = tqt.TQRect(0, 0, 20, 10) + r.moveCenter(tqt.TQPoint(self.target.x(), self.height() - 1 - self.target.y())) return r def sizePolicy(self): - return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding) + return tqt.TQSizePolicy(tqt.TQSizePolicy.Expanding, tqt.TQSizePolicy.Expanding) -class MyWidget(qt.TQWidget): +class MyWidget(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) - quit = qt.TQPushButton("&Quit", self, "quit") - quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) + quit = tqt.TQPushButton("&Quit", self, "quit") + quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) + self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()")) self.angle = LCDRange("ANGLE", self, "angle") self.angle.setRange(5, 70) @@ -212,28 +212,28 @@ class MyWidget(qt.TQWidget): self.cannonField = CannonField(self, "cannonField") - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) + self.connect(self.angle, tqt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) + self.connect(self.cannonField, tqt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - self.connect(self.force, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) - self.connect(self.cannonField, qt.PYSIGNAL("forceChanged(int)"), self.force.setValue) + self.connect(self.force, tqt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) + self.connect(self.cannonField, tqt.PYSIGNAL("forceChanged(int)"), self.force.setValue) - shoot = qt.TQPushButton("&Shoot", self, "shoot") - shoot.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) - self.connect(shoot, qt.SIGNAL("clicked()"), self.cannonField.shoot) + shoot = tqt.TQPushButton("&Shoot", self, "shoot") + shoot.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) + self.connect(shoot, tqt.SIGNAL("clicked()"), self.cannonField.shoot) - grid = qt.TQGridLayout(self, 2, 2, 10) + grid = tqt.TQGridLayout(self, 2, 2, 10) grid.addWidget(quit, 0, 0) grid.addWidget(self.cannonField, 1, 1) grid.setColStretch(1, 10) - leftBox = qt.TQVBoxLayout() + leftBox = tqt.TQVBoxLayout() grid.addLayout(leftBox, 1, 0) leftBox.addWidget(self.angle) leftBox.addWidget(self.force) - topBox = qt.TQHBoxLayout() + topBox = tqt.TQHBoxLayout() grid.addLayout(topBox, 0, 1) topBox.addWidget(shoot) topBox.addStretch(1) @@ -243,8 +243,8 @@ class MyWidget(qt.TQWidget): self.angle.setFocus() -qt.TQApplication.setColorSpec(qt.TQApplication.CustomColor) -a = qt.TQApplication(sys.argv) +qt.TQApplication.setColorSpec(tqt.TQApplication.CustomColor) +a = tqt.TQApplication(sys.argv) w = MyWidget() w.setGeometry(100, 100, 500, 355) diff --git a/examples/tut13.py b/examples/tut13.py index b8b2d82..8bade61 100755 --- a/examples/tut13.py +++ b/examples/tut13.py @@ -5,27 +5,27 @@ import sys import math import random -from PyTQt import qt +from PyTQt import tqt -class LCDRange(qt.TQWidget): +class LCDRange(tqt.TQWidget): def __init__(self, s=None, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) - lcd = qt.TQLCDNumber(2, self, "lcd") - self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider") + lcd = tqt.TQLCDNumber(2, self, "lcd") + self.slider = tqt.TQSlider(tqt.TQt.Horizontal, self, "slider") self.slider.setRange(0, 99) self.slider.setValue(0) - self.label = qt.TQLabel(" ", self, "label") - self.label.setAlignment(qt.TQt.AlignCenter) + self.label = tqt.TQLabel(" ", self, "label") + self.label.setAlignment(tqt.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.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), lcd, tqt.SLOT("display(int)")) + self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), self, tqt.PYSIGNAL("valueChanged(int)")) self.setFocusProxy(self.slider) - l = qt.TQVBoxLayout(self) + l = tqt.TQVBoxLayout(self) l.addWidget(lcd, 1) l.addWidget(self.slider) l.addWidget(self.label) @@ -52,25 +52,25 @@ class LCDRange(qt.TQWidget): self.label.setText(s) -class CannonField(qt.TQWidget): +class CannonField(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) self.ang = 45 self.f = 0 self.timerCount = 0 - self.autoShootTimer = qt.TQTimer(self, "movement handler") - self.connect(self.autoShootTimer, qt.SIGNAL("timeout()"), self.moveShot) + self.autoShootTimer = tqt.TQTimer(self, "movement handler") + self.connect(self.autoShootTimer, tqt.SIGNAL("timeout()"), self.moveShot) self.shoot_ang = 0 self.shoot_f = 0 - self.target = qt.TQPoint(0, 0) + self.target = tqt.TQPoint(0, 0) self.gameEnded = 0 - self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200))) + self.setPalette(tqt.TQPalette(tqt.TQColor(250, 250, 200))) - self.barrelRect = qt.TQRect(33, -4, 15, 8) + self.barrelRect = tqt.TQRect(33, -4, 15, 8) self.newTarget() @@ -86,7 +86,7 @@ class CannonField(qt.TQWidget): return self.ang = degrees self.repaint(self.cannonRect(), 0) - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) + self.emit(tqt.PYSIGNAL("angleChanged(int)"), (self.ang, )) def force(self): return self.f @@ -97,7 +97,7 @@ class CannonField(qt.TQWidget): if self.f == newton: return self.f = newton - self.emit(qt.PYSIGNAL("forceChanged(int)"), (self.f, )) + self.emit(tqt.PYSIGNAL("forceChanged(int)"), (self.f, )) def shoot(self): if self.isShooting(): @@ -107,12 +107,12 @@ class CannonField(qt.TQWidget): self.shoot_ang = self.ang self.shoot_f = self.f self.autoShootTimer.start(50) - self.emit(qt.PYSIGNAL("canShoot(bool)"), (0, )) + self.emit(tqt.PYSIGNAL("canShoot(bool)"), (0, )) def newTarget(self): - 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()))) + r = tqt.TQRegion(self.targetRect()) + self.target = tqt.TQPoint(random.randint(200, 390), random.randint(10, 265)) + self.repaint(r.unite(tqt.TQRegion(self.targetRect()))) def gameOver(self): return self.gameEnded @@ -130,35 +130,35 @@ class CannonField(qt.TQWidget): self.autoShootTime.stop() self.gameEnded = 0 self.repaint() - self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, )) + self.emit(tqt.PYSIGNAL("canShoot(bool)"), (1, )) def moveShot(self): - r = qt.TQRegion(self.shotRect()) + r = tqt.TQRegion(self.shotRect()) self.timerCount = self.timerCount + 1 shotR = self.shotRect() if shotR.intersects(self.targetRect()): self.autoShootTimer.stop() - self.emit(qt.PYSIGNAL("hit()"), ()) - self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, )) + self.emit(tqt.PYSIGNAL("hit()"), ()) + self.emit(tqt.PYSIGNAL("canShoot(bool)"), (1, )) elif shotR.x() > self.width() or shotR.y() > self.height(): self.autoShootTimer.stop() - self.emit(qt.PYSIGNAL("missed()"), ()) - self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, )) + self.emit(tqt.PYSIGNAL("missed()"), ()) + self.emit(tqt.PYSIGNAL("canShoot(bool)"), (1, )) else: - r = r.unite(qt.TQRegion(shotR)) + r = r.unite(tqt.TQRegion(shotR)) self.repaint(r) def paintEvent(self, ev): updateR = ev.rect() - p = qt.TQPainter(self) + p = tqt.TQPainter(self) if self.gameEnded: - p.setPen(qt.TQt.black) - p.setFont(qt.TQFont("Courier", 48, qt.TQFont.Bold)) - p.drawText(self.rect(), qt.TQt.AlignCenter, "Game Over") + p.setPen(tqt.TQt.black) + p.setFont(tqt.TQFont("Courier", 48, tqt.TQFont.Bold)) + p.drawText(self.rect(), tqt.TQt.AlignCenter, "Game Over") if updateR.intersects(self.cannonRect()): self.paintCannon(p) @@ -170,26 +170,26 @@ class CannonField(qt.TQWidget): self.paintTarget(p) def paintShot(self, p): - p.setBrush(qt.TQt.black) - p.setPen(qt.TQt.NoPen) + p.setBrush(tqt.TQt.black) + p.setPen(tqt.TQt.NoPen) p.drawRect(self.shotRect()) def paintTarget(self, p): - p.setBrush(qt.TQt.red) - p.setPen(qt.TQt.black) + p.setBrush(tqt.TQt.red) + p.setPen(tqt.TQt.black) p.drawRect(self.targetRect()) def paintCannon(self, p): cr = self.cannonRect() - pix = qt.TQPixmap(cr.size()) + pix = tqt.TQPixmap(cr.size()) pix.fill(self, cr.topLeft()) - tmp = qt.TQPainter(pix) - tmp.setBrush(qt.TQt.blue) - tmp.setPen(qt.TQt.NoPen) + tmp = tqt.TQPainter(pix) + tmp.setBrush(tqt.TQt.blue) + tmp.setPen(tqt.TQt.NoPen) tmp.translate(0, pix.height() - 1) - tmp.drawPie(qt.TQRect(-35, -35, 70, 70), 0, 90 * 16) + tmp.drawPie(tqt.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.TQWidget): p.drawPixmap(cr.topLeft(), pix) def cannonRect(self): - r = qt.TQRect(0, 0, 50, 50) + r = tqt.TQRect(0, 0, 50, 50) r.moveBottomLeft(self.rect().bottomLeft()) return r @@ -215,29 +215,29 @@ class CannonField(qt.TQWidget): x = x0 + velx * time y = y0 + vely * time - 0.5 * gravity * time * time - r = qt.TQRect(0, 0, 6, 6) - r.moveCenter(qt.TQPoint(int(x), int(self.height() - 1 - y))) + r = tqt.TQRect(0, 0, 6, 6) + r.moveCenter(tqt.TQPoint(int(x), int(self.height() - 1 - y))) return r def targetRect(self): - r = qt.TQRect(0, 0, 20, 10) - r.moveCenter(qt.TQPoint(self.target.x(), self.height() - 1 - self.target.y())) + r = tqt.TQRect(0, 0, 20, 10) + r.moveCenter(tqt.TQPoint(self.target.x(), self.height() - 1 - self.target.y())) return r def isShooting(self): return self.autoShootTimer.isActive() def sizePolicy(self): - return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding) + return tqt.TQSizePolicy(tqt.TQSizePolicy.Expanding, tqt.TQSizePolicy.Expanding) -class GameBoard(qt.TQWidget): +class GameBoard(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) - quit = qt.TQPushButton("&Quit", self, "quit") - quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) + quit = tqt.TQPushButton("&Quit", self, "quit") + quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) + self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()")) self.angle = LCDRange("ANGLE", self, "angle") self.angle.setRange(5, 70) @@ -247,40 +247,40 @@ class GameBoard(qt.TQWidget): self.cannonField = CannonField(self, "cannonField") - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) + self.connect(self.angle, tqt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) + self.connect(self.cannonField, tqt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - self.connect(self.force, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) - self.connect(self.cannonField, qt.PYSIGNAL("forceChanged(int)"), self.force.setValue) + self.connect(self.force, tqt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) + self.connect(self.cannonField, tqt.PYSIGNAL("forceChanged(int)"), self.force.setValue) - self.connect(self.cannonField, qt.PYSIGNAL("hit()"), self.hit) - self.connect(self.cannonField, qt.PYSIGNAL("missed()"), self.missed) + self.connect(self.cannonField, tqt.PYSIGNAL("hit()"), self.hit) + self.connect(self.cannonField, tqt.PYSIGNAL("missed()"), self.missed) - 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)")) + self.shoot = tqt.TQPushButton("&Shoot", self, "shoot") + self.shoot.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) + self.connect(self.shoot, tqt.SIGNAL("clicked()"), self.fire) + self.connect(self.cannonField, tqt.PYSIGNAL("canShoot(bool)"), self.shoot, tqt.SLOT("setEnabled(bool)")) - restart = qt.TQPushButton("&New Game", self, "newgame") - restart.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) - self.connect(restart, qt.SIGNAL("clicked()"), self.newGame) + restart = tqt.TQPushButton("&New Game", self, "newgame") + restart.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) + self.connect(restart, tqt.SIGNAL("clicked()"), self.newGame) - 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") + self.hits = tqt.TQLCDNumber(2, self, "hits") + self.shotsLeft = tqt.TQLCDNumber(2, self, "shotsleft") + hitsL = tqt.TQLabel("HITS", self, "hitsLabel") + shotsLeftL = tqt.TQLabel("SHOTS LEFT", self, "shotsleftLabel") - grid = qt.TQGridLayout(self, 2, 2, 10) + grid = tqt.TQGridLayout(self, 2, 2, 10) grid.addWidget(quit, 0, 0) grid.addWidget(self.cannonField, 1, 1) grid.setColStretch(1, 10) - leftBox = qt.TQVBoxLayout() + leftBox tqt.TQVBoxLayout() grid.addLayout(leftBox, 1, 0) leftBox.addWidget(self.angle) leftBox.addWidget(self.force) - topBox = qt.TQHBoxLayout() + topBox = tqt.TQHBoxLayout() grid.addLayout(topBox, 0, 1) topBox.addWidget(self.shoot) topBox.addWidget(self.hits) @@ -320,8 +320,8 @@ class GameBoard(qt.TQWidget): self.cannonField.newTarget() -qt.TQApplication.setColorSpec(qt.TQApplication.CustomColor) -a = qt.TQApplication(sys.argv) +qt.TQApplication.setColorSpec(tqt.TQApplication.CustomColor) +a = tqt.TQApplication(sys.argv) gb = GameBoard() gb.setGeometry(100, 100, 500, 355) diff --git a/examples/tut14.py b/examples/tut14.py index 41d2631..0111cab 100755 --- a/examples/tut14.py +++ b/examples/tut14.py @@ -5,27 +5,27 @@ import sys import math import random -from PyTQt import qt +from PyTQt import tqt -class LCDRange(qt.TQWidget): +class LCDRange(tqt.TQWidget): def __init__(self, s=None, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) - lcd = qt.TQLCDNumber(2, self, "lcd") - self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider") + lcd = tqt.TQLCDNumber(2, self, "lcd") + self.slider = tqt.TQSlider(tqt.TQt.Horizontal, self, "slider") self.slider.setRange(0, 99) self.slider.setValue(0) - self.label = qt.TQLabel(" ", self, "label") - self.label.setAlignment(qt.TQt.AlignCenter) + self.label = tqt.TQLabel(" ", self, "label") + self.label.setAlignment(tqt.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.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), lcd, tqt.SLOT("display(int)")) + self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), self, tqt.PYSIGNAL("valueChanged(int)")) self.setFocusProxy(self.slider) - l = qt.TQVBoxLayout(self) + l = tqt.TQVBoxLayout(self) l.addWidget(lcd, 1) l.addWidget(self.slider) l.addWidget(self.label) @@ -52,26 +52,26 @@ class LCDRange(qt.TQWidget): self.label.setText(s) -class CannonField(qt.TQWidget): +class CannonField(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) self.ang = 45 self.f = 0 self.timerCount = 0 - self.autoShootTimer = qt.TQTimer(self, "movement handler") - self.connect(self.autoShootTimer, qt.SIGNAL("timeout()"), self.moveShot) + self.autoShootTimer = tqt.TQTimer(self, "movement handler") + self.connect(self.autoShootTimer, tqt.SIGNAL("timeout()"), self.moveShot) self.shoot_ang = 0 self.shoot_f = 0 - self.target = qt.TQPoint(0, 0) + self.target = tqt.TQPoint(0, 0) self.gameEnded = 0 self.barrelPressed = 0 - self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200))) + self.setPalette(tqt.TQPalette(tqt.TQColor(250, 250, 200))) - self.barrelRect = qt.TQRect(33, -4, 15, 8) + self.barrelRect = tqt.TQRect(33, -4, 15, 8) self.newTarget() @@ -87,7 +87,7 @@ class CannonField(qt.TQWidget): return self.ang = degrees self.repaint(self.cannonRect(), 0) - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) + self.emit(tqt.PYSIGNAL("angleChanged(int)"), (self.ang, )) def force(self): return self.f @@ -98,7 +98,7 @@ class CannonField(qt.TQWidget): if self.f == newton: return self.f = newton - self.emit(qt.PYSIGNAL("forceChanged(int)"), (self.f, )) + self.emit(tqt.PYSIGNAL("forceChanged(int)"), (self.f, )) def shoot(self): if self.isShooting(): @@ -108,12 +108,12 @@ class CannonField(qt.TQWidget): self.shoot_ang = self.ang self.shoot_f = self.f self.autoShootTimer.start(50) - self.emit(qt.PYSIGNAL("canShoot(bool)"), (0, )) + self.emit(tqt.PYSIGNAL("canShoot(bool)"), (0, )) def newTarget(self): - 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()))) + r = tqt.TQRegion(self.targetRect()) + self.target = tqt.TQPoint(random.randint(200, 390), random.randint(10, 265)) + self.repaint(r.unite(tqt.TQRegion(self.targetRect()))) def gameOver(self): return self.gameEnded @@ -131,29 +131,29 @@ class CannonField(qt.TQWidget): self.autoShootTime.stop() self.gameEnded = 0 self.repaint() - self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, )) + self.emit(tqt.PYSIGNAL("canShoot(bool)"), (1, )) def moveShot(self): - r = qt.TQRegion(self.shotRect()) + r = tqt.TQRegion(self.shotRect()) self.timerCount = self.timerCount + 1 shotR = self.shotRect() if shotR.intersects(self.targetRect()): self.autoShootTimer.stop() - self.emit(qt.PYSIGNAL("hit()"), ()) - self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, )) + self.emit(tqt.PYSIGNAL("hit()"), ()) + self.emit(tqt.PYSIGNAL("canShoot(bool)"), (1, )) elif shotR.x() > self.width() or shotR.y() > self.height() or shotR.intersects(self.barrierRect()): self.autoShootTimer.stop() - self.emit(qt.PYSIGNAL("missed()"), ()) - self.emit(qt.PYSIGNAL("canShoot(bool)"), (1, )) + self.emit(tqt.PYSIGNAL("missed()"), ()) + self.emit(tqt.PYSIGNAL("canShoot(bool)"), (1, )) else: - r = r.unite(qt.TQRegion(shotR)) + r = r.unite(tqt.TQRegion(shotR)) self.repaint(r) def mousePressEvent(self, ev): - if ev.button() != qt.TQt.LeftButton: + if ev.button() != tqt.TQt.LeftButton: return if self.barrelHit(ev.pos()): self.barrelPressed = 1 @@ -170,17 +170,17 @@ class CannonField(qt.TQWidget): self.setAngle(int(round(rad * 180 / math.pi))) def mouseReleaseEvent(self, ev): - if ev.button() == qt.TQt.LeftButton: + if ev.button() == tqt.TQt.LeftButton: self.barrelPressed = 0 def paintEvent(self, ev): updateR = ev.rect() - p = qt.TQPainter(self) + p = tqt.TQPainter(self) if self.gameEnded: - p.setPen(qt.TQt.black) - p.setFont(qt.TQFont("Courier", 48, qt.TQFont.Bold)) - p.drawText(self.rect(), qt.TQt.AlignCenter, "Game Over") + p.setPen(tqt.TQt.black) + p.setFont(tqt.TQFont("Courier", 48, tqt.TQFont.Bold)) + p.drawText(self.rect(), tqt.TQt.AlignCenter, "Game Over") if updateR.intersects(self.cannonRect()): self.paintCannon(p) @@ -195,31 +195,31 @@ class CannonField(qt.TQWidget): self.paintTarget(p) def paintShot(self, p): - p.setBrush(qt.TQt.black) - p.setPen(qt.TQt.NoPen) + p.setBrush(tqt.TQt.black) + p.setPen(tqt.TQt.NoPen) p.drawRect(self.shotRect()) def paintTarget(self, p): - p.setBrush(qt.TQt.red) - p.setPen(qt.TQt.black) + p.setBrush(tqt.TQt.red) + p.setPen(tqt.TQt.black) p.drawRect(self.targetRect()) def paintBarrier(self, p): - p.setBrush(qt.TQt.yellow) - p.setPen(qt.TQt.black) + p.setBrush(tqt.TQt.yellow) + p.setPen(tqt.TQt.black) p.drawRect(self.barrierRect()) def paintCannon(self, p): cr = self.cannonRect() - pix = qt.TQPixmap(cr.size()) + pix = tqt.TQPixmap(cr.size()) pix.fill(self, cr.topLeft()) - tmp = qt.TQPainter(pix) - tmp.setBrush(qt.TQt.blue) - tmp.setPen(qt.TQt.NoPen) + tmp = tqt.TQPainter(pix) + tmp.setBrush(tqt.TQt.blue) + tmp.setPen(tqt.TQt.NoPen) tmp.translate(0, pix.height() - 1) - tmp.drawPie(qt.TQRect(-35, -35, 70, 70), 0, 90 * 16) + tmp.drawPie(tqt.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.TQWidget): p.drawPixmap(cr.topLeft(), pix) def cannonRect(self): - r = qt.TQRect(0, 0, 50, 50) + r = tqt.TQRect(0, 0, 50, 50) r.moveBottomLeft(self.rect().bottomLeft()) return r @@ -245,20 +245,20 @@ class CannonField(qt.TQWidget): x = x0 + velx * time y = y0 + vely * time - 0.5 * gravity * time * time - r = qt.TQRect(0, 0, 6, 6) - r.moveCenter(qt.TQPoint(int(x), int(self.height() - 1 - y))) + r = tqt.TQRect(0, 0, 6, 6) + r.moveCenter(tqt.TQPoint(int(x), int(self.height() - 1 - y))) return r def targetRect(self): - r = qt.TQRect(0, 0, 20, 10) - r.moveCenter(qt.TQPoint(self.target.x(), self.height() - 1 - self.target.y())) + r = tqt.TQRect(0, 0, 20, 10) + r.moveCenter(tqt.TQPoint(self.target.x(), self.height() - 1 - self.target.y())) return r def barrierRect(self): - return qt.TQRect(145, self.height() - 100, 15, 100) + return tqt.TQRect(145, self.height() - 100, 15, 100) def barrelHit(self, p): - mtx = qt.TQWMatrix() + mtx = tqt.TQWMatrix() mtx.translate(0, self.height() - 1) mtx.rotate(-self.ang) (mtx, invertable) = mtx.invert() @@ -268,16 +268,16 @@ class CannonField(qt.TQWidget): return self.autoShootTimer.isActive() def sizePolicy(self): - return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding) + return tqt.TQSizePolicy(tqt.TQSizePolicy.Expanding, tqt.TQSizePolicy.Expanding) -class GameBoard(qt.TQWidget): +class GameBoard(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) - quit = qt.TQPushButton("&Quit", self, "quit") - quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) + quit = tqt.TQPushButton("&Quit", self, "quit") + quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) + self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()")) self.angle = LCDRange("ANGLE", self, "angle") self.angle.setRange(5, 70) @@ -285,50 +285,50 @@ class GameBoard(qt.TQWidget): self.force = LCDRange("FORCE", self, "force") self.force.setRange(10, 50) - box = qt.TQVBox(self, "cannonFrame") - box.setFrameStyle(qt.TQFrame.WinPanel | qt.TQFrame.Sunken) + box = tqt.TQVBox(self, "cannonFrame") + box.setFrameStyle(tqt.TQFrame.WinPanel | tqt.TQFrame.Sunken) self.cannonField = CannonField(box, "cannonField") - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) + self.connect(self.angle, tqt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) + self.connect(self.cannonField, tqt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - self.connect(self.force, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) - self.connect(self.cannonField, qt.PYSIGNAL("forceChanged(int)"), self.force.setValue) + self.connect(self.force, tqt.PYSIGNAL("valueChanged(int)"), self.cannonField.setForce) + self.connect(self.cannonField, tqt.PYSIGNAL("forceChanged(int)"), self.force.setValue) - self.connect(self.cannonField, qt.PYSIGNAL("hit()"), self.hit) - self.connect(self.cannonField, qt.PYSIGNAL("missed()"), self.missed) + self.connect(self.cannonField, tqt.PYSIGNAL("hit()"), self.hit) + self.connect(self.cannonField, tqt.PYSIGNAL("missed()"), self.missed) - 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)")) + self.shoot = tqt.TQPushButton("&Shoot", self, "shoot") + self.shoot.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) + self.connect(self.shoot, tqt.SIGNAL("clicked()"), self.fire) + self.connect(self.cannonField, tqt.PYSIGNAL("canShoot(bool)"), self.shoot, tqt.SLOT("setEnabled(bool)")) - restart = qt.TQPushButton("&New Game", self, "newgame") - restart.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) - self.connect(restart, qt.SIGNAL("clicked()"), self.newGame) + restart = tqt.TQPushButton("&New Game", self, "newgame") + restart.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) + self.connect(restart, tqt.SIGNAL("clicked()"), self.newGame) - 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") + self.hits = tqt.TQLCDNumber(2, self, "hits") + self.shotsLeft = tqt.TQLCDNumber(2, self, "shotsleft") + hitsL = tqt.TQLabel("HITS", self, "hitsLabel") + shotsLeftL = tqt.TQLabel("SHOTS LEFT", self, "shotsleftLabel") - 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.tqApp, qt.SLOT("quit()")) + accel = tqt.TQAccel(self) + accel.connectItem(accel.insertItem(tqt.TQt.Key_Enter), self.fire) + accel.connectItem(accel.insertItem(tqt.TQt.Key_Return), self.fire) + accel.connectItem(accel.insertItem(tqt.TQt.CTRL + tqt.TQt.Key_Q), tqt.tqApp, tqt.SLOT("quit()")) - grid = qt.TQGridLayout(self, 2, 2, 10) + grid = tqt.TQGridLayout(self, 2, 2, 10) grid.addWidget(quit, 0, 0) grid.addWidget(box, 1, 1) grid.setColStretch(1, 10) - leftBox = qt.TQVBoxLayout() + leftBox = tqt.TQVBoxLayout() grid.addLayout(leftBox, 1, 0) leftBox.addWidget(self.angle) leftBox.addWidget(self.force) - topBox = qt.TQHBoxLayout() + topBox = tqt.TQHBoxLayout() grid.addLayout(topBox, 0, 1) topBox.addWidget(self.shoot) topBox.addWidget(self.hits) @@ -368,8 +368,8 @@ class GameBoard(qt.TQWidget): self.cannonField.newTarget() -qt.TQApplication.setColorSpec(qt.TQApplication.CustomColor) -a = qt.TQApplication(sys.argv) +qt.TQApplication.setColorSpec(tqt.TQApplication.CustomColor) +a = tqt.TQApplication(sys.argv) gb = GameBoard() gb.setGeometry(100, 100, 500, 355) diff --git a/examples/tut2.py b/examples/tut2.py index e74101e..0f34b16 100755 --- a/examples/tut2.py +++ b/examples/tut2.py @@ -3,16 +3,16 @@ # TQt tutorial 2. import sys -from PyTQt import qt +from PyTQt import tqt -a = qt.TQApplication(sys.argv) +a = tqt.TQApplication(sys.argv) -quit = qt.TQPushButton("Quit", None) +quit = tqt.TQPushButton("Quit", None) quit.resize(75, 30) -quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) +quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) -qt.TQObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()")) +qt.TQObject.connect(quit, tqt.SIGNAL("clicked()"), a, tqt.SLOT("quit()")) a.setMainWidget(quit) quit.show() diff --git a/examples/tut3.py b/examples/tut3.py index 85c3dc6..6cb1305 100755 --- a/examples/tut3.py +++ b/examples/tut3.py @@ -3,18 +3,18 @@ # TQt tutorial 3. import sys -from PyTQt import qt +from PyTQt import tqt -a = qt.TQApplication(sys.argv) +a = tqt.TQApplication(sys.argv) -box = qt.TQVBox() +box = tqt.TQVBox() box.resize(200, 120) -quit = qt.TQPushButton("Quit", box) -quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) +quit = tqt.TQPushButton("Quit", box) +quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) -qt.TQObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()")) +qt.TQObject.connect(quit, tqt.SIGNAL("clicked()"), a, tqt.SLOT("quit()")) a.setMainWidget(box) box.show() diff --git a/examples/tut4.py b/examples/tut4.py index 04e0a61..f61a054 100755 --- a/examples/tut4.py +++ b/examples/tut4.py @@ -3,24 +3,24 @@ # TQt tutorial 4. import sys -from PyTQt import qt +from PyTQt import tqt -class MyWidget(qt.TQWidget): +class MyWidget(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) self.setMinimumSize(200, 120) self.setMaximumSize(200, 120) - quit = qt.TQPushButton("Quit", self, "quit") + quit = tqt.TQPushButton("Quit", self, "quit") quit.setGeometry(62, 40, 75, 30) - quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) + quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) + self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()")) -a = qt.TQApplication(sys.argv) +a = tqt.TQApplication(sys.argv) w = MyWidget() w.setGeometry(100, 100, 200, 120) diff --git a/examples/tut5.py b/examples/tut5.py index a56c216..fe12295 100755 --- a/examples/tut5.py +++ b/examples/tut5.py @@ -3,28 +3,28 @@ # TQt tutorial 5. import sys -from PyTQt import qt +from PyTQt import tqt -class MyWidget(qt.TQVBox): +class MyWidget(tqt.TQVBox): def __init__(self, parent=None, name=None): - qt.TQVBox.__init__(self, parent, name) + tqt.TQVBox.__init__(self, parent, name) - quit = qt.TQPushButton("Quit", self, "quit") - quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) + quit = tqt.TQPushButton("Quit", self, "quit") + quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) + self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()")) - lcd = qt.TQLCDNumber(2, self, "lcd") + lcd = tqt.TQLCDNumber(2, self, "lcd") - slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider") + slider = tqt.TQSlider(tqt.TQt.Horizontal, self, "slider") slider.setRange(0, 99) slider.setValue(0) - self.connect(slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)")) + self.connect(slider, tqt.SIGNAL("valueChanged(int)"), lcd, tqt.SLOT("display(int)")) -a = qt.TQApplication(sys.argv) +a = tqt.TQApplication(sys.argv) w = MyWidget() a.setMainWidget(w) diff --git a/examples/tut6.py b/examples/tut6.py index ab98c09..7c6c682 100755 --- a/examples/tut6.py +++ b/examples/tut6.py @@ -3,37 +3,37 @@ # TQt tutorial 6. import sys -from PyTQt import qt +from PyTQt import tqt -class LCDRange(qt.TQVBox): +class LCDRange(tqt.TQVBox): def __init__(self, parent=None, name=None): - qt.TQVBox.__init__(self, parent, name) + tqt.TQVBox.__init__(self, parent, name) - lcd = qt.TQLCDNumber(2, self, "lcd") - slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider") + lcd = tqt.TQLCDNumber(2, self, "lcd") + slider = tqt.TQSlider(tqt.TQt.Horizontal, self, "slider") slider.setRange(0, 99) slider.setValue(0) - self.connect(slider, qt.SIGNAL("valueChanged(int)"), lcd, qt.SLOT("display(int)")) + self.connect(slider, tqt.SIGNAL("valueChanged(int)"), lcd, tqt.SLOT("display(int)")) -class MyWidget(qt.TQVBox): +class MyWidget(tqt.TQVBox): def __init__(self, parent=None, name=None): - qt.TQVBox.__init__(self, parent, name) + tqt.TQVBox.__init__(self, parent, name) - quit = qt.TQPushButton("Quit", self, "quit") - quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) + quit = tqt.TQPushButton("Quit", self, "quit") + quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) + self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()")) - grid = qt.TQGrid(4, self) + grid = tqt.TQGrid(4, self) for c in range(4): for r in range(4): LCDRange(grid) -a = qt.TQApplication(sys.argv) +a = tqt.TQApplication(sys.argv) w = MyWidget() a.setMainWidget(w) diff --git a/examples/tut7.py b/examples/tut7.py index 1df3f4e..ed8da51 100755 --- a/examples/tut7.py +++ b/examples/tut7.py @@ -3,19 +3,19 @@ # TQt tutorial 7. import sys -from PyTQt import qt +from PyTQt import tqt -class LCDRange(qt.TQVBox): +class LCDRange(tqt.TQVBox): def __init__(self, parent=None, name=None): - qt.TQVBox.__init__(self, parent, name) + tqt.TQVBox.__init__(self, parent, name) - lcd = qt.TQLCDNumber(2, self, "lcd") - self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider") + lcd = tqt.TQLCDNumber(2, self, "lcd") + self.slider = tqt.TQSlider(tqt.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)")) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)")) + self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), lcd, tqt.SLOT("display(int)")) + self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), self, tqt.PYSIGNAL("valueChanged(int)")) def value(self): return self.slider.value() @@ -24,16 +24,16 @@ class LCDRange(qt.TQVBox): self.slider.setValue(value) -class MyWidget(qt.TQVBox): +class MyWidget(tqt.TQVBox): def __init__(self, parent=None, name=None): - qt.TQVBox.__init__(self, parent, name) + tqt.TQVBox.__init__(self, parent, name) - quit = qt.TQPushButton("Quit", self, "quit") - quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) + quit = tqt.TQPushButton("Quit", self, "quit") + quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) + self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()")) - grid = qt.TQGrid(4, self) + grid = tqt.TQGrid(4, self) self.lcdlist = [] previous = None @@ -43,13 +43,13 @@ class MyWidget(qt.TQVBox): lr = LCDRange(grid) if previous: - self.connect(lr, qt.PYSIGNAL("valueChanged(int)"), previous.setValue) + self.connect(lr, tqt.PYSIGNAL("valueChanged(int)"), previous.setValue) previous = lr self.lcdlist.append(lr) -a = qt.TQApplication(sys.argv) +a = tqt.TQApplication(sys.argv) w = MyWidget() a.setMainWidget(w) diff --git a/examples/tut8.py b/examples/tut8.py index 24f91c2..ca4a912 100755 --- a/examples/tut8.py +++ b/examples/tut8.py @@ -3,19 +3,19 @@ # TQt tutorial 8. import sys -from PyTQt import qt +from PyTQt import tqt -class LCDRange(qt.TQVBox): +class LCDRange(tqt.TQVBox): def __init__(self, parent=None, name=None): - qt.TQVBox.__init__(self, parent, name) + tqt.TQVBox.__init__(self, parent, name) - lcd = qt.TQLCDNumber(2, self, "lcd") - self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider") + lcd = tqt.TQLCDNumber(2, self, "lcd") + self.slider = tqt.TQSlider(tqt.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)")) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)")) + self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), lcd, tqt.SLOT("display(int)")) + self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), self, tqt.PYSIGNAL("valueChanged(int)")) self.setFocusProxy(self.slider) @@ -32,12 +32,12 @@ class LCDRange(qt.TQVBox): self.slider.setRange(minVal, maxVal) -class CannonField(qt.TQWidget): +class CannonField(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) self.ang = 45 - self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200))) + self.setPalette(tqt.TQPalette(tqt.TQColor(250, 250, 200))) def angle(self): return self.ang @@ -51,36 +51,36 @@ class CannonField(qt.TQWidget): return self.ang = degrees self.repaint() - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) + self.emit(tqt.PYSIGNAL("angleChanged(int)"), (self.ang, )) def paintEvent(self, ev): - p = qt.TQPainter(self) + p = tqt.TQPainter(self) p.drawText(200, 200, "Angle = %d" % (self.ang)) def sizePolicy(self): - return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding) + return tqt.TQSizePolicy(tqt.TQSizePolicy.Expanding, tqt.TQSizePolicy.Expanding) -class MyWidget(qt.TQWidget): +class MyWidget(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) - quit = qt.TQPushButton("Quit", self, "quit") - quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) + quit = tqt.TQPushButton("Quit", self, "quit") + quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) + self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()")) self.angle = LCDRange(self, "angle") self.angle.setRange(5, 70) self.cannonField = CannonField(self, "cannonField") - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) + self.connect(self.angle, tqt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) + self.connect(self.cannonField, tqt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - grid = qt.TQGridLayout(self, 2, 2, 10) + grid = tqt.TQGridLayout(self, 2, 2, 10) grid.addWidget(quit, 0, 0) - grid.addWidget(self.angle, 1, 0, qt.TQt.AlignTop) + grid.addWidget(self.angle, 1, 0, tqt.TQt.AlignTop) grid.addWidget(self.cannonField, 1, 1) grid.setColStretch(1, 10) @@ -88,7 +88,7 @@ class MyWidget(qt.TQWidget): self.angle.setFocus() -a = qt.TQApplication(sys.argv) +a = tqt.TQApplication(sys.argv) w = MyWidget() w.setGeometry(100, 100, 500, 355) diff --git a/examples/tut9.py b/examples/tut9.py index e45b0e4..df0de2c 100755 --- a/examples/tut9.py +++ b/examples/tut9.py @@ -3,19 +3,19 @@ # TQt tutorial 9. import sys -from PyTQt import qt +from PyTQt import tqt -class LCDRange(qt.TQVBox): +class LCDRange(tqt.TQVBox): def __init__(self, parent=None, name=None): - qt.TQVBox.__init__(self, parent, name) + tqt.TQVBox.__init__(self, parent, name) - lcd = qt.TQLCDNumber(2, self, "lcd") - self.slider = qt.TQSlider(qt.TQt.Horizontal, self, "slider") + lcd = tqt.TQLCDNumber(2, self, "lcd") + self.slider = tqt.TQSlider(tqt.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)")) - self.connect(self.slider, qt.SIGNAL("valueChanged(int)"), self, qt.PYSIGNAL("valueChanged(int)")) + self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), lcd, tqt.SLOT("display(int)")) + self.connect(self.slider, tqt.SIGNAL("valueChanged(int)"), self, tqt.PYSIGNAL("valueChanged(int)")) self.setFocusProxy(self.slider) @@ -31,12 +31,12 @@ class LCDRange(qt.TQVBox): self.slider.setRange(minVal, maxVal) -class CannonField(qt.TQWidget): +class CannonField(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) self.ang = 45 - self.setPalette(qt.TQPalette(qt.TQColor(250, 250, 200))) + self.setPalette(tqt.TQPalette(tqt.TQColor(250, 250, 200))) def angle(self): return self.ang @@ -50,43 +50,43 @@ class CannonField(qt.TQWidget): return self.ang = degrees self.repaint() - self.emit(qt.PYSIGNAL("angleChanged(int)"), (self.ang, )) + self.emit(tqt.PYSIGNAL("angleChanged(int)"), (self.ang, )) def paintEvent(self, ev): - p = qt.TQPainter(self) + p = tqt.TQPainter(self) - p.setBrush(qt.TQt.blue) - p.setPen(qt.TQt.NoPen) + p.setBrush(tqt.TQt.blue) + p.setPen(tqt.TQt.NoPen) p.translate(0, self.rect().bottom()) - p.drawPie(qt.TQRect(-35, -35, 70, 70), 0, 90 * 16) + p.drawPie(tqt.TQRect(-35, -35, 70, 70), 0, 90 * 16) p.rotate(-self.ang) - p.drawRect(qt.TQRect(33, -4, 15, 8)) + p.drawRect(tqt.TQRect(33, -4, 15, 8)) def sizePolicy(self): - return qt.TQSizePolicy(qt.TQSizePolicy.Expanding, qt.TQSizePolicy.Expanding) + return tqt.TQSizePolicy(tqt.TQSizePolicy.Expanding, tqt.TQSizePolicy.Expanding) -class MyWidget(qt.TQWidget): +class MyWidget(tqt.TQWidget): def __init__(self, parent=None, name=None): - qt.TQWidget.__init__(self, parent, name) + tqt.TQWidget.__init__(self, parent, name) - quit = qt.TQPushButton("&Quit", self, "quit") - quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold)) - self.connect(quit, qt.SIGNAL("clicked()"), qt.tqApp, qt.SLOT("quit()")) + quit = tqt.TQPushButton("&Quit", self, "quit") + quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold)) + self.connect(quit, tqt.SIGNAL("clicked()"), tqt.tqApp, tqt.SLOT("quit()")) self.angle = LCDRange(self, "angle") self.angle.setRange(5, 70) self.cannonField = CannonField(self, "cannonField") - self.connect(self.angle, qt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) - self.connect(self.cannonField, qt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) + self.connect(self.angle, tqt.PYSIGNAL("valueChanged(int)"), self.cannonField.setAngle) + self.connect(self.cannonField, tqt.PYSIGNAL("angleChanged(int)"), self.angle.setValue) - grid = qt.TQGridLayout(self, 2, 2, 10) + grid = tqt.TQGridLayout(self, 2, 2, 10) grid.addWidget(quit, 0, 0) - grid.addWidget(self.angle, 1, 0, qt.TQt.AlignTop) + grid.addWidget(self.angle, 1, 0, tqt.TQt.AlignTop) grid.addWidget(self.cannonField, 1, 1) grid.setColStretch(1, 10) @@ -94,8 +94,8 @@ class MyWidget(qt.TQWidget): self.angle.setFocus() -qt.TQApplication.setColorSpec(qt.TQApplication.CustomColor) -a = qt.TQApplication(sys.argv) +qt.TQApplication.setColorSpec(tqt.TQApplication.CustomColor) +a = tqt.TQApplication(sys.argv) w = MyWidget() w.setGeometry(100, 100, 500, 355) diff --git a/examples/webbrowser/mainwindow.py b/examples/webbrowser/mainwindow.py index 24ca188..2d4e740 100644 --- a/examples/webbrowser/mainwindow.py +++ b/examples/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 PyTQt User Interface Compiler (pyuic) snapshot-20041203 +# by: The PyTQt User Interface Compiler (pytquic) snapshot-20041203 # # WARNING! All changes made in this file will be lost! -from PyTQt.qt import * -from PyTQt.qtaxcontainer import TQAxWidget +from PyTQt.tqt import * +from PyTQt.tqtaxcontainer import TQAxWidget image0_data = [ "32 32 3 1", @@ -925,7 +925,7 @@ class MainWindow(TQMainWindow): self.setName("MainWindow") - self.setCentralWidget(TQWidget(self,"qt_central_widget")) + self.setCentralWidget(TQWidget(self,"tqt_central_widget")) MainWindowLayout = TQHBoxLayout(self.centralWidget(),0,6,"MainWindowLayout") self.Frame3 = TQFrame(self.centralWidget(),"Frame3") diff --git a/examples/webbrowser/webbrowser.py b/examples/webbrowser/webbrowser.py index 44d3488..0ae8702 100644 --- a/examples/webbrowser/webbrowser.py +++ b/examples/webbrowser/webbrowser.py @@ -7,21 +7,21 @@ import sys -from PyTQt import qt -from PyTQt import qtaxcontainer +from PyTQt import tqt +from PyTQt import tqtaxcontainer import mainwindow class MainWindowImpl(mainwindow.MainWindow): def init(self): - self.pb = qt.TQProgressBar(self.statusBar()) + self.pb = tqt.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 TQString&)"), self.statusBar(), qt.SLOT("message(const TQString&)")) + self.connect(self.WebBrowser, tqt.SIGNAL("ProgressChange(int,int)"), self.setProgress) + self.connect(self.WebBrowser, tqt.SIGNAL("StatusTextChange(const TQString&)"), self.statusBar(), tqt.SLOT("message(const TQString&)")) self.WebBrowser.dynamicCall("GoHome()"); @@ -29,7 +29,7 @@ class MainWindowImpl(mainwindow.MainWindow): def go(self): self.actionStop.setEnabled(True) - self.WebBrowser.dynamicCall("Navigate(const TQString&)", qt.TQVariant(self.addressEdit.text())) + self.WebBrowser.dynamicCall("Navigate(const TQString&)", tqt.TQVariant(self.addressEdit.text())) def setTitle(self, title): self.setCaption("TQt WebBrowser - " + title.latin1()) @@ -69,17 +69,17 @@ class MainWindowImpl(mainwindow.MainWindow): self.subwindows += window def aboutSlot(self): - qt.TQMessageBox.about(self, self.tr("About WebBrowser"), self.tr( + tqt.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 aboutTQtSlot(self): - qt.TQMessageBox.aboutTQt(self, self.tr("About TQt")) + tqt.TQMessageBox.aboutTQt(self, self.tr("About TQt")) def main(args): - a = qt.TQApplication(args) + a = tqt.TQApplication(args) w = MainWindowImpl() a.setMainWidget(w) w.show() diff --git a/examples/widgets.py b/examples/widgets.py index d9f554d..59a44c4 100755 --- a/examples/widgets.py +++ b/examples/widgets.py @@ -2,7 +2,7 @@ import sys, string -from PyTQt.qt import * +from PyTQt.tqt import * # ## Constructs an analog clock widget that uses an internal TQTimer. @@ -36,7 +36,7 @@ class AnalogClock( TQWidget ): # ## The clock is painted using a 1000x1000 square coordinate system. # - def paintEvent( self, qe ): # paint clock + def paintEvent( self, tqe ): # paint clock if not self.isVisible(): # is is invisible return self.time = TQTime.currentTime() # save current time @@ -192,10 +192,10 @@ class WidgetView ( TQWidget ): self.connect( self.pb, SIGNAL("clicked()"), self.button1Clicked ) TQToolTip.add( self.pb, "push button 1" ) self.pm = TQPixmap() - self.pix = self.pm.load( "qt.png" ) # load pixmap for button 2 + self.pix = self.pm.load( "tqt.png" ) # load pixmap for button 2 if not self.pix: TQMessageBox.information( None, "TQt Widgets Example", - "Could not load the file \"qt.png\", which\n" + "Could not load the file \"tqt.png\", which\n" "contains an icon used...\n\n" "The text \"line 42\" will be substituted.", TQMessageBox.Ok + TQMessageBox.Default ) diff --git a/module-init.py b/module-init.py index 404ec4b..0f08cbd 100644 --- a/module-init.py +++ b/module-init.py @@ -7,8 +7,8 @@ for m_path in sys.path: m_sip_dir = os.path.join(m_path, 'sip4_tqt') tqt_modules.insert(0, m_sip_dir) if os.path.exists(os.path.join(m_path, 'PyTQt')): - m_pyqt_dir = os.path.join(m_path, 'PyTQt') - tqt_modules.insert(0, m_pyqt_dir) + m_pytqt_dir = os.path.join(m_path, 'PyTQt') + tqt_modules.insert(0, m_pytqt_dir) for m_path in tqt_modules: sys.path.insert(0, m_path) @@ -31,22 +31,22 @@ def is_module_available(module_name): # Base modules __all__ = [ - 'qt', - 'qtcanvas', - 'qtnetwork', - 'qttable', - 'qtsql', - 'qtui', - 'qtxml', + 'tqt', + 'tqtcanvas', + 'tqtnetwork', + 'tqttable', + 'tqtsql', + 'tqtui', + 'tqtxml', ] # Optional modules -if is_module_available('qtaxcontainer'): - __all__.append('qtaxcontainer') -if is_module_available('qtext'): - __all__.append('qtext') -if is_module_available('qtgl'): - __all__.append('qtgl') +if is_module_available('tqtaxcontainer'): + __all__.append('tqtaxcontainer') +if is_module_available('tqtext'): + __all__.append('tqtext') +if is_module_available('tqtgl'): + __all__.append('tqtgl') # Import namespaces from PyTQt import * diff --git a/pylupdate3/LICENSE.GPL b/pytqlupdate3/LICENSE.GPL index c7aea18..c7aea18 100644 --- a/pylupdate3/LICENSE.GPL +++ b/pytqlupdate3/LICENSE.GPL diff --git a/pylupdate3/fetchtr.cpp b/pytqlupdate3/fetchtr.cpp index 96978cd..4fe5bc5 100644 --- a/pylupdate3/fetchtr.cpp +++ b/pytqlupdate3/fetchtr.cpp @@ -444,7 +444,7 @@ void fetchtr_py( const char *fileName, MetaTranslator *tor, yyInFile = fopen( fileName, "r" ); if ( yyInFile == 0 ) { if ( mustExist ) - tqWarning( "pylupdate error: cannot open Python source file '%s': %s", + tqWarning( "pytqlupdate error: cannot open Python source file '%s': %s", fileName, strerror(errno) ); return; } diff --git a/pylupdate3/main.cpp b/pytqlupdate3/main.cpp index a3a0f3f..6c708fe 100644 --- a/pylupdate3/main.cpp +++ b/pytqlupdate3/main.cpp @@ -51,7 +51,7 @@ typedef TQValueList<MetaTranslatorMessage> TML; static void printUsage() { - tqWarning( "Usage: pylupdate [options] file.pro...\n" + tqWarning( "Usage: pytqlupdate [options] file.pro...\n" "Options:\n" " -help Display this information and exits\n" " -noobsolete\n" @@ -59,7 +59,7 @@ static void printUsage() " -verbose\n" " Explain what is being done\n" " -version\n" - " Display the version of pylupdate and exits" ); + " Display the version of pytqlupdate and exits" ); } int main( int argc, char **argv ) @@ -80,14 +80,14 @@ int main( int argc, char **argv ) verbose = TRUE; continue; } else if ( qstrcmp(argv[i], "-version") == 0 ) { - tqWarning( "pylupdate version %s", TQT_VERSION_STR ); + tqWarning( "pytqlupdate version %s", TQT_VERSION_STR ); return 0; } numProFiles++; TQFile f( argv[i] ); if ( !f.open(IO_ReadOnly) ) { - tqWarning( "pylupdate error: Cannot open project file '%s': %s", + tqWarning( "pytqlupdate error: Cannot open project file '%s': %s", argv[i], strerror(errno) ); return 1; } @@ -135,14 +135,14 @@ int main( int argc, char **argv ) tor.stripObsoleteMessages(); tor.stripEmptyContexts(); if ( !tor.save(*tf) ) - tqWarning( "pylupdate error: Cannot save '%s': %s", (*tf).utf8(), + tqWarning( "pytqlupdate error: Cannot save '%s': %s", (*tf).utf8(), strerror(errno) ); } if ( !metSomething ) { - tqWarning( "pylupdate warning: File '%s' does not look like a project" + tqWarning( "pytqlupdate warning: File '%s' does not look like a project" " file", argv[i] ); } else if ( translatorFiles.isEmpty() ) { - tqWarning( "pylupdate warning: Met no 'TRANSLATIONS' entry in project" + tqWarning( "pytqlupdate warning: Met no 'TRANSLATIONS' entry in project" " file '%s'", argv[i] ); } } diff --git a/pylupdate3/merge.cpp b/pytqlupdate3/merge.cpp index 8559830..8559830 100644 --- a/pylupdate3/merge.cpp +++ b/pytqlupdate3/merge.cpp diff --git a/pylupdate3/metatranslator.cpp b/pytqlupdate3/metatranslator.cpp index f46ee9a..f46ee9a 100644 --- a/pylupdate3/metatranslator.cpp +++ b/pytqlupdate3/metatranslator.cpp diff --git a/pylupdate3/metatranslator.h b/pytqlupdate3/metatranslator.h index aab280f..aab280f 100644 --- a/pylupdate3/metatranslator.h +++ b/pytqlupdate3/metatranslator.h diff --git a/pylupdate3/numberh.cpp b/pytqlupdate3/numberh.cpp index a52687b..a52687b 100644 --- a/pylupdate3/numberh.cpp +++ b/pytqlupdate3/numberh.cpp diff --git a/pylupdate3/proparser.cpp b/pytqlupdate3/proparser.cpp index 72256f3..72256f3 100644 --- a/pylupdate3/proparser.cpp +++ b/pytqlupdate3/proparser.cpp diff --git a/pylupdate3/proparser.h b/pytqlupdate3/proparser.h index 1cb7928..1cb7928 100644 --- a/pylupdate3/proparser.h +++ b/pytqlupdate3/proparser.h diff --git a/pylupdate3/pylupdate-prof.sbf b/pytqlupdate3/pytqlupdate-prof.sbf index 2d74dfa..2acf080 100644 --- a/pylupdate3/pylupdate-prof.sbf +++ b/pytqlupdate3/pytqlupdate-prof.sbf @@ -1,4 +1,4 @@ -# This is the build file for pylupdate for TQt v3 Professional Edition. +# This is the build file for pytqlupdate for TQt v3 Professional Edition. # # Copyright (c) 2007 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -19,6 +19,6 @@ # 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 +target = pytqlupdate sources = fetchtr.cpp main.cpp merge.cpp numberh.cpp sametexth.cpp metatranslator.cpp proparser.cpp qxml.cpp headers = metatranslator.h proparser.h diff --git a/pylupdate3/pylupdate.pro.in b/pytqlupdate3/pytqlupdate.pro.in index 0a39857..9dc855a 100644 --- a/pylupdate3/pylupdate.pro.in +++ b/pytqlupdate3/pytqlupdate.pro.in @@ -1,16 +1,16 @@ # Copyright (c) 2002 # Detlev Offenbach <detlev@die-offenbachs.de> # -# The project file pylupdate for TQt v3. +# The project file pytqlupdate for TQt v3. TEMPLATE = app -CONFIG += qt warn_on console release @PYQT_RBPROF@ +CONFIG += tqt warn_on console release @PYTQT_RBPROF@ INCLUDEPATH = @BLX_INCLUDEPATH@ -DEFINES = QT_INTERNAL_XML @BLX_DEFINES@ +DEFINES = TQT_INTERNAL_XML @BLX_DEFINES@ -DESTDIR = @PYQT_BINDIR@ -TARGET = pylupdate +DESTDIR = @PYTQT_BINDIR@ +TARGET = pytqlupdate HEADERS = metatranslator.h \ proparser.h @@ -24,6 +24,6 @@ SOURCES = fetchtr.cpp \ proparser.cpp rbprof:exists($(TQTDIR)/src/qt_professional.pri) { - QT_SOURCE_TREE = $(TQTDIR) + TQT_SOURCE_TREE = $(TQTDIR) include($(TQTDIR)/src/qt_professional.pri) } diff --git a/pylupdate3/pylupdate.sbf b/pytqlupdate3/pytqlupdate.sbf index 248b7cb..d97edd6 100644 --- a/pylupdate3/pylupdate.sbf +++ b/pytqlupdate3/pytqlupdate.sbf @@ -1,4 +1,4 @@ -# This is the build file for pylupdate for TQt v3 Professional Edition. +# This is the build file for pytqlupdate for TQt v3 Professional Edition. # # Copyright (c) 2007 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -19,6 +19,6 @@ # 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 +target = pytqlupdate sources = fetchtr.cpp main.cpp merge.cpp numberh.cpp sametexth.cpp metatranslator.cpp proparser.cpp headers = metatranslator.h proparser.h diff --git a/pylupdate3/sametexth.cpp b/pytqlupdate3/sametexth.cpp index fd67a55..fd67a55 100644 --- a/pylupdate3/sametexth.cpp +++ b/pytqlupdate3/sametexth.cpp diff --git a/pyqtconfig.py.in b/pytqtconfig.py.in index b927751..bc725e2 100644 --- a/pyqtconfig.py.in +++ b/pytqtconfig.py.in @@ -48,12 +48,12 @@ class Configuration(sip_tqt_config.Configuration): class TQtModuleMakefile(sip_tqt_config.SIPModuleMakefile): - """The Makefile class for modules that %Import qt. + """The Makefile class for modules that %Import tqt. """ def __init__(self, *args, **kw): """Initialise an instance of a module Makefile. """ - kw["qt"] = 1 + kw["tqt"] = 1 apply(sip_tqt_config.SIPModuleMakefile.__init__, (self, ) + args, kw) def finalise(self): @@ -62,55 +62,55 @@ class TQtModuleMakefile(sip_tqt_config.SIPModuleMakefile): if self.config.sip_version < 0x040000: # Note that we don't use self.extra_lib_dirs because we don't want # it to be added to the rpath. - self.LIBDIR.append(self.config.pyqt_mod_dir) - self.extra_libs.append(self.module_as_lib("qt")) + self.LIBDIR.append(self.config.pytqt_mod_dir) + self.extra_libs.append(self.module_as_lib("tqt")) sip_tqt_config.SIPModuleMakefile.finalise(self) class TQtAxContainerModuleMakefile(TQtModuleMakefile): - """The Makefile class for modules that %Import qtaxcontainer. + """The Makefile class for modules that %Import tqtaxcontainer. """ def finalise(self): """Finalise the macros. """ if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtaxcontainer")) + self.extra_libs.append(self.module_as_lib("tqtaxcontainer")) TQtModuleMakefile.finalise(self) class TQtCanvasModuleMakefile(TQtModuleMakefile): - """The Makefile class for modules that %Import qtcanvas. + """The Makefile class for modules that %Import tqtcanvas. """ def finalise(self): """Finalise the macros. """ if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtcanvas")) + self.extra_libs.append(self.module_as_lib("tqtcanvas")) TQtModuleMakefile.finalise(self) class TQtExtModuleMakefile(TQtModuleMakefile): - """The Makefile class for modules that %Import qtext. + """The Makefile class for modules that %Import tqtext. """ def finalise(self): """Finalise the macros. """ if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtext")) + self.extra_libs.append(self.module_as_lib("tqtext")) - self.extra_defines.extend(self.config._pyqt_qscintilla_defines) - self.extra_include_dirs.append(self.config._pyqt_qscintilla_inc_dir) - self.extra_lib_dirs.append(self.config._pyqt_qscintilla_lib_dir) + self.extra_defines.extend(self.config._pytqt_tqscintilla_defines) + self.extra_include_dirs.append(self.config._pytqt_tqscintilla_inc_dir) + self.extra_lib_dirs.append(self.config._pytqt_tqscintilla_lib_dir) self.extra_libs.append("tqscintilla") TQtModuleMakefile.finalise(self) class TQtGLModuleMakefile(TQtModuleMakefile): - """The Makefile class for modules that %Import qtgl. + """The Makefile class for modules that %Import tqtgl. """ def __init__(self, *args, **kw): """Initialise an instance of a module Makefile. @@ -122,66 +122,66 @@ class TQtGLModuleMakefile(TQtModuleMakefile): """Finalise the macros. """ if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtgl")) + self.extra_libs.append(self.module_as_lib("tqtgl")) TQtModuleMakefile.finalise(self) class TQtNetworkModuleMakefile(TQtModuleMakefile): - """The Makefile class for modules that %Import qtnetwork. + """The Makefile class for modules that %Import tqtnetwork. """ def finalise(self): """Finalise the macros. """ if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtnetwork")) + self.extra_libs.append(self.module_as_lib("tqtnetwork")) TQtModuleMakefile.finalise(self) class TQtTableModuleMakefile(TQtModuleMakefile): - """The Makefile class for modules that %Import qttable. + """The Makefile class for modules that %Import tqttable. """ def finalise(self): """Finalise the macros. """ if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qttable")) + self.extra_libs.append(self.module_as_lib("tqttable")) TQtModuleMakefile.finalise(self) class TQtSQLModuleMakefile(TQtTableModuleMakefile): - """The Makefile class for modules that %Import qtsql. + """The Makefile class for modules that %Import tqtsql. """ def finalise(self): """Finalise the macros. """ if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtsql")) + self.extra_libs.append(self.module_as_lib("tqtsql")) TQtTableModuleMakefile.finalise(self) class TQtUIModuleMakefile(TQtModuleMakefile): - """The Makefile class for modules that %Import qtui. + """The Makefile class for modules that %Import tqtui. """ def finalise(self): """Finalise the macros. """ if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtui")) + self.extra_libs.append(self.module_as_lib("tqtui")) TQtModuleMakefile.finalise(self) class TQtXMLModuleMakefile(TQtModuleMakefile): - """The Makefile class for modules that %Import qtxml. + """The Makefile class for modules that %Import tqtxml. """ def finalise(self): """Finalise the macros. """ if self.config.sip_version < 0x040000: - self.extra_libs.append(self.module_as_lib("qtxml")) + self.extra_libs.append(self.module_as_lib("tqtxml")) TQtModuleMakefile.finalise(self) diff --git a/pyuic3/LICENSE.GPL b/pytquic3/LICENSE.GPL index c7aea18..c7aea18 100644 --- a/pyuic3/LICENSE.GPL +++ b/pytquic3/LICENSE.GPL diff --git a/pyuic3/domtool.cpp b/pytquic3/domtool.cpp index 740088e..740088e 100644 --- a/pyuic3/domtool.cpp +++ b/pytquic3/domtool.cpp diff --git a/pyuic3/domtool.h b/pytquic3/domtool.h index 87fbaf6..87fbaf6 100644 --- a/pyuic3/domtool.h +++ b/pytquic3/domtool.h diff --git a/pyuic3/embed.cpp b/pytquic3/embed.cpp index c54104f..9bf0071 100644 --- a/pyuic3/embed.cpp +++ b/pytquic3/embed.cpp @@ -128,13 +128,13 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima for ( it = images.begin(); it != images.end(); ++it ) out << "# " << *it << "\n"; out << "#\n"; - out << "# Created by: The PyTQt User Interface Compiler (pyuic) " << PYTQT_VERSION << "\n"; + out << "# Created by: The PyTQt User Interface Compiler (pytquic) " << PYTQT_VERSION << "\n"; out << "#\n"; out << "# WARNING! All changes made in this file will be lost!\n"; out << "\n"; out << "\n"; - out << "from PyTQt.qt import TQImage, TQMimeSourceFactory"; + out << "from PyTQt.tqt import TQImage, TQMimeSourceFactory"; #ifndef TQT_NO_IMAGE_COLLECTION_COMPRESSION out << ", tqUncompress"; #endif @@ -149,7 +149,7 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima for ( it = images.begin(); it != images.end(); ++it ) { TQImage img; if ( !img.load( *it ) ) { - fprintf( stderr, "pyuic: cannot load image file %s\n", (*it).utf8() ); + fprintf( stderr, "pytquic: cannot load image file %s\n", (*it).utf8() ); continue; } EmbedImage *e = new EmbedImage; @@ -275,7 +275,7 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima out << indent << "factory = None\n"; out << "\n"; - out << indent << "def qInitImages_" << cProject << "():\n"; + out << indent << "def tqInitImages_" << cProject << "():\n"; ++indent; out << indent << "global factory\n"; out << "\n"; @@ -288,7 +288,7 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima out << "\n"; out << "\n"; - out << indent << "def qCleanupImages_" << cProject << "():\n"; + out << indent << "def tqCleanupImages_" << cProject << "():\n"; ++indent; out << indent << "global factory\n"; out << "\n"; @@ -305,8 +305,8 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima ++indent; out << indent << "def __init__(self):\n"; ++indent; - out << indent << "self.cleanup = qCleanupImages_" << cProject << "\n"; - out << indent << "qInitImages_" << cProject << "()\n"; + out << indent << "self.cleanup = tqCleanupImages_" << cProject << "\n"; + out << indent << "tqInitImages_" << cProject << "()\n"; --indent; out << "\n"; out << indent << "def __del__(self):\n"; diff --git a/pyuic3/form.cpp b/pytquic3/form.cpp index 8c7a374..e5912f1 100644 --- a/pyuic3/form.cpp +++ b/pytquic3/form.cpp @@ -238,12 +238,12 @@ void Uic::createFormImpl( const TQDomElement &e ) for ( i = 1; i < (int) nl.length(); i++ ) { // start at 1, 0 is the toplevel widget TQString name = getClassName( nl.item(i).toElement() ); if ( name == "Spacer" ) { - globalIncludes += "qlayout.h"; - globalIncludes += "qapplication.h"; + globalIncludes += "tqlayout.h"; + globalIncludes += "tqapplication.h"; continue; } if ( name.mid( 1 ) == "ListView" ) - globalIncludes += "qheader.h"; + globalIncludes += "tqheader.h"; else if ( name == "TQAxWidget" ) axwidgets += getObjectName(nl.item(i).toElement()); else if ( name == "TQDataBrowser" ) @@ -257,14 +257,14 @@ void Uic::createFormImpl( const TQDomElement &e ) } } - if (globalIncludes.findIndex("qtable.h") >= 0) - out << indent << "from PyTQt.qttable import TQTable" << endl; + if (globalIncludes.findIndex("tqtable.h") >= 0) + out << indent << "from PyTQt.tqttable import TQTable" << endl; if (!axwidgets.empty()) - out << indent << "from PyTQt.qtaxcontainer import TQAxWidget" << endl; + out << indent << "from PyTQt.tqtaxcontainer import TQAxWidget" << endl; if (globalIncludes.findIndex("tqextscintilla.h") >= 0) - out << indent << "from PyTQt.qtext import TQextScintilla" << endl; + out << indent << "from PyTQt.tqtext import TQextScintilla" << endl; registerDatabases( e ); dbConnections = unique( dbConnections ); @@ -289,20 +289,20 @@ void Uic::createFormImpl( const TQDomElement &e ) sqlClasses += "TQSqlRecord"; } - if (globalIncludes.findIndex("qdatatable.h") >= 0) + if (globalIncludes.findIndex("tqdatatable.h") >= 0) sqlClasses += "TQDataTable"; - if (globalIncludes.findIndex("qtableview.h") >= 0) + if (globalIncludes.findIndex("tqtableview.h") >= 0) sqlClasses += "TQTableView"; - if (globalIncludes.findIndex("qdatabrowser.h") >= 0) + if (globalIncludes.findIndex("tqdatabrowser.h") >= 0) sqlClasses += "TQDataBrowser"; - if (globalIncludes.findIndex("qdataview.h") >= 0) + if (globalIncludes.findIndex("tqdataview.h") >= 0) sqlClasses += "TQDataView"; if ( !sqlClasses.empty() ) { - out << indent << "from PyTQt.qtsql import"; + out << indent << "from PyTQt.tqtsql import"; const char *sep = " "; for ( it = sqlClasses.begin(); it != sqlClasses.end(); ++it ) { diff --git a/pyuic3/globaldefs.h b/pytquic3/globaldefs.h index 4704ff9..4704ff9 100644 --- a/pyuic3/globaldefs.h +++ b/pytquic3/globaldefs.h diff --git a/pyuic3/main.cpp b/pytquic3/main.cpp index e54000c..0158545 100644 --- a/pyuic3/main.cpp +++ b/pytquic3/main.cpp @@ -135,7 +135,7 @@ int main( int argc, char * argv[] ) if ( argc < 2 || error || (!fileName && !imagecollection ) ) { fprintf( stderr, "PyTQt user interface compiler.\n" ); if ( error ) - fprintf( stderr, "pyuic: %s\n", error ); + fprintf( stderr, "pytquic: %s\n", error ); fprintf( stderr, "Usage: %s [options] [mode] <uifile>\n" "\nGenerate implementation:\n" @@ -153,7 +153,7 @@ int main( int argc, char * argv[] ) "\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" + "\t-version\tDisplay version of pytquic\n" "\t-help\t\tDisplay this information\n" , argv[0], argv[0], argv[0], argv[0]); return 1; @@ -165,7 +165,7 @@ int main( int argc, char * argv[] ) if ( !outputFile.isEmpty() ) { fileOut.setName( outputFile ); if (!fileOut.open( IO_WriteOnly ) ) - tqFatal( "pyuic: Could not open output file '%s'", outputFile.data() ); + tqFatal( "pytquic: Could not open output file '%s'", outputFile.data() ); } else { fileOut.open( IO_WriteOnly, stdout ); } @@ -182,17 +182,17 @@ int main( int argc, char * argv[] ) out.setEncoding( TQTextStream::UnicodeUTF8 ); TQFile file( fileName ); if ( !file.open( IO_ReadOnly ) ) - tqFatal( "pyuic: Could not open file '%s' ", fileName ); + tqFatal( "pytquic: Could not open file '%s' ", fileName ); TQDomDocument doc; TQString errMsg; int errLine; if ( !doc.setContent( &file, &errMsg, &errLine ) ) - tqFatal( TQString("pyuic: Failed to parse %s: ") + errMsg + TQString (" in line %d\n"), fileName, errLine ); + tqFatal( TQString("pytquic: Failed to parse %s: ") + errMsg + TQString (" in line %d\n"), fileName, errLine ); TQDomElement e = doc.firstChild().toElement(); if ( e.hasAttribute("version") && e.attribute("version").toDouble() > 3.3 ) { - tqWarning( TQString("pyuic: File generated with too recent version of TQt Designer (%s vs. %s)"), + tqWarning( TQString("pytquic: File generated with too recent version of TQt Designer (%s vs. %s)"), e.attribute("version").utf8(), TQT_VERSION_STR ); return 1; } @@ -209,7 +209,7 @@ int main( int argc, char * argv[] ) if ( !subcl ) { out << "# Form implementation generated from reading ui file '" << fileName << "'" << endl; out << "#" << endl; - out << "# Created by: The PyTQt User Interface Compiler (pyuic) " << PYTQT_VERSION << endl; + out << "# Created by: The PyTQt User Interface Compiler (pytquic) " << PYTQT_VERSION << endl; out << "#" << endl; out << "# WARNING! All changes made in this file will be lost!" << endl; out << endl; @@ -219,7 +219,7 @@ int main( int argc, char * argv[] ) if (testCode || execCode) out << "import sys" << endl; - out << "from PyTQt.qt import *" << endl; + out << "from PyTQt.tqt import *" << endl; Uic( fileName, outputFile, out, doc, subcl, trmacro, className, uicClass ); diff --git a/pyuic3/object.cpp b/pytquic3/object.cpp index 1b7232f..6b26e8c 100644 --- a/pyuic3/object.cpp +++ b/pytquic3/object.cpp @@ -43,7 +43,7 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla TQString parent( par ); if ( parent == "self" && isMainWindow ) { if ( !createdCentralWidget ) - out << indent << "self.setCentralWidget(TQWidget(self,\"qt_central_widget\"))" << endl; + out << indent << "self.setCentralWidget(TQWidget(self,\"tqt_central_widget\"))" << endl; createdCentralWidget = TRUE; parent = "self.centralWidget()"; } diff --git a/pyuic3/parser.cpp b/pytquic3/parser.cpp index fc6aae4..fc6aae4 100644 --- a/pyuic3/parser.cpp +++ b/pytquic3/parser.cpp diff --git a/pyuic3/parser.h b/pytquic3/parser.h index 5fdbdc2..5fdbdc2 100644 --- a/pyuic3/parser.h +++ b/pytquic3/parser.h diff --git a/pyuic3/pyuic-prof.sbf b/pytquic3/pytquic-prof.sbf index c982fd1..8a5cfa7 100644 --- a/pyuic3/pyuic-prof.sbf +++ b/pytquic3/pytquic-prof.sbf @@ -1,4 +1,4 @@ -# This is the build file for pyuic for TQt v3 Professional Edition. +# This is the build file for pytquic for TQt v3 Professional Edition. # # Copyright (c) 2007 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -19,6 +19,6 @@ # 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 -sources = main.cpp uic.cpp form.cpp object.cpp subclassing.cpp embed.cpp widgetdatabase.cpp domtool.cpp parser.cpp qdom.cpp qxml.cpp +target = pytquic +sources = main.cpp uic.cpp form.cpp object.cpp subclassing.cpp embed.cpp widgetdatabase.cpp domtool.cpp parser.cpp tqdom.cpp tqxml.cpp headers = domtool.h globaldefs.h parser.h uic.h widgetdatabase.h widgetinterface.h diff --git a/pyuic3/pyuic.pro.in b/pytquic3/pytquic.pro.in index 5c9b3e8..326e0e5 100644 --- a/pyuic3/pyuic.pro.in +++ b/pytquic3/pytquic.pro.in @@ -3,16 +3,16 @@ # Copyright (c) 2002, 2003 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> # -# The project file for pyuic for TQt v3. +# The project file for pytquic for TQt v3. TEMPLATE = app -CONFIG += qt console warn_on release @PYQT_RBPROF@ +CONFIG += tqt console warn_on release @PYTQT_RBPROF@ INCLUDEPATH += @BLX_INCLUDEPATH@ $(TQTDIR)/src/3rdparty/zlib -DEFINES += UIC QT_INTERNAL_XML @BLX_DEFINES@ +DEFINES += UIC TQT_INTERNAL_XML @BLX_DEFINES@ -DESTDIR = @PYQT_BINDIR@ -TARGET = pyuic +DESTDIR = @PYTQT_BINDIR@ +TARGET = pytquic HEADERS = uic.h \ widgetdatabase.h \ @@ -30,7 +30,7 @@ SOURCES = main.cpp \ domtool.cpp \ parser.cpp -rbprof:exists($(TQTDIR)/src/qt_professional.pri) { - QT_SOURCE_TREE = $(TQTDIR) - include($(TQTDIR)/src/qt_professional.pri) +rbprof:exists($(TQTDIR)/src/tqt_professional.pri) { + TQT_SOURCE_TREE = $(TQTDIR) + include($(TQTDIR)/src/tqt_professional.pri) } diff --git a/pyuic3/pyuic.sbf b/pytquic3/pytquic.sbf index d8fdccf..86360b6 100644 --- a/pyuic3/pyuic.sbf +++ b/pytquic3/pytquic.sbf @@ -1,4 +1,4 @@ -# This is the build file for pyuic for TQt v3. +# This is the build file for pytquic for TQt v3. # # Copyright (c) 2007 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -19,6 +19,6 @@ # 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 +target = pytquic sources = main.cpp uic.cpp form.cpp object.cpp subclassing.cpp embed.cpp widgetdatabase.cpp domtool.cpp parser.cpp headers = domtool.h globaldefs.h parser.h uic.h widgetdatabase.h widgetinterface.h diff --git a/pyuic3/subclassing.cpp b/pytquic3/subclassing.cpp index 9cb1ee1..9cb1ee1 100644 --- a/pyuic3/subclassing.cpp +++ b/pytquic3/subclassing.cpp diff --git a/pyuic3/uic.cpp b/pytquic3/uic.cpp index 8d0613c..8d0613c 100644 --- a/pyuic3/uic.cpp +++ b/pytquic3/uic.cpp diff --git a/pyuic3/uic.h b/pytquic3/uic.h index 1cda66b..1cda66b 100644 --- a/pyuic3/uic.h +++ b/pytquic3/uic.h diff --git a/pyuic3/widgetdatabase.cpp b/pytquic3/widgetdatabase.cpp index 78273a4..3e075b0 100644 --- a/pyuic3/widgetdatabase.cpp +++ b/pytquic3/widgetdatabase.cpp @@ -256,7 +256,7 @@ void WidgetDatabase::setupDataBase( int id ) #if !defined(TQT_NO_SQL) r = new WidgetDatabaseRecord; r->iconSet = "designer_datatable.png"; - r->includeFile = "qdatatable.h"; + r->includeFile = "tqdatatable.h"; r->name = "TQDataTable"; r->group = widgetGroup( "Database" ); r->toolTip = "Data Table"; @@ -287,7 +287,7 @@ void WidgetDatabase::setupDataBase( int id ) r->name = "TQDateEdit"; r->group = widgetGroup( "Input" ); r->toolTip = "Date Edit"; - r->includeFile = "qdatetimeedit.h"; + r->includeFile = "tqdatetimeedit.h"; append( r ); @@ -296,7 +296,7 @@ void WidgetDatabase::setupDataBase( int id ) r->name = "TQTimeEdit"; r->group = widgetGroup( "Input" ); r->toolTip = "Time Edit"; - r->includeFile = "qdatetimeedit.h"; + r->includeFile = "tqdatetimeedit.h"; append( r ); @@ -305,7 +305,7 @@ void WidgetDatabase::setupDataBase( int id ) r->name = "TQDateTimeEdit"; r->group = widgetGroup( "Input" ); r->toolTip = "Date-Time Edit"; - r->includeFile = "qdatetimeedit.h"; + r->includeFile = "tqdatetimeedit.h"; append( r ); @@ -399,7 +399,7 @@ void WidgetDatabase::setupDataBase( int id ) r->name = "Line"; r->group = widgetGroup( "Display" ); r->toolTip = "Line"; - r->includeFile = "qframe.h"; + r->includeFile = "tqframe.h"; r->whatsThis = "The Line widget provides horizontal and vertical lines."; append( r ); @@ -476,7 +476,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->name = "TQSplitter"; r->group = widgetGroup( "Temp" ); - r->includeFile = "qsplitter.h"; + r->includeFile = "tqsplitter.h"; r->isContainer = TRUE; append( r ); @@ -508,7 +508,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->iconSet = ""; r->name = "TQMainWindow"; - r->includeFile = "qmainwindow.h"; + r->includeFile = "tqmainwindow.h"; r->group = widgetGroup( "Temp" ); r->isContainer = TRUE; @@ -517,7 +517,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->iconSet = ""; r->name = "TQDesignerAction"; - r->includeFile = "qaction.h"; + r->includeFile = "tqaction.h"; r->group = widgetGroup( "Temp" ); r->isContainer = FALSE; @@ -526,7 +526,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->iconSet = ""; r->name = "TQDesignerActionGroup"; - r->includeFile = "qaction.h"; + r->includeFile = "tqaction.h"; r->group = widgetGroup( "Temp" ); r->isContainer = FALSE; @@ -535,7 +535,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->iconSet = ""; r->name = "TQScrollView"; - r->includeFile = "qscrollview.h"; + r->includeFile = "tqscrollview.h"; r->group = widgetGroup( "Temp" ); r->isContainer = TRUE; @@ -545,7 +545,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->iconSet = ""; r->name = "TQDataBrowser"; - r->includeFile = "qdatabrowser.h"; + r->includeFile = "tqdatabrowser.h"; r->group = widgetGroup( "Database" ); r->toolTip = "Data Browser"; r->iconSet = "designer_databrowser.png"; @@ -556,7 +556,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->iconSet = ""; r->name = "TQDataView"; - r->includeFile = "qdataview.h"; + r->includeFile = "tqdataview.h"; r->group = widgetGroup( "Database" ); r->toolTip = "Data View"; r->iconSet = "designer_dataview.png"; diff --git a/pyuic3/widgetdatabase.h b/pytquic3/widgetdatabase.h index 18b63af..18b63af 100644 --- a/pyuic3/widgetdatabase.h +++ b/pytquic3/widgetdatabase.h diff --git a/pyuic3/widgetinterface.h b/pytquic3/widgetinterface.h index 50f8e6d..50f8e6d 100644 --- a/pyuic3/widgetinterface.h +++ b/pytquic3/widgetinterface.h diff --git a/sip/pyqt-gpl.sip b/sip/pytqt-gpl.sip index bec8f9e..bec8f9e 100644 --- a/sip/pyqt-gpl.sip +++ b/sip/pytqt-gpl.sip diff --git a/sip/qt/qtmod.sip b/sip/qt/qtmod.sip deleted file mode 100644 index c91847c..0000000 --- a/sip/qt/qtmod.sip +++ /dev/null @@ -1,279 +0,0 @@ -// 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 PyTQt. -// -// This copy of PyTQt is free software; you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2, or (at your option) any later -// version. -// -// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -// details. -// -// You should have received a copy of the GNU General Public License along with -// 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 PyTQt.qt 2 - -%Plugin PyTQt3 - -%Include versions.sip -%Include copying.sip - - -unsigned PYTQT_VERSION; -const char *PYTQT_VERSION_STR; - -%ModuleCode -static unsigned PYTQT_VERSION = 0x031201; -static const char *PYTQT_VERSION_STR = "3.18.1"; -%End - - -// Hook into the VendorID package if it is enabled. -%Feature VendorID - -%If (VendorID) - -%ModuleCode -#include <vendorid.h> -%End - -%PreInitialisationCode - if (!vendorid_check()) - { - PyErr_SetString(PyExc_RuntimeError, "PyTQt cannot be used with this Python interpreter"); - return; - } -%End - -%End - -%DefaultMetatype qt.pyqtWrapperType -%DefaultSupertype qt.pyqtWrapper - -// Include the interface definitions for each class. - -// These contain enum and type definitions that need to be defined before they -// are used so they do not seem to be classes. - -%Include qglobal.sip -%Include qnamespace.sip -%Include qwindowdefs.sip -%Include qpen.sip - -%Include qpaintdevice.sip - -%Include qpixmap.sip -%Include qbitmap.sip - -%Include qsize.sip -%Include qsizepolicy.sip - -%Include qaccel.sip -%Include qaction.sip -%Include qapplication.sip -%Include qassistantclient.sip -%Include qbrush.sip -%Include qbutton.sip -%Include qbuttongroup.sip -%Include qbytearray.sip -%Include qcdestyle.sip -%Include qcheckbox.sip -%Include qclipboard.sip -%Include qcolor.sip -%Include qcolordialog.sip -%Include qcolorgroup.sip -%Include qcombobox.sip -%Include qcommonstyle.sip -%Include qcstring.sip -%Include qcursor.sip -%Include qdatastream.sip -%Include qdatetime.sip -%Include qdatetimeedit.sip -%Include qdesktopwidget.sip -%Include qdial.sip -%Include qdialog.sip -%Include qdir.sip -%Include qdockarea.sip -%Include qdockwindow.sip -%Include qdragobject.sip -%Include qdrawutil.sip -%Include qdropsite.sip -%Include qerrormessage.sip -%Include qevent.sip -%Include qeventloop.sip -%Include qfile.sip -%Include qfiledialog.sip -%Include qfileinfo.sip -%Include qfont.sip -%Include qfontdatabase.sip -%Include qfontdialog.sip -%Include qfontinfo.sip -%Include qfontmetrics.sip -%Include qframe.sip -%Include qgrid.sip -%Include qgridview.sip -%Include qgroupbox.sip -%Include qhbox.sip -%Include qhbuttongroup.sip -%Include qheader.sip -%Include qhgroupbox.sip -%Include qiconset.sip -%Include qiconview.sip -%Include qimage.sip -%Include qinputdialog.sip -%Include qinterlacestyle.sip -%Include qiodevice.sip -%Include qkeysequence.sip -%Include qlabel.sip -%Include qlayout.sip -%Include qlcdnumber.sip -%Include qlibrary.sip -%Include qlineedit.sip -%Include qlistbox.sip -%Include qlistview.sip -%Include qlocale.sip -%Include qmainwindow.sip -%Include qmemarray.sip -%Include qmenubar.sip -%Include qmenudata.sip -%Include qmessagebox.sip -%Include qmetaobject.sip -%Include qmime.sip -%Include qmotifplusstyle.sip -%Include qmotifstyle.sip -%Include qmovie.sip -%Include qmutex.sip -%Include qmultilinedit.sip -%Include qnetworkprotocol.sip -%Include qobject.sip -%Include qobjectcleanuphandler.sip -%Include qobjectlist.sip -%Include qpaintdevicemetrics.sip -%Include qpainter.sip -%Include qpair.sip -%Include qpalette.sip -%Include qpicture.sip -%Include qpixmapcache.sip -%Include qplatinumstyle.sip -%Include qpoint.sip -%Include qpointarray.sip -%Include qpopupmenu.sip -%Include qprintdialog.sip -%Include qprinter.sip -%Include qprocess.sip -%Include qprogressbar.sip -%Include qprogressdialog.sip -%Include qptrlist.sip -%Include qpushbutton.sip -%Include qradiobutton.sip -%Include qrangecontrol.sip -%Include qrect.sip -%Include qregexp.sip -%Include qregion.sip -%Include qscrollbar.sip -%Include qscrollview.sip -%Include qsemaphore.sip -%Include qsessionmanager.sip -%Include qsettings.sip -%Include qsgistyle.sip -%Include qsignalmapper.sip -%Include qsimplerichtext.sip -%Include qsizegrip.sip -%Include qslider.sip -%Include qsocketnotifier.sip -%Include qsound.sip -%Include qspinbox.sip -%Include qsplashscreen.sip -%Include qsplitter.sip -%Include qstatusbar.sip -%Include qstring.sip -%Include qstringlist.sip -%Include qstrlist.sip -%Include qstyle.sip -%Include qstylefactory.sip -%Include qstylesheet.sip -%Include qsyntaxhighlighter.sip -%Include qtabbar.sip -%Include qtabdialog.sip -%Include qtabwidget.sip -%Include qtextbrowser.sip -%Include qtextcodec.sip -%Include qtextedit.sip -%Include qtextstream.sip -%Include qtextview.sip -%Include qthread.sip -%Include qtimer.sip -%Include qtoolbar.sip -%Include qtoolbox.sip -%Include qtoolbutton.sip -%Include qtooltip.sip -%Include qtranslator.sip -%Include qurl.sip -%Include qurlinfo.sip -%Include qurloperator.sip -%Include quuid.sip -%Include qvalidator.sip -%Include qvaluelist.sip -%Include qvariant.sip -%Include qvbox.sip -%Include qvbuttongroup.sip -%Include qvgroupbox.sip -%Include qwaitcondition.sip -%Include qwhatsthis.sip -%Include qwidget.sip -%Include qwidgetlist.sip -%Include qwidgetstack.sip -%Include qwindowsstyle.sip -%Include qwindowsxpstyle.sip -%Include qwizard.sip -%Include qwmatrix.sip -%Include qworkspace.sip - - -// The build file templates. - -%Makefile qt.pro.in -# The project file for the qt module. -# -# Copyright (c) 2007 -# Riverbank Computing Limited <info@riverbankcomputing.co.uk> -# -# This file is part of PyTQt. -# -# This copy of PyTQt is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the Free -# Software Foundation; either version 2, or (at your option) any later -# version. -# -# PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -# details. -# -# You should have received a copy of the GNU General Public License along with -# PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - -TEMPLATE = lib -TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ -INCLUDEPATH = @BLX_INCLUDEPATH@ -DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QASSISTANTCLIENT_LIB@ @BLX_LIBS@ -macx:QMAKE_LFLAGS += -framework Python - -SOURCES = $B - -HEADERS = $H -%End diff --git a/sip/qtgl/copying.sip b/sip/qtgl/copying.sip deleted file mode 100644 index 6da646e..0000000 --- a/sip/qtgl/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyTQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyTQt. -// -// This copy of PyTQt is free software; you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2, or (at your option) any later -// version. -// -// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -// details. -// -// You should have received a copy of the GNU General Public License along with -// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited <info@riverbankcomputing.co.uk> - -This file is part of PyTQt. - -This copy of PyTQt is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the Free -Software Foundation; either version 2, or (at your option) any later -version. - -PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -details. - -You should have received a copy of the GNU General Public License along with -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 - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/sip/qtnetwork/copying.sip b/sip/qtnetwork/copying.sip deleted file mode 100644 index 6da646e..0000000 --- a/sip/qtnetwork/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyTQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyTQt. -// -// This copy of PyTQt is free software; you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2, or (at your option) any later -// version. -// -// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -// details. -// -// You should have received a copy of the GNU General Public License along with -// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited <info@riverbankcomputing.co.uk> - -This file is part of PyTQt. - -This copy of PyTQt is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the Free -Software Foundation; either version 2, or (at your option) any later -version. - -PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -details. - -You should have received a copy of the GNU General Public License along with -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 - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/sip/qtpe/copying.sip b/sip/qtpe/copying.sip deleted file mode 100644 index 6da646e..0000000 --- a/sip/qtpe/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyTQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyTQt. -// -// This copy of PyTQt is free software; you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2, or (at your option) any later -// version. -// -// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -// details. -// -// You should have received a copy of the GNU General Public License along with -// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited <info@riverbankcomputing.co.uk> - -This file is part of PyTQt. - -This copy of PyTQt is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the Free -Software Foundation; either version 2, or (at your option) any later -version. - -PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -details. - -You should have received a copy of the GNU General Public License along with -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 - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/sip/qtsql/copying.sip b/sip/qtsql/copying.sip deleted file mode 100644 index 6da646e..0000000 --- a/sip/qtsql/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyTQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyTQt. -// -// This copy of PyTQt is free software; you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2, or (at your option) any later -// version. -// -// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -// details. -// -// You should have received a copy of the GNU General Public License along with -// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited <info@riverbankcomputing.co.uk> - -This file is part of PyTQt. - -This copy of PyTQt is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the Free -Software Foundation; either version 2, or (at your option) any later -version. - -PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -details. - -You should have received a copy of the GNU General Public License along with -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 - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/sip/qttable/copying.sip b/sip/qttable/copying.sip deleted file mode 100644 index 6da646e..0000000 --- a/sip/qttable/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyTQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyTQt. -// -// This copy of PyTQt is free software; you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2, or (at your option) any later -// version. -// -// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -// details. -// -// You should have received a copy of the GNU General Public License along with -// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited <info@riverbankcomputing.co.uk> - -This file is part of PyTQt. - -This copy of PyTQt is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the Free -Software Foundation; either version 2, or (at your option) any later -version. - -PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -details. - -You should have received a copy of the GNU General Public License along with -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 - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/sip/qtui/copying.sip b/sip/qtui/copying.sip deleted file mode 100644 index 6da646e..0000000 --- a/sip/qtui/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyTQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyTQt. -// -// This copy of PyTQt is free software; you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2, or (at your option) any later -// version. -// -// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -// details. -// -// You should have received a copy of the GNU General Public License along with -// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited <info@riverbankcomputing.co.uk> - -This file is part of PyTQt. - -This copy of PyTQt is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the Free -Software Foundation; either version 2, or (at your option) any later -version. - -PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -details. - -You should have received a copy of the GNU General Public License along with -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 - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/sip/qtxml/copying.sip b/sip/qtxml/copying.sip deleted file mode 100644 index 6da646e..0000000 --- a/sip/qtxml/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyTQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyTQt. -// -// This copy of PyTQt is free software; you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2, or (at your option) any later -// version. -// -// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -// details. -// -// You should have received a copy of the GNU General Public License along with -// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited <info@riverbankcomputing.co.uk> - -This file is part of PyTQt. - -This copy of PyTQt is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the Free -Software Foundation; either version 2, or (at your option) any later -version. - -PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY -WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -details. - -You should have received a copy of the GNU General Public License along with -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 - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/sip/qtaxcontainer/copying.sip b/sip/tqt/copying.sip index 6da646e..49b4531 100644 --- a/sip/qtaxcontainer/copying.sip +++ b/sip/tqt/copying.sip @@ -42,10 +42,10 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %End -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip +%OptionalInclude pytqt-internal.sip +%OptionalInclude pytqt-gpl.sip +%OptionalInclude pytqt-commercial.sip +%OptionalInclude pytqt-edu.sip +%OptionalInclude pytqt-eval.sip +%OptionalInclude pytqt-nc.sip +%OptionalInclude pytqt-tkc.sip diff --git a/sip/qt/qaccel.sip b/sip/tqt/tqaccel.sip index a10a9b9..a10a9b9 100644 --- a/sip/qt/qaccel.sip +++ b/sip/tqt/tqaccel.sip diff --git a/sip/qt/qaction.sip b/sip/tqt/tqaction.sip index f74ca72..f74ca72 100644 --- a/sip/qt/qaction.sip +++ b/sip/tqt/tqaction.sip diff --git a/sip/qt/qapplication.sip b/sip/tqt/tqapplication.sip index 28e0d67..8875566 100644 --- a/sip/qt/qapplication.sip +++ b/sip/tqt/tqapplication.sip @@ -419,37 +419,37 @@ enum TQtMsgType { }; -SIP_PYCALLABLE qInstallMsgHandler(SIP_PYCALLABLE /AllowNone/); +SIP_PYCALLABLE tqInstallMsgHandler(SIP_PYCALLABLE /AllowNone/); %MethodCode void (*old)(TQtMsgType, const char *); // Treat None as the default handler. - old = qInstallMsgHandler((a0 != Py_None) ? pyqtMsgHandler : 0); + old = tqInstallMsgHandler((a0 != Py_None) ? pytqtMsgHandler : 0); // If we recognise the old handler, then return it. Otherwise return // 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; + sipRes = (old == pytqtMsgHandler) ? pytqtPyMsgHandler : Py_None; Py_INCREF(sipRes); // Save the new Python handler. - Py_XDECREF(pyqtPyMsgHandler); - pyqtPyMsgHandler = a0; - Py_INCREF(pyqtPyMsgHandler); + Py_XDECREF(pytqtPyMsgHandler); + pytqtPyMsgHandler = a0; + Py_INCREF(pytqtPyMsgHandler); %End %ModuleCode // The user supplied Python handler. -static PyObject *pyqtPyMsgHandler = 0; +static PyObject *pytqtPyMsgHandler = 0; // The C++ wrapper around the Python handler. -static void pyqtMsgHandler(TQtMsgType type, const char *msg) +static void pytqtMsgHandler(TQtMsgType type, const char *msg) { PyObject *res; SIP_BLOCK_THREADS - res = sipCallMethod(0, pyqtPyMsgHandler, "Es", type, sipEnum_TQtMsgType, msg); + res = sipCallMethod(0, pytqtPyMsgHandler, "Es", type, sipEnum_TQtMsgType, msg); Py_XDECREF(res); diff --git a/sip/qt/qassistantclient.sip b/sip/tqt/tqassistantclient.sip index 3815962..3815962 100644 --- a/sip/qt/qassistantclient.sip +++ b/sip/tqt/tqassistantclient.sip diff --git a/sip/qt/qbitmap.sip b/sip/tqt/tqbitmap.sip index 3b499ba..3b499ba 100644 --- a/sip/qt/qbitmap.sip +++ b/sip/tqt/tqbitmap.sip diff --git a/sip/qt/qbrush.sip b/sip/tqt/tqbrush.sip index 44d8f91..44d8f91 100644 --- a/sip/qt/qbrush.sip +++ b/sip/tqt/tqbrush.sip diff --git a/sip/qt/qbutton.sip b/sip/tqt/tqbutton.sip index 47c475f..47c475f 100644 --- a/sip/qt/qbutton.sip +++ b/sip/tqt/tqbutton.sip diff --git a/sip/qt/qbuttongroup.sip b/sip/tqt/tqbuttongroup.sip index 74fae53..74fae53 100644 --- a/sip/qt/qbuttongroup.sip +++ b/sip/tqt/tqbuttongroup.sip diff --git a/sip/qt/qbytearray.sip b/sip/tqt/tqbytearray.sip index f25ecd6..f25ecd6 100644 --- a/sip/qt/qbytearray.sip +++ b/sip/tqt/tqbytearray.sip diff --git a/sip/qt/qcdestyle.sip b/sip/tqt/tqcdestyle.sip index b11af4c..b11af4c 100644 --- a/sip/qt/qcdestyle.sip +++ b/sip/tqt/tqcdestyle.sip diff --git a/sip/qt/qcheckbox.sip b/sip/tqt/tqcheckbox.sip index 237a4b8..237a4b8 100644 --- a/sip/qt/qcheckbox.sip +++ b/sip/tqt/tqcheckbox.sip diff --git a/sip/qt/qclipboard.sip b/sip/tqt/tqclipboard.sip index 73057fa..73057fa 100644 --- a/sip/qt/qclipboard.sip +++ b/sip/tqt/tqclipboard.sip diff --git a/sip/qt/qcolor.sip b/sip/tqt/tqcolor.sip index 8fb53d2..8fb53d2 100644 --- a/sip/qt/qcolor.sip +++ b/sip/tqt/tqcolor.sip diff --git a/sip/qt/qcolordialog.sip b/sip/tqt/tqcolordialog.sip index ff77210..ff77210 100644 --- a/sip/qt/qcolordialog.sip +++ b/sip/tqt/tqcolordialog.sip diff --git a/sip/qt/qcolorgroup.sip b/sip/tqt/tqcolorgroup.sip index 8ab220b..8ab220b 100644 --- a/sip/qt/qcolorgroup.sip +++ b/sip/tqt/tqcolorgroup.sip diff --git a/sip/qt/qcombobox.sip b/sip/tqt/tqcombobox.sip index cc878ed..cc878ed 100644 --- a/sip/qt/qcombobox.sip +++ b/sip/tqt/tqcombobox.sip diff --git a/sip/qt/qcommonstyle.sip b/sip/tqt/tqcommonstyle.sip index 9eb4463..9eb4463 100644 --- a/sip/qt/qcommonstyle.sip +++ b/sip/tqt/tqcommonstyle.sip diff --git a/sip/qt/qcstring.sip b/sip/tqt/tqcstring.sip index 19387ae..19387ae 100644 --- a/sip/qt/qcstring.sip +++ b/sip/tqt/tqcstring.sip diff --git a/sip/qt/qcursor.sip b/sip/tqt/tqcursor.sip index 3a8d9ca..3a8d9ca 100644 --- a/sip/qt/qcursor.sip +++ b/sip/tqt/tqcursor.sip diff --git a/sip/qt/qdatastream.sip b/sip/tqt/tqdatastream.sip index 8a1479b..8a1479b 100644 --- a/sip/qt/qdatastream.sip +++ b/sip/tqt/tqdatastream.sip diff --git a/sip/qt/qdatetime.sip b/sip/tqt/tqdatetime.sip index 3df731d..3df731d 100644 --- a/sip/qt/qdatetime.sip +++ b/sip/tqt/tqdatetime.sip diff --git a/sip/qt/qdatetimeedit.sip b/sip/tqt/tqdatetimeedit.sip index c32fcef..c32fcef 100644 --- a/sip/qt/qdatetimeedit.sip +++ b/sip/tqt/tqdatetimeedit.sip diff --git a/sip/qt/qdesktopwidget.sip b/sip/tqt/tqdesktopwidget.sip index ff8a3fa..ff8a3fa 100644 --- a/sip/qt/qdesktopwidget.sip +++ b/sip/tqt/tqdesktopwidget.sip diff --git a/sip/qt/qdial.sip b/sip/tqt/tqdial.sip index d0f8913..d0f8913 100644 --- a/sip/qt/qdial.sip +++ b/sip/tqt/tqdial.sip diff --git a/sip/qt/qdialog.sip b/sip/tqt/tqdialog.sip index aa26196..aa26196 100644 --- a/sip/qt/qdialog.sip +++ b/sip/tqt/tqdialog.sip diff --git a/sip/qt/qdir.sip b/sip/tqt/tqdir.sip index 1d4c8db..1d4c8db 100644 --- a/sip/qt/qdir.sip +++ b/sip/tqt/tqdir.sip diff --git a/sip/qt/qdockarea.sip b/sip/tqt/tqdockarea.sip index 7c01b85..7c01b85 100644 --- a/sip/qt/qdockarea.sip +++ b/sip/tqt/tqdockarea.sip diff --git a/sip/qt/qdockwindow.sip b/sip/tqt/tqdockwindow.sip index 1f078aa..1f078aa 100644 --- a/sip/qt/qdockwindow.sip +++ b/sip/tqt/tqdockwindow.sip diff --git a/sip/qt/qdragobject.sip b/sip/tqt/tqdragobject.sip index da9e266..da9e266 100644 --- a/sip/qt/qdragobject.sip +++ b/sip/tqt/tqdragobject.sip diff --git a/sip/qt/qdrawutil.sip b/sip/tqt/tqdrawutil.sip index 34e3033..34e3033 100644 --- a/sip/qt/qdrawutil.sip +++ b/sip/tqt/tqdrawutil.sip diff --git a/sip/qt/qdropsite.sip b/sip/tqt/tqdropsite.sip index dd216a9..dd216a9 100644 --- a/sip/qt/qdropsite.sip +++ b/sip/tqt/tqdropsite.sip diff --git a/sip/qt/qerrormessage.sip b/sip/tqt/tqerrormessage.sip index b6eb433..b6eb433 100644 --- a/sip/qt/qerrormessage.sip +++ b/sip/tqt/tqerrormessage.sip diff --git a/sip/qt/qevent.sip b/sip/tqt/tqevent.sip index 7fa9592..7fa9592 100644 --- a/sip/qt/qevent.sip +++ b/sip/tqt/tqevent.sip diff --git a/sip/qt/qeventloop.sip b/sip/tqt/tqeventloop.sip index 2146996..2146996 100644 --- a/sip/qt/qeventloop.sip +++ b/sip/tqt/tqeventloop.sip diff --git a/sip/qt/qfile.sip b/sip/tqt/tqfile.sip index 5536c98..5536c98 100644 --- a/sip/qt/qfile.sip +++ b/sip/tqt/tqfile.sip diff --git a/sip/qt/qfiledialog.sip b/sip/tqt/tqfiledialog.sip index 920a218..920a218 100644 --- a/sip/qt/qfiledialog.sip +++ b/sip/tqt/tqfiledialog.sip diff --git a/sip/qt/qfileinfo.sip b/sip/tqt/tqfileinfo.sip index 38b4609..38b4609 100644 --- a/sip/qt/qfileinfo.sip +++ b/sip/tqt/tqfileinfo.sip diff --git a/sip/qt/qfont.sip b/sip/tqt/tqfont.sip index cb2fe5c..cb2fe5c 100644 --- a/sip/qt/qfont.sip +++ b/sip/tqt/tqfont.sip diff --git a/sip/qt/qfontdatabase.sip b/sip/tqt/tqfontdatabase.sip index da6501f..da6501f 100644 --- a/sip/qt/qfontdatabase.sip +++ b/sip/tqt/tqfontdatabase.sip diff --git a/sip/qt/qfontdialog.sip b/sip/tqt/tqfontdialog.sip index fdc0cb8..fdc0cb8 100644 --- a/sip/qt/qfontdialog.sip +++ b/sip/tqt/tqfontdialog.sip diff --git a/sip/qt/qfontinfo.sip b/sip/tqt/tqfontinfo.sip index 7f714d4..7f714d4 100644 --- a/sip/qt/qfontinfo.sip +++ b/sip/tqt/tqfontinfo.sip diff --git a/sip/qt/qfontmetrics.sip b/sip/tqt/tqfontmetrics.sip index 18e5b4e..18e5b4e 100644 --- a/sip/qt/qfontmetrics.sip +++ b/sip/tqt/tqfontmetrics.sip diff --git a/sip/qt/qframe.sip b/sip/tqt/tqframe.sip index ca47416..ca47416 100644 --- a/sip/qt/qframe.sip +++ b/sip/tqt/tqframe.sip diff --git a/sip/qt/qglobal.sip b/sip/tqt/tqglobal.sip index 711f26d..711f26d 100644 --- a/sip/qt/qglobal.sip +++ b/sip/tqt/tqglobal.sip diff --git a/sip/qt/qgrid.sip b/sip/tqt/tqgrid.sip index 9047b70..9047b70 100644 --- a/sip/qt/qgrid.sip +++ b/sip/tqt/tqgrid.sip diff --git a/sip/qt/qgridview.sip b/sip/tqt/tqgridview.sip index ba73e64..ba73e64 100644 --- a/sip/qt/qgridview.sip +++ b/sip/tqt/tqgridview.sip diff --git a/sip/qt/qgroupbox.sip b/sip/tqt/tqgroupbox.sip index f4fdc61..f4fdc61 100644 --- a/sip/qt/qgroupbox.sip +++ b/sip/tqt/tqgroupbox.sip diff --git a/sip/qt/qhbox.sip b/sip/tqt/tqhbox.sip index 884db2e..884db2e 100644 --- a/sip/qt/qhbox.sip +++ b/sip/tqt/tqhbox.sip diff --git a/sip/qt/qhbuttongroup.sip b/sip/tqt/tqhbuttongroup.sip index 3cdcd49..3cdcd49 100644 --- a/sip/qt/qhbuttongroup.sip +++ b/sip/tqt/tqhbuttongroup.sip diff --git a/sip/qt/qheader.sip b/sip/tqt/tqheader.sip index 2161dd3..2161dd3 100644 --- a/sip/qt/qheader.sip +++ b/sip/tqt/tqheader.sip diff --git a/sip/qt/qhgroupbox.sip b/sip/tqt/tqhgroupbox.sip index e287673..e287673 100644 --- a/sip/qt/qhgroupbox.sip +++ b/sip/tqt/tqhgroupbox.sip diff --git a/sip/qt/qiconset.sip b/sip/tqt/tqiconset.sip index 8fdba3a..8fdba3a 100644 --- a/sip/qt/qiconset.sip +++ b/sip/tqt/tqiconset.sip diff --git a/sip/qt/qiconview.sip b/sip/tqt/tqiconview.sip index ceb6791..ceb6791 100644 --- a/sip/qt/qiconview.sip +++ b/sip/tqt/tqiconview.sip diff --git a/sip/qt/qimage.sip b/sip/tqt/tqimage.sip index 9fb7907..2164d09 100644 --- a/sip/qt/qimage.sip +++ b/sip/tqt/tqimage.sip @@ -158,7 +158,7 @@ public: const char **str; - if ((str = PyTQt_qt_ListToArray(a0)) == NULL) + if ((str = PyTQt_tqt_ListToArray(a0)) == NULL) sipIsErr = 1; else { @@ -409,14 +409,14 @@ public: %ModuleHeaderCode -const char **PyTQt_qt_ListToArray(PyObject *lst); +const char **PyTQt_tqt_ListToArray(PyObject *lst); %End %ModuleCode // Convert a list of strings to an array of strings on the heap. Also used by // TQPixmap. -const char **PyTQt_qt_ListToArray(PyObject *lst) +const char **PyTQt_tqt_ListToArray(PyObject *lst) { SIP_SSIZE_T nstr; const char **str, **sp; diff --git a/sip/qt/qinputdialog.sip b/sip/tqt/tqinputdialog.sip index f64baa7..f64baa7 100644 --- a/sip/qt/qinputdialog.sip +++ b/sip/tqt/tqinputdialog.sip diff --git a/sip/qt/qinterlacestyle.sip b/sip/tqt/tqinterlacestyle.sip index 7e4445f..7e4445f 100644 --- a/sip/qt/qinterlacestyle.sip +++ b/sip/tqt/tqinterlacestyle.sip diff --git a/sip/qt/qiodevice.sip b/sip/tqt/tqiodevice.sip index 30ca235..30ca235 100644 --- a/sip/qt/qiodevice.sip +++ b/sip/tqt/tqiodevice.sip diff --git a/sip/qt/qkeysequence.sip b/sip/tqt/tqkeysequence.sip index 8b94cfd..8b94cfd 100644 --- a/sip/qt/qkeysequence.sip +++ b/sip/tqt/tqkeysequence.sip diff --git a/sip/qt/qlabel.sip b/sip/tqt/tqlabel.sip index 849b3a7..849b3a7 100644 --- a/sip/qt/qlabel.sip +++ b/sip/tqt/tqlabel.sip diff --git a/sip/qt/qlayout.sip b/sip/tqt/tqlayout.sip index 82b86f2..82b86f2 100644 --- a/sip/qt/qlayout.sip +++ b/sip/tqt/tqlayout.sip diff --git a/sip/qt/qlcdnumber.sip b/sip/tqt/tqlcdnumber.sip index ef8cb79..ef8cb79 100644 --- a/sip/qt/qlcdnumber.sip +++ b/sip/tqt/tqlcdnumber.sip diff --git a/sip/qt/qlibrary.sip b/sip/tqt/tqlibrary.sip index 4d0a4cc..4d0a4cc 100644 --- a/sip/qt/qlibrary.sip +++ b/sip/tqt/tqlibrary.sip diff --git a/sip/qt/qlineedit.sip b/sip/tqt/tqlineedit.sip index 23488c3..23488c3 100644 --- a/sip/qt/qlineedit.sip +++ b/sip/tqt/tqlineedit.sip diff --git a/sip/qt/qlistbox.sip b/sip/tqt/tqlistbox.sip index 9efb272..9efb272 100644 --- a/sip/qt/qlistbox.sip +++ b/sip/tqt/tqlistbox.sip diff --git a/sip/qt/qlistview.sip b/sip/tqt/tqlistview.sip index fa2a5ab..fa2a5ab 100644 --- a/sip/qt/qlistview.sip +++ b/sip/tqt/tqlistview.sip diff --git a/sip/qt/qlocale.sip b/sip/tqt/tqlocale.sip index 5352ac0..5352ac0 100644 --- a/sip/qt/qlocale.sip +++ b/sip/tqt/tqlocale.sip diff --git a/sip/qt/qmainwindow.sip b/sip/tqt/tqmainwindow.sip index b271b6c..b271b6c 100644 --- a/sip/qt/qmainwindow.sip +++ b/sip/tqt/tqmainwindow.sip diff --git a/sip/qt/qmemarray.sip b/sip/tqt/tqmemarray.sip index aebbcb4..aebbcb4 100644 --- a/sip/qt/qmemarray.sip +++ b/sip/tqt/tqmemarray.sip diff --git a/sip/qt/qmenubar.sip b/sip/tqt/tqmenubar.sip index a008e46..a008e46 100644 --- a/sip/qt/qmenubar.sip +++ b/sip/tqt/tqmenubar.sip diff --git a/sip/qt/qmenudata.sip b/sip/tqt/tqmenudata.sip index 7363902..7363902 100644 --- a/sip/qt/qmenudata.sip +++ b/sip/tqt/tqmenudata.sip diff --git a/sip/qt/qmessagebox.sip b/sip/tqt/tqmessagebox.sip index 5844107..5844107 100644 --- a/sip/qt/qmessagebox.sip +++ b/sip/tqt/tqmessagebox.sip diff --git a/sip/qt/qmetaobject.sip b/sip/tqt/tqmetaobject.sip index 56e96e6..56e96e6 100644 --- a/sip/qt/qmetaobject.sip +++ b/sip/tqt/tqmetaobject.sip diff --git a/sip/qt/qmime.sip b/sip/tqt/tqmime.sip index 630b6f2..630b6f2 100644 --- a/sip/qt/qmime.sip +++ b/sip/tqt/tqmime.sip diff --git a/sip/qt/qmotifplusstyle.sip b/sip/tqt/tqmotifplusstyle.sip index d4d847b..d4d847b 100644 --- a/sip/qt/qmotifplusstyle.sip +++ b/sip/tqt/tqmotifplusstyle.sip diff --git a/sip/qt/qmotifstyle.sip b/sip/tqt/tqmotifstyle.sip index e018a8e..e018a8e 100644 --- a/sip/qt/qmotifstyle.sip +++ b/sip/tqt/tqmotifstyle.sip diff --git a/sip/qt/qmovie.sip b/sip/tqt/tqmovie.sip index 6107321..6107321 100644 --- a/sip/qt/qmovie.sip +++ b/sip/tqt/tqmovie.sip diff --git a/sip/qt/qmultilinedit.sip b/sip/tqt/tqmultilinedit.sip index 4b3b4f7..4b3b4f7 100644 --- a/sip/qt/qmultilinedit.sip +++ b/sip/tqt/tqmultilinedit.sip diff --git a/sip/qt/qmutex.sip b/sip/tqt/tqmutex.sip index 9d2051c..9d2051c 100644 --- a/sip/qt/qmutex.sip +++ b/sip/tqt/tqmutex.sip diff --git a/sip/qt/qnamespace.sip b/sip/tqt/tqnamespace.sip index 695c71f..604b42f 100644 --- a/sip/qt/qnamespace.sip +++ b/sip/tqt/tqnamespace.sip @@ -108,7 +108,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/pytquic, so we implement the minimum required. enum WidgetState { WState_Polished }; diff --git a/sip/qt/qnetworkprotocol.sip b/sip/tqt/tqnetworkprotocol.sip index 034f0f3..034f0f3 100644 --- a/sip/qt/qnetworkprotocol.sip +++ b/sip/tqt/tqnetworkprotocol.sip diff --git a/sip/qt/qobject.sip b/sip/tqt/tqobject.sip index c0c30e5..2fb2ac2 100644 --- a/sip/qt/qobject.sip +++ b/sip/tqt/tqobject.sip @@ -304,7 +304,7 @@ public: #else {NULL, NULL, -1, -1}, #endif -#if defined(PYQT_STYLE_WINDOWSXP) +#if defined(PYTQT_STYLE_WINDOWSXP) {sipName_TQWindowsXPStyle, &sipClass_TQWindowsXPStyle, -1, -1}, #else {NULL, NULL, -1, -1}, @@ -350,7 +350,7 @@ public: %MethodCode if (tqApp) { - const char *source = PyTQt_qt_encode(&a0, TQApplication::DefaultCodec); + const char *source = PyTQt_tqt_encode(&a0, TQApplication::DefaultCodec); if (source) { @@ -369,7 +369,7 @@ public: if (source) { - sipRes = new TQString(QString::fromUtf8(source)); + sipRes = new TQString(TQString::fromUtf8(source)); Py_DECREF(a0); } else @@ -383,7 +383,7 @@ public: %MethodCode if (tqApp) { - const char *source = PyTQt_qt_encode(&a0, TQApplication::DefaultCodec); + const char *source = PyTQt_tqt_encode(&a0, TQApplication::DefaultCodec); if (source) { @@ -525,27 +525,27 @@ public: void installEventFilter(const TQObject *); void removeEventFilter(const TQObject *); - static SIP_PYOBJECT connect(SIP_QOBJECT,SIP_SIGNAL,SIP_QOBJECT,SIP_SLOT); + static SIP_PYOBJECT connect(SIP_TQOBJECT,SIP_SIGNAL,SIP_TQOBJECT,SIP_SLOT); %MethodCode sipRes = sipConnectRx(a0,a1,a2,a3,0); %End - static SIP_PYOBJECT connect(SIP_QOBJECT,SIP_SIGNAL,SIP_PYCALLABLE); + static SIP_PYOBJECT connect(SIP_TQOBJECT,SIP_SIGNAL,SIP_PYCALLABLE); %MethodCode sipRes = sipConnectRx(a0,a1,a2,0,0); %End - SIP_PYOBJECT connect(SIP_QOBJECT,SIP_SIGNAL,SIP_SLOT) const; + SIP_PYOBJECT connect(SIP_TQOBJECT,SIP_SIGNAL,SIP_SLOT) const; %MethodCode sipRes = sipConnectRx(a0,a1,sipSelf,a2,0); %End - static SIP_PYOBJECT disconnect(SIP_QOBJECT,SIP_SIGNAL,SIP_QOBJECT,SIP_SLOT); + static SIP_PYOBJECT disconnect(SIP_TQOBJECT,SIP_SIGNAL,SIP_TQOBJECT,SIP_SLOT); %MethodCode sipRes = sipDisconnectRx(a0,a1,a2,a3); %End - static SIP_PYOBJECT disconnect(SIP_QOBJECT,SIP_SIGNAL,SIP_PYCALLABLE); + static SIP_PYOBJECT disconnect(SIP_TQOBJECT,SIP_SIGNAL,SIP_PYCALLABLE); %MethodCode sipRes = sipDisconnectRx(a0,a1,a2,0); %End @@ -558,7 +558,7 @@ public: void emit(SIP_SIGNAL,SIP_PYTUPLE); %MethodCode - if (pyqt3EmitSignal(sipSelf, a0, a1) < 0) + if (pytqtEmitSignal(sipSelf, a0, a1) < 0) sipIsErr = 1; %End @@ -579,7 +579,7 @@ public: // method. SIP_PYOBJECT sender(); %MethodCode - sipRes = pyqt3GetSender(); + sipRes = pytqt3GetSender(); %End protected: @@ -606,11 +606,11 @@ SIP_PYOBJECT QT_TRANSLATE_NOOP(SIP_PYOBJECT,SIP_PYOBJECT); %End -SIP_PYOBJECT SLOT(const char * /Encoding="ASCII"/) /TypeHint="QT_SLOT"/; +SIP_PYOBJECT SLOT(const char * /Encoding="ASCII"/) /TypeHint="TQT_SLOT"/; %MethodCode if (!a0) { - PyErr_Format(PyExc_TypeError,"qt.SLOT() slot name cannot be None"); + PyErr_Format(PyExc_TypeError,"tqt.SLOT() slot name cannot be None"); sipIsErr = 1; } else @@ -631,11 +631,11 @@ SIP_PYOBJECT SLOT(const char * /Encoding="ASCII"/) /TypeHint="QT_SLOT"/; %End -SIP_PYOBJECT SIGNAL(const char * /Encoding="ASCII"/) /TypeHint="QT_SIGNAL"/; +SIP_PYOBJECT SIGNAL(const char * /Encoding="ASCII"/) /TypeHint="TQT_SIGNAL"/; %MethodCode if (!a0) { - PyErr_Format(PyExc_TypeError,"qt.SIGNAL() signal cannot be None"); + PyErr_Format(PyExc_TypeError,"tqt.SIGNAL() signal cannot be None"); sipIsErr = 1; } else @@ -660,7 +660,7 @@ SIP_PYOBJECT PYSIGNAL(const char * /Encoding="ASCII"/); %MethodCode if (!a0) { - PyErr_Format(PyExc_TypeError,"qt.PYSIGNAL() signal cannot be None"); + PyErr_Format(PyExc_TypeError,"tqt.PYSIGNAL() signal cannot be None"); sipIsErr = 1; } else @@ -683,8 +683,8 @@ SIP_PYOBJECT PYSIGNAL(const char * /Encoding="ASCII"/); %ModuleHeaderCode -int pyqt3EmitSignal(PyObject *self, const char *sig, PyObject *sigargs); -PyObject *pyqt3GetSender(); +int pytqtEmitSignal(PyObject *self, const char *sig, PyObject *sigargs); +PyObject *pytqt3GetSender(); %End @@ -731,9 +731,9 @@ extern "C" { // 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 = { +PyTypeObject pytqtWrapperType_Type = { PyVarObject_HEAD_INIT(NULL, 0) - "qt.pyqtWrapperType", /* tp_name */ + "tqt.pytqtWrapperType", /* tp_name */ sizeof (sipWrapperType), /* tp_basicsize */ 0, /* tp_itemsize */ 0, /* tp_dealloc */ @@ -802,52 +802,52 @@ PyTypeObject pyqtWrapperType_Type = { /* * An entry in a linked list of slots. */ -typedef struct _pyqt3SlotList { +typedef struct _pytqt3SlotList { /* The receiver. */ sipSlot rx; /* Next in the list. */ - struct _pyqt3SlotList *next; -} pyqt3SlotList; + struct _pytqt3SlotList *next; +} pytqt3SlotList; /* * A Python signal. */ -typedef struct _pyqt3PySig { +typedef struct _pytqt3PySig { /* The name of the signal. */ char *name; /* The list of receivers. */ - pyqt3SlotList *rxlist; + pytqt3SlotList *rxlist; /* Next in the list. */ - struct _pyqt3PySig *next; -} pyqt3PySig; + struct _pytqt3PySig *next; +} pytqt3PySig; /* * The C++ wrapper object used by PyTQt3. */ -typedef struct _pyqtWrapper { +typedef struct _pytqtWrapper { /* The super-type. */ sipWrapper super; /* The list of Python signals. */ - pyqt3PySig *pySigList; -} pyqtWrapper; + pytqt3PySig *pySigList; +} pytqtWrapper; /* * Clear any slots connected to any Python signals. */ -static void clear_py_signals_slots(pyqtWrapper *pw) +static void clear_py_signals_slots(pytqtWrapper *pw) { - pyqt3PySig *ps; + pytqt3PySig *ps; for (ps = pw->pySigList; ps != NULL; ps = ps->next) { - pyqt3SlotList *psrx; + pytqt3SlotList *psrx; for (psrx = ps->rxlist; psrx != NULL; psrx = psrx->next) sipClearAnySlotReference(&psrx->rx); @@ -858,9 +858,9 @@ static void clear_py_signals_slots(pyqtWrapper *pw) /* * Find the given Python signal. */ -static pyqt3PySig *find_py_signal(pyqtWrapper *pw, const char *sig) +static pytqt3PySig *find_py_signal(pytqtWrapper *pw, const char *sig) { - pyqt3PySig *ps; + pytqt3PySig *ps; for (ps = pw->pySigList; ps != NULL; ps = ps->next) if (sipTQtSameSignalSlotName(ps->name, sig)) @@ -873,7 +873,7 @@ static pyqt3PySig *find_py_signal(pyqtWrapper *pw, const char *sig) /* * Free an slot list entry. */ -static void free_slot_list(pyqt3SlotList *sl) +static void free_slot_list(pytqt3SlotList *sl) { sipFreeSipslot(&sl->rx); sipFree(sl); @@ -883,7 +883,7 @@ static void free_slot_list(pyqt3SlotList *sl) /* * The instance clear slot. */ -static int pyqtWrapper_clear(pyqtWrapper *self) +static int pytqtWrapper_clear(pytqtWrapper *self) { clear_py_signals_slots(self); @@ -894,14 +894,14 @@ static int pyqtWrapper_clear(pyqtWrapper *self) /* * The instance dealloc slot. */ -static void pyqtWrapper_dealloc(pyqtWrapper *self) +static void pytqtWrapper_dealloc(pytqtWrapper *self) { clear_py_signals_slots(self); while (self->pySigList != NULL) { - pyqt3PySig *ps; - pyqt3SlotList *psrx; + pytqt3PySig *ps; + pytqt3SlotList *psrx; /* Take this one out of the list. */ ps = self->pySigList; @@ -924,17 +924,17 @@ static void pyqtWrapper_dealloc(pyqtWrapper *self) /* * The instance traverse slot. */ -static int pyqtWrapper_traverse(pyqtWrapper *self, visitproc visit, void *arg) +static int pytqtWrapper_traverse(pytqtWrapper *self, visitproc visit, void *arg) { int vret; - pyqt3PySig *ps; + pytqt3PySig *ps; if ((vret = sipWrapper_Type->tp_traverse((PyObject *)self, visit, arg)) != 0) return vret; for (ps = self->pySigList; ps != NULL; ps = ps->next) { - pyqt3SlotList *psrx; + pytqt3SlotList *psrx; for (psrx = ps->rxlist; psrx != NULL; psrx = psrx->next) if ((vret = sipVisitSlot(&psrx->rx, visit, arg)) != 0) @@ -945,16 +945,16 @@ static int pyqtWrapper_traverse(pyqtWrapper *self, visitproc visit, void *arg) } -static sipWrapperType pyqtWrapper_Type = { +static sipWrapperType pytqtWrapper_Type = { #if !defined(STACKLESS) { #endif { - PyVarObject_HEAD_INIT(&pyqtWrapperType_Type, 0) - "qt.pyqtWrapper", /* tp_name */ - sizeof (pyqtWrapper), /* tp_basicsize */ + PyVarObject_HEAD_INIT(&pytqtWrapperType_Type, 0) + "tqt.pytqtWrapper", /* tp_name */ + sizeof (pytqtWrapper), /* tp_basicsize */ 0, /* tp_itemsize */ - (destructor)pyqtWrapper_dealloc, /* tp_dealloc */ + (destructor)pytqtWrapper_dealloc, /* tp_dealloc */ #if PY_VERSION_HEX >= 0x03080000 0, /* tp_vectorcall_offset */ #else @@ -979,8 +979,8 @@ static sipWrapperType pyqtWrapper_Type = { 0, /* tp_as_buffer */ 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 */ + (traverseproc)pytqtWrapper_traverse, /* tp_traverse */ + (inquiry)pytqtWrapper_clear, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ @@ -1027,7 +1027,7 @@ static sipWrapperType pyqtWrapper_Type = { // This enumerates the different dynamic signal argument types. -enum pyqt3SigArgType { +enum pytqt3SigArgType { unknown_sat, char_sat, uchar_sat, @@ -1061,10 +1061,10 @@ enum pyqt3SigArgType { // This defines a single dynamic signal argument type. -struct pyqt3SigArg +struct pytqt3SigArg { // The type. - pyqt3SigArgType atype; + pytqt3SigArgType atype; union { // The Python type for classes. @@ -1080,29 +1080,29 @@ struct pyqt3SigArg // A parsed signal signature. -struct pyqt3Signature { +struct pytqt3Signature { // The number of arguments. int sg_nrargs; // The parsed arguments (heap). - pyqt3SigArg *sg_args; + pytqt3SigArg *sg_args; // The unparsed signature (heap). char *sg_signature; // The next in the list. - pyqt3Signature *sg_next; + pytqt3Signature *sg_next; }; // A connection to a universal slot. -struct pyqt3SlotConnection +struct pytqt3SlotConnection { // The transmitter TQObject. void *sc_transmitter; // The parsed signature. - const pyqt3Signature *sc_signature; + const pytqt3Signature *sc_signature; // The slot. sipSlot sc_slot; @@ -1118,7 +1118,7 @@ struct pyqt3SlotConnection class UniversalSlot : public TQObject { public: - UniversalSlot(TQObject *qtx, pyqt3SlotConnection *conn, const char **member); + UniversalSlot(TQObject *tqtx, pytqt3SlotConnection *conn, const char **member); ~UniversalSlot(); virtual TQMetaObject *metaObject() const @@ -1133,7 +1133,7 @@ public: static UniversalSlot *unislots; UniversalSlot *nextus, *prevus; - pyqt3SlotConnection conn; + pytqt3SlotConnection conn; private: static TQMetaObject *metaObj; @@ -1142,14 +1142,14 @@ private: // Create a universal slot. Note that this will leak if there is no signal // transmitter (ie. no parent) - TQTimer.singleShot() for example. -UniversalSlot::UniversalSlot(TQObject *qtx, pyqt3SlotConnection *connection, const char **member) : TQObject() +UniversalSlot::UniversalSlot(TQObject *tqtx, pytqt3SlotConnection *connection, const char **member) : TQObject() { // Save the connection. conn = *connection; // Detect when the transmitter is destroyed. - if (qtx) - connect(qtx, SIGNAL(destroyed(TQObject *)), SLOT(deleteLater())); + if (tqtx) + connect(tqtx, SIGNAL(destroyed(TQObject *)), SLOT(deleteLater())); // Return the slot to connect to. *member = SLOT(unislot()); @@ -1229,7 +1229,7 @@ bool UniversalSlot::tqt_invoke(int id, TQUObject *qargs) return TQObject::tqt_invoke(id, qargs); bool ok = TRUE; - const pyqt3Signature *psig = conn.sc_signature; + const pytqt3Signature *psig = conn.sc_signature; TQVariant *qv; // Save in case it is asked for later. @@ -1380,8 +1380,8 @@ bool UniversalSlot::tqt_invoke(int id, TQUObject *qargs) } -static pyqt3Signature *parseSignature(const char *sig); -static void parseType(const char *type, pyqt3SigArg *arg); +static pytqt3Signature *parseSignature(const char *sig); +static void parseType(const char *type, pytqt3SigArg *arg); // Factory function to create a universal slot instance. Returns a pointer to @@ -1389,7 +1389,7 @@ static void parseType(const char *type, pyqt3SigArg *arg); static void *sipTQtCreateUniversalSlot(sipWrapper *tx, const char *sig, PyObject *rxObj, const char *slot, const char **member, int) { - pyqt3SlotConnection conn; + pytqt3SlotConnection conn; /* Initialise the connection. */ if (tx && sipGetAddress(&tx->super) == NULL) @@ -1412,7 +1412,7 @@ static void *sipTQtCreateUniversalSlot(sipWrapper *tx, const char *sig, return 0; } - TQObject *qtx = 0; + TQObject *tqtx = 0; // 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 @@ -1421,17 +1421,17 @@ static void *sipTQtCreateUniversalSlot(sipWrapper *tx, const char *sig, // expected because TQWidget destroys its children before emitting the // destroyed signal.) if (tx && PyObject_TypeCheck((PyObject *)tx, (PyTypeObject *)sipClass_TQObject)) - qtx = reinterpret_cast<TQObject *>(conn.sc_transmitter); + tqtx = reinterpret_cast<TQObject *>(conn.sc_transmitter); - return new UniversalSlot(qtx, &conn, member); + return new UniversalSlot(tqtx, &conn, member); } // Parse the signal arguments for a connection. -static pyqt3Signature *parseSignature(const char *sig) +static pytqt3Signature *parseSignature(const char *sig) { - static pyqt3Signature *psig_list = NULL; - pyqt3Signature *psig; + static pytqt3Signature *psig_list = NULL; + pytqt3Signature *psig; const char *sp, *ep; // First see if it has already been parsed. Note that both sides of a @@ -1444,7 +1444,7 @@ static pyqt3Signature *parseSignature(const char *sig) return psig; // Create a new one including space for the copy of the signature. - if ((psig = (pyqt3Signature *)sipMalloc(sizeof (pyqt3Signature) + strlen(sig) + 1)) == NULL) + if ((psig = (pytqt3Signature *)sipMalloc(sizeof (pytqt3Signature) + strlen(sig) + 1)) == NULL) return NULL; psig->sg_signature = (char *)&psig[1]; @@ -1519,7 +1519,7 @@ static pyqt3Signature *parseSignature(const char *sig) // Allocate the space. psig->sg_nrargs = nrcommas + 1; - if ((psig->sg_args = (pyqt3SigArg *)sipMalloc(sizeof (pyqt3SigArg) * psig->sg_nrargs)) == NULL) + if ((psig->sg_args = (pytqt3SigArg *)sipMalloc(sizeof (pytqt3SigArg) * psig->sg_nrargs)) == NULL) { sipFree(psig); return NULL; @@ -1547,12 +1547,12 @@ static pyqt3Signature *parseSignature(const char *sig) // Parse a single type. -static void parseType(const char *type, pyqt3SigArg *arg) +static void parseType(const char *type, pytqt3SigArg *arg) { size_t btlen = 0; int unsup, isref = FALSE, indir = 0; const char *ep; - pyqt3SigArgType sat = unknown_sat; + pytqt3SigArgType sat = unknown_sat; // Find the start of the significant part of the type. if (strncmp(type, "const ", 6) == 0) @@ -1783,7 +1783,7 @@ static void *sipTQtFindSlot(void *tx, const char *sig, PyObject *rxObj, { for (UniversalSlot *us = UniversalSlot::unislots; us; us = us->nextus) { - pyqt3SlotConnection *conn = &us->conn; + pytqt3SlotConnection *conn = &us->conn; if (conn->sc_transmitter != tx) continue; @@ -1857,7 +1857,7 @@ static sipSlot *sipTQtFindSipslot(void *tx, void **context) while (us) { - pyqt3SlotConnection *this_conn = &us->conn; + pytqt3SlotConnection *this_conn = &us->conn; us = us->nextus; @@ -1878,14 +1878,14 @@ static sipSlot *sipTQtFindSipslot(void *tx, void **context) static int sipTQtConnectPySignal(PyObject *txObj, const char *sig, PyObject *rxObj, const char *slot) { - pyqt3PySig *ps; - pyqt3SlotList *psrx; - pyqtWrapper *pw = (pyqtWrapper *)txObj; + pytqt3PySig *ps; + pytqt3SlotList *psrx; + pytqtWrapper *pw = (pytqtWrapper *)txObj; /* Create a new one if necessary. */ if ((ps = find_py_signal(pw, sig)) == NULL) { - if ((ps = (pyqt3PySig *)sipMalloc(sizeof (pyqt3PySig))) == NULL) + if ((ps = (pytqt3PySig *)sipMalloc(sizeof (pytqt3PySig))) == NULL) return -1; if ((ps->name = (char *)sipMalloc(strlen(sig) + 1)) == NULL) @@ -1903,7 +1903,7 @@ static int sipTQtConnectPySignal(PyObject *txObj, const char *sig, } /* Create the new receiver. */ - if ((psrx = (pyqt3SlotList *)sipMalloc(sizeof (pyqt3SlotList))) == NULL) + if ((psrx = (pytqt3SlotList *)sipMalloc(sizeof (pytqt3SlotList))) == NULL) return -1; if (sipSaveSlot(&psrx->rx, rxObj, slot) < 0) @@ -1923,15 +1923,15 @@ static int sipTQtConnectPySignal(PyObject *txObj, const char *sig, static void sipTQtDisconnectPySignal(PyObject *txObj, const char *sig, PyObject *rxObj, const char *slot) { - pyqt3PySig *ps; + pytqt3PySig *ps; - if ((ps = find_py_signal((pyqtWrapper *)txObj, sig)) != NULL) + if ((ps = find_py_signal((pytqtWrapper *)txObj, sig)) != NULL) { - pyqt3SlotList **psrxp; + pytqt3SlotList **psrxp; for (psrxp = &ps->rxlist; *psrxp != NULL; psrxp = &(*psrxp)->next) { - pyqt3SlotList *psrx = *psrxp; + pytqt3SlotList *psrx = *psrxp; if (sipSameSlot(&psrx->rx, rxObj, slot)) { @@ -1947,12 +1947,12 @@ static void sipTQtDisconnectPySignal(PyObject *txObj, const char *sig, // Emit a signal for the sip module. static int sipTQtEmitSignal(PyObject *self, const char *sig, PyObject *sigargs) { - return pyqt3EmitSignal(self, sig, sigargs); + return pytqtEmitSignal(self, sig, sigargs); } // Emit a Python or TQt signal. -int pyqt3EmitSignal(PyObject *self, const char *sig, PyObject *sigargs) +int pytqtEmitSignal(PyObject *self, const char *sig, PyObject *sigargs) { // Don't do anything if signals are blocked. TQt signals would be blocked // anyway, but this blocks Python signals as well. @@ -1967,10 +1967,10 @@ int pyqt3EmitSignal(PyObject *self, const char *sig, PyObject *sigargs) // See if it is a TQt signal. if (*sig == '2') { - pyqt3QtSignal *tab; + pytqtTQtSignal *tab; // Search the table. - for (tab = ((pyqt3ClassTypeDef *)((sipWrapperType *)(self->ob_type))->type)->qt3_emit; tab->st_name != NULL; ++tab) + for (tab = ((pytqtClassTypeDef *)((sipWrapperType *)(self->ob_type))->type)->tqt_emit; tab->st_name != NULL; ++tab) { const char *sp, *tp; bool found; @@ -1998,12 +1998,12 @@ int pyqt3EmitSignal(PyObject *self, const char *sig, PyObject *sigargs) return -1; } - pyqt3PySig *ps = find_py_signal((pyqtWrapper *)self, sig); + pytqt3PySig *ps = find_py_signal((pytqtWrapper *)self, sig); if (ps) { int rc = 0; - pyqt3SlotList *rxlist = ps->rxlist; + pytqt3SlotList *rxlist = ps->rxlist; // Forget the last TQt sender and remember this one. UniversalSlot::lastSender = 0; @@ -2012,7 +2012,7 @@ int pyqt3EmitSignal(PyObject *self, const char *sig, PyObject *sigargs) // Apply the arguments to each slot method. while (rxlist && rc >= 0) { - pyqt3SlotList *next; + pytqt3SlotList *next; PyObject *res; // We get the next in the list before calling the slot in case the @@ -2041,7 +2041,7 @@ int pyqt3EmitSignal(PyObject *self, const char *sig, PyObject *sigargs) // Return the most recent signal sender. -PyObject *pyqt3GetSender() +PyObject *pytqt3GetSender() { PyObject *sender; @@ -2065,22 +2065,22 @@ PyObject *pyqt3GetSender() %InitialisationCode // Initialise the meta-type. - pyqtWrapperType_Type.tp_base = sipWrapperType_Type; + pytqtWrapperType_Type.tp_base = sipWrapperType_Type; - if (PyType_Ready(&pyqtWrapperType_Type) < 0) - Py_FatalError("qt: Failed to initialise pyqtWrapperType type"); + if (PyType_Ready(&pytqtWrapperType_Type) < 0) + Py_FatalError("tqt: Failed to initialise pytqtWrapperType type"); // Register the meta-type. - if (sipRegisterPyType((PyTypeObject *)&pyqtWrapperType_Type) < 0) - Py_FatalError("qt: Failed to register pyqtWrapperType type"); + if (sipRegisterPyType((PyTypeObject *)&pytqtWrapperType_Type) < 0) + Py_FatalError("tqt: Failed to register pytqtWrapperType type"); // Initialise the super-type. - pyqtWrapper_Type.super.ht_type.tp_base = sipWrapper_Type; + pytqtWrapper_Type.super.ht_type.tp_base = sipWrapper_Type; - if (PyType_Ready((PyTypeObject *)&pyqtWrapper_Type) < 0) - Py_FatalError("qt: Failed to initialise pyqtWrapper type"); + if (PyType_Ready((PyTypeObject *)&pytqtWrapper_Type) < 0) + Py_FatalError("tqt: Failed to initialise pytqtWrapper type"); // Register the super-type. - if (sipRegisterPyType((PyTypeObject *)&pyqtWrapper_Type) < 0) - Py_FatalError("qt: Failed to register pyqtWrapper type"); + if (sipRegisterPyType((PyTypeObject *)&pytqtWrapper_Type) < 0) + Py_FatalError("tqt: Failed to register pytqtWrapper type"); %End diff --git a/sip/qt/qobjectcleanuphandler.sip b/sip/tqt/tqobjectcleanuphandler.sip index f633e3b..f633e3b 100644 --- a/sip/qt/qobjectcleanuphandler.sip +++ b/sip/tqt/tqobjectcleanuphandler.sip diff --git a/sip/qt/qobjectlist.sip b/sip/tqt/tqobjectlist.sip index 1ea6a5a..c0b2b48 100644 --- a/sip/qt/qobjectlist.sip +++ b/sip/tqt/tqobjectlist.sip @@ -80,27 +80,27 @@ return type of a function or the type of an argument, a Python list of return 1; } - TQObjectList *qol = new TQObjectList; + TQObjectList *tqol = new TQObjectList; for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) { - TQObject *qobj; + TQObject *tqobj; // 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<TQObject *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_TQObject,0,0,0,sipIsErr)); + tqobj = reinterpret_cast<TQObject *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_TQObject,0,0,0,sipIsErr)); if (*sipIsErr) { - delete qol; + delete tqol; return 0; } - qol -> append(qobj); + tqol -> append(tqobj); } - *sipCppPtr = qol; + *sipCppPtr = tqol; return sipGetState(sipTransferObj); %End diff --git a/sip/qt/qpaintdevice.sip b/sip/tqt/tqpaintdevice.sip index 80a2765..80a2765 100644 --- a/sip/qt/qpaintdevice.sip +++ b/sip/tqt/tqpaintdevice.sip diff --git a/sip/qt/qpaintdevicemetrics.sip b/sip/tqt/tqpaintdevicemetrics.sip index a0358c8..a0358c8 100644 --- a/sip/qt/qpaintdevicemetrics.sip +++ b/sip/tqt/tqpaintdevicemetrics.sip diff --git a/sip/qt/qpainter.sip b/sip/tqt/tqpainter.sip index 8111400..8111400 100644 --- a/sip/qt/qpainter.sip +++ b/sip/tqt/tqpainter.sip diff --git a/sip/qt/qpair.sip b/sip/tqt/tqpair.sip index 1744b58..1744b58 100644 --- a/sip/qt/qpair.sip +++ b/sip/tqt/tqpair.sip diff --git a/sip/qt/qpalette.sip b/sip/tqt/tqpalette.sip index 6e4bd98..6e4bd98 100644 --- a/sip/qt/qpalette.sip +++ b/sip/tqt/tqpalette.sip diff --git a/sip/qt/qpen.sip b/sip/tqt/tqpen.sip index b80752b..b80752b 100644 --- a/sip/qt/qpen.sip +++ b/sip/tqt/tqpen.sip diff --git a/sip/qt/qpicture.sip b/sip/tqt/tqpicture.sip index 9bcd839..9bcd839 100644 --- a/sip/qt/qpicture.sip +++ b/sip/tqt/tqpicture.sip diff --git a/sip/qt/qpixmap.sip b/sip/tqt/tqpixmap.sip index da18766..0c06601 100644 --- a/sip/qt/qpixmap.sip +++ b/sip/tqt/tqpixmap.sip @@ -93,7 +93,7 @@ public: const char **str; - if ((str = PyTQt_qt_ListToArray(a0)) == NULL) + if ((str = PyTQt_tqt_ListToArray(a0)) == NULL) sipIsErr = 1; else { diff --git a/sip/qt/qpixmapcache.sip b/sip/tqt/tqpixmapcache.sip index c8a6c30..c8a6c30 100644 --- a/sip/qt/qpixmapcache.sip +++ b/sip/tqt/tqpixmapcache.sip diff --git a/sip/qt/qplatinumstyle.sip b/sip/tqt/tqplatinumstyle.sip index 78da451..78da451 100644 --- a/sip/qt/qplatinumstyle.sip +++ b/sip/tqt/tqplatinumstyle.sip diff --git a/sip/qt/qpoint.sip b/sip/tqt/tqpoint.sip index d82f529..d82f529 100644 --- a/sip/qt/qpoint.sip +++ b/sip/tqt/tqpoint.sip diff --git a/sip/qt/qpointarray.sip b/sip/tqt/tqpointarray.sip index e0c83b8..e0c83b8 100644 --- a/sip/qt/qpointarray.sip +++ b/sip/tqt/tqpointarray.sip diff --git a/sip/qt/qpopupmenu.sip b/sip/tqt/tqpopupmenu.sip index 0e08bf5..0e08bf5 100644 --- a/sip/qt/qpopupmenu.sip +++ b/sip/tqt/tqpopupmenu.sip diff --git a/sip/qt/qprintdialog.sip b/sip/tqt/tqprintdialog.sip index ad2e952..ad2e952 100644 --- a/sip/qt/qprintdialog.sip +++ b/sip/tqt/tqprintdialog.sip diff --git a/sip/qt/qprinter.sip b/sip/tqt/tqprinter.sip index fbe7709..fbe7709 100644 --- a/sip/qt/qprinter.sip +++ b/sip/tqt/tqprinter.sip diff --git a/sip/qt/qprocess.sip b/sip/tqt/tqprocess.sip index 8581534..8581534 100644 --- a/sip/qt/qprocess.sip +++ b/sip/tqt/tqprocess.sip diff --git a/sip/qt/qprogressbar.sip b/sip/tqt/tqprogressbar.sip index 0bae238..0bae238 100644 --- a/sip/qt/qprogressbar.sip +++ b/sip/tqt/tqprogressbar.sip diff --git a/sip/qt/qprogressdialog.sip b/sip/tqt/tqprogressdialog.sip index 4b21b55..4b21b55 100644 --- a/sip/qt/qprogressdialog.sip +++ b/sip/tqt/tqprogressdialog.sip diff --git a/sip/qt/qptrlist.sip b/sip/tqt/tqptrlist.sip index 5250eb8..5250eb8 100644 --- a/sip/qt/qptrlist.sip +++ b/sip/tqt/tqptrlist.sip diff --git a/sip/qt/qpushbutton.sip b/sip/tqt/tqpushbutton.sip index 77c4d7a..77c4d7a 100644 --- a/sip/qt/qpushbutton.sip +++ b/sip/tqt/tqpushbutton.sip diff --git a/sip/qt/qradiobutton.sip b/sip/tqt/tqradiobutton.sip index ea5c5d3..ea5c5d3 100644 --- a/sip/qt/qradiobutton.sip +++ b/sip/tqt/tqradiobutton.sip diff --git a/sip/qt/qrangecontrol.sip b/sip/tqt/tqrangecontrol.sip index f6e760d..f6e760d 100644 --- a/sip/qt/qrangecontrol.sip +++ b/sip/tqt/tqrangecontrol.sip diff --git a/sip/qt/qrect.sip b/sip/tqt/tqrect.sip index f045752..f045752 100644 --- a/sip/qt/qrect.sip +++ b/sip/tqt/tqrect.sip diff --git a/sip/qt/qregexp.sip b/sip/tqt/tqregexp.sip index 02feb48..02feb48 100644 --- a/sip/qt/qregexp.sip +++ b/sip/tqt/tqregexp.sip diff --git a/sip/qt/qregion.sip b/sip/tqt/tqregion.sip index 9ac4b3f..9ac4b3f 100644 --- a/sip/qt/qregion.sip +++ b/sip/tqt/tqregion.sip diff --git a/sip/qt/qscrollbar.sip b/sip/tqt/tqscrollbar.sip index dc6a096..dc6a096 100644 --- a/sip/qt/qscrollbar.sip +++ b/sip/tqt/tqscrollbar.sip diff --git a/sip/qt/qscrollview.sip b/sip/tqt/tqscrollview.sip index 91a4a16..91a4a16 100644 --- a/sip/qt/qscrollview.sip +++ b/sip/tqt/tqscrollview.sip diff --git a/sip/qt/qsemaphore.sip b/sip/tqt/tqsemaphore.sip index d164046..d164046 100644 --- a/sip/qt/qsemaphore.sip +++ b/sip/tqt/tqsemaphore.sip diff --git a/sip/qt/qsessionmanager.sip b/sip/tqt/tqsessionmanager.sip index e282963..e282963 100644 --- a/sip/qt/qsessionmanager.sip +++ b/sip/tqt/tqsessionmanager.sip diff --git a/sip/qt/qsettings.sip b/sip/tqt/tqsettings.sip index 3831bfd..3831bfd 100644 --- a/sip/qt/qsettings.sip +++ b/sip/tqt/tqsettings.sip diff --git a/sip/qt/qsgistyle.sip b/sip/tqt/tqsgistyle.sip index 0dbba8f..0dbba8f 100644 --- a/sip/qt/qsgistyle.sip +++ b/sip/tqt/tqsgistyle.sip diff --git a/sip/qt/qsignalmapper.sip b/sip/tqt/tqsignalmapper.sip index 2ac99e6..2ac99e6 100644 --- a/sip/qt/qsignalmapper.sip +++ b/sip/tqt/tqsignalmapper.sip diff --git a/sip/qt/qsimplerichtext.sip b/sip/tqt/tqsimplerichtext.sip index cc21df5..cc21df5 100644 --- a/sip/qt/qsimplerichtext.sip +++ b/sip/tqt/tqsimplerichtext.sip diff --git a/sip/qt/qsize.sip b/sip/tqt/tqsize.sip index c5d34ef..c5d34ef 100644 --- a/sip/qt/qsize.sip +++ b/sip/tqt/tqsize.sip diff --git a/sip/qt/qsizegrip.sip b/sip/tqt/tqsizegrip.sip index 505f90b..505f90b 100644 --- a/sip/qt/qsizegrip.sip +++ b/sip/tqt/tqsizegrip.sip diff --git a/sip/qt/qsizepolicy.sip b/sip/tqt/tqsizepolicy.sip index 4f981e4..4f981e4 100644 --- a/sip/qt/qsizepolicy.sip +++ b/sip/tqt/tqsizepolicy.sip diff --git a/sip/qt/qslider.sip b/sip/tqt/tqslider.sip index 28d42e5..28d42e5 100644 --- a/sip/qt/qslider.sip +++ b/sip/tqt/tqslider.sip diff --git a/sip/qt/qsocketnotifier.sip b/sip/tqt/tqsocketnotifier.sip index 0f2d27d..0f2d27d 100644 --- a/sip/qt/qsocketnotifier.sip +++ b/sip/tqt/tqsocketnotifier.sip diff --git a/sip/qt/qsound.sip b/sip/tqt/tqsound.sip index d0c442e..d0c442e 100644 --- a/sip/qt/qsound.sip +++ b/sip/tqt/tqsound.sip diff --git a/sip/qt/qspinbox.sip b/sip/tqt/tqspinbox.sip index 447ec7c..447ec7c 100644 --- a/sip/qt/qspinbox.sip +++ b/sip/tqt/tqspinbox.sip diff --git a/sip/qt/qsplashscreen.sip b/sip/tqt/tqsplashscreen.sip index 5ef5433..5ef5433 100644 --- a/sip/qt/qsplashscreen.sip +++ b/sip/tqt/tqsplashscreen.sip diff --git a/sip/qt/qsplitter.sip b/sip/tqt/tqsplitter.sip index 182b706..182b706 100644 --- a/sip/qt/qsplitter.sip +++ b/sip/tqt/tqsplitter.sip diff --git a/sip/qt/qstatusbar.sip b/sip/tqt/tqstatusbar.sip index d1fadcf..d1fadcf 100644 --- a/sip/qt/qstatusbar.sip +++ b/sip/tqt/tqstatusbar.sip diff --git a/sip/qt/qstring.sip b/sip/tqt/tqstring.sip index a09e68d..116140e 100644 --- a/sip/qt/qstring.sip +++ b/sip/tqt/tqstring.sip @@ -634,12 +634,12 @@ public: SIP_PYOBJECT __unicode__(); %MethodCode - sipRes = PyTQt_qt_PyObject_FromTQString(sipCpp); + sipRes = PyTQt_tqt_PyObject_FromTQString(sipCpp); %End SIP_PYOBJECT __str__(); %MethodCode - sipRes = PyTQt_qt_PyObject_FromTQString(sipCpp); + sipRes = PyTQt_tqt_PyObject_FromTQString(sipCpp); %End %ConvertToTypeCode @@ -651,7 +651,7 @@ public: PyUnicode_Check(sipPy) || sipCanConvertToInstance(sipPy,sipClass_TQString,SIP_NO_CONVERTORS)); - *sipCppPtr = PyTQt_qt_PyObject_AsTQString(sipPy); + *sipCppPtr = PyTQt_tqt_PyObject_AsTQString(sipPy); if (*sipCppPtr) return sipGetState(sipTransferObj); @@ -743,12 +743,12 @@ bool operator>=(const TQString &,const TQString &); %ModuleHeaderCode -extern PyObject *PyTQt_qt_PyObject_FromTQString(const TQString *qstr); +extern PyObject *PyTQt_tqt_PyObject_FromTQString(const TQString *tqstr); %End %ModuleCode -// Convert a QString to a Python Unicode object. -PyObject *PyTQt_qt_PyObject_FromTQString(const TQString *qstr) +// Convert a TQString to a Python Unicode object. +PyObject *PyTQt_tqt_PyObject_FromTQString(const TQString *tqstr) { PyObject *obj; @@ -758,12 +758,12 @@ PyObject *PyTQt_qt_PyObject_FromTQString(const TQString *qstr) // common case. Note that we can't use PyUnicode_FromKindAndData() because // it doesn't handle surrogates in UCS2 strings. - int qt_len = qstr->length(); + int tqt_len = tqstr->length(); Py_UCS4 maxchar = 0x007f; - for (int qt_i = 0; qt_i < qt_len && maxchar < 0xffff; ++qt_i) + for (int tqt_i = 0; tqt_i < tqt_len && maxchar < 0xffff; ++tqt_i) { - Py_UCS4 uch = qstr->at(qt_i).unicode(); + Py_UCS4 uch = tqstr->at(tqt_i).unicode(); if (uch > 0x00ff) { @@ -776,34 +776,34 @@ PyObject *PyTQt_qt_PyObject_FromTQString(const TQString *qstr) } // Create the correctly sized object. - if ((obj = PyUnicode_New(qt_len, maxchar)) == NULL) + if ((obj = PyUnicode_New(tqt_len, maxchar)) == NULL) return NULL; int kind = PyUnicode_KIND(obj); void *data = PyUnicode_DATA(obj); - for (int qt_i = 0; qt_i < qt_len; ++qt_i) + for (int tqt_i = 0; tqt_i < tqt_len; ++tqt_i) { - Py_UCS4 uch = qstr->at(qt_i).unicode(); - PyUnicode_WRITE(kind, data, qt_i, uch); + Py_UCS4 uch = tqstr->at(tqt_i).unicode(); + PyUnicode_WRITE(kind, data, tqt_i, uch); } #elif defined(Py_UNICODE_WIDE) // Note that this doesn't handle code points greater than 0xffff. It could - // but it's only an issue for old versions of Qt. + // but it's only an issue for old versions of TQt. - if ((obj = PyUnicode_FromUnicode(NULL, qstr->length())) == NULL) + if ((obj = PyUnicode_FromUnicode(NULL, tqstr->length())) == NULL) return NULL; Py_UNICODE *pyu = PyUnicode_AS_UNICODE(obj); - for (unsigned int i = 0; i < qstr->length(); ++i) - *pyu++ = (qstr->at(i)).unicode(); + for (unsigned int i = 0; i < tqstr->length(); ++i) + *pyu++ = (tqstr->at(i)).unicode(); #else - if ((obj = PyUnicode_FromUnicode(NULL, qstr->length())) == NULL) + if ((obj = PyUnicode_FromUnicode(NULL, tqstr->length())) == NULL) return NULL; - memcpy(PyUnicode_AS_UNICODE(obj), qstr->ucs2(), - qstr->length() * sizeof (Py_UNICODE)); + memcpy(PyUnicode_AS_UNICODE(obj), tqstr->ucs2(), + tqstr->length() * sizeof (Py_UNICODE)); #endif return obj; @@ -812,12 +812,12 @@ PyObject *PyTQt_qt_PyObject_FromTQString(const TQString *qstr) %ModuleHeaderCode -extern TQString *PyTQt_qt_PyObject_AsTQString(PyObject *obj); +extern TQString *PyTQt_tqt_PyObject_AsTQString(PyObject *obj); %End %ModuleCode -// Convert a Python Unicode object to a QString. -TQString *PyTQt_qt_PyObject_AsTQString(PyObject *obj) +// Convert a Python Unicode object to a TQString. +TQString *PyTQt_tqt_PyObject_AsTQString(PyObject *obj) { if (PyUnicode_Check(obj)) { @@ -835,33 +835,33 @@ TQString *PyTQt_qt_PyObject_AsTQString(PyObject *obj) case PyUnicode_4BYTE_KIND: // Note that this doesn't handle code points greater than 0xffff. It - // could but it's only an issue for old versions of Qt. + // could but it's only an issue for old versions of TQt. - TQString *qstr = new TQString; + TQString *tqstr = new TQString; Py_UCS4 *ucode = PyUnicode_4BYTE_DATA(obj); for (SIP_SSIZE_T i = 0; i < len; ++i) - qstr->append(TQChar((uint)ucode[i])); + tqstr->append(TQChar((uint)ucode[i])); - return qstr; + return tqstr; } return NULL; #else - TQString *qstr = new TQString; + TQString *tqstr = new TQString; # ifdef Py_UNICODE_WIDE Py_UNICODE *ucode = PyUnicode_AS_UNICODE(obj); SIP_SSIZE_T len = PyUnicode_GET_SIZE(obj); for (SIP_SSIZE_T i = 0; i < len; ++i) - qstr->append(TQChar((uint)ucode[i])); + tqstr->append(TQChar((uint)ucode[i])); # else - qstr->setUnicodeCodes((ushort *)PyUnicode_AS_UNICODE(obj),PyUnicode_GET_SIZE(obj)); + tqstr->setUnicodeCodes((ushort *)PyUnicode_AS_UNICODE(obj),PyUnicode_GET_SIZE(obj)); # endif - return qstr; + return tqstr; #endif } else if (PyBytes_Check(obj)) @@ -875,14 +875,14 @@ TQString *PyTQt_qt_PyObject_AsTQString(PyObject *obj) %ModuleHeaderCode -extern const char *PyTQt_qt_encode(PyObject **s, TQApplication::Encoding encoding); +extern const char *PyTQt_tqt_encode(PyObject **s, TQApplication::Encoding encoding); %End %ModuleCode // Convert a Python unicode/string/bytes object to a character string encoded // according to the given encoding. Update the object with a new reference to // the object that owns the data. -const char *PyTQt_qt_encode(PyObject **s, TQApplication::Encoding encoding) +const char *PyTQt_tqt_encode(PyObject **s, TQApplication::Encoding encoding) { PyObject *obj = *s; const char *es = 0; @@ -900,12 +900,12 @@ const char *PyTQt_qt_encode(PyObject **s, TQApplication::Encoding encoding) if (codec) { - // Use the Qt codec to get to a byte string, and then to a + // Use the TQt codec to get to a byte string, and then to a // Python object. - TQString *qstr = PyTQt_qt_PyObject_AsTQString(obj); - TQString qs = *qstr; - TQByteArray ba = codec->fromUnicode(qs); - delete qstr; + TQString *tqstr = PyTQt_tqt_PyObject_AsTQString(obj); + TQString tqs = *tqstr; + TQByteArray ba = codec->fromUnicode(tqs); + delete tqstr; obj = PyBytes_FromStringAndSize(ba.data(), ba.size()); } diff --git a/sip/qt/qstringlist.sip b/sip/tqt/tqstringlist.sip index 54e049d..54e049d 100644 --- a/sip/qt/qstringlist.sip +++ b/sip/tqt/tqstringlist.sip diff --git a/sip/qt/qstrlist.sip b/sip/tqt/tqstrlist.sip index 40265a7..a93f4e6 100644 --- a/sip/qt/qstrlist.sip +++ b/sip/tqt/tqstrlist.sip @@ -76,7 +76,7 @@ is used instead. if (sipIsErr == NULL) return PyList_Check(sipPy); - TQStrList *qsl = new TQStrList; + TQStrList *tqsl = new TQStrList; for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) { @@ -90,14 +90,14 @@ is used instead. else if ((s = (char *)sipBytes_AsString(object)) == NULL) { *sipIsErr = 1; - delete qsl; + delete tqsl; return 0; } - qsl -> append(s); + tqsl -> append(s); } - *sipCppPtr = qsl; + *sipCppPtr = tqsl; return sipGetState(sipTransferObj); %End diff --git a/sip/qt/qstyle.sip b/sip/tqt/tqstyle.sip index 0630d81..0630d81 100644 --- a/sip/qt/qstyle.sip +++ b/sip/tqt/tqstyle.sip diff --git a/sip/qt/qstylefactory.sip b/sip/tqt/tqstylefactory.sip index 5e1bd1c..5e1bd1c 100644 --- a/sip/qt/qstylefactory.sip +++ b/sip/tqt/tqstylefactory.sip diff --git a/sip/qt/qstylesheet.sip b/sip/tqt/tqstylesheet.sip index 8f1d546..8f1d546 100644 --- a/sip/qt/qstylesheet.sip +++ b/sip/tqt/tqstylesheet.sip diff --git a/sip/qt/qsyntaxhighlighter.sip b/sip/tqt/tqsyntaxhighlighter.sip index c07cd0c..c07cd0c 100644 --- a/sip/qt/qsyntaxhighlighter.sip +++ b/sip/tqt/tqsyntaxhighlighter.sip diff --git a/sip/qt/qtabbar.sip b/sip/tqt/tqtabbar.sip index 10e886d..10e886d 100644 --- a/sip/qt/qtabbar.sip +++ b/sip/tqt/tqtabbar.sip diff --git a/sip/qt/qtabdialog.sip b/sip/tqt/tqtabdialog.sip index 0cfe69a..0cfe69a 100644 --- a/sip/qt/qtabdialog.sip +++ b/sip/tqt/tqtabdialog.sip diff --git a/sip/qt/qtabwidget.sip b/sip/tqt/tqtabwidget.sip index 9435402..9435402 100644 --- a/sip/qt/qtabwidget.sip +++ b/sip/tqt/tqtabwidget.sip diff --git a/sip/qt/qtextbrowser.sip b/sip/tqt/tqtextbrowser.sip index 3b0a11c..3b0a11c 100644 --- a/sip/qt/qtextbrowser.sip +++ b/sip/tqt/tqtextbrowser.sip diff --git a/sip/qt/qtextcodec.sip b/sip/tqt/tqtextcodec.sip index 7a18efe..7a18efe 100644 --- a/sip/qt/qtextcodec.sip +++ b/sip/tqt/tqtextcodec.sip diff --git a/sip/qt/qtextedit.sip b/sip/tqt/tqtextedit.sip index ef0f80c..ef0f80c 100644 --- a/sip/qt/qtextedit.sip +++ b/sip/tqt/tqtextedit.sip diff --git a/sip/qt/qtextstream.sip b/sip/tqt/tqtextstream.sip index 83778c3..83778c3 100644 --- a/sip/qt/qtextstream.sip +++ b/sip/tqt/tqtextstream.sip diff --git a/sip/qt/qtextview.sip b/sip/tqt/tqtextview.sip index 1d30dad..1d30dad 100644 --- a/sip/qt/qtextview.sip +++ b/sip/tqt/tqtextview.sip diff --git a/sip/qt/qthread.sip b/sip/tqt/tqthread.sip index b95301a..b95301a 100644 --- a/sip/qt/qthread.sip +++ b/sip/tqt/tqthread.sip diff --git a/sip/qt/qtimer.sip b/sip/tqt/tqtimer.sip index 6dd2249..6dd2249 100644 --- a/sip/qt/qtimer.sip +++ b/sip/tqt/tqtimer.sip diff --git a/sip/tqt/tqtmod.sip b/sip/tqt/tqtmod.sip new file mode 100644 index 0000000..5996a15 --- /dev/null +++ b/sip/tqt/tqtmod.sip @@ -0,0 +1,279 @@ +// This is the SIP interface definition for the tqt module of PyTQt. +// +// Copyright (c) 2007 +// Riverbank Computing Limited <info@riverbankcomputing.co.uk> +// +// This file is part of PyTQt. +// +// This copy of PyTQt is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 2, or (at your option) any later +// version. +// +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// 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 PyTQt.tqt 2 + +%Plugin PyTQt3 + +%Include versions.sip +%Include copying.sip + + +unsigned PYTQT_VERSION; +const char *PYTQT_VERSION_STR; + +%ModuleCode +static unsigned PYTQT_VERSION = 0x031201; +static const char *PYTQT_VERSION_STR = "3.18.1"; +%End + + +// Hook into the VendorID package if it is enabled. +%Feature VendorID + +%If (VendorID) + +%ModuleCode +#include <vendorid.h> +%End + +%PreInitialisationCode + if (!vendorid_check()) + { + PyErr_SetString(PyExc_RuntimeError, "PyTQt cannot be used with this Python interpreter"); + return; + } +%End + +%End + +%DefaultMetatype tqt.pytqtWrapperType +%DefaultSupertype tqt.pytqtWrapper + +// Include the interface definitions for each class. + +// These contain enum and type definitions that need to be defined before they +// are used so they do not seem to be classes. + +%Include tqglobal.sip +%Include tqnamespace.sip +%Include tqwindowdefs.sip +%Include tqpen.sip + +%Include tqpaintdevice.sip + +%Include tqpixmap.sip +%Include tqbitmap.sip + +%Include tqsize.sip +%Include tqsizepolicy.sip + +%Include tqaccel.sip +%Include tqaction.sip +%Include tqapplication.sip +%Include tqassistantclient.sip +%Include tqbrush.sip +%Include tqbutton.sip +%Include tqbuttongroup.sip +%Include tqbytearray.sip +%Include tqcdestyle.sip +%Include tqcheckbox.sip +%Include tqclipboard.sip +%Include tqcolor.sip +%Include tqcolordialog.sip +%Include tqcolorgroup.sip +%Include tqcombobox.sip +%Include tqcommonstyle.sip +%Include tqcstring.sip +%Include tqcursor.sip +%Include tqdatastream.sip +%Include tqdatetime.sip +%Include tqdatetimeedit.sip +%Include tqdesktopwidget.sip +%Include tqdial.sip +%Include tqdialog.sip +%Include tqdir.sip +%Include tqdockarea.sip +%Include tqdockwindow.sip +%Include tqdragobject.sip +%Include tqdrawutil.sip +%Include tqdropsite.sip +%Include tqerrormessage.sip +%Include tqevent.sip +%Include tqeventloop.sip +%Include tqfile.sip +%Include tqfiledialog.sip +%Include tqfileinfo.sip +%Include tqfont.sip +%Include tqfontdatabase.sip +%Include tqfontdialog.sip +%Include tqfontinfo.sip +%Include tqfontmetrics.sip +%Include tqframe.sip +%Include tqgrid.sip +%Include tqgridview.sip +%Include tqgroupbox.sip +%Include tqhbox.sip +%Include tqhbuttongroup.sip +%Include tqheader.sip +%Include tqhgroupbox.sip +%Include tqiconset.sip +%Include tqiconview.sip +%Include tqimage.sip +%Include tqinputdialog.sip +%Include tqinterlacestyle.sip +%Include tqiodevice.sip +%Include tqkeysequence.sip +%Include tqlabel.sip +%Include tqlayout.sip +%Include tqlcdnumber.sip +%Include tqlibrary.sip +%Include tqlineedit.sip +%Include tqlistbox.sip +%Include tqlistview.sip +%Include tqlocale.sip +%Include tqmainwindow.sip +%Include tqmemarray.sip +%Include tqmenubar.sip +%Include tqmenudata.sip +%Include tqmessagebox.sip +%Include tqmetaobject.sip +%Include tqmime.sip +%Include tqmotifplusstyle.sip +%Include tqmotifstyle.sip +%Include tqmovie.sip +%Include tqmutex.sip +%Include tqmultilinedit.sip +%Include tqnetworkprotocol.sip +%Include tqobject.sip +%Include tqobjectcleanuphandler.sip +%Include tqobjectlist.sip +%Include tqpaintdevicemetrics.sip +%Include tqpainter.sip +%Include tqpair.sip +%Include tqpalette.sip +%Include tqpicture.sip +%Include tqpixmapcache.sip +%Include tqplatinumstyle.sip +%Include tqpoint.sip +%Include tqpointarray.sip +%Include tqpopupmenu.sip +%Include tqprintdialog.sip +%Include tqprinter.sip +%Include tqprocess.sip +%Include tqprogressbar.sip +%Include tqprogressdialog.sip +%Include tqptrlist.sip +%Include tqpushbutton.sip +%Include tqradiobutton.sip +%Include tqrangecontrol.sip +%Include tqrect.sip +%Include tqregexp.sip +%Include tqregion.sip +%Include tqscrollbar.sip +%Include tqscrollview.sip +%Include tqsemaphore.sip +%Include tqsessionmanager.sip +%Include tqsettings.sip +%Include tqsgistyle.sip +%Include tqsignalmapper.sip +%Include tqsimplerichtext.sip +%Include tqsizegrip.sip +%Include tqslider.sip +%Include tqsocketnotifier.sip +%Include tqsound.sip +%Include tqspinbox.sip +%Include tqsplashscreen.sip +%Include tqsplitter.sip +%Include tqstatusbar.sip +%Include tqstring.sip +%Include tqstringlist.sip +%Include tqstrlist.sip +%Include tqstyle.sip +%Include tqstylefactory.sip +%Include tqstylesheet.sip +%Include tqsyntaxhighlighter.sip +%Include tqtabbar.sip +%Include tqtabdialog.sip +%Include tqtabwidget.sip +%Include tqtextbrowser.sip +%Include tqtextcodec.sip +%Include tqtextedit.sip +%Include tqtextstream.sip +%Include tqtextview.sip +%Include tqthread.sip +%Include tqtimer.sip +%Include tqtoolbar.sip +%Include tqtoolbox.sip +%Include tqtoolbutton.sip +%Include tqtooltip.sip +%Include tqtranslator.sip +%Include tqurl.sip +%Include tqurlinfo.sip +%Include tqurloperator.sip +%Include tquuid.sip +%Include tqvalidator.sip +%Include tqvaluelist.sip +%Include tqvariant.sip +%Include tqvbox.sip +%Include tqvbuttongroup.sip +%Include tqvgroupbox.sip +%Include tqwaitcondition.sip +%Include tqwhatsthis.sip +%Include tqwidget.sip +%Include tqwidgetlist.sip +%Include tqwidgetstack.sip +%Include tqwindowsstyle.sip +%Include tqwindowsxpstyle.sip +%Include tqwizard.sip +%Include tqwmatrix.sip +%Include tqworkspace.sip + + +// The build file templates. + +%Makefile tqt.pro.in +# The project file for the tqt module. +# +# Copyright (c) 2007 +# Riverbank Computing Limited <info@riverbankcomputing.co.uk> +# +# This file is part of PyTQt. +# +# This copy of PyTQt is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the Free +# Software Foundation; either version 2, or (at your option) any later +# version. +# +# PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, +# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +TEMPLATE = lib +TARGET = @BLX_TARGET_LIB@ +DESTDIR = @PYTQT_MODDIR@ +CONFIG += @BLX_CONFIG_LIB@ @PYTQT_WARN@ +INCLUDEPATH = @BLX_INCLUDEPATH@ +DEFINES = @BLX_DEFINES@ +LIBS += @PYTQT_QASSISTANTCLIENT_LIB@ @BLX_LIBS@ +macx:QMAKE_LFLAGS += -framework Python + +SOURCES = $B + +HEADERS = $H +%End diff --git a/sip/qt/qtoolbar.sip b/sip/tqt/tqtoolbar.sip index 5bab07f..5bab07f 100644 --- a/sip/qt/qtoolbar.sip +++ b/sip/tqt/tqtoolbar.sip diff --git a/sip/qt/qtoolbox.sip b/sip/tqt/tqtoolbox.sip index 43486b5..43486b5 100644 --- a/sip/qt/qtoolbox.sip +++ b/sip/tqt/tqtoolbox.sip diff --git a/sip/qt/qtoolbutton.sip b/sip/tqt/tqtoolbutton.sip index ab8d195..ab8d195 100644 --- a/sip/qt/qtoolbutton.sip +++ b/sip/tqt/tqtoolbutton.sip diff --git a/sip/qt/qtooltip.sip b/sip/tqt/tqtooltip.sip index 1a24264..1a24264 100644 --- a/sip/qt/qtooltip.sip +++ b/sip/tqt/tqtooltip.sip diff --git a/sip/qt/qtranslator.sip b/sip/tqt/tqtranslator.sip index 1edee94..1edee94 100644 --- a/sip/qt/qtranslator.sip +++ b/sip/tqt/tqtranslator.sip diff --git a/sip/qt/qurl.sip b/sip/tqt/tqurl.sip index 004b653..004b653 100644 --- a/sip/qt/qurl.sip +++ b/sip/tqt/tqurl.sip diff --git a/sip/qt/qurlinfo.sip b/sip/tqt/tqurlinfo.sip index f2f0467..f2f0467 100644 --- a/sip/qt/qurlinfo.sip +++ b/sip/tqt/tqurlinfo.sip diff --git a/sip/qt/qurloperator.sip b/sip/tqt/tqurloperator.sip index 20e0d8d..20e0d8d 100644 --- a/sip/qt/qurloperator.sip +++ b/sip/tqt/tqurloperator.sip diff --git a/sip/qt/quuid.sip b/sip/tqt/tquuid.sip index df334fa..df334fa 100644 --- a/sip/qt/quuid.sip +++ b/sip/tqt/tquuid.sip diff --git a/sip/qt/qvalidator.sip b/sip/tqt/tqvalidator.sip index c400969..c400969 100644 --- a/sip/qt/qvalidator.sip +++ b/sip/tqt/tqvalidator.sip diff --git a/sip/qt/qvaluelist.sip b/sip/tqt/tqvaluelist.sip index d803861..d803861 100644 --- a/sip/qt/qvaluelist.sip +++ b/sip/tqt/tqvaluelist.sip diff --git a/sip/qt/qvariant.sip b/sip/tqt/tqvariant.sip index ea28fcf..ea28fcf 100644 --- a/sip/qt/qvariant.sip +++ b/sip/tqt/tqvariant.sip diff --git a/sip/qt/qvbox.sip b/sip/tqt/tqvbox.sip index d88d324..d88d324 100644 --- a/sip/qt/qvbox.sip +++ b/sip/tqt/tqvbox.sip diff --git a/sip/qt/qvbuttongroup.sip b/sip/tqt/tqvbuttongroup.sip index d024bfc..d024bfc 100644 --- a/sip/qt/qvbuttongroup.sip +++ b/sip/tqt/tqvbuttongroup.sip diff --git a/sip/qt/qvgroupbox.sip b/sip/tqt/tqvgroupbox.sip index 9714a08..9714a08 100644 --- a/sip/qt/qvgroupbox.sip +++ b/sip/tqt/tqvgroupbox.sip diff --git a/sip/qt/qwaitcondition.sip b/sip/tqt/tqwaitcondition.sip index 8f96561..8f96561 100644 --- a/sip/qt/qwaitcondition.sip +++ b/sip/tqt/tqwaitcondition.sip diff --git a/sip/qt/qwhatsthis.sip b/sip/tqt/tqwhatsthis.sip index b6d5a3a..b6d5a3a 100644 --- a/sip/qt/qwhatsthis.sip +++ b/sip/tqt/tqwhatsthis.sip diff --git a/sip/qt/qwidget.sip b/sip/tqt/tqwidget.sip index 30c3af9..30c3af9 100644 --- a/sip/qt/qwidget.sip +++ b/sip/tqt/tqwidget.sip diff --git a/sip/qt/qwidgetlist.sip b/sip/tqt/tqwidgetlist.sip index 9010b86..9010b86 100644 --- a/sip/qt/qwidgetlist.sip +++ b/sip/tqt/tqwidgetlist.sip diff --git a/sip/qt/qwidgetstack.sip b/sip/tqt/tqwidgetstack.sip index 9451970..9451970 100644 --- a/sip/qt/qwidgetstack.sip +++ b/sip/tqt/tqwidgetstack.sip diff --git a/sip/qt/qwindowdefs.sip b/sip/tqt/tqwindowdefs.sip index 5e709db..195f273 100644 --- a/sip/qt/qwindowdefs.sip +++ b/sip/tqt/tqwindowdefs.sip @@ -34,10 +34,10 @@ All constant values defined by TQt have equivalent constants defined to Python. %End -%OptionalInclude qwindowdefs_mac.sip -%OptionalInclude qwindowdefs_qws.sip -%OptionalInclude qwindowdefs_win.sip -%OptionalInclude qwindowdefs_x11.sip +%OptionalInclude tqwindowdefs_mac.sip +%OptionalInclude tqwindowdefs_qws.sip +%OptionalInclude tqwindowdefs_win.sip +%OptionalInclude tqwindowdefs_x11.sip typedef TQ_INT32 TQCOORD; diff --git a/sip/qt/qwindowdefs_qws.sip b/sip/tqt/tqwindowdefs_qws.sip index e6493df..e6493df 100644 --- a/sip/qt/qwindowdefs_qws.sip +++ b/sip/tqt/tqwindowdefs_qws.sip diff --git a/sip/qt/qwindowdefs_x11.sip b/sip/tqt/tqwindowdefs_x11.sip index db45346..db45346 100644 --- a/sip/qt/qwindowdefs_x11.sip +++ b/sip/tqt/tqwindowdefs_x11.sip diff --git a/sip/qt/qwindowsstyle.sip b/sip/tqt/tqwindowsstyle.sip index 72e5f83..72e5f83 100644 --- a/sip/qt/qwindowsstyle.sip +++ b/sip/tqt/tqwindowsstyle.sip diff --git a/sip/qt/qwindowsxpstyle.sip b/sip/tqt/tqwindowsxpstyle.sip index 121e03b..121e03b 100644 --- a/sip/qt/qwindowsxpstyle.sip +++ b/sip/tqt/tqwindowsxpstyle.sip diff --git a/sip/qt/qwizard.sip b/sip/tqt/tqwizard.sip index 278be85..278be85 100644 --- a/sip/qt/qwizard.sip +++ b/sip/tqt/tqwizard.sip diff --git a/sip/qt/qwmatrix.sip b/sip/tqt/tqwmatrix.sip index 965130e..965130e 100644 --- a/sip/qt/qwmatrix.sip +++ b/sip/tqt/tqwmatrix.sip diff --git a/sip/qt/qworkspace.sip b/sip/tqt/tqworkspace.sip index 06b85be..06b85be 100644 --- a/sip/qt/qworkspace.sip +++ b/sip/tqt/tqworkspace.sip diff --git a/sip/qt/versions.sip b/sip/tqt/versions.sip index f47b1e0..f47b1e0 100644 --- a/sip/qt/versions.sip +++ b/sip/tqt/versions.sip diff --git a/sip/qtcanvas/copying.sip b/sip/tqtaxcontainer/copying.sip index 6da646e..49b4531 100644 --- a/sip/qtcanvas/copying.sip +++ b/sip/tqtaxcontainer/copying.sip @@ -42,10 +42,10 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %End -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip +%OptionalInclude pytqt-internal.sip +%OptionalInclude pytqt-gpl.sip +%OptionalInclude pytqt-commercial.sip +%OptionalInclude pytqt-edu.sip +%OptionalInclude pytqt-eval.sip +%OptionalInclude pytqt-nc.sip +%OptionalInclude pytqt-tkc.sip diff --git a/sip/qtaxcontainer/qaxbase.sip b/sip/tqtaxcontainer/tqaxbase.sip index 02400b4..a29d504 100644 --- a/sip/qtaxcontainer/qaxbase.sip +++ b/sip/tqtaxcontainer/tqaxbase.sip @@ -62,7 +62,7 @@ Not implemented. <Para> 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. +created by the <Literal>tqtaxcontainer</Literal> module. </Para> <Para> The <Literal>RegisterActiveObject()</Literal> COM function is called to diff --git a/sip/qtaxcontainer/qaxobject.sip b/sip/tqtaxcontainer/tqaxobject.sip index 01521c2..01521c2 100644 --- a/sip/qtaxcontainer/qaxobject.sip +++ b/sip/tqtaxcontainer/tqaxobject.sip diff --git a/sip/qtaxcontainer/qaxwidget.sip b/sip/tqtaxcontainer/tqaxwidget.sip index 3751088..3751088 100644 --- a/sip/qtaxcontainer/qaxwidget.sip +++ b/sip/tqtaxcontainer/tqaxwidget.sip diff --git a/sip/qtaxcontainer/qtaxcontainermod.sip b/sip/tqtaxcontainer/tqtaxcontainermod.sip index 1d33487..e1a4268 100644 --- a/sip/qtaxcontainer/qtaxcontainermod.sip +++ b/sip/tqtaxcontainer/tqtaxcontainermod.sip @@ -1,4 +1,4 @@ -// This is the SIP interface definition for the qtaxcontainer module of PyTQt. +// This is the SIP interface definition for the tqtaxcontainer module of PyTQt. // // Copyright (c) 2007 // Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -20,13 +20,13 @@ // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -%Module PyTQt.qtaxcontainer 1 +%Module PyTQt.tqtaxcontainer 1 -%Import qt/qtmod.sip +%Import tqt/tqtmod.sip %Include copying.sip -%Include qaxbase.sip -%Include qaxobject.sip -%Include qaxwidget.sip +%Include tqaxbase.sip +%Include tqaxobject.sip +%Include tqaxwidget.sip diff --git a/sip/qt/copying.sip b/sip/tqtcanvas/copying.sip index 6da646e..49b4531 100644 --- a/sip/qt/copying.sip +++ b/sip/tqtcanvas/copying.sip @@ -42,10 +42,10 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %End -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip +%OptionalInclude pytqt-internal.sip +%OptionalInclude pytqt-gpl.sip +%OptionalInclude pytqt-commercial.sip +%OptionalInclude pytqt-edu.sip +%OptionalInclude pytqt-eval.sip +%OptionalInclude pytqt-nc.sip +%OptionalInclude pytqt-tkc.sip diff --git a/sip/qtcanvas/qcanvas.sip b/sip/tqtcanvas/tqcanvas.sip index 2fc5c0b..2fc5c0b 100644 --- a/sip/qtcanvas/qcanvas.sip +++ b/sip/tqtcanvas/tqcanvas.sip diff --git a/sip/qttable/qttablemod.sip b/sip/tqtcanvas/tqtcanvasmod.sip index 66523cc..420305e 100644 --- a/sip/qttable/qttablemod.sip +++ b/sip/tqtcanvas/tqtcanvasmod.sip @@ -1,4 +1,4 @@ -// This is the SIP interface definition for the qttable module of PyTQt. +// This is the SIP interface definition for the tqtcanvas module of PyTQt. // // Copyright (c) 2007 // Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -20,20 +20,20 @@ // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -%Module PyTQt.qttable 1 +%Module PyTQt.tqtcanvas 1 -%Import qt/qtmod.sip +%Import tqt/tqtmod.sip %Include copying.sip -%Include qtable.sip +%Include tqcanvas.sip // The build file template. -%Makefile qttable.pro.in -# The project file for the qttable module. +%Makefile tqtcanvas.pro.in +# The project file for the tqtcanvas module. # # Copyright (c) 2007 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -57,11 +57,11 @@ TEMPLATE = lib TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ +DESTDIR = @PYTQT_MODDIR@ +CONFIG += @BLX_CONFIG_LIB@ @PYTQT_WARN@ INCLUDEPATH = @BLX_INCLUDEPATH@ DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @BLX_LIBS@ +LIBS += @PYTQT_TQT_MODULE@ @BLX_LIBS@ macx:QMAKE_LFLAGS += -framework Python SOURCES = $B diff --git a/sip/qtext/copying.sip b/sip/tqtext/copying.sip index 6da646e..49b4531 100644 --- a/sip/qtext/copying.sip +++ b/sip/tqtext/copying.sip @@ -42,10 +42,10 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %End -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip +%OptionalInclude pytqt-internal.sip +%OptionalInclude pytqt-gpl.sip +%OptionalInclude pytqt-commercial.sip +%OptionalInclude pytqt-edu.sip +%OptionalInclude pytqt-eval.sip +%OptionalInclude pytqt-nc.sip +%OptionalInclude pytqt-tkc.sip diff --git a/sip/qtext/qextscintilla.sip b/sip/tqtext/tqextscintilla.sip index f9a7592..f9a7592 100644 --- a/sip/qtext/qextscintilla.sip +++ b/sip/tqtext/tqextscintilla.sip diff --git a/sip/qtext/qextscintillaapis.sip b/sip/tqtext/tqextscintillaapis.sip index 170a80b..170a80b 100644 --- a/sip/qtext/qextscintillaapis.sip +++ b/sip/tqtext/tqextscintillaapis.sip diff --git a/sip/qtext/qextscintillabase.sip b/sip/tqtext/tqextscintillabase.sip index 23a2a65..23a2a65 100644 --- a/sip/qtext/qextscintillabase.sip +++ b/sip/tqtext/tqextscintillabase.sip diff --git a/sip/qtext/qextscintillacommand.sip b/sip/tqtext/tqextscintillacommand.sip index 77dfb56..77dfb56 100644 --- a/sip/qtext/qextscintillacommand.sip +++ b/sip/tqtext/tqextscintillacommand.sip diff --git a/sip/qtext/qextscintillacommandset.sip b/sip/tqtext/tqextscintillacommandset.sip index b472345..b472345 100644 --- a/sip/qtext/qextscintillacommandset.sip +++ b/sip/tqtext/tqextscintillacommandset.sip diff --git a/sip/qtext/qextscintilladocument.sip b/sip/tqtext/tqextscintilladocument.sip index 9c656b8..9c656b8 100644 --- a/sip/qtext/qextscintilladocument.sip +++ b/sip/tqtext/tqextscintilladocument.sip diff --git a/sip/qtext/qextscintillalexer.sip b/sip/tqtext/tqextscintillalexer.sip index b13b14d..b13b14d 100644 --- a/sip/qtext/qextscintillalexer.sip +++ b/sip/tqtext/tqextscintillalexer.sip diff --git a/sip/qtext/qextscintillalexerbash.sip b/sip/tqtext/tqextscintillalexerbash.sip index 0a3b95c..0a3b95c 100644 --- a/sip/qtext/qextscintillalexerbash.sip +++ b/sip/tqtext/tqextscintillalexerbash.sip diff --git a/sip/qtext/qextscintillalexerbatch.sip b/sip/tqtext/tqextscintillalexerbatch.sip index fa660f0..fa660f0 100644 --- a/sip/qtext/qextscintillalexerbatch.sip +++ b/sip/tqtext/tqextscintillalexerbatch.sip diff --git a/sip/qtext/qextscintillalexercpp.sip b/sip/tqtext/tqextscintillalexercpp.sip index 786893d..786893d 100644 --- a/sip/qtext/qextscintillalexercpp.sip +++ b/sip/tqtext/tqextscintillalexercpp.sip diff --git a/sip/qtext/qextscintillalexercsharp.sip b/sip/tqtext/tqextscintillalexercsharp.sip index cf5aafb..cf5aafb 100644 --- a/sip/qtext/qextscintillalexercsharp.sip +++ b/sip/tqtext/tqextscintillalexercsharp.sip diff --git a/sip/qtext/qextscintillalexercss.sip b/sip/tqtext/tqextscintillalexercss.sip index adc5672..adc5672 100644 --- a/sip/qtext/qextscintillalexercss.sip +++ b/sip/tqtext/tqextscintillalexercss.sip diff --git a/sip/qtext/qextscintillalexerdiff.sip b/sip/tqtext/tqextscintillalexerdiff.sip index 576c826..576c826 100644 --- a/sip/qtext/qextscintillalexerdiff.sip +++ b/sip/tqtext/tqextscintillalexerdiff.sip diff --git a/sip/qtext/qextscintillalexerhtml.sip b/sip/tqtext/tqextscintillalexerhtml.sip index 6133b98..6133b98 100644 --- a/sip/qtext/qextscintillalexerhtml.sip +++ b/sip/tqtext/tqextscintillalexerhtml.sip diff --git a/sip/qtext/qextscintillalexeridl.sip b/sip/tqtext/tqextscintillalexeridl.sip index 8ae2a83..8ae2a83 100644 --- a/sip/qtext/qextscintillalexeridl.sip +++ b/sip/tqtext/tqextscintillalexeridl.sip diff --git a/sip/qtext/qextscintillalexerjava.sip b/sip/tqtext/tqextscintillalexerjava.sip index 7ffb790..7ffb790 100644 --- a/sip/qtext/qextscintillalexerjava.sip +++ b/sip/tqtext/tqextscintillalexerjava.sip diff --git a/sip/qtext/qextscintillalexerjavascript.sip b/sip/tqtext/tqextscintillalexerjavascript.sip index 0624788..0624788 100644 --- a/sip/qtext/qextscintillalexerjavascript.sip +++ b/sip/tqtext/tqextscintillalexerjavascript.sip diff --git a/sip/qtext/qextscintillalexerlua.sip b/sip/tqtext/tqextscintillalexerlua.sip index 3a70a01..3a70a01 100644 --- a/sip/qtext/qextscintillalexerlua.sip +++ b/sip/tqtext/tqextscintillalexerlua.sip diff --git a/sip/qtext/qextscintillalexermakefile.sip b/sip/tqtext/tqextscintillalexermakefile.sip index d15259e..d15259e 100644 --- a/sip/qtext/qextscintillalexermakefile.sip +++ b/sip/tqtext/tqextscintillalexermakefile.sip diff --git a/sip/qtext/qextscintillalexerperl.sip b/sip/tqtext/tqextscintillalexerperl.sip index e63e71b..e63e71b 100644 --- a/sip/qtext/qextscintillalexerperl.sip +++ b/sip/tqtext/tqextscintillalexerperl.sip diff --git a/sip/qtext/qextscintillalexerpov.sip b/sip/tqtext/tqextscintillalexerpov.sip index f4f87ad..f4f87ad 100644 --- a/sip/qtext/qextscintillalexerpov.sip +++ b/sip/tqtext/tqextscintillalexerpov.sip diff --git a/sip/qtext/qextscintillalexerproperties.sip b/sip/tqtext/tqextscintillalexerproperties.sip index b3be195..b3be195 100644 --- a/sip/qtext/qextscintillalexerproperties.sip +++ b/sip/tqtext/tqextscintillalexerproperties.sip diff --git a/sip/qtext/qextscintillalexerpython.sip b/sip/tqtext/tqextscintillalexerpython.sip index d14a51d..d14a51d 100644 --- a/sip/qtext/qextscintillalexerpython.sip +++ b/sip/tqtext/tqextscintillalexerpython.sip diff --git a/sip/qtext/qextscintillalexerruby.sip b/sip/tqtext/tqextscintillalexerruby.sip index 257aad2..257aad2 100644 --- a/sip/qtext/qextscintillalexerruby.sip +++ b/sip/tqtext/tqextscintillalexerruby.sip diff --git a/sip/qtext/qextscintillalexersql.sip b/sip/tqtext/tqextscintillalexersql.sip index 418351f..418351f 100644 --- a/sip/qtext/qextscintillalexersql.sip +++ b/sip/tqtext/tqextscintillalexersql.sip diff --git a/sip/qtext/qextscintillalexertex.sip b/sip/tqtext/tqextscintillalexertex.sip index 24f42fe..24f42fe 100644 --- a/sip/qtext/qextscintillalexertex.sip +++ b/sip/tqtext/tqextscintillalexertex.sip diff --git a/sip/qtext/qextscintillamacro.sip b/sip/tqtext/tqextscintillamacro.sip index e29ab1f..e29ab1f 100644 --- a/sip/qtext/qextscintillamacro.sip +++ b/sip/tqtext/tqextscintillamacro.sip diff --git a/sip/qtext/qextscintillaprinter.sip b/sip/tqtext/tqextscintillaprinter.sip index b5ee0d6..b5ee0d6 100644 --- a/sip/qtext/qextscintillaprinter.sip +++ b/sip/tqtext/tqextscintillaprinter.sip diff --git a/sip/qtext/qtextmod.sip b/sip/tqtext/tqtextmod.sip index 5b01495..dc57de3 100644 --- a/sip/qtext/qtextmod.sip +++ b/sip/tqtext/tqtextmod.sip @@ -1,4 +1,4 @@ -// This is the SIP interface definition for the qtext module of PyTQt. +// This is the SIP interface definition for the tqtext module of PyTQt. // // Copyright (c) 2007 // Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -20,9 +20,9 @@ // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -%Module PyTQt.qtext 4 +%Module PyTQt.tqtext 4 -%Import qt/qtmod.sip +%Import tqt/tqtmod.sip %Include copying.sip @@ -37,40 +37,40 @@ const char *TQSCINTILLA_VERSION_STR; const char *TQSCINTILLA_BUILD; -%Include qextscintillaapis.sip -%Include qextscintillabase.sip -%Include qextscintilla.sip -%Include qextscintillacommand.sip -%Include qextscintillacommandset.sip -%Include qextscintilladocument.sip -%Include qextscintillalexer.sip -%Include qextscintillalexerbash.sip -%Include qextscintillalexerbatch.sip -%Include qextscintillalexercpp.sip -%Include qextscintillalexercsharp.sip -%Include qextscintillalexercss.sip -%Include qextscintillalexerdiff.sip -%Include qextscintillalexerhtml.sip -%Include qextscintillalexeridl.sip -%Include qextscintillalexerjava.sip -%Include qextscintillalexerjavascript.sip -%Include qextscintillalexerlua.sip -%Include qextscintillalexermakefile.sip -%Include qextscintillalexerperl.sip -%Include qextscintillalexerpov.sip -%Include qextscintillalexerproperties.sip -%Include qextscintillalexerpython.sip -%Include qextscintillalexerruby.sip -%Include qextscintillalexersql.sip -%Include qextscintillalexertex.sip -%Include qextscintillamacro.sip -%Include qextscintillaprinter.sip +%Include tqextscintillaapis.sip +%Include tqextscintillabase.sip +%Include tqextscintilla.sip +%Include tqextscintillacommand.sip +%Include tqextscintillacommandset.sip +%Include tqextscintilladocument.sip +%Include tqextscintillalexer.sip +%Include tqextscintillalexerbash.sip +%Include tqextscintillalexerbatch.sip +%Include tqextscintillalexercpp.sip +%Include tqextscintillalexercsharp.sip +%Include tqextscintillalexercss.sip +%Include tqextscintillalexerdiff.sip +%Include tqextscintillalexerhtml.sip +%Include tqextscintillalexeridl.sip +%Include tqextscintillalexerjava.sip +%Include tqextscintillalexerjavascript.sip +%Include tqextscintillalexerlua.sip +%Include tqextscintillalexermakefile.sip +%Include tqextscintillalexerperl.sip +%Include tqextscintillalexerpov.sip +%Include tqextscintillalexerproperties.sip +%Include tqextscintillalexerpython.sip +%Include tqextscintillalexerruby.sip +%Include tqextscintillalexersql.sip +%Include tqextscintillalexertex.sip +%Include tqextscintillamacro.sip +%Include tqextscintillaprinter.sip // The build file template. -%Makefile qtext.pro.in -# The project file for the qtext module. +%Makefile tqtext.pro.in +# The project file for the tqtext module. # # Copyright (c) 2007 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -94,11 +94,11 @@ const char *TQSCINTILLA_BUILD; TEMPLATE = lib TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ -INCLUDEPATH = @BLX_INCLUDEPATH@ @PYQT_QSCINTILLA_INC@ +DESTDIR = @PYTQT_MODDIR@ +CONFIG += @BLX_CONFIG_LIB@ @PYTQT_WARN@ +INCLUDEPATH = @BLX_INCLUDEPATH@ @PYTQT_TQSCINTILLA_INC@ DEFINES = @BLX_DEFINES@ TQEXTSCINTILLA_DLL -LIBS += @PYQT_QT_MODULE@ @PYQT_QSCINTILLA_LIB@ @BLX_LIBS@ +LIBS += @PYTQT_TQT_MODULE@ @PYTQT_TQSCINTILLA_LIB@ @BLX_LIBS@ macx:QMAKE_LFLAGS += -framework Python SOURCES = $B diff --git a/sip/tqtgl/copying.sip b/sip/tqtgl/copying.sip new file mode 100644 index 0000000..49b4531 --- /dev/null +++ b/sip/tqtgl/copying.sip @@ -0,0 +1,51 @@ +// This is the SIP file defining the PyTQt license. +// +// Copyright (c) 2007 +// Riverbank Computing Limited <info@riverbankcomputing.co.uk> +// +// This file is part of PyTQt. +// +// This copy of PyTQt is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 2, or (at your option) any later +// version. +// +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, +// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%Copying +Copyright (c) 2007 + Riverbank Computing Limited <info@riverbankcomputing.co.uk> + +This file is part of PyTQt. + +This copy of PyTQt is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +details. + +You should have received a copy of the GNU General Public License along with +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 + + +%OptionalInclude pytqt-internal.sip +%OptionalInclude pytqt-gpl.sip +%OptionalInclude pytqt-commercial.sip +%OptionalInclude pytqt-edu.sip +%OptionalInclude pytqt-eval.sip +%OptionalInclude pytqt-nc.sip +%OptionalInclude pytqt-tkc.sip diff --git a/sip/qtgl/qgl.sip b/sip/tqtgl/tqgl.sip index 1d1b080..1d1b080 100644 --- a/sip/qtgl/qgl.sip +++ b/sip/tqtgl/tqgl.sip diff --git a/sip/qtgl/qglcolormap.sip b/sip/tqtgl/tqglcolormap.sip index 4d621ae..4d621ae 100644 --- a/sip/qtgl/qglcolormap.sip +++ b/sip/tqtgl/tqglcolormap.sip diff --git a/sip/qtgl/qtglmod.sip b/sip/tqtgl/tqtglmod.sip index abf4054..618de9b 100644 --- a/sip/qtgl/qtglmod.sip +++ b/sip/tqtgl/tqtglmod.sip @@ -1,4 +1,4 @@ -// This is the SIP interface definition for the qtgl module of PyTQt. +// This is the SIP interface definition for the tqtgl module of PyTQt. // // Copyright (c) 2007 // Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -20,21 +20,21 @@ // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -%Module PyTQt.qtgl 1 +%Module PyTQt.tqtgl 1 -%Import qt/qtmod.sip +%Import tqt/tqtmod.sip %Include copying.sip -%Include qgl.sip -%Include qglcolormap.sip +%Include tqgl.sip +%Include tqglcolormap.sip // The build file template. -%Makefile qtgl.pro.in -# The project file for the qtgl module. +%Makefile tqtgl.pro.in +# The project file for the tqtgl module. # # Copyright (c) 2007 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -58,11 +58,11 @@ TEMPLATE = lib TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ opengl @PYQT_WARN@ +DESTDIR = @PYTQT_MODDIR@ +CONFIG += @BLX_CONFIG_LIB@ opengl @PYTQT_WARN@ INCLUDEPATH = @BLX_INCLUDEPATH@ DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @BLX_LIBS@ +LIBS += @PYTQT_TQT_MODULE@ @BLX_LIBS@ macx:QMAKE_LFLAGS += -framework Python SOURCES = $B diff --git a/sip/tqtnetwork/copying.sip b/sip/tqtnetwork/copying.sip new file mode 100644 index 0000000..49b4531 --- /dev/null +++ b/sip/tqtnetwork/copying.sip @@ -0,0 +1,51 @@ +// This is the SIP file defining the PyTQt license. +// +// Copyright (c) 2007 +// Riverbank Computing Limited <info@riverbankcomputing.co.uk> +// +// This file is part of PyTQt. +// +// This copy of PyTQt is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 2, or (at your option) any later +// version. +// +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, +// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%Copying +Copyright (c) 2007 + Riverbank Computing Limited <info@riverbankcomputing.co.uk> + +This file is part of PyTQt. + +This copy of PyTQt is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +details. + +You should have received a copy of the GNU General Public License along with +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 + + +%OptionalInclude pytqt-internal.sip +%OptionalInclude pytqt-gpl.sip +%OptionalInclude pytqt-commercial.sip +%OptionalInclude pytqt-edu.sip +%OptionalInclude pytqt-eval.sip +%OptionalInclude pytqt-nc.sip +%OptionalInclude pytqt-tkc.sip diff --git a/sip/qtnetwork/qdns.sip b/sip/tqtnetwork/tqdns.sip index 7d9c436..7d9c436 100644 --- a/sip/qtnetwork/qdns.sip +++ b/sip/tqtnetwork/tqdns.sip diff --git a/sip/qtnetwork/qftp.sip b/sip/tqtnetwork/tqftp.sip index ee945db..ee945db 100644 --- a/sip/qtnetwork/qftp.sip +++ b/sip/tqtnetwork/tqftp.sip diff --git a/sip/qtnetwork/qhostaddress.sip b/sip/tqtnetwork/tqhostaddress.sip index 6e1cc91..6e1cc91 100644 --- a/sip/qtnetwork/qhostaddress.sip +++ b/sip/tqtnetwork/tqhostaddress.sip diff --git a/sip/qtnetwork/qhttp.sip b/sip/tqtnetwork/tqhttp.sip index 2f80e22..2f80e22 100644 --- a/sip/qtnetwork/qhttp.sip +++ b/sip/tqtnetwork/tqhttp.sip diff --git a/sip/qtnetwork/qlocalfs.sip b/sip/tqtnetwork/tqlocalfs.sip index f33d6e0..f33d6e0 100644 --- a/sip/qtnetwork/qlocalfs.sip +++ b/sip/tqtnetwork/tqlocalfs.sip diff --git a/sip/qtnetwork/qnetwork.sip b/sip/tqtnetwork/tqnetwork.sip index b0a6af3..b0a6af3 100644 --- a/sip/qtnetwork/qnetwork.sip +++ b/sip/tqtnetwork/tqnetwork.sip diff --git a/sip/qtnetwork/qserversocket.sip b/sip/tqtnetwork/tqserversocket.sip index 4cbcdce..4cbcdce 100644 --- a/sip/qtnetwork/qserversocket.sip +++ b/sip/tqtnetwork/tqserversocket.sip diff --git a/sip/qtnetwork/qsocket.sip b/sip/tqtnetwork/tqsocket.sip index ed52819..ed52819 100644 --- a/sip/qtnetwork/qsocket.sip +++ b/sip/tqtnetwork/tqsocket.sip diff --git a/sip/qtnetwork/qsocketdevice.sip b/sip/tqtnetwork/tqsocketdevice.sip index 32ee5e5..32ee5e5 100644 --- a/sip/qtnetwork/qsocketdevice.sip +++ b/sip/tqtnetwork/tqsocketdevice.sip diff --git a/sip/qtnetwork/qtnetworkmod.sip b/sip/tqtnetwork/tqtnetworkmod.sip index 88b1b45..db78a13 100644 --- a/sip/qtnetwork/qtnetworkmod.sip +++ b/sip/tqtnetwork/tqtnetworkmod.sip @@ -1,4 +1,4 @@ -// This is the SIP interface definition for the qtnetwork module of PyTQt. +// This is the SIP interface definition for the tqtnetwork module of PyTQt. // // Copyright (c) 2007 // Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -20,28 +20,28 @@ // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -%Module PyTQt.qtnetwork 1 +%Module PyTQt.tqtnetwork 1 -%Import qt/qtmod.sip +%Import tqt/tqtmod.sip %Include copying.sip -%Include qdns.sip -%Include qhostaddress.sip -%Include qftp.sip -%Include qhttp.sip -%Include qlocalfs.sip -%Include qnetwork.sip -%Include qserversocket.sip -%Include qsocket.sip -%Include qsocketdevice.sip +%Include tqdns.sip +%Include tqhostaddress.sip +%Include tqftp.sip +%Include tqhttp.sip +%Include tqlocalfs.sip +%Include tqnetwork.sip +%Include tqserversocket.sip +%Include tqsocket.sip +%Include tqsocketdevice.sip // The build file template. -%Makefile qtnetwork.pro.in -# The project file for the qtnetwork module. +%Makefile tqtnetwork.pro.in +# The project file for the tqtnetwork module. # # Copyright (c) 2007 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -65,11 +65,11 @@ TEMPLATE = lib TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ +DESTDIR = @PYTQT_MODDIR@ +CONFIG += @BLX_CONFIG_LIB@ @PYTQT_WARN@ INCLUDEPATH = @BLX_INCLUDEPATH@ DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @BLX_LIBS@ +LIBS += @PYTQT_TQT_MODULE@ @BLX_LIBS@ macx:QMAKE_LFLAGS += -framework Python SOURCES = $B diff --git a/sip/tqtpe/copying.sip b/sip/tqtpe/copying.sip new file mode 100644 index 0000000..49b4531 --- /dev/null +++ b/sip/tqtpe/copying.sip @@ -0,0 +1,51 @@ +// This is the SIP file defining the PyTQt license. +// +// Copyright (c) 2007 +// Riverbank Computing Limited <info@riverbankcomputing.co.uk> +// +// This file is part of PyTQt. +// +// This copy of PyTQt is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 2, or (at your option) any later +// version. +// +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, +// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%Copying +Copyright (c) 2007 + Riverbank Computing Limited <info@riverbankcomputing.co.uk> + +This file is part of PyTQt. + +This copy of PyTQt is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +details. + +You should have received a copy of the GNU General Public License along with +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 + + +%OptionalInclude pytqt-internal.sip +%OptionalInclude pytqt-gpl.sip +%OptionalInclude pytqt-commercial.sip +%OptionalInclude pytqt-edu.sip +%OptionalInclude pytqt-eval.sip +%OptionalInclude pytqt-nc.sip +%OptionalInclude pytqt-tkc.sip diff --git a/sip/qtpe/qpeapplication.sip b/sip/tqtpe/tqpeapplication.sip index 9e6b99b..9e6b99b 100644 --- a/sip/qtpe/qpeapplication.sip +++ b/sip/tqtpe/tqpeapplication.sip diff --git a/sip/qtpe/qpeapplnk.sip b/sip/tqtpe/tqpeapplnk.sip index 0216bdd..0216bdd 100644 --- a/sip/qtpe/qpeapplnk.sip +++ b/sip/tqtpe/tqpeapplnk.sip diff --git a/sip/qtpe/qpeconfig.sip b/sip/tqtpe/tqpeconfig.sip index 39c788f..39c788f 100644 --- a/sip/qtpe/qpeconfig.sip +++ b/sip/tqtpe/tqpeconfig.sip diff --git a/sip/qtpe/qpefilemanager.sip b/sip/tqtpe/tqpefilemanager.sip index bc7d76e..bc7d76e 100644 --- a/sip/qtpe/qpefilemanager.sip +++ b/sip/tqtpe/tqpefilemanager.sip diff --git a/sip/qtpe/qpefileselector.sip b/sip/tqtpe/tqpefileselector.sip index a7d3d01..a7d3d01 100644 --- a/sip/qtpe/qpefileselector.sip +++ b/sip/tqtpe/tqpefileselector.sip diff --git a/sip/qtpe/qpefontdatabase.sip b/sip/tqtpe/tqpefontdatabase.sip index 1b250ed..1b250ed 100644 --- a/sip/qtpe/qpefontdatabase.sip +++ b/sip/tqtpe/tqpefontdatabase.sip diff --git a/sip/qtpe/qpeglobal.sip b/sip/tqtpe/tqpeglobal.sip index 0810f65..0810f65 100644 --- a/sip/qtpe/qpeglobal.sip +++ b/sip/tqtpe/tqpeglobal.sip diff --git a/sip/qtpe/qpemenubar.sip b/sip/tqtpe/tqpemenubar.sip index d572cef..d572cef 100644 --- a/sip/qtpe/qpemenubar.sip +++ b/sip/tqtpe/tqpemenubar.sip diff --git a/sip/qtpe/qpemenubutton.sip b/sip/tqtpe/tqpemenubutton.sip index 7d5da05..7d5da05 100644 --- a/sip/qtpe/qpemenubutton.sip +++ b/sip/tqtpe/tqpemenubutton.sip diff --git a/sip/qtpe/qpeqcopenvelope.sip b/sip/tqtpe/tqpeqcopenvelope.sip index cabb169..f066d4d 100644 --- a/sip/qtpe/qpeqcopenvelope.sip +++ b/sip/tqtpe/tqpeqcopenvelope.sip @@ -29,7 +29,7 @@ class TQCopEnvelope : TQDataStream { %TypeHeaderCode -#include <tqpe/qcopenvelope_qws.h> +#include <tqpe/tqcopenvelope_qws.h> %End public: diff --git a/sip/qtpe/qpeqdawg.sip b/sip/tqtpe/tqpeqdawg.sip index fa24f47..fa24f47 100644 --- a/sip/qtpe/qpeqdawg.sip +++ b/sip/tqtpe/tqpeqdawg.sip diff --git a/sip/qtpe/qperesource.sip b/sip/tqtpe/tqperesource.sip index 5a25680..5a25680 100644 --- a/sip/qtpe/qperesource.sip +++ b/sip/tqtpe/tqperesource.sip diff --git a/sip/qtpe/qpetimestring.sip b/sip/tqtpe/tqpetimestring.sip index 47dda55..47dda55 100644 --- a/sip/qtpe/qpetimestring.sip +++ b/sip/tqtpe/tqpetimestring.sip diff --git a/sip/qtpe/qpetoolbar.sip b/sip/tqtpe/tqpetoolbar.sip index 10fd387..10fd387 100644 --- a/sip/qtpe/qpetoolbar.sip +++ b/sip/tqtpe/tqpetoolbar.sip diff --git a/sip/qtpe/qtpemod.sip b/sip/tqtpe/tqtpemod.sip index 9e9c62a..f0dad71 100644 --- a/sip/qtpe/qtpemod.sip +++ b/sip/tqtpe/tqtpemod.sip @@ -1,4 +1,4 @@ -// This is the SIP interface definition for the qtpe module of PyTQt. +// This is the SIP interface definition for the tqtpe module of PyTQt. // // Copyright (c) 2007 // Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -20,9 +20,9 @@ // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -%Module PyTQt.qtpe 1 +%Module PyTQt.tqtpe 1 -%Import qt/qtmod.sip +%Import tqt/tqtmod.sip %Include copying.sip @@ -38,26 +38,26 @@ const char *TQPE_VERSION; -%Include qpeapplication.sip -%Include qpeapplnk.sip -%Include qpeconfig.sip -%Include qpefilemanager.sip -%Include qpefileselector.sip -%Include qpefontdatabase.sip -%Include qpeglobal.sip -%Include qpemenubar.sip -%Include qpemenubutton.sip -%Include qpeqcopenvelope.sip -%Include qpeqdawg.sip -%Include qperesource.sip -%Include qpetimestring.sip -%Include qpetoolbar.sip +%Include tqpeapplication.sip +%Include tqpeapplnk.sip +%Include tqpeconfig.sip +%Include tqpefilemanager.sip +%Include tqpefileselector.sip +%Include tqpefontdatabase.sip +%Include tqpeglobal.sip +%Include tqpemenubar.sip +%Include tqpemenubutton.sip +%Include tqpeqcopenvelope.sip +%Include tqpeqdawg.sip +%Include tqperesource.sip +%Include tqpetimestring.sip +%Include tqpetoolbar.sip // The build file template. -%Makefile qtpe.pro.in -# The project file for the qtpe module. +%Makefile tqtpe.pro.in +# The project file for the tqtpe module. # # Copyright (c) 2007 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -81,11 +81,11 @@ const char *TQPE_VERSION; TEMPLATE = lib TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ +DESTDIR = @PYTQT_MODDIR@ +CONFIG += @BLX_CONFIG_LIB@ @PYTQT_WARN@ INCLUDEPATH = @BLX_INCLUDEPATH@ DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @BLX_LIBS@ -lqpe +LIBS += @PYTQT_TQT_MODULE@ @BLX_LIBS@ -lqpe macx:QMAKE_LFLAGS += -framework Python SOURCES = $B diff --git a/sip/tqtsql/copying.sip b/sip/tqtsql/copying.sip new file mode 100644 index 0000000..49b4531 --- /dev/null +++ b/sip/tqtsql/copying.sip @@ -0,0 +1,51 @@ +// This is the SIP file defining the PyTQt license. +// +// Copyright (c) 2007 +// Riverbank Computing Limited <info@riverbankcomputing.co.uk> +// +// This file is part of PyTQt. +// +// This copy of PyTQt is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 2, or (at your option) any later +// version. +// +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, +// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%Copying +Copyright (c) 2007 + Riverbank Computing Limited <info@riverbankcomputing.co.uk> + +This file is part of PyTQt. + +This copy of PyTQt is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +details. + +You should have received a copy of the GNU General Public License along with +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 + + +%OptionalInclude pytqt-internal.sip +%OptionalInclude pytqt-gpl.sip +%OptionalInclude pytqt-commercial.sip +%OptionalInclude pytqt-edu.sip +%OptionalInclude pytqt-eval.sip +%OptionalInclude pytqt-nc.sip +%OptionalInclude pytqt-tkc.sip diff --git a/sip/qtsql/qdatabrowser.sip b/sip/tqtsql/tqdatabrowser.sip index 4aa7281..4aa7281 100644 --- a/sip/qtsql/qdatabrowser.sip +++ b/sip/tqtsql/tqdatabrowser.sip diff --git a/sip/qtsql/qdatatable.sip b/sip/tqtsql/tqdatatable.sip index 5840f3e..5840f3e 100644 --- a/sip/qtsql/qdatatable.sip +++ b/sip/tqtsql/tqdatatable.sip diff --git a/sip/qtsql/qdataview.sip b/sip/tqtsql/tqdataview.sip index cfa3c98..cfa3c98 100644 --- a/sip/qtsql/qdataview.sip +++ b/sip/tqtsql/tqdataview.sip diff --git a/sip/qtsql/qeditorfactory.sip b/sip/tqtsql/tqeditorfactory.sip index 4208d90..4208d90 100644 --- a/sip/qtsql/qeditorfactory.sip +++ b/sip/tqtsql/tqeditorfactory.sip diff --git a/sip/qtsql/qsql.sip b/sip/tqtsql/tqsql.sip index 727134e..727134e 100644 --- a/sip/qtsql/qsql.sip +++ b/sip/tqtsql/tqsql.sip diff --git a/sip/qtsql/qsqlcursor.sip b/sip/tqtsql/tqsqlcursor.sip index 76f258e..76f258e 100644 --- a/sip/qtsql/qsqlcursor.sip +++ b/sip/tqtsql/tqsqlcursor.sip diff --git a/sip/qtsql/qsqldatabase.sip b/sip/tqtsql/tqsqldatabase.sip index cab38d2..cab38d2 100644 --- a/sip/qtsql/qsqldatabase.sip +++ b/sip/tqtsql/tqsqldatabase.sip diff --git a/sip/qtsql/qsqldriver.sip b/sip/tqtsql/tqsqldriver.sip index 74aede8..74aede8 100644 --- a/sip/qtsql/qsqldriver.sip +++ b/sip/tqtsql/tqsqldriver.sip diff --git a/sip/qtsql/qsqleditorfactory.sip b/sip/tqtsql/tqsqleditorfactory.sip index cf0d361..cf0d361 100644 --- a/sip/qtsql/qsqleditorfactory.sip +++ b/sip/tqtsql/tqsqleditorfactory.sip diff --git a/sip/qtsql/qsqlerror.sip b/sip/tqtsql/tqsqlerror.sip index ae9dd70..ae9dd70 100644 --- a/sip/qtsql/qsqlerror.sip +++ b/sip/tqtsql/tqsqlerror.sip diff --git a/sip/qtsql/qsqlfield.sip b/sip/tqtsql/tqsqlfield.sip index c54e0f5..c54e0f5 100644 --- a/sip/qtsql/qsqlfield.sip +++ b/sip/tqtsql/tqsqlfield.sip diff --git a/sip/qtsql/qsqlform.sip b/sip/tqtsql/tqsqlform.sip index 9a03610..9a03610 100644 --- a/sip/qtsql/qsqlform.sip +++ b/sip/tqtsql/tqsqlform.sip diff --git a/sip/qtsql/qsqlindex.sip b/sip/tqtsql/tqsqlindex.sip index 5e6db25..5e6db25 100644 --- a/sip/qtsql/qsqlindex.sip +++ b/sip/tqtsql/tqsqlindex.sip diff --git a/sip/qtsql/qsqlpropertymap.sip b/sip/tqtsql/tqsqlpropertymap.sip index 9e7b9ea..9e7b9ea 100644 --- a/sip/qtsql/qsqlpropertymap.sip +++ b/sip/tqtsql/tqsqlpropertymap.sip diff --git a/sip/qtsql/qsqlquery.sip b/sip/tqtsql/tqsqlquery.sip index 8212391..8212391 100644 --- a/sip/qtsql/qsqlquery.sip +++ b/sip/tqtsql/tqsqlquery.sip diff --git a/sip/qtsql/qsqlrecord.sip b/sip/tqtsql/tqsqlrecord.sip index 4e79fac..4e79fac 100644 --- a/sip/qtsql/qsqlrecord.sip +++ b/sip/tqtsql/tqsqlrecord.sip diff --git a/sip/qtsql/qsqlresult.sip b/sip/tqtsql/tqsqlresult.sip index 144f355..144f355 100644 --- a/sip/qtsql/qsqlresult.sip +++ b/sip/tqtsql/tqsqlresult.sip diff --git a/sip/qtsql/qsqlselectcursor.sip b/sip/tqtsql/tqsqlselectcursor.sip index a33fee3..a33fee3 100644 --- a/sip/qtsql/qsqlselectcursor.sip +++ b/sip/tqtsql/tqsqlselectcursor.sip diff --git a/sip/qtsql/qtsqlmod.sip b/sip/tqtsql/tqtsqlmod.sip index a1847ac..10be45e 100644 --- a/sip/qtsql/qtsqlmod.sip +++ b/sip/tqtsql/tqtsqlmod.sip @@ -1,4 +1,4 @@ -// This is the SIP interface definition for the qtsql module of PyTQt. +// This is the SIP interface definition for the tqtsql module of PyTQt. // // Copyright (c) 2007 // Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -20,38 +20,38 @@ // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -%Module PyTQt.qtsql 1 +%Module PyTQt.tqtsql 1 -%Import qt/qtmod.sip -%Import qttable/qttablemod.sip +%Import tqt/tqtmod.sip +%Import tqttable/tqttablemod.sip %Include copying.sip -%Include qdatabrowser.sip -%Include qdatatable.sip -%Include qdataview.sip -%Include qeditorfactory.sip -%Include qsql.sip -%Include qsqlcursor.sip -%Include qsqldatabase.sip -%Include qsqldriver.sip -%Include qsqleditorfactory.sip -%Include qsqlerror.sip -%Include qsqlfield.sip -%Include qsqlform.sip -%Include qsqlindex.sip -%Include qsqlpropertymap.sip -%Include qsqlquery.sip -%Include qsqlrecord.sip -%Include qsqlresult.sip -%Include qsqlselectcursor.sip +%Include tqdatabrowser.sip +%Include tqdatatable.sip +%Include tqdataview.sip +%Include tqeditorfactory.sip +%Include tqsql.sip +%Include tqsqlcursor.sip +%Include tqsqldatabase.sip +%Include tqsqldriver.sip +%Include tqsqleditorfactory.sip +%Include tqsqlerror.sip +%Include tqsqlfield.sip +%Include tqsqlform.sip +%Include tqsqlindex.sip +%Include tqsqlpropertymap.sip +%Include tqsqlquery.sip +%Include tqsqlrecord.sip +%Include tqsqlresult.sip +%Include tqsqlselectcursor.sip // The build file template. -%Makefile qtsql.pro.in -# The project file for the qtsql module. +%Makefile tqtsql.pro.in +# The project file for the tqtsql module. # # Copyright (c) 2007 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -75,11 +75,11 @@ TEMPLATE = lib TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ +DESTDIR = @PYTQT_MODDIR@ +CONFIG += @BLX_CONFIG_LIB@ @PYTQT_WARN@ INCLUDEPATH = @BLX_INCLUDEPATH@ DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QTTABLE_MODULE@ @BLX_LIBS@ +LIBS += @PYTQT_TQTTABLE_MODULE@ @BLX_LIBS@ macx:QMAKE_LFLAGS += -framework Python SOURCES = $B diff --git a/sip/tqttable/copying.sip b/sip/tqttable/copying.sip new file mode 100644 index 0000000..49b4531 --- /dev/null +++ b/sip/tqttable/copying.sip @@ -0,0 +1,51 @@ +// This is the SIP file defining the PyTQt license. +// +// Copyright (c) 2007 +// Riverbank Computing Limited <info@riverbankcomputing.co.uk> +// +// This file is part of PyTQt. +// +// This copy of PyTQt is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 2, or (at your option) any later +// version. +// +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, +// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%Copying +Copyright (c) 2007 + Riverbank Computing Limited <info@riverbankcomputing.co.uk> + +This file is part of PyTQt. + +This copy of PyTQt is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +details. + +You should have received a copy of the GNU General Public License along with +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 + + +%OptionalInclude pytqt-internal.sip +%OptionalInclude pytqt-gpl.sip +%OptionalInclude pytqt-commercial.sip +%OptionalInclude pytqt-edu.sip +%OptionalInclude pytqt-eval.sip +%OptionalInclude pytqt-nc.sip +%OptionalInclude pytqt-tkc.sip diff --git a/sip/qttable/qtable.sip b/sip/tqttable/tqtable.sip index 8b19fea..8b19fea 100644 --- a/sip/qttable/qtable.sip +++ b/sip/tqttable/tqtable.sip diff --git a/sip/qtcanvas/qtcanvasmod.sip b/sip/tqttable/tqttablemod.sip index f89275f..6dc80ce 100644 --- a/sip/qtcanvas/qtcanvasmod.sip +++ b/sip/tqttable/tqttablemod.sip @@ -1,4 +1,4 @@ -// This is the SIP interface definition for the qtcanvas module of PyTQt. +// This is the SIP interface definition for the tqttable module of PyTQt. // // Copyright (c) 2007 // Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -20,20 +20,20 @@ // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -%Module PyTQt.qtcanvas 1 +%Module PyTQt.tqttable 1 -%Import qt/qtmod.sip +%Import tqt/tqtmod.sip %Include copying.sip -%Include qcanvas.sip +%Include tqtable.sip // The build file template. -%Makefile qtcanvas.pro.in -# The project file for the qtcanvas module. +%Makefile tqttable.pro.in +# The project file for the tqttable module. # # Copyright (c) 2007 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -57,11 +57,11 @@ TEMPLATE = lib TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ +DESTDIR = @PYTQT_MODDIR@ +CONFIG += @BLX_CONFIG_LIB@ @PYTQT_WARN@ INCLUDEPATH = @BLX_INCLUDEPATH@ DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @BLX_LIBS@ +LIBS += @PYTQT_TQT_MODULE@ @BLX_LIBS@ macx:QMAKE_LFLAGS += -framework Python SOURCES = $B diff --git a/sip/tqtui/copying.sip b/sip/tqtui/copying.sip new file mode 100644 index 0000000..49b4531 --- /dev/null +++ b/sip/tqtui/copying.sip @@ -0,0 +1,51 @@ +// This is the SIP file defining the PyTQt license. +// +// Copyright (c) 2007 +// Riverbank Computing Limited <info@riverbankcomputing.co.uk> +// +// This file is part of PyTQt. +// +// This copy of PyTQt is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 2, or (at your option) any later +// version. +// +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, +// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%Copying +Copyright (c) 2007 + Riverbank Computing Limited <info@riverbankcomputing.co.uk> + +This file is part of PyTQt. + +This copy of PyTQt is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +details. + +You should have received a copy of the GNU General Public License along with +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 + + +%OptionalInclude pytqt-internal.sip +%OptionalInclude pytqt-gpl.sip +%OptionalInclude pytqt-commercial.sip +%OptionalInclude pytqt-edu.sip +%OptionalInclude pytqt-eval.sip +%OptionalInclude pytqt-nc.sip +%OptionalInclude pytqt-tkc.sip diff --git a/sip/qtui/qtuimod.sip b/sip/tqtui/tqtuimod.sip index 9e61e98..f993194 100644 --- a/sip/qtui/qtuimod.sip +++ b/sip/tqtui/tqtuimod.sip @@ -1,4 +1,4 @@ -// This is the SIP interface definition for the qtui module of PyTQt. Thanks to +// This is the SIP interface definition for the tqtui module of PyTQt. Thanks to // Hans-Peter Jansen for the original work. // // Copyright (c) 2007 @@ -21,20 +21,20 @@ // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -%Module PyTQt.qtui 1 +%Module PyTQt.tqtui 1 -%Import qt/qtmod.sip +%Import tqt/tqtmod.sip %Include copying.sip -%Include qwidgetfactory.sip +%Include tqwidgetfactory.sip // The build file template. -%Makefile qtui.pro.in -# The project file for the qtui module. +%Makefile tqtui.pro.in +# The project file for the tqtui module. # # Copyright (c) 2007 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -58,11 +58,11 @@ TEMPLATE = lib TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ +DESTDIR = @PYTQT_MODDIR@ +CONFIG += @BLX_CONFIG_LIB@ @PYTQT_WARN@ INCLUDEPATH = @BLX_INCLUDEPATH@ DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @PYQT_QUI_LIB@ @BLX_LIBS@ +LIBS += @PYTQT_TQT_MODULE@ @PYTQT_TQUI_LIB@ @BLX_LIBS@ macx:QMAKE_LFLAGS += -framework Python SOURCES = $B diff --git a/sip/qtui/qwidgetfactory.sip b/sip/tqtui/tqwidgetfactory.sip index c58c477..c58c477 100644 --- a/sip/qtui/qwidgetfactory.sip +++ b/sip/tqtui/tqwidgetfactory.sip diff --git a/sip/tqtxml/copying.sip b/sip/tqtxml/copying.sip new file mode 100644 index 0000000..49b4531 --- /dev/null +++ b/sip/tqtxml/copying.sip @@ -0,0 +1,51 @@ +// This is the SIP file defining the PyTQt license. +// +// Copyright (c) 2007 +// Riverbank Computing Limited <info@riverbankcomputing.co.uk> +// +// This file is part of PyTQt. +// +// This copy of PyTQt is free software; you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by the Free +// Software Foundation; either version 2, or (at your option) any later +// version. +// +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, +// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%Copying +Copyright (c) 2007 + Riverbank Computing Limited <info@riverbankcomputing.co.uk> + +This file is part of PyTQt. + +This copy of PyTQt is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +details. + +You should have received a copy of the GNU General Public License along with +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 + + +%OptionalInclude pytqt-internal.sip +%OptionalInclude pytqt-gpl.sip +%OptionalInclude pytqt-commercial.sip +%OptionalInclude pytqt-edu.sip +%OptionalInclude pytqt-eval.sip +%OptionalInclude pytqt-nc.sip +%OptionalInclude pytqt-tkc.sip diff --git a/sip/qtxml/qdom.sip b/sip/tqtxml/tqdom.sip index 2dc3a9d..2dc3a9d 100644 --- a/sip/qtxml/qdom.sip +++ b/sip/tqtxml/tqdom.sip diff --git a/sip/qtxml/qtxmlmod.sip b/sip/tqtxml/tqtxmlmod.sip index d0c0c25..7e607fd 100644 --- a/sip/qtxml/qtxmlmod.sip +++ b/sip/tqtxml/tqtxmlmod.sip @@ -1,4 +1,4 @@ -// This is the SIP interface definition for the qtxml module of PyTQt. +// This is the SIP interface definition for the tqtxml module of PyTQt. // // Copyright (c) 2007 // Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -20,30 +20,30 @@ // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -%Module PyTQt.qtxml 0 +%Module PyTQt.tqtxml 0 -%Import qt/qtmod.sip +%Import tqt/tqtmod.sip %Include copying.sip -%Include qdom.sip +%Include tqdom.sip // This is only needed on Windows to make sure that the DLL containing the C++ -// code of the main qt module is loaded before we import our own C++ code which +// code of the main tqt module is loaded before we import our own C++ code which // has been linked against it. All other modules inherit from a class in the -// qt module which sorts it out, but this module doesn't so we add a dummy. It +// tqt 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 PyTQt.qt import TQObject +from PyTQt.tqt import TQObject %End // The build file template. -%Makefile qtxml.pro.in -# The project file for the qtxml module. +%Makefile tqtxml.pro.in +# The project file for the tqtxml module. # # Copyright (c) 2007 # Riverbank Computing Limited <info@riverbankcomputing.co.uk> @@ -67,11 +67,11 @@ from PyTQt.qt import TQObject TEMPLATE = lib TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ +DESTDIR = @PYTQT_MODDIR@ +CONFIG += @BLX_CONFIG_LIB@ @PYTQT_WARN@ INCLUDEPATH = @BLX_INCLUDEPATH@ DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @BLX_LIBS@ +LIBS += @PYTQT_TQT_MODULE@ @BLX_LIBS@ macx:QMAKE_LFLAGS += -framework Python SOURCES = $B |