crop: added new locked ratio "Current"

This commit is contained in:
Alberto Griggio
2018-12-01 11:47:47 +01:00
parent f4cc54351e
commit e29ff3cce2
3 changed files with 73 additions and 11 deletions

View File

@@ -95,9 +95,10 @@ private:
double value;
};
const std::vector<CropRatio> crop_ratios;
std::vector<CropRatio> crop_ratios;
void adjustCropToRatio();
void updateCurrentRatio();
Gtk::CheckButton* fixr;
MyComboBoxText* ratio;
@@ -117,6 +118,7 @@ private:
Gtk::Label* sizein;
Gtk::Grid* ppigrid;
Gtk::Grid* methodgrid;
Gtk::Label *customRatioLabel;
int maxw, maxh;
double nx, ny;