21 #ifndef _Tulip_MOUSESHOWELEMENTINFO_H 22 #define _Tulip_MOUSESHOWELEMENTINFO_H 27 #include <tulip/InteractorComposite.h> 28 #include <tulip/Graph.h> 31 class ElementInformationWidget;
35 class QGraphicsProxyWidget;
37 class QAbstractItemModel;
39 class QSortFilterProxyModel;
46 struct SelectedEntity;
51 class TLP_QT_SCOPE MouseShowElementInfo :
public InteractorComponent {
53 Ui::ElementInformationWidget *_ui;
57 MouseShowElementInfo(
const bool showVisualPropButton =
true);
58 ~MouseShowElementInfo()
override;
59 bool eventFilter(QObject *widget, QEvent *e)
override;
61 void viewChanged(View *)
override;
63 void clear()
override;
65 virtual bool pick(
int x,
int y, SelectedEntity &selectedEntity);
67 void setVisibleProperties(
const std::vector<std::string> &props);
71 QWidget *_informationWidget;
72 QGraphicsProxyWidget *_informationWidgetItem;
73 GlMainWidget *glMainWidget;
75 QSortFilterProxyModel *_model;
77 QTableView *tableView()
const;
78 std::vector<std::string> _visibleProps;
87 virtual QAbstractItemModel *buildModel(ElementType elementType,
unsigned int elementId,
88 QObject *parent)
const;
95 virtual QString elementName(ElementType elementType,
unsigned int elementId)
const;
99 void showVisualProp(
bool show);