diff --git a/build.py b/build.py index 80e48f9..456f080 100644 --- a/build.py +++ b/build.py @@ -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 similarity index 99% rename from doc/PyQt.html rename to 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.

qttqt is the main module and contains the core classes and most user interface widgets.

qtaxcontainertqtaxcontainer contains a sub-set of the classes implemented in TQt's TQAxContainer module, part of TQt's ActiveTQt framework.

qtcanvastqtcanvas contains the classes implemented in TQt's Canvas module.

qtgltqtgl contains the classes implemented in TQt's OpenGL module.

  • qtnetworktqtnetwork contains the classes implemented in TQt's Network module.

  • qtpetqtpe contains the classes implemented in TQtopia (originally called the TQt Palmtop Environment). It is only supported with TQt/Embedded.

    qtsqltqtsql contains the classes implemented in TQt's SQL module.

  • qttabletqttable contains the classes implemented in TQt's Table module.

  • qtuitqtui contains the classes implemented in TQt's tqui library. These allow GUIs to be created directly from TQt Designer's

    qtxmltqtxml contains the classes implemented in TQt's XML module.

  • qtexttqtext 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.

    PyTQt also includes the pyuicpytquic and pylupdatepytqlupdate utilities which correspond to the TQt utilities. pyuicpytquic converts the GUI designs created with TQt Designer to executable Python code. pylupdatepytqlupdate scans Python code, extracts all strings that are candidates for internationalisation, and creates an XML file for use by TQt Linguist.

    PyTQt includes pyuicpytquic which generates Python code from the same XML. The Python code is self contained and can be executed immediately.

    It is sometimes useful to be able to include some specific Python code in the output generated by pyuicpytquic. For example, if you are using custom widgets, pyuicpytquic has no way of knowing the name of the Python module containing the widget and so cannot generate the required statement. To help get around this, pyuicpytquic will extract any lines entered in the

    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

    Here's the corresponding output from pyuicpytquic.

    from PyTQt.qt import *
    +>from PyTQt.tqt import *
     
     # Import our custom widget.
     from foo import bar

    Thanks to Christian Bird, pyuicpytquic 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 file when using pyuicpytquic. The

    Here is the resulting code when pyuicpytquic is run.

    Thanks to Detlev Offenbach, PyTQt includes the pylupdatepytqlupdate program. This generates the same pyqtconfigpytqtconfig and Build System Support

    module) is described in the SIP documentation. PyTQt includes the pyqtconfigpytqtconfig module that can be used by configuration scripts of other bindings that are built on top of PyTQt.

    The pyqtconfigpytqtconfig module contains the following classes:

    pyqt_bin_dirpytqt_bin_dir

    The name of the directory containing the pyuicpytquic and pylupdatepytqlupdate executables.

    pyqt_mod_dirpytqt_mod_dir

    pyqt_modulespytqt_modules

    pyqt_qt_sip_flagspytqt_tqt_sip_flags

    A string of the SIP flags used to generate the code for the qttqt module and which should be added to those needed by any module that imports the qttqt module.

    pyqt_qtaxcontainer_sip_flagspytqt_tqtaxcontainer_sip_flags

    A string of the SIP flags used to generate the code for the qtaxcontainertqtaxcontainer module and which should be added to those needed by any module that imports the qtaxcontainertqtaxcontainer module.

    pyqt_qtcanvas_sip_flagspytqt_tqtcanvas_sip_flags

    A string of the SIP flags used to generate the code for the qtcanvastqtcanvas module and which should be added to those needed by any module that imports the qtcanvastqtcanvas module.

    pyqt_qtext_sip_flagspytqt_tqtext_sip_flags

    A string of the SIP flags used to generate the code for the qtexttqtext module and which should be added to those needed by any module that imports the qtexttqtext module.

    pyqt_qtgl_sip_flagspytqt_tqtgl_sip_flags

    A string of the SIP flags used to generate the code for the qtgltqtgl module and which should be added to those needed by any module that imports the qtgltqtgl module.

    pyqt_qtnetwork_sip_flagspytqt_tqtnetwork_sip_flags

    A string of the SIP flags used to generate the code for the qtnetworktqtnetwork module and which should be added to those needed by any module that imports the qtnetworktqtnetwork module.

    pyqt_qtsql_sip_flagspytqt_tqtsql_sip_flags

    A string of the SIP flags used to generate the code for the qtsqltqtsql module and which should be added to those needed by any module that imports the qtsqltqtsql module.

    pyqt_qttable_sip_flagspytqt_tqttable_sip_flags

    A string of the SIP flags used to generate the code for the qttabletqttable module and which should be added to those needed by any module that imports the qttabletqttable module.

    pyqt_qtui_sip_flagspytqt_tqtui_sip_flags

    A string of the SIP flags used to generate the code for the qtuitqtui module and which should be added to those needed by any module that imports the qtuitqtui module.

    pyqt_qtxml_sip_flagspytqt_tqtxml_sip_flags

    A string of the SIP flags used to generate the code for the qtxmltqtxml module and which should be added to those needed by any module that imports the qtxmltqtxml module.

    pyqt_sip_dirpytqt_sip_dir

    pyqt_versionpytqt_version

    pyqt_version_strpytqt_version_str

    The Makefile class for modules that import the qttqt module.

    The Makefile class for modules that import the qtaxcontainertqtaxcontainer module.

    The Makefile class for modules that import the qtcanvastqtcanvas module.

    The Makefile class for modules that import the qtexttqtext module.

    The Makefile class for modules that import the qtgltqtgl module.

    The Makefile class for modules that import the qtnetworktqtnetwork module.

    The Makefile class for modules that import the qttabletqttable module.

    The Makefile class for modules that import the qtsqltqtsql module.

    The Makefile class for modules that import the qtuitqtui module.

    The Makefile class for modules that import the qtxmltqtxml module.

    Note that the code generated by pyuicpytquic uses qttqt Module Reference

    qtaxcontainertqtaxcontainer Module Reference
    module to manipulate objects created by the qtaxcontainertqtaxcontainer module.

    The qtcanvastqtcanvas Module Reference

    qtexttqtext Module Reference
    qtgltqtgl Module Reference
    qtnetworktqtnetwork Module Reference
    qtpetqtpe Module Reference
    qtsqltqtsql Module Reference
    qttabletqttable Module Reference
    qtuitqtui Module Reference
    qtxmltqtxml Module Reference
    -qt is the main module and contains the core classes and most +tqt is the main module and contains the core classes and most user interface widgets. -qtaxcontainer contains a sub-set of the classes implemented +tqtaxcontainer contains a sub-set of the classes implemented in TQt's TQAxContainer module, part of TQt's ActiveTQt framework. -qtcanvas contains the classes implemented in TQt's Canvas +tqtcanvas contains the classes implemented in TQt's Canvas module. -qtgl contains the classes implemented in TQt's OpenGL module. +tqtgl contains the classes implemented in TQt's OpenGL module. -qtnetwork contains the classes implemented in TQt's Network +tqtnetwork contains the classes implemented in TQt's Network module. -qtpe contains the classes implemented in TQtopia (originally +tqtpe contains the classes implemented in TQtopia (originally called the TQt Palmtop Environment). It is only supported with TQt/Embedded. -qtsql contains the classes implemented in TQt's SQL module. +tqtsql contains the classes implemented in TQt's SQL module. -qttable contains the classes implemented in TQt's Table +tqttable contains the classes implemented in TQt's Table module. -qtui contains the classes implemented in TQt's tqui library. +tqtui contains the classes implemented in TQt's tqui library. These allow GUIs to be created directly from TQt Designer's .ui files. @@ -116,13 +116,13 @@ These allow GUIs to be created directly from TQt Designer's -qtxml contains the classes implemented in TQt's XML module. +tqtxml contains the classes implemented in TQt's XML module. -qtext contains useful third-party classes that are not part +tqtext 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. @@ -130,11 +130,11 @@ the Scintilla programmer's editor class. -PyTQt also includes the pyuic and -pylupdate utilities which correspond to the TQt +PyTQt also includes the pytquic and +pytqlupdate utilities which correspond to the TQt uic and lupdate utilities. -pyuic converts the GUI designs created with TQt Designer to -executable Python code. pylupdate scans Python code, +pytquic converts the GUI designs created with TQt Designer to +executable Python code. pytqlupdate scans Python code, extracts all strings that are candidates for internationalisation, and creates an XML file for use by TQt Linguist. @@ -196,7 +196,7 @@ The missing MacintoshVersion enum has been added. -PYQT_BUILD has been removed. +PYTQT_BUILD has been removed. @@ -223,17 +223,17 @@ It generates an XML description of a GUI design. TQt includes -PyTQt includes pyuic which generates Python code from the +PyTQt includes pytquic which generates Python code from the same XML. The Python code is self contained and can be executed immediately. It is sometimes useful to be able to include some specific Python code in the -output generated by pyuic. For example, if you are using -custom widgets, pyuic has no way of knowing the name of the +output generated by pytquic. For example, if you are using +custom widgets, pytquic has no way of knowing the name of the Python module containing the widget and so cannot generate the required import statement. To help get around this, -pyuic will extract any lines entered in the +pytquic will extract any lines entered in the Comment field of TQt Designer's Form Settings dialog that begin with Python: and copies them to the generated output. @@ -245,25 +245,25 @@ field. -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 -Here's the corresponding output from pyuic. +Here's the corresponding output from pytquic. -from PyTQt.qt import * +from PyTQt.tqt import * # Import our custom widget. from foo import bar -Thanks to Christian Bird, pyuic will extract Python code +Thanks to Christian Bird, pytquic 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. Make sure that the ui.h file is in the same directory as the -.ui file when using pyuic. The +.ui file when using pytquic. The .ui file implies the name of the .ui.h file so there is no need to specify it on the command line. @@ -290,7 +290,7 @@ if self.debugging: -Here is the resulting code when pyuic is run. +Here is the resulting code when pytquic is run. @@ -324,7 +324,7 @@ your application. -Thanks to Detlev Offenbach, PyTQt includes the pylupdate +Thanks to Detlev Offenbach, PyTQt includes the pytqlupdate program. This generates the same .ts language source files from your PyTQt source files. @@ -358,16 +358,16 @@ In order to build PyTQt with support for the VendorID package, pass the -<Literal>pyqtconfig</Literal> and Build System Support +<Literal>pytqtconfig</Literal> and Build System Support The SIP build system (ie. the sipconfig module) is described -in the SIP documentation. PyTQt includes the pyqtconfig +in the SIP documentation. PyTQt includes the pytqtconfig module that can be used by configuration scripts of other bindings that are built on top of PyTQt. -The pyqtconfig module contains the following classes: +The pytqtconfig module contains the following classes: @@ -386,18 +386,18 @@ by the sipconfig.Configuration class): -pyqt_bin_dir +pytqt_bin_dir -The name of the directory containing the pyuic and -pylupdate executables. +The name of the directory containing the pytquic and +pytqlupdate executables. -pyqt_config_args +pytqt_config_args The command line passed to configure.py when PyTQt was @@ -408,7 +408,7 @@ configured. -pyqt_mod_dir +pytqt_mod_dir The name of the directory containing the PyTQt modules. @@ -418,7 +418,7 @@ The name of the directory containing the PyTQt modules. -pyqt_modules +pytqt_modules 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. -pyqt_qt_sip_flags +pytqt_tqt_sip_flags A string of the SIP flags used to generate the code for the -qt module and which should be added to those needed by any -module that imports the qt module. +tqt module and which should be added to those needed by any +module that imports the tqt module. -pyqt_qtaxcontainer_sip_flags +pytqt_tqtaxcontainer_sip_flags A string of the SIP flags used to generate the code for the -qtaxcontainer module and which should be added to those -needed by any module that imports the qtaxcontainer module. +tqtaxcontainer module and which should be added to those +needed by any module that imports the tqtaxcontainer module. -pyqt_qtcanvas_sip_flags +pytqt_tqtcanvas_sip_flags A string of the SIP flags used to generate the code for the -qtcanvas module and which should be added to those needed by -any module that imports the qtcanvas module. +tqtcanvas module and which should be added to those needed by +any module that imports the tqtcanvas module. -pyqt_qtext_sip_flags +pytqt_tqtext_sip_flags A string of the SIP flags used to generate the code for the -qtext module and which should be added to those needed by -any module that imports the qtext module. +tqtext module and which should be added to those needed by +any module that imports the tqtext module. -pyqt_qtgl_sip_flags +pytqt_tqtgl_sip_flags A string of the SIP flags used to generate the code for the -qtgl module and which should be added to those needed by any -module that imports the qtgl module. +tqtgl module and which should be added to those needed by any +module that imports the tqtgl module. -pyqt_qtnetwork_sip_flags +pytqt_tqtnetwork_sip_flags A string of the SIP flags used to generate the code for the -qtnetwork module and which should be added to those needed -by any module that imports the qtnetwork module. +tqtnetwork module and which should be added to those needed +by any module that imports the tqtnetwork module. -pyqt_qtsql_sip_flags +pytqt_tqtsql_sip_flags A string of the SIP flags used to generate the code for the -qtsql module and which should be added to those needed by -any module that imports the qtsql module. +tqtsql module and which should be added to those needed by +any module that imports the tqtsql module. -pyqt_qttable_sip_flags +pytqt_tqttable_sip_flags A string of the SIP flags used to generate the code for the -qttable module and which should be added to those needed by -any module that imports the qttable module. +tqttable module and which should be added to those needed by +any module that imports the tqttable module. -pyqt_qtui_sip_flags +pytqt_tqtui_sip_flags A string of the SIP flags used to generate the code for the -qtui module and which should be added to those needed by any -module that imports the qtui module. +tqtui module and which should be added to those needed by any +module that imports the tqtui module. -pyqt_qtxml_sip_flags +pytqt_tqtxml_sip_flags A string of the SIP flags used to generate the code for the -qtxml module and which should be added to those needed by -any module that imports the qtxml module. +tqtxml module and which should be added to those needed by +any module that imports the tqtxml module. -pyqt_sip_dir +pytqt_sip_dir The name of the base directory where the .sip files for each @@ -560,7 +560,7 @@ the module. -pyqt_version +pytqt_version 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 -pyqt_version_str +pytqt_version_str 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 TQtModuleMakefile(sipconfig.SIPModuleMakefile) -The Makefile class for modules that import the qt module. +The Makefile class for modules that import the tqt module. @@ -609,7 +609,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtAxContainerModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtaxcontainer +The Makefile class for modules that import the tqtaxcontainer module. @@ -630,7 +630,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtCanvasModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtcanvas +The Makefile class for modules that import the tqtcanvas module. @@ -651,7 +651,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtExtModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtext module. +The Makefile class for modules that import the tqtext module. @@ -671,7 +671,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtGLModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtgl module. +The Makefile class for modules that import the tqtgl module. @@ -691,7 +691,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtNetworkModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtnetwork +The Makefile class for modules that import the tqtnetwork module. @@ -712,7 +712,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtTableModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qttable +The Makefile class for modules that import the tqttable module. @@ -733,7 +733,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtSQLModuleMakefile(TQtTableModuleMakefile) -The Makefile class for modules that import the qtsql module. +The Makefile class for modules that import the tqtsql module. @@ -753,7 +753,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtUIModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtui module. +The Makefile class for modules that import the tqtui module. @@ -773,7 +773,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtXMLModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtxml module. +The Makefile class for modules that import the tqtxml module. @@ -1094,7 +1094,7 @@ class A(TQObject): -Note that the code generated by pyuic uses +Note that the code generated by pytquic uses TQApplication.translate(). @@ -1243,7 +1243,7 @@ Classes that are not mentioned have not yet been implemented. -<Literal>qt</Literal> Module Reference +<Literal>tqt</Literal> Module Reference TQt Constants All constant values defined by TQt have equivalent constants defined to Python. @@ -4663,7 +4663,7 @@ values. (TQt v2+) -<Literal>qtaxcontainer</Literal> Module Reference +<Literal>tqtaxcontainer</Literal> Module Reference TQAxBase (Windows, TQt v3+) TQAxObject @@ -4705,7 +4705,7 @@ Not implemented. This is a utility method provided by PyTQt to make it easier to use Mark Hammond's win32com module to manipulate objects -created by the qtaxcontainer module. +created by the tqtaxcontainer module. The RegisterActiveObject() COM function is called to @@ -4747,7 +4747,7 @@ Not implemented. -<Literal>qtcanvas</Literal> Module Reference +<Literal>tqtcanvas</Literal> Module Reference TQCanvas (TQt v2.2+) TQCanvas is fully implemented. @@ -4851,7 +4851,7 @@ The pixmaps argument is a Python list of TQPixmap instances. -<Literal>qtext</Literal> Module Reference +<Literal>tqtext</Literal> Module Reference TQextScintilla @@ -5040,7 +5040,7 @@ This takes no parameters and returns a tuple of the values returned by the -<Literal>qtgl</Literal> Module Reference +<Literal>tqtgl</Literal> Module Reference TQGL TQGL is fully implemented. @@ -5076,7 +5076,7 @@ Not yet implemented. -<Literal>qtnetwork</Literal> Module Reference +<Literal>tqtnetwork</Literal> Module Reference TQDns (TQt v2.2+) TQDns is fully implemented. @@ -5223,7 +5223,7 @@ as a parameter. -<Literal>qtpe</Literal> Module Reference +<Literal>tqtpe</Literal> Module Reference TQPEApplication @@ -5361,7 +5361,7 @@ Not implemented. -<Literal>qtsql</Literal> Module Reference +<Literal>tqtsql</Literal> Module Reference TQDataBrowser (TQt v3+) virtual void del @@ -5534,7 +5534,7 @@ This has been renamed execQuery in Python. -<Literal>qttable</Literal> Module Reference +<Literal>tqttable</Literal> Module Reference TQTable (TQt v2.2+) TQTable is fully implemented. @@ -5565,14 +5565,14 @@ This has been renamed execQuery in Python. -<Literal>qtui</Literal> Module Reference +<Literal>tqtui</Literal> Module Reference TQWidgetFactory (TQt v3+) TQWidgetFactory is fully implemented. -<Literal>qtxml</Literal> Module Reference +<Literal>tqtxml</Literal> Module Reference TQDomImplementation (TQt v2.2+) TQDomImplementation is fully implemented. diff --git a/doc/qtdocs.sip b/doc/tqtdocs.sip similarity index 76% rename from doc/qtdocs.sip rename to 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 -qt is the main module and contains the core classes and most +tqt is the main module and contains the core classes and most user interface widgets. -qtaxcontainer contains a sub-set of the classes implemented +tqtaxcontainer contains a sub-set of the classes implemented in TQt's TQAxContainer module, part of TQt's ActiveTQt framework. -qtcanvas contains the classes implemented in TQt's Canvas +tqtcanvas contains the classes implemented in TQt's Canvas module. -qtgl contains the classes implemented in TQt's OpenGL module. +tqtgl contains the classes implemented in TQt's OpenGL module. -qtnetwork contains the classes implemented in TQt's Network +tqtnetwork contains the classes implemented in TQt's Network module. -qtpe contains the classes implemented in TQtopia (originally +tqtpe contains the classes implemented in TQtopia (originally called the TQt Palmtop Environment). It is only supported with TQt/Embedded. -qtsql contains the classes implemented in TQt's SQL module. +tqtsql contains the classes implemented in TQt's SQL module. -qttable contains the classes implemented in TQt's Table +tqttable contains the classes implemented in TQt's Table module. -qtui contains the classes implemented in TQt's tqui library. +tqtui contains the classes implemented in TQt's tqui library. These allow GUIs to be created directly from TQt Designer's .ui files. @@ -145,13 +145,13 @@ These allow GUIs to be created directly from TQt Designer's -qtxml contains the classes implemented in TQt's XML module. +tqtxml contains the classes implemented in TQt's XML module. -qtext contains useful third-party classes that are not part +tqtext 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. @@ -159,11 +159,11 @@ the Scintilla programmer's editor class. -PyTQt also includes the pyuic and -pylupdate utilities which correspond to the TQt +PyTQt also includes the pytquic and +pytqlupdate utilities which correspond to the TQt uic and lupdate utilities. -pyuic converts the GUI designs created with TQt Designer to -executable Python code. pylupdate scans Python code, +pytquic converts the GUI designs created with TQt Designer to +executable Python code. pytqlupdate scans Python code, extracts all strings that are candidates for internationalisation, and creates an XML file for use by TQt Linguist. @@ -225,7 +225,7 @@ The missing MacintoshVersion enum has been added. -PYQT_BUILD has been removed. +PYTQT_BUILD has been removed. @@ -252,17 +252,17 @@ It generates an XML description of a GUI design. TQt includes -PyTQt includes pyuic which generates Python code from the +PyTQt includes pytquic which generates Python code from the same XML. The Python code is self contained and can be executed immediately. It is sometimes useful to be able to include some specific Python code in the -output generated by pyuic. For example, if you are using -custom widgets, pyuic has no way of knowing the name of the +output generated by pytquic. For example, if you are using +custom widgets, pytquic has no way of knowing the name of the Python module containing the widget and so cannot generate the required import statement. To help get around this, -pyuic will extract any lines entered in the +pytquic will extract any lines entered in the Comment field of TQt Designer's Form Settings dialog that begin with Python: and copies them to the generated output. @@ -274,25 +274,25 @@ field. -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 -Here's the corresponding output from pyuic. +Here's the corresponding output from pytquic. -from PyTQt.qt import * +from PyTQt.tqt import * # Import our custom widget. from foo import bar -Thanks to Christian Bird, pyuic will extract Python code +Thanks to Christian Bird, pytquic 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. Make sure that the ui.h file is in the same directory as the -.ui file when using pyuic. The +.ui file when using pytquic. The .ui file implies the name of the .ui.h file so there is no need to specify it on the command line. @@ -319,7 +319,7 @@ if self.debugging: -Here is the resulting code when pyuic is run. +Here is the resulting code when pytquic is run. @@ -353,7 +353,7 @@ your application. -Thanks to Detlev Offenbach, PyTQt includes the pylupdate +Thanks to Detlev Offenbach, PyTQt includes the pytqlupdate program. This generates the same .ts language source files from your PyTQt source files. @@ -387,16 +387,16 @@ In order to build PyTQt with support for the VendorID package, pass the -<Literal>pyqtconfig</Literal> and Build System Support +<Literal>pytqtconfig</Literal> and Build System Support The SIP build system (ie. the sipconfig module) is described -in the SIP documentation. PyTQt includes the pyqtconfig +in the SIP documentation. PyTQt includes the pytqtconfig module that can be used by configuration scripts of other bindings that are built on top of PyTQt. -The pyqtconfig module contains the following classes: +The pytqtconfig module contains the following classes: @@ -415,18 +415,18 @@ by the sipconfig.Configuration class): -pyqt_bin_dir +pytqt_bin_dir -The name of the directory containing the pyuic and -pylupdate executables. +The name of the directory containing the pytquic and +pytqlupdate executables. -pyqt_config_args +pytqt_config_args The command line passed to configure.py when PyTQt was @@ -437,7 +437,7 @@ configured. -pyqt_mod_dir +pytqt_mod_dir The name of the directory containing the PyTQt modules. @@ -447,7 +447,7 @@ The name of the directory containing the PyTQt modules. -pyqt_modules +pytqt_modules 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. -pyqt_qt_sip_flags +pytqt_tqt_sip_flags A string of the SIP flags used to generate the code for the -qt module and which should be added to those needed by any -module that imports the qt module. +tqt module and which should be added to those needed by any +module that imports the tqt module. -pyqt_qtaxcontainer_sip_flags +pytqt_tqtaxcontainer_sip_flags A string of the SIP flags used to generate the code for the -qtaxcontainer module and which should be added to those -needed by any module that imports the qtaxcontainer module. +tqtaxcontainer module and which should be added to those +needed by any module that imports the tqtaxcontainer module. -pyqt_qtcanvas_sip_flags +pytqt_tqtcanvas_sip_flags A string of the SIP flags used to generate the code for the -qtcanvas module and which should be added to those needed by -any module that imports the qtcanvas module. +tqtcanvas module and which should be added to those needed by +any module that imports the tqtcanvas module. -pyqt_qtext_sip_flags +pytqt_tqtext_sip_flags A string of the SIP flags used to generate the code for the -qtext module and which should be added to those needed by -any module that imports the qtext module. +tqtext module and which should be added to those needed by +any module that imports the tqtext module. -pyqt_qtgl_sip_flags +pytqt_tqtgl_sip_flags A string of the SIP flags used to generate the code for the -qtgl module and which should be added to those needed by any -module that imports the qtgl module. +tqtgl module and which should be added to those needed by any +module that imports the tqtgl module. -pyqt_qtnetwork_sip_flags +pytqt_tqtnetwork_sip_flags A string of the SIP flags used to generate the code for the -qtnetwork module and which should be added to those needed -by any module that imports the qtnetwork module. +tqtnetwork module and which should be added to those needed +by any module that imports the tqtnetwork module. -pyqt_qtsql_sip_flags +pytqt_tqtsql_sip_flags A string of the SIP flags used to generate the code for the -qtsql module and which should be added to those needed by -any module that imports the qtsql module. +tqtsql module and which should be added to those needed by +any module that imports the tqtsql module. -pyqt_qttable_sip_flags +pytqt_tqttable_sip_flags A string of the SIP flags used to generate the code for the -qttable module and which should be added to those needed by -any module that imports the qttable module. +tqttable module and which should be added to those needed by +any module that imports the tqttable module. -pyqt_qtui_sip_flags +pytqt_tqtui_sip_flags A string of the SIP flags used to generate the code for the -qtui module and which should be added to those needed by any -module that imports the qtui module. +tqtui module and which should be added to those needed by any +module that imports the tqtui module. -pyqt_qtxml_sip_flags +pytqt_tqtxml_sip_flags A string of the SIP flags used to generate the code for the -qtxml module and which should be added to those needed by -any module that imports the qtxml module. +tqtxml module and which should be added to those needed by +any module that imports the tqtxml module. -pyqt_sip_dir +pytqt_sip_dir The name of the base directory where the .sip files for each @@ -589,7 +589,7 @@ the module. -pyqt_version +pytqt_version 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 -pyqt_version_str +pytqt_version_str 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 TQtModuleMakefile(sipconfig.SIPModuleMakefile) -The Makefile class for modules that import the qt module. +The Makefile class for modules that import the tqt module. @@ -638,7 +638,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtAxContainerModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtaxcontainer +The Makefile class for modules that import the tqtaxcontainer module. @@ -659,7 +659,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtCanvasModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtcanvas +The Makefile class for modules that import the tqtcanvas module. @@ -680,7 +680,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtExtModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtext module. +The Makefile class for modules that import the tqtext module. @@ -700,7 +700,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtGLModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtgl module. +The Makefile class for modules that import the tqtgl module. @@ -720,7 +720,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtNetworkModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtnetwork +The Makefile class for modules that import the tqtnetwork module. @@ -741,7 +741,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtTableModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qttable +The Makefile class for modules that import the tqttable module. @@ -762,7 +762,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtSQLModuleMakefile(TQtTableModuleMakefile) -The Makefile class for modules that import the qtsql module. +The Makefile class for modules that import the tqtsql module. @@ -782,7 +782,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtUIModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtui module. +The Makefile class for modules that import the tqtui module. @@ -802,7 +802,7 @@ This is a reimplementation of sipconfig.Makefile.finalise(). TQtXMLModuleMakefile(TQtModuleMakefile) -The Makefile class for modules that import the qtxml module. +The Makefile class for modules that import the tqtxml module. @@ -1127,7 +1127,7 @@ class A(TQObject): -Note that the code generated by pyuic uses +Note that the code generated by pytquic uses TQApplication.translate(). @@ -1276,179 +1276,179 @@ Classes that are not mentioned have not yet been implemented. -<Literal>qt</Literal> Module Reference +<Literal>tqt</Literal> Module Reference %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 @@ -1456,12 +1456,12 @@ Classes that are not mentioned have not yet been implemented. %ExportedDoc -<Literal>qtaxcontainer</Literal> Module Reference +<Literal>tqtaxcontainer</Literal> Module Reference %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 @@ -1469,10 +1469,10 @@ Classes that are not mentioned have not yet been implemented. %ExportedDoc -<Literal>qtcanvas</Literal> Module Reference +<Literal>tqtcanvas</Literal> Module Reference %End -%Include qtcanvas/qcanvas.sip +%Include tqtcanvas/tqcanvas.sip %ExportedDoc @@ -1480,7 +1480,7 @@ Classes that are not mentioned have not yet been implemented. %ExportedDoc -<Literal>qtext</Literal> Module Reference +<Literal>tqtext</Literal> Module Reference TQextScintilla @@ -1677,11 +1677,11 @@ This takes no parameters and returns a tuple of the values returned by the %ExportedDoc -<Literal>qtgl</Literal> Module Reference +<Literal>tqtgl</Literal> Module Reference %End -%Include qtgl/qgl.sip -%Include qtgl/qglcolormap.sip +%Include tqtgl/tqgl.sip +%Include tqtgl/tqglcolormap.sip %ExportedDoc @@ -1689,18 +1689,18 @@ This takes no parameters and returns a tuple of the values returned by the %ExportedDoc -<Literal>qtnetwork</Literal> Module Reference +<Literal>tqtnetwork</Literal> Module Reference %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 @@ -1708,7 +1708,7 @@ This takes no parameters and returns a tuple of the values returned by the %ExportedDoc -<Literal>qtpe</Literal> Module Reference +<Literal>tqtpe</Literal> Module Reference TQPEApplication @@ -1850,27 +1850,27 @@ Not implemented. %ExportedDoc -<Literal>qtsql</Literal> Module Reference +<Literal>tqtsql</Literal> Module Reference %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 @@ -1878,10 +1878,10 @@ Not implemented. %ExportedDoc -<Literal>qttable</Literal> Module Reference +<Literal>tqttable</Literal> Module Reference %End -%Include qttable/qtable.sip +%Include tqttable/tqtable.sip %ExportedDoc @@ -1889,10 +1889,10 @@ Not implemented. %ExportedDoc -<Literal>qtui</Literal> Module Reference +<Literal>tqtui</Literal> Module Reference %End -%Include qtui/qwidgetfactory.sip +%Include tqtui/tqwidgetfactory.sip %ExportedDoc @@ -1900,10 +1900,10 @@ Not implemented. %ExportedDoc -<Literal>qtxml</Literal> Module Reference +<Literal>tqtxml</Literal> Module Reference %End -%Include qtxml/qdom.sip +%Include tqtxml/tqdom.sip %ExportedDoc 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 similarity index 100% rename from examples/canvas/qt-trans.xpm rename to examples/canvas/tqt-trans.xpm diff --git a/examples/canvas/qtlogo.png b/examples/canvas/tqtlogo.png similarity index 100% rename from examples/canvas/qtlogo.png rename to 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) 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 -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 = [ "Saying 1:
    " 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 similarity index 99% rename from examples/qdir.py rename to 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 similarity index 99% rename from examples/qmag.py rename to 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 similarity index 100% rename from examples/qt.png rename to examples/tqt.png diff --git a/examples/qtlogo.png b/examples/tqtlogo.png similarity index 100% rename from examples/qtlogo.png rename to 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 similarity index 100% rename from pylupdate3/LICENSE.GPL rename to pytqlupdate3/LICENSE.GPL diff --git a/pylupdate3/fetchtr.cpp b/pytqlupdate3/fetchtr.cpp similarity index 99% rename from pylupdate3/fetchtr.cpp rename to 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 similarity index 89% rename from pylupdate3/main.cpp rename to pytqlupdate3/main.cpp index a3a0f3f..6c708fe 100644 --- a/pylupdate3/main.cpp +++ b/pytqlupdate3/main.cpp @@ -51,7 +51,7 @@ typedef TQValueList 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 similarity index 100% rename from pylupdate3/merge.cpp rename to pytqlupdate3/merge.cpp diff --git a/pylupdate3/metatranslator.cpp b/pytqlupdate3/metatranslator.cpp similarity index 100% rename from pylupdate3/metatranslator.cpp rename to pytqlupdate3/metatranslator.cpp diff --git a/pylupdate3/metatranslator.h b/pytqlupdate3/metatranslator.h similarity index 100% rename from pylupdate3/metatranslator.h rename to pytqlupdate3/metatranslator.h diff --git a/pylupdate3/numberh.cpp b/pytqlupdate3/numberh.cpp similarity index 100% rename from pylupdate3/numberh.cpp rename to pytqlupdate3/numberh.cpp diff --git a/pylupdate3/proparser.cpp b/pytqlupdate3/proparser.cpp similarity index 100% rename from pylupdate3/proparser.cpp rename to pytqlupdate3/proparser.cpp diff --git a/pylupdate3/proparser.h b/pytqlupdate3/proparser.h similarity index 100% rename from pylupdate3/proparser.h rename to pytqlupdate3/proparser.h diff --git a/pylupdate3/pylupdate-prof.sbf b/pytqlupdate3/pytqlupdate-prof.sbf similarity index 91% rename from pylupdate3/pylupdate-prof.sbf rename to 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 @@ -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 similarity index 65% rename from pylupdate3/pylupdate.pro.in rename to 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 # -# 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 similarity index 91% rename from pylupdate3/pylupdate.sbf rename to 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 @@ -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 similarity index 100% rename from pylupdate3/sametexth.cpp rename to pytqlupdate3/sametexth.cpp diff --git a/pyqtconfig.py.in b/pytqtconfig.py.in similarity index 73% rename from pyqtconfig.py.in rename to 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 similarity index 100% rename from pyuic3/LICENSE.GPL rename to pytquic3/LICENSE.GPL diff --git a/pyuic3/domtool.cpp b/pytquic3/domtool.cpp similarity index 100% rename from pyuic3/domtool.cpp rename to pytquic3/domtool.cpp diff --git a/pyuic3/domtool.h b/pytquic3/domtool.h similarity index 100% rename from pyuic3/domtool.h rename to pytquic3/domtool.h diff --git a/pyuic3/embed.cpp b/pytquic3/embed.cpp similarity index 94% rename from pyuic3/embed.cpp rename to 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 similarity index 97% rename from pyuic3/form.cpp rename to 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 similarity index 100% rename from pyuic3/globaldefs.h rename to pytquic3/globaldefs.h diff --git a/pyuic3/main.cpp b/pytquic3/main.cpp similarity index 91% rename from pyuic3/main.cpp rename to 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] \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 similarity index 99% rename from pyuic3/object.cpp rename to 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 similarity index 100% rename from pyuic3/parser.cpp rename to pytquic3/parser.cpp diff --git a/pyuic3/parser.h b/pytquic3/parser.h similarity index 100% rename from pyuic3/parser.h rename to pytquic3/parser.h diff --git a/pyuic3/pyuic-prof.sbf b/pytquic3/pytquic-prof.sbf similarity index 85% rename from pyuic3/pyuic-prof.sbf rename to 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 @@ -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 similarity index 61% rename from pyuic3/pyuic.pro.in rename to 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 # -# 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 similarity index 93% rename from pyuic3/pyuic.sbf rename to 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 @@ -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 similarity index 100% rename from pyuic3/subclassing.cpp rename to pytquic3/subclassing.cpp diff --git a/pyuic3/uic.cpp b/pytquic3/uic.cpp similarity index 100% rename from pyuic3/uic.cpp rename to pytquic3/uic.cpp diff --git a/pyuic3/uic.h b/pytquic3/uic.h similarity index 100% rename from pyuic3/uic.h rename to pytquic3/uic.h diff --git a/pyuic3/widgetdatabase.cpp b/pytquic3/widgetdatabase.cpp similarity index 97% rename from pyuic3/widgetdatabase.cpp rename to 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 similarity index 100% rename from pyuic3/widgetdatabase.h rename to pytquic3/widgetdatabase.h diff --git a/pyuic3/widgetinterface.h b/pytquic3/widgetinterface.h similarity index 100% rename from pyuic3/widgetinterface.h rename to pytquic3/widgetinterface.h diff --git a/sip/pyqt-gpl.sip b/sip/pytqt-gpl.sip similarity index 100% rename from sip/pyqt-gpl.sip rename to 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 -// -// 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 -%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 -# -# 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 -// -// 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 - -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 -// -// 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 - -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 -// -// 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 - -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 -// -// 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 - -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 -// -// 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 - -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 -// -// 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 - -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 -// -// 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 - -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 similarity index 88% rename from sip/qtaxcontainer/copying.sip rename to 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 similarity index 100% rename from sip/qt/qaccel.sip rename to sip/tqt/tqaccel.sip diff --git a/sip/qt/qaction.sip b/sip/tqt/tqaction.sip similarity index 100% rename from sip/qt/qaction.sip rename to sip/tqt/tqaction.sip diff --git a/sip/qt/qapplication.sip b/sip/tqt/tqapplication.sip similarity index 96% rename from sip/qt/qapplication.sip rename to 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 similarity index 100% rename from sip/qt/qassistantclient.sip rename to sip/tqt/tqassistantclient.sip diff --git a/sip/qt/qbitmap.sip b/sip/tqt/tqbitmap.sip similarity index 100% rename from sip/qt/qbitmap.sip rename to sip/tqt/tqbitmap.sip diff --git a/sip/qt/qbrush.sip b/sip/tqt/tqbrush.sip similarity index 100% rename from sip/qt/qbrush.sip rename to sip/tqt/tqbrush.sip diff --git a/sip/qt/qbutton.sip b/sip/tqt/tqbutton.sip similarity index 100% rename from sip/qt/qbutton.sip rename to sip/tqt/tqbutton.sip diff --git a/sip/qt/qbuttongroup.sip b/sip/tqt/tqbuttongroup.sip similarity index 100% rename from sip/qt/qbuttongroup.sip rename to sip/tqt/tqbuttongroup.sip diff --git a/sip/qt/qbytearray.sip b/sip/tqt/tqbytearray.sip similarity index 100% rename from sip/qt/qbytearray.sip rename to sip/tqt/tqbytearray.sip diff --git a/sip/qt/qcdestyle.sip b/sip/tqt/tqcdestyle.sip similarity index 100% rename from sip/qt/qcdestyle.sip rename to sip/tqt/tqcdestyle.sip diff --git a/sip/qt/qcheckbox.sip b/sip/tqt/tqcheckbox.sip similarity index 100% rename from sip/qt/qcheckbox.sip rename to sip/tqt/tqcheckbox.sip diff --git a/sip/qt/qclipboard.sip b/sip/tqt/tqclipboard.sip similarity index 100% rename from sip/qt/qclipboard.sip rename to sip/tqt/tqclipboard.sip diff --git a/sip/qt/qcolor.sip b/sip/tqt/tqcolor.sip similarity index 100% rename from sip/qt/qcolor.sip rename to sip/tqt/tqcolor.sip diff --git a/sip/qt/qcolordialog.sip b/sip/tqt/tqcolordialog.sip similarity index 100% rename from sip/qt/qcolordialog.sip rename to sip/tqt/tqcolordialog.sip diff --git a/sip/qt/qcolorgroup.sip b/sip/tqt/tqcolorgroup.sip similarity index 100% rename from sip/qt/qcolorgroup.sip rename to sip/tqt/tqcolorgroup.sip diff --git a/sip/qt/qcombobox.sip b/sip/tqt/tqcombobox.sip similarity index 100% rename from sip/qt/qcombobox.sip rename to sip/tqt/tqcombobox.sip diff --git a/sip/qt/qcommonstyle.sip b/sip/tqt/tqcommonstyle.sip similarity index 100% rename from sip/qt/qcommonstyle.sip rename to sip/tqt/tqcommonstyle.sip diff --git a/sip/qt/qcstring.sip b/sip/tqt/tqcstring.sip similarity index 100% rename from sip/qt/qcstring.sip rename to sip/tqt/tqcstring.sip diff --git a/sip/qt/qcursor.sip b/sip/tqt/tqcursor.sip similarity index 100% rename from sip/qt/qcursor.sip rename to sip/tqt/tqcursor.sip diff --git a/sip/qt/qdatastream.sip b/sip/tqt/tqdatastream.sip similarity index 100% rename from sip/qt/qdatastream.sip rename to sip/tqt/tqdatastream.sip diff --git a/sip/qt/qdatetime.sip b/sip/tqt/tqdatetime.sip similarity index 100% rename from sip/qt/qdatetime.sip rename to sip/tqt/tqdatetime.sip diff --git a/sip/qt/qdatetimeedit.sip b/sip/tqt/tqdatetimeedit.sip similarity index 100% rename from sip/qt/qdatetimeedit.sip rename to sip/tqt/tqdatetimeedit.sip diff --git a/sip/qt/qdesktopwidget.sip b/sip/tqt/tqdesktopwidget.sip similarity index 100% rename from sip/qt/qdesktopwidget.sip rename to sip/tqt/tqdesktopwidget.sip diff --git a/sip/qt/qdial.sip b/sip/tqt/tqdial.sip similarity index 100% rename from sip/qt/qdial.sip rename to sip/tqt/tqdial.sip diff --git a/sip/qt/qdialog.sip b/sip/tqt/tqdialog.sip similarity index 100% rename from sip/qt/qdialog.sip rename to sip/tqt/tqdialog.sip diff --git a/sip/qt/qdir.sip b/sip/tqt/tqdir.sip similarity index 100% rename from sip/qt/qdir.sip rename to sip/tqt/tqdir.sip diff --git a/sip/qt/qdockarea.sip b/sip/tqt/tqdockarea.sip similarity index 100% rename from sip/qt/qdockarea.sip rename to sip/tqt/tqdockarea.sip diff --git a/sip/qt/qdockwindow.sip b/sip/tqt/tqdockwindow.sip similarity index 100% rename from sip/qt/qdockwindow.sip rename to sip/tqt/tqdockwindow.sip diff --git a/sip/qt/qdragobject.sip b/sip/tqt/tqdragobject.sip similarity index 100% rename from sip/qt/qdragobject.sip rename to sip/tqt/tqdragobject.sip diff --git a/sip/qt/qdrawutil.sip b/sip/tqt/tqdrawutil.sip similarity index 100% rename from sip/qt/qdrawutil.sip rename to sip/tqt/tqdrawutil.sip diff --git a/sip/qt/qdropsite.sip b/sip/tqt/tqdropsite.sip similarity index 100% rename from sip/qt/qdropsite.sip rename to sip/tqt/tqdropsite.sip diff --git a/sip/qt/qerrormessage.sip b/sip/tqt/tqerrormessage.sip similarity index 100% rename from sip/qt/qerrormessage.sip rename to sip/tqt/tqerrormessage.sip diff --git a/sip/qt/qevent.sip b/sip/tqt/tqevent.sip similarity index 100% rename from sip/qt/qevent.sip rename to sip/tqt/tqevent.sip diff --git a/sip/qt/qeventloop.sip b/sip/tqt/tqeventloop.sip similarity index 100% rename from sip/qt/qeventloop.sip rename to sip/tqt/tqeventloop.sip diff --git a/sip/qt/qfile.sip b/sip/tqt/tqfile.sip similarity index 100% rename from sip/qt/qfile.sip rename to sip/tqt/tqfile.sip diff --git a/sip/qt/qfiledialog.sip b/sip/tqt/tqfiledialog.sip similarity index 100% rename from sip/qt/qfiledialog.sip rename to sip/tqt/tqfiledialog.sip diff --git a/sip/qt/qfileinfo.sip b/sip/tqt/tqfileinfo.sip similarity index 100% rename from sip/qt/qfileinfo.sip rename to sip/tqt/tqfileinfo.sip diff --git a/sip/qt/qfont.sip b/sip/tqt/tqfont.sip similarity index 100% rename from sip/qt/qfont.sip rename to sip/tqt/tqfont.sip diff --git a/sip/qt/qfontdatabase.sip b/sip/tqt/tqfontdatabase.sip similarity index 100% rename from sip/qt/qfontdatabase.sip rename to sip/tqt/tqfontdatabase.sip diff --git a/sip/qt/qfontdialog.sip b/sip/tqt/tqfontdialog.sip similarity index 100% rename from sip/qt/qfontdialog.sip rename to sip/tqt/tqfontdialog.sip diff --git a/sip/qt/qfontinfo.sip b/sip/tqt/tqfontinfo.sip similarity index 100% rename from sip/qt/qfontinfo.sip rename to sip/tqt/tqfontinfo.sip diff --git a/sip/qt/qfontmetrics.sip b/sip/tqt/tqfontmetrics.sip similarity index 100% rename from sip/qt/qfontmetrics.sip rename to sip/tqt/tqfontmetrics.sip diff --git a/sip/qt/qframe.sip b/sip/tqt/tqframe.sip similarity index 100% rename from sip/qt/qframe.sip rename to sip/tqt/tqframe.sip diff --git a/sip/qt/qglobal.sip b/sip/tqt/tqglobal.sip similarity index 100% rename from sip/qt/qglobal.sip rename to sip/tqt/tqglobal.sip diff --git a/sip/qt/qgrid.sip b/sip/tqt/tqgrid.sip similarity index 100% rename from sip/qt/qgrid.sip rename to sip/tqt/tqgrid.sip diff --git a/sip/qt/qgridview.sip b/sip/tqt/tqgridview.sip similarity index 100% rename from sip/qt/qgridview.sip rename to sip/tqt/tqgridview.sip diff --git a/sip/qt/qgroupbox.sip b/sip/tqt/tqgroupbox.sip similarity index 100% rename from sip/qt/qgroupbox.sip rename to sip/tqt/tqgroupbox.sip diff --git a/sip/qt/qhbox.sip b/sip/tqt/tqhbox.sip similarity index 100% rename from sip/qt/qhbox.sip rename to sip/tqt/tqhbox.sip diff --git a/sip/qt/qhbuttongroup.sip b/sip/tqt/tqhbuttongroup.sip similarity index 100% rename from sip/qt/qhbuttongroup.sip rename to sip/tqt/tqhbuttongroup.sip diff --git a/sip/qt/qheader.sip b/sip/tqt/tqheader.sip similarity index 100% rename from sip/qt/qheader.sip rename to sip/tqt/tqheader.sip diff --git a/sip/qt/qhgroupbox.sip b/sip/tqt/tqhgroupbox.sip similarity index 100% rename from sip/qt/qhgroupbox.sip rename to sip/tqt/tqhgroupbox.sip diff --git a/sip/qt/qiconset.sip b/sip/tqt/tqiconset.sip similarity index 100% rename from sip/qt/qiconset.sip rename to sip/tqt/tqiconset.sip diff --git a/sip/qt/qiconview.sip b/sip/tqt/tqiconview.sip similarity index 100% rename from sip/qt/qiconview.sip rename to sip/tqt/tqiconview.sip diff --git a/sip/qt/qimage.sip b/sip/tqt/tqimage.sip similarity index 98% rename from sip/qt/qimage.sip rename to 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 similarity index 100% rename from sip/qt/qinputdialog.sip rename to sip/tqt/tqinputdialog.sip diff --git a/sip/qt/qinterlacestyle.sip b/sip/tqt/tqinterlacestyle.sip similarity index 100% rename from sip/qt/qinterlacestyle.sip rename to sip/tqt/tqinterlacestyle.sip diff --git a/sip/qt/qiodevice.sip b/sip/tqt/tqiodevice.sip similarity index 100% rename from sip/qt/qiodevice.sip rename to sip/tqt/tqiodevice.sip diff --git a/sip/qt/qkeysequence.sip b/sip/tqt/tqkeysequence.sip similarity index 100% rename from sip/qt/qkeysequence.sip rename to sip/tqt/tqkeysequence.sip diff --git a/sip/qt/qlabel.sip b/sip/tqt/tqlabel.sip similarity index 100% rename from sip/qt/qlabel.sip rename to sip/tqt/tqlabel.sip diff --git a/sip/qt/qlayout.sip b/sip/tqt/tqlayout.sip similarity index 100% rename from sip/qt/qlayout.sip rename to sip/tqt/tqlayout.sip diff --git a/sip/qt/qlcdnumber.sip b/sip/tqt/tqlcdnumber.sip similarity index 100% rename from sip/qt/qlcdnumber.sip rename to sip/tqt/tqlcdnumber.sip diff --git a/sip/qt/qlibrary.sip b/sip/tqt/tqlibrary.sip similarity index 100% rename from sip/qt/qlibrary.sip rename to sip/tqt/tqlibrary.sip diff --git a/sip/qt/qlineedit.sip b/sip/tqt/tqlineedit.sip similarity index 100% rename from sip/qt/qlineedit.sip rename to sip/tqt/tqlineedit.sip diff --git a/sip/qt/qlistbox.sip b/sip/tqt/tqlistbox.sip similarity index 100% rename from sip/qt/qlistbox.sip rename to sip/tqt/tqlistbox.sip diff --git a/sip/qt/qlistview.sip b/sip/tqt/tqlistview.sip similarity index 100% rename from sip/qt/qlistview.sip rename to sip/tqt/tqlistview.sip diff --git a/sip/qt/qlocale.sip b/sip/tqt/tqlocale.sip similarity index 100% rename from sip/qt/qlocale.sip rename to sip/tqt/tqlocale.sip diff --git a/sip/qt/qmainwindow.sip b/sip/tqt/tqmainwindow.sip similarity index 100% rename from sip/qt/qmainwindow.sip rename to sip/tqt/tqmainwindow.sip diff --git a/sip/qt/qmemarray.sip b/sip/tqt/tqmemarray.sip similarity index 100% rename from sip/qt/qmemarray.sip rename to sip/tqt/tqmemarray.sip diff --git a/sip/qt/qmenubar.sip b/sip/tqt/tqmenubar.sip similarity index 100% rename from sip/qt/qmenubar.sip rename to sip/tqt/tqmenubar.sip diff --git a/sip/qt/qmenudata.sip b/sip/tqt/tqmenudata.sip similarity index 100% rename from sip/qt/qmenudata.sip rename to sip/tqt/tqmenudata.sip diff --git a/sip/qt/qmessagebox.sip b/sip/tqt/tqmessagebox.sip similarity index 100% rename from sip/qt/qmessagebox.sip rename to sip/tqt/tqmessagebox.sip diff --git a/sip/qt/qmetaobject.sip b/sip/tqt/tqmetaobject.sip similarity index 100% rename from sip/qt/qmetaobject.sip rename to sip/tqt/tqmetaobject.sip diff --git a/sip/qt/qmime.sip b/sip/tqt/tqmime.sip similarity index 100% rename from sip/qt/qmime.sip rename to sip/tqt/tqmime.sip diff --git a/sip/qt/qmotifplusstyle.sip b/sip/tqt/tqmotifplusstyle.sip similarity index 100% rename from sip/qt/qmotifplusstyle.sip rename to sip/tqt/tqmotifplusstyle.sip diff --git a/sip/qt/qmotifstyle.sip b/sip/tqt/tqmotifstyle.sip similarity index 100% rename from sip/qt/qmotifstyle.sip rename to sip/tqt/tqmotifstyle.sip diff --git a/sip/qt/qmovie.sip b/sip/tqt/tqmovie.sip similarity index 100% rename from sip/qt/qmovie.sip rename to sip/tqt/tqmovie.sip diff --git a/sip/qt/qmultilinedit.sip b/sip/tqt/tqmultilinedit.sip similarity index 100% rename from sip/qt/qmultilinedit.sip rename to sip/tqt/tqmultilinedit.sip diff --git a/sip/qt/qmutex.sip b/sip/tqt/tqmutex.sip similarity index 100% rename from sip/qt/qmutex.sip rename to sip/tqt/tqmutex.sip diff --git a/sip/qt/qnamespace.sip b/sip/tqt/tqnamespace.sip similarity index 99% rename from sip/qt/qnamespace.sip rename to 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 similarity index 100% rename from sip/qt/qnetworkprotocol.sip rename to sip/tqt/tqnetworkprotocol.sip diff --git a/sip/qt/qobject.sip b/sip/tqt/tqobject.sip similarity index 90% rename from sip/qt/qobject.sip rename to 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(conn.sc_transmitter); + tqtx = reinterpret_cast(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 similarity index 100% rename from sip/qt/qobjectcleanuphandler.sip rename to sip/tqt/tqobjectcleanuphandler.sip diff --git a/sip/qt/qobjectlist.sip b/sip/tqt/tqobjectlist.sip similarity index 90% rename from sip/qt/qobjectlist.sip rename to 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(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_TQObject,0,0,0,sipIsErr)); + tqobj = reinterpret_cast(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 similarity index 100% rename from sip/qt/qpaintdevice.sip rename to sip/tqt/tqpaintdevice.sip diff --git a/sip/qt/qpaintdevicemetrics.sip b/sip/tqt/tqpaintdevicemetrics.sip similarity index 100% rename from sip/qt/qpaintdevicemetrics.sip rename to sip/tqt/tqpaintdevicemetrics.sip diff --git a/sip/qt/qpainter.sip b/sip/tqt/tqpainter.sip similarity index 100% rename from sip/qt/qpainter.sip rename to sip/tqt/tqpainter.sip diff --git a/sip/qt/qpair.sip b/sip/tqt/tqpair.sip similarity index 100% rename from sip/qt/qpair.sip rename to sip/tqt/tqpair.sip diff --git a/sip/qt/qpalette.sip b/sip/tqt/tqpalette.sip similarity index 100% rename from sip/qt/qpalette.sip rename to sip/tqt/tqpalette.sip diff --git a/sip/qt/qpen.sip b/sip/tqt/tqpen.sip similarity index 100% rename from sip/qt/qpen.sip rename to sip/tqt/tqpen.sip diff --git a/sip/qt/qpicture.sip b/sip/tqt/tqpicture.sip similarity index 100% rename from sip/qt/qpicture.sip rename to sip/tqt/tqpicture.sip diff --git a/sip/qt/qpixmap.sip b/sip/tqt/tqpixmap.sip similarity index 99% rename from sip/qt/qpixmap.sip rename to 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 similarity index 100% rename from sip/qt/qpixmapcache.sip rename to sip/tqt/tqpixmapcache.sip diff --git a/sip/qt/qplatinumstyle.sip b/sip/tqt/tqplatinumstyle.sip similarity index 100% rename from sip/qt/qplatinumstyle.sip rename to sip/tqt/tqplatinumstyle.sip diff --git a/sip/qt/qpoint.sip b/sip/tqt/tqpoint.sip similarity index 100% rename from sip/qt/qpoint.sip rename to sip/tqt/tqpoint.sip diff --git a/sip/qt/qpointarray.sip b/sip/tqt/tqpointarray.sip similarity index 100% rename from sip/qt/qpointarray.sip rename to sip/tqt/tqpointarray.sip diff --git a/sip/qt/qpopupmenu.sip b/sip/tqt/tqpopupmenu.sip similarity index 100% rename from sip/qt/qpopupmenu.sip rename to sip/tqt/tqpopupmenu.sip diff --git a/sip/qt/qprintdialog.sip b/sip/tqt/tqprintdialog.sip similarity index 100% rename from sip/qt/qprintdialog.sip rename to sip/tqt/tqprintdialog.sip diff --git a/sip/qt/qprinter.sip b/sip/tqt/tqprinter.sip similarity index 100% rename from sip/qt/qprinter.sip rename to sip/tqt/tqprinter.sip diff --git a/sip/qt/qprocess.sip b/sip/tqt/tqprocess.sip similarity index 100% rename from sip/qt/qprocess.sip rename to sip/tqt/tqprocess.sip diff --git a/sip/qt/qprogressbar.sip b/sip/tqt/tqprogressbar.sip similarity index 100% rename from sip/qt/qprogressbar.sip rename to sip/tqt/tqprogressbar.sip diff --git a/sip/qt/qprogressdialog.sip b/sip/tqt/tqprogressdialog.sip similarity index 100% rename from sip/qt/qprogressdialog.sip rename to sip/tqt/tqprogressdialog.sip diff --git a/sip/qt/qptrlist.sip b/sip/tqt/tqptrlist.sip similarity index 100% rename from sip/qt/qptrlist.sip rename to sip/tqt/tqptrlist.sip diff --git a/sip/qt/qpushbutton.sip b/sip/tqt/tqpushbutton.sip similarity index 100% rename from sip/qt/qpushbutton.sip rename to sip/tqt/tqpushbutton.sip diff --git a/sip/qt/qradiobutton.sip b/sip/tqt/tqradiobutton.sip similarity index 100% rename from sip/qt/qradiobutton.sip rename to sip/tqt/tqradiobutton.sip diff --git a/sip/qt/qrangecontrol.sip b/sip/tqt/tqrangecontrol.sip similarity index 100% rename from sip/qt/qrangecontrol.sip rename to sip/tqt/tqrangecontrol.sip diff --git a/sip/qt/qrect.sip b/sip/tqt/tqrect.sip similarity index 100% rename from sip/qt/qrect.sip rename to sip/tqt/tqrect.sip diff --git a/sip/qt/qregexp.sip b/sip/tqt/tqregexp.sip similarity index 100% rename from sip/qt/qregexp.sip rename to sip/tqt/tqregexp.sip diff --git a/sip/qt/qregion.sip b/sip/tqt/tqregion.sip similarity index 100% rename from sip/qt/qregion.sip rename to sip/tqt/tqregion.sip diff --git a/sip/qt/qscrollbar.sip b/sip/tqt/tqscrollbar.sip similarity index 100% rename from sip/qt/qscrollbar.sip rename to sip/tqt/tqscrollbar.sip diff --git a/sip/qt/qscrollview.sip b/sip/tqt/tqscrollview.sip similarity index 100% rename from sip/qt/qscrollview.sip rename to sip/tqt/tqscrollview.sip diff --git a/sip/qt/qsemaphore.sip b/sip/tqt/tqsemaphore.sip similarity index 100% rename from sip/qt/qsemaphore.sip rename to sip/tqt/tqsemaphore.sip diff --git a/sip/qt/qsessionmanager.sip b/sip/tqt/tqsessionmanager.sip similarity index 100% rename from sip/qt/qsessionmanager.sip rename to sip/tqt/tqsessionmanager.sip diff --git a/sip/qt/qsettings.sip b/sip/tqt/tqsettings.sip similarity index 100% rename from sip/qt/qsettings.sip rename to sip/tqt/tqsettings.sip diff --git a/sip/qt/qsgistyle.sip b/sip/tqt/tqsgistyle.sip similarity index 100% rename from sip/qt/qsgistyle.sip rename to sip/tqt/tqsgistyle.sip diff --git a/sip/qt/qsignalmapper.sip b/sip/tqt/tqsignalmapper.sip similarity index 100% rename from sip/qt/qsignalmapper.sip rename to sip/tqt/tqsignalmapper.sip diff --git a/sip/qt/qsimplerichtext.sip b/sip/tqt/tqsimplerichtext.sip similarity index 100% rename from sip/qt/qsimplerichtext.sip rename to sip/tqt/tqsimplerichtext.sip diff --git a/sip/qt/qsize.sip b/sip/tqt/tqsize.sip similarity index 100% rename from sip/qt/qsize.sip rename to sip/tqt/tqsize.sip diff --git a/sip/qt/qsizegrip.sip b/sip/tqt/tqsizegrip.sip similarity index 100% rename from sip/qt/qsizegrip.sip rename to sip/tqt/tqsizegrip.sip diff --git a/sip/qt/qsizepolicy.sip b/sip/tqt/tqsizepolicy.sip similarity index 100% rename from sip/qt/qsizepolicy.sip rename to sip/tqt/tqsizepolicy.sip diff --git a/sip/qt/qslider.sip b/sip/tqt/tqslider.sip similarity index 100% rename from sip/qt/qslider.sip rename to sip/tqt/tqslider.sip diff --git a/sip/qt/qsocketnotifier.sip b/sip/tqt/tqsocketnotifier.sip similarity index 100% rename from sip/qt/qsocketnotifier.sip rename to sip/tqt/tqsocketnotifier.sip diff --git a/sip/qt/qsound.sip b/sip/tqt/tqsound.sip similarity index 100% rename from sip/qt/qsound.sip rename to sip/tqt/tqsound.sip diff --git a/sip/qt/qspinbox.sip b/sip/tqt/tqspinbox.sip similarity index 100% rename from sip/qt/qspinbox.sip rename to sip/tqt/tqspinbox.sip diff --git a/sip/qt/qsplashscreen.sip b/sip/tqt/tqsplashscreen.sip similarity index 100% rename from sip/qt/qsplashscreen.sip rename to sip/tqt/tqsplashscreen.sip diff --git a/sip/qt/qsplitter.sip b/sip/tqt/tqsplitter.sip similarity index 100% rename from sip/qt/qsplitter.sip rename to sip/tqt/tqsplitter.sip diff --git a/sip/qt/qstatusbar.sip b/sip/tqt/tqstatusbar.sip similarity index 100% rename from sip/qt/qstatusbar.sip rename to sip/tqt/tqstatusbar.sip diff --git a/sip/qt/qstring.sip b/sip/tqt/tqstring.sip similarity index 91% rename from sip/qt/qstring.sip rename to 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 similarity index 100% rename from sip/qt/qstringlist.sip rename to sip/tqt/tqstringlist.sip diff --git a/sip/qt/qstrlist.sip b/sip/tqt/tqstrlist.sip similarity index 95% rename from sip/qt/qstrlist.sip rename to 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 similarity index 100% rename from sip/qt/qstyle.sip rename to sip/tqt/tqstyle.sip diff --git a/sip/qt/qstylefactory.sip b/sip/tqt/tqstylefactory.sip similarity index 100% rename from sip/qt/qstylefactory.sip rename to sip/tqt/tqstylefactory.sip diff --git a/sip/qt/qstylesheet.sip b/sip/tqt/tqstylesheet.sip similarity index 100% rename from sip/qt/qstylesheet.sip rename to sip/tqt/tqstylesheet.sip diff --git a/sip/qt/qsyntaxhighlighter.sip b/sip/tqt/tqsyntaxhighlighter.sip similarity index 100% rename from sip/qt/qsyntaxhighlighter.sip rename to sip/tqt/tqsyntaxhighlighter.sip diff --git a/sip/qt/qtabbar.sip b/sip/tqt/tqtabbar.sip similarity index 100% rename from sip/qt/qtabbar.sip rename to sip/tqt/tqtabbar.sip diff --git a/sip/qt/qtabdialog.sip b/sip/tqt/tqtabdialog.sip similarity index 100% rename from sip/qt/qtabdialog.sip rename to sip/tqt/tqtabdialog.sip diff --git a/sip/qt/qtabwidget.sip b/sip/tqt/tqtabwidget.sip similarity index 100% rename from sip/qt/qtabwidget.sip rename to sip/tqt/tqtabwidget.sip diff --git a/sip/qt/qtextbrowser.sip b/sip/tqt/tqtextbrowser.sip similarity index 100% rename from sip/qt/qtextbrowser.sip rename to sip/tqt/tqtextbrowser.sip diff --git a/sip/qt/qtextcodec.sip b/sip/tqt/tqtextcodec.sip similarity index 100% rename from sip/qt/qtextcodec.sip rename to sip/tqt/tqtextcodec.sip diff --git a/sip/qt/qtextedit.sip b/sip/tqt/tqtextedit.sip similarity index 100% rename from sip/qt/qtextedit.sip rename to sip/tqt/tqtextedit.sip diff --git a/sip/qt/qtextstream.sip b/sip/tqt/tqtextstream.sip similarity index 100% rename from sip/qt/qtextstream.sip rename to sip/tqt/tqtextstream.sip diff --git a/sip/qt/qtextview.sip b/sip/tqt/tqtextview.sip similarity index 100% rename from sip/qt/qtextview.sip rename to sip/tqt/tqtextview.sip diff --git a/sip/qt/qthread.sip b/sip/tqt/tqthread.sip similarity index 100% rename from sip/qt/qthread.sip rename to sip/tqt/tqthread.sip diff --git a/sip/qt/qtimer.sip b/sip/tqt/tqtimer.sip similarity index 100% rename from sip/qt/qtimer.sip rename to 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 +// +// 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 +%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 +# +# 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 similarity index 100% rename from sip/qt/qtoolbar.sip rename to sip/tqt/tqtoolbar.sip diff --git a/sip/qt/qtoolbox.sip b/sip/tqt/tqtoolbox.sip similarity index 100% rename from sip/qt/qtoolbox.sip rename to sip/tqt/tqtoolbox.sip diff --git a/sip/qt/qtoolbutton.sip b/sip/tqt/tqtoolbutton.sip similarity index 100% rename from sip/qt/qtoolbutton.sip rename to sip/tqt/tqtoolbutton.sip diff --git a/sip/qt/qtooltip.sip b/sip/tqt/tqtooltip.sip similarity index 100% rename from sip/qt/qtooltip.sip rename to sip/tqt/tqtooltip.sip diff --git a/sip/qt/qtranslator.sip b/sip/tqt/tqtranslator.sip similarity index 100% rename from sip/qt/qtranslator.sip rename to sip/tqt/tqtranslator.sip diff --git a/sip/qt/qurl.sip b/sip/tqt/tqurl.sip similarity index 100% rename from sip/qt/qurl.sip rename to sip/tqt/tqurl.sip diff --git a/sip/qt/qurlinfo.sip b/sip/tqt/tqurlinfo.sip similarity index 100% rename from sip/qt/qurlinfo.sip rename to sip/tqt/tqurlinfo.sip diff --git a/sip/qt/qurloperator.sip b/sip/tqt/tqurloperator.sip similarity index 100% rename from sip/qt/qurloperator.sip rename to sip/tqt/tqurloperator.sip diff --git a/sip/qt/quuid.sip b/sip/tqt/tquuid.sip similarity index 100% rename from sip/qt/quuid.sip rename to sip/tqt/tquuid.sip diff --git a/sip/qt/qvalidator.sip b/sip/tqt/tqvalidator.sip similarity index 100% rename from sip/qt/qvalidator.sip rename to sip/tqt/tqvalidator.sip diff --git a/sip/qt/qvaluelist.sip b/sip/tqt/tqvaluelist.sip similarity index 100% rename from sip/qt/qvaluelist.sip rename to sip/tqt/tqvaluelist.sip diff --git a/sip/qt/qvariant.sip b/sip/tqt/tqvariant.sip similarity index 100% rename from sip/qt/qvariant.sip rename to sip/tqt/tqvariant.sip diff --git a/sip/qt/qvbox.sip b/sip/tqt/tqvbox.sip similarity index 100% rename from sip/qt/qvbox.sip rename to sip/tqt/tqvbox.sip diff --git a/sip/qt/qvbuttongroup.sip b/sip/tqt/tqvbuttongroup.sip similarity index 100% rename from sip/qt/qvbuttongroup.sip rename to sip/tqt/tqvbuttongroup.sip diff --git a/sip/qt/qvgroupbox.sip b/sip/tqt/tqvgroupbox.sip similarity index 100% rename from sip/qt/qvgroupbox.sip rename to sip/tqt/tqvgroupbox.sip diff --git a/sip/qt/qwaitcondition.sip b/sip/tqt/tqwaitcondition.sip similarity index 100% rename from sip/qt/qwaitcondition.sip rename to sip/tqt/tqwaitcondition.sip diff --git a/sip/qt/qwhatsthis.sip b/sip/tqt/tqwhatsthis.sip similarity index 100% rename from sip/qt/qwhatsthis.sip rename to sip/tqt/tqwhatsthis.sip diff --git a/sip/qt/qwidget.sip b/sip/tqt/tqwidget.sip similarity index 100% rename from sip/qt/qwidget.sip rename to sip/tqt/tqwidget.sip diff --git a/sip/qt/qwidgetlist.sip b/sip/tqt/tqwidgetlist.sip similarity index 100% rename from sip/qt/qwidgetlist.sip rename to sip/tqt/tqwidgetlist.sip diff --git a/sip/qt/qwidgetstack.sip b/sip/tqt/tqwidgetstack.sip similarity index 100% rename from sip/qt/qwidgetstack.sip rename to sip/tqt/tqwidgetstack.sip diff --git a/sip/qt/qwindowdefs.sip b/sip/tqt/tqwindowdefs.sip similarity index 89% rename from sip/qt/qwindowdefs.sip rename to 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 similarity index 100% rename from sip/qt/qwindowdefs_qws.sip rename to sip/tqt/tqwindowdefs_qws.sip diff --git a/sip/qt/qwindowdefs_x11.sip b/sip/tqt/tqwindowdefs_x11.sip similarity index 100% rename from sip/qt/qwindowdefs_x11.sip rename to sip/tqt/tqwindowdefs_x11.sip diff --git a/sip/qt/qwindowsstyle.sip b/sip/tqt/tqwindowsstyle.sip similarity index 100% rename from sip/qt/qwindowsstyle.sip rename to sip/tqt/tqwindowsstyle.sip diff --git a/sip/qt/qwindowsxpstyle.sip b/sip/tqt/tqwindowsxpstyle.sip similarity index 100% rename from sip/qt/qwindowsxpstyle.sip rename to sip/tqt/tqwindowsxpstyle.sip diff --git a/sip/qt/qwizard.sip b/sip/tqt/tqwizard.sip similarity index 100% rename from sip/qt/qwizard.sip rename to sip/tqt/tqwizard.sip diff --git a/sip/qt/qwmatrix.sip b/sip/tqt/tqwmatrix.sip similarity index 100% rename from sip/qt/qwmatrix.sip rename to sip/tqt/tqwmatrix.sip diff --git a/sip/qt/qworkspace.sip b/sip/tqt/tqworkspace.sip similarity index 100% rename from sip/qt/qworkspace.sip rename to sip/tqt/tqworkspace.sip diff --git a/sip/qt/versions.sip b/sip/tqt/versions.sip similarity index 100% rename from sip/qt/versions.sip rename to sip/tqt/versions.sip diff --git a/sip/qtcanvas/copying.sip b/sip/tqtaxcontainer/copying.sip similarity index 88% rename from sip/qtcanvas/copying.sip rename to 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 similarity index 98% rename from sip/qtaxcontainer/qaxbase.sip rename to sip/tqtaxcontainer/tqaxbase.sip index 02400b4..a29d504 100644 --- a/sip/qtaxcontainer/qaxbase.sip +++ b/sip/tqtaxcontainer/tqaxbase.sip @@ -62,7 +62,7 @@ Not implemented. This is a utility method provided by PyTQt to make it easier to use Mark Hammond's win32com module to manipulate objects -created by the qtaxcontainer module. +created by the tqtaxcontainer module. The RegisterActiveObject() COM function is called to diff --git a/sip/qtaxcontainer/qaxobject.sip b/sip/tqtaxcontainer/tqaxobject.sip similarity index 100% rename from sip/qtaxcontainer/qaxobject.sip rename to sip/tqtaxcontainer/tqaxobject.sip diff --git a/sip/qtaxcontainer/qaxwidget.sip b/sip/tqtaxcontainer/tqaxwidget.sip similarity index 100% rename from sip/qtaxcontainer/qaxwidget.sip rename to sip/tqtaxcontainer/tqaxwidget.sip diff --git a/sip/qtaxcontainer/qtaxcontainermod.sip b/sip/tqtaxcontainer/tqtaxcontainermod.sip similarity index 80% rename from sip/qtaxcontainer/qtaxcontainermod.sip rename to 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 @@ -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 similarity index 88% rename from sip/qt/copying.sip rename to 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 similarity index 100% rename from sip/qtcanvas/qcanvas.sip rename to sip/tqtcanvas/tqcanvas.sip diff --git a/sip/qttable/qttablemod.sip b/sip/tqtcanvas/tqtcanvasmod.sip similarity index 85% rename from sip/qttable/qttablemod.sip rename to 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 @@ -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 @@ -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 similarity index 88% rename from sip/qtext/copying.sip rename to 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 similarity index 100% rename from sip/qtext/qextscintilla.sip rename to sip/tqtext/tqextscintilla.sip diff --git a/sip/qtext/qextscintillaapis.sip b/sip/tqtext/tqextscintillaapis.sip similarity index 100% rename from sip/qtext/qextscintillaapis.sip rename to sip/tqtext/tqextscintillaapis.sip diff --git a/sip/qtext/qextscintillabase.sip b/sip/tqtext/tqextscintillabase.sip similarity index 100% rename from sip/qtext/qextscintillabase.sip rename to sip/tqtext/tqextscintillabase.sip diff --git a/sip/qtext/qextscintillacommand.sip b/sip/tqtext/tqextscintillacommand.sip similarity index 100% rename from sip/qtext/qextscintillacommand.sip rename to sip/tqtext/tqextscintillacommand.sip diff --git a/sip/qtext/qextscintillacommandset.sip b/sip/tqtext/tqextscintillacommandset.sip similarity index 100% rename from sip/qtext/qextscintillacommandset.sip rename to sip/tqtext/tqextscintillacommandset.sip diff --git a/sip/qtext/qextscintilladocument.sip b/sip/tqtext/tqextscintilladocument.sip similarity index 100% rename from sip/qtext/qextscintilladocument.sip rename to sip/tqtext/tqextscintilladocument.sip diff --git a/sip/qtext/qextscintillalexer.sip b/sip/tqtext/tqextscintillalexer.sip similarity index 100% rename from sip/qtext/qextscintillalexer.sip rename to sip/tqtext/tqextscintillalexer.sip diff --git a/sip/qtext/qextscintillalexerbash.sip b/sip/tqtext/tqextscintillalexerbash.sip similarity index 100% rename from sip/qtext/qextscintillalexerbash.sip rename to sip/tqtext/tqextscintillalexerbash.sip diff --git a/sip/qtext/qextscintillalexerbatch.sip b/sip/tqtext/tqextscintillalexerbatch.sip similarity index 100% rename from sip/qtext/qextscintillalexerbatch.sip rename to sip/tqtext/tqextscintillalexerbatch.sip diff --git a/sip/qtext/qextscintillalexercpp.sip b/sip/tqtext/tqextscintillalexercpp.sip similarity index 100% rename from sip/qtext/qextscintillalexercpp.sip rename to sip/tqtext/tqextscintillalexercpp.sip diff --git a/sip/qtext/qextscintillalexercsharp.sip b/sip/tqtext/tqextscintillalexercsharp.sip similarity index 100% rename from sip/qtext/qextscintillalexercsharp.sip rename to sip/tqtext/tqextscintillalexercsharp.sip diff --git a/sip/qtext/qextscintillalexercss.sip b/sip/tqtext/tqextscintillalexercss.sip similarity index 100% rename from sip/qtext/qextscintillalexercss.sip rename to sip/tqtext/tqextscintillalexercss.sip diff --git a/sip/qtext/qextscintillalexerdiff.sip b/sip/tqtext/tqextscintillalexerdiff.sip similarity index 100% rename from sip/qtext/qextscintillalexerdiff.sip rename to sip/tqtext/tqextscintillalexerdiff.sip diff --git a/sip/qtext/qextscintillalexerhtml.sip b/sip/tqtext/tqextscintillalexerhtml.sip similarity index 100% rename from sip/qtext/qextscintillalexerhtml.sip rename to sip/tqtext/tqextscintillalexerhtml.sip diff --git a/sip/qtext/qextscintillalexeridl.sip b/sip/tqtext/tqextscintillalexeridl.sip similarity index 100% rename from sip/qtext/qextscintillalexeridl.sip rename to sip/tqtext/tqextscintillalexeridl.sip diff --git a/sip/qtext/qextscintillalexerjava.sip b/sip/tqtext/tqextscintillalexerjava.sip similarity index 100% rename from sip/qtext/qextscintillalexerjava.sip rename to sip/tqtext/tqextscintillalexerjava.sip diff --git a/sip/qtext/qextscintillalexerjavascript.sip b/sip/tqtext/tqextscintillalexerjavascript.sip similarity index 100% rename from sip/qtext/qextscintillalexerjavascript.sip rename to sip/tqtext/tqextscintillalexerjavascript.sip diff --git a/sip/qtext/qextscintillalexerlua.sip b/sip/tqtext/tqextscintillalexerlua.sip similarity index 100% rename from sip/qtext/qextscintillalexerlua.sip rename to sip/tqtext/tqextscintillalexerlua.sip diff --git a/sip/qtext/qextscintillalexermakefile.sip b/sip/tqtext/tqextscintillalexermakefile.sip similarity index 100% rename from sip/qtext/qextscintillalexermakefile.sip rename to sip/tqtext/tqextscintillalexermakefile.sip diff --git a/sip/qtext/qextscintillalexerperl.sip b/sip/tqtext/tqextscintillalexerperl.sip similarity index 100% rename from sip/qtext/qextscintillalexerperl.sip rename to sip/tqtext/tqextscintillalexerperl.sip diff --git a/sip/qtext/qextscintillalexerpov.sip b/sip/tqtext/tqextscintillalexerpov.sip similarity index 100% rename from sip/qtext/qextscintillalexerpov.sip rename to sip/tqtext/tqextscintillalexerpov.sip diff --git a/sip/qtext/qextscintillalexerproperties.sip b/sip/tqtext/tqextscintillalexerproperties.sip similarity index 100% rename from sip/qtext/qextscintillalexerproperties.sip rename to sip/tqtext/tqextscintillalexerproperties.sip diff --git a/sip/qtext/qextscintillalexerpython.sip b/sip/tqtext/tqextscintillalexerpython.sip similarity index 100% rename from sip/qtext/qextscintillalexerpython.sip rename to sip/tqtext/tqextscintillalexerpython.sip diff --git a/sip/qtext/qextscintillalexerruby.sip b/sip/tqtext/tqextscintillalexerruby.sip similarity index 100% rename from sip/qtext/qextscintillalexerruby.sip rename to sip/tqtext/tqextscintillalexerruby.sip diff --git a/sip/qtext/qextscintillalexersql.sip b/sip/tqtext/tqextscintillalexersql.sip similarity index 100% rename from sip/qtext/qextscintillalexersql.sip rename to sip/tqtext/tqextscintillalexersql.sip diff --git a/sip/qtext/qextscintillalexertex.sip b/sip/tqtext/tqextscintillalexertex.sip similarity index 100% rename from sip/qtext/qextscintillalexertex.sip rename to sip/tqtext/tqextscintillalexertex.sip diff --git a/sip/qtext/qextscintillamacro.sip b/sip/tqtext/tqextscintillamacro.sip similarity index 100% rename from sip/qtext/qextscintillamacro.sip rename to sip/tqtext/tqextscintillamacro.sip diff --git a/sip/qtext/qextscintillaprinter.sip b/sip/tqtext/tqextscintillaprinter.sip similarity index 100% rename from sip/qtext/qextscintillaprinter.sip rename to sip/tqtext/tqextscintillaprinter.sip diff --git a/sip/qtext/qtextmod.sip b/sip/tqtext/tqtextmod.sip similarity index 60% rename from sip/qtext/qtextmod.sip rename to 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 @@ -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 @@ -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 +// +// 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 + +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 similarity index 100% rename from sip/qtgl/qgl.sip rename to sip/tqtgl/tqgl.sip diff --git a/sip/qtgl/qglcolormap.sip b/sip/tqtgl/tqglcolormap.sip similarity index 100% rename from sip/qtgl/qglcolormap.sip rename to sip/tqtgl/tqglcolormap.sip diff --git a/sip/qtgl/qtglmod.sip b/sip/tqtgl/tqtglmod.sip similarity index 84% rename from sip/qtgl/qtglmod.sip rename to 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 @@ -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 @@ -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 +// +// 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 + +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 similarity index 100% rename from sip/qtnetwork/qdns.sip rename to sip/tqtnetwork/tqdns.sip diff --git a/sip/qtnetwork/qftp.sip b/sip/tqtnetwork/tqftp.sip similarity index 100% rename from sip/qtnetwork/qftp.sip rename to sip/tqtnetwork/tqftp.sip diff --git a/sip/qtnetwork/qhostaddress.sip b/sip/tqtnetwork/tqhostaddress.sip similarity index 100% rename from sip/qtnetwork/qhostaddress.sip rename to sip/tqtnetwork/tqhostaddress.sip diff --git a/sip/qtnetwork/qhttp.sip b/sip/tqtnetwork/tqhttp.sip similarity index 100% rename from sip/qtnetwork/qhttp.sip rename to sip/tqtnetwork/tqhttp.sip diff --git a/sip/qtnetwork/qlocalfs.sip b/sip/tqtnetwork/tqlocalfs.sip similarity index 100% rename from sip/qtnetwork/qlocalfs.sip rename to sip/tqtnetwork/tqlocalfs.sip diff --git a/sip/qtnetwork/qnetwork.sip b/sip/tqtnetwork/tqnetwork.sip similarity index 100% rename from sip/qtnetwork/qnetwork.sip rename to sip/tqtnetwork/tqnetwork.sip diff --git a/sip/qtnetwork/qserversocket.sip b/sip/tqtnetwork/tqserversocket.sip similarity index 100% rename from sip/qtnetwork/qserversocket.sip rename to sip/tqtnetwork/tqserversocket.sip diff --git a/sip/qtnetwork/qsocket.sip b/sip/tqtnetwork/tqsocket.sip similarity index 100% rename from sip/qtnetwork/qsocket.sip rename to sip/tqtnetwork/tqsocket.sip diff --git a/sip/qtnetwork/qsocketdevice.sip b/sip/tqtnetwork/tqsocketdevice.sip similarity index 100% rename from sip/qtnetwork/qsocketdevice.sip rename to sip/tqtnetwork/tqsocketdevice.sip diff --git a/sip/qtnetwork/qtnetworkmod.sip b/sip/tqtnetwork/tqtnetworkmod.sip similarity index 78% rename from sip/qtnetwork/qtnetworkmod.sip rename to 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 @@ -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 @@ -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 +// +// 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 + +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 similarity index 100% rename from sip/qtpe/qpeapplication.sip rename to sip/tqtpe/tqpeapplication.sip diff --git a/sip/qtpe/qpeapplnk.sip b/sip/tqtpe/tqpeapplnk.sip similarity index 100% rename from sip/qtpe/qpeapplnk.sip rename to sip/tqtpe/tqpeapplnk.sip diff --git a/sip/qtpe/qpeconfig.sip b/sip/tqtpe/tqpeconfig.sip similarity index 100% rename from sip/qtpe/qpeconfig.sip rename to sip/tqtpe/tqpeconfig.sip diff --git a/sip/qtpe/qpefilemanager.sip b/sip/tqtpe/tqpefilemanager.sip similarity index 100% rename from sip/qtpe/qpefilemanager.sip rename to sip/tqtpe/tqpefilemanager.sip diff --git a/sip/qtpe/qpefileselector.sip b/sip/tqtpe/tqpefileselector.sip similarity index 100% rename from sip/qtpe/qpefileselector.sip rename to sip/tqtpe/tqpefileselector.sip diff --git a/sip/qtpe/qpefontdatabase.sip b/sip/tqtpe/tqpefontdatabase.sip similarity index 100% rename from sip/qtpe/qpefontdatabase.sip rename to sip/tqtpe/tqpefontdatabase.sip diff --git a/sip/qtpe/qpeglobal.sip b/sip/tqtpe/tqpeglobal.sip similarity index 100% rename from sip/qtpe/qpeglobal.sip rename to sip/tqtpe/tqpeglobal.sip diff --git a/sip/qtpe/qpemenubar.sip b/sip/tqtpe/tqpemenubar.sip similarity index 100% rename from sip/qtpe/qpemenubar.sip rename to sip/tqtpe/tqpemenubar.sip diff --git a/sip/qtpe/qpemenubutton.sip b/sip/tqtpe/tqpemenubutton.sip similarity index 100% rename from sip/qtpe/qpemenubutton.sip rename to sip/tqtpe/tqpemenubutton.sip diff --git a/sip/qtpe/qpeqcopenvelope.sip b/sip/tqtpe/tqpeqcopenvelope.sip similarity index 97% rename from sip/qtpe/qpeqcopenvelope.sip rename to 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 +#include %End public: diff --git a/sip/qtpe/qpeqdawg.sip b/sip/tqtpe/tqpeqdawg.sip similarity index 100% rename from sip/qtpe/qpeqdawg.sip rename to sip/tqtpe/tqpeqdawg.sip diff --git a/sip/qtpe/qperesource.sip b/sip/tqtpe/tqperesource.sip similarity index 100% rename from sip/qtpe/qperesource.sip rename to sip/tqtpe/tqperesource.sip diff --git a/sip/qtpe/qpetimestring.sip b/sip/tqtpe/tqpetimestring.sip similarity index 100% rename from sip/qtpe/qpetimestring.sip rename to sip/tqtpe/tqpetimestring.sip diff --git a/sip/qtpe/qpetoolbar.sip b/sip/tqtpe/tqpetoolbar.sip similarity index 100% rename from sip/qtpe/qpetoolbar.sip rename to sip/tqtpe/tqpetoolbar.sip diff --git a/sip/qtpe/qtpemod.sip b/sip/tqtpe/tqtpemod.sip similarity index 75% rename from sip/qtpe/qtpemod.sip rename to 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 @@ -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 @@ -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 +// +// 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 + +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 similarity index 100% rename from sip/qtsql/qdatabrowser.sip rename to sip/tqtsql/tqdatabrowser.sip diff --git a/sip/qtsql/qdatatable.sip b/sip/tqtsql/tqdatatable.sip similarity index 100% rename from sip/qtsql/qdatatable.sip rename to sip/tqtsql/tqdatatable.sip diff --git a/sip/qtsql/qdataview.sip b/sip/tqtsql/tqdataview.sip similarity index 100% rename from sip/qtsql/qdataview.sip rename to sip/tqtsql/tqdataview.sip diff --git a/sip/qtsql/qeditorfactory.sip b/sip/tqtsql/tqeditorfactory.sip similarity index 100% rename from sip/qtsql/qeditorfactory.sip rename to sip/tqtsql/tqeditorfactory.sip diff --git a/sip/qtsql/qsql.sip b/sip/tqtsql/tqsql.sip similarity index 100% rename from sip/qtsql/qsql.sip rename to sip/tqtsql/tqsql.sip diff --git a/sip/qtsql/qsqlcursor.sip b/sip/tqtsql/tqsqlcursor.sip similarity index 100% rename from sip/qtsql/qsqlcursor.sip rename to sip/tqtsql/tqsqlcursor.sip diff --git a/sip/qtsql/qsqldatabase.sip b/sip/tqtsql/tqsqldatabase.sip similarity index 100% rename from sip/qtsql/qsqldatabase.sip rename to sip/tqtsql/tqsqldatabase.sip diff --git a/sip/qtsql/qsqldriver.sip b/sip/tqtsql/tqsqldriver.sip similarity index 100% rename from sip/qtsql/qsqldriver.sip rename to sip/tqtsql/tqsqldriver.sip diff --git a/sip/qtsql/qsqleditorfactory.sip b/sip/tqtsql/tqsqleditorfactory.sip similarity index 100% rename from sip/qtsql/qsqleditorfactory.sip rename to sip/tqtsql/tqsqleditorfactory.sip diff --git a/sip/qtsql/qsqlerror.sip b/sip/tqtsql/tqsqlerror.sip similarity index 100% rename from sip/qtsql/qsqlerror.sip rename to sip/tqtsql/tqsqlerror.sip diff --git a/sip/qtsql/qsqlfield.sip b/sip/tqtsql/tqsqlfield.sip similarity index 100% rename from sip/qtsql/qsqlfield.sip rename to sip/tqtsql/tqsqlfield.sip diff --git a/sip/qtsql/qsqlform.sip b/sip/tqtsql/tqsqlform.sip similarity index 100% rename from sip/qtsql/qsqlform.sip rename to sip/tqtsql/tqsqlform.sip diff --git a/sip/qtsql/qsqlindex.sip b/sip/tqtsql/tqsqlindex.sip similarity index 100% rename from sip/qtsql/qsqlindex.sip rename to sip/tqtsql/tqsqlindex.sip diff --git a/sip/qtsql/qsqlpropertymap.sip b/sip/tqtsql/tqsqlpropertymap.sip similarity index 100% rename from sip/qtsql/qsqlpropertymap.sip rename to sip/tqtsql/tqsqlpropertymap.sip diff --git a/sip/qtsql/qsqlquery.sip b/sip/tqtsql/tqsqlquery.sip similarity index 100% rename from sip/qtsql/qsqlquery.sip rename to sip/tqtsql/tqsqlquery.sip diff --git a/sip/qtsql/qsqlrecord.sip b/sip/tqtsql/tqsqlrecord.sip similarity index 100% rename from sip/qtsql/qsqlrecord.sip rename to sip/tqtsql/tqsqlrecord.sip diff --git a/sip/qtsql/qsqlresult.sip b/sip/tqtsql/tqsqlresult.sip similarity index 100% rename from sip/qtsql/qsqlresult.sip rename to sip/tqtsql/tqsqlresult.sip diff --git a/sip/qtsql/qsqlselectcursor.sip b/sip/tqtsql/tqsqlselectcursor.sip similarity index 100% rename from sip/qtsql/qsqlselectcursor.sip rename to sip/tqtsql/tqsqlselectcursor.sip diff --git a/sip/qtsql/qtsqlmod.sip b/sip/tqtsql/tqtsqlmod.sip similarity index 70% rename from sip/qtsql/qtsqlmod.sip rename to 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 @@ -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 @@ -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 +// +// 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 + +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 similarity index 100% rename from sip/qttable/qtable.sip rename to sip/tqttable/tqtable.sip diff --git a/sip/qtcanvas/qtcanvasmod.sip b/sip/tqttable/tqttablemod.sip similarity index 86% rename from sip/qtcanvas/qtcanvasmod.sip rename to 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 @@ -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 @@ -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 +// +// 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 + +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 similarity index 85% rename from sip/qtui/qtuimod.sip rename to 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 @@ -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 similarity index 100% rename from sip/qtui/qwidgetfactory.sip rename to 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 +// +// 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 + +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 similarity index 100% rename from sip/qtxml/qdom.sip rename to sip/tqtxml/tqdom.sip diff --git a/sip/qtxml/qtxmlmod.sip b/sip/tqtxml/tqtxmlmod.sip similarity index 80% rename from sip/qtxml/qtxmlmod.sip rename to 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 @@ -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 @@ -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