Fraxinus  22.09
An IGT application
cxToolTipSampleWidget.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 #ifndef CXTOOLTIPSAMPLEWIDGET_H_
12 #define CXTOOLTIPSAMPLEWIDGET_H_
13 
14 #include "org_custusx_calibration_Export.h"
15 
16 #include "cxBaseWidget.h"
18 #include "cxForwardDeclarations.h"
19 //#include "cxDataInterface.h"
20 
21 class QPushButton;
22 class QGroupBox;
23 class QLineEdit;
24 
25 namespace cx
26 {
27 typedef boost::shared_ptr<class VisServices> VisServicesPtr;
28 typedef boost::shared_ptr<class StringPropertySelectData> StringPropertySelectDataPtr;
29 typedef boost::shared_ptr<class StringPropertySelectTool> StringPropertySelectToolPtr;
30 typedef boost::shared_ptr<class StringPropertySelectCoordinateSystem> StringPropertySelectCoordinateSystemPtr;
32 
42 class org_custusx_calibration_EXPORT ToolTipSampleWidget : public BaseWidget
43 {
44  Q_OBJECT
45 
46 public:
47  ToolTipSampleWidget(VisServicesPtr services, QWidget* parent);
49 
50 private slots:
51  void saveFileSlot();
52  void sampleSlot();
53  void coordinateSystemChanged();
54 
55 private:
56  CoordinateSystem getSelectedCoordinateSystem();
57 
58  VisServicesPtr mServices;
59  QPushButton* mSampleButton;
60  QLabel* mSaveToFileNameLabel;
61  QPushButton* mSaveFileButton;
62  StringPropertySelectCoordinateSystemPtr mCoordinateSystems;
63  StringPropertySelectToolPtr mTools;
64  StringPropertySelectDataPtr mData;
65  LabeledComboBoxWidget* mCoordinateSystemComboBox;
66  LabeledComboBoxWidget* mToolComboBox;
67  LabeledComboBoxWidget* mDataComboBox;
68  bool mTruncateFile;
69 };
70 
71 
75 }
76 
77 #endif /* CXTOOLTIPSAMPLEWIDGET_H_ */
boost::shared_ptr< class StringPropertySelectCoordinateSystem > StringPropertySelectCoordinateSystemPtr
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
boost::shared_ptr< class StringPropertySelectTool > StringPropertySelectToolPtr
Composite widget for string selection.
Identification of a Coordinate system.
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
boost::shared_ptr< class StringPropertySelectData > StringPropertySelectDataPtr
Namespace for all CustusX production code.