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 SetAlbaBuildNum(wxString revision);
58 void SetAppBuildNum(wxString revision);
59 void SetWebSite(wxString webSite);
60 void SetLicenseURL(wxString licenseURL);
61 void SetExtraMessage(wxString message);
62
64 bool ShowModal();
65
66protected:
67 wxStaticText* AddText(albaGUIDialog * dialog, wxString &text, int Width, int align);
68
69 wxString GetBuildDate();
70
73
74 wxString m_Title;
76 wxString m_AppBuildNum;
77 wxString m_BuildDate;
78 wxString m_ImagePath;
79 wxString m_WebSiteURL;
80 wxString m_LicenseURL;
82};
83#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 SetAlbaBuildNum(wxString revision)
void SetTitle(wxString title)
albaGUIAboutDialog(wxString dialog_title=_("About Dialog"))
constructor
void SetWebSite(wxString webSite)
albaGUIDialog * m_AboutDialog
~albaGUIAboutDialog()
destructor
bool ShowModal()
Show the Settings Dialog.
void SetExtraMessage(wxString message)
wxStaticText * AddText(albaGUIDialog *dialog, wxString &text, int Width, int align)
void SetAppBuildNum(wxString revision)
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