#include <forbiddenPatternView.hpp>
Collaboration diagram for ForbiddenPatternView:
Public Member Functions | |
ForbiddenPatternView (wxWindow *parent, wxWindowID id, ForbiddenPatternManager *controller) | |
Constructor. | |
virtual | ~ForbiddenPatternView () |
Destructor. | |
void | updateGrids (Grid grid, bool changed) |
Grid update method. | |
void | updateList (wxArrayString strings) |
Sets the items of the pattern listbox. | |
void | selectFP (unsigned int rule) |
Selects a pattern. | |
bool | msgYesNo (wxString message) |
User selection method. | |
void | errorMsg (wxString message) |
Shows an error message. | |
void | setListMessage (int id, wxString message) |
Set a string for an item of the listbox. | |
void | resetListItem (int id) |
Sets the default string to a listbox item. | |
Private Member Functions | |
void | initControls () |
Window controls initialization. | |
void | initSizers () |
Sizers initialization. | |
void | OnClick (LayoutCanvasEvent &event) |
Canvas click event. | |
void | OnNew (wxCommandEvent &event) |
New button event. | |
void | OnSelection (wxCommandEvent &event) |
Pattern selection event. | |
void | OnRemove (wxCommandEvent &event) |
Remove button event. | |
void | OnSave (wxCommandEvent &event) |
Save button event. | |
void | OnSaveAs (wxCommandEvent &event) |
Save As button event. | |
void | OnOpen (wxCommandEvent &event) |
Open button event. | |
void | OnCheck (wxCommandEvent &event) |
Check button event. | |
Private Attributes | |
ForbiddenPatternManager * | controller |
wxStaticText * | labelTitle |
wxStaticText * | labelFP |
wxBitmapButton * | buttonNew |
wxBitmapButton * | buttonOpen |
wxBitmapButton * | buttonSave |
wxBitmapButton * | buttonSaveAs |
wxBitmapButton * | buttonRemove |
wxButton * | buttonCheck |
wxListBox * | listFP |
LayoutCanvas * | canvas |
Main view for the forbidden patterns of the system. Receives petitions from the user and asks the controller to do the job.
Definition at line 38 of file forbiddenPatternView.hpp.
|
Constructor.
Definition at line 60 of file forbiddenPatternView.cpp. |
|
Destructor.
Definition at line 71 of file forbiddenPatternView.cpp. |
|
Shows an error message.
Definition at line 337 of file forbiddenPatternView.cpp. |
|
Window controls initialization. All the window controls are initialized in this method. Definition at line 80 of file forbiddenPatternView.cpp. References buttonCheck, buttonNew, buttonOpen, buttonRemove, buttonSave, buttonSaveAs, canvas, ID_BUTTON_CHECK, ID_BUTTON_NEW, ID_BUTTON_OPEN, ID_BUTTON_REMOVE, ID_BUTTON_SAVE, ID_BUTTON_SAVEAS, ID_CANVAS, ID_LISTFP, and listFP. |
|
Sizers initialization. All the sizers (the window layout) is done in this method. Definition at line 112 of file forbiddenPatternView.cpp. References buttonCheck, buttonNew, buttonOpen, buttonRemove, buttonSave, buttonSaveAs, canvas, and listFP. |
|
User selection method. The user is asked for a yes/no selection.
Definition at line 323 of file forbiddenPatternView.cpp. Referenced by ForbiddenPatternManager::openFile(). |
|
Check button event. Method called when the check button is clicked.
Definition at line 352 of file forbiddenPatternView.cpp. References ForbiddenPatternManager::checkPatterns(), and controller. Here is the call graph for this function: ![]() |
|
Canvas click event. Method called when a click event on the layout canvas is emitted.
Definition at line 164 of file forbiddenPatternView.cpp. References ForbiddenPatternManager::cellChanged(), controller, LayoutCanvasEvent::getX(), and LayoutCanvasEvent::getY(). Here is the call graph for this function: ![]() |
|
New button event. Method called when the user clicks on the new button.
Definition at line 175 of file forbiddenPatternView.cpp. References controller, and ForbiddenPatternManager::newFP(). Here is the call graph for this function: ![]() |
|
Open button event. Method called when the open button is clicked.
Definition at line 311 of file forbiddenPatternView.cpp. References controller, and ForbiddenPatternManager::openFile(). Here is the call graph for this function: ![]() |
|
Remove button event. Method called when the remove button is clicked.
Definition at line 233 of file forbiddenPatternView.cpp. References controller, and ForbiddenPatternManager::removeFP(). Here is the call graph for this function: ![]() |
|
Save button event. Method called when the save button is clicked.
Definition at line 289 of file forbiddenPatternView.cpp. References controller, and ForbiddenPatternManager::saveFile(). Here is the call graph for this function: ![]() |
|
Save As button event. Method called when the save as button is clicked.
Definition at line 300 of file forbiddenPatternView.cpp. References controller, and ForbiddenPatternManager::saveFileAs(). Here is the call graph for this function: ![]() |
|
Pattern selection event. Method called when the user selects a pattern.
Definition at line 210 of file forbiddenPatternView.cpp. References buttonRemove, buttonSave, buttonSaveAs, controller, and ForbiddenPatternManager::FPSelected(). Here is the call graph for this function: ![]() |
|
Sets the default string to a listbox item. Resets the default message to be shown on an item of the listbox.
Definition at line 378 of file forbiddenPatternView.cpp. References listFP. |
|
Selects a pattern. Selects the pattern on the listbox.
Definition at line 271 of file forbiddenPatternView.cpp. References buttonRemove, buttonSave, buttonSaveAs, and listFP. Referenced by ForbiddenPatternManager::appendFPs(), ForbiddenPatternManager::clean(), ForbiddenPatternManager::newFP(), and ForbiddenPatternManager::openPFile(). |
|
Set a string for an item of the listbox. Allows to set a specific string to an item of the listbox.
Definition at line 364 of file forbiddenPatternView.cpp. References listFP. |
|
Grid update method. This method updates the canvas of the pattern grid.
Definition at line 245 of file forbiddenPatternView.cpp. References canvas, and LayoutCanvas::setGrid(). Referenced by ForbiddenPatternManager::newFP(), and ForbiddenPatternManager::updateGrids(). Here is the call graph for this function: ![]() |
|
Sets the items of the pattern listbox. Method called when the remove button is clicked.
Definition at line 256 of file forbiddenPatternView.cpp. References buttonRemove, buttonSave, buttonSaveAs, and listFP. |
|
Definition at line 75 of file forbiddenPatternView.hpp. Referenced by initControls(), and initSizers(). |
|
Definition at line 70 of file forbiddenPatternView.hpp. Referenced by initControls(), and initSizers(). |
|
Definition at line 71 of file forbiddenPatternView.hpp. Referenced by initControls(), and initSizers(). |
|
Definition at line 74 of file forbiddenPatternView.hpp. Referenced by initControls(), initSizers(), OnSelection(), selectFP(), and updateList(). |
|
Definition at line 72 of file forbiddenPatternView.hpp. Referenced by initControls(), initSizers(), OnSelection(), selectFP(), and updateList(). |
|
Definition at line 73 of file forbiddenPatternView.hpp. Referenced by initControls(), initSizers(), OnSelection(), selectFP(), and updateList(). |
|
Definition at line 79 of file forbiddenPatternView.hpp. Referenced by initControls(), initSizers(), and updateGrids(). |
|
Definition at line 64 of file forbiddenPatternView.hpp. Referenced by OnCheck(), OnClick(), OnNew(), OnOpen(), OnRemove(), OnSave(), OnSaveAs(), and OnSelection(). |
|
Definition at line 67 of file forbiddenPatternView.hpp. |
|
Definition at line 66 of file forbiddenPatternView.hpp. |
|
Definition at line 78 of file forbiddenPatternView.hpp. Referenced by initControls(), initSizers(), resetListItem(), selectFP(), setListMessage(), and updateList(). |