Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitknnUNetEnsembleLayout.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitknnUNetEnsembleLayout_h
14 #define QmitknnUNetEnsembleLayout_h
15 
16 
17 #include <QtWidgets/QGridLayout>
18 #include <QtWidgets/QVBoxLayout>
19 #include <QtWidgets/QWidget>
20 #include <QtWidgets/QLabel>
21 #include <ctkCheckableComboBox.h>
22 #include <ctkComboBox.h>
24 
25 
26 QT_BEGIN_NAMESPACE
27 
29 {
30 
31 public:
32  QLabel* trainerLabel;
33  ctkComboBox* trainerBox;
34  QLabel* plannerLabel;
35  ctkComboBox* plannerBox;
36  QLabel* foldLabel;
37  ctkCheckableComboBox* foldBox;
38  QLabel* modelLabel;
39  ctkComboBox* modelBox;
40  QWidget* parent;
41 
42  QmitknnUNetTaskParamsUITemplate(QWidget* inputGroupBox_1)
43  {
44  this->parent = inputGroupBox_1;
45  QVBoxLayout* verticalLayout_x = new QVBoxLayout(inputGroupBox_1);
46  verticalLayout_x->setObjectName(QString::fromUtf8("verticalLayout_x"));
47  QGridLayout* g_x = new QGridLayout();
48 #ifndef Q_OS_MAC
49  g_x->setSpacing(6);
50 #endif
51 #ifndef Q_OS_MAC
52  g_x->setContentsMargins(0, 0, 0, 0);
53 #endif
54  g_x->setObjectName(QString::fromUtf8("g_2"));
55 
56  modelLabel = new QLabel("Configuration", inputGroupBox_1);
57  g_x->addWidget(modelLabel, 0, 0, 1, 1);
58  trainerLabel = new QLabel("Trainer", inputGroupBox_1);
59  g_x->addWidget(trainerLabel, 0, 1, 1, 1);
60 
61  modelBox = new ctkComboBox(inputGroupBox_1);
62  modelBox->setObjectName(QString::fromUtf8("modelBox_1"));
63  g_x->addWidget(modelBox, 1, 0, 1, 1);
64  trainerBox = new ctkComboBox(inputGroupBox_1);
65  trainerBox->setObjectName(QString::fromUtf8("trainerBox_1"));
66  g_x->addWidget(trainerBox, 1, 1, 1, 1);
67 
68  plannerLabel = new QLabel("Planner", inputGroupBox_1);
69  g_x->addWidget(plannerLabel, 2, 0, 1, 1);
70  foldLabel = new QLabel("Fold", inputGroupBox_1);
71  g_x->addWidget(foldLabel, 2, 1, 1, 1);
72 
73  plannerBox = new ctkComboBox(inputGroupBox_1);
74  plannerBox->setObjectName(QString::fromUtf8("plannerBox_1"));
75  g_x->addWidget(plannerBox, 3, 0, 1, 1);
76  foldBox = new ctkCheckableComboBox(inputGroupBox_1);
77  foldBox->setObjectName(QString::fromUtf8("foldBox_1"));
78  g_x->addWidget(foldBox, 3, 1, 1, 1);
79 
80  verticalLayout_x->addLayout(g_x);
81  }
82 
83  void setVisible(bool visiblity)
84  {
85  this->parent->setVisible(visiblity);
86  }
87 };
88 QT_END_NAMESPACE
89 
90 #endif
MITKSEGMENTATIONUI_EXPORT
#define MITKSEGMENTATIONUI_EXPORT
Definition: MitkSegmentationUIExports.h:15
QmitknnUNetTaskParamsUITemplate::trainerBox
ctkComboBox * trainerBox
Definition: QmitknnUNetEnsembleLayout.h:33
QmitknnUNetTaskParamsUITemplate::plannerBox
ctkComboBox * plannerBox
Definition: QmitknnUNetEnsembleLayout.h:35
QmitknnUNetTaskParamsUITemplate::trainerLabel
QLabel * trainerLabel
Definition: QmitknnUNetEnsembleLayout.h:32
QmitknnUNetTaskParamsUITemplate::plannerLabel
QLabel * plannerLabel
Definition: QmitknnUNetEnsembleLayout.h:34
QmitknnUNetTaskParamsUITemplate::foldBox
ctkCheckableComboBox * foldBox
Definition: QmitknnUNetEnsembleLayout.h:37
QmitknnUNetTaskParamsUITemplate::QmitknnUNetTaskParamsUITemplate
QmitknnUNetTaskParamsUITemplate(QWidget *inputGroupBox_1)
Definition: QmitknnUNetEnsembleLayout.h:42
QmitknnUNetTaskParamsUITemplate::parent
QWidget * parent
Definition: QmitknnUNetEnsembleLayout.h:40
QmitknnUNetTaskParamsUITemplate::modelBox
ctkComboBox * modelBox
Definition: QmitknnUNetEnsembleLayout.h:39
QmitknnUNetTaskParamsUITemplate::foldLabel
QLabel * foldLabel
Definition: QmitknnUNetEnsembleLayout.h:36
QmitknnUNetTaskParamsUITemplate::modelLabel
QLabel * modelLabel
Definition: QmitknnUNetEnsembleLayout.h:38
MitkSegmentationUIExports.h
QmitknnUNetTaskParamsUITemplate
Definition: QmitknnUNetEnsembleLayout.h:28
QmitknnUNetTaskParamsUITemplate::setVisible
void setVisible(bool visiblity)
Definition: QmitknnUNetEnsembleLayout.h:83