31#include <vigra/imageinfo.hxx>
38 if (wxFileName::IsCaseSensitive())
48 const std::string
extensions = vigra::impexListExtensions();
53 exts.push_back(
"tif");
54 exts.push_back(
"tiff");
55 exts.push_back(
"jpg");
56 exts.push_back(
"jpeg");
57 exts.push_back(
"png");
77 filterString.Append(
"|").Append(
_(
"All files (*)")).Append(
"|*");
125#if defined __WXMAC__ || defined __WXOSX_COCOA__
127#include <CoreFoundation/CFBundle.h>
128 #include "wx/osx/core/cfstring.h"
169 DEBUG_INFO(
"Mac: Cannot locate the executable in the bundle.");
177 DEBUG_INFO(
"Mac: Cannot convert the file path to absolute");
185 DEBUG_INFO(
"Mac: Failed to get URL in CFString");
212 CFSTR(
"net.sourceforge.hugin.PTBatcherGUI"),
218 cout <<
"PTBatcherGui check failed \n" << endl;
240 DEBUG_INFO(
"Mac: Cannot locate the executable in the bundle.");
248 DEBUG_INFO(
"Mac: Cannot convert the file path to absolute");
256 DEBUG_INFO(
"Mac: Failed to get URL in CFString");
267 cout <<
"PTBatcherGui check returned value " <<
theResult <<
"\n" << endl;
271#if defined MAC_SELF_CONTAINED_BUNDLE
287 DEBUG_INFO(
"Mac: Cannot locate the bundle in bundle.");
305 DEBUG_INFO(
"Mac: Cannot locate the executable in the bundle.");
313 DEBUG_INFO(
"Mac: Cannot convert the file path to absolute");
321 DEBUG_INFO(
"Mac: Failed to get URL in CFString");
351 DEBUG_INFO(
"Mac: Cannot locate the file in bundle.");
359 DEBUG_INFO(
"Mac: Failed to get URL in CFString");
386 DEBUG_INFO(
"Mac: Cannot locate the file in bundle.");
394 DEBUG_INFO(
"Mac: Failed to get URL in CFString");
404 return theResult +
"/Contents/Frameworks";
421 DEBUG_INFO(
"Mac: Cannot locate the file in the bundle.");
428 DEBUG_INFO(
"Mac: Cannot convert the file path to absolute");
436 DEBUG_INFO(
"Mac: Failed to get URL in CFString");
527 wxXmlResource::Get()->LoadDialog(&
dlg,
parent,
"dlg_warning_filename");
528 XRCCTRL(
dlg,
"dlg_warning_text",
wxStaticText)->SetLabel(wxString::Format(
_(
"The filename(s) contains one of the following invalid characters: %s\nHugin can not work with these filenames. Please rename your file(s) and try again."),
getInvalidCharacters().
c_str()));
531 dlg.CenterOnScreen();
535#if wxUSE_ON_FATAL_EXCEPTION
545 wxLogMessage(
_(
"Debug report generated in \"%s\"."),
report.GetCompressedFileName().c_str());
int HuginMessageBox(const wxString &message, const wxString &caption, int style, wxWindow *parent)
std::vector< std::string > SplitString(const std::string &s, const std::string &sep)
split string s at given sep, returns vector of strings
std::vector< std::string > GetRawExtensions()
return vector of known extensions of raw files, all lower case
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.