X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c51a665c649f7579fb39e62070cef4f66b3210d..bf973818a376aea7edf29ec264982fcde7423c78:/interface/wx/propgrid/property.h?ds=sidebyside diff --git a/interface/wx/propgrid/property.h b/interface/wx/propgrid/property.h index 3c329f3134..7c68512a23 100644 --- a/interface/wx/propgrid/property.h +++ b/interface/wx/propgrid/property.h @@ -125,6 +125,13 @@ */ #define wxPG_FILE_DIALOG_TITLE wxS("DialogTitle") +/** Specific to wxFileProperty and derivatives, long, default is 0. + Sets a specific wxFileDialog style for the file dialog, e.g. ::wxFD_SAVE. + + @since 2.9.4 +*/ +#define wxPG_FILE_DIALOG_STYLE wxS("DialogStyle") + /** Specific to wxDirProperty, wxString, default is empty. Sets a specific message for the dir dialog. */ @@ -510,7 +517,7 @@ wxPG_PROP_BEING_DELETED = 0x00200000 wxDateTime property. Default editor is DatePickerCtrl, although TextCtrl should work as well. wxPG_DATE_FORMAT attribute can be used to change string wxDateTime::Format uses (although default is recommended as it is - locale-dependant), and wxPG_DATE_PICKER_STYLE allows changing window + locale-dependent), and wxPG_DATE_PICKER_STYLE allows changing window style given to DatePickerCtrl (default is wxDP_DEFAULT|wxDP_SHOWCENTURY). Using wxDP_ALLOWNONE will enable better unspecified value support. @@ -1191,9 +1198,6 @@ public: */ void DeleteChoice( int index ); - /** Deletes all child properties. */ - void Empty(); - /** Enables or disables the property. Disabled property usually appears as having grey text. @@ -1751,6 +1755,10 @@ public: Returns @true if containing grid uses wxPG_EX_AUTO_UNSPECIFIED_VALUES. */ bool UsesAutoUnspecified() const; + +protected: + /** Deletes all child properties. */ + void Empty(); }; @@ -1872,9 +1880,6 @@ public: */ void Add( const wxChar** labels, const ValArrItem* values = NULL ); - /** Version that works with wxArrayString. */ - void Add( const wxArrayString& arr, const ValArrItem* values = NULL ); - /** Version that works with wxArrayString and wxArrayInt. */ void Add( const wxArrayString& arr, const wxArrayInt& arrint ); @@ -1940,15 +1945,6 @@ public: wxArrayInt GetIndicesForStrings( const wxArrayString& strings, wxArrayString* unmatched = NULL ) const; - /** Returns property at given virtual y coordinate. - */ - wxPGProperty* GetItemAtY( unsigned int y ) const; - - /** - Returns @true if item at given index has a valid value; - */ - bool HasValue( unsigned int i ) const; - /** Returns index of item with given label. */