CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxManageClippersWidget.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 CXMANAGECLIPPERSWIDGET_H
13 #define CXMANAGECLIPPERSWIDGET_H
14 
15 #include "cxGuiExport.h"
16 
17 #include "cxBaseWidget.h"
18 #include "cxForwardDeclarations.h"
19 #include "cxStringProperty.h"
20 #include "cxTabbedWidget.h"
21 
22 namespace cx
23 {
24 class ClipperWidget;
25 
33 class cxGui_EXPORT ClippingPropertiesWidget : public TabbedWidget
34 {
35  Q_OBJECT
36 public:
37  ClippingPropertiesWidget(VisServicesPtr services, QWidget* parent);
39 };
40 
41 //--------------------------------------
42 
48 class cxGui_EXPORT ManageClippersWidget: public BaseWidget
49 {
50  Q_OBJECT
51 public:
52  ManageClippersWidget(VisServicesPtr services, QWidget* parent);
53 
54 protected:
56  QVBoxLayout* mLayout;
58 
61 
62  void setupUI();
63 // void setupClipperUI();
64  void initClipperSelector();
65  QString getNameBaseOfCurrentClipper();
66  ClippersPtr getClippers();
67 protected slots:
68  void newClipperButtonClicked();
69  void clipperChanged();
70 private slots:
71  void clippersChanged();
72 };
73 }//cx
74 #endif // CXMANAGECLIPPERSWIDGET_H
Widget for displaying and changing clipper properties.
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
boost::shared_ptr< class Clippers > ClippersPtr
boost::shared_ptr< class StringProperty > StringPropertyPtr
Interface for making widgets with a hierarchy of tabs.
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
StringPropertyPtr mClipperSelector
boost::shared_ptr< class InteractiveClipper > InteractiveClipperPtr
Widget for managing clippers.
InteractiveClipperPtr mCurrentClipper
Namespace for all CustusX production code.