11 #include <gtkmm/button.h> 12 #include <gtkmm/image.h> 14 #include "../jimulatorInterface.h" 51 template <
class T1,
class T2>
53 button->signal_clicked().connect(sigc::mem_fun(*b, c));
58 Gtk::Image*
const img =
nullptr,
59 const std::string newTooltip =
"",
60 const std::string newLabelText =
"")
const;
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...
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 setButtonListener(Gtk::Button *const button, const T1 b, const T2 c)
Connect any button to any member function of.
void setJimulatorState(const JimulatorState val)
set the JimulatorState member object.
The superclass for all other Model classes. Uses a pure virtual function, so is abastract. Keeps KoMo2Model as a friend so it alone can call setJimulatorState. This class provides basic data that are needed by all other.
virtual const bool handleKeyPress(const GdkEventKey *const e) override
Passes the key press event off to other child models.
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...
virtual void changeJimulatorState(const JimulatorState newState) override
Changes the Jimulator state and calls each child models own changeJimulatorState function.