source: src/UIElements/Views/Qt4/QtGeometryList.hpp@ b10593

Action_Thermostats Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.1 ChemicalSpaceEvaluator Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Exclude_Hydrogens_annealWithBondGraph Fix_Verbose_Codepatterns ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion Gui_displays_atomic_force_velocity JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool PythonUI_with_named_parameters Recreated_GuiChecks StoppableMakroAction TremoloParser_IncreasedPrecision
Last change on this file since b10593 was 6116df, 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
22class GeometryObject;
23
24class QtGeometryList: public QTreeWidget, public Observer
25{
26 Q_OBJECT
27
28public:
29 QtGeometryList(QWidget * _parent=0);
30 virtual ~QtGeometryList();
31
32protected:
33 bool eventFilter(QObject* object, QEvent* event);
34 void mouseMoveFunction(QMouseEvent * event);
35
36protected:
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.