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);
80 SetSize(this->FromDIP(wxSize(560, 560)));
86 wxTextCtrl* infoText=XRCCTRL(*
this,
"system_txt",wxTextCtrl);
88 infoText->SetFont(*font);
91 text=wxString::Format(_(
"Operating System: %s"),wxGetOsDescription().c_str());
93 if(wxIsPlatform64Bit())
97 text = text +
"\n" + wxString::Format(_(
"Architecture: %s"), is64.c_str());
100 text = text +
"\n" + wxString::Format(_(
"Free memory: %lld kiB"), wxGetFreeMemory().GetValue() / 1024ll);
103 text = text +
"\n" + wxString::Format(_(
"Active Codepage: %u"), cp);
107 text = text +
" (Central European Windows)";
110 text = text +
" (Cyrillic Windows)";
113 text = text +
" (Western European Windows)";
116 text = text +
" (Greek Windows)";
119 text = text +
" (Turkish Windows)";
122 text = text +
" (Hebrew Windows)";
125 text = text +
" (Arabic Windows)";
128 text = text +
" (Baltic Windows)";
131 text = text +
" (Vietnamese Windows)";
135 text = text +
"\n\nHugin\n" + wxString::Format(_(
"Version: %s"), wxString(
hugin_utils::GetHuginVersion().c_str(), wxConvLocal).c_str());
136 text = text +
"\n" + wxString::Format(_(
"Path to resources: %s"),
huginApp::Get()->GetXRCPath().c_str());
139 text = text +
"\n" + wxString::Format(_(
"Hugins camera and lens database: %s"), wxString(lensDB.
GetDBFilename().c_str(), wxConvLocal).c_str());
140 text = text +
"\n" + _(
"Multi-threading using C++11 std::thread and OpenMP");
143 text = text +
"\n" + wxString::Format(_(
"Monitor profile: %s"),
huginApp::Get()->GetMonitorProfileName().c_str());
145 text = text +
"\n\n" + _(
"Libraries");
146 wxVersionInfo
info = wxGetLibraryVersionInfo();
147 text = text +
"\nwxWidgets: " + info.GetVersionString();
148 if(info.HasDescription())
150 text = text +
"\n" + info.GetDescription();
153 char panoVersion[255];
154 if (queryFeatureString(PTVERSION_NAME_FILEVERSION, panoVersion,
sizeof(panoVersion) /
sizeof(panoVersion[0])))
156 text = text +
"\nlibpano13: " + wxString(panoVersion, wxConvLocal);
159 text = text +
"\nExiv2: " + wxString(Exiv2::versionString().c_str(), wxConvLocal);
160 text = text +
"\nSQLite3: " + wxString(sqlite3_libversion(), wxConvLocal);
161 text = text +
"\n" + wxString::Format(
"Vigra: %s", wxString(VIGRA_VERSION, wxConvLocal).c_str());
162 text = text +
"\n" + wxString::Format(
"LittleCMS2: %i.%i", LCMS_VERSION / 1000, LCMS_VERSION / 10 % 100);
163 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