Candidate_v1.7.0
        stable
      
      
        
          | Last change
 on this file since e9f307 was             454b555, checked in by Frederik Heber <frederik.heber@…>, 3 months ago | 
        
          | 
Improved includes for Qt classes.
 QT_CFLAGS needs to be set in certain cases. The include folder
QtCore is required additionally due to qopenglfunctions.h.
However, other includes in our repo are now appended by either
QtCore/ or QtGui/.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.2 KB | 
      
      
| Rev | Line |  | 
|---|
| [48eab8] | 1 | /* | 
|---|
|  | 2 | * QtGeometryList.hpp | 
|---|
|  | 3 | * | 
|---|
|  | 4 | *  Created on: Mar 25, 2017 | 
|---|
|  | 5 | *      Author: heber | 
|---|
|  | 6 | */ | 
|---|
|  | 7 |  | 
|---|
|  | 8 | #ifndef QTGEOMETRYLIST_H_ | 
|---|
|  | 9 | #define QTGEOMETRYLIST_H_ | 
|---|
|  | 10 |  | 
|---|
|  | 11 | // include config.h | 
|---|
|  | 12 | #ifdef HAVE_CONFIG_H | 
|---|
|  | 13 | #include <config.h> | 
|---|
|  | 14 | #endif | 
|---|
|  | 15 |  | 
|---|
|  | 16 |  | 
|---|
|  | 17 | #include <QtGui/QTreeWidget> | 
|---|
| [454b555] | 18 | #include <QtGui/QMouseEvent> | 
|---|
| [6116df] | 19 |  | 
|---|
| [7516f6] | 20 | #include <boost/thread/recursive_mutex.hpp> | 
|---|
|  | 21 |  | 
|---|
| [48eab8] | 22 | #include "CodePatterns/Observer/Observer.hpp" | 
|---|
|  | 23 |  | 
|---|
|  | 24 | class GeometryObject; | 
|---|
|  | 25 |  | 
|---|
|  | 26 | class QtGeometryList: public QTreeWidget, public Observer | 
|---|
|  | 27 | { | 
|---|
|  | 28 | Q_OBJECT | 
|---|
|  | 29 |  | 
|---|
|  | 30 | public: | 
|---|
|  | 31 | QtGeometryList(QWidget * _parent=0); | 
|---|
|  | 32 | virtual ~QtGeometryList(); | 
|---|
|  | 33 |  | 
|---|
| [6116df] | 34 | protected: | 
|---|
|  | 35 | bool eventFilter(QObject* object, QEvent* event); | 
|---|
|  | 36 | void mouseMoveFunction(QMouseEvent * event); | 
|---|
|  | 37 |  | 
|---|
| [48eab8] | 38 | protected: | 
|---|
|  | 39 | virtual void update(Observable *publisher); | 
|---|
|  | 40 | virtual void subjectKilled(Observable *publisher); | 
|---|
|  | 41 | virtual void recieveNotification(Observable *publisher, Notification_ptr notification); | 
|---|
| [7516f6] | 42 | virtual void paintEvent(QPaintEvent * event); | 
|---|
| [48eab8] | 43 | void refill(::GeometryObject *ignore); | 
|---|
|  | 44 |  | 
|---|
|  | 45 | static const int COLUMNCOUNT; | 
|---|
|  | 46 | enum {NAME,VECTOR,COLUMNTYPES_MAX} COLUMNTYPES; | 
|---|
|  | 47 | static const char *COLUMNNAMES[]; | 
|---|
|  | 48 |  | 
|---|
| [7516f6] | 49 | private: | 
|---|
| [3c9ac3] | 50 | //!> flag to indicate that we are signed on to GeometryRegistry | 
|---|
|  | 51 | bool geometryregistry_enabled; | 
|---|
| [7516f6] | 52 |  | 
|---|
|  | 53 | mutable boost::recursive_mutex refill_mutex; | 
|---|
| [48eab8] | 54 | }; | 
|---|
|  | 55 |  | 
|---|
|  | 56 | #endif /* QTGEOMETRYLIST_H_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.