File/dir dialog styles and other changes (patch 1488371):
- check invalid combinations of styles in wxFileDialogBase::Create() - use wxFD_XXX naming convention for wxFileDialog styles - replaces wxDD_NEW_DIR_BUTTON with wxDD_DIR_MUST_EXIST - removes #ifdef __WXGTK24__ / #endif blocks from wxGTK code - removes wxFileDialogBase::Get/SetStyle and wxFileDialogBase::m_fileName - renames wxDirDialogGTK to wxDirDialog git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -126,14 +126,14 @@ void wxMainFrame::OnRc2Wxr(wxCommandEvent& WXUNUSED(event))
|
||||
#if wxUSE_FILEDLG
|
||||
wxFileDialog filed(this);
|
||||
filed.SetWildcard(_T("*.rc"));
|
||||
filed.SetStyle(wxOPEN);
|
||||
filed.SetStyle(wxFD_OPEN);
|
||||
|
||||
if (filed.ShowModal()!=wxID_OK)
|
||||
return;
|
||||
|
||||
wxFileDialog wxrfile(this,_T("Enter Desired WXR file name"));
|
||||
wxrfile.SetWildcard(_T("*.wxr"));
|
||||
wxrfile.SetStyle(wxOPEN);
|
||||
wxrfile.SetStyle(wxFD_OPEN);
|
||||
wxrfile.SetFilename(_T("resource.wxr"));
|
||||
|
||||
if (wxrfile.ShowModal()!=wxID_OK)
|
||||
@@ -155,7 +155,7 @@ void wxMainFrame::OnWXR2XML(wxCommandEvent& WXUNUSED(event))
|
||||
|
||||
wxFileDialog xmlfile(this,_T("Enter Desired XML file name"));
|
||||
xmlfile.SetWildcard(_T("*.xml"));
|
||||
xmlfile.SetStyle(wxOPEN);
|
||||
xmlfile.SetStyle(wxFD_OPEN);
|
||||
xmlfile.SetFilename(_T("resource.xml"));
|
||||
|
||||
if (xmlfile.ShowModal()!=wxID_OK)
|
||||
@@ -176,7 +176,7 @@ void wxMainFrame::OnRC2XML(wxCommandEvent& WXUNUSED(event))
|
||||
|
||||
wxFileDialog xmlfile(this,_T("Enter Desired XML file name"));
|
||||
xmlfile.SetWildcard(_T("*.xml"));
|
||||
xmlfile.SetStyle(wxOPEN);
|
||||
xmlfile.SetStyle(wxFD_OPEN);
|
||||
xmlfile.SetFilename(_T("resource.xml"));
|
||||
|
||||
if (xmlfile.ShowModal()!=wxID_OK)
|
||||
|
Reference in New Issue
Block a user