ALBA
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Alba_Release
Source
Gui
albaGUIPicButton.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: ALBA (Agile Library for Biomedical Applications)
4
Module: albaGUIPicButton
5
Authors: Silvano Imboden
6
7
Copyright (c) BIC
8
All rights reserved. See Copyright.txt or
9
10
11
This software is distributed WITHOUT ANY WARRANTY; without even
12
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13
PURPOSE. See the above copyright notice for more information.
14
15
=========================================================================*/
16
#ifndef __albaGUIPicButton_H__
17
#define __albaGUIPicButton_H__
18
//----------------------------------------------------------------------------
19
// Include:
20
//----------------------------------------------------------------------------
21
#include "
albaEvent.h
"
22
#include "
albaObserver.h
"
23
24
//----------------------------------------------------------------------------
25
// albaGUIPicButton :
37
//----------------------------------------------------------------------------
38
class
ALBA_EXPORT
albaGUIPicButton
:
public
wxBitmapButton
39
{
40
DECLARE_DYNAMIC_CLASS(
albaGUIPicButton
)
41
42
public
:
43
albaGUIPicButton
() {};
44
albaGUIPicButton
(wxWindow *parent, wxString BitmapId, wxWindowID
id
= 0,
albaObserver
*listener = NULL,
int
offset = 0);
45
albaGUIPicButton
(wxWindow *parent, wxBitmap *b, wxWindowID
id
= 0,
albaObserver
*listener = NULL,
int
offset = 0);
46
48
void
SetListener
(
albaObserver
*listener);
49
51
void
SetEventId
(
long
EventId);
52
56
void
SetBitmap
(wxString BitmapId, wxWindowID
id
= 0);
57
58
protected
:
60
virtual
void
Command
(wxCommandEvent& event);
61
62
void
OnSetFocus
(wxFocusEvent& event) {};
63
64
int
m_Id
;
65
albaObserver
*
m_Listener
;
66
67
DECLARE_EVENT_TABLE()
68
};
69
#endif
// __albaGUIPicButton_H__
albaEvent.h
albaObserver.h
albaGUIPicButton
albaGUIPicButton inherit from wxBitmapButton.
Definition:
albaGUIPicButton.h:39
albaGUIPicButton::SetListener
void SetListener(albaObserver *listener)
Set the Listener that will receive event-notification.
albaGUIPicButton::Command
virtual void Command(wxCommandEvent &event)
Overriden function member to intercept event generation and forward it to the Listener.
albaGUIPicButton::SetEventId
void SetEventId(long EventId)
allow to change the Event-Id at run time
albaGUIPicButton::SetBitmap
void SetBitmap(wxString BitmapId, wxWindowID id=0)
Used to change Bitmap and Event-ID at run time.
albaGUIPicButton::m_Listener
albaObserver * m_Listener
Definition:
albaGUIPicButton.h:65
albaGUIPicButton::albaGUIPicButton
albaGUIPicButton(wxWindow *parent, wxBitmap *b, wxWindowID id=0, albaObserver *listener=NULL, int offset=0)
albaGUIPicButton::albaGUIPicButton
albaGUIPicButton()
Definition:
albaGUIPicButton.h:43
albaGUIPicButton::OnSetFocus
void OnSetFocus(wxFocusEvent &event)
Definition:
albaGUIPicButton.h:62
albaGUIPicButton::m_Id
int m_Id
Definition:
albaGUIPicButton.h:64
albaGUIPicButton::albaGUIPicButton
albaGUIPicButton(wxWindow *parent, wxString BitmapId, wxWindowID id=0, albaObserver *listener=NULL, int offset=0)
albaObserver
Interface implementing the Observer of the Subject/Observer design pattern.
Definition:
albaObserver.h:36
Generated by
1.9.5