ALBA
albaGUIWizardPage.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIWizardPage
5 Authors: Matteo Giacomoni
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 __albaGUIWizardPage_H__
17#define __albaGUIWizardPage_H__
18//----------------------------------------------------------------------------
19// Include:
20//----------------------------------------------------------------------------
21#include "albaDefines.h"
22#include "wx/wizard.h"
23#include "albaEvent.h"
24#include "albaObserver.h"
25#include "albaRWI.h"
26
27//----------------------------------------------------------------------------
28// forward references :
29//----------------------------------------------------------------------------
30class albaGUIWizard;
31class albaGUI;
32
33//----------------------------------------------------------------------------
34// Const:
35//----------------------------------------------------------------------------
37{
40};
41
50class ALBA_EXPORT albaGUIWizardPage : public wxWizardPageSimple, public albaObserver
51{
52public:
54 albaGUIWizardPage (albaGUIWizard *wizardParent,long style = albaWIZARDUSEGUI | albaWIZARDUSERWI,wxString label="",bool plugCentralGui = true,bool plugLeftGui = true,bool plugRightGui = true);
58 void SetListener(albaObserver *Listener) {m_Listener = Listener;};
60 void OnEvent(albaEventBase *alba_event);
61
63
70
73
76
79
82
84 albaRWI* GetRWI(){return m_Rwi;};
85
86protected:
87
88 wxWizardPageSimple *m_FirstPage;
89
90 wxBoxSizer *m_GUISizer;
91 wxBoxSizer *m_RwiSizer;
92 wxBoxSizer *m_SizerAll;
93
95
99
101
102 //DECLARE_EVENT_TABLE()
103
104 friend class albaGUIWizardPageTest;
105};
106#endif
DIALOG_EXSTYLES
@ albaWIZARDUSERWI
@ albaWIZARDUSEGUI
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
Class Name: albaGUIWizardPage.
void AddGuiLowerCenter(albaGUI *gui)
Add in wizard gui, another gui in lower center position.
virtual ~albaGUIWizardPage()
destructor.
albaRWI * m_Rwi
Render window.
albaGUI * m_GuiLowerCenter
Gui variable used to plug custom widgets localized in LOWER CENTER.
void AddGuiLowerLeft(albaGUI *gui)
Add in wizard gui, another gui in lower left position.
albaGUIWizardPage(albaGUIWizard *wizardParent, long style=albaWIZARDUSEGUI|albaWIZARDUSERWI, wxString label="", bool plugCentralGui=true, bool plugLeftGui=true, bool plugRightGui=true)
constructor.
albaGUI * m_GuiLowerLeft
Gui variable used to plug custom widgets localized in LOWER LEFT.
wxBoxSizer * m_SizerAll
Vertical sizer used to include all other sizer.
void AddGuiLowerRight(albaGUI *gui)
Add in wizard gui, another gui in lower right position.
void RemoveGuiLowerLeft(albaGUI *gui)
Remove in wizard gui, another gui in lower left position.
void SetNextPage(albaGUIWizardPage *nextPage)
Create a chain between this page ad nextPage.
void RemoveGuiLowerCenter(albaGUI *gui)
Remove in wizard gui, another gui in lower center position.
void OnEvent(albaEventBase *alba_event)
Precess events coming from other objects.
albaRWI * GetRWI()
Retrieve the current Render Window.
albaGUI * m_GuiLowerRight
Gui variable used to plug custom widgets localized in LOWER RIGHT.
wxBoxSizer * m_GUISizer
Sizer used for the Lower GUI.
albaObserver * m_Listener
wxWizardPageSimple * m_FirstPage
void SetListener(albaObserver *Listener)
Set the Listener that will receive event-notification.
void RemoveGuiLowerRight(albaGUI *gui)
Remove in wizard gui, another gui in lower right position.
wxBoxSizer * m_RwiSizer
Sizer used for the vtk render window and if you want to plug any gui on bottom of the RWI.
Class Name: albaGUIWizard.
Definition: albaGUIWizard.h:36
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