|
From: <dhu...@us...> - 2007-01-17 15:43:33
|
Revision: 182
http://svn.sourceforge.net/qcell/?rev=182&view=rev
Author: dhubleizh
Date: 2007-01-17 07:43:02 -0800 (Wed, 17 Jan 2007)
Log Message:
-----------
- proper forward and bacword stepping
- dynamic KI loading tested
Modified Paths:
--------------
trunk/qcell/visgui/MainWindow.cpp
Modified: trunk/qcell/visgui/MainWindow.cpp
===================================================================
--- trunk/qcell/visgui/MainWindow.cpp 2007-01-17 12:14:39 UTC (rev 181)
+++ trunk/qcell/visgui/MainWindow.cpp 2007-01-17 15:43:02 UTC (rev 182)
@@ -350,12 +350,14 @@
return;
}
+ // Internal data settings
data.append((CalculationData*)world_parsers[subtype]->parse(file_content, type, subtype).toInt());
- //*sw->getStorage() = *data.last();
-
*(CalculationData*)&calc = *data.last();
- sw->getStorage()->resizeData(calc.getSize(), calc.getDataPointer(), 1);
+ iteration=0;
+ // visualization update
+ update();
+
// Enable saving menu for World
menu_Save->setEnabled(true);
action_World_save->setEnabled(true);
@@ -509,6 +511,7 @@
}
iteration--;
+ calc = *data[iteration];
}
}
@@ -530,10 +533,9 @@
void MainWindow::update()
{
- calc.getSize();
- //*sw->getStorage() = *data[iteration];
- //sw->getStorage()->resizeData(data[iteration-1]->getSize(), data[iteration-1]->getDataPointer(), 1);
- sw->getStorage()->resizeData(calc.getSize(), calc.getDataPointer(), 1);
+// *sw->getStorage() = *data[iteration];
+sw->getStorage()->resizeData(data[iteration]->getSize(), data[iteration]->getDataPointer(), 1);
+// sw->getStorage()->resizeData(calc.getSize(), calc.getDataPointer(), 1);
iterationLCD->display(iteration);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|