38 wxXmlResource::Get()->LoadDialog(
this, parent,
"reset_dialog");
41 wxConfigBase * cfg = wxConfigBase::Get();
43 cfg->Read(
"/ResetDialog/ResetPosition",&check,
true);
44 XRCCTRL(*
this,
"reset_pos",wxCheckBox)->SetValue(check);
45 cfg->Read(
"/ResetDialog/ResetTranslation", &check,
true);
46 wxCheckBox* reset_translation=XRCCTRL(*
this,
"reset_translation",wxCheckBox);
47 reset_translation->SetValue(check);
50 reset_translation->Hide();
52 cfg->Read(
"/ResetDialog/ResetFOV",&check,
true);
53 XRCCTRL(*
this,
"reset_fov",wxCheckBox)->SetValue(check);
54 cfg->Read(
"/ResetDialog/ResetLens",&check,
true);
55 XRCCTRL(*
this,
"reset_lens",wxCheckBox)->SetValue(check);
56 cfg->Read(
"/ResetDialog/ResetExposure",&check,
true);
57 wxCheckBox* checkbox = XRCCTRL(*
this,
"reset_exposure", wxCheckBox);
58 checkbox->SetValue(check);
61 cfg->Read(
"/ResetDialog/ResetExposureParam",&exp_param,0);
62 XRCCTRL(*
this,
"combo_exposure",wxComboBox)->Select(exp_param);
65 cfg->Read(
"/ResetDialog/ResetColor",&check,
true);
66 checkbox = XRCCTRL(*
this,
"reset_color", wxCheckBox);
67 checkbox->SetValue(check);
69 cfg->Read(
"/ResetDialog/ResetColorParam",&exp_param,0);
71 XRCCTRL(*
this,
"combo_color",wxComboBox)->Select(exp_param);
72 cfg->Read(
"/ResetDialog/ResetVignetting",&check,
true);
73 XRCCTRL(*
this,
"reset_vignetting",wxCheckBox)->SetValue(check);
74 cfg->Read(
"/ResetDialog/ResetResponse",&check,
true);
75 XRCCTRL(*
this,
"reset_response",wxCheckBox)->SetValue(check);
76 GetSizer()->Fit(
this);
84 XRCCTRL(*
this,
"reset_exposure",wxCheckBox)->Show(
false);
85 XRCCTRL(*
this,
"combo_exposure",wxComboBox)->Show(
false);
86 XRCCTRL(*
this,
"reset_color",wxCheckBox)->Show(
false);
87 XRCCTRL(*
this,
"combo_color",wxComboBox)->Show(
false);
88 XRCCTRL(*
this,
"reset_vignetting",wxCheckBox)->Show(
false);
89 XRCCTRL(*
this,
"reset_response",wxCheckBox)->Show(
false);
90 GetSizer()->Fit(
this);
95 XRCCTRL(*
this,
"reset_pos",wxCheckBox)->Show(
false);
96 XRCCTRL(*
this,
"reset_translation",wxCheckBox)->Show(
false);
97 XRCCTRL(*
this,
"reset_fov",wxCheckBox)->Show(
false);
98 XRCCTRL(*
this,
"reset_lens",wxCheckBox)->Show(
false);
99 GetSizer()->Fit(
this);
104 wxConfigBase * cfg = wxConfigBase::Get();
106 cfg->Write(
"/ResetDialog/ResetPosition",
GetResetPos());
112 exp_param=XRCCTRL(*
this,
"combo_exposure",wxComboBox)->GetSelection();
113 cfg->Write(
"/ResetDialog/ResetExposureParam",exp_param);
115 exp_param=XRCCTRL(*
this,
"combo_color",wxComboBox)->GetSelection();
116 cfg->Write(
"/ResetDialog/ResetColorParam", exp_param);
125 XRCCTRL(*
this,
"combo_exposure",wxComboBox)->Enable(XRCCTRL(*
this,
"reset_exposure", wxCheckBox)->GetValue());
130 XRCCTRL(*
this,
"combo_color",wxComboBox)->Enable(XRCCTRL(*
this,
"reset_color", wxCheckBox)->GetValue());
135 return XRCCTRL(*
this,
"reset_pos", wxCheckBox)->GetValue();
140 return XRCCTRL(*
this,
"reset_translation", wxCheckBox)->GetValue();
145 return XRCCTRL(*
this,
"reset_fov", wxCheckBox)->GetValue();
150 return XRCCTRL(*
this,
"reset_lens", wxCheckBox)->GetValue();
155 return XRCCTRL(*
this,
"reset_exposure", wxCheckBox)->GetValue();
162 return XRCCTRL(*
this,
"combo_exposure", wxComboBox)->GetSelection()==0;
167 return XRCCTRL(*
this,
"reset_color", wxCheckBox)->GetValue();
174 return XRCCTRL(*
this,
"combo_color", wxComboBox)->GetSelection()==0;
179 return XRCCTRL(*
this,
"reset_vignetting", wxCheckBox)->GetValue();
184 return XRCCTRL(*
this,
"reset_response", wxCheckBox)->GetValue();
bool GetResetLens()
Return TRUE, when user selected "Reset lens".
void OnOk(wxCommandEvent &e)
Saves current state of all checkboxes when closing dialog with Ok.
bool GetResetExposure()
Return TRUE, when user selected "Reset exposure".
void LimitToPhotometric()
limits the displayed parameters to photometric parameters
include file for the hugin project
bool GetResetFOV()
Return TRUE, when user selected "Reset FOV".
Definition of ResetDialog class.
bool GetResetExposureToExif()
Return TRUE, when user selected "Reset exposure to EXIF", Return FALSE, when user selected "Reset exp...
bool GetResetColor()
Return TRUE, when user selected "Reset color".
bool GetResetVignetting()
Return TRUE, when user selected "Reset vignetting".
ResetDialog(wxWindow *parent, GuiLevel guiLevel)
Constructor, read from xrc ressource; restore last uses settings, size and position.
void LimitToGeometric()
limits the displayed parameters to geometric parameters
bool GetResetColorToExif()
Return TRUE, when user selected "Reset color to EXIF", Return FALSE, when user selected "Reset color ...
void OnSelectColor(wxCommandEvent &e)
Method for enabling/disable combobox to select reset color to EXIF or ONE depending on state of "Rese...
bool GetResetTranslation()
Return TRUE, when user selected "Reset translation".
bool GetResetResponse()
Return TRUE, when user selected "Reset Camera Response".
void OnSelectExposure(wxCommandEvent &e)
Method for enabling/disable combobox to select reset exposure to EXIF or ZERO depending on state of "...
bool GetResetPos()
Return TRUE, when user selected "Reset position".
void StoreFramePositionOnly(wxTopLevelWindow *frame, const wxString &basename)
void RestoreFramePositionOnly(wxTopLevelWindow *frame, const wxString &basename)