ALBA
albaGUISashPanel.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUISashPanel
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 __albaGUISashPanel_H__
17#define __albaGUISashPanel_H__
18//----------------------------------------------------------------------------
19// Include:
20//----------------------------------------------------------------------------
21#include <wx/laywin.h>
22#include "albaGUIPanel.h"
23//----------------------------------------------------------------------------
24// albaGUISashPanel :
55//----------------------------------------------------------------------------
56class albaGUISashPanel: public wxSashLayoutWindow
57{
58public:
59 albaGUISashPanel (wxWindow* parent,
60 wxWindowID id =-1,
61 wxDirection side = wxRIGHT,
62 int defaultsize = 100,
63 wxString menu_string = "",
64 bool sizable = true);
66
68 bool Put(wxWindow* win);
69
71 virtual bool Show(bool show);
72 wxWindow *GetCurrGui() {return m_CurrentGui;};
73
74protected:
75 wxWindow *m_CurrentGui;
76 wxMenuBar *m_MenuBar;
77 wxFrame *m_Frame;
78
79 virtual void OnHide( wxCommandEvent &event );
80DECLARE_EVENT_TABLE()
81};
82#endif
albaGUISashPanel is a wxSashLayoutWindow, that is a user-resizable panel docked on one side of the fr...
virtual ~albaGUISashPanel()
virtual bool Show(bool show)
Show/Hide the Sash panel.
wxWindow * m_CurrentGui
virtual void OnHide(wxCommandEvent &event)
albaGUISashPanel(wxWindow *parent, wxWindowID id=-1, wxDirection side=wxRIGHT, int defaultsize=100, wxString menu_string="", bool sizable=true)
bool Put(wxWindow *win)
Put the panel on the panel stack removing the previous panel.
wxWindow * GetCurrGui()
wxMenuBar * m_MenuBar