21 #ifndef INTERACTORCOMPOSITE_H
22 #define INTERACTORCOMPOSITE_H
24 #include <tulip/Interactor.h>
25 #include <QtCore/QList>
34 class TLP_QT_SCOPE InteractorComponent:
public QObject {
41 virtual bool eventFilter(QObject*, QEvent*);
42 virtual void clear() {}
44 void setView(View* view);
47 virtual void viewChanged(View *) {}
67 QList<tlp::InteractorComponent*> _components;
72 void setLastTarget(QObject*);
78 QObject* lastTarget()
const;
81 void lastTargetDestroyed();
84 typedef QList<InteractorComponent*>::iterator iterator;
85 typedef QList<InteractorComponent*>::const_iterator const_iterator;
92 InteractorComposite(
const QIcon& icon,
const QString& text=
"");
93 virtual ~InteractorComposite();
96 virtual QAction* action()
const;
97 virtual QCursor cursor()
const;
110 const_iterator begin()
const;
114 const_iterator end()
const;
119 void push_back(InteractorComponent* component);
124 void push_front(InteractorComponent* component);
127 virtual void undoIsDone();
129 virtual void install(QObject* target);
130 virtual void uninstall();
134 #endif // INTERACTORCOMPOSITE_H