ALBA
albaGUIHyperLink.h
Go to the documentation of this file.
1/*=========================================================================
2Program: AssemblerPro
3Module: albaGUIHyperLink.h
4Language: C++
5Date: $Date: 2021-01-01 12:00:00 $
6Version: $Revision: 1.0.0.0 $
7Authors: Nicola Vanella
8==========================================================================
9Copyright (c) BIC-IOR 2021 (https://github.com/IOR-BIC)
10
11This software is distributed WITHOUT ANY WARRANTY; without even
12the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13PURPOSE. See the above copyright notice for more information.
14=========================================================================*/
15
16#ifndef __albaGUIHyperLink_H__
17#define __albaGUIHyperLink_H__
18
19//----------------------------------------------------------------------------
20// Include:
21//----------------------------------------------------------------------------
22#include "albaObserver.h"
23
24//----------------------------------------------------------------------------
25// Forward references :
26//----------------------------------------------------------------------------
27
28//----------------------------------------------------------------------------
29// Class Name: albaGUIHyperLink
30// Class that handles a slider for visualizing or changing range.
31//----------------------------------------------------------------------------
32class albaGUIHyperLink : public wxStaticText
33{
34public:
35
37 albaGUIHyperLink(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxStaticTextNameStr);
38
40 void SetListener(albaObserver *listener) {m_Listener = listener;}
41
42 void SetText(wxString text) { m_ValueString = text; };
43 void SetUrl(wxString url) { m_URL = url; };
44
45protected:
46
48 void Initialize();
49
51 void OnMouse(wxMouseEvent &event);
52
54
55private:
56
57 wxString m_ValueString;
58 wxString m_URL;
59
61 DECLARE_EVENT_TABLE()
62};
63#endif // _albaGUIHyperLink_H_
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36