From 87a016680e3677da3993f333561e79eb0cead7d5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 29 Jun 2011 16:05:55 +0000 Subject: TQt4 port ktechlab This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/languages/flowcode.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/languages/flowcode.h') diff --git a/src/languages/flowcode.h b/src/languages/flowcode.h index afa17db..77fa5c1 100644 --- a/src/languages/flowcode.h +++ b/src/languages/flowcode.h @@ -13,19 +13,19 @@ #include "language.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include class CNItem; class FlowPart; class Item; class MicroSettings; -typedef QValueList FlowPartList; -typedef QValueList > ItemList; +typedef TQValueList FlowPartList; +typedef TQValueList > ItemList; /** "FlowCode" can possibly be considered a misnomer, as the output is actually Microbe. @@ -39,7 +39,7 @@ basic from the code that they create. The 3 simple steps for usage of this funct class FlowCode : public Language { public: - FlowCode( ProcessChain *processChain, KTechlab *parent ); + FlowCode( ProcessChain *processChain, KTechlab *tqparent ); virtual void processInput( ProcessOptions options ); virtual ProcessOptions::ProcessPath::Path outputPath( ProcessOptions::ProcessPath::Path inputPath ) const; @@ -56,7 +56,7 @@ public: /** * Adds code at the current insertion point */ - void addCode( const QString& code ); + void addCode( const TQString& code ); /** * Adds a code branch to the current insertion point. This will stop when the level gets * below the original starting level (so for insertion of the contents of a for loop, @@ -77,7 +77,7 @@ public: * Generates and returns the microbe code * @param nonVerbal if true then will not inform the user when something goes wrong */ - QString generateMicrobe( const ItemList &itemList, MicroSettings *settings ); + TQString generateMicrobe( const ItemList &itemList, MicroSettings *settings ); /** * Returns true if the FlowPart is a valid one for adding a branch */ @@ -86,7 +86,7 @@ public: * Generates a nice label name from the string, e.g. genLabel("callsub") * returns "__label_callsub". */ - static QString genLabel( const QString &id ); + static TQString genLabel( const TQString &id ); protected: /** @@ -94,13 +94,13 @@ protected: */ void tidyCode(); - QStringList m_gotos; // Gotos used - QStringList m_labels; // Labels used + TQStringList m_gotos; // Gotos used + TQStringList m_labels; // Labels used FlowPartList m_subroutines; FlowPartList m_addedParts; FlowPartList m_stopParts; FlowPart *p_startPart; - QString m_code; + TQString m_code; int m_curLevel; }; -- cgit v1.2.3