ALBA
albaGUISplittedPanel.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUISplittedPanel
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 __albaGUISplittedPanel_H__
17#define __albaGUISplittedPanel_H__
18//----------------------------------------------------------------------------
19// Include:
20//----------------------------------------------------------------------------
21#include <wx/laywin.h>
22#include "albaDefines.h"
23#include "albaGUIPanel.h"
24
25//----------------------------------------------------------------------------
26// albaGUISplittedPanel :
32//----------------------------------------------------------------------------
33class ALBA_EXPORT albaGUISplittedPanel: public albaGUIPanel
34{
35public:
36 albaGUISplittedPanel(wxWindow* parent,wxWindowID id = -1,int size = 100);
38
40 void PutOnTop(wxWindow *w);
41
43 void PutOnBottom(wxWindow *w);
44
45protected:
46 wxSashLayoutWindow *m_Bottom;
47 wxWindow *m_TopPanel;
48 wxWindow *m_BottomPanel;
49
51 void OnSize(wxSizeEvent& event);
52
54 void OnSashDrag(wxSashEvent& event);
55
57 void DoLayout();
58
59DECLARE_EVENT_TABLE()
60};
61#endif
class name: albaGUIPanel Inherits directly from wxPanel and adds the pointer to the next panel
Definition: albaGUIPanel.h:27
albaGUISplittedPanel is a wxPanel with a user-draggable splitter that divide it in two sections verti...
void PutOnBottom(wxWindow *w)
Put on bottom the window.
void DoLayout()
Readistribute the interface according to the new size.
void PutOnTop(wxWindow *w)
Put on top the window.
albaGUISplittedPanel(wxWindow *parent, wxWindowID id=-1, int size=100)
wxSashLayoutWindow * m_Bottom
void OnSize(wxSizeEvent &event)
Call Dolayout.
void OnSashDrag(wxSashEvent &event)
Readraw the Sash panel.
virtual ~albaGUISplittedPanel()