/home/enzo/treballs/fib/pfc/nanocomp/src/resultsView.hpp

Go to the documentation of this file.
00001 /*
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   This program is distributed in the hope that it will be useful,       *
00009  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00010  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00011  *   GNU General Public License for more details.                          *
00012  *                                                                         *
00013  *   You should have received a copy of the GNU General Public License     *
00014  *   along with this program; if not, write to the                         *
00015  *   Free Software Foundation, Inc.,                                       *
00016  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00017                                                                           */
00018 
00030 #ifndef RESULTSVIEW_HPP_
00031 #define RESULTSVIEW_HPP_
00032 
00033 #include <wx/wx.h>
00034 #include "layoutCanvas.hpp"
00035 #include "simulationManager.hpp"
00036 
00037 class SimulationManager;
00038 
00039 class ResultsView : public wxFrame
00040 {
00041 public:
00042         ResultsView(wxWindow* parent, wxWindowID id, SimulationManager * controller);
00043         virtual ~ResultsView();
00044     void updateGrid(Grid grid, bool changed);
00045     void updateInitialGrid(Grid grid, bool changed);
00046     void updateRowList(wxArrayString strings);
00047     void selectRow(unsigned int row);
00048     void updateInformationList(wxArrayString strings);
00049     void selectInformation(unsigned int information);
00050     void updatePathList(wxArrayString strings);
00051     void selectPath(unsigned int path);
00052     void errorMsg(wxString message);
00053     void setTable(TruthTable table);
00054     void setResult(bool success);
00055     void setInputs(vector <coordinate> inputs);
00056     void setOutputs(vector <coordinate> outputs);
00057 
00058 private:
00059     DECLARE_EVENT_TABLE()
00060     void initControls();
00061     void initSizers();
00062     void OnRowsSelected(wxCommandEvent &event);
00063     void OnInformationSelected(wxCommandEvent &event);
00064     void OnPathSelected(wxCommandEvent &event);
00066     SimulationManager *controller;
00067     wxListBox *listRows;
00068     wxListBox *listInformation;
00069     wxListBox *listPath;
00070     wxStaticText *labelResult;
00071     wxStaticText *labelRows;
00072     wxStaticText *labelInformation;
00073     wxStaticText *labelPath;
00074     LayoutCanvas *canvasResult;
00075     LayoutCanvas *canvasInitial;
00076     TruthTableCanvas *tCanvas;
00077 };
00078 
00079 #endif /*RESULTSVIEW_HPP_*/

Generated on Fri Sep 1 23:55:14 2006 for NanoComp by  doxygen 1.4.6