ALBA
albaGUIPanelStack.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIPanelStack
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 __albaGUIPanelStack_H__
17#define __albaGUIPanelStack_H__
18//----------------------------------------------------------------------------
19// Include:
20//----------------------------------------------------------------------------
21#include <wx/laywin.h>
22#include "albaGUIPanel.h"
28{
29public:
31 albaGUIPanelStack(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = "panel");
35
37 bool Put(albaGUIPanel* p);
38
41
44
46 void Pop ();
47
48protected:
50 void OnSize(wxSizeEvent& event);
51
53 void DoLayout();
54
55 wxBoxSizer *m_Sizer;
58DECLARE_EVENT_TABLE()
59};
60#endif
class name: albaGUIPanelStack Panel with the same behaviour of a stack container (push and pop method...
void Pop()
Retrieve the last pushed panel.
void OnSize(wxSizeEvent &event)
Call DoLayout.
void Push(albaGUIPanel *p)
Insert the panel into the stack.
bool Put(albaGUIPanel *p)
Put the panel on the panel stack removing the previous panel.
albaGUIPanel * m_CurrentPanel
virtual ~albaGUIPanelStack()
destructor
wxBoxSizer * m_Sizer
void DoLayout()
Adjust the size calling wxPanel::OnSize.
bool Remove(albaGUIPanel *p)
Remove the panel from the stack.
albaGUIPanelStack(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
constructor
class name: albaGUIPanel Inherits directly from wxPanel and adds the pointer to the next panel
Definition: albaGUIPanel.h:27