#include <resultsView.hpp>
Collaboration diagram for ResultsView:
Public Member Functions | |
ResultsView (wxWindow *parent, wxWindowID id, SimulationManager *controller) | |
Constructor. | |
virtual | ~ResultsView () |
Destructor. | |
void | updateGrid (Grid grid, bool changed) |
Sets the result view grid. | |
void | updateInitialGrid (Grid grid, bool changed) |
Sets the initial grid. | |
void | updateRowList (wxArrayString strings) |
Updates the row listbox. | |
void | selectRow (unsigned int row) |
Selects a simulation row. | |
void | updateInformationList (wxArrayString strings) |
Updates the event listbox. | |
void | selectInformation (unsigned int information) |
Selects an event. | |
void | updatePathList (wxArrayString strings) |
Updates the simulation path listbox. | |
void | selectPath (unsigned int path) |
Selects a simulation step. | |
void | errorMsg (wxString message) |
Shows an error message. | |
void | setTable (TruthTable table) |
Sets the truth table to be shown. | |
void | setResult (bool success) |
Sets the simulation result. | |
void | setInputs (vector< coordinate > inputs) |
Sets the initial layout input coordinates. | |
void | setOutputs (vector< coordinate > outputs) |
Sets the initial layout output coordinates. | |
Private Member Functions | |
void | initControls () |
Window controls initialization. | |
void | initSizers () |
Window sizers (layout) initialization. | |
void | OnRowsSelected (wxCommandEvent &event) |
Row selection event method. | |
void | OnInformationSelected (wxCommandEvent &event) |
Event selection event method. | |
void | OnPathSelected (wxCommandEvent &event) |
Simulation step selection event method. | |
Private Attributes | |
SimulationManager * | controller |
Simulation manager. | |
wxListBox * | listRows |
wxListBox * | listInformation |
wxListBox * | listPath |
wxStaticText * | labelResult |
wxStaticText * | labelRows |
wxStaticText * | labelInformation |
wxStaticText * | labelPath |
LayoutCanvas * | canvasResult |
LayoutCanvas * | canvasInitial |
TruthTableCanvas * | tCanvas |
This view gives information of the simulation results. It also allows the user to select different rows, events and simulation steps to be shown.
Definition at line 39 of file resultsView.hpp.
|
Constructor.
Definition at line 47 of file resultsView.cpp. |
|
Destructor.
Definition at line 63 of file resultsView.cpp. |
|
Shows an error message.
Definition at line 224 of file resultsView.cpp. |
|
Window controls initialization.
Definition at line 69 of file resultsView.cpp. References canvasInitial, canvasResult, ID_CANVAS, ID_CANVASINITIAL, ID_LISTINFORMATION, ID_LISTPATH, ID_LISTROWS, ID_TABLE, labelInformation, labelPath, labelResult, labelRows, listInformation, listPath, listRows, TruthTableCanvas::setEditable(), and tCanvas. Here is the call graph for this function: ![]() |
|
Window sizers (layout) initialization.
Definition at line 86 of file resultsView.cpp. References canvasInitial, canvasResult, labelInformation, labelPath, labelResult, labelRows, listInformation, listPath, listRows, and tCanvas. |
|
Event selection event method.
Definition at line 244 of file resultsView.cpp. References controller, and SimulationManager::informationSelected(). Here is the call graph for this function: ![]() |
|
Simulation step selection event method.
Definition at line 254 of file resultsView.cpp. References controller, and SimulationManager::pathSelected(). Here is the call graph for this function: ![]() |
|
Row selection event method.
Definition at line 234 of file resultsView.cpp. References controller, and SimulationManager::rowSelected(). Here is the call graph for this function: ![]() |
|
Selects an event.
Definition at line 194 of file resultsView.cpp. References listInformation. |
|
Selects a simulation step.
Definition at line 214 of file resultsView.cpp. References listPath. |
|
Selects a simulation row.
Definition at line 174 of file resultsView.cpp. References listRows. |
|
Sets the initial layout input coordinates.
Definition at line 295 of file resultsView.cpp. References canvasInitial, and LayoutCanvas::setAssignedInputs(). Referenced by SimulationManager::results(). Here is the call graph for this function: ![]() |
|
Sets the initial layout output coordinates.
Definition at line 305 of file resultsView.cpp. References canvasInitial, and LayoutCanvas::setAssignedOutputs(). Referenced by SimulationManager::results(). Here is the call graph for this function: ![]() |
|
Sets the simulation result.
Definition at line 275 of file resultsView.cpp. References labelResult. |
|
Sets the truth table to be shown.
Definition at line 264 of file resultsView.cpp. References TruthTableCanvas::setNewTable(), and tCanvas. Referenced by SimulationManager::results(). Here is the call graph for this function: ![]() |
|
Sets the result view grid.
Definition at line 142 of file resultsView.cpp. References canvasResult, and LayoutCanvas::setGrid(). Here is the call graph for this function: ![]() |
|
Updates the event listbox.
Definition at line 184 of file resultsView.cpp. References listInformation. |
|
Sets the initial grid.
Definition at line 154 of file resultsView.cpp. References canvasInitial, and LayoutCanvas::setGrid(). Referenced by SimulationManager::results(). Here is the call graph for this function: ![]() |
|
Updates the simulation path listbox.
Definition at line 204 of file resultsView.cpp. References listPath. |
|
Updates the row listbox.
Definition at line 164 of file resultsView.cpp. References listRows. |
|
Definition at line 75 of file resultsView.hpp. Referenced by initControls(), initSizers(), setInputs(), setOutputs(), and updateInitialGrid(). |
|
Definition at line 74 of file resultsView.hpp. Referenced by initControls(), initSizers(), and updateGrid(). |
|
Simulation manager.
Definition at line 66 of file resultsView.hpp. Referenced by OnInformationSelected(), OnPathSelected(), and OnRowsSelected(). |
|
Definition at line 72 of file resultsView.hpp. Referenced by initControls(), and initSizers(). |
|
Definition at line 73 of file resultsView.hpp. Referenced by initControls(), and initSizers(). |
|
Definition at line 70 of file resultsView.hpp. Referenced by initControls(), initSizers(), and setResult(). |
|
Definition at line 71 of file resultsView.hpp. Referenced by initControls(), and initSizers(). |
|
Definition at line 68 of file resultsView.hpp. Referenced by initControls(), initSizers(), selectInformation(), and updateInformationList(). |
|
Definition at line 69 of file resultsView.hpp. Referenced by initControls(), initSizers(), selectPath(), and updatePathList(). |
|
Definition at line 67 of file resultsView.hpp. Referenced by initControls(), initSizers(), selectRow(), and updateRowList(). |
|
Definition at line 76 of file resultsView.hpp. Referenced by initControls(), initSizers(), and setTable(). |