17#ifndef __albaGUITimeBar_H__
18#define __albaGUITimeBar_H__
23#include <wx/datetime.h>
50 albaGUITimeBar(wxWindow* parent,wxWindowID
id = -1,
bool CloseButton =
false);
Implementation of the message object for the Subject/Observer design pattern.
a Slider that can be used to set double values, albaGUIFloatSlider send usual wxWindows Events; Use a...
class name: albaGUIPanel Inherits directly from wxPanel and adds the pointer to the next panel
class name: albaGUISettingsTimeBar Gui class for handling time bar properties inside application sett...
albaGUITimeBar is a wxPanel with a set of widget to handle time.
double m_TimeStart
ALBA time when the play button was pressed.
virtual ~albaGUITimeBar()
void SetTimeSettings(albaGUISettingsTimeBar *settings)
Set the reference to the time setting panel.
albaObserver * m_Listener
albaGUITimeBar(wxWindow *parent, wxWindowID id=-1, bool CloseButton=false)
void OnTimer(wxTimerEvent &event)
Update the time and send the TIME_SET event to synchronize all the application.
albaGUIFloatSlider * m_TimeBarSlider
void SetBounds(double min, double max)
Set the time bounds for the time bar.
void SetListener(albaObserver *Listener)
albaGUISettingsTimeBar * m_TimeBarSettings
Settings panel for the time bar.
albaString m_TimeMaxString
wxDateTime m_WorldTimeStart
World time when the play button was pressed.
wxTextCtrl * m_TimeBarEntry
int m_NumberOfIntervals
Number of subdivision intervals for the time bar.
void SetMultiplier(double mult=1000.0)
Set the multiplier for timer.
void Update()
Update the time bar interface.
void SetNumberOfIntervals(int intervals)
Set the number of subdivisions for the slider.
albaString m_TimeMinString
void UpdateTimeStep()
Calculate the Time step according to the number of intervals.
void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
albaGUIPicButton * m_TimeBarButtons[5]
Interface implementing the Observer of the Subject/Observer design pattern.
albaString - performs common string operations on c-strings.