Try something new: click-and-drag to modify scaling. Feedback appreciated.

This commit is contained in:
Thanatomanic
2018-07-12 09:01:30 +02:00
parent 5cdbf9a49a
commit aed90f29ea
2 changed files with 37 additions and 4 deletions

View File

@@ -119,8 +119,9 @@ protected:
int oldwidth, oldheight;
bool needLuma, needRed, needGreen, needBlue, rawMode, needChroma;
double factor;
bool isPressed;
double movingPosition;
HistogramAreaIdleHelper* haih;
@@ -134,6 +135,8 @@ public:
void on_realize();
bool on_draw(const ::Cairo::RefPtr< Cairo::Context> &cr);
bool on_button_press_event (GdkEventButton* event);
bool on_button_release_event (GdkEventButton* event);
bool on_motion_notify_event (GdkEventMotion* event);
private:
void drawCurve(Cairo::RefPtr<Cairo::Context> &cr, LUTu & data, double scale, int hsize, int vsize);