Lab color numbers in navigator, on behalf of Jacques; see issue #627
This commit is contained in:
@@ -22,9 +22,12 @@
|
||||
#include <gtkmm.h>
|
||||
#include <previewwindow.h>
|
||||
#include <pointermotionlistener.h>
|
||||
#include <iccstore.h>
|
||||
|
||||
class Navigator : public Gtk::Frame, public PointerMotionListener {
|
||||
|
||||
typedef const double (*TMatrix)[3];
|
||||
|
||||
protected:
|
||||
Gtk::Label* position;
|
||||
Gtk::Label *R, *G, *B;
|
||||
@@ -32,7 +35,9 @@ class Navigator : public Gtk::Frame, public PointerMotionListener {
|
||||
Gtk::Label *LAB_A, *LAB_B, *LAB_L;
|
||||
|
||||
void rgb2hsv (int r, int g, int b, int &h, int &s, int &v);
|
||||
void rgb2lab (int r, int g, int b, int &LAB_l, int &LAB_a, int &LAB_b);
|
||||
//void rgb2lab (int r, int g, int b, int &LAB_l, int &LAB_a, int &LAB_b);
|
||||
void rgb2lab (Glib::ustring profile, int r, int g, int b, int &LAB_l, int &LAB_a, int &LAB_b);
|
||||
|
||||
void setInvalid ();
|
||||
public:
|
||||
PreviewWindow* previewWindow;
|
||||
@@ -40,7 +45,8 @@ class Navigator : public Gtk::Frame, public PointerMotionListener {
|
||||
Navigator ();
|
||||
|
||||
// pointermotionlistener interface
|
||||
void pointerMoved (bool validPos, int x, int y, int r, int g, int b);
|
||||
// void pointerMoved (bool validPos, int x, int y, int r, int g, int b);
|
||||
void pointerMoved (bool validPos, Glib::ustring profile, int x, int y, int r, int g, int b);
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user