#include "wx/validate.h"
#include "wx/cursor.h"
#include "wx/font.h"
-#include "wx/dc.h"
#include "wx/region.h"
-#include "wx/dnd.h"
#include "wx/accel.h"
//-----------------------------------------------------------------------------
extern const char *wxFrameNameStr;
extern wxList wxTopLevelWindows;
+//-----------------------------------------------------------------------------
+// global function
+//-----------------------------------------------------------------------------
+
+wxWindow* wxGetActiveWindow();
+
//-----------------------------------------------------------------------------
// classes
//-----------------------------------------------------------------------------
class wxLayoutConstraints;
class wxSizer;
+class wxDC;
+class wxClientData;
+class wxVoidClientData;
+class wxWindow;
#if wxUSE_WX_RESOURCES
class wxResourceTable;
class wxItemResource;
#endif
-
-class wxClientData;
-class wxVoidClientData;
-class wxWindow;
+#if wxUSE_DRAG_AND_DROP
+class wxDropTarget;
+#endif
//-----------------------------------------------------------------------------
// callback definition for inserting a window (internal)
{ 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 );
+#if wxUSE_DRAG_AND_DROP
virtual void SetDropTarget( wxDropTarget *dropTarget );
virtual wxDropTarget *GetDropTarget() const;
+#endif
virtual void SetScrollbar( int orient, int pos, int thumbVisible,
int range, bool refresh = TRUE );
// 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;
+#if wxUSE_DRAG_AND_DROP
wxDropTarget *m_dropTarget;
+#endif
wxWindowID m_windowId;
wxCursor *m_cursor;
wxFont m_font;