11 #include <gtkmm/button.h> 12 #include <gtkmm/image.h> 39 Gtk::Image*
const img,
40 const std::string newTooltip,
41 const std::string newLabelText)
const {
42 button->set_sensitive(state);
43 button->set_has_tooltip(state);
46 if (newTooltip !=
"") {
47 button->set_tooltip_text(newTooltip);
52 button->set_image(*img);
56 if (newLabelText !=
"") {
57 button->set_label(newLabelText);
void setButtonState(Gtk::Button *const button, const bool state, Gtk::Image *const img=nullptr, const std::string newTooltip="", const std::string newLabelText="") const
Sets the state of a button to some boolean - the assumption is that if a button is not meant to be se...
A file containing the declaration of the class Model and the enumerable type JimulatorState.
KoMo2Model *const getParent() const
Returns the parent pointer.
JimulatorState getJimulatorState() const
Return the jimulatorState member object.
KoMo2Model *const parent
All models have a parent model - KoMo2Model, the most senior model in the hierarchy, sets its parent to self.
JimulatorState
Describe the 5 states of Jimulator.
void setJimulatorState(const JimulatorState val)
set the JimulatorState member object.
The logical model of the entire application. All other models should be member variables of this mode...
Model(KoMo2Model *const parent)
Constructs a new Model object - just assigns the parent variable.
static JimulatorState jimulatorState
JimulatorState reflects the state in which Jimulator is operating, which in turn affects the model of...