00001 #include "eventsLog.h"
00002 #include "eventsList.h"
00003 #include "wx/richtext/richtextctrl.h"
00004
00005 #ifndef SCENARIOCONTROLS_H
00006 #define SCENARIOCONTROLS_H
00007
00008
00009 class ScenarioControls : public MyScrolledWindowSmart
00010 {
00011 public:
00012 ScenarioControls(wxWindow *parent);
00013
00014 long getScenarioMilliSecondsElapsed();
00015 void setEventsLog(EventsLog *);
00016 void transitionToNextState();
00017 void startScenario();
00018 void playScenario();
00019 void stopScenario();
00020 void pauseScenario();
00021
00022 private:
00023
00024 wxButton *play;
00025 wxButton *start;
00026 wxButton *stop;
00027 wxButton *nextState;
00028 wxButton *pause;
00029 wxButton *endAndSave;
00030 wxRichTextCtrl *time;
00031 wxRichTextCtrl *time_label;
00032 wxRichTextCtrl *scenarioTitle;
00033 wxRichTextCtrl *scenarioTitle_label;
00034 wxRichTextCtrl *frameTitle;
00035 wxRichTextCtrl *frameTitle_label;
00036 wxRichTextCtrl *timeInScenario;
00037 wxRichTextCtrl *timeInScenario_label;
00038 wxRichTextCtrl *timeInframe;
00039 wxRichTextCtrl *timeInframe_label;
00040 wxRichTextCtrl *patientTime;
00041 wxRichTextCtrl *patientTime_label;
00042
00043 EventsLog *eventsLog;
00044
00045 wxTimer *scenarioTimer;
00046 wxTimer *frameTimer;
00047 wxTimer *patientTimer;
00048
00049 long scenarioMilliSecondsElapsed;
00050 long frameMilliSecondsElapsed;
00051
00052 boolean scenarioPlaying;
00053 boolean scenarioPaused;
00054 boolean scenarioStarted;
00055
00056 void onStartScenarioButton(wxCommandEvent& event);
00057 void onPlayButton(wxCommandEvent& event);
00058 void onPauseButton(wxCommandEvent& event);
00059 void onStopButton(wxCommandEvent& event);
00060 void onNextStateButton(wxCommandEvent& event);
00061 void OneEndAndSaveButton(wxCommandEvent& event);
00062 void onTimer(wxTimerEvent& event);
00063
00064 DECLARE_EVENT_TABLE()
00065 };
00066
00067
00068 #endif