wxX11:
Corrected TLW positiong. Added experimental code for synthesizing focus events. Minor clean-ups. Added for-now unused code for default/focus widget. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -67,6 +67,9 @@ public:
|
||||
|
||||
// implementation from now on
|
||||
// --------------------------
|
||||
|
||||
void SetFocusWidget( wxWindow *focus ) { m_focusWidget = focus; }
|
||||
wxWindow *GetFocusWidget() const { return m_focusWidget; }
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
@@ -83,19 +86,22 @@ protected:
|
||||
int sizeFlags = wxSIZE_AUTO);
|
||||
virtual void DoGetPosition( int *x, int *y ) const;
|
||||
|
||||
// is the frame currently iconized?
|
||||
// Is the frame currently iconized?
|
||||
bool m_iconized;
|
||||
|
||||
// should the frame be maximized when it will be shown? set by Maximize()
|
||||
// Should the frame be maximized when it will be shown? set by Maximize()
|
||||
// when it is called while the frame is hidden
|
||||
bool m_maximizeOnShow;
|
||||
|
||||
// Data to save/restore when calling ShowFullScreen
|
||||
long m_fsStyle; // Passed to ShowFullScreen
|
||||
long m_fsStyle; // Passed to ShowFullScreen
|
||||
wxRect m_fsOldSize;
|
||||
bool m_fsIsMaximized;
|
||||
bool m_fsIsShowing;
|
||||
wxString m_title;
|
||||
|
||||
// This widget gets the key input
|
||||
wxWindow* m_focusWidget;
|
||||
};
|
||||
|
||||
// list of all frames and modeless dialogs
|
||||
|
@@ -145,6 +145,10 @@ public:
|
||||
// For compatibility across platforms (not in event table)
|
||||
void OnIdle(wxIdleEvent& WXUNUSED(event)) {}
|
||||
|
||||
// Go up to a toplevel window and query which window has the focus.
|
||||
// May return NULL.
|
||||
wxWindow *GetFocusWidget();
|
||||
|
||||
protected:
|
||||
// Makes an adjustment to the window position (for example, a frame that has
|
||||
// a toolbar that it manages itself).
|
||||
|
Reference in New Issue
Block a user