24 virtual const bool handleKeyPress(
const GdkEventKey*
const e)
override;
void refreshViews()
Handles updating this particular view. Reads register values from Jimulator, sets the label values of...
RegistersView *const getView() const
Returns the view for this model.
RegistersView *const view
The view this model represents.
virtual void changeJimulatorState(const JimulatorState newState) override
Handles changes in the Jimulator state.
KoMo2Model *const parent
All models have a parent model - KoMo2Model, the most senior model in the hierarchy, sets its parent to self.
Stores data and functions related to the displaying of the KoMo2 GUI element - no particular logic or...
JimulatorState
Describe the 5 states of Jimulator.
A file containing the definition of the ControlsModel class.
virtual const bool handleKeyPress(const GdkEventKey *const e) override
Handles any key press events.
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.
The logical model of the entire application. All other models should be member variables of this mode...
const std::array< std::string, 16 > getRegisterValueFromJimulator() const
Gets the register values out of Jimulator.
Stores data and functions relating to the tracking and manipulation of data within the RegistersView ...
RegistersModel(RegistersView *const view, KoMo2Model *const parent)
Constructs a new registers model object.