ALBA
|
#include <albaGUIPicButton.h>
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 |
albaObserver * | m_Listener |
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.
|
inline |
Definition at line 43 of file albaGUIPicButton.h.
albaGUIPicButton::albaGUIPicButton | ( | wxWindow * | parent, |
wxString | BitmapId, | ||
wxWindowID | id = 0 , |
||
albaObserver * | listener = NULL , |
||
int | offset = 0 |
||
) |
albaGUIPicButton::albaGUIPicButton | ( | wxWindow * | parent, |
wxBitmap * | b, | ||
wxWindowID | id = 0 , |
||
albaObserver * | listener = NULL , |
||
int | offset = 0 |
||
) |
void albaGUIPicButton::SetListener | ( | albaObserver * | listener | ) |
Set the Listener that will receive event-notification.
void albaGUIPicButton::SetEventId | ( | long | EventId | ) |
allow to change the Event-Id at run time
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.
|
protectedvirtual |
Overriden function member to intercept event generation and forward it to the Listener.
|
inlineprotected |
Definition at line 62 of file albaGUIPicButton.h.
|
protected |
Definition at line 64 of file albaGUIPicButton.h.
|
protected |
Definition at line 65 of file albaGUIPicButton.h.