ALBA
albaWizardBlockFileExistCheck.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaWizardBlockFileExistCheck
5 Authors: Simone Bną
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 __albaWizardBlockFileExistCheck_H__
18#define __albaWizardBlockFileExistCheck_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 VmeSelect(const char *path);
53
55 wxString GetVmeSelect(){return m_VmeSelect;};
56
58 void SetDescription(const char *description);
59
61 wxString GetDescription(){return m_Description;};
62
66 void AddAcceptedType(const char *label);
67
69 std::vector < wxString > *GetAcceptedTypeList(){return &m_AcceptedVmes;};
70
73 void SetWrongTypeNextBlock(const char *block);
74
76 wxString GetWrongTypeNextBlock(){return m_WrongTypeNextBlock;};
77
79 wxString GetNextBlock();
80
82 void EnableErrorMessage(bool enabled) {m_ErrorMessageEnabled=enabled;};
83
85 bool IsErrorMessageEnabled() {return m_ErrorMessageEnabled;};
86
87protected:
89 virtual void ExcutionBegin();
90
91private:
92
93 wxString m_Title;
94 wxString m_Description;
95
96 wxString m_VmeSelect;
97
98 int m_ErrorMessageEnabled;
99
100 std::vector <wxString> m_AcceptedVmes;
101 int m_TestPassed;
102
103 wxString m_WrongTypeNextBlock;
104};
105#endif
Class Name: albaWizardTypeFileExistCheck.
void EnableErrorMessage(bool enabled)
Enable/disable the visualization of error message box.
wxString GetNextBlock()
Return the name of the Block witch will be executed after this.
wxString GetWindowTitle()
Get The title of the window showed when the type check was not
void SetWrongTypeNextBlock(const char *block)
Set name of the Block called after wrong check.
void VmeSelect(const char *path)
Set the path for VME selection.
wxString GetWrongTypeNextBlock()
Get name of the Block called after wrong check.
void AddAcceptedType(const char *label)
Add a new accepted type.
bool IsErrorMessageEnabled()
Return true if error message show is enabled.
virtual void ExcutionBegin()
Starts the execution of the block.
wxString GetVmeSelect()
Get the path for VME selection.
wxString GetDescription()
Get The title of the selection window.
albaWizardBlockFileExistCheck(const char *name)
Default constructor.
void SetWindowTitle(const char *Title)
Set The title of the window showed when the type check was not
void SetDescription(const char *description)
Set The title of the selection window.
~albaWizardBlockFileExistCheck()
Default destructor.
std::vector< wxString > * GetAcceptedTypeList()
Returns the list of accepted types.
Class Name: albaWizardBlock.