#include "PLStringFuncs.h"
#endif
-#include "MoreFilesX.h"
-
IMPLEMENT_CLASS(wxFileDialog, wxFileDialogBase)
-extern bool gUseNavServices;
-
// the data we need to pass to our standard file hook routine
// includes a pointer to the dialog, a pointer to the standard
// file reply record (so we can inspect the current selection)
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('|') )
{
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 ;
}
}
NavDialogRef dialog;
NavObjectFilterUPP navFilterUPP = NULL;
- CFArrayRef cfArray = NULL; // for popupExtension
OpenUserDataRec myData;
myData.defaultLocation = m_dir;
dialogCreateOptions.optionFlags |= kNavPreserveSaveFileExtension;
#if TARGET_API_MAC_OSX
- if (!(m_windowStyle & wxOVERWRITE_PROMPT))
+ if (!(m_windowStyle & wxFD_OVERWRITE_PROMPT))
dialogCreateOptions.optionFlags |= kNavDontConfirmReplacement;
#endif
// clean up filter related data, etc.
if (navFilterUPP)
::DisposeNavObjectFilterUPP(navFilterUPP);
- if (cfArray)
- ::CFRelease(cfArray);
if (err != noErr)
return wxID_CANCEL;