26 #ifndef ACTIONVIEWER_H
27 #define ACTIONVIEWER_H
32 #include <QVBoxLayout>
33 #include <QPushButton>
34 #include <QStackedWidget>
73 virtual unsigned int numberOfViewedComponent() {
79 virtual void refresh(
Viewer *whoIsAsking = NULL);
82 virtual QWidget * getWidget(QWidget * parent = NULL);
87 void embedActionWidget(
Action *);
91 void setSearchPanelVisible(
bool);
114 enum UpdateReason {ActionFamilyChanged, ActionNameChanged, ActionTagChanged, ViewerRefresh};
117 void updateActionViewer(UpdateReason);
148 #endif // ACTIONVIEWER_H
QComboBox * familyComboBox
Family combo box.
Definition: ActionViewer.h:123
Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:165
Viewer is an abstract viewer.
Definition: Viewer.h:50
QFrame * searchFramePanel
the search panel
Definition: ActionViewer.h:138
#define CAMITK_API
Definition: CamiTKAPI.h:49
QWidget * myWidget
Main action widget of the viewer.
Definition: ActionViewer.h:120
QLineEdit * tagLineEdit
action tags line edit
Definition: ActionViewer.h:132
ActionViewer is the viewer used to manage the actions.
Definition: ActionViewer.h:54
QComboBox * nameComboBox
Action name combo box.
Definition: ActionViewer.h:126
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:141
Action * action
Current action.
Definition: ActionViewer.h:129
QMap< ComponentList, Action * > widgetHistory
this map stores the list of selected component and the corresponding stack index of their embedded ac...
Definition: ActionViewer.h:144
QStackedWidget * actionWidgetStack
actions stacked widget of the viewer
Definition: ActionViewer.h:135
UpdateReason
Enum the different fields of the action viewwer.
Definition: ActionViewer.h:114