20 #ifndef INTERACTORCOMPOSITE_H
21 #define INTERACTORCOMPOSITE_H
23 #include <tulip/Interactor.h>
24 #include <QtCore/QList>
34 class TLP_QT_SCOPE InteractorComponent:
public QObject {
50 virtual bool eventFilter(QObject*, QEvent*);
55 virtual void clear() {}
61 void setView(View* view);
71 virtual void viewChanged(View *) {}
91 QList<tlp::InteractorComponent*> _components;
96 void setLastTarget(QObject*);
102 QObject* lastTarget()
const;
105 void lastTargetDestroyed();
108 typedef QList<InteractorComponent*>::iterator iterator;
109 typedef QList<InteractorComponent*>::const_iterator const_iterator;
120 virtual QAction* action()
const;
121 virtual QCursor cursor()
const;
134 const_iterator begin()
const;
138 const_iterator end()
const;
143 void push_back(InteractorComponent* component);
148 void push_front(InteractorComponent* component);
151 virtual void undoIsDone();
153 virtual void install(QObject* target);
154 virtual void uninstall();
158 #endif // INTERACTORCOMPOSITE_H