New batch of update for issue 3446

This commit include :
- cleanup rtgui/retinex.cc file (constructor only) and switched to
Gtk::Grid (the new standard) instead of Gtk::Box. This however doesn't
solve the issue of the Transmission curves in the Retinex tool, with
wrong resize of the Frame when folding/unfolding the curves.
- better alignment of the Histogram panel now with 4px of padding on the
left and right side
- Threshold selector now use the Scale's Trough style to draw its box
and sliders
- Curve's background are darker and restricted to the curve diagram
- Diagonal and Flat curves has been converted to Gtk::Grid as well
- A special color is now used for unsensitive Threshold selector and
Sclaes widgets
- Gap around the main Window has been removed on windows to circumvent a
bug in Gtk3, but the window can now only be maximized (usual use case)
or resized vertically by the top border only.
- Buttons at the bottom of the Editor panel has now the same height
This commit is contained in:
Hombre
2016-11-01 20:39:41 +01:00
parent 3ae608d5ca
commit 965cadb52e
37 changed files with 919 additions and 664 deletions

View File

@@ -41,7 +41,6 @@ DiagonalCurveEditorSubGroup::DiagonalCurveEditorSubGroup (CurveEditorGroup* prt,
Gtk::PositionType sideStart = options.curvebboxpos == 0 || options.curvebboxpos == 2 ? Gtk::POS_LEFT : Gtk::POS_TOP;
Gtk::PositionType sideEnd = options.curvebboxpos == 0 || options.curvebboxpos == 2 ? Gtk::POS_RIGHT : Gtk::POS_BOTTOM;
bool vExpand = options.curvebboxpos == 0 || options.curvebboxpos == 2;
bool hExpand = !vExpand;
valLinear = (int)DCT_Linear;
valUnchanged = (int)DCT_Unchanged;
@@ -605,7 +604,7 @@ void DiagonalCurveEditorSubGroup::switchGUI()
if (dCurve) {
// Initializing GUI values + repacking the appropriated widget
// Initializing GUI values + attaching the appropriated widget
//dCurve->typeconn.block(true);
// first we update the colored bar
@@ -667,7 +666,7 @@ void DiagonalCurveEditorSubGroup::switchGUI()
customCurve->setColoredBar(leftBar, bottomBar);
customCurve->queue_resize_no_redraw();
updateEditButton(dCurve, editCustom, editCustomConn);
parent->pack_start (*customCurveGrid);
parent->attachCurve (customCurveGrid);
customCurveGrid->check_resize();
break;
@@ -692,13 +691,13 @@ void DiagonalCurveEditorSubGroup::switchGUI()
darks->setLabel(label[1]);
shadows->setValue (dCurve->paramCurveEd.at(7));
shadows->setLabel(label[0]);
shcSelector->setColorProvider(barColorProvider, dCurve->getBottomBarCallerId());
shcSelector->setBgGradient(bgGradient);
shcSelector->coloredBar.setColorProvider(barColorProvider, dCurve->getBottomBarCallerId());
shcSelector->coloredBar.setBgGradient(bgGradient);
shcSelector->setMargins( (leftBar ? CBAR_WIDTH + CBAR_MARGIN : RADIUS), RADIUS );
paramCurve->setColoredBar(leftBar, nullptr);
paramCurve->queue_resize_no_redraw();
updateEditButton(dCurve, editParam, editParamConn);
parent->pack_start (*paramCurveGrid);
parent->attachCurve (paramCurveGrid);
break;
}
@@ -708,7 +707,7 @@ void DiagonalCurveEditorSubGroup::switchGUI()
NURBSCurve->setColoredBar(leftBar, bottomBar);
NURBSCurve->queue_resize_no_redraw();
updateEditButton(dCurve, editNURBS, editNURBSConn);
parent->pack_start (*NURBSCurveGrid);
parent->attachCurve (NURBSCurveGrid);
NURBSCurveGrid->check_resize();
break;