extern const char *wxFrameNameStr;
extern wxList wxTopLevelWindows;
+//-----------------------------------------------------------------------------
+// global function
+//-----------------------------------------------------------------------------
+
+wxWindow* wxGetActiveWindow();
+
//-----------------------------------------------------------------------------
// classes
//-----------------------------------------------------------------------------
class wxClientData;
class wxVoidClientData;
class wxWindow;
-#ifdef wxUSE_WX_RESOURCES
+#if wxUSE_WX_RESOURCES
class wxResourceTable;
class wxItemResource;
#endif
-#ifdef wxUSE_DRAG_AND_DROP
+#if wxUSE_DRAG_AND_DROP
class wxDropTarget;
#endif
{ wxPoint pt(ConvertDialogToPixels(wxPoint(sz.x, sz.y))); return wxSize(pt.x, pt.y); }
void OnSize( wxSizeEvent &event );
- void OnIdle( wxIdleEvent& event );
virtual bool Show( bool show );
virtual void Enable( bool enable );
virtual wxString GetLabel() const;
void OnSysColourChanged( wxSysColourChangedEvent &WXUNUSED(event) ) {};
+ void OnKeyDown( wxKeyEvent &event );
virtual bool IsShown() const;
virtual bool PopupMenu( wxMenu *menu, int x, int y );
-#ifdef wxUSE_DRAG_AND_DROP
+#if wxUSE_DRAG_AND_DROP
virtual void SetDropTarget( wxDropTarget *dropTarget );
virtual wxDropTarget *GetDropTarget() const;
#endif
// implementation
- void PreCreation( wxWindow *parent, wxWindowID id, const wxPoint &pos,
- const wxSize &size, long style, const wxString &name );
- void PostCreation();
- virtual GtkWidget *GetConnectWidget();
- virtual bool IsOwnGtkWindow( GdkWindow *window );
- void ConnectWidget( GtkWidget *widget );
-
- bool HasVMT();
+ void PreCreation( wxWindow *parent, wxWindowID id, const wxPoint &pos,
+ const wxSize &size, long style, const wxString &name );
+ void PostCreation();
+
+ virtual GtkWidget* GetConnectWidget();
+ virtual bool IsOwnGtkWindow( GdkWindow *window );
+ void ConnectWidget( GtkWidget *widget );
- virtual wxPoint GetClientAreaOrigin() const;
- virtual void AdjustForParentClientOrigin( int& x, int& y, int sizeFlags );
+ bool HasVMT();
- GtkStyle *GetWidgetStyle();
- void SetWidgetStyle();
- virtual void ApplyWidgetStyle();
+ virtual wxPoint GetClientAreaOrigin() const;
+ virtual void AdjustForParentClientOrigin( int& x, int& y, int sizeFlags );
+ GtkStyle *GetWidgetStyle();
+ void SetWidgetStyle();
+ virtual void ApplyWidgetStyle();
+
+ virtual void OnInternalIdle();
wxWindow *m_parent;
wxList m_children;
int m_retCode;
wxEvtHandler *m_eventHandler;
wxValidator *m_windowValidator;
-#ifdef wxUSE_DRAG_AND_DROP
+#if wxUSE_DRAG_AND_DROP
wxDropTarget *m_dropTarget;
#endif
wxWindowID m_windowId;