ALBA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
albaGUIPanelStack Class Reference

#include <albaGUIPanelStack.h>

Inheritance diagram for albaGUIPanelStack:
Inheritance graph
[legend]
Collaboration diagram for albaGUIPanelStack:
Collaboration graph
[legend]

Public Member Functions

 albaGUIPanelStack (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
 
virtual ~albaGUIPanelStack ()
 
bool Put (albaGUIPanel *p)
 
bool Remove (albaGUIPanel *p)
 
void Push (albaGUIPanel *p)
 
void Pop ()
 
- Public Member Functions inherited from albaGUIPanel
 albaGUIPanel (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
 

Protected Member Functions

void OnSize (wxSizeEvent &event)
 
void DoLayout ()
 

Protected Attributes

wxBoxSizer * m_Sizer
 
albaGUIPanelm_CurrentPanel
 

Additional Inherited Members

- Public Attributes inherited from albaGUIPanel
albaGUIPanelm_NextPanel
 

Detailed Description

class name: albaGUIPanelStack Panel with the same behaviour of a stack container (push and pop methods)

Definition at line 27 of file albaGUIPanelStack.h.

Constructor & Destructor Documentation

◆ albaGUIPanelStack()

albaGUIPanelStack::albaGUIPanelStack ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = "panel" 
)

constructor

◆ ~albaGUIPanelStack()

virtual albaGUIPanelStack::~albaGUIPanelStack ( )
virtual

destructor

Member Function Documentation

◆ Put()

bool albaGUIPanelStack::Put ( albaGUIPanel p)

Put the panel on the panel stack removing the previous panel.

◆ Remove()

bool albaGUIPanelStack::Remove ( albaGUIPanel p)

Remove the panel from the stack.

◆ Push()

void albaGUIPanelStack::Push ( albaGUIPanel p)

Insert the panel into the stack.

◆ Pop()

void albaGUIPanelStack::Pop ( )

Retrieve the last pushed panel.

◆ OnSize()

void albaGUIPanelStack::OnSize ( wxSizeEvent &  event)
protected

Call DoLayout.

◆ DoLayout()

void albaGUIPanelStack::DoLayout ( )
protected

Adjust the size calling wxPanel::OnSize.

Member Data Documentation

◆ m_Sizer

wxBoxSizer* albaGUIPanelStack::m_Sizer
protected

Definition at line 55 of file albaGUIPanelStack.h.

◆ m_CurrentPanel

albaGUIPanel* albaGUIPanelStack::m_CurrentPanel
protected

Definition at line 56 of file albaGUIPanelStack.h.


The documentation for this class was generated from the following file: