00001 #ifndef IIS_IMAGE_DIALOG_H 00002 #define IIS_IMAGE_DIALOG_H 00003 #include <qdialog.h> 00004 #include <qlabel.h> 00005 #include "value.h" 00006 #include "image.h" 00007 00008 class ImageLabel: public QLabel 00009 { 00010 Q_OBJECT; 00011 protected: 00012 virtual void mousePressEvent ( QMouseEvent * e ); 00013 public: 00014 ImageLabel(QWidget * parent, const char * name = 0, WFlags f = 0 ); 00015 signals: 00016 void pointSelected(int x, int y, bool right); 00017 }; 00018 00019 class ImagePicker: public QDialog 00020 { 00021 Q_OBJECT; 00022 private: 00023 int size_x; 00024 int size_y; 00025 ImageValue * image; 00026 public: 00027 ImagePicker(ImageValue * i); 00028 virtual Value * value() = 0; 00029 protected: 00030 virtual void nextPoint(PointValue point, bool right) = 0; 00031 public slots: 00032 virtual void pointSelected(int x, int y, bool right); 00033 }; 00034 00035 #endif