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 #include "wx/osx/core/cfstring.h"
00048 #include <wx/osx/private.h>
00049 
00050 CFStringRef MacCreateCFStringWithWxString(const wxString& string);
00051 
00052 wxString MacGetPathToMainExecutableFileOfBundle(CFStringRef bundlePath);
00053 wxString MacGetPathToMainExecutableFileOfRegisteredBundle(CFStringRef BundleIdentifier);
00054 
00055 #if defined MAC_SELF_CONTAINED_BUNDLE
00056 
00057 wxString MacGetPathToBundledResourceFile(CFStringRef filename);
00058 wxString MacGetPathToBundledFrameworksDirectory();
00059 wxString MacGetPathToBundledExecutableFile(CFStringRef filename);
00060 wxString MacGetPathToBundledAppMainExecutableFile(CFStringRef appname);
00061 wxString MacGetPathToUserDomainTempDir();
00062 wxString MacGetPathToUserAppSupportAutoPanoFolder();
00063 
00064 #endif // MAC_SELF_CONTAINED_BUNDLE
00065 
00066 #endif //__WXMAC__
00067 
00069 WXIMPEX const wxString getInvalidCharacters();
00071 WXIMPEX bool containsInvalidCharacters(const wxString stringToTest);
00073 WXIMPEX void ShowFilenameWarning(wxWindow* parent, const wxArrayString filelist);
00074 
00075 #if wxUSE_ON_FATAL_EXCEPTION
00076 
00077 WXIMPEX void GenerateReport(wxDebugReport::Context ctx);
00078 #endif
00079 
00080 #endif

Generated on 28 Jun 2016 for Hugintrunk by  doxygen 1.4.7