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 
47 WXIMPEX wxString GetMainImageFilters();
51 WXIMPEX bool IsRawExtension(const wxString& testExt);
52 
53 #if defined __WXMAC__ || defined __WXOSX_COCOA__
54 
55 #include <wx/osx/core/cfstring.h>
56 #include <wx/osx/private.h>
57 
58 CFStringRef MacCreateCFStringWithWxString(const wxString& string);
59 
60 wxString MacGetPathToMainExecutableFileOfBundle(CFStringRef bundlePath);
61 wxString MacGetPathToMainExecutableFileOfRegisteredBundle(CFStringRef BundleIdentifier);
62 
63 #if defined MAC_SELF_CONTAINED_BUNDLE
64 
65 wxString MacGetPathToBundledResourceFile(CFStringRef filename);
66 wxString MacGetPathToBundledFrameworksDirectory();
67 wxString MacGetPathToBundledExecutableFile(CFStringRef filename);
68 wxString MacGetPathToBundledAppMainExecutableFile(CFStringRef appname);
69 wxString MacGetPathToUserDomainTempDir();
70 wxString MacGetPathToUserAppSupportAutoPanoFolder();
71 
72 #endif // MAC_SELF_CONTAINED_BUNDLE
73 
74 #endif //__WXMAC__
75 
77 WXIMPEX const wxString getInvalidCharacters();
79 WXIMPEX bool containsInvalidCharacters(const wxString stringToTest);
81 WXIMPEX void ShowFilenameWarning(wxWindow* parent, const wxArrayString filelist);
82 
83 #if wxUSE_ON_FATAL_EXCEPTION
84 
85 WXIMPEX void GenerateReport(wxDebugReport::Context ctx);
86 #endif
87 
88 #endif
wxString GetFileDialogImageAndRawFilters()
return filter for image and raw files, needed by file open dialog
Definition: platform.cpp:89
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:523
#define WXIMPEX
Definition: hugin_shared.h:40
wxString GetMainImageFilters()
return a filter for the main image files (JPG/TIFF/PNG) only
Definition: platform.cpp:80
include file for the hugin project
bool containsInvalidCharacters(const wxString stringToTest)
returns true, if the given strings contains invalid characters
Definition: platform.cpp:510
bool IsRawExtension(const wxString &testExt)
return true, if given extension is in list of known raw extension (comparision is case insensitive ...
Definition: platform.cpp:111
const wxString getInvalidCharacters()
returns all invalid characters for the filename (mainly characters, which does not work with gnu make...
Definition: platform.cpp:495
wxString GetFileDialogImageFilters()
return filter for image files, needed by file open dialog it contains all image format vigra can read...
Definition: platform.cpp:69