ALBA
albaWizardBlockTypeCheck.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaWizardBlockTypeCheck
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 __albaWizardBlockTypeCheck_H__
18#define __albaWizardBlockTypeCheck_H__
19
20//----------------------------------------------------------------------------
21// includes :
22//----------------------------------------------------------------------------
23#include "albaDefines.h"
24#include "albaWizardBlock.h"
25#include <vector>
26
27//----------------------------------------------------------------------------
28// forward reference
29//----------------------------------------------------------------------------
30
36class ALBA_EXPORT albaWizardBlockTypeCheck : public albaWizardBlock
37{
38public:
39
41 albaWizardBlockTypeCheck(const char *name);
42
45
47 void SetWindowTitle(const char *Title);
48
50 wxString GetWindowTitle(){return m_Title;};
51
53 void VmeSelect(const char *path);
54
56 wxString GetVmeSelect(){return m_VmeSelect;};
57
59 void SetDescription(const char *description);
60
62 wxString GetDescription(){return m_Description;};
63
67 void AddAcceptedType(const char *label);
68
70 std::vector < wxString > *GetAcceptedTypeList(){return &m_AcceptedVmes;};
71
74 void SetWrongTypeNextBlock(const char *block);
75
77 wxString GetWrongTypeNextBlock(){return m_WrongTypeNextBlock;};
78
80 wxString GetNextBlock();
81
83 void EnableErrorMessage(bool enabled) {m_ErrorMessageEnabled=enabled;};
84
86 bool IsErrorMessageEnabled() {return m_ErrorMessageEnabled;};
87
88protected:
90 virtual void ExcutionBegin();
91
92private:
93
94 wxString m_Title;
95 wxString m_Description;
96
97 wxString m_VmeSelect;
98
99 int m_ErrorMessageEnabled;
100
101 std::vector <wxString> m_AcceptedVmes;
102 int m_TestPassed;
103
104 wxString m_WrongTypeNextBlock;
105};
106#endif
Class Name: albaWizardTypeCheckBlock.
albaWizardBlockTypeCheck(const char *name)
Default constructor.
void EnableErrorMessage(bool enabled)
Enable/disable the visualization of error message box.
wxString GetDescription()
Get The title of the selection window.
wxString GetWrongTypeNextBlock()
Get name of the Block called after wrong check.
wxString GetWindowTitle()
Get The title of the window showed when the type check was not
void AddAcceptedType(const char *label)
Add a new accepted type.
~albaWizardBlockTypeCheck()
Default destructor.
bool IsErrorMessageEnabled()
Return true if error message show is enabled.
wxString GetVmeSelect()
Get the path for VME selection.
void SetDescription(const char *description)
Set The title of the selection window.
void SetWindowTitle(const char *Title)
Set The title of the window showed when the type check was not
std::vector< wxString > * GetAcceptedTypeList()
Returns the list of accepted types.
void VmeSelect(const char *path)
Set the path for VME selection.
virtual void ExcutionBegin()
Starts the execution of the block.
wxString GetNextBlock()
Return the name of the Block witch will be executed after this.
void SetWrongTypeNextBlock(const char *block)
Set name of the Block called after wrong check.
Class Name: albaWizardBlock.