36 #include "pano13/queryfeature.h"
42 #include <exiv2/exiv2.hpp>
46 #include "vigra/config.hxx"
47 #include "hugin_config.h"
51 wxXmlResource::Get()->LoadDialog(
this, parent,
"about_dlg");
57 wxFont font(10, wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
59 wxFont font(8, wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
63 wxTextCtrl* textCtrl = XRCCTRL(*
this,
"license_txt", wxTextCtrl);
66 textCtrl->SetFont(font);
68 textCtrl->LoadFile(strFile);
71 textCtrl = XRCCTRL(*
this,
"upstream_txt", wxTextCtrl);
74 textCtrl->SetFont(font);
76 textCtrl->LoadFile(strFile);
81 wxIconBundle myIcons(
huginApp::Get()->GetXRCPath() +
"data/hugin.ico",wxBITMAP_TYPE_ICO);
84 wxIcon myIcon(
huginApp::Get()->GetXRCPath() +
"data/hugin.png",wxBITMAP_TYPE_PNG);
90 SetSize(this->FromDIP(wxSize(560, 560)));
96 wxTextCtrl* infoText=XRCCTRL(*
this,
"system_txt",wxTextCtrl);
98 infoText->SetFont(*font);
101 text=wxString::Format(_(
"Operating System: %s"),wxGetOsDescription().c_str());
103 if(wxIsPlatform64Bit())
107 text = text +
"\n" + wxString::Format(_(
"Architecture: %s"), is64.c_str());
110 text = text +
"\n" + wxString::Format(_(
"Free memory: %lld kiB"), wxGetFreeMemory().GetValue() / 1024ll);
113 text = text +
"\n" + wxString::Format(_(
"Active Codepage: %u"), cp);
117 text = text +
" (Central European Windows)";
120 text = text +
" (Cyrillic Windows)";
123 text = text +
" (Western European Windows)";
126 text = text +
" (Greek Windows)";
129 text = text +
" (Turkish Windows)";
132 text = text +
" (Hebrew Windows)";
135 text = text +
" (Arabic Windows)";
138 text = text +
" (Baltic Windows)";
141 text = text +
" (Vietnamese Windows)";
145 text = text +
"\n\nHugin\n" + wxString::Format(_(
"Version: %s"), wxString(
hugin_utils::GetHuginVersion().c_str(), wxConvLocal).c_str());
146 text = text +
"\n" + wxString::Format(_(
"Path to resources: %s"),
huginApp::Get()->GetXRCPath().c_str());
149 text = text +
"\n" + wxString::Format(_(
"Hugins camera and lens database: %s"), wxString(lensDB.
GetDBFilename().c_str(), wxConvLocal).c_str());
150 text = text +
"\n" + _(
"Multi-threading using C++11 std::thread and OpenMP");
153 text = text +
"\n" + wxString::Format(_(
"Monitor profile: %s"),
huginApp::Get()->GetMonitorProfileName().c_str());
155 text = text +
"\n\n" + _(
"Libraries");
156 wxVersionInfo
info = wxGetLibraryVersionInfo();
157 text = text +
"\nwxWidgets: " + info.GetVersionString();
158 if(info.HasDescription())
160 text = text +
"\n" + info.GetDescription();
163 char panoVersion[255];
164 if (queryFeatureString(PTVERSION_NAME_FILEVERSION, panoVersion,
sizeof(panoVersion) /
sizeof(panoVersion[0])))
166 text = text +
"\nlibpano13: " + wxString(panoVersion, wxConvLocal);
169 text = text +
"\nExiv2: " + wxString(Exiv2::versionString().c_str(), wxConvLocal);
170 text = text +
"\nSQLite3: " + wxString(sqlite3_libversion(), wxConvLocal);
171 text = text +
"\n" + wxString::Format(
"Vigra: %s", wxString(VIGRA_VERSION, wxConvLocal).c_str());
172 text = text +
"\n" + wxString::Format(
"LittleCMS2: %i.%i", LCMS_VERSION / 1000, LCMS_VERSION / 10 % 100);
173 infoText->SetValue(text);
wxString GetDataPath()
return path to data directory, it depends on operating system
static LensDB & GetSingleton()
returns the static LensDB instance
include file for the hugin project
std::string GetDBFilename() const
returns the filename of the lens database
static huginApp * Get()
hack.. kind of a pseudo singleton...
class to access Hugins camera and lens database
Definition of dialog for numeric transforms.
AboutDialog(wxWindow *parent)
Constructor, read from xrc ressource.
std::string GetHuginVersion()
return a string with version numbers
static void info(const char *fmt,...)
const wxString & GetXRCPath()
return the current xrc path
void GetSystemInformation(wxFont *font)
retrieves the system information