![]() |
KoMo2
1.0.0
A modern ARM emulator GUI.
|
ControlsView is the visual aspect of the controls that run along the top of the KoMo2 GUI. This class contains information and functionality relating to the getting and setting of visual information, such as the layout and styling. Little or no logic or data is kept in this class.
More...
#include <ControlsView.h>
Public Member Functions | |
| ControlsView (MainWindowView *const parent) | |
| Construct a new Controls View. More... | |
| Gtk::LinkButton *const | getHelpButton () |
Gets the helpButton member variable. More... | |
| Gtk::Button *const | getReloadJimulatorButton () |
Gets the reloadJimulatorButton member variable. More... | |
| Gtk::Button *const | getPauseResumeButton () |
Gets the pauseResumeButton member variable. More... | |
| Gtk::Button *const | getSingleStepExecuteButton () |
Gets the singleStepExecuteButton member variable. More... | |
| Gtk::Button *const | getHaltExecutionButton () |
Gets the haltExecutionButton member variable. More... | |
| void | setModel (ControlsModel *const val) |
| Set the model member variable. More... | |
| void | setButtonImages (const std::string projectRoot) |
| Sets the images for 4 of the buttons. More... | |
Private Member Functions | |
| void | initProgramControlsContainer () |
Packs children into the controlsView, and sets the layout and size of it. | |
| void | initHelpButton () |
| Setup all of the information about the help button. | |
| void | initHaltExecutionButton () |
| Sets up all of the information about the halt execution button. | |
| void | initSingleStepExecuteButton () |
| Sets up all of the information about the single step execution button. | |
| void | initReloadJimulatorButton () |
| Sets up all of the information about the reload Jimulator button. | |
| void | initPauseResumeButton () |
| Sets up all of the information about the pause & resume button. This is emptier than its sibling functions, as a significant amount of the information about this button changes at run time. | |
| ControlsView (const ControlsView &)=delete | |
| ControlsView (const ControlsView &&)=delete | |
| ControlsView & | operator= (const ControlsView &)=delete |
| ControlsView & | operator= (const ControlsView &&)=delete |
Private Attributes | |
| MainWindowView *const | parent |
| A pointer to the parent view. | |
| ControlsModel * | model |
| A pointer to the related model. | |
| Gtk::LinkButton | helpButton |
| A button which, when clicked, opens up an about/help window. | |
| Gtk::Button | reloadJimulatorButton |
| A button which, when clicked, reloads the program into Jimulator again. | |
| Gtk::Button | pauseResumeButton |
| A button which, when clicked, toggles between playing and pausing the execution of Jimulator (i.e. if currently paused, play, and vice-versa) | |
| Gtk::Button | singleStepExecuteButton |
| A button which, when clicked, performs a single-step of execution IF Jimulator is already paused. | |
| Gtk::Button | haltExecutionButton |
| A button which, when clicked, halts the current execution of Jimulator. | |
ControlsView is the visual aspect of the controls that run along the top of the KoMo2 GUI. This class contains information and functionality relating to the getting and setting of visual information, such as the layout and styling. Little or no logic or data is kept in this class.
Definition at line 22 of file ControlsView.h.
| ControlsView::ControlsView | ( | MainWindowView *const | parent | ) |
Construct a new Controls View.
| parent | A reference to the parent view. |
Definition at line 17 of file ControlsView.cpp.
| Gtk::Button *const ControlsView::getHaltExecutionButton | ( | ) |
Gets the haltExecutionButton member variable.
haltExecutionButton member variable. Definition at line 166 of file ControlsView.cpp.
| Gtk::LinkButton *const ControlsView::getHelpButton | ( | ) |
Gets the helpButton member variable.
helpButton member variable. Definition at line 136 of file ControlsView.cpp.
| Gtk::Button *const ControlsView::getPauseResumeButton | ( | ) |
Gets the pauseResumeButton member variable.
pauseResumeButton member variable. Definition at line 151 of file ControlsView.cpp.
| Gtk::Button *const ControlsView::getReloadJimulatorButton | ( | ) |
Gets the reloadJimulatorButton member variable.
reloadJimulatorButton member variable. Definition at line 144 of file ControlsView.cpp.
| Gtk::Button *const ControlsView::getSingleStepExecuteButton | ( | ) |
Gets the singleStepExecuteButton member variable.
singleStepExecuteButton member variable. Definition at line 159 of file ControlsView.cpp.
| void ControlsView::setButtonImages | ( | const std::string | projectRoot | ) |
Sets the images for 4 of the buttons.
| projectRoot | An absolute path to the root of the project. |
Definition at line 119 of file ControlsView.cpp.
| void ControlsView::setModel | ( | ControlsModel *const | val | ) |
Set the model member variable.
| val | The value to set model to. |
Definition at line 112 of file ControlsView.cpp.
1.8.11