ALBA
albaWizardBlockYesNoSelection.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaWizardBlockYesNoSelection
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 __albaWizardBlockYesNoSelection_H__
18#define __albaWizardBlockYesNoSelection_H__
19
20//----------------------------------------------------------------------------
21// includes :
22//----------------------------------------------------------------------------
23#include "albaDefines.h"
24#include "albaWizardBlock.h"
25#include <vector>
26
27//----------------------------------------------------------------------------
28// forward reference
29//----------------------------------------------------------------------------
30
36{
37public:
38
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
58 void SetNextBlockOnYes(const char *block);
59
61 wxString GetNextBlockOnYes(){return m_YesBlock;};
62
64 void SetNextBlockOnNo(const char *block);
65
67 wxString GetNextBlockOnNo(){return m_NoBlock;};
68
69
71 virtual void SetNextBlock(const char *block){};
72
74 void EnableCancelButton(bool cancel=true);
75
77 bool IsCancelButtonEnabled(){return m_CancelEnabled;};
78
79protected:
81 virtual void ExcutionBegin();
82
84 virtual wxString GetNextBlock();
85private:
86
87 wxString m_Title;
88 wxString m_Description;
89 wxString m_YesBlock;
90 wxString m_NoBlock;
91 bool m_CancelEnabled;
92 int m_UserYes;
93};
94#endif
Class Name: albaWizardSelectionBlock.
void EnableCancelButton(bool cancel=true)
Enable or Disable Cancel Button.
wxString GetNextBlockOnNo()
Set The next block associated to no user answer.
void SetDescription(const char *description)
Set The title of the selection window.
void SetNextBlockOnNo(const char *block)
Set The next block associated to no user answer.
virtual wxString GetNextBlock()
Return the name of the Block witch will be executed after this.
void SetNextBlockOnYes(const char *block)
Set The next block associated to yes user answer.
void SetWindowTitle(const char *Title)
Set The title of the selection window.
wxString GetWindowTitle()
Get The title of the information window.
virtual void ExcutionBegin()
Starts the execution of the block.
virtual void SetNextBlock(const char *block)
This method has no sense in this class, use AddChoice() instead.
wxString GetNextBlockOnYes()
Get The next block associated to yes user answer.
bool IsCancelButtonEnabled()
Get Cancel Button enabled status.
albaWizardBlockYesNoSelection(const char *name)
Default constructor.
wxString GetDescription()
Get The description.
~albaWizardBlockYesNoSelection()
Default destructor.
Class Name: albaWizardBlock.