X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdf565feca722eddb84168a95dbef329ba23d719..41b76acdc7cad34f4bcdd43e3440544fe714e6d5:/src/mac/classic/filedlg.cpp diff --git a/src/mac/classic/filedlg.cpp b/src/mac/classic/filedlg.cpp index 27ec563fe1..7eca40ec7e 100644 --- a/src/mac/classic/filedlg.cpp +++ b/src/mac/classic/filedlg.cpp @@ -169,7 +169,7 @@ void MakeUserDataRec(OpenUserDataRec *myData , const wxString& filter ) int filterIndex = 0; bool isName = true ; wxString current ; - for( unsigned int i = 0; i < filter2.Len() ; i++ ) + for( unsigned int i = 0; i < filter2.length() ; i++ ) { if( filter2.GetChar(i) == wxT('|') ) { @@ -251,7 +251,7 @@ static Boolean CheckFile( const wxString &filename , OSType type , OpenUserDataR if ( extension.GetChar(0) == '*' ) extension = extension.Mid(1) ; - if ( file.Len() >= extension.Len() && extension == file.Right(extension.Len() ) ) + if ( file.length() >= extension.length() && extension == file.Right(extension.length() ) ) return true ; } } @@ -292,8 +292,8 @@ static pascal Boolean CrossPlatformFileFilter(CInfoPBPtr myCInfoPBPtr, void *dat wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message, const wxString& defaultDir, const wxString& defaultFileName, const wxString& wildCard, - long style, const wxPoint& pos) - :wxFileDialogBase(parent, message, defaultDir, defaultFileName, wildCard, style, pos) + long style, const wxPoint& pos, const wxSize& sz, const wxString& name) + :wxFileDialogBase(parent, message, defaultDir, defaultFileName, wildCard, style, pos, sz, name) { wxASSERT_MSG( NavServicesAvailable() , wxT("Navigation Services are not running") ) ; } @@ -372,7 +372,7 @@ int wxFileDialog::ShowModal() OpenUserDataRec myData; myData.defaultLocation = m_dir; - if (m_dialogStyle & wxSAVE) + if (HasFlag(wxFD_SAVE)) { dialogCreateOptions.optionFlags |= kNavNoTypePopup; dialogCreateOptions.optionFlags |= kNavDontAutoTranslate; @@ -445,7 +445,7 @@ int wxFileDialog::ShowModal() break; CFURLRef fullURLRef; - if (m_dialogStyle & wxSAVE) + if (HasFlag(wxFD_SAVE)) { CFURLRef parentURLRef = ::CFURLCreateFromFSRef(NULL, &theFSRef); @@ -562,7 +562,7 @@ int wxFileDialog::ShowModal() wxMacStringToPascal( myData.name[i] , (StringPtr)(*mNavOptions.popupExtension)[i].menuItemName ) ; } } - if ( m_dialogStyle & wxSAVE ) + if ( HasFlag(wxFD_SAVE) ) { myData.saveMode = true ; @@ -584,7 +584,7 @@ int wxFileDialog::ShowModal() myData.saveMode = false ; mNavFilterUPP = NewNavObjectFilterUPP( CrossPlatformFilterCallback ) ; - if ( m_dialogStyle & wxMULTIPLE ) + if ( m_windowStyle & wxFD_MULTIPLE ) mNavOptions.dialogOptionFlags |= kNavAllowMultipleFiles ; else mNavOptions.dialogOptionFlags &= ~kNavAllowMultipleFiles ;