25#ifndef ACTIONSTATEVIEWER_H
26#define ACTIONSTATEVIEWER_H
30#include <QStackedWidget>
56 virtual void refresh(Viewer* whoIsAsking =
nullptr) {};
The current action state viewer.
Definition: ActionStateViewer.h:45
virtual QWidget * getWidget()
get the viewer widget.
Definition: ActionStateViewer.cpp:44
int emptyActionWidgetIndex
index of the empty widget, used when no action is active or when no action has been used for the curr...
Definition: ActionStateViewer.h:75
QWidget * myWidget
the viewer's widget
Definition: ActionStateViewer.h:64
QString name
the viewer's name
Definition: ActionStateViewer.h:67
virtual void refresh(Viewer *whoIsAsking=nullptr)
refresh the view (can be interesting to know which other viewer is calling this)
Definition: ActionStateViewer.h:56
QStackedWidget * actionStateWidgetStack
actions stacked widget of the viewer
Definition: ActionStateViewer.h:70
void setState(ActionState *actionState)
set the current state
Definition: ActionStateViewer.cpp:68
Q_INVOKABLE ActionStateViewer(QString name)
Definition: ActionStateViewer.cpp:37
The state (in a state machine point of view) corresponding to the current processed action.
Definition: ActionState.h:48
Viewer is an abstract class that is the base class for all viewers.
Definition: Viewer.h:180