NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
ViewerFrame Class Reference

This class generalizes a set of basic floating window functionalities like being closable by pressing ESC or to get the keyboard focus automatically. More...

#include <viewerframe.hpp>

Inheritance diagram for ViewerFrame:
Collaboration diagram for ViewerFrame:

Public Member Functions

 ViewerFrame (wxWindow *parent, const wxString &title)
 
void OnKeyDown (wxKeyEvent &event)
 This event handler closes the frame, if the user presses ESC. More...
 
void OnFocus (wxFocusEvent &event)
 This event handler passes the keyboard focus down to the first child in the window list, if the frame gets keyboard focus. More...
 
void OnEnter (wxMouseEvent &event)
 This event handler get the keyboard focus, if the user enters with the mouse. More...
 
void OnClose (wxCloseEvent &event)
 This event handler informs all child windows that this frame will now close. It furthermore automatically unregisters itself in the opened window list. More...
 
 DECLARE_EVENT_TABLE ()
 

Detailed Description

This class generalizes a set of basic floating window functionalities like being closable by pressing ESC or to get the keyboard focus automatically.

Definition at line 30 of file viewerframe.hpp.

Constructor & Destructor Documentation

◆ ViewerFrame()

ViewerFrame::ViewerFrame ( wxWindow *  parent,
const wxString &  title 
)
inline

Definition at line 33 of file viewerframe.hpp.

Member Function Documentation

◆ DECLARE_EVENT_TABLE()

ViewerFrame::DECLARE_EVENT_TABLE ( )

◆ OnClose()

void ViewerFrame::OnClose ( wxCloseEvent &  event)

This event handler informs all child windows that this frame will now close. It furthermore automatically unregisters itself in the opened window list.

Parameters
eventwxCloseEvent&
Returns
void

Definition at line 93 of file viewerframe.cpp.

◆ OnEnter()

void ViewerFrame::OnEnter ( wxMouseEvent &  event)

This event handler get the keyboard focus, if the user enters with the mouse.

Parameters
eventwxMouseEvent&
Returns
void

Definition at line 73 of file viewerframe.cpp.

◆ OnFocus()

void ViewerFrame::OnFocus ( wxFocusEvent &  event)

This event handler passes the keyboard focus down to the first child in the window list, if the frame gets keyboard focus.

Parameters
eventwxFocusEvent&
Returns
void

Definition at line 56 of file viewerframe.cpp.

◆ OnKeyDown()

void ViewerFrame::OnKeyDown ( wxKeyEvent &  event)

This event handler closes the frame, if the user presses ESC.

Parameters
eventwxKeyEvent&
Returns
void

Definition at line 38 of file viewerframe.cpp.


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