ALBA
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
albaGUIMovieCtrl Class Reference

#include <albaGUIMovieCtrl.h>

Inheritance diagram for albaGUIMovieCtrl:
Inheritance graph
[legend]
Collaboration diagram for albaGUIMovieCtrl:
Collaboration graph
[legend]

Public Member Functions

 albaGUIMovieCtrl (wxWindow *parent, wxWindowID id=-1)
 
virtual ~albaGUIMovieCtrl ()
 
void SetListener (albaObserver *Listener)
 
void OnEvent (albaEventBase *alba_event)
 
void SetFrameBounds (double min, double max, double step=1)
 
void Loop (bool enable=true)
 
- Public Member Functions inherited from albaGUIPanel
 albaGUIPanel (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Protected Types

enum  MOVIECTRL_CONSTANTS {
  MOVIE_BEGIN = 0 , MOVIE_PREV , MOVIE_PLAY , MOVIE_NEXT ,
  MOVIE_END , MOVIE_REC
}
 

Protected Member Functions

void Update ()
 
void OnTimer (wxTimerEvent &event)
 

Protected Attributes

double m_Frame
 
double m_FrameMin
 
double m_FrameMax
 
int m_FrameStep
 
int m_Loop
 
wxCheckBox * m_LoopCheck
 
wxBoxSizer * m_Sizer
 
albaGUIPicButtonm_TimeBarButtons [MOVIE_BUTTONS_NUM]
 
wxTimer m_Timer
 
albaObserverm_Listener
 

Additional Inherited Members

- Public Attributes inherited from albaGUIPanel
albaGUIPanelm_NextPanel
 

Detailed Description

albaGUIMovieCtrl is a wxPanel with a set of widget to handle time.

Definition at line 43 of file albaGUIMovieCtrl.h.

Member Enumeration Documentation

◆ MOVIECTRL_CONSTANTS

Enumerator
MOVIE_BEGIN 
MOVIE_PREV 
MOVIE_PLAY 
MOVIE_NEXT 
MOVIE_END 
MOVIE_REC 

Definition at line 69 of file albaGUIMovieCtrl.h.

Constructor & Destructor Documentation

◆ albaGUIMovieCtrl()

albaGUIMovieCtrl::albaGUIMovieCtrl ( wxWindow *  parent,
wxWindowID  id = -1 
)

◆ ~albaGUIMovieCtrl()

virtual albaGUIMovieCtrl::~albaGUIMovieCtrl ( )
virtual

Member Function Documentation

◆ SetListener()

void albaGUIMovieCtrl::SetListener ( albaObserver Listener)
inline

Definition at line 48 of file albaGUIMovieCtrl.h.

References m_Listener.

◆ OnEvent()

void albaGUIMovieCtrl::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Implements albaObserver.

◆ SetFrameBounds()

void albaGUIMovieCtrl::SetFrameBounds ( double  min,
double  max,
double  step = 1 
)

Set the frames bounds for the movie.

◆ Loop()

void albaGUIMovieCtrl::Loop ( bool  enable = true)
inline

Enable/Disable loop.

Definition at line 56 of file albaGUIMovieCtrl.h.

References m_Loop.

◆ Update()

void albaGUIMovieCtrl::Update ( )
protected

Update the movie ctrl interface.

◆ OnTimer()

void albaGUIMovieCtrl::OnTimer ( wxTimerEvent &  event)
protected

Update the time and send the TIME_SET event to synchronize all the application.

Member Data Documentation

◆ m_Frame

double albaGUIMovieCtrl::m_Frame
protected

Definition at line 59 of file albaGUIMovieCtrl.h.

◆ m_FrameMin

double albaGUIMovieCtrl::m_FrameMin
protected

Definition at line 60 of file albaGUIMovieCtrl.h.

◆ m_FrameMax

double albaGUIMovieCtrl::m_FrameMax
protected

Definition at line 61 of file albaGUIMovieCtrl.h.

◆ m_FrameStep

int albaGUIMovieCtrl::m_FrameStep
protected

Definition at line 62 of file albaGUIMovieCtrl.h.

◆ m_Loop

int albaGUIMovieCtrl::m_Loop
protected

Definition at line 63 of file albaGUIMovieCtrl.h.

Referenced by Loop().

◆ m_LoopCheck

wxCheckBox* albaGUIMovieCtrl::m_LoopCheck
protected

Definition at line 64 of file albaGUIMovieCtrl.h.

◆ m_Sizer

wxBoxSizer* albaGUIMovieCtrl::m_Sizer
protected

Definition at line 79 of file albaGUIMovieCtrl.h.

◆ m_TimeBarButtons

albaGUIPicButton* albaGUIMovieCtrl::m_TimeBarButtons[MOVIE_BUTTONS_NUM]
protected

Definition at line 80 of file albaGUIMovieCtrl.h.

◆ m_Timer

wxTimer albaGUIMovieCtrl::m_Timer
protected

Definition at line 81 of file albaGUIMovieCtrl.h.

◆ m_Listener

albaObserver* albaGUIMovieCtrl::m_Listener
protected

Definition at line 83 of file albaGUIMovieCtrl.h.

Referenced by SetListener().


The documentation for this class was generated from the following file: