CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxSelectionGroupBox.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 CXSELECTIONGROUPBOX_H_
13 #define CXSELECTIONGROUPBOX_H_
14 
15 #include "cxResourceWidgetsExport.h"
16 
17 #include <QGroupBox>
18 
19 class QButtonGroup;
20 class QLayout;
21 
22 namespace cx
23 {
31 class cxResourceWidgets_EXPORT SelectionGroupBox : public QGroupBox
32 {
33  Q_OBJECT
34 
35 public:
36  SelectionGroupBox(QString title, QStringList selectionList, Qt::Orientation orientation, bool exclusive = false, QWidget *parent=NULL);
37  virtual ~SelectionGroupBox();
38 
39  virtual QStringList getSelected();
40  virtual void setSelected(QStringList selectedlist);
41 
42  void setEnabledButtons(bool value);
43 
44 signals:
45  void selectionChanged();
46  void userClicked();
47 
48 private:
49  void populate(bool exclusive);
50  void filter(QStringList filter);
51 
52 // QVBoxLayout* mLayout;
53  QLayout* mLayout;
54 
55  QStringList mSelectionList;
56  QButtonGroup* mButtonGroup;
57 };
58 }//namespace cx
59 #endif /* CXSELECTIONGROUPBOX_H_ */
Namespace for all CustusX production code.