ALBA
albaGUIAboutDialog.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIAboutDialog
5 Authors: Nicola Vanella
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 __albaGUIAboutDialog_H__
18#define __albaGUIAboutDialog_H__
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaEvent.h"
24#include "albaObserver.h"
25
26//----------------------------------------------------------------------------
27// forward declarations :
28//----------------------------------------------------------------------------
29
30class albaGUI;
31class albaGUIHolder;
32class albaGUIBitmaps;
33class albaGUIDialog;
34class wxImage;
35
40class ALBA_EXPORT albaGUIAboutDialog : public albaObserver
41{
42
43public:
45 albaGUIAboutDialog(wxString dialog_title = _("About Dialog"));
46
48
51
53 void OnEvent(albaEventBase *alba_event);
54
55 void SetImagePath(wxString imagePath) { m_ImagePath = imagePath; };
56 void SetTitle(wxString title) { m_Title = title; };
57 void SetBuildNum(wxString revision);
58 void SetBuildDate(wxString date) { m_BuildDate = date; };
59 void SetVersion(wxString ver) { m_Version = ver; };
60 void SetWebSite(wxString webSite);
61 void SetLicenseURL(wxString licenseURL);
62 void SetExtraMessage(wxString message);
63
65 bool ShowModal();
66
67protected:
68 wxStaticText* AddText(albaGUIDialog * dialog, wxString &text, int Width, int align);
69
70 wxString GetBuildDate();
71
74
75 wxString m_Title;
76 wxString m_BuildNum;
77 wxString m_BuildDate;
78 wxString m_Version;
79 wxString m_ImagePath;
80 wxString m_WebSiteURL;
81 wxString m_LicenseURL;
83};
84#endif // _albaGUIAboutDialog_H_
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
class name: albaGUIAboutDialog.
void OnEvent(albaEventBase *alba_event)
Answer to the messages coming from interface.
void SetImagePath(wxString imagePath)
wxString GetBuildDate()
void SetTitle(wxString title)
albaGUIAboutDialog(wxString dialog_title=_("About Dialog"))
constructor
void SetBuildDate(wxString date)
void SetVersion(wxString ver)
void SetWebSite(wxString webSite)
albaGUIDialog * m_AboutDialog
void SetBuildNum(wxString revision)
~albaGUIAboutDialog()
destructor
bool ShowModal()
Show the Settings Dialog.
void SetExtraMessage(wxString message)
wxStaticText * AddText(albaGUIDialog *dialog, wxString &text, int Width, int align)
void SetLicenseURL(wxString licenseURL)
albaGUIDialog is the base class for albaDialogs.
Definition: albaGUIDialog.h:76
class name: albaGUIHolder Secialized panel in which a developer can put a albaGUI.
Definition: albaGUIHolder.h:32
albaGUI is a panel with function to easily create GUI.
Definition: albaGUI.h:110
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36