1 #ifndef GUI_RUNNINGCONTROLLER_H_INCLUDED
2 #define GUI_RUNNINGCONTROLLER_H_INCLUDED
34 namespace Controller {
52 void Enable(
const std::shared_ptr<Ws::IProject>& project);
54 QAction* GetActionRun()
const;
56 QAction* GetActionSingleStep()
const;
58 bool IsEnabled()
const;
60 bool IsRunning()
const;
62 void SetRunning(
bool);
65 void SLOT_ToggleRunning(
bool);
75 void SimulationError(
const std::string& error);
78 void SimulationInfo(
const std::string& message,
const InfoMessageReason& reason);
81 QAction* m_action_run;
82 QAction* m_action_single_step;
84 std::shared_ptr<Ws::IProject> m_project;
91 #endif // end_of_inclde_guard
Helper class to enable or disable a collection of QAction and QMenu objects at once.
EnabledActions interface.
InfoMessageReason
Enumeration for the reason of an emitted InfoMessage from the project.
Simple state machine with 3 states: "disabled", "enabled-not-running" and "enabled-running".
see the online Qt documentation
Namespace for generic graphical shell for simulators.