20 #ifndef INTERACTORCOMPOSITE_H
21 #define INTERACTORCOMPOSITE_H
23 #include <tulip/Interactor.h>
39 class TLP_QT_SCOPE InteractorComponent :
public QObject {
56 bool eventFilter(QObject *, QEvent *)
override;
61 virtual void clear() {}
67 void setView(View *view);
77 virtual void viewChanged(View *) {}
84 virtual bool showContextMenu(
const QPoint & ,
const QPointF & ) {
110 QObject *_lastTarget;
113 QList<tlp::InteractorComponent *> _components;
119 void setLastTarget(QObject *);
126 QObject *lastTarget()
const;
129 void lastTargetDestroyed();
132 typedef QList<InteractorComponent *>::iterator iterator;
133 typedef QList<InteractorComponent *>::const_iterator const_iterator;
144 QAction *action()
const override;
145 QCursor cursor()
const override;
161 const_iterator begin()
const;
166 const_iterator end()
const;
171 void push_back(InteractorComponent *component);
176 void push_front(InteractorComponent *component);
181 bool showContextMenu(
const QPoint & ,
const QPointF & )
override;
184 void undoIsDone()
override;
186 void install(QObject *target)
override;
187 void uninstall()
override;
190 #endif // INTERACTORCOMPOSITE_H