CustusX  22.04-rc5
An IGT application
cxGeneralTab.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 CXGENERALTAB_H_
13 #define CXGENERALTAB_H_
14 
15 #include "cxGuiExport.h"
16 
17 #include <QComboBox>
18 #include "cxPreferenceTab.h"
19 #include "cxBoolProperty.h"
20 class QToolButton;
21 
22 namespace cx
23 {
24 
35 class cxGui_EXPORT GeneralTab : public PreferenceTab
36 {
37  Q_OBJECT
38 
39 public:
40  GeneralTab(ViewServicePtr viewService, PatientModelServicePtr patientModelService, QWidget *parent = 0);
41  virtual ~GeneralTab();
42  void init();
43 
44 public slots:
45  void saveParametersSlot();
46 
47 private slots:
48  void browsePatientDataFolderSlot();
49  void browseVLCPathSlot();
50  void onAddProfile();
51  void onProfileSelected();
52  void onProfileChanged();
53  void selectProfile(QString uid);
54 
55 private:
56  void rejectDialog();
57  void searchForVLC(QStringList searchPaths = QStringList());
58  QToolButton* createAddProfileButton();
59  StringPropertyPtr getProfileSelector();
60 
61  QComboBox* mPatientDataFolderComboBox;
62  QComboBox* mVLCPathComboBox;
63 
64  QComboBox* mToolConfigFolderComboBox;
65 
66  BoolPropertyPtr mFilterToolPositions;
67  DoublePropertyPtr mFilterToolPositionsCutoff;
68 
69  QString mGlobalPatientDataFolder;
70  QString mVLCPath;
71  ViewServicePtr mViewService;
72  PatientModelServicePtr mPatientModelService;
73  StringPropertyPtr mSelector;
74 
75 };
76 } /* namespace cx */
77 #endif /* CXGENERALTAB_H_ */
Tab for general settings in the system.
Definition: cxGeneralTab.h:35
boost::shared_ptr< class ViewService > ViewServicePtr
boost::shared_ptr< class StringProperty > StringPropertyPtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
boost::shared_ptr< class DoubleProperty > DoublePropertyPtr
boost::shared_ptr< class BoolProperty > BoolPropertyPtr
Namespace for all CustusX production code.