26 #ifndef ACTIONVIEWER_H 27 #define ACTIONVIEWER_H 32 #include <QVBoxLayout> 33 #include <QPushButton> 34 #include <QStackedWidget> 40 #include "Component.h" 76 unsigned int numberOfViewedComponent() {
82 void refresh(
Viewer* whoIsAsking =
nullptr)
override;
85 QWidget* getWidget(QWidget* parent =
nullptr)
override;
90 void embedActionWidget(
Action*);
94 void setSearchPanelVisible(
bool);
109 enum UpdateReason {ActionFamilyChanged, ActionNameChanged, ActionTagChanged, ViewerRefresh};
146 #endif // ACTIONVIEWER_H
QComboBox * familyComboBox
Family combo box.
Definition: ActionViewer.h:118
Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:207
Viewer is an abstract viewer.
Definition: Viewer.h:55
QFrame * searchFramePanel
the search panel
Definition: ActionViewer.h:133
Definition: Action.cpp:36
#define CAMITK_API
Definition: CamiTKAPI.h:49
QWidget * myWidget
Main action widget of the viewer.
Definition: ActionViewer.h:115
QLineEdit * tagLineEdit
action tags line edit
Definition: ActionViewer.h:127
ActionViewer is the viewer used to manage the actions.
Definition: ActionViewer.h:57
ComponentList currentlySelected
Used to evaluate modification of the list while execution.
Definition: ActionViewer.h:142
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:89
QComboBox * nameComboBox
Action name combo box.
Definition: ActionViewer.h:121
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:136
Action * action
Current action.
Definition: ActionViewer.h:124
QMap< ComponentList, Action * > widgetHistory
this map stores the list of selected component and the corresponding stack index of their embedded ac...
Definition: ActionViewer.h:139
QStackedWidget * actionWidgetStack
actions stacked widget of the viewer
Definition: ActionViewer.h:130
UpdateReason
Enum the different fields of the action viewwer.
Definition: ActionViewer.h:109