Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit b803249430)
r14.1.x r14.1.1
Michele Calgaro 1 year ago
parent c23828a367
commit e37a0bcc13
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -28,7 +28,7 @@ functions:
<itemizedlist>
<listitem><para><function>
lookTowards( const QString direction )</function>:
lookTowards( const TQString direction )</function>:
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.
</para></listitem>
<listitem><para><function>
waitForKey( const QString k )</function>:
waitForKey( const TQString k )</function>:
Halt the script execution until the user presses the specified key.
At this point, you cannot specify combination keystrokes (such as
<keycombo action="simul">&Ctrl;<keycap>C</keycap></keycombo>); just use
@ -86,7 +86,7 @@ Toggle whether tracking mode is engaged.
</para></listitem>
<listitem><para><function>
changeViewOption( const QString option, const QString value )</function>:
changeViewOption( const TQString option, const TQString value )</function>:
Adjust a view option. There are dozens and dozens of options available;
basically everything you can change in the <guilabel>Configure &kstars;
Window</guilabel> can be changed here as well. The first argument is
@ -98,8 +98,8 @@ gracefully.
</para></listitem>
<listitem><para><function>
setGeoLocation( const QString city, const QString province,
const QString country )</function>:
setGeoLocation( const TQString city, const TQString province,
const TQString country )</function>:
Change the observing location to the specified city. If no city matching
the argument strings is found, then nothing happens.
</para></listitem>

@ -180,20 +180,20 @@ Script</guimenuitem> item in the <guimenu>File</guimenu> menu.
<orderedlist>
<listitem><para>Generic Device Functions: Functions to establish/shutdown devices..etc.</para>
<itemizedlist>
<listitem><para><function>startINDI (QString deviceName, bool useLocal)</function> : Establish an INDI service either as local or server.</para></listitem>
<listitem><para><function>shutdownINDI (QString deviceName)</function> : Shutdown the INDI service.</para></listitem>
<listitem><para><function>switchINDI(QString deviceName, bool turnOn)</function> : Connect or Disconnect an INDI device.</para></listitem>
<listitem><para><function>setINDIPort(QString deviceName, QString port)</function> : Set the device's connection port.</para></listitem>
<listitem><para><function>setINDIAction(QString deviceName, QString action)</function> : Activate an INDI action. The action can be any <emphasis>element</emphasis> of a <emphasis>switch property</emphasis></para></listitem>
<listitem><para><function>waitForINDIAction(QString deviceName, QString action)</function> : Pause script execution until the specified action <emphasis>property</emphasis> returns with OK status.</para></listitem>
<listitem><para><function>startINDI (TQString deviceName, bool useLocal)</function> : Establish an INDI service either as local or server.</para></listitem>
<listitem><para><function>shutdownINDI (TQString deviceName)</function> : Shutdown the INDI service.</para></listitem>
<listitem><para><function>switchINDI(TQString deviceName, bool turnOn)</function> : Connect or Disconnect an INDI device.</para></listitem>
<listitem><para><function>setINDIPort(TQString deviceName, TQString port)</function> : Set the device's connection port.</para></listitem>
<listitem><para><function>setINDIAction(TQString deviceName, TQString action)</function> : Activate an INDI action. The action can be any <emphasis>element</emphasis> of a <emphasis>switch property</emphasis></para></listitem>
<listitem><para><function>waitForINDIAction(TQString deviceName, TQString action)</function> : Pause script execution until the specified action <emphasis>property</emphasis> returns with OK status.</para></listitem>
</itemizedlist>
</listitem>
<listitem><para>Telescope Functions: Functions to control the telescope motion and status.</para>
<itemizedlist>
<listitem><para><function>setINDIScopeAction(QString deviceName, QString action)</function> : Set the telescope mode or action. Available options are SLEW, TRACK, SYNC, PARK, and ABORT.</para></listitem>
<listitem><para><function>setINDITargetCoord(QString deviceName, double RA, double DEC)</function> : Set the telescope JNow target coordinates to <emphasis>RA</emphasis> and <emphasis>DEC</emphasis>.</para></listitem>
<listitem><para><function>setINDITargetName(QString deviceName, QString objectName)</function> : Set the telescope JNow target coordinates to the coordinates of <emphasis>objectName</emphasis>. KStars will lookup the object name in its database and will fetch RA and Dec once found.</para></listitem>
<listitem><para><function>setINDIGeoLocation(QString deviceName, double
<listitem><para><function>setINDIScopeAction(TQString deviceName, TQString action)</function> : Set the telescope mode or action. Available options are SLEW, TRACK, SYNC, PARK, and ABORT.</para></listitem>
<listitem><para><function>setINDITargetCoord(TQString deviceName, double RA, double DEC)</function> : Set the telescope JNow target coordinates to <emphasis>RA</emphasis> and <emphasis>DEC</emphasis>.</para></listitem>
<listitem><para><function>setINDITargetName(TQString deviceName, TQString objectName)</function> : Set the telescope JNow target coordinates to the coordinates of <emphasis>objectName</emphasis>. KStars will lookup the object name in its database and will fetch RA and Dec once found.</para></listitem>
<listitem><para><function>setINDIGeoLocation(TQString deviceName, double
longitude, double latitude)</function> : 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.</para></listitem>
<listitem><para><function>setINDIUTC(QString ddeviceName, QString UTCDateTime)</function> : 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).</para></listitem>
<listitem><para><function>setINDIUTC(TQString ddeviceName, TQString UTCDateTime)</function> : 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).</para></listitem>
</itemizedlist>
</listitem>
<listitem><para>Camera/CCD Functions: Functions to control the camera/CCD properties and status.</para>
<itemizedlist>
<listitem><para><function>setINDICCDTemp(QString deviceName, int temp)</function> : Set the CCD chip target temperature in degrees celsius.</para></listitem>
<listitem><para><function>setINDIFrameType(QString deviceName, QString type)</function> : Set the CCD frame type. Available options are FRAME_LIGHT, FRAME_BIAS, FRAME_DARK, and FRAME_FLAT.</para></listitem>
<listitem><para><function>startINDIExposure(QString deviceName, int timeout)</function> : Start the CCD/Camera exposure for the duration specified by <emphasis>timeout</emphasis> in seconds.</para></listitem>
<listitem><para><function>setINDICCDTemp(TQString deviceName, int temp)</function> : Set the CCD chip target temperature in degrees celsius.</para></listitem>
<listitem><para><function>setINDIFrameType(TQString deviceName, TQString type)</function> : Set the CCD frame type. Available options are FRAME_LIGHT, FRAME_BIAS, FRAME_DARK, and FRAME_FLAT.</para></listitem>
<listitem><para><function>startINDIExposure(TQString deviceName, int timeout)</function> : Start the CCD/Camera exposure for the duration specified by <emphasis>timeout</emphasis> in seconds.</para></listitem>
</itemizedlist>
</listitem>
<listitem><para>Focuser Functions: Functions to control the focuser motion and status.</para>
<itemizedlist>
<listitem><para><function>setINDIFocusSpeed(QString deviceName, QString action)</function> : Set the focuser speed. Available options are FOCUS_HALT, FOCUS_SLOW, FOCUS_MEDIUM, and FOCUS_FAST.</para></listitem>
<listitem><para><function>setINDIFocusTimeout(QString deviceName, int timeout)</function> : Set the duration in seconds for any subsequent startINDIFocus operations.</para></listitem>
<listitem><para><function>startINDIFocus(QString deviceName, int focusDir)</function> : Move the focuser either inward (focusDir = 0) or outward (focusDir = 1). The speed and duration of this operation is set by the <function>setINDIFocusSpeed()</function> and <function>setINDIFocusTimeout()</function> functions.</para></listitem>
<listitem><para><function>setINDIFocusSpeed(TQString deviceName, TQString action)</function> : Set the focuser speed. Available options are FOCUS_HALT, FOCUS_SLOW, FOCUS_MEDIUM, and FOCUS_FAST.</para></listitem>
<listitem><para><function>setINDIFocusTimeout(TQString deviceName, int timeout)</function> : Set the duration in seconds for any subsequent startINDIFocus operations.</para></listitem>
<listitem><para><function>startINDIFocus(TQString deviceName, int focusDir)</function> : Move the focuser either inward (focusDir = 0) or outward (focusDir = 1). The speed and duration of this operation is set by the <function>setINDIFocusSpeed()</function> and <function>setINDIFocusTimeout()</function> functions.</para></listitem>
</itemizedlist>
</listitem>
<listitem><para>Filter Functions: Functions to control the filter position.</para>
<itemizedlist>
<listitem><para><function>setINDIFilterNum(QString deviceName, int filter_num)</function> : Change the filter position to <varname>filter_num</varname>. The user can assign aliases to filter numbers in the <guimenuitem>Configure INDI</guimenuitem> dialog box under the <guimenu>Devices</guimenu> menu (e.g. Filter 1 = Red, Filter 2 = Green..etc).</para></listitem>
<listitem><para><function>setINDIFilterNum(TQString deviceName, int filter_num)</function> : Change the filter position to <varname>filter_num</varname>. The user can assign aliases to filter numbers in the <guimenuitem>Configure INDI</guimenuitem> dialog box under the <guimenu>Devices</guimenu> menu (e.g. Filter 1 = Red, Filter 2 = Green..etc).</para></listitem>
</itemizedlist>
</listitem>

@ -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.

@ -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

@ -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 );

@ -27,7 +27,7 @@
</entry>
<entry name="Separator" type="String">
<label>This sets the separator used when copying/pasting text, default is Tab</label>
<default code="true">QChar('\t')</default>
<default code="true">TQChar('\t')</default>
</entry>
<entry name="PasteOrder" type="StringList">
<label>The order in which languages get pasted</label>

@ -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

Loading…
Cancel
Save