Make the defish button the label of the defish frame

This commit is contained in:
Alexander Brock 2024-09-04 22:54:16 +02:00
parent 23fd9903df
commit 69efe6ae5e
2 changed files with 4 additions and 6 deletions

View File

@ -2602,8 +2602,7 @@ TP_DIRPYREQUALIZER_THRESHOLD;Threshold
TP_DIRPYREQUALIZER_TOOLTIP;Attempts to reduce artifacts in the transitions between skin colors (hue, chroma, luma) and the rest of the image.
TP_DISTORTION_AMOUNT;Amount
TP_DISTORTION_AUTO_TOOLTIP;Automatically corrects lens distortion in raw files by matching it against the embedded JPEG image if one exists and has had its lens disortion auto-corrected by the camera.
TP_DISTORTION_DEFISH_FRAME;De-fish
TP_DISTORTION_DEFISH_ENABLE;Enable
TP_DISTORTION_DEFISH;De-fish
TP_DISTORTION_FOCAL_LENGTH;Focal length
TP_DISTORTION_LABEL;Distortion Correction
TP_EPD_EDGESTOPPING;Edge stopping

View File

@ -57,14 +57,13 @@ Distortion::Distortion (): FoldableToolPanel(this, TOOL_NAME, M("TP_DISTORTION_L
distor->show();
pack_start (*distor);
Gtk::Frame* defish_frame = Gtk::manage (new Gtk::Frame
(M("TP_DISTORTION_DEFISH_FRAME")));
Gtk::Frame* defish_frame = Gtk::manage (new Gtk::Frame());
defish_frame->set_label_align(0.025, 0.5);
Gtk::Box* defish_vbox = Gtk::manage (new Gtk::Box(Gtk::ORIENTATION_VERTICAL));
defish = Gtk::manage(new Gtk::CheckButton(M("TP_DISTORTION_DEFISH_ENABLE")));
defish = Gtk::manage(new Gtk::CheckButton(M("TP_DISTORTION_DEFISH")));
defish->signal_toggled().connect(sigc::mem_fun(*this, &Distortion::defishChanged));
defish->show();
defish_vbox->pack_start(*defish);
defish_frame->set_label_widget(*defish);
focal_length = Gtk::manage (new Adjuster (M("TP_DISTORTION_FOCAL_LENGTH"), 0.5, 25, 0.01, DistortionParams::DEFAULT_FOCAL_LENGTH));
focal_length->setAdjusterListener (this);