12 #ifndef CXTRAININGWIDGET_H_
13 #define CXTRAININGWIDGET_H_
16 #include "boost/shared_ptr.hpp"
17 #include "org_custusx_training_Export.h"
18 #include <boost/function.hpp>
21 class ctkPluginContext;
50 typedef boost::function<void(
void)>
func_t;
52 void registrateTransition(
func_t transition);
55 void makeUnavailable(IMAGE_MODALITY modality,
bool makeModalityUnavailable =
false);
56 void makeAvailable(IMAGE_MODALITY modality,
bool makeModalityUnavailable);
59 QString getFirstUSVolume();
60 MeshPtr getMesh(QString uidPart);
62 void onImportSimulatedPatient();
66 void createSteps(
unsigned numberOfSteps);
67 CXToolButton *addToolButtonFor(QHBoxLayout *layout, QAction *action);
69 void onStep(
int delta);
70 void stepTo(
int step);
71 void transitionToStep(
int step);
72 void setAvailability(std::map<QString, DataPtr> datas,
bool available, IMAGE_MODALITY modality,
bool makeModalityUnavailable);
80 QAction* mPreviousAction;
82 QAction* mCurrentAction;
83 QAction* mImportAction;
84 QStringList mSessionIDs;