ALBA
albaGUISettings.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUISettings
5 Authors: Paolo Quadrani
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
17#ifndef __albaGUISettings_H__
18#define __albaGUISettings_H__
19
20#include "albaObserver.h"
21#include <wx/config.h>
22
23//----------------------------------------------------------------------------
24// forward reference
25//----------------------------------------------------------------------------
26class albaGUI;
27
33class ALBA_EXPORT albaGUISettings : public albaObserver
34{
35public:
37 albaGUISettings(albaObserver *Listener, const albaString &label = _("Settings"));
40
42 virtual void OnEvent(albaEventBase *alba_event);
43
45 void SetListener(albaObserver *Listener) {m_Listener = Listener;};
46
49
51 const char *GetLabel() {return m_Label.GetCStr();};
52
53protected:
55 virtual void CreateGui();
56
58 virtual void InitializeSettings();
59
62
63 wxConfig *m_Config;
64
66};
67#endif
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
class name: albaGUISettings base class for more complex specified classes regarding the setting of ap...
virtual void InitializeSettings()
Initialize the settings.
void SetListener(albaObserver *Listener)
Set the listener of the events launched.
~albaGUISettings()
destructor
albaGUISettings(albaObserver *Listener, const albaString &label=_("Settings"))
constructor
albaObserver * m_Listener
const char * GetLabel()
Return the settings' label.
virtual void CreateGui()
Create the GUI for the setting panel.
albaGUI * GetGui()
Return the GUI of the setting panel.
wxConfig * m_Config
albaString m_Label
virtual void OnEvent(albaEventBase *alba_event)
Answer to the messages coming from interface.
albaGUI is a panel with function to easily create GUI.
Definition: albaGUI.h:110
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
albaString - performs common string operations on c-strings.
Definition: albaString.h:43