|
From: <dhu...@us...> - 2007-02-14 18:41:49
|
Revision: 323
http://svn.sourceforge.net/qcell/?rev=323&view=rev
Author: dhubleizh
Date: 2007-02-14 10:41:39 -0800 (Wed, 14 Feb 2007)
Log Message:
-----------
- 1D Table clearing on new KI load
Modified Paths:
--------------
trunk/qcell/baseheaders/simulationwindow.h
trunk/qcell/basesources/simulationwindow.cpp
trunk/qcell/visgui/MainWindow.cpp
Modified: trunk/qcell/baseheaders/simulationwindow.h
===================================================================
--- trunk/qcell/baseheaders/simulationwindow.h 2007-02-14 17:43:57 UTC (rev 322)
+++ trunk/qcell/baseheaders/simulationwindow.h 2007-02-14 18:41:39 UTC (rev 323)
@@ -168,6 +168,7 @@
void setSelectedCell(QVector<int> coord);
void setSelectedFunctionRule(int index);
+ void clearView();
public slots:
void NViewModeChange(int mode);
Modified: trunk/qcell/basesources/simulationwindow.cpp
===================================================================
--- trunk/qcell/basesources/simulationwindow.cpp 2007-02-14 17:43:57 UTC (rev 322)
+++ trunk/qcell/basesources/simulationwindow.cpp 2007-02-14 18:41:39 UTC (rev 323)
@@ -1644,3 +1644,18 @@
nRrenderer->maskSet(maskx, masky, maskz);
nRrenderer->repaint();
}
+
+void simulationWindow::clearView()
+{
+ int i, row_count;
+ row_count = table1DMem->rowCount();
+ for (i = 0; i < row_count; i++)
+ {
+ table1DMem->removeRow(0);
+ }
+// for (i = 0; i < row_count; i++)
+// {
+// table2D->removeRow(0);
+// }
+}
+
Modified: trunk/qcell/visgui/MainWindow.cpp
===================================================================
--- trunk/qcell/visgui/MainWindow.cpp 2007-02-14 17:43:57 UTC (rev 322)
+++ trunk/qcell/visgui/MainWindow.cpp 2007-02-14 18:41:39 UTC (rev 323)
@@ -948,6 +948,7 @@
data.clear();
data.append(backup);
+ sw->clearView();
// Pass data to Calculator
*(CalculationData*)&calc = *data.last();
@@ -1568,6 +1569,7 @@
void MainWindow::setupWorld()
{
// Pass data to Calculator
+ sw->clearView();
*(CalculationData*)&calc = *data.last();
// Creating elemental rules according to DATA_TYPE
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|