Computer Assisted Medical Intervention Tool Kit  version 5.2
DependenciesWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2024 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, TIMC, 38000 Grenoble, France
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 #ifndef DENCIESWIDGET_H
26 #define DENCIESWIDGET_H
27 
28 // Include GUI automatically generated file
29 #include "ui_DependenciesWidget.h"
30 
31 // includes from Qt
32 #include <QWidget>
33 #include <QStringList>
34 #include <QCheckBox>
35 
43 class DependenciesWidget : public QWidget {
44 
45  Q_OBJECT;
46 
47 public:
49  DependenciesWidget(QWidget* parent);
51  ~DependenciesWidget() override = default;
52 
53  void setToDefault();
54 
55  void setElement(QString element);
56  void updateCEPLibraries(QStringList cepLibraries);
57  void updateCEPComponents(QMap<QString, bool> cepComponents);
58  void updateCEPActions(QStringList cepActions);
59 
60  void setItkDependency(bool checked);
61 
62  QStringList getCEPLibrariesDependencies();
63  QStringList getCEPComponentsDependencies();
64  QStringList getCEPActionsDependencies();
65 
66  QStringList getCamiTKLibrariesDependencies();
67  QStringList getCamiTKComponentsDependencies();
68  QStringList getCamiTKActionsDependencies();
69 
70  QStringList getExternalLibsDependencies();
71 
72 
73 public slots:
74  virtual void nextButtonClicked();
75  virtual void cancelButtonClicked();
76  virtual void previousButtonClicked();
77 
78 signals:
79  void next();
80  void previous();
81  void cancel();
82 
83 private:
84  Ui::DependenciesWidget ui;
85 
86  QVector<QCheckBox*> cepLibrariesCheckBox;
87  QVector<QCheckBox*> cepComponentsCheckBox;
88  QVector<QCheckBox*> cepActionsCheckBox;
89 
90 };
91 #endif
Widget to define dependencies.
Definition: DependenciesWidget.h:43
void setElement(QString element)
Definition: DependenciesWidget.cpp:84
void setToDefault()
Definition: DependenciesWidget.cpp:35
QStringList getExternalLibsDependencies()
Definition: DependenciesWidget.cpp:278
void updateCEPComponents(QMap< QString, bool > cepComponents)
Definition: DependenciesWidget.cpp:149
~DependenciesWidget() override=default
Destructor.
void setItkDependency(bool checked)
Definition: DependenciesWidget.cpp:80
virtual void nextButtonClicked()
Definition: DependenciesWidget.cpp:68
QStringList getCamiTKActionsDependencies()
Definition: DependenciesWidget.cpp:269
virtual void cancelButtonClicked()
Definition: DependenciesWidget.cpp:72
QStringList getCamiTKLibrariesDependencies()
Definition: DependenciesWidget.cpp:252
DependenciesWidget(QWidget *parent)
Constructor.
Definition: DependenciesWidget.cpp:31
QStringList getCEPComponentsDependencies()
Definition: DependenciesWidget.cpp:230
QStringList getCamiTKComponentsDependencies()
Definition: DependenciesWidget.cpp:260
void updateCEPLibraries(QStringList cepLibraries)
Definition: DependenciesWidget.cpp:117
QStringList getCEPLibrariesDependencies()
Definition: DependenciesWidget.cpp:219
void updateCEPActions(QStringList cepActions)
Definition: DependenciesWidget.cpp:187
virtual void previousButtonClicked()
Definition: DependenciesWidget.cpp:76
QStringList getCEPActionsDependencies()
Definition: DependenciesWidget.cpp:241