 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
Go to the documentation of this file.
26 #ifndef ACTIONVIEWER_H
27 #define ACTIONVIEWER_H
32 #include <QVBoxLayout>
33 #include <QPushButton>
34 #include <QStackedWidget>
40 #include "Component.h"
57 class CAMITK_API ActionViewer :
public Viewer {
68 ~ActionViewer()
override =
default;
71 static ActionViewer* getInstance();
76 unsigned int numberOfViewedComponent() {
85 QWidget* getWidget(QWidget* parent =
nullptr)
override;
90 void embedActionWidget(
Action*);
94 void setSearchPanelVisible(
bool);
109 enum UpdateReason {ActionFamilyChanged, ActionNameChanged, ActionTagChanged, ViewerRefresh};
112 void updateActionViewer(UpdateReason);
118 QComboBox* familyComboBox;
121 QComboBox* nameComboBox;
127 QLineEdit* tagLineEdit;
130 QStackedWidget* actionWidgetStack;
133 QFrame* searchFramePanel;
136 int emptyActionWidgetIndex;
139 QMap<ComponentList, Action*> widgetHistory;
146 #endif // ACTIONVIEWER_H
ActionViewer()
Definition: ActionViewer.cpp:66
UpdateReason
Enum the different fields of the action viewwer.
Definition: ActionViewer.h:155
QString getName() const
get the name of the action
Definition: Action.h:334
QList< Action * > ActionList
A list of Action.
Definition: CamiTKAPI.h:95
bool operator<(const ComponentList &l1, const ComponentList &l2)
Definition: ActionViewer.cpp:186
QString getFamily() const
the name of the family in which this action is associated
Definition: Action.h:349
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:230
ApplyStatus trigger(QWidget *parent=nullptr)
This method triggers the action.
Definition: Action.cpp:197
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:89
Viewer is an abstract viewer.
Definition: Viewer.h:55
void refresh()
refresh the display
#define CAMITK_API
Definition: CamiTKAPI.h:49
Definition: Action.cpp:36