Tulip
5.4.0
Large graphs analysis and drawing
|
#include <Interactor.h>
Public Slots | |
virtual void | install (QObject *target)=0 |
virtual void | setView (tlp::View *)=0 |
virtual void | undoIsDone ()=0 |
virtual void | uninstall ()=0 |
Public Member Functions | |
virtual QAction * | action () const =0 |
std::string | category () const override |
virtual QLabel * | configurationDocWidget () const |
virtual QWidget * | configurationOptionsWidget () const |
virtual QWidget * | configurationWidget () const |
virtual void | construct ()=0 |
virtual QCursor | cursor () const =0 |
std::string | icon () const override |
virtual bool | isCompatible (const std::string &viewName) const =0 |
virtual unsigned int | priority () const =0 |
virtual tlp::View * | view () const =0 |
Public Member Functions inherited from tlp::Plugin | |
virtual std::string | author () const =0 |
virtual std::string | date () const =0 |
void | declareDeprecatedName (const std::string &oldName) |
std::string | deprecatedName () |
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 |
Protected Member Functions | |
bool | eventFilter (QObject *obj, QEvent *ev) override |
Properties | |
QAction | action |
QCursor | cursor |
unsigned int | priority |
tlp::View | view |
Additional Inherited Members | |
Protected Attributes inherited from tlp::Plugin | |
std::string | oldName |
Interactor provides a way to handle user inputs over a view. Basically, The interactor class is an overlay to the Qt's event filtering mechanism. It adds several features like the ability to define priorities, custom cursors, etc.
When an interactor is constructed, the following methods are called in this order:
Methods listed above are only called once. Once the interactor is initialized, it may be installed/removed several times on different QObjects. It will then repond to user inputs via the eventFilter method
Definition at line 63 of file Interactor.h.
|
pure virtual |
Implemented in tlp::InteractorComposite.
|
inlineoverridevirtual |
A string identifier for a plugin used for categorization purposes.
Implements tlp::Plugin.
Definition at line 71 of file Interactor.h.
|
inlinevirtual |
Definition at line 94 of file Interactor.h.
|
pure virtual |
Builds up the interactor's internal state. This method should be used instead of the constructor to initialize the interactor.
|
pure virtual |
Implemented in tlp::InteractorComposite.
|
inlineoverrideprotected |
Provides input filtering for the interactor.
Definition at line 171 of file Interactor.h.
|
inlineoverridevirtual |
The icon (preferably a thumbnail) of the plugin.
Reimplemented from tlp::Plugin.
Definition at line 74 of file Interactor.h.
|
pure virtualslot |
Install the interactor on the given target A call to this method means that the interactor should start listening to the target's events and handle them. Returning true prevents further handling of the event. Doing otherwise means that the interactor will let following filters to hand over this kind of event.
|
pure virtual |
Checks the compatibility between the interactor and the given view (identified by its name). If this method returns true, it's very likely that the interactor will be installed on the associated view.
|
pure virtual |
Implemented in tlp::NodeLinkDiagramComponentInteractor.
|
pure virtualslot |
Defines the view object associated to this interactor.
|
pure virtualslot |
Informs the interactor when the undo command (Ctrl+Z) has been triggered.
|
pure virtualslot |
Removes the interactor from the previously set target. Interactors can be installed on only one target at once.
|
pure virtual |
Implemented in tlp::InteractorComposite.