ALBA
albaWizardBlockSelection.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaWizardSelectionBlock
5 Authors: Gianluigi Crimi
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 __albaWizardBlockSelection_H__
18#define __albaWizardBlockSelection_H__
19
20//----------------------------------------------------------------------------
21// includes :
22//----------------------------------------------------------------------------
23#include "albaDefines.h"
24#include "albaWizardBlock.h"
25#include <vector>
26
27//----------------------------------------------------------------------------
28// forward reference
29//----------------------------------------------------------------------------
30
35class ALBA_EXPORT albaWizardBlockSelection : public albaWizardBlock
36{
37public:
38
40 albaWizardBlockSelection(const char *name);
41
44
46 void SetWindowTitle(const char *Title);
47
49 wxString GetWindowTitle(){return m_Title;};
50
52 void SetDescription(const char *description);
53
55 wxString GetDescription(){return m_Description;};
56
60 void AddChoice(const char *label, const char *block);
61
63 wxString GetChoiceLabel(int n);
64
66 wxString GetChoiceNextBlock(int n);
67
68
70 virtual void SetNextBlock(const char *block){};
71
72protected:
74 virtual void ExcutionBegin();
75
77 virtual wxString GetNextBlock();
78private:
79
80 //Choices struct definition
81 typedef struct
82 {
83 wxString label;
84 wxString block;
85 } blockChoice;
86
87 wxString m_Title;
88 wxString m_Description;
89 std::vector < blockChoice > m_Choices;
90 int m_SelectedChoice;
91};
92#endif
Class Name: albaWizardSelectionBlock.
albaWizardBlockSelection(const char *name)
Default constructor.
wxString GetChoiceLabel(int n)
Returns the label of the n-th choice.
~albaWizardBlockSelection()
Default destructor.
virtual void ExcutionBegin()
Starts the execution of the block.
wxString GetWindowTitle()
Get The title of the selection window.
void SetWindowTitle(const char *Title)
Set The title of the selection window.
virtual wxString GetNextBlock()
Return the name of the Block witch will be executed after this.
wxString GetChoiceNextBlock(int n)
Returns the Next Block of the n-th choice.
void AddChoice(const char *label, const char *block)
Add a new choice in the selection.
void SetDescription(const char *description)
Set The title of the selection window.
virtual void SetNextBlock(const char *block)
This method has no sense in this class, use AddChoice() instead.
wxString GetDescription()
Get The title of the selection window.
Class Name: albaWizardBlock.