00001 #pragma once 00002 // Qt includes 00003 #include <QtCore/QObject> 00004 #include <QtGui/QLabel> 00005 00006 // forward declarations 00007 class MainWindow; 00008 00010 00026 class ImageLabel : public QLabel 00027 { 00028 Q_OBJECT 00029 public: 00031 ImageLabel(MainWindow* guiParent, QWidget* parent = 0, Qt::WFlags f = 0); 00033 virtual ~ImageLabel(void); 00034 00035 protected: 00037 virtual void mousePressEvent(QMouseEvent* event); 00039 virtual void mouseReleaseEvent(QMouseEvent* event); 00040 00041 private: 00043 MainWindow* m_guiParent; 00044 00045 };