Fraxinus  22.09
An IGT application
cxRecordSessionWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXRECORDSESSIONWIDGET_H_
13 #define CXRECORDSESSIONWIDGET_H_
14 
15 #include "org_custusx_acquisition_Export.h"
16 
17 #include "cxBaseWidget.h"
18 #include "cxAcquisitionService.h"
19 
20 class QPushButton;
21 class QLineEdit;
22 class QLabel;
23 
24 namespace cx
25 {
32 typedef boost::shared_ptr<class AcquisitionService> AcquisitionServicePtr;
33 typedef boost::shared_ptr<class RecordSessionWidget> RecordSessionWidgetPtr;
34 
43 class org_custusx_acquisition_EXPORT RecordSessionWidget : public BaseWidget
44 {
45  Q_OBJECT
46 
47 public:
48  RecordSessionWidget(AcquisitionServicePtr base, QWidget* parent,
50  QString category);
51  virtual ~RecordSessionWidget();
52 
53  void setDescription(QString text);
54  void setCurrentSession(QString uid);
55 
56 private slots:
57  void startStopSlot(bool);
58  void cancelSlot();
59  void recordStateChangedSlot();
60  void onReadinessChanged();
61 
62 private:
63 
64  AcquisitionServicePtr mAcquisitionService;
65  QLabel* mInfoLabel;
66  QPushButton* mStartStopButton;
67  QPushButton* mCancelButton;
69  QString mCategory;
70  QString mCurrentSession;
71 };
72 
76 }//namespace cx
77 #endif /* CXRECORDSESSIONWIDGET_H_ */
boost::shared_ptr< class AcquisitionService > AcquisitionServicePtr
boost::shared_ptr< class RecordSessionWidget > RecordSessionWidgetPtr
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
Namespace for all CustusX production code.