ForceAnnealing_goodresults
        ForceAnnealing_tocheck
      
      
        
          | Last change
 on this file since cb6357 was             cb6357, checked in by Frederik Heber <frederik.heber@…>, 8 years ago | 
        
          | 
QtGeometryList now shows length or angle of stored vectors via tooltips.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.0 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 "CodePatterns/Observer/Observer.hpp" | 
|---|
| 21 |  | 
|---|
| 22 | class GeometryObject; | 
|---|
| 23 |  | 
|---|
| 24 | class QtGeometryList: public QTreeWidget, public Observer | 
|---|
| 25 | { | 
|---|
| 26 | Q_OBJECT | 
|---|
| 27 |  | 
|---|
| 28 | public: | 
|---|
| 29 | QtGeometryList(QWidget * _parent=0); | 
|---|
| 30 | virtual ~QtGeometryList(); | 
|---|
| 31 |  | 
|---|
| 32 | protected: | 
|---|
| 33 | bool eventFilter(QObject* object, QEvent* event); | 
|---|
| 34 | void mouseMoveFunction(QMouseEvent * event); | 
|---|
| 35 |  | 
|---|
| 36 | protected: | 
|---|
| 37 | virtual void update(Observable *publisher); | 
|---|
| 38 | virtual void subjectKilled(Observable *publisher); | 
|---|
| 39 | virtual void recieveNotification(Observable *publisher, Notification_ptr notification); | 
|---|
| 40 | //virtual void paintEvent(QPaintEvent * event); | 
|---|
| 41 | void refill(::GeometryObject *ignore); | 
|---|
| 42 |  | 
|---|
| 43 | static const int COLUMNCOUNT; | 
|---|
| 44 | enum {NAME,VECTOR,COLUMNTYPES_MAX} COLUMNTYPES; | 
|---|
| 45 | static const char *COLUMNNAMES[]; | 
|---|
| 46 |  | 
|---|
| 47 | }; | 
|---|
| 48 |  | 
|---|
| 49 | #endif /* QTGEOMETRYLIST_H_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.