ALBA
albaGUIHolder.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIHolder
5 Authors: Silvano Imboden
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#ifndef __albaGUIHolder_H__
17#define __albaGUIHolder_H__
18//----------------------------------------------------------------------------
19// Include:
20//----------------------------------------------------------------------------
21#include <wx/scrolwin.h>
22#include "albaGUINamedPanel.h"
24#include "albaGUI.h"
25
26
31class ALBA_EXPORT albaGUIHolder: public albaGUINamedPanel
32{
33public:
35 albaGUIHolder(wxWindow* parent,wxWindowID id, bool CloseButton=false, bool HideTitle = false );
37 virtual ~albaGUIHolder();
38
40 wxPanel* GetPanel() {return (wxPanel*)m_Panel;};
41
43 bool Put(albaGUI *gui);
44
47
49 wxWindow *GetCurrentGui();
50
51protected:
53
55DECLARE_EVENT_TABLE()
56};
57#endif
class name: albaGUIHolder Secialized panel in which a developer can put a albaGUI.
Definition: albaGUIHolder.h:32
albaGUIScrolledPanel * m_Panel
Definition: albaGUIHolder.h:52
albaGUIHolder(wxWindow *parent, wxWindowID id, bool CloseButton=false, bool HideTitle=false)
constructor
bool Put(albaGUI *gui)
Put the gui onto the panel removing the previous gui.
virtual ~albaGUIHolder()
destructor
bool RemoveCurrentGui()
Remove the current gui.
wxWindow * GetCurrentGui()
retrieve the current gui
wxPanel * GetPanel()
Return the panel that held the gui.
Definition: albaGUIHolder.h:40
Class Name: albaGUINamedPanel.
albaGUIScrolledPanel is a Panel on which is possible to add child-widget.
albaGUI is a panel with function to easily create GUI.
Definition: albaGUI.h:110