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

#include <albaGUIFrame.h>

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

Public Member Functions

 albaGUIFrame (const wxString &title, const wxPoint &pos, const wxSize &size)
 
 ~albaGUIFrame ()
 
void SetListener (albaObserver *Listener)
 
void Put (wxWindow *w)
 
void Update ()
 

Protected Member Functions

void OnMenu (wxCommandEvent &e)
 
void OnMenuOp (wxCommandEvent &e)
 
void OnUpdateUI (wxUpdateUIEvent &e)
 
void OnCloseWindow (wxCloseEvent &event)
 
void OnSize (wxSizeEvent &event)
 
void OnSashDrag (wxSashEvent &event)
 
void OnLayout (wxCommandEvent &event)
 
void LayoutWindow ()
 
void CreateStatusbar ()
 

Protected Attributes

albaObserverm_Listener
 
wxWindow * m_ClientWin
 

Detailed Description

Class Name: albaGUIFrame.

A frame is a window whose position and size can be changed by the user. It can have borders and a title bar, and can optionally contain a menu bar, toolbar and status bar. Inherit from wxFrame and override several methods of it.

Definition at line 35 of file albaGUIFrame.h.

Constructor & Destructor Documentation

◆ albaGUIFrame()

albaGUIFrame::albaGUIFrame ( const wxString &  title,
const wxPoint &  pos,
const wxSize &  size 
)

constructor.

◆ ~albaGUIFrame()

albaGUIFrame::~albaGUIFrame ( )

destructor.

Member Function Documentation

◆ SetListener()

void albaGUIFrame::SetListener ( albaObserver Listener)
inline

Set the Listener that will receive event-notification.

Definition at line 44 of file albaGUIFrame.h.

◆ Put()

void albaGUIFrame::Put ( wxWindow *  w)

Set the window shown on the Client Area, (hide the previous contents).

◆ Update()

void albaGUIFrame::Update ( )
inline

Redraw the frame.

Definition at line 50 of file albaGUIFrame.h.

◆ OnMenu()

void albaGUIFrame::OnMenu ( wxCommandEvent &  e)
protected

Send an event with the men item's id.

◆ OnMenuOp()

void albaGUIFrame::OnMenuOp ( wxCommandEvent &  e)
protected

Send an event with the men operation's id.

◆ OnUpdateUI()

void albaGUIFrame::OnUpdateUI ( wxUpdateUIEvent &  e)
protected

Send an event with the UI item's id.

◆ OnCloseWindow()

void albaGUIFrame::OnCloseWindow ( wxCloseEvent &  event)
protected

Send an event with the men 'Quit' item's id.

◆ OnSize()

void albaGUIFrame::OnSize ( wxSizeEvent &  event)
protected

Redraw the frame.

◆ OnSashDrag()

void albaGUIFrame::OnSashDrag ( wxSashEvent &  event)
protected

Redraw the frame's sash panel.

◆ OnLayout()

void albaGUIFrame::OnLayout ( wxCommandEvent &  event)
protected

Call LayoutWindow() method.

◆ LayoutWindow()

void albaGUIFrame::LayoutWindow ( )
protected

Redraw method.

◆ CreateStatusbar()

void albaGUIFrame::CreateStatusbar ( )
protected

Create the status bar into the main frame.

Member Data Documentation

◆ m_Listener

albaObserver* albaGUIFrame::m_Listener
protected

Definition at line 80 of file albaGUIFrame.h.

◆ m_ClientWin

wxWindow* albaGUIFrame::m_ClientWin
protected

Definition at line 81 of file albaGUIFrame.h.


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