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 #if wxUSE_ON_FATAL_EXCEPTION
00034 #include <wx/debugrpt.h>
00035 #endif
00036 
00037 #ifdef __WXMSW__
00038 #define HUGIN_CONV_FILENAME (*wxConvCurrent)
00039 #else
00040 #define HUGIN_CONV_FILENAME (*wxConvFileName)
00041 #endif
00042 
00043 #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 (*)|*")
00044 
00045 #if defined __WXMAC__ || defined __WXOSX_COCOA__
00046 
00047 #if wxCHECK_VERSION(2,9,0)
00048   #include "wx/osx/core/cfstring.h"
00049   #include <wx/osx/private.h>
00050 #else
00051   #include <CoreFoundation/CFString.h>
00052   #include <wx/mac/private.h>
00053 #endif
00054 
00055 CFStringRef MacCreateCFStringWithWxString(const wxString& string);
00056 
00057 wxString MacGetPathToMainExecutableFileOfBundle(CFStringRef bundlePath);
00058 wxString MacGetPathToMainExecutableFileOfRegisteredBundle(CFStringRef BundleIdentifier);
00059 
00060 #if defined MAC_SELF_CONTAINED_BUNDLE
00061 
00062 wxString MacGetPathToBundledResourceFile(CFStringRef filename);
00063 wxString MacGetPathToBundledFrameworksDirectory();
00064 wxString MacGetPathToBundledExecutableFile(CFStringRef filename);
00065 wxString MacGetPathToBundledAppMainExecutableFile(CFStringRef appname);
00066 wxString MacGetPathToUserDomainTempDir();
00067 wxString MacGetPathToUserAppSupportAutoPanoFolder();
00068 
00069 #endif // MAC_SELF_CONTAINED_BUNDLE
00070 
00071 #endif //__WXMAC__
00072 
00074 WXIMPEX const wxString getInvalidCharacters();
00076 WXIMPEX bool containsInvalidCharacters(const wxString stringToTest);
00078 WXIMPEX void ShowFilenameWarning(wxWindow* parent, const wxArrayString filelist);
00079 
00080 #if wxUSE_ON_FATAL_EXCEPTION
00081 
00082 WXIMPEX void GenerateReport(wxDebugReport::Context ctx);
00083 #endif
00084 
00085 #endif

Generated on 31 Jul 2015 for Hugintrunk by  doxygen 1.4.7