MorphoGraphX  2.0-1-227
CustomMouseLabel.hpp
Go to the documentation of this file.
1 //
2 // This file is part of 3DCellAtlas.
3 // Copyright (C) 2015 George W. Bassel and collaborators.
4 //
5 // If you use 3DCellAtlas in your work, please cite:
6 // http://dx.doi.org/10.1105/tpc.15.00175
7 //
8 // 3DCellAtlas is an AddOn for MorphoGraphX - http://www.MorphoGraphX.org
9 // Copyright (C) 2012-2015 Richard S. Smith and collaborators.
10 //
11 // 3DCellAtlas and MorphoGraphX are free software, and are licensed under under the terms of the
12 // GNU General (GPL) Public License version 2.0, http://www.gnu.org/licenses.
13 //
14 #ifndef CUSTOMMOUSELABEL_HPP
15 #define CUSTOMMOUSELABEL_HPP
16 
17 #include <CellAtlasConfig.hpp>
18 
19 #include <QLabel>
20 #include <QMouseEvent>
21 #include <QEvent>
22 #include <QDebug>
23 
24 class QMouseEvent;
25 
26 class CellAtlas_EXPORT CustomMouseLabel : public QLabel
27 {
28 Q_OBJECT
29 signals:
30  void mousePressed( const QPoint& );
31  void mouseReleased( const QPoint& );
32  void mouseDouble( const QPoint& );
33  void keyPressed( const QString& );
34  void mouseMove( const QPoint& );
35 public:
36  CustomMouseLabel( QWidget* parent = 0, Qt::WindowFlags f = 0 );
37  CustomMouseLabel( const QString& text, QWidget* parent = 0, Qt::WindowFlags f = 0 );
38  virtual ~CustomMouseLabel() {}
39 
40  void mousePressEvent( QMouseEvent* event );
41  void mouseReleaseEvent( QMouseEvent* event );
42  void mouseDoubleClickEvent( QMouseEvent* event );
43  void mouseMoveEvent( QMouseEvent* event );
44  void keyPressEvent( QKeyEvent* event );
45 
46 };
47 
48 #endif
CellAtlas_EXPORT
#define CellAtlas_EXPORT
Definition: CellAtlasConfig.hpp:26
CustomMouseLabel
Definition: CustomMouseLabel.hpp:26
CustomMouseLabel::~CustomMouseLabel
virtual ~CustomMouseLabel()
Definition: CustomMouseLabel.hpp:38
CellAtlasConfig.hpp