|
| InteractorComposite (const QIcon &icon, const QString &text="") |
|
virtual QAction * | action () const |
|
iterator | begin () |
|
const_iterator | begin () const |
|
virtual QCursor | cursor () const |
|
iterator | end () |
|
const_iterator | end () const |
|
void | push_back (InteractorComponent *component) |
|
void | push_front (InteractorComponent *component) |
|
virtual tlp::View * | view () const |
|
virtual std::string | category () const |
|
virtual QWidget * | configurationWidget () const =0 |
|
virtual void | construct ()=0 |
|
std::string | icon () const |
|
virtual bool | isCompatible (const std::string &viewName) const =0 |
|
virtual unsigned int | priority () const =0 |
|
virtual std::string | author () const =0 |
|
virtual std::string | date () const =0 |
|
virtual std::string | group () const =0 |
|
virtual int | id () const |
|
virtual std::string | info () const =0 |
|
virtual std::string | major () const |
|
virtual std::string | minor () const |
|
virtual std::string | name () const =0 |
|
virtual std::string | programmingLanguage () const |
|
virtual std::string | release () const =0 |
|
virtual std::string | tulipMajor () const |
|
virtual std::string | tulipMinor () const |
|
virtual std::string | tulipRelease () const =0 |
|
template<typename T > |
void | addInOutParameter (const std::string &name, const std::string &help=std::string(), const std::string &defaultValue=std::string(), bool isMandatory=true) |
|
template<typename T > |
void | addInParameter (const std::string &name, const std::string &help, const std::string &defaultValue, bool isMandatory=true) |
|
template<typename T > |
void | addOutParameter (const std::string &name, const std::string &help=std::string(), const std::string &defaultValue=std::string(), bool isMandatory=true) |
|
template<typename T > |
void | addParameter (const std::string &name, const std::string &help=std::string(), const std::string &defaultValue=std::string(), bool isMandatory=true) |
|
const
tlp::ParameterDescriptionList & | getParameters () const |
|
bool | inputRequired () const |
|
void | addDependency (const char *name, const char *release) |
|
const std::list< Dependency > & | dependencies () const |
|
event handler stored inside an InteractorComposite
This is meant to be focused on event handling only. An InteractorComponent should respond to user inputs in its eventFilter method and return true to avoid further propagation of the event to other components. This system is inherited from Qt event handling, see QObject::eventFilter() for details.
subclass of Interactor that allows building Interactors using component classes focused specifically on input handling.
The composite behaves like a regular interactor. Event handling is made using InteractorComponent subclasses. Basically, an InteractorComposite is a list of InteractorComponent. Each of them are meant to be pushed in the list using the push_back and push_front methods. When an event is caught by the InteractorComposite, it will iterate over all components (in th order provided by the list) and run eventFilter on each one of them until one of the component returns true.
When subclassing InteractorComposite, you should push your components in the construct() method (take care of the order they are pushed in). Once the setView() method is called (after construct()), the init() method will be run on every components.
- Examples:
- interactor_plugin/interactor_plugin.cpp.
Definition at line 87 of file InteractorComposite.h.