#ifndef IUPCOLORCALIBRATIONDIALOG_H #define IUPCOLORCALIBRATIONDIALOG_H /* ** --------------------------------------------------------------- ** Includes: */ #include "iup.h" #include "iupcontrols.h" #include "cd.h" #include "cdiup.h" /* ** --------------------------------------------------------------- ** Class definition: */ class IupColorCalibrationDlg { public: IupColorCalibrationDlg(); ~IupColorCalibrationDlg(); void getColorFactors(float& r, float& g, float& b); void show(); protected: float r_; float g_; float b_; void repaintCanvas(); private: Ihandle* dlg; cdCanvas *cdcanvas_; static int _changeValueCB(Ihandle *self, double val); static int _okCB(Ihandle* self); static int _cancelCB(Ihandle* self); static int _repaintCanvasCB(Ihandle *self, float x, float y); }; #endif