Add Crop reset button - 2nd attempt (#5015)

Add dedicated reset button for Crop, rearrange some GUI, disable crop buttons in batch mode
This commit is contained in:
Roel Baars
2018-11-23 19:10:04 +01:00
committed by GitHub
parent 4e4a83b576
commit c8300b137c
34 changed files with 134 additions and 87 deletions

View File

@@ -51,6 +51,7 @@ public:
void ratioFixedChanged (); // The toggle button
void refreshSize ();
void selectPressed ();
void doresetCrop ();
void setDimensions (int mw, int mh);
void enabledChanged () override;
void positionChanged ();
@@ -102,7 +103,9 @@ private:
MyComboBoxText* ratio;
MyComboBoxText* orientation;
MyComboBoxText* guide;
Gtk::Button* selectCrop;
Gtk::Button* resetCrop;
CropPanelListener* clistener;
int opt;
MySpinButton* x;
@@ -112,8 +115,9 @@ private:
MySpinButton* ppi;
Gtk::Label* sizecm;
Gtk::Label* sizein;
Gtk::VBox* ppibox;
Gtk::VBox* sizebox;
Gtk::Grid* ppigrid;
Gtk::Grid* methodgrid;
int maxw, maxh;
double nx, ny;
int nw, nh;