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

#include <albaGUIMDIChild.h>

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

Public Member Functions

 albaGUIMDIChild (wxMDIParentFrame *parent, albaView *view)
 
virtual ~albaGUIMDIChild ()
 
void SetListener (albaObserver *Listener)
 
void SetAllowCloseWindow (bool allow_close)
 
void EnableResize (bool enable=true)
 

Static Public Member Functions

static void OnQuit ()
 

Protected Member Functions

void OnSize (wxSizeEvent &event)
 
void OnSelect (wxCommandEvent &event)
 
void OnCloseWindow (wxCloseEvent &event)
 
void OnActivate (wxActivateEvent &event)
 
void OnMaximize (wxMaximizeEvent &event)
 

Protected Attributes

wxWindow * m_Win
 
albaViewm_View
 
albaObserverm_Listener
 
bool m_AllowCloseFlag
 
bool m_EnableResize
 

Static Protected Attributes

static bool m_Quitting
 

Detailed Description

Class Name: albaGUIMDIChild.

Represents the child frame in a MDI system. In ALBA it is used in combination with views that support viewport and eventually a gui area in which some widgets can be used, like windowing widgets.

Definition at line 37 of file albaGUIMDIChild.h.

Constructor & Destructor Documentation

◆ albaGUIMDIChild()

albaGUIMDIChild::albaGUIMDIChild ( wxMDIParentFrame *  parent,
albaView view 
)

constructor.

◆ ~albaGUIMDIChild()

virtual albaGUIMDIChild::~albaGUIMDIChild ( )
virtual

destructor.

Member Function Documentation

◆ SetListener()

void albaGUIMDIChild::SetListener ( albaObserver Listener)
inline

Set the listener object, i.e.

the object receiving events sent by this object

Definition at line 45 of file albaGUIMDIChild.h.

◆ OnQuit()

static void albaGUIMDIChild::OnQuit ( )
inlinestatic

Set the quitting flag.

Definition at line 48 of file albaGUIMDIChild.h.

◆ SetAllowCloseWindow()

void albaGUIMDIChild::SetAllowCloseWindow ( bool  allow_close)
inline

Allow to set the flag to avoid closing the view.

For instance when an operation is running or something else the vertical application don't want that the view must stay open.

Definition at line 53 of file albaGUIMDIChild.h.

◆ EnableResize()

void albaGUIMDIChild::EnableResize ( bool  enable = true)

Enable/disable resizing of the view.

◆ OnSize()

void albaGUIMDIChild::OnSize ( wxSizeEvent &  event)
protected

Adjust the child size.

◆ OnSelect()

void albaGUIMDIChild::OnSelect ( wxCommandEvent &  event)
protected

Send the event to select the owned view.

◆ OnCloseWindow()

void albaGUIMDIChild::OnCloseWindow ( wxCloseEvent &  event)
protected

Send the event to destroy the owned view.

◆ OnActivate()

void albaGUIMDIChild::OnActivate ( wxActivateEvent &  event)
protected

Send the event to select the owned view.

◆ OnMaximize()

void albaGUIMDIChild::OnMaximize ( wxMaximizeEvent &  event)
protected

Used to maximize view in remote application.

Member Data Documentation

◆ m_Win

wxWindow* albaGUIMDIChild::m_Win
protected

Definition at line 74 of file albaGUIMDIChild.h.

◆ m_View

albaView* albaGUIMDIChild::m_View
protected

Definition at line 75 of file albaGUIMDIChild.h.

◆ m_Listener

albaObserver* albaGUIMDIChild::m_Listener
protected

Definition at line 76 of file albaGUIMDIChild.h.

◆ m_Quitting

bool albaGUIMDIChild::m_Quitting
staticprotected

Definition at line 77 of file albaGUIMDIChild.h.

◆ m_AllowCloseFlag

bool albaGUIMDIChild::m_AllowCloseFlag
protected

Definition at line 78 of file albaGUIMDIChild.h.

◆ m_EnableResize

bool albaGUIMDIChild::m_EnableResize
protected

Definition at line 79 of file albaGUIMDIChild.h.


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