20#include "../NumeReWindow.h"
41 if (event.GetKeyCode() == WXK_ESCAPE)
58 this->SetTransparent(wxIMAGE_ALPHA_OPAQUE);
59 if (this->GetChildren().size())
60 this->GetChildren().front()->SetFocus();
75 if (this->GetChildren().size())
76 this->GetChildren().front()->SetFocus();
95 auto children = this->GetChildren();
99 for (
auto iter = children.begin(); iter != children.end(); iter++)
100 static_cast<wxWindow*
>(*iter)->Close();
105 static_cast<NumeReWindow*
>(GetParent())->unregisterWindow(
this);
This class is the actual NumeRe main frame. The application's logic is implemented here.
This class generalizes a set of basic floating window functionalities like being closable by pressing...
void OnEnter(wxMouseEvent &event)
This event handler get the keyboard focus, if the user enters with the mouse.
void OnFocus(wxFocusEvent &event)
This event handler passes the keyboard focus down to the first child in the window list,...
void OnClose(wxCloseEvent &event)
This event handler informs all child windows that this frame will now close. It furthermore automatic...
void OnKeyDown(wxKeyEvent &event)
This event handler closes the frame, if the user presses ESC.