ALBA
albaWizardBlockInformation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaWizardBlockInformation
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 __albaWizardBlockInformation_H__
18#define __albaWizardBlockInformation_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
40 {
41 WIZARD_INFO_SHOW_ID = MINID,
42 };
43
45 albaWizardBlockInformation(const char *name);
46
49
51 void SetWindowTitle(const char *Title);
52
54 wxString GetWindowTitle() {return m_Title;};
55
57 void SetDescription(const char *description);
58
60 wxString GetDescription() {return m_Description;};
61
65 void SetImage(const char *imageFilename);
66
68 wxString GetImage() {return m_ImageFilename;};
69
71 void SetBoxLabel(const char *label);
72
74 wxString GetBoxLabel(){return m_BoxLabel;};
75
78
80 bool GetImagePositionToTop() { return m_HorizontalImage;};
81
84
86 bool GetImagePositionToLeft() { return !m_HorizontalImage;};
87
89 void SetImagePath(const char *path) {m_ImagesPath=path;};
90
92 wxString GetImagePath() { return m_ImagesPath;};
93
94protected:
95
97 virtual void ExcutionBegin();
98
100 virtual void OnEvent(albaEventBase *alba_event);
101
102private:
103
104 bool m_HorizontalImage;
105 int m_ShowBoxes;
106 wxString m_Title;
107 wxString m_Description;
108 wxString m_BoxLabel;
109 wxString m_ImageFilename;
110 wxString m_ImagesPath;
111};
112#endif
MINID
Definition: albaDecl.h:420
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
Class Name: albaWizardSelectionBlock.
~albaWizardBlockInformation()
Default destructor.
void SetDescription(const char *description)
Set The description.
void SetImagePath(const char *path)
Set the images path (default path is <ApplicationDirectory>\WizardImages)
void SetWindowTitle(const char *Title)
Set The title of the information window.
virtual void ExcutionBegin()
Starts the execution of the block.
wxString GetImage()
return current image filename
wxString GetImagePath()
Get the images path.
wxString GetDescription()
Get The description.
bool GetImagePositionToTop()
return true if image Position is set to top
void SetBoxLabel(const char *label)
Set the description box Label.
albaWizardBlockInformation(const char *name)
Default constructor.
virtual void OnEvent(albaEventBase *alba_event)
Event management.
wxString GetBoxLabel()
Get the description box Label.
wxString GetWindowTitle()
Get The title of the information window.
bool GetImagePositionToLeft()
return true if image Position is set to left
void SetImage(const char *imageFilename)
Set name of the window image if no image is setted no image will be showed The image will be stored i...
void SetImagePositionToTop()
Set Image Position To Top.
void SetImagePositionToLeft()
Set Image Position To Left.
Class Name: albaWizardBlock.