image_widget.h
Go to the documentation of this file.
00001 
00015 #ifndef IMAGE_WIDGET_MERDB9QX
00016 #define IMAGE_WIDGET_MERDB9QX
00017 
00018 #include <QWidget>
00019 #include <QImage>
00020 
00021 class QPaintEvent;
00022 
00023 namespace color_table {
00024 
00030   class ImageWidget : public QWidget {
00031   Q_OBJECT
00032       
00033     public:
00034      ImageWidget(QWidget *parent);
00035      void reduceImageSize(int factor);
00036 
00037      void paintEvent(QPaintEvent *event);
00038      void mousePressEvent(QMouseEvent *event);
00039      void mouseMoveEvent(QMouseEvent *event);
00040     
00041     QImage* img;
00042      
00043     signals:
00044       void clicked(int x, int y, int button);
00045       void mouseXY(int x, int y);
00046   };
00047 
00048 }
00049 
00050 #endif /* end of include guard: IMAGE_WIDGET_MERDB9QX */


color_table
Author(s): Piyush Khandelwal
autogenerated on Mon Jan 6 2014 11:54:34