Bugfix in LabGrid class + code refactoring

- suppressed trailing `_` char for class' parameters
- renamed function name (those not related to Gtk) to lowerCamelCase
- changed the mecanism of dragging point, to avoid throwing unecessary
`panelChange` event
- added a `reset` function, with support of `toInitial` to get back the
values at load time (CTRL+click on reset button)
- `on_draw` optimisation: now LabGrid IS A BackBuffer
This commit is contained in:
Hombre
2018-01-13 20:26:19 +01:00
parent 0498048ca0
commit 52be618963
8 changed files with 257 additions and 181 deletions

View File

@@ -1003,7 +1003,7 @@ void BlackWhite::autoch_toggled ()
bool wasEnabled = disableListener();
if (mixerRed->getAddMode()) {
mixerRed->resetValue(false);
mixerRed->resetValue(true);
}
if (mixerGreen->getAddMode()) {
@@ -1053,14 +1053,14 @@ void BlackWhite::autoch_toggled ()
} else {
if (autoch->get_active()) {
bool wasEnabled = disableListener();
mixerRed->setValue(33);
mixerGreen->setValue(33);
mixerBlue->setValue(33);
mixerOrange->setValue(33);
mixerYellow->setValue(33);
mixerMagenta->setValue(33);
mixerPurple->setValue(33);
mixerCyan->setValue(33);
mixerRed->resetValue(false);
mixerGreen->resetValue(false);
mixerBlue->resetValue(false);
mixerOrange->resetValue(false);
mixerYellow->resetValue(false);
mixerMagenta->resetValue(false);
mixerPurple->resetValue(false);
mixerCyan->resetValue(false);
setting->set_active (11);
filter->set_active (0);