X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2432b92dd7a837db13d3938a56c1959decd03203..c71737394929254138c00416cdb9f2e5ba11ac6b:/include/wx/proplist.h diff --git a/include/wx/proplist.h b/include/wx/proplist.h index 59340b3977..023c051766 100644 --- a/include/wx/proplist.h +++ b/include/wx/proplist.h @@ -73,7 +73,7 @@ #define wxID_PROP_VALUE_SELECT 3005 // Mediates between a physical panel and the property sheet -class wxPropertyListView: public wxPropertyView +class WXDLLEXPORT wxPropertyListView: public wxPropertyView { DECLARE_DYNAMIC_CLASS(wxPropertyListView) public: @@ -159,7 +159,7 @@ class wxPropertyListView: public wxPropertyView inline virtual wxButton *GetWindowCloseButton() const { return m_windowCloseButton; } inline virtual wxButton *GetWindowCancelButton() const { return m_windowCancelButton; } inline virtual wxButton *GetHelpButton() const { return m_windowHelpButton; } - + bool OnClose(void); public: @@ -172,23 +172,24 @@ public: wxButton* m_confirmButton; // A tick, as in VB wxButton* m_cancelButton; // A cross, as in VB wxButton* m_editButton; // Invokes the custom validator, if any + wxSizer* m_middleSizer; bool m_detailedEditing; // E.g. using listbox for choices - static wxBitmap* sm_tickBitmap; - static wxBitmap* sm_crossBitmap; - wxPanel* m_propertyWindow; // Panel that the controls will appear on wxWindow* m_managedWindow; // Frame or dialog - + wxButton* m_windowCloseButton; // Or OK wxButton* m_windowCancelButton; wxButton* m_windowHelpButton; DECLARE_EVENT_TABLE() +private: + virtual void ShowView(wxPropertySheet *propertySheet, wxWindow *window) + { wxPropertyView::ShowView(propertySheet, window); }; }; -class wxPropertyTextEdit: public wxTextCtrl +class WXDLLEXPORT wxPropertyTextEdit: public wxTextCtrl { DECLARE_CLASS(wxPropertyTextEdit) public: @@ -206,8 +207,8 @@ class wxPropertyTextEdit: public wxTextCtrl /* * The type of validator used for property lists (Visual Basic style) */ - -class wxPropertyListValidator: public wxPropertyValidator + +class WXDLLEXPORT wxPropertyListValidator: public wxPropertyValidator { DECLARE_DYNAMIC_CLASS(wxPropertyListValidator) protected: @@ -221,7 +222,7 @@ class wxPropertyListValidator: public wxPropertyValidator // Called when the property is double clicked. Extra functionality can be provided, such as // cycling through possible values. - inline virtual bool OnDoubleClick( + inline virtual bool OnDoubleClick( wxProperty *WXUNUSED(property), wxPropertyListView *WXUNUSED(view), wxWindow *WXUNUSED(parentWindow) ) { return TRUE; } @@ -268,15 +269,15 @@ class wxPropertyListValidator: public wxPropertyValidator /* * A default dialog box class to use. */ - -class wxPropertyListDialog: public wxDialog + +class WXDLLEXPORT wxPropertyListDialog: public wxDialog { DECLARE_CLASS(wxPropertyListDialog) public: wxPropertyListDialog(wxPropertyListView *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 OnCancel(wxCommandEvent& event); @@ -292,8 +293,8 @@ DECLARE_EVENT_TABLE() /* * A default panel class to use. */ - -class wxPropertyListPanel: public wxPanel + +class WXDLLEXPORT wxPropertyListPanel: public wxPanel { DECLARE_CLASS(wxPropertyListPanel) public: @@ -325,8 +326,8 @@ DECLARE_EVENT_TABLE() /* * A default frame class to use. */ - -class wxPropertyListFrame: public wxFrame + +class WXDLLEXPORT wxPropertyListFrame: public wxFrame { DECLARE_CLASS(wxPropertyListFrame) public: @@ -338,7 +339,7 @@ class wxPropertyListFrame: 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); @@ -348,13 +349,15 @@ class wxPropertyListFrame: public wxFrame private: wxPropertyListView* m_view; wxPropertyListPanel* m_propertyPanel; + +DECLARE_EVENT_TABLE() }; /* * Some default validators */ - -class wxRealListValidator: public wxPropertyListValidator + +class WXDLLEXPORT wxRealListValidator: public wxPropertyListValidator { DECLARE_DYNAMIC_CLASS(wxRealListValidator) public: @@ -381,7 +384,7 @@ class wxRealListValidator: public wxPropertyListValidator float m_realMax; }; -class wxIntegerListValidator: public wxPropertyListValidator +class WXDLLEXPORT wxIntegerListValidator: public wxPropertyListValidator { DECLARE_DYNAMIC_CLASS(wxIntegerListValidator) public: @@ -408,7 +411,7 @@ class wxIntegerListValidator: public wxPropertyListValidator long m_integerMax; }; -class wxBoolListValidator: public wxPropertyListValidator +class WXDLLEXPORT wxBoolListValidator: public wxPropertyListValidator { DECLARE_DYNAMIC_CLASS(wxBoolListValidator) protected: @@ -437,7 +440,7 @@ class wxBoolListValidator: public wxPropertyListValidator virtual bool OnDoubleClick(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow); }; -class wxStringListValidator: public wxPropertyListValidator +class WXDLLEXPORT wxStringListValidator: public wxPropertyListValidator { DECLARE_DYNAMIC_CLASS(wxStringListValidator) public: @@ -470,12 +473,12 @@ class wxStringListValidator: public wxPropertyListValidator protected: wxStringList* m_strings; }; - -class wxFilenameListValidator: public wxPropertyListValidator + +class WXDLLEXPORT wxFilenameListValidator: public wxPropertyListValidator { DECLARE_DYNAMIC_CLASS(wxFilenameListValidator) public: - wxFilenameListValidator(wxString message = "Select a file", wxString wildcard = "*.*", long flags = 0); + wxFilenameListValidator(wxString message = "Select a file", wxString wildcard = wxALL_FILES_PATTERN, long flags = 0); ~wxFilenameListValidator(void); @@ -499,10 +502,10 @@ class wxFilenameListValidator: public wxPropertyListValidator protected: wxString m_filenameWildCard; wxString m_filenameMessage; - + }; -class wxColourListValidator: public wxPropertyListValidator +class WXDLLEXPORT wxColourListValidator: public wxPropertyListValidator { DECLARE_DYNAMIC_CLASS(wxColourListValidator) protected: @@ -523,7 +526,7 @@ class wxColourListValidator: public wxPropertyListValidator void OnEdit(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow); }; -class wxListOfStringsListValidator: public wxPropertyListValidator +class WXDLLEXPORT wxListOfStringsListValidator: public wxPropertyListValidator { DECLARE_DYNAMIC_CLASS(wxListOfStringsListValidator) protected: @@ -549,7 +552,7 @@ class wxListOfStringsListValidator: public wxPropertyListValidator // Called when the property is double clicked. bool OnDoubleClick(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow); - bool EditStringList(wxWindow *parent, wxStringList *stringList, const char *title = "String List Editor"); + bool EditStringList(wxWindow *parent, wxStringList *stringList, const wxChar *title = wxT("String List Editor")); // Called when the edit (...) button is pressed. void OnEdit(wxProperty *property, wxPropertyListView *view, wxWindow *parentWindow);