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

#include <albaGUIPicButton.h>

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

Public Member Functions

 albaGUIPicButton ()
 
 albaGUIPicButton (wxWindow *parent, wxString BitmapId, wxWindowID id=0, albaObserver *listener=NULL, int offset=0)
 
 albaGUIPicButton (wxWindow *parent, wxBitmap *b, wxWindowID id=0, albaObserver *listener=NULL, int offset=0)
 
void SetListener (albaObserver *listener)
 
void SetEventId (long EventId)
 
void SetBitmap (wxString BitmapId, wxWindowID id=0)
 

Protected Member Functions

virtual void Command (wxCommandEvent &event)
 
void OnSetFocus (wxFocusEvent &event)
 

Protected Attributes

int m_Id
 
albaObserverm_Listener
 

Detailed Description

albaGUIPicButton inherit from wxBitmapButton.

It override SetDefault and SetFocus to prevent the button to display the frame typical of the selected buttons.

To create a albaGUIPicButton you must specify

Definition at line 38 of file albaGUIPicButton.h.

Constructor & Destructor Documentation

◆ albaGUIPicButton() [1/3]

albaGUIPicButton::albaGUIPicButton ( )
inline

Definition at line 43 of file albaGUIPicButton.h.

◆ albaGUIPicButton() [2/3]

albaGUIPicButton::albaGUIPicButton ( wxWindow *  parent,
wxString  BitmapId,
wxWindowID  id = 0,
albaObserver listener = NULL,
int  offset = 0 
)

◆ albaGUIPicButton() [3/3]

albaGUIPicButton::albaGUIPicButton ( wxWindow *  parent,
wxBitmap *  b,
wxWindowID  id = 0,
albaObserver listener = NULL,
int  offset = 0 
)

Member Function Documentation

◆ SetListener()

void albaGUIPicButton::SetListener ( albaObserver listener)

Set the Listener that will receive event-notification.

◆ SetEventId()

void albaGUIPicButton::SetEventId ( long  EventId)

allow to change the Event-Id at run time

◆ SetBitmap()

void albaGUIPicButton::SetBitmap ( wxString  BitmapId,
wxWindowID  id = 0 
)

Used to change Bitmap and Event-ID at run time.

Example: the Time Bar Play button once pressed become a Stop Button which send a Stop-Event-Id, when pressed again is reverted to Play.

◆ Command()

virtual void albaGUIPicButton::Command ( wxCommandEvent &  event)
protectedvirtual

Overriden function member to intercept event generation and forward it to the Listener.

◆ OnSetFocus()

void albaGUIPicButton::OnSetFocus ( wxFocusEvent &  event)
inlineprotected

Definition at line 62 of file albaGUIPicButton.h.

Member Data Documentation

◆ m_Id

int albaGUIPicButton::m_Id
protected

Definition at line 64 of file albaGUIPicButton.h.

◆ m_Listener

albaObserver* albaGUIPicButton::m_Listener
protected

Definition at line 65 of file albaGUIPicButton.h.


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