Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef QMITKTCROSSWIDGET_H_INCLUDED
00019 #define QMITKTCROSSWIDGET_H_INCLUDED
00020
00021 #include <QLabel>
00022 #include "QmitkExtExports.h"
00023
00024 #include <mitkCommon.h>
00025
00026 class QmitkExt_EXPORT QmitkCrossWidget : public QLabel
00027 {
00028
00029 Q_OBJECT
00030
00031 public:
00032
00033 QmitkCrossWidget( QWidget * parent=0, Qt::WindowFlags f = 0 );
00034
00035 void mousePressEvent( QMouseEvent* mouseEvent );
00036 void mouseMoveEvent( QMouseEvent* mouseEvent );
00037 void mouseReleaseEvent( QMouseEvent* mouseEvent );
00038
00039 signals:
00040
00041 void SignalDeltaMove( int,int );
00042
00043 protected:
00044
00045
00046 #ifdef __APPLE__
00047 void ResetMousePosition(int, int) {};
00048 #else
00049 void ResetMousePosition(int xpos, int ypos)
00050 {
00051 QCursor::setPos(xpos, ypos);
00052 };
00053 #endif
00054
00055 int lastX,lastY;
00056
00057 };
00058 #endif
00059