Perspective correction implemented
This commit is contained in:
@@ -22,25 +22,15 @@
|
||||
#include <gtkmm.h>
|
||||
#include <adjuster.h>
|
||||
#include <toolpanel.h>
|
||||
|
||||
class RotateListener {
|
||||
|
||||
public:
|
||||
virtual void straightenRequested () {}
|
||||
virtual void autoCropRequested () {}
|
||||
};
|
||||
#include <lensgeomlistener.h>
|
||||
|
||||
class Rotate : public Gtk::VBox, public AdjusterListener, public ToolPanel {
|
||||
|
||||
protected:
|
||||
Adjuster* degree;
|
||||
Gtk::Button* selectStraight;
|
||||
Gtk::Button* autoCrop;
|
||||
RotateListener* rlistener;
|
||||
Gtk::CheckButton* fill;
|
||||
LensGeomListener* rlistener;
|
||||
bool degAdd;
|
||||
bool lastFill;
|
||||
sigc::connection fillConn;
|
||||
|
||||
public:
|
||||
|
||||
@@ -56,9 +46,7 @@ class Rotate : public Gtk::VBox, public AdjusterListener, public ToolPanel {
|
||||
void adjusterChanged (Adjuster* a, double newval);
|
||||
void setAdjusterBehavior (bool brotadd);
|
||||
void selectStraightPressed ();
|
||||
void fillPressed ();
|
||||
void autoCropPressed ();
|
||||
void setRotateListener (RotateListener* l) { rlistener = l; }
|
||||
void setLensGeomListener (LensGeomListener* l) { rlistener = l; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user