41 wxXmlResource::Get()->LoadFrame(
this, parent,
"toolbox_frame");
42 SetMinSize(wxSize(500, 400));
43 SetMenuBar(wxXmlResource::Get()->LoadMenuBar(
this,
"toolbox_menubar"));
47 wxIconBundle myIcons(
GetXRCPath() +
"data/hugin.ico", wxBITMAP_TYPE_ICO);
50 wxIcon myIcon(
GetXRCPath() +
"data/hugin.png",wxBITMAP_TYPE_PNG);
53 SetTitle(_(
"Hugin toolbox GUI"));
56 CreateStatusBar(fields);
57 int widths[fields] = { -1, 85 };
58 SetStatusWidths(fields, &widths[0]);
65 ImageCache::getInstance().setProgressDisplay(
this);
66 wxConfigBase* config = wxConfigBase::Get();
70 unsigned long mem_high = config->Read(
"/ImageCache/UpperBoundHigh", (
long)0);
73 mem = ((
unsigned long long) mem_high << 32) + mem_low;
79 ImageCache::getInstance().SetUpperLimit(mem);
85 m_mainSplitter = XRCCTRL(*
this,
"toolbox_splitter", wxSplitterWindow);
88 wxXmlResource::Get()->AttachUnknownControl(
"toolbox_logpanel",
m_logPanel,
this);
100 m_mainNotebook->SetSelection(config->ReadLong(
"/ToolboxFrame/ActiveTab", 0l));
104 if (config->HasEntry(
"/ToolboxFrame/Main_Splitter"))
106 m_mainSplitter->SetSashPosition(config->ReadLong(
"/ToolboxFrame/Main_Splitter", 500));
117 wxConfigBase* config = wxConfigBase::Get();
118 config->Write(
"/ToolboxFrame/Main_Splitter",
m_mainSplitter->GetSashPosition());
119 config->Write(
"/ToolboxFrame/ActiveTab",
m_mainNotebook->GetSelection());
124 return wxGetApp().GetXRCPath();
148 msg = wxGetTranslation(wxString(
m_message.c_str(), wxConvLocal));
155 GetStatusBar()->SetStatusText(msg, 0);
160 if (e.GetInt() == -1)
bool Create(wxWindow *parent, MyExecPanel *logWindow)
create the panel and populate all controls
declaration of panel for stacker GUI
void RestoreFramePosition(wxTopLevelWindow *frame, const wxString &basename, const bool ignoreMaximize)
void StoreFramePosition(wxTopLevelWindow *frame, const wxString &basename, const bool ignoreMaximize)
void OnProcessFinished(wxCommandEvent &e)
call at the end of the enfuse command, to load result back and enable buttons again ...
declaration of panel for perspective correction GUI
#define HUGIN_IMGCACHE_UPPERBOUND
void OnProcessFinished(wxCommandEvent &e)
clean up temporary files at end
bool Create(wxWindow *parent, MyExecPanel *logPanel)
creates the control and populates all controls with their settings
Definition of dialog class to create brighter/darker versions of the image.
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