ALBA
albaGUIRollOut.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIRollOut
5 Authors: Paolo Quadrani
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 __albaGUIRollOut_H__
18#define __albaGUIRollOut_H__
19//----------------------------------------------------------------------------
20// Include:
21//----------------------------------------------------------------------------
22#include "albaString.h"
23#include "albaObserver.h"
24
25//----------------------------------------------------------------------------
26// class forward :
27//----------------------------------------------------------------------------
28class albaGUI;
30
31//----------------------------------------------------------------------------
32// albaGUIRollOut :
33//----------------------------------------------------------------------------
39class ALBA_EXPORT albaGUIRollOut: public wxPanel
40{
41public:
42 albaGUIRollOut(albaGUI *parent, albaString title, albaGUI *roll_gui, int id = -1, bool rollOutOpen = true);
43 virtual ~albaGUIRollOut();
44
46 void RollOut(bool open = true);
47
48
49 void SetListener(albaObserver *listener) {m_Listener = listener;};
50
51protected:
53 void OnRollOut(wxCommandEvent &event);
54
59 DECLARE_EVENT_TABLE()
60};
61#endif
albaGUIPicButton inherit from wxBitmapButton.
This class plugs and manage a roll-out gui.
void OnRollOut(wxCommandEvent &event)
Answer the click on the Picture button to open/close the roll out gui.
albaGUIRollOut(albaGUI *parent, albaString title, albaGUI *roll_gui, int id=-1, bool rollOutOpen=true)
void SetListener(albaObserver *listener)
albaGUI * m_MainGui
Gui on which will be plugged the RollOut gui.
void RollOut(bool open=true)
Open/Close the Roll-out.
virtual ~albaGUIRollOut()
albaGUIPicButton * m_RollOutButton
Picture button representing the icon to open/close the roll out gui.
albaObserver * m_Listener
albaGUI * m_RollGui
Child gui that will be rolled out.
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
albaString - performs common string operations on c-strings.
Definition: albaString.h:43