X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b82f92a80c31a18d2b4f7832913c4f7c7f9d9bc5..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/propgrid/props.cpp diff --git a/src/propgrid/props.cpp b/src/propgrid/props.cpp index bde3b65460..1463a9000c 100644 --- a/src/propgrid/props.cpp +++ b/src/propgrid/props.cpp @@ -203,7 +203,7 @@ bool wxNumericPropertyValidator::Validate(wxWindow* parent) return false; wxWindow* wnd = GetWindow(); - if ( !wnd->IsKindOf(CLASSINFO(wxTextCtrl)) ) + if ( !wxDynamicCast(wnd, wxTextCtrl) ) return true; // Do not allow zero-length string @@ -1080,7 +1080,7 @@ bool wxEnumProperty::ValidateValue( wxVariant& value, wxPGValidationInfo& WXUNUS // unless property has string as preferred value type // To reduce code size, use conversion here as well if ( value.GetType() == wxPG_VARIANT_TYPE_STRING && - !this->IsKindOf(CLASSINFO(wxEditEnumProperty)) ) + !wxDynamicCastThis(wxEditEnumProperty) ) return ValueFromString_( value, value.GetString(), wxPG_PROPERTY_SPECIFIC ); return true; @@ -1127,7 +1127,7 @@ bool wxEnumProperty::ValueFromString_( wxVariant& value, const wxString& text, i bool asText = false; - bool isEdit = this->IsKindOf(CLASSINFO(wxEditEnumProperty)); + bool isEdit = this->IsKindOf(wxCLASSINFO(wxEditEnumProperty)); // If text not any of the choices, store as text instead // (but only if we are wxEditEnumProperty) @@ -1683,7 +1683,7 @@ bool wxPGFileDialogAdapter::DoShowDialog( wxPropertyGrid* propGrid, wxPGProperty wxString path; int indFilter = -1; - if ( property->IsKindOf(CLASSINFO(wxFileProperty)) ) + if ( wxDynamicCast(property, wxFileProperty) ) { fileProp = ((wxFileProperty*)property); wxFileName filename = fileProp->GetValue().GetString(); @@ -1704,7 +1704,7 @@ bool wxPGFileDialogAdapter::DoShowDialog( wxPropertyGrid* propGrid, wxPGProperty property->GetAttribute(wxS("InitialPath"), path), wxEmptyString, property->GetAttribute(wxPG_FILE_WILDCARD, wxALL_FILES), - 0, + property->GetAttributeAsLong(wxPG_FILE_DIALOG_STYLE, 0), wxDefaultPosition ); if ( indFilter >= 0 )