CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxCompactFilterSetupWidget.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 CXCOMPACTFILTERSETUPWIDGET_H_
13 #define CXCOMPACTFILTERSETUPWIDGET_H_
14 
15 #include "cxResourceWidgetsExport.h"
16 
17 #include "cxBaseWidget.h"
18 //#include "cxFilterWidget.h"
19 #include "cxFilter.h"
20 
21 
22 namespace cx {
23 
24 class OptionsWidget;
25 class WidgetObscuredListener;
26 
35 class cxResourceWidgets_EXPORT CompactFilterSetupWidget : public BaseWidget
36 {
37  Q_OBJECT
38 
39 public:
40  CompactFilterSetupWidget(ViewServicePtr viewService, PatientModelServicePtr patientModelService, QWidget* parent, XmlOptionFile options, bool addFrame);
41  void setFilter(FilterPtr filter);
42  QString getHelpText() const;
43 
44 private slots:
45  void obscuredSlot(bool obscured);
46 
47 private:
48  XmlOptionFile mOptions;
49  FilterPtr mCurrentFilter;
50  OptionsWidget* mOptionsWidget;
51  QGroupBox* mFrame;
52  boost::shared_ptr<WidgetObscuredListener> mObscuredListener;
53 };
54 } /* namespace cx */
55 #endif /* CXCOMPACTFILTERSETUPWIDGET_H_ */
Helper widget for displaying the input/output/options part of a Filter. Intended to be included in ot...
boost::shared_ptr< class ViewService > ViewServicePtr
boost::shared_ptr< class Filter > FilterPtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
Helper class for xml files used to store ssc/cx data.
Namespace for all CustusX production code.