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;
36 class QSortFilterProxyModel;
43 struct SelectedEntity;
48 class TLP_QT_SCOPE MouseShowElementInfo :
public InteractorComponent {
50 Ui::ElementInformationWidget *_ui;
54 MouseShowElementInfo(
const bool showVisualPropButton =
true);
55 ~MouseShowElementInfo()
override;
56 bool eventFilter(QObject *widget, QEvent *e)
override;
58 void viewChanged(View *)
override;
60 void clear()
override;
62 virtual bool pick(
int x,
int y, SelectedEntity &selectedEntity);
66 QWidget *_informationWidget;
67 QGraphicsProxyWidget *_informationWidgetItem;
68 GlMainWidget *glMainWidget;
70 QSortFilterProxyModel *_model;
72 QTableView *tableView()
const;
81 virtual QAbstractItemModel *buildModel(ElementType elementType,
unsigned int elementId,
82 QObject *parent)
const;
89 virtual QString elementName(ElementType elementType,
unsigned int elementId)
const;
93 void showVisualProp(
bool show);