Lab color numbers in navigator, on behalf of Jacques; see issue #627

This commit is contained in:
Oliver Duis
2011-04-18 09:54:07 +02:00
parent cfbd175e4d
commit a6370306f7
4 changed files with 91 additions and 31 deletions

View File

@@ -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);
};