summaryrefslogtreecommitdiffstats
path: root/kturtle/src/executer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kturtle/src/executer.cpp')
-rw-r--r--kturtle/src/executer.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kturtle/src/executer.cpp b/kturtle/src/executer.cpp
index 9268eab1..d98f5df8 100644
--- a/kturtle/src/executer.cpp
+++ b/kturtle/src/executer.cpp
@@ -61,7 +61,7 @@ bool Executer::run()
for (i = tree->begin(); i != tree->end(); ++i)
{
if (bAbort) return false;
- kapp->processEvents();
+ tdeApp->processEvents();
execute(*i);
symbolTables.pop(); //free up stack
@@ -103,7 +103,7 @@ void Executer::pause()
// The next line is within all loops of the Executer
// if (bAbort) return;
// mostly before
- // kapp->processEvents();
+ // tdeApp->processEvents();
// this to keep the GUI of KTurtle accessible while executing the logo code
// so the Abort button can be clicked, and will function
bPause = true;
@@ -114,7 +114,7 @@ void Executer::abort()
// The next line is within all loops of the Executer
// if(bAbort) return;
// mostly before
- // kapp->processEvents();
+ // tdeApp->processEvents();
// this to keep the GUI of KTurtle accessible while executing the logo code
// so the Abort button can be clicked, and will function
bAbort = true;
@@ -244,7 +244,7 @@ void Executer::execFunction(TreeNode* node)
{
if (bAbort) return;
if (bPause) startPausing();
- kapp->processEvents();
+ tdeApp->processEvents();
// execute the parameters which can be expressions
execute(*pfrom);
@@ -305,7 +305,7 @@ void Executer::execBlock(TreeNode* node)
if (runSpeed != 0) slowDown(*i);
if (bAbort) return;
if (bPause) startPausing();
- kapp->processEvents();
+ tdeApp->processEvents();
execute(*i);
@@ -334,7 +334,7 @@ void Executer::execForEach(TreeNode* node)
{
if (bAbort) return;
if (bPause) startPausing();
- kapp->processEvents();
+ tdeApp->processEvents();
execute(statements);
if (bBreak || bReturn) break; //jump out loop
@@ -369,7 +369,7 @@ void Executer::execFor(TreeNode* node)
{
if (bAbort) return;
if (bPause) startPausing();
- kapp->processEvents();
+ tdeApp->processEvents();
( symbolTables.top() )[name] = d;
execute( statements );
if (bBreak || bReturn) break; //jump out loop
@@ -390,7 +390,7 @@ void Executer::execFor(TreeNode* node)
{
if (bAbort) return;
if (bPause) startPausing();
- kapp->processEvents();
+ tdeApp->processEvents();
(symbolTables.top() )[name] = d;
execute( statements );
@@ -403,7 +403,7 @@ void Executer::execFor(TreeNode* node)
{
if (bAbort) return;
if (bPause) startPausing();
- kapp->processEvents();
+ tdeApp->processEvents();
( symbolTables.top() )[name] = d;
execute(statements);
@@ -427,7 +427,7 @@ void Executer::execRepeat(TreeNode* node)
{
if (bAbort) return;
if (bPause) startPausing();
- kapp->processEvents();
+ tdeApp->processEvents();
execute(statements);
if (bBreak || bReturn) break; //jump out loop
@@ -447,7 +447,7 @@ void Executer::execWhile(TreeNode* node)
{
if (bAbort) return;
if (bPause) startPausing();
- kapp->processEvents();
+ tdeApp->processEvents();
execute(statements);
if (bBreak || bReturn) break; //jump out loop
@@ -647,7 +647,7 @@ TQString Executer::runCommand(const TQString& command)
while( fgets(buf, sizeof(buf), pstream) !=NULL) {
if (bAbort) return ("");
- kapp->processEvents();
+ tdeApp->processEvents();
Line += buf;
}
@@ -1015,12 +1015,12 @@ void Executer::startWaiting(int msec)
{
bStopWaiting = false;
// call a timer that sets stopWaiting to true when it runs
- TQTimer::singleShot( msec, this, TQT_SLOT( slotStopWaiting() ) );
+ TQTimer::singleShot( msec, this, TQ_SLOT( slotStopWaiting() ) );
while (bStopWaiting == false)
{
if (bAbort) return; // waits need to be interrupted by the stop action
if (bPause) startPausing();
- kapp->processEvents();
+ tdeApp->processEvents();
// only 10 times per second is enough... else the CPU gets 100% loaded ( not nice :)
usleep(100000);
@@ -1037,7 +1037,7 @@ void Executer::startPausing()
while (bPause == true)
{
if (bAbort) return; // waits need to be interrupted by the stop action
- kapp->processEvents();
+ tdeApp->processEvents();
// only 10 times per second is enough... else the CPU gets 100% loaded ( not nice :)
usleep(100000);
}