Candidate_v1.6.1
ChemicalSpaceEvaluator
Gui_displays_atomic_force_velocity
PythonUI_with_named_parameters
TremoloParser_IncreasedPrecision
Last change
on this file since 8c5e2a was 3c9ac3, checked in by Frederik Heber <frederik.heber@…>, 8 years ago |
Qt..Lists now take note of subjectKilled propery.
|
-
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 <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.