summaryrefslogtreecommitdiffstats
path: root/src/languages/flowcode.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/languages/flowcode.h
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz
ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip
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
Diffstat (limited to 'src/languages/flowcode.h')
-rw-r--r--src/languages/flowcode.h28
1 files changed, 14 insertions, 14 deletions
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 <qguardedptr.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qvaluelist.h>
+#include <tqguardedptr.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqvaluelist.h>
class CNItem;
class FlowPart;
class Item;
class MicroSettings;
-typedef QValueList<FlowPart*> FlowPartList;
-typedef QValueList<QGuardedPtr<Item> > ItemList;
+typedef TQValueList<FlowPart*> FlowPartList;
+typedef TQValueList<TQGuardedPtr<Item> > 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;
};