00001
00002
00027 #ifndef HUGIN1_BASE_PLATFORM_H
00028 #define HUGIN1_BASE_PLATFORM_H
00029
00030 #include <hugin_shared.h>
00031 #include "panoinc_WX.h"
00032 #include <config.h>
00033
00034 #ifdef __WXMSW__
00035 #define HUGIN_CONV_FILENAME (*wxConvCurrent)
00036 #else
00037 #define HUGIN_CONV_FILENAME (*wxConvFileName)
00038 #endif
00039
00040 #define HUGIN_WX_FILE_IMG_FILTER _("All Image files|*.jpg;*.JPG;*jpeg;*JPEG;*.tif;*.TIF;*.tiff;*.TIFF;*.png;*.PNG;*.bmp;*.BMP;*.gif;*.GIF;*.pnm;*.PNM;*.sun;*.viff;*.hdr;*.HDR;*.exr;*.EXR|JPEG files (*.jpg,*.jpeg)|*.jpg;*.JPG;*.jpeg;*.JPEG|TIFF files (*.tif,*.tiff)|*.tif;*.TIF;*.tiff;*.TIFF|PNG files (*.png)|*.png;*.PNG|HDR files (*.hdr)|*.hdr;*.HDR|EXR files (*.exr)|*.exr;*.EXR|All files (*)|*")
00041
00042 #if defined __WXMAC__ || defined __WXOSX_COCOA__
00043
00044 #if wxCHECK_VERSION(2,9,0)
00045 #include "wx/osx/core/cfstring.h"
00046 #include <wx/osx/private.h>
00047 #else
00048 #include <CoreFoundation/CFString.h>
00049 #include <wx/mac/private.h>
00050 #endif
00051
00052 CFStringRef MacCreateCFStringWithWxString(const wxString& string);
00053
00054 wxString MacGetPathToMainExecutableFileOfBundle(CFStringRef bundlePath);
00055 wxString MacGetPathToMainExecutableFileOfRegisteredBundle(CFStringRef BundleIdentifier);
00056
00057 #if defined MAC_SELF_CONTAINED_BUNDLE
00058
00059 wxString MacGetPathToBundledResourceFile(CFStringRef filename);
00060 wxString MacGetPathToBundledExecutableFile(CFStringRef filename);
00061 wxString MacGetPathToBundledAppMainExecutableFile(CFStringRef appname);
00062 wxString MacGetPathToUserDomainTempDir();
00063 wxString MacGetPathToUserAppSupportAutoPanoFolder();
00064
00065 #endif // MAC_SELF_CONTAINED_BUNDLE
00066
00067 #endif //__WXMAC__
00068
00070 WXIMPEX const wxString getInvalidCharacters();
00072 WXIMPEX bool containsInvalidCharacters(const wxString stringToTest);
00074 WXIMPEX void ShowFilenameWarning(wxWindow* parent, const wxArrayString filelist);
00075
00076 #endif