NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
viewerframe.hpp
Go to the documentation of this file.
1/*****************************************************************************
2 NumeRe: Framework fuer Numerische Rechnungen
3 Copyright (C) 2017 Erik Haenel et al.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17******************************************************************************/
18
19#include <wx/wx.h>
20
21#ifndef VIEWERFRAME_HPP
22#define VIEWERFRAME_HPP
23
30class ViewerFrame : public wxFrame
31{
32 public:
33 ViewerFrame(wxWindow* parent, const wxString& title) : wxFrame(parent, wxID_ANY, title, wxDefaultPosition, wxDefaultSize, wxFRAME_FLOAT_ON_PARENT | wxRESIZE_BORDER | wxCAPTION | wxCLOSE_BOX | wxMAXIMIZE_BOX | wxMINIMIZE_BOX) {};
34
35 void OnKeyDown(wxKeyEvent& event);
36 void OnFocus(wxFocusEvent& event);
37 void OnEnter(wxMouseEvent& event);
38 void OnClose(wxCloseEvent& event);
39
41};
42
43#endif
44
#define wxCLOSE_BOX
This class generalizes a set of basic floating window functionalities like being closable by pressing...
Definition: viewerframe.hpp:31
ViewerFrame(wxWindow *parent, const wxString &title)
Definition: viewerframe.hpp:33
void OnEnter(wxMouseEvent &event)
This event handler get the keyboard focus, if the user enters with the mouse.
Definition: viewerframe.cpp:73
void OnFocus(wxFocusEvent &event)
This event handler passes the keyboard focus down to the first child in the window list,...
Definition: viewerframe.cpp:56
void OnClose(wxCloseEvent &event)
This event handler informs all child windows that this frame will now close. It furthermore automatic...
Definition: viewerframe.cpp:93
void OnKeyDown(wxKeyEvent &event)
This event handler closes the frame, if the user presses ESC.
Definition: viewerframe.cpp:38