[Pikloops-svn] SF.net SVN: pikloops: [168] prog/trunk/src/mainwidgetpl.cpp
Brought to you by:
dionysos-sf
|
From: <dio...@us...> - 2007-10-17 11:36:38
|
Revision: 168
http://pikloops.svn.sourceforge.net/pikloops/?rev=168&view=rev
Author: dionysos-sf
Date: 2007-10-17 04:36:43 -0700 (Wed, 17 Oct 2007)
Log Message:
-----------
Indentation
Modified Paths:
--------------
prog/trunk/src/mainwidgetpl.cpp
Modified: prog/trunk/src/mainwidgetpl.cpp
===================================================================
--- prog/trunk/src/mainwidgetpl.cpp 2007-10-17 11:34:51 UTC (rev 167)
+++ prog/trunk/src/mainwidgetpl.cpp 2007-10-17 11:36:43 UTC (rev 168)
@@ -137,73 +137,73 @@
}
}
else {
- if ( loopValues->getCounterC() != -1 ) {
- tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterC(),0,10);
- tmpCode += QString("\tmovwf\t");
- tmpCode += QString(i18n("CounterC"));
- tmpCode += "\n";
- tmpCode += loopName ;
- tmpCode += "\n" ;
- tmpCode += QString("\tcall\t");
- tmpCode += subRoutineName ;
- tmpCode += "\n" ;
- tmpCode += QString("\tdecfsz\t");
- tmpCode += QString(i18n("CounterC"));
- tmpCode += QString(",1\n\tgoto\t%1\n").arg(loopName);
- tmpCode += QString("\treturn\n");
- tmpCode += "\n" ;
- tmpCode += subRoutineName ;
- tmpCode += "\n" ;
- tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterB(),0,10);
- tmpCode += QString("\tmovwf\t");
- tmpCode += QString(i18n("CounterB"));
- tmpCode += "\n";
- tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterA(),0,10);
- tmpCode += QString("\tmovwf\t");
- tmpCode += QString(i18n("CounterA"));
- tmpCode += "\n";
- tmpCode += loopSubRoutineName ;
- tmpCode += "\n" ;
- tmpCode += QString("\tdecfsz\t");
- tmpCode += QString(i18n("CounterA"));
- tmpCode += QString(",1\n\tgoto\t%1\n").arg(loopSubRoutineName);
- tmpCode += QString("\tdecfsz\t");
- tmpCode += QString(i18n("CounterB"));
- tmpCode += QString(",1\n\tgoto\t%1\n").arg(loopSubRoutineName);
- tmpCode += QString("\treturn\n");
+ if ( loopValues->getCounterC() != -1 ) {
+ tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterC(),0,10);
+ tmpCode += QString("\tmovwf\t");
+ tmpCode += QString(i18n("CounterC"));
+ tmpCode += "\n";
+ tmpCode += loopName ;
+ tmpCode += "\n" ;
+ tmpCode += QString("\tcall\t");
+ tmpCode += subRoutineName ;
+ tmpCode += "\n" ;
+ tmpCode += QString("\tdecfsz\t");
+ tmpCode += QString(i18n("CounterC"));
+ tmpCode += QString(",1\n\tgoto\t%1\n").arg(loopName);
+ tmpCode += QString("\treturn\n");
+ tmpCode += "\n" ;
+ tmpCode += subRoutineName ;
+ tmpCode += "\n" ;
+ tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterB(),0,10);
+ tmpCode += QString("\tmovwf\t");
+ tmpCode += QString(i18n("CounterB"));
+ tmpCode += "\n";
+ tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterA(),0,10);
+ tmpCode += QString("\tmovwf\t");
+ tmpCode += QString(i18n("CounterA"));
+ tmpCode += "\n";
+ tmpCode += loopSubRoutineName ;
+ tmpCode += "\n" ;
+ tmpCode += QString("\tdecfsz\t");
+ tmpCode += QString(i18n("CounterA"));
+ tmpCode += QString(",1\n\tgoto\t%1\n").arg(loopSubRoutineName);
+ tmpCode += QString("\tdecfsz\t");
+ tmpCode += QString(i18n("CounterB"));
+ tmpCode += QString(",1\n\tgoto\t%1\n").arg(loopSubRoutineName);
+ tmpCode += QString("\treturn\n");
+ }
+ else if ( loopValues->getCounterB() !=-1 ) {
+ tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterB(),0,10);
+ tmpCode += QString("\tmovwf\t");
+ tmpCode += QString(i18n("CounterB"));
+ tmpCode += "\n";
+ tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterA(),0,10);
+ tmpCode += QString("\tmovwf\t");
+ tmpCode += QString(i18n("CounterA"));
+ tmpCode += "\n";
+ tmpCode += loopName ;
+ tmpCode += "\n" ;
+ tmpCode += QString("\tdecfsz\t");
+ tmpCode += QString(i18n("CounterA"));
+ tmpCode += QString(",1\n\tgoto\t%1\n").arg(loopName);
+ tmpCode += QString("\tdecfsz\t");
+ tmpCode += QString(i18n("CounterB"));
+ tmpCode += QString(",1\n\tgoto\t%1\n").arg(loopName);
+ tmpCode += QString("\treturn\n");
+ }
+ else if ( loopValues->getCounterA() !=-1 ) {
+ tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterA(),0,10);
+ tmpCode += QString("\tmovwf\t");
+ tmpCode += QString(i18n("CounterA"));
+ tmpCode += "\n";
+ tmpCode += loopName ;
+ tmpCode += "\n" ;
+ tmpCode += QString("\tdecfsz\t");
+ tmpCode += QString(i18n("CounterA"));
+ tmpCode += QString(",1\n\tgoto\t%1\n").arg(loopName);
+ tmpCode += QString("\treturn\n");
+ }
}
- else if ( loopValues->getCounterB() !=-1 ) {
- tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterB(),0,10);
- tmpCode += QString("\tmovwf\t");
- tmpCode += QString(i18n("CounterB"));
- tmpCode += "\n";
- tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterA(),0,10);
- tmpCode += QString("\tmovwf\t");
- tmpCode += QString(i18n("CounterA"));
- tmpCode += "\n";
- tmpCode += loopName ;
- tmpCode += "\n" ;
- tmpCode += QString("\tdecfsz\t");
- tmpCode += QString(i18n("CounterA"));
- tmpCode += QString(",1\n\tgoto\t%1\n").arg(loopName);
- tmpCode += QString("\tdecfsz\t");
- tmpCode += QString(i18n("CounterB"));
- tmpCode += QString(",1\n\tgoto\t%1\n").arg(loopName);
- tmpCode += QString("\treturn\n");
- }
- else if ( loopValues->getCounterA() !=-1 ) {
- tmpCode += QString("\tmovlw\tD'%1'\n").arg(loopValues->getCounterA(),0,10);
- tmpCode += QString("\tmovwf\t");
- tmpCode += QString(i18n("CounterA"));
- tmpCode += "\n";
- tmpCode += loopName ;
- tmpCode += "\n" ;
- tmpCode += QString("\tdecfsz\t");
- tmpCode += QString(i18n("CounterA"));
- tmpCode += QString(",1\n\tgoto\t%1\n").arg(loopName);
- tmpCode += QString("\treturn\n");
- }
- }
// update status line
cycles->setText(statusMessage.arg(loopValues->getTimeDelay(),0,'f',8)
.arg((loopValues->getMachineCycles()),0,'f',0) ) ;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|