21 #ifndef _Tulip_MOUSESHOWELEMENTINFO_H 22 #define _Tulip_MOUSESHOWELEMENTINFO_H 24 #include <tulip/InteractorComposite.h> 25 #include <tulip/Graph.h> 28 class ElementInformationWidget;
32 class QGraphicsProxyWidget;
34 class QAbstractItemModel;
42 struct SelectedEntity;
47 class TLP_QT_SCOPE MouseShowElementInfo :
public InteractorComponent {
49 Ui::ElementInformationWidget* _ui;
51 MouseShowElementInfo();
52 ~MouseShowElementInfo();
53 virtual bool eventFilter(QObject* widget, QEvent* e);
55 void viewChanged(View *);
59 virtual bool pick(
int x,
int y, SelectedEntity &selectedEntity);
64 QWidget *_informationWidget;
65 QGraphicsProxyWidget *_informationWidgetItem;
66 GlMainWidget* glMainWidget;
68 QTableView* tableView()
const;
77 virtual QAbstractItemModel* buildModel(ElementType elementType,
unsigned int elementId, QObject *parent)
const;
84 virtual QString elementName(ElementType elementType,
unsigned int elementId)
const;