20 #ifndef INTERACTOREXPLORER_H
21 #define INTERACTOREXPLORER_H
25 #include <tulip/Interactor.h>
26 #include <tulip/MouseInteractors.h>
27 #include <tulip/MouseShowElementInfo.h>
28 #include <tulip/NodeLinkDiagramComponentInteractor.h>
29 #include <tulip/NodeLinkDiagramComponent.h>
30 #include <tulip/StandardInteractorPriority.h>
31 #include <tulip/StringsListSelectionWidget.h>
39 class TLP_QT_SCOPE InteractorViewExplorer :
public NodeLinkDiagramComponentInteractor {
41 class ConfigWidget :
public QWidget {
42 InteractorViewExplorer *_interactor;
45 ConfigWidget(InteractorViewExplorer *interactor) : _interactor(interactor) {}
47 void hideEvent(QHideEvent *)
override {
48 _interactor->setVisibleProperties();
52 ConfigWidget *_configWidget;
53 StringsListSelectionWidget *_propsList;
55 InteractorComponent *_firstInteractor;
56 MouseShowElementInfo *_elementInfo;
59 PLUGININFORMATION(
"InteractorViewExplorer",
"Tulip Team",
"01/12/2024",
"Explore current view",
64 InteractorViewExplorer(QString configText = QString(), InteractorComponent *interactor =
nullptr,
65 MouseShowElementInfo *elementInfo =
new MouseShowElementInfo)
66 : NodeLinkDiagramComponentInteractor(
":/tulip/gui/icons/i_explore.png",
67 "Explore current view",
68 StandardInteractorPriority::Navigation),
69 _configText(configText), _firstInteractor(interactor), _elementInfo(elementInfo) {}
74 void construct()
override;
76 QWidget *configurationOptionsWidget()
const override {
80 void setVisibleProperties();
#define PLUGININFORMATION(NAME, AUTHOR, DATE, INFO, RELEASE, GROUP)
Declare meta-information for a plugin This is an helper macro that defines every function related to ...