ALBA
albaWizardBlock.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaWizardBlock
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 __albaWizardBlock_H__
18#define __albaWizardBlock_H__
19
20//----------------------------------------------------------------------------
21// includes :
22//----------------------------------------------------------------------------
23#include "albaDefines.h"
24#include "albaEvent.h"
25#include "albaServiceClient.h"
26#include "albaAbsLogicManager.h"
27
28//----------------------------------------------------------------------------
29// forward reference
30//----------------------------------------------------------------------------
31
36class ALBA_EXPORT albaWizardBlock: public albaServiceClient
37{
38public:
39
43 albaWizardBlock(const char *name);
44
47
48
50 wxString GetName();
51
52
59 virtual void SetNextBlock(const char *block);
60
62 virtual wxString GetNextBlock();
63
65 virtual void Delete(){delete this;};
66
69
71 void SetDescriptionLabel(const char *label);
72
74 void SetNextBlockOnAbort(const char *label);
75
77 virtual void Abort();
78
80 void SetBlockProgress(int progress){m_BlockProgress=progress;};
81
83 int GetBlockProgress(){return m_BlockProgress;};
84
85protected:
86
88 virtual void ExcutionBegin();
89
91 virtual void ExcutionEnd();
92
95
97 void SetListener(albaObserver *Listener);
98
100 int Success();
101
104 virtual wxString GetRequiredOperation();
105
106 wxString m_Name;
107 wxString m_BlockType;
108 wxString m_AbortBlock;
109 wxString m_NextBlock;
117
118private:
119
120 friend class albaWizard; // class albaWizard can now access data directly
121};
122#endif
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
albaString - performs common string operations on c-strings.
Definition: albaString.h:43
albaVME -
Definition: albaVME.h:150
Class Name: albaWizardBlock.
virtual wxString GetNextBlock()
Return the name of the Block witch will be executed after this.
void SetSelectedVME(albaVME *node)
Set the selected VME, this function must be called before execution begin.
virtual void ExcutionEnd()
Ends the execution of the block.
void SetNextBlockOnAbort(const char *label)
Set a Label containing a description of the the current step.
virtual wxString GetRequiredOperation()
Returns the name of the operation required by this block Return an empty string if no operation is re...
virtual void ExcutionBegin()
Starts the execution of the block.
wxString GetName()
Get the name of the block.
virtual void SetNextBlock(const char *block)
Set name of the Block called after operation.
albaVME * m_SelectedVME
Pointer to the current selected node.
void SetDescriptionLabel(const char *label)
Set a Label containing a description of the the current step.
void SetBlockProgress(int progress)
Set the progress associated to this block.
virtual void Abort()
Abort the execution of the block.
int Success()
Return true if the user has aborted the operation.
virtual void Delete()
Called to clean up memory.
albaString m_DescriptionLabel
albaVME * m_InputVME
The vme selected on operation start.
albaObserver * m_Listener
void SetListener(albaObserver *Listener)
Sets The event listener.
albaString GetDescriptionLabel()
Get a Label containing a description of the the current step.
albaWizardBlock(const char *name)
Default constructor Requires the name of the block "START","END" are reserved.
int GetBlockProgress()
Get the progress associated to this block.
virtual ~albaWizardBlock()
Default destructor.
Class Name: albaWizard.
Definition: albaWizard.h:46