40#include <QStackedWidget>
111 enum UpdateReason {ActionFamilyChanged, ActionNameChanged, ActionTagChanged, ViewerRefresh};
119 void updateSearchPanel(UpdateReason);
125 QComboBox* familyComboBox;
128 QComboBox* nameComboBox;
134 QLineEdit* tagLineEdit;
137 QStackedWidget* actionWidgetStack;
140 QFrame* searchFramePanel;
146 int emptyActionWidgetIndex;
149 QMap<camitk::ComponentList, camitk::Action*> widgetHistory;
168 bool eventFilter(QObject*
object, QEvent* event)
override;
#define ACTIONVIEWER_API
Definition ActionViewerAPI.h:53
void changeTag()
Method used to change the tag.
Definition ActionViewer.cpp:198
Q_INVOKABLE ActionViewer(QString name)
Definition ActionViewer.cpp:45
void setSearchPanelVisible(bool)
show/hide the search panel (visible by default)
Definition ActionViewer.cpp:145
void changeFamily()
Method used to change the action family selected.
Definition ActionViewer.cpp:203
void changeName()
Method used to change the action selected.
Definition ActionViewer.cpp:192
Action class is an abstract class that enables you to build a action (generally an algorithm that wor...
Definition Action.h:215
This class describes a property object.
Definition PropertyObject.h:72
Viewer is an abstract class that is the base class for all viewers.
Definition Viewer.h:182
virtual PropertyObject * getPropertyObject()
get the viewer property object (returns nullptr by default, i.e. there are no property to edit)
Definition Viewer.h:261
virtual QWidget * getWidget()=0
get the viewer widget.
virtual void refresh(Viewer *whoIsAsking=nullptr)=0
refresh the view (can be interesting to know which other viewer is calling this)
virtual QMenu * getMenu()
get the viewer menu (returns nullptr by default, i.e. there are no default edit menu)
Definition Viewer.h:266
Viewer(QString name, ViewerType type=EMBEDDED)
default constructor
Definition Viewer.cpp:41
QList< Component * > ComponentList
A list of Component.
Definition CamiTKAPI.h:161