Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
platform.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
2 
27 #ifndef HUGIN1_BASE_PLATFORM_H
28 #define HUGIN1_BASE_PLATFORM_H
29 
30 #include <hugin_shared.h>
31 #include "panoinc_WX.h"
32 #include "hugin_config.h"
33 #if wxUSE_ON_FATAL_EXCEPTION
34 #include <wx/debugrpt.h>
35 #endif
36 
37 #ifdef __WXMSW__
38 #define HUGIN_CONV_FILENAME (*wxConvCurrent)
39 #else
40 #define HUGIN_CONV_FILENAME (*wxConvFileName)
41 #endif
42 
49 WXIMPEX bool IsRawExtension(const wxString& testExt);
50 
51 #if defined __WXMAC__ || defined __WXOSX_COCOA__
52 
53 #include <wx/osx/core/cfstring.h>
54 #include <wx/osx/private.h>
55 
56 CFStringRef MacCreateCFStringWithWxString(const wxString& string);
57 
58 wxString MacGetPathToMainExecutableFileOfBundle(CFStringRef bundlePath);
59 wxString MacGetPathToMainExecutableFileOfRegisteredBundle(CFStringRef BundleIdentifier);
60 
61 #if defined MAC_SELF_CONTAINED_BUNDLE
62 
63 wxString MacGetPathToBundledResourceFile(CFStringRef filename);
64 wxString MacGetPathToBundledFrameworksDirectory();
65 wxString MacGetPathToBundledExecutableFile(CFStringRef filename);
66 wxString MacGetPathToBundledAppMainExecutableFile(CFStringRef appname);
67 wxString MacGetPathToUserDomainTempDir();
68 wxString MacGetPathToUserAppSupportAutoPanoFolder();
69 
70 #endif // MAC_SELF_CONTAINED_BUNDLE
71 
72 #endif //__WXMAC__
73 
75 WXIMPEX const wxString getInvalidCharacters();
77 WXIMPEX bool containsInvalidCharacters(const wxString stringToTest);
79 WXIMPEX void ShowFilenameWarning(wxWindow* parent, const wxArrayString filelist);
80 
81 #if wxUSE_ON_FATAL_EXCEPTION
82 
83 WXIMPEX void GenerateReport(wxDebugReport::Context ctx);
84 #endif
85 
86 #endif
wxString GetFileDialogImageAndRawFilters()
return filter for image and raw files, needed by file open dialog
Definition: platform.cpp:81
void ShowFilenameWarning(wxWindow *parent, const wxArrayString filelist)
shows a dialog about filename with invalid characters, all names in filelist will be show in list ...
Definition: platform.cpp:515
#define WXIMPEX
Definition: hugin_shared.h:40
include file for the hugin project
bool containsInvalidCharacters(const wxString stringToTest)
returns true, if the given strings contains invalid characters
Definition: platform.cpp:502
bool IsRawExtension(const wxString &testExt)
return true, if given extension is in list of known raw extension (comparision is case insensitive ...
Definition: platform.cpp:103
const wxString getInvalidCharacters()
returns all invalid characters for the filename (mainly characters, which does not work with gnu make...
Definition: platform.cpp:487
wxString GetFileDialogImageFilters()
return filter for image files, needed by file open dialog it contains all image format vigra can read...
Definition: platform.cpp:69