X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2432b92dd7a837db13d3938a56c1959decd03203..2ed57eb790d9e1f18adb50ec122f1ee17152018c:/include/wx/propform.h diff --git a/include/wx/propform.h b/include/wx/propform.h index b731da2d34..4acff593bb 100644 --- a/include/wx/propform.h +++ b/include/wx/propform.h @@ -26,7 +26,7 @@ #define wxID_PROP_UPDATE 3101 // Mediates between a physical panel and the property sheet -class wxPropertyFormView: public wxPropertyView +class WXDLLEXPORT wxPropertyFormView: public wxPropertyView { DECLARE_DYNAMIC_CLASS(wxPropertyFormView) public: @@ -61,7 +61,7 @@ class wxPropertyFormView: public wxPropertyView void OnUpdate(wxCommandEvent& event); void OnRevert(wxCommandEvent& event); - virtual bool OnClose(void); + virtual bool OnClose(); virtual void OnDoubleClick(wxControl *item); // TODO: does OnCommand still get called...??? @@ -109,7 +109,7 @@ DECLARE_EVENT_TABLE() * assocated with a window. It's that kinda thing. */ -class wxPropertyFormValidator: public wxPropertyValidator +class WXDLLEXPORT wxPropertyFormValidator: public wxPropertyValidator { DECLARE_DYNAMIC_CLASS(wxPropertyFormValidator) protected: @@ -143,7 +143,7 @@ class wxPropertyFormValidator: public wxPropertyValidator * Some default validators */ -class wxRealFormValidator: public wxPropertyFormValidator +class WXDLLEXPORT wxRealFormValidator: public wxPropertyFormValidator { DECLARE_DYNAMIC_CLASS(wxRealFormValidator) public: @@ -164,7 +164,7 @@ class wxRealFormValidator: public wxPropertyFormValidator float m_realMax; }; -class wxIntegerFormValidator: public wxPropertyFormValidator +class WXDLLEXPORT wxIntegerFormValidator: public wxPropertyFormValidator { DECLARE_DYNAMIC_CLASS(wxIntegerFormValidator) public: @@ -184,7 +184,7 @@ class wxIntegerFormValidator: public wxPropertyFormValidator long m_integerMax; }; -class wxBoolFormValidator: public wxPropertyFormValidator +class WXDLLEXPORT wxBoolFormValidator: public wxPropertyFormValidator { DECLARE_DYNAMIC_CLASS(wxBoolFormValidator) protected: @@ -199,7 +199,7 @@ class wxBoolFormValidator: public wxPropertyFormValidator bool OnDisplayValue(wxProperty *property, wxPropertyFormView *view, wxWindow *parentWindow); }; -class wxStringFormValidator: public wxPropertyFormValidator +class WXDLLEXPORT wxStringFormValidator: public wxPropertyFormValidator { DECLARE_DYNAMIC_CLASS(wxStringFormValidator) public: @@ -223,14 +223,15 @@ class wxStringFormValidator: public wxPropertyFormValidator * A default dialog box class to use. */ -class wxPropertyFormDialog: public wxDialog +class WXDLLEXPORT wxPropertyFormDialog: public wxDialog { DECLARE_CLASS(wxPropertyFormDialog) public: wxPropertyFormDialog(wxPropertyFormView *v, wxWindow *parent, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE, const wxString& name = "dialogBox"); - bool OnClose(void); + + void OnCloseWindow(wxCloseEvent& event); void OnDefaultAction(wxControl *item); void OnCommand(wxWindow& win, wxCommandEvent& event); @@ -239,13 +240,15 @@ class wxPropertyFormDialog: public wxDialog private: wxPropertyFormView* m_view; + +DECLARE_EVENT_TABLE() }; /* * A default panel class to use. */ -class wxPropertyFormPanel: public wxPanel +class WXDLLEXPORT wxPropertyFormPanel: public wxPanel { DECLARE_CLASS(wxPropertyFormPanel) public: @@ -269,7 +272,7 @@ class wxPropertyFormPanel: public wxPanel * A default frame class to use. */ -class wxPropertyFormFrame: public wxFrame +class WXDLLEXPORT wxPropertyFormFrame: public wxFrame { DECLARE_CLASS(wxPropertyFormFrame) public: @@ -281,7 +284,7 @@ class wxPropertyFormFrame: public wxFrame m_view = v; m_propertyPanel = NULL; } - bool OnClose(void); + void OnCloseWindow(wxCloseEvent& event); // Must call this to create panel and associate view virtual bool Initialize(void); @@ -291,6 +294,8 @@ class wxPropertyFormFrame: public wxFrame private: wxPropertyFormView* m_view; wxPanel* m_propertyPanel; + +DECLARE_EVENT_TABLE() }; #endif