40 wxXmlResource::Get()->LoadFrame(
this, parent,
"toolbox_frame");
41 SetMinSize(wxSize(500, 400));
42 SetMenuBar(wxXmlResource::Get()->LoadMenuBar(
this,
"toolbox_menubar"));
46 wxIconBundle myIcons(
GetXRCPath() +
"data/hugin.ico", wxBITMAP_TYPE_ICO);
49 wxIcon myIcon(
GetXRCPath() +
"data/hugin.png",wxBITMAP_TYPE_PNG);
52 SetTitle(_(
"Hugin toolbox GUI"));
55 CreateStatusBar(fields);
56 int widths[fields] = { -1, 85 };
57 SetStatusWidths(fields, &widths[0]);
64 ImageCache::getInstance().setProgressDisplay(
this);
65 wxConfigBase* config = wxConfigBase::Get();
69 unsigned long mem_high = config->Read(
"/ImageCache/UpperBoundHigh", (
long)0);
72 mem = ((
unsigned long long) mem_high << 32) + mem_low;
78 ImageCache::getInstance().SetUpperLimit(mem);
84 m_mainSplitter = XRCCTRL(*
this,
"toolbox_splitter", wxSplitterWindow);
87 wxXmlResource::Get()->AttachUnknownControl(
"toolbox_logpanel",
m_logPanel,
this);
96 m_mainNotebook->SetSelection(config->ReadLong(
"/ToolboxFrame/ActiveTab", 0l));
100 if (config->HasEntry(
"/ToolboxFrame/Main_Splitter"))
102 m_mainSplitter->SetSashPosition(config->ReadLong(
"/ToolboxFrame/Main_Splitter", 500));
113 wxConfigBase* config = wxConfigBase::Get();
114 config->Write(
"/ToolboxFrame/Main_Splitter",
m_mainSplitter->GetSashPosition());
115 config->Write(
"/ToolboxFrame/ActiveTab",
m_mainNotebook->GetSelection());
120 return wxGetApp().GetXRCPath();
144 msg = wxGetTranslation(wxString(
m_message.c_str(), wxConvLocal));
151 GetStatusBar()->SetStatusText(msg, 0);
156 if (e.GetInt() == -1)
bool Create(wxWindow *parent, MyExecPanel *logWindow)
create the panel and populate all controls
declaration of panel for perspective correction GUI
#define HUGIN_IMGCACHE_UPPERBOUND
void OnProcessFinished(wxCommandEvent &e)
clean up temporary files at end
Definition of dialog class to create brighter/darker versions of the image.
void StoreFramePosition(wxTopLevelWindow *frame, const wxString &basename)
Store window size and position in configfile/registry.
declaration of panel for enfuse GUI
bool Create(wxWindow *parent, MyExecPanel *logPanel)
creates the control and populates all controls with their settings
void OnProcessFinished(wxCommandEvent &e)
call at the end of the enfuse command, to load result back and enable buttons again ...
void GetMonitorProfile(wxString &profileName, cmsHPROFILE &profile)
retrieve monitor profile from system
void RestoreFramePosition(wxTopLevelWindow *frame, const wxString &basename)
Restore window size and position from configfile/registry.