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;
129 void lastTargetDestroyed();
132 typedef QList<InteractorComponent *>::iterator iterator;
133 typedef QList<InteractorComponent *>::const_iterator const_iterator;
166 const_iterator
end()
const;
184 void undoIsDone()
override;
186 void install(QObject *target)
override;
187 void uninstall()
override;
const_iterator end() const
Since InteractorComposte behaves like a list of InteractorComponent, this method is here to allow thi...
iterator end()
Since InteractorComposte behaves like a list of InteractorComponent, this method is here to allow thi...
void push_front(InteractorComponent *component)
Push an InteractorComponent at the beginning of the list.
iterator begin()
Since InteractorComposte behaves like a list of InteractorComponent, this method is here to allow thi...
void setLastTarget(QObject *)
backup a QObject into the InteractorComposite. This can be used to store the last target the interact...
bool showContextMenu(const QPoint &, const QPointF &) override
iterate on _components to show context menu
QAction * action() const override
InteractorComposite(const QIcon &icon, const QString &text="")
Default constructor.
QObject * lastTarget() const
QCursor cursor() const override
void push_back(InteractorComponent *component)
Pushs an InteractorComponent at the end of the list.
const_iterator begin() const
Since InteractorComposte behaves like a list of InteractorComponent, this method is here to allow thi...
tlp::View * view() const override
Interactor provides a way to handle user inputs over a view. Basically, The interactor class is an ov...
View plugins provide a way to dynamically add to a Tulip plateform various ways to visualize a graph.