#include <truthTableView.hpp>
Collaboration diagram for TruthTableView:

Public Member Functions | |
| TruthTableView (wxWindow *parent, wxWindowID id, TruthTableManager *controller) | |
| Constructor. | |
| virtual | ~TruthTableView () |
| Destructor. | |
| void | updateTable (TruthTable table) |
| Updates the table canvas. | |
| void | OnClick (TruthTableCanvasEvent &event) |
| TruthTableCanvas click event method. | |
| void | OnNew (wxCommandEvent &event) |
| New table button click event method. | |
| void | OnSelection (wxCommandEvent &event) |
| Listbox selection event method. | |
| void | OnRemove (wxCommandEvent &event) |
| Remove button click event method. | |
| void | updateList (wxArrayString strings) |
| Updates the items of the table listbox. | |
| void | selectTable (wxString table) |
| Selects a table on the listbox. | |
| void | errorMsg (wxString message) |
| Shows an error message. | |
| void | OnSave (wxCommandEvent &event) |
| Save button click event method. | |
| void | OnSaveAs (wxCommandEvent &event) |
| Save As click event method. | |
| void | OnOpen (wxCommandEvent &event) |
| Open button click event method. | |
| bool | msgYesNo (wxString message) |
| Shows a yes/no selection dialog. | |
Private Member Functions | |
| void | initControls () |
| Control initialization. | |
| void | initSizers () |
| Sizer (layout) initialization. | |
Private Attributes | |
| wxStaticText * | labelTitle |
| wxStaticText * | labelTable |
| wxStaticText * | labelInfo |
| wxBitmapButton * | buttonNew |
| wxBitmapButton * | buttonOpen |
| wxBitmapButton * | buttonSave |
| wxBitmapButton * | buttonSaveAs |
| wxBitmapButton * | buttonRemove |
| wxListBox * | listTables |
| TruthTableCanvas * | canvas |
| TruthTableManager * | controller |
This is the presentation layer class for the truth table collection.
Definition at line 36 of file truthTableView.hpp.
|
||||||||||||||||
|
Constructor.
Definition at line 61 of file truthTableView.cpp. |
|
|
Destructor.
Definition at line 74 of file truthTableView.cpp. |
|
|
Shows an error message.
Definition at line 308 of file truthTableView.cpp. Referenced by TruthTableManager::newTable(). |
|
|
Control initialization.
Definition at line 80 of file truthTableView.cpp. References buttonNew, buttonOpen, buttonRemove, buttonSave, buttonSaveAs, canvas, ID_BUTTON_NEW, ID_BUTTON_OPEN, ID_BUTTON_REMOVE, ID_BUTTON_SAVE, ID_BUTTON_SAVEAS, ID_CANVAS, ID_LIST_TABLES, labelInfo, and listTables. |
|
|
Sizer (layout) initialization.
Definition at line 112 of file truthTableView.cpp. References buttonNew, buttonOpen, buttonRemove, buttonSave, buttonSaveAs, canvas, labelInfo, and listTables. |
|
|
Shows a yes/no selection dialog.
Definition at line 353 of file truthTableView.cpp. Referenced by TruthTableManager::openFile(). |
|
|
TruthTableCanvas click event method.
Definition at line 163 of file truthTableView.cpp. References controller, TruthTableCanvasEvent::getInput(), TruthTableCanvasEvent::getOutput(), and TruthTableManager::tableChanged(). Here is the call graph for this function: ![]() |
|
|
New table button click event method.
Definition at line 173 of file truthTableView.cpp. |
|
|
Open button click event method.
Definition at line 342 of file truthTableView.cpp. References controller, and TruthTableManager::openFile(). Here is the call graph for this function: ![]() |
|
|
Remove button click event method.
Definition at line 255 of file truthTableView.cpp. References controller, and TruthTableManager::removeTable(). Here is the call graph for this function: ![]() |
|
|
Save button click event method.
Definition at line 322 of file truthTableView.cpp. References controller, and TruthTableManager::saveFile(). Here is the call graph for this function: ![]() |
|
|
Save As click event method.
Definition at line 332 of file truthTableView.cpp. References controller, and TruthTableManager::saveFileAs(). Here is the call graph for this function: ![]() |
|
|
Listbox selection event method.
Definition at line 236 of file truthTableView.cpp. References buttonRemove, buttonSave, buttonSaveAs, controller, and TruthTableManager::tableSelected(). Here is the call graph for this function: ![]() |
|
|
Selects a table on the listbox.
Definition at line 290 of file truthTableView.cpp. References buttonRemove, buttonSave, buttonSaveAs, labelInfo, and listTables. Referenced by TruthTableManager::appendTables(), TruthTableManager::clean(), and TruthTableManager::openPFile(). |
|
|
Updates the items of the table listbox.
Definition at line 276 of file truthTableView.cpp. References buttonRemove, buttonSave, buttonSaveAs, labelInfo, and listTables. |
|
|
Updates the table canvas.
Definition at line 265 of file truthTableView.cpp. References canvas, and TruthTableCanvas::setNewTable(). Referenced by TruthTableManager::updateTable(). Here is the call graph for this function: ![]() |
|
|
Definition at line 65 of file truthTableView.hpp. Referenced by initControls(), and initSizers(). |
|
|
Definition at line 66 of file truthTableView.hpp. Referenced by initControls(), and initSizers(). |
|
|
Definition at line 69 of file truthTableView.hpp. Referenced by initControls(), initSizers(), OnSelection(), selectTable(), and updateList(). |
|
|
Definition at line 67 of file truthTableView.hpp. Referenced by initControls(), initSizers(), OnSelection(), selectTable(), and updateList(). |
|
|
Definition at line 68 of file truthTableView.hpp. Referenced by initControls(), initSizers(), OnSelection(), selectTable(), and updateList(). |
|
|
Definition at line 73 of file truthTableView.hpp. Referenced by initControls(), initSizers(), and updateTable(). |
|
|
Definition at line 74 of file truthTableView.hpp. Referenced by OnClick(), OnOpen(), OnRemove(), OnSave(), OnSaveAs(), and OnSelection(). |
|
|
Definition at line 62 of file truthTableView.hpp. Referenced by initControls(), initSizers(), selectTable(), and updateList(). |
|
|
Definition at line 61 of file truthTableView.hpp. |
|
|
Definition at line 60 of file truthTableView.hpp. |
|
|
Definition at line 72 of file truthTableView.hpp. Referenced by initControls(), initSizers(), selectTable(), and updateList(). |
1.4.6