Move scale option from perspective correction to lens/geometry

This commit is contained in:
Alexander Brock
2024-07-20 14:56:21 +02:00
parent 6d96bfe5cc
commit fc78a64066
13 changed files with 75 additions and 68 deletions

View File

@@ -22,21 +22,25 @@
#include "lensgeomlistener.h"
#include "toolpanel.h"
#include "adjuster.h"
class LensGeometry final :
public ToolParamBlock,
public FoldableToolPanel
public FoldableToolPanel,
public AdjusterListener
{
protected:
MyComboBoxText* method;
Gtk::Button* autoCrop;
LensGeomListener* rlistener;
Adjuster* scale;
Gtk::CheckButton* fill;
bool lastFill;
sigc::connection fillConn;
rtengine::ProcEvent EvTransMethod;
rtengine::ProcEvent EvTransScale;
public:
static const Glib::ustring TOOL_NAME;
@@ -55,6 +59,8 @@ public:
rlistener = l;
}
void adjusterChanged (Adjuster* a, double newval) override;
private:
IdleRegister idle_register;
};