26 #ifndef ACTIONVIEWER_H
27 #define ACTIONVIEWER_H
33 #include <Component.h>
38 #include <QVBoxLayout>
39 #include <QPushButton>
40 #include <QStackedWidget>
78 virtual void refresh(Viewer* whoIsAsking =
nullptr)
override;
86 virtual void setSearchPanelVisible(
bool);
109 void updateSearchPanel(UpdateReason);
#define ACTIONVIEWER_API
Definition: ActionViewerAPI.h:54
ActionViewer is the viewer used to manage the actions.
Definition: ActionViewer.h:63
QWidget * myWidget
Main action widget of the viewer.
Definition: ActionViewer.h:112
UpdateReason
Enum the different fields of the action viewwer.
Definition: ActionViewer.h:101
@ ActionFamilyChanged
Definition: ActionViewer.h:101
camitk::Action * action
Current action.
Definition: ActionViewer.h:121
QComboBox * familyComboBox
Family combo box.
Definition: ActionViewer.h:115
int emptyActionWidgetIndex
index of the empty widget, used when no action is active or when no action has been used for the curr...
Definition: ActionViewer.h:133
QStackedWidget * actionWidgetStack
actions stacked widget of the viewer
Definition: ActionViewer.h:127
QFrame * searchFramePanel
the search panel
Definition: ActionViewer.h:130
camitk::ComponentList currentlySelected
Used to evaluate modification of the list while execution.
Definition: ActionViewer.h:139
QComboBox * nameComboBox
Action name combo box.
Definition: ActionViewer.h:118
QLineEdit * tagLineEdit
action tags line edit
Definition: ActionViewer.h:124
QMap< camitk::ComponentList, camitk::Action * > widgetHistory
this map stores the list of selected component and the corresponding stack index of their embedded ac...
Definition: ActionViewer.h:136
Action class is an abstract class that enables you to build a action (generally on a component).
Definition: Action.h:208
Viewer is an abstract class that is the base class for all viewers.
Definition: Viewer.h:180
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)
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:127