Use predefined constants to represent wxPGProperty attribute identifiers

Use predefined constants representing attribute identifiers instead of specific strings.
This commit is contained in:
Artur Wieczorek
2019-04-20 16:16:51 +02:00
parent aeef082e47
commit 01e21b4f38
2 changed files with 4 additions and 4 deletions

View File

@@ -1966,8 +1966,8 @@ bool wxPGFileDialogAdapter::DoShowDialog( wxPropertyGrid* propGrid, wxPGProperty
}
wxFileDialog dlg( propGrid->GetPanel(),
property->GetAttribute(wxS("DialogTitle"), _("Choose a file")),
property->GetAttribute(wxS("InitialPath"), path),
property->GetAttribute(wxPG_FILE_DIALOG_TITLE, _("Choose a file")),
property->GetAttribute(wxPG_FILE_INITIAL_PATH, path),
wxEmptyString,
property->GetAttribute(wxPG_FILE_WILDCARD, wxALL_FILES),
property->GetAttributeAsLong(wxPG_FILE_DIALOG_STYLE, 0),