[Thplot-cvs] CVS: thplot/src/Gui MainWindow.cpp,1.1.1.1,1.2
Status: Pre-Alpha
Brought to you by:
apeden
From: Tony P. <ap...@us...> - 2002-07-02 17:20:46
|
Update of /cvsroot/thplot/thplot/src/Gui In directory usw-pr-cvs1:/tmp/cvs-serv11105/src/Gui Modified Files: MainWindow.cpp Log Message: Changes to support plotting multiple curves. Index: MainWindow.cpp =================================================================== RCS file: /cvsroot/thplot/thplot/src/Gui/MainWindow.cpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** MainWindow.cpp 22 Jun 2002 11:57:08 -0000 1.1.1.1 --- MainWindow.cpp 2 Jul 2002 17:20:42 -0000 1.2 *************** *** 79,85 **** ps = new ParameterSelect(global); ps->showDialog(csvdata); ! if(ps->getNSelected() > 1) { glw->getPlot()->getGrid(0)->setData(csvdata, ! ps->getSelected(0),ps->getSelected(1)); Fl::redraw(); } --- 79,87 ---- ps = new ParameterSelect(global); ps->showDialog(csvdata); ! if( ps->selectionAvailable() ) { ! cout << "Calling setData()" << endl; glw->getPlot()->getGrid(0)->setData(csvdata, ! ps->getSelectedIndependent(), ! ps->getSelectedDependents() ); Fl::redraw(); } |