wxParseWildcard renamed to wxParseCommonDialogsFilter. Its usage is extended from generic dialogs to MSW, Motif and other incoming ports.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -647,7 +647,7 @@ void MyFrame::FileOpen(wxCommandEvent& WXUNUSED(event) )
 | 
			
		||||
#ifdef __WXMOTIF__
 | 
			
		||||
                    _T("C++ files (*.cpp)|*.cpp")
 | 
			
		||||
#else
 | 
			
		||||
                    _T("C++ files (*.h;*.cpp)|*.h;*.cpp")
 | 
			
		||||
                    _T("C++ files (*.cpp;*.h)|*.cpp;*.h")
 | 
			
		||||
#endif
 | 
			
		||||
                 );
 | 
			
		||||
 | 
			
		||||
@@ -698,7 +698,7 @@ void MyFrame::FilesOpen(wxCommandEvent& WXUNUSED(event) )
 | 
			
		||||
#ifdef __WXMOTIF__
 | 
			
		||||
                    _T("C++ files (*.cpp)|*.cpp");
 | 
			
		||||
#else
 | 
			
		||||
                    _T("All files (*.*)|*.*|C++ files (*.h;*.cpp)|*.h;*.cpp");
 | 
			
		||||
                    _T("All files (*.*)|*.*|C++ files (*.cpp;*.h)|*.cpp;*.h");
 | 
			
		||||
#endif
 | 
			
		||||
    wxFileDialog dialog(this, _T("Testing open multiple file dialog"),
 | 
			
		||||
                        wxEmptyString, wxEmptyString, wildcards,
 | 
			
		||||
@@ -756,7 +756,7 @@ void MyFrame::FileOpenGeneric(wxCommandEvent& WXUNUSED(event) )
 | 
			
		||||
                    _T("Testing open file dialog"),
 | 
			
		||||
                    wxEmptyString,
 | 
			
		||||
                    wxEmptyString,
 | 
			
		||||
                    _T("C++ files (*.h;*.cpp)|*.h;*.cpp")
 | 
			
		||||
                    _T("C++ files (*.cpp;*.h)|*.cpp;*.h")
 | 
			
		||||
                 );
 | 
			
		||||
 | 
			
		||||
    dialog.SetDirectory(wxGetHomeDir());
 | 
			
		||||
@@ -777,7 +777,7 @@ void MyFrame::FileOpenGeneric(wxCommandEvent& WXUNUSED(event) )
 | 
			
		||||
 | 
			
		||||
void MyFrame::FilesOpenGeneric(wxCommandEvent& WXUNUSED(event) )
 | 
			
		||||
{
 | 
			
		||||
    wxString wildcards = _T("All files (*.*)|*.*|C++ files (*.h;*.cpp)|*.h;*.cpp");
 | 
			
		||||
    wxString wildcards = _T("All files (*.*)|*.*|C++ files (*.cpp;*.h)|*.cpp;*.h");
 | 
			
		||||
    wxGenericFileDialog dialog(this, _T("Testing open multiple file dialog"),
 | 
			
		||||
                        wxEmptyString, wxEmptyString, wildcards,
 | 
			
		||||
                        wxMULTIPLE);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user