Adding new units for the RGB and HSV values in the Navigator tool (below

Histogram). Click on one of thes two columns to cycle to a new unit
independantly, between [0-1], [0-255], [%]  (Hue stays in degree instead
of percent). The current unit is saved in Options for new Editor tabs or
between sessions.
This commit is contained in:
Hombre
2016-08-31 03:58:07 +02:00
parent d9d539cbb3
commit 388d43ebce
4 changed files with 132 additions and 9 deletions

View File

@@ -86,6 +86,13 @@ private:
const Glib::ustring& entryName, Glib::ustring& destination);
public:
enum class NavigatorUnit {
NU_PERCENT,
NU_0_255,
NU_0_1,
NU__COUNT,
};
bool savesParamsAtExit;
SaveFormat saveFormat, saveFormatBatch;
Glib::ustring savePathTemplate;
@@ -133,6 +140,8 @@ public:
bool fbShowExpComp;
bool fbShowHidden;
int fbArrangement;
NavigatorUnit navRGBUnit;
NavigatorUnit navHSVUnit;
bool multiUser;
static Glib::ustring rtdir;
Glib::ustring version;