10 #include <gtkmm/button.h> 11 #include <gtkmm/image.h> 20 reloadJimulatorButton(),
22 singleStepExecuteButton(),
23 haltExecutionButton() {
37 set_layout(Gtk::BUTTONBOX_END);
53 getHelpButton()->get_accessible()->set_description(
"Displays a help window.");
55 getHelpButton()->get_style_context()->add_class(
"controlButtons");
65 "Halt execution of the loaded program.");
76 "Single step execute");
78 "Execute a single line of the loaded program.");
91 "Reloads the currently loaded program.");
121 *
new Gtk::Image(projectRoot +
"/res/img/haltSymbol.png"));
124 *
new Gtk::Image(projectRoot +
"/res/img/helpSymbol.png"));
127 *
new Gtk::Image(projectRoot +
"/res/img/singleStepSymbol.png"));
130 *
new Gtk::Image(projectRoot +
"/res/img/refreshSymbol.png"));
The class definition of the ControlsModel class, a data model which encapsulates all state...
Gtk::LinkButton helpButton
A button which, when clicked, opens up an about/help window.
ControlsModel * model
A pointer to the related model.
void initProgramControlsContainer()
Packs children into the controlsView, and sets the layout and size of it.
Gtk::Button *const getSingleStepExecuteButton()
Gets the singleStepExecuteButton member variable.
Gtk::Button haltExecutionButton
A button which, when clicked, halts the current execution of Jimulator.
void initHelpButton()
Setup all of the information about the help button.
ControlsView(MainWindowView *const parent)
Construct a new Controls View.
Gtk::Button pauseResumeButton
A button which, when clicked, toggles between playing and pausing the execution of Jimulator (i...
Gtk::Button *const getHaltExecutionButton()
Gets the haltExecutionButton member variable.
The class definition of the main window of the program. This main window is the mater view of the pro...
void initSingleStepExecuteButton()
Sets up all of the information about the single step execution button.
Gtk::Button reloadJimulatorButton
A button which, when clicked, reloads the program into Jimulator again.
Gtk::Button *const getPauseResumeButton()
Gets the pauseResumeButton member variable.
void initReloadJimulatorButton()
Sets up all of the information about the reload Jimulator button.
Gtk::Button *const getReloadJimulatorButton()
Gets the reloadJimulatorButton member variable.
void initPauseResumeButton()
Sets up all of the information about the pause & resume button. This is emptier than its sibling func...
A definition of the class ControlsView.
void initHaltExecutionButton()
Sets up all of the information about the halt execution button.
void setModel(ControlsModel *const val)
Set the model member variable.
Gtk::LinkButton *const getHelpButton()
Gets the helpButton member variable.
Gtk::Button singleStepExecuteButton
A button which, when clicked, performs a single-step of execution IF Jimulator is already paused...
void setButtonImages(const std::string projectRoot)
Sets the images for 4 of the buttons.