Perspective correction implemented

This commit is contained in:
gabor
2010-05-28 16:19:56 +02:00
parent bc9e8cb61d
commit 44ac689d11
30 changed files with 796 additions and 361 deletions

View File

@@ -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