stable
v1.7.0
|
Last change
on this file 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
|
| Line | |
|---|
| 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>
|
|---|
| 18 | #include <QtGui/QMouseEvent>
|
|---|
| 19 |
|
|---|
| 20 | #include <boost/thread/recursive_mutex.hpp>
|
|---|
| 21 |
|
|---|
| 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 |
|
|---|
| 34 | protected:
|
|---|
| 35 | bool eventFilter(QObject* object, QEvent* event);
|
|---|
| 36 | void mouseMoveFunction(QMouseEvent * event);
|
|---|
| 37 |
|
|---|
| 38 | protected:
|
|---|
| 39 | virtual void update(Observable *publisher);
|
|---|
| 40 | virtual void subjectKilled(Observable *publisher);
|
|---|
| 41 | virtual void recieveNotification(Observable *publisher, Notification_ptr notification);
|
|---|
| 42 | virtual void paintEvent(QPaintEvent * event);
|
|---|
| 43 | void refill(::GeometryObject *ignore);
|
|---|
| 44 |
|
|---|
| 45 | static const int COLUMNCOUNT;
|
|---|
| 46 | enum {NAME,VECTOR,COLUMNTYPES_MAX} COLUMNTYPES;
|
|---|
| 47 | static const char *COLUMNNAMES[];
|
|---|
| 48 |
|
|---|
| 49 | private:
|
|---|
| 50 | //!> flag to indicate that we are signed on to GeometryRegistry
|
|---|
| 51 | bool geometryregistry_enabled;
|
|---|
| 52 |
|
|---|
| 53 | mutable boost::recursive_mutex refill_mutex;
|
|---|
| 54 | };
|
|---|
| 55 |
|
|---|
| 56 | #endif /* QTGEOMETRYLIST_H_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.