From b803249430e4b183c8bf853c6c0147e796b19425 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 25 Sep 2023 13:38:31 +0900 Subject: [PATCH] Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version Signed-off-by: Michele Calgaro --- doc/kstars/dcop.docbook | 10 +++--- doc/kstars/scriptbuilder.docbook | 36 +++++++++---------- kig/DESIGN | 2 +- kstars/README.planetmath | 2 +- kturtle/TODO | 4 +-- .../kvoctrain/common-dialogs/kvoctrain.kcfg | 2 +- libtdeedu/tdeeduplot/README | 2 +- 7 files changed, 29 insertions(+), 29 deletions(-) diff --git a/doc/kstars/dcop.docbook b/doc/kstars/dcop.docbook index b17539bf..00c8f7e9 100644 --- a/doc/kstars/dcop.docbook +++ b/doc/kstars/dcop.docbook @@ -28,7 +28,7 @@ functions: -lookTowards( const QString direction ): +lookTowards( const TQString direction ): Point the display focus in a direction specified by the argument. This can be the name of any object in the sky, or one of the following directional words or abbreviations: zenith (or z), north (n), @@ -72,7 +72,7 @@ Pause for t seconds before continuing with subsequent script commands. -waitForKey( const QString k ): +waitForKey( const TQString k ): Halt the script execution until the user presses the specified key. At this point, you cannot specify combination keystrokes (such as &Ctrl;C); just use @@ -86,7 +86,7 @@ Toggle whether tracking mode is engaged. -changeViewOption( const QString option, const QString value ): +changeViewOption( const TQString option, const TQString value ): Adjust a view option. There are dozens and dozens of options available; basically everything you can change in the Configure &kstars; Window can be changed here as well. The first argument is @@ -98,8 +98,8 @@ gracefully. -setGeoLocation( const QString city, const QString province, -const QString country ): +setGeoLocation( const TQString city, const TQString province, +const TQString country ): Change the observing location to the specified city. If no city matching the argument strings is found, then nothing happens. diff --git a/doc/kstars/scriptbuilder.docbook b/doc/kstars/scriptbuilder.docbook index f439e662..9b5d59da 100644 --- a/doc/kstars/scriptbuilder.docbook +++ b/doc/kstars/scriptbuilder.docbook @@ -180,20 +180,20 @@ Script item in the File menu. Generic Device Functions: Functions to establish/shutdown devices..etc. - startINDI (QString deviceName, bool useLocal) : Establish an INDI service either as local or server. - shutdownINDI (QString deviceName) : Shutdown the INDI service. - switchINDI(QString deviceName, bool turnOn) : Connect or Disconnect an INDI device. - setINDIPort(QString deviceName, QString port) : Set the device's connection port. - setINDIAction(QString deviceName, QString action) : Activate an INDI action. The action can be any element of a switch property - waitForINDIAction(QString deviceName, QString action) : Pause script execution until the specified action property returns with OK status. + startINDI (TQString deviceName, bool useLocal) : Establish an INDI service either as local or server. + shutdownINDI (TQString deviceName) : Shutdown the INDI service. + switchINDI(TQString deviceName, bool turnOn) : Connect or Disconnect an INDI device. + setINDIPort(TQString deviceName, TQString port) : Set the device's connection port. + setINDIAction(TQString deviceName, TQString action) : Activate an INDI action. The action can be any element of a switch property + waitForINDIAction(TQString deviceName, TQString action) : Pause script execution until the specified action property returns with OK status. Telescope Functions: Functions to control the telescope motion and status. - setINDIScopeAction(QString deviceName, QString action) : Set the telescope mode or action. Available options are SLEW, TRACK, SYNC, PARK, and ABORT. - setINDITargetCoord(QString deviceName, double RA, double DEC) : Set the telescope JNow target coordinates to RA and DEC. - setINDITargetName(QString deviceName, QString objectName) : Set the telescope JNow target coordinates to the coordinates of objectName. KStars will lookup the object name in its database and will fetch RA and Dec once found. - setINDIGeoLocation(QString deviceName, double + setINDIScopeAction(TQString deviceName, TQString action) : Set the telescope mode or action. Available options are SLEW, TRACK, SYNC, PARK, and ABORT. + setINDITargetCoord(TQString deviceName, double RA, double DEC) : Set the telescope JNow target coordinates to RA and DEC. + setINDITargetName(TQString deviceName, TQString objectName) : Set the telescope JNow target coordinates to the coordinates of objectName. KStars will lookup the object name in its database and will fetch RA and Dec once found. + setINDIGeoLocation(TQString deviceName, double longitude, double latitude) : Set the telescope geographical location to the longitude and latitude as specified. The longitude is measured from Greenwich, UK, to the East. However, while it is common to use negative @@ -203,26 +203,26 @@ degrees to get the value that INDI expects. For example, Calgary, Canada coordinates in &kstars; are longitude: -114 04 58; latitude: 51 02 58. So INDI's would need longitude = 360 - 114.083 = 245.917 degrees. - setINDIUTC(QString ddeviceName, QString UTCDateTime) : Set the telescope UTC Date and Time in ISO 8601 format. The format is YYYY-MM-DDTHH:MM:SS (e.g. 2004-07-12T22:05:32). + setINDIUTC(TQString ddeviceName, TQString UTCDateTime) : Set the telescope UTC Date and Time in ISO 8601 format. The format is YYYY-MM-DDTHH:MM:SS (e.g. 2004-07-12T22:05:32). Camera/CCD Functions: Functions to control the camera/CCD properties and status. - setINDICCDTemp(QString deviceName, int temp) : Set the CCD chip target temperature in degrees celsius. - setINDIFrameType(QString deviceName, QString type) : Set the CCD frame type. Available options are FRAME_LIGHT, FRAME_BIAS, FRAME_DARK, and FRAME_FLAT. - startINDIExposure(QString deviceName, int timeout) : Start the CCD/Camera exposure for the duration specified by timeout in seconds. + setINDICCDTemp(TQString deviceName, int temp) : Set the CCD chip target temperature in degrees celsius. + setINDIFrameType(TQString deviceName, TQString type) : Set the CCD frame type. Available options are FRAME_LIGHT, FRAME_BIAS, FRAME_DARK, and FRAME_FLAT. + startINDIExposure(TQString deviceName, int timeout) : Start the CCD/Camera exposure for the duration specified by timeout in seconds. Focuser Functions: Functions to control the focuser motion and status. - setINDIFocusSpeed(QString deviceName, QString action) : Set the focuser speed. Available options are FOCUS_HALT, FOCUS_SLOW, FOCUS_MEDIUM, and FOCUS_FAST. - setINDIFocusTimeout(QString deviceName, int timeout) : Set the duration in seconds for any subsequent startINDIFocus operations. - startINDIFocus(QString deviceName, int focusDir) : Move the focuser either inward (focusDir = 0) or outward (focusDir = 1). The speed and duration of this operation is set by the setINDIFocusSpeed() and setINDIFocusTimeout() functions. + setINDIFocusSpeed(TQString deviceName, TQString action) : Set the focuser speed. Available options are FOCUS_HALT, FOCUS_SLOW, FOCUS_MEDIUM, and FOCUS_FAST. + setINDIFocusTimeout(TQString deviceName, int timeout) : Set the duration in seconds for any subsequent startINDIFocus operations. + startINDIFocus(TQString deviceName, int focusDir) : Move the focuser either inward (focusDir = 0) or outward (focusDir = 1). The speed and duration of this operation is set by the setINDIFocusSpeed() and setINDIFocusTimeout() functions. Filter Functions: Functions to control the filter position. - setINDIFilterNum(QString deviceName, int filter_num) : Change the filter position to filter_num. The user can assign aliases to filter numbers in the Configure INDI dialog box under the Devices menu (e.g. Filter 1 = Red, Filter 2 = Green..etc). + setINDIFilterNum(TQString deviceName, int filter_num) : Change the filter position to filter_num. The user can assign aliases to filter numbers in the Configure INDI dialog box under the Devices menu (e.g. Filter 1 = Red, Filter 2 = Green..etc). diff --git a/kig/DESIGN b/kig/DESIGN index 0de0c986..69837b23 100644 --- a/kig/DESIGN +++ b/kig/DESIGN @@ -150,7 +150,7 @@ way. I will explain all the classes involved. First of all, there is the TextImp class. It is an ObjectImp ( cf. supra ), and thus represents a piece of text that can be drawn on -the document. It contains a QString ( the text to be shown ), a +the document. It contains a TQString ( the text to be shown ), a coordinate ( the location to draw it ), and a boolean saying whether a frame should be drawn around it. As with all ObjectImp's, it does not contain any code for calculating it, or how it behaves on user input. diff --git a/kstars/README.planetmath b/kstars/README.planetmath index 3bfc57c9..74d2d451 100644 --- a/kstars/README.planetmath +++ b/kstars/README.planetmath @@ -58,7 +58,7 @@ The KSplanet class contains a static OrbitDataManager member. The OrbitDataManager provides for loading and storing the A/B/C constants for each planet. In KstarsData::slotInitialize(), we simply call loadData() for each planet. KSPlanet::loadData() calls -OrbitDataManager::loadData(QString n), where n is the name of the planet. +OrbitDataManager::loadData(TQString n), where n is the name of the planet. The A/B/C constants are stored hierarchically: + The A,B,C values for a single term in an s(N) sum are stored in an diff --git a/kturtle/TODO b/kturtle/TODO index 30e5189d..f3e26f00 100644 --- a/kturtle/TODO +++ b/kturtle/TODO @@ -230,7 +230,7 @@ cies: That is a good plan! I have tux allready in my sprites dir (I'm a fan too - crash on quitting after Opening files DONE annma 02/04/2004 -- cies: Make the interpreter (stolen from wsbasic.sf.net) (executer, parser, lexer, number and treenode) more native Qt. Right now they are a mixture of standard-CLI-C++ and Qt thingies (i put the Qt thingies there). I tried do that but i found that i'm not comfortable with the concept of streams -- which are used a lot in the interpreter. Especially streaming QString was an obstacle i couldnt take. DONE +- cies: Make the interpreter (stolen from wsbasic.sf.net) (executer, parser, lexer, number and treenode) more native Qt. Right now they are a mixture of standard-CLI-C++ and Qt thingies (i put the Qt thingies there). I tried do that but i found that i'm not comfortable with the concept of streams -- which are used a lot in the interpreter. Especially streaming TQString was an obstacle i couldnt take. DONE >>>>> after this is done we can also make the ()[],.""-configurable With long lines and wrapping the canvas can get into a endless loop -> 100%CPU, i tried a lot to fix this allready, maybe my solution needs some tuning :). @@ -293,7 +293,7 @@ Im tryered of this... I can fix it; too much for me. Sorry in tdelibs/tdecore/kapp... : -url = QString("help:/%1?anchor=%2").arg(appname).arg(anchor); +url = TQString("help:/%1?anchor=%2").arg(appname).arg(anchor); and DCOPRef( "khelpcenter", "KHelpCenterIface" ).send( "openUrl", url, startup_id ); diff --git a/kvoctrain/kvoctrain/common-dialogs/kvoctrain.kcfg b/kvoctrain/kvoctrain/common-dialogs/kvoctrain.kcfg index dd8732a5..f4c87806 100644 --- a/kvoctrain/kvoctrain/common-dialogs/kvoctrain.kcfg +++ b/kvoctrain/kvoctrain/common-dialogs/kvoctrain.kcfg @@ -27,7 +27,7 @@ - QChar('\t') + TQChar('\t') diff --git a/libtdeedu/tdeeduplot/README b/libtdeedu/tdeeduplot/README index ab695f9a..e9a52c23 100644 --- a/libtdeedu/tdeeduplot/README +++ b/libtdeedu/tdeeduplot/README @@ -1,6 +1,6 @@ This library provides KPlotWidget and KPlotObject classes. -KPlotWidget is a QWidget-derived class that provides a virtual baseclass +KPlotWidget is a TQWidget-derived class that provides a virtual baseclass for easy data-plotting. The idea behind KPlotWidget is that you only have to specify information in "data units"; i.e., the natural units of the data being plotted. KPlotWidget automatically converts everything