platform.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
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 MacGetPathToBundledFrameworksDirectory();
00061 wxString MacGetPathToBundledExecutableFile(CFStringRef filename);
00062 wxString MacGetPathToBundledAppMainExecutableFile(CFStringRef appname);
00063 wxString MacGetPathToUserDomainTempDir();
00064 wxString MacGetPathToUserAppSupportAutoPanoFolder();
00065 
00066 #endif // MAC_SELF_CONTAINED_BUNDLE
00067 
00068 #endif //__WXMAC__
00069 
00071 WXIMPEX const wxString getInvalidCharacters();
00073 WXIMPEX bool containsInvalidCharacters(const wxString stringToTest);
00075 WXIMPEX void ShowFilenameWarning(wxWindow* parent, const wxArrayString filelist);
00076 
00077 #endif

Generated on 21 Nov 2014 for Hugintrunk by  doxygen 1.4.7