00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_QMITKSEGMENTATIONCONTROLS_H
00011 #define UI_QMITKSEGMENTATIONCONTROLS_H
00012
00013 #include <QmitkDataStorageComboBox.h>
00014 #include <QmitkSlicesInterpolator.h>
00015 #include <QmitkToolGUIArea.h>
00016 #include <QmitkToolReferenceDataSelectionBox.h>
00017 #include <QmitkToolSelectionBox.h>
00018 #include <QtCore/QVariant>
00019 #include <QtGui/QAction>
00020 #include <QtGui/QApplication>
00021 #include <QtGui/QButtonGroup>
00022 #include <QtGui/QGroupBox>
00023 #include <QtGui/QHBoxLayout>
00024 #include <QtGui/QHeaderView>
00025 #include <QtGui/QLabel>
00026 #include <QtGui/QPushButton>
00027 #include <QtGui/QSpacerItem>
00028 #include <QtGui/QToolBox>
00029 #include <QtGui/QToolButton>
00030 #include <QtGui/QVBoxLayout>
00031 #include <QtGui/QWidget>
00032
00033 QT_BEGIN_NAMESPACE
00034
00035 class Ui_QmitkSegmentationControls
00036 {
00037 public:
00038 QVBoxLayout *verticalLayout_6;
00039 QGroupBox *groupBox;
00040 QVBoxLayout *verticalLayout_3;
00041 QHBoxLayout *horizontalLayout;
00042 QLabel *lblRefImage;
00043 QmitkDataStorageComboBox *refImageSelector;
00044 QLabel *lblReferenceImageSelectionWarning;
00045 QHBoxLayout *horizontalLayout_2;
00046 QLabel *lblSegImage;
00047 QLabel *lblSegmentation;
00048 QToolBox *widgetStack;
00049 QWidget *pageManual;
00050 QVBoxLayout *verticalLayout;
00051 QLabel *lblAlignmentWarning;
00052 QLabel *lblWorkingImageSelectionWarning;
00053 QToolButton *btnNewSegmentation;
00054 QLabel *lblManualTools;
00055 QmitkToolSelectionBox *m_ManualToolSelectionBox;
00056 QmitkToolGUIArea *m_ManualToolGUIContainer;
00057 QLabel *lblInterpolation;
00058 QmitkSlicesInterpolator *m_SlicesInterpolator;
00059 QSpacerItem *verticalSpacer;
00060 QWidget *pageOrgans;
00061 QVBoxLayout *verticalLayout_2;
00062 QmitkToolSelectionBox *m_OrganToolSelectionBox;
00063 QmitkToolGUIArea *m_OrganToolGUIContainer;
00064 QSpacerItem *verticalSpacer_2;
00065 QWidget *pageLesions;
00066 QVBoxLayout *verticalLayout_4;
00067 QmitkToolSelectionBox *m_LesionToolSelectionBox;
00068 QmitkToolGUIArea *m_LesionToolGUIContainer;
00069 QSpacerItem *verticalSpacer_3;
00070 QWidget *SurfaceMasking;
00071 QVBoxLayout *verticalLayout_5;
00072 QLabel *label;
00073 QmitkDataStorageComboBox *MaskSurfaces;
00074 QPushButton *CreateSegmentationFromSurface;
00075 QSpacerItem *verticalSpacer_4;
00076
00077 void setupUi(QWidget *QmitkSegmentationControls)
00078 {
00079 if (QmitkSegmentationControls->objectName().isEmpty())
00080 QmitkSegmentationControls->setObjectName(QString::fromUtf8("QmitkSegmentationControls"));
00081 QmitkSegmentationControls->resize(241, 393);
00082 QmitkSegmentationControls->setMinimumSize(QSize(0, 0));
00083 QFont font;
00084 font.setFamily(QString::fromUtf8("MS Shell Dlg 2"));
00085 font.setPointSize(8);
00086 font.setBold(false);
00087 font.setItalic(false);
00088 font.setUnderline(false);
00089 font.setWeight(50);
00090 font.setStrikeOut(false);
00091 QmitkSegmentationControls->setFont(font);
00092 verticalLayout_6 = new QVBoxLayout(QmitkSegmentationControls);
00093 verticalLayout_6->setSpacing(6);
00094 verticalLayout_6->setContentsMargins(11, 11, 11, 11);
00095 verticalLayout_6->setObjectName(QString::fromUtf8("verticalLayout_6"));
00096 groupBox = new QGroupBox(QmitkSegmentationControls);
00097 groupBox->setObjectName(QString::fromUtf8("groupBox"));
00098 verticalLayout_3 = new QVBoxLayout(groupBox);
00099 verticalLayout_3->setSpacing(6);
00100 verticalLayout_3->setContentsMargins(11, 11, 11, 11);
00101 verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
00102 horizontalLayout = new QHBoxLayout();
00103 horizontalLayout->setSpacing(6);
00104 horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
00105 lblRefImage = new QLabel(groupBox);
00106 lblRefImage->setObjectName(QString::fromUtf8("lblRefImage"));
00107 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred);
00108 sizePolicy.setHorizontalStretch(0);
00109 sizePolicy.setVerticalStretch(0);
00110 sizePolicy.setHeightForWidth(lblRefImage->sizePolicy().hasHeightForWidth());
00111 lblRefImage->setSizePolicy(sizePolicy);
00112 lblRefImage->setMinimumSize(QSize(0, 0));
00113 lblRefImage->setMaximumSize(QSize(16777215, 16777215));
00114
00115 horizontalLayout->addWidget(lblRefImage);
00116
00117 refImageSelector = new QmitkDataStorageComboBox(groupBox);
00118 refImageSelector->setObjectName(QString::fromUtf8("refImageSelector"));
00119
00120 horizontalLayout->addWidget(refImageSelector);
00121
00122
00123 verticalLayout_3->addLayout(horizontalLayout);
00124
00125 lblReferenceImageSelectionWarning = new QLabel(groupBox);
00126 lblReferenceImageSelectionWarning->setObjectName(QString::fromUtf8("lblReferenceImageSelectionWarning"));
00127 QPalette palette;
00128 QBrush brush(QColor(200, 0, 0, 255));
00129 brush.setStyle(Qt::SolidPattern);
00130 palette.setBrush(QPalette::Active, QPalette::WindowText, brush);
00131 palette.setBrush(QPalette::Active, QPalette::Text, brush);
00132 palette.setBrush(QPalette::Active, QPalette::ButtonText, brush);
00133 palette.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
00134 palette.setBrush(QPalette::Inactive, QPalette::Text, brush);
00135 palette.setBrush(QPalette::Inactive, QPalette::ButtonText, brush);
00136 QBrush brush1(QColor(84, 82, 78, 255));
00137 brush1.setStyle(Qt::SolidPattern);
00138 palette.setBrush(QPalette::Disabled, QPalette::WindowText, brush1);
00139 palette.setBrush(QPalette::Disabled, QPalette::Text, brush1);
00140 palette.setBrush(QPalette::Disabled, QPalette::ButtonText, brush1);
00141 lblReferenceImageSelectionWarning->setPalette(palette);
00142 QFont font1;
00143 font1.setBold(false);
00144 font1.setWeight(50);
00145 lblReferenceImageSelectionWarning->setFont(font1);
00146
00147 verticalLayout_3->addWidget(lblReferenceImageSelectionWarning);
00148
00149 horizontalLayout_2 = new QHBoxLayout();
00150 horizontalLayout_2->setSpacing(6);
00151 horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
00152 lblSegImage = new QLabel(groupBox);
00153 lblSegImage->setObjectName(QString::fromUtf8("lblSegImage"));
00154
00155 horizontalLayout_2->addWidget(lblSegImage);
00156
00157 lblSegmentation = new QLabel(groupBox);
00158 lblSegmentation->setObjectName(QString::fromUtf8("lblSegmentation"));
00159
00160 horizontalLayout_2->addWidget(lblSegmentation);
00161
00162
00163 verticalLayout_3->addLayout(horizontalLayout_2);
00164
00165
00166 verticalLayout_6->addWidget(groupBox);
00167
00168 widgetStack = new QToolBox(QmitkSegmentationControls);
00169 widgetStack->setObjectName(QString::fromUtf8("widgetStack"));
00170 pageManual = new QWidget();
00171 pageManual->setObjectName(QString::fromUtf8("pageManual"));
00172 pageManual->setGeometry(QRect(0, 0, 223, 176));
00173 verticalLayout = new QVBoxLayout(pageManual);
00174 verticalLayout->setSpacing(6);
00175 verticalLayout->setContentsMargins(11, 11, 11, 11);
00176 verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
00177 verticalLayout->setContentsMargins(0, -1, 0, -1);
00178 lblAlignmentWarning = new QLabel(pageManual);
00179 lblAlignmentWarning->setObjectName(QString::fromUtf8("lblAlignmentWarning"));
00180 QPalette palette1;
00181 palette1.setBrush(QPalette::Active, QPalette::WindowText, brush);
00182 palette1.setBrush(QPalette::Active, QPalette::Text, brush);
00183 palette1.setBrush(QPalette::Active, QPalette::ButtonText, brush);
00184 palette1.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
00185 palette1.setBrush(QPalette::Inactive, QPalette::Text, brush);
00186 palette1.setBrush(QPalette::Inactive, QPalette::ButtonText, brush);
00187 palette1.setBrush(QPalette::Disabled, QPalette::WindowText, brush1);
00188 palette1.setBrush(QPalette::Disabled, QPalette::Text, brush1);
00189 palette1.setBrush(QPalette::Disabled, QPalette::ButtonText, brush1);
00190 lblAlignmentWarning->setPalette(palette1);
00191 lblAlignmentWarning->setFont(font1);
00192
00193 verticalLayout->addWidget(lblAlignmentWarning);
00194
00195 lblWorkingImageSelectionWarning = new QLabel(pageManual);
00196 lblWorkingImageSelectionWarning->setObjectName(QString::fromUtf8("lblWorkingImageSelectionWarning"));
00197 QPalette palette2;
00198 palette2.setBrush(QPalette::Active, QPalette::WindowText, brush);
00199 palette2.setBrush(QPalette::Active, QPalette::Text, brush);
00200 palette2.setBrush(QPalette::Active, QPalette::ButtonText, brush);
00201 palette2.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
00202 palette2.setBrush(QPalette::Inactive, QPalette::Text, brush);
00203 palette2.setBrush(QPalette::Inactive, QPalette::ButtonText, brush);
00204 palette2.setBrush(QPalette::Disabled, QPalette::WindowText, brush1);
00205 palette2.setBrush(QPalette::Disabled, QPalette::Text, brush1);
00206 palette2.setBrush(QPalette::Disabled, QPalette::ButtonText, brush1);
00207 lblWorkingImageSelectionWarning->setPalette(palette2);
00208 lblWorkingImageSelectionWarning->setFont(font1);
00209
00210 verticalLayout->addWidget(lblWorkingImageSelectionWarning);
00211
00212 btnNewSegmentation = new QToolButton(pageManual);
00213 btnNewSegmentation->setObjectName(QString::fromUtf8("btnNewSegmentation"));
00214 btnNewSegmentation->setEnabled(false);
00215 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed);
00216 sizePolicy1.setHorizontalStretch(1);
00217 sizePolicy1.setVerticalStretch(0);
00218 sizePolicy1.setHeightForWidth(btnNewSegmentation->sizePolicy().hasHeightForWidth());
00219 btnNewSegmentation->setSizePolicy(sizePolicy1);
00220 btnNewSegmentation->setFont(font1);
00221 QIcon icon;
00222 icon.addFile(QString::fromUtf8(":/segmentation/btnNew.png"), QSize(), QIcon::Normal, QIcon::Off);
00223 btnNewSegmentation->setIcon(icon);
00224 btnNewSegmentation->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
00225
00226 verticalLayout->addWidget(btnNewSegmentation);
00227
00228 lblManualTools = new QLabel(pageManual);
00229 lblManualTools->setObjectName(QString::fromUtf8("lblManualTools"));
00230 QFont font2;
00231 font2.setBold(true);
00232 font2.setWeight(75);
00233 lblManualTools->setFont(font2);
00234
00235 verticalLayout->addWidget(lblManualTools);
00236
00237 m_ManualToolSelectionBox = new QmitkToolSelectionBox(pageManual);
00238 m_ManualToolSelectionBox->setObjectName(QString::fromUtf8("m_ManualToolSelectionBox"));
00239 m_ManualToolSelectionBox->setFont(font1);
00240
00241 verticalLayout->addWidget(m_ManualToolSelectionBox);
00242
00243 m_ManualToolGUIContainer = new QmitkToolGUIArea(pageManual);
00244 m_ManualToolGUIContainer->setObjectName(QString::fromUtf8("m_ManualToolGUIContainer"));
00245 m_ManualToolGUIContainer->setFont(font1);
00246
00247 verticalLayout->addWidget(m_ManualToolGUIContainer);
00248
00249 lblInterpolation = new QLabel(pageManual);
00250 lblInterpolation->setObjectName(QString::fromUtf8("lblInterpolation"));
00251 lblInterpolation->setFont(font2);
00252
00253 verticalLayout->addWidget(lblInterpolation);
00254
00255 m_SlicesInterpolator = new QmitkSlicesInterpolator(pageManual);
00256 m_SlicesInterpolator->setObjectName(QString::fromUtf8("m_SlicesInterpolator"));
00257 m_SlicesInterpolator->setFont(font1);
00258
00259 verticalLayout->addWidget(m_SlicesInterpolator);
00260
00261 verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
00262
00263 verticalLayout->addItem(verticalSpacer);
00264
00265 QIcon icon1;
00266 icon1.addFile(QString::fromUtf8(":/segmentation/segmentation.png"), QSize(), QIcon::Normal, QIcon::Off);
00267 widgetStack->addItem(pageManual, icon1, QString::fromUtf8("Contouring"));
00268 pageOrgans = new QWidget();
00269 pageOrgans->setObjectName(QString::fromUtf8("pageOrgans"));
00270 pageOrgans->setGeometry(QRect(0, 0, 98, 30));
00271 verticalLayout_2 = new QVBoxLayout(pageOrgans);
00272 verticalLayout_2->setSpacing(6);
00273 verticalLayout_2->setContentsMargins(11, 11, 11, 11);
00274 verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
00275 verticalLayout_2->setContentsMargins(0, -1, 0, -1);
00276 m_OrganToolSelectionBox = new QmitkToolSelectionBox(pageOrgans);
00277 m_OrganToolSelectionBox->setObjectName(QString::fromUtf8("m_OrganToolSelectionBox"));
00278 m_OrganToolSelectionBox->setFont(font1);
00279
00280 verticalLayout_2->addWidget(m_OrganToolSelectionBox);
00281
00282 m_OrganToolGUIContainer = new QmitkToolGUIArea(pageOrgans);
00283 m_OrganToolGUIContainer->setObjectName(QString::fromUtf8("m_OrganToolGUIContainer"));
00284 m_OrganToolGUIContainer->setFont(font1);
00285
00286 verticalLayout_2->addWidget(m_OrganToolGUIContainer);
00287
00288 verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
00289
00290 verticalLayout_2->addItem(verticalSpacer_2);
00291
00292 widgetStack->addItem(pageOrgans, QString::fromUtf8("Organs"));
00293 pageLesions = new QWidget();
00294 pageLesions->setObjectName(QString::fromUtf8("pageLesions"));
00295 pageLesions->setGeometry(QRect(0, 0, 98, 30));
00296 verticalLayout_4 = new QVBoxLayout(pageLesions);
00297 verticalLayout_4->setSpacing(6);
00298 verticalLayout_4->setContentsMargins(11, 11, 11, 11);
00299 verticalLayout_4->setObjectName(QString::fromUtf8("verticalLayout_4"));
00300 verticalLayout_4->setContentsMargins(0, -1, 0, -1);
00301 m_LesionToolSelectionBox = new QmitkToolSelectionBox(pageLesions);
00302 m_LesionToolSelectionBox->setObjectName(QString::fromUtf8("m_LesionToolSelectionBox"));
00303 m_LesionToolSelectionBox->setFont(font1);
00304
00305 verticalLayout_4->addWidget(m_LesionToolSelectionBox);
00306
00307 m_LesionToolGUIContainer = new QmitkToolGUIArea(pageLesions);
00308 m_LesionToolGUIContainer->setObjectName(QString::fromUtf8("m_LesionToolGUIContainer"));
00309 m_LesionToolGUIContainer->setFont(font1);
00310
00311 verticalLayout_4->addWidget(m_LesionToolGUIContainer);
00312
00313 verticalSpacer_3 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
00314
00315 verticalLayout_4->addItem(verticalSpacer_3);
00316
00317 widgetStack->addItem(pageLesions, QString::fromUtf8("Lesions"));
00318 SurfaceMasking = new QWidget();
00319 SurfaceMasking->setObjectName(QString::fromUtf8("SurfaceMasking"));
00320 SurfaceMasking->setGeometry(QRect(0, 0, 223, 176));
00321 verticalLayout_5 = new QVBoxLayout(SurfaceMasking);
00322 verticalLayout_5->setSpacing(6);
00323 verticalLayout_5->setContentsMargins(11, 11, 11, 11);
00324 verticalLayout_5->setObjectName(QString::fromUtf8("verticalLayout_5"));
00325 label = new QLabel(SurfaceMasking);
00326 label->setObjectName(QString::fromUtf8("label"));
00327
00328 verticalLayout_5->addWidget(label);
00329
00330 MaskSurfaces = new QmitkDataStorageComboBox(SurfaceMasking);
00331 MaskSurfaces->setObjectName(QString::fromUtf8("MaskSurfaces"));
00332
00333 verticalLayout_5->addWidget(MaskSurfaces);
00334
00335 CreateSegmentationFromSurface = new QPushButton(SurfaceMasking);
00336 CreateSegmentationFromSurface->setObjectName(QString::fromUtf8("CreateSegmentationFromSurface"));
00337 CreateSegmentationFromSurface->setEnabled(false);
00338
00339 verticalLayout_5->addWidget(CreateSegmentationFromSurface);
00340
00341 verticalSpacer_4 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
00342
00343 verticalLayout_5->addItem(verticalSpacer_4);
00344
00345 widgetStack->addItem(SurfaceMasking, QString::fromUtf8("Surface Masking"));
00346
00347 verticalLayout_6->addWidget(widgetStack);
00348
00349
00350 retranslateUi(QmitkSegmentationControls);
00351
00352 widgetStack->setCurrentIndex(0);
00353
00354
00355 QMetaObject::connectSlotsByName(QmitkSegmentationControls);
00356 }
00357
00358 void retranslateUi(QWidget *QmitkSegmentationControls)
00359 {
00360 QmitkSegmentationControls->setWindowTitle(QApplication::translate("QmitkSegmentationControls", "QmitkSegmentation", 0, QApplication::UnicodeUTF8));
00361 groupBox->setTitle(QString());
00362 lblRefImage->setText(QApplication::translate("QmitkSegmentationControls", "Reference image", 0, QApplication::UnicodeUTF8));
00363 lblReferenceImageSelectionWarning->setText(QApplication::translate("QmitkSegmentationControls", "Please load an image!", 0, QApplication::UnicodeUTF8));
00364 lblSegImage->setText(QApplication::translate("QmitkSegmentationControls", "Segmentation image", 0, QApplication::UnicodeUTF8));
00365 lblSegmentation->setText(QString());
00366 lblAlignmentWarning->setText(QApplication::translate("QmitkSegmentationControls", "Perform 'reinit' on patient image!", 0, QApplication::UnicodeUTF8));
00367 lblWorkingImageSelectionWarning->setText(QApplication::translate("QmitkSegmentationControls", "Select or create a segmentation!", 0, QApplication::UnicodeUTF8));
00368 #ifndef QT_NO_TOOLTIP
00369 btnNewSegmentation->setToolTip(QApplication::translate("QmitkSegmentationControls", "New segmentation", 0, QApplication::UnicodeUTF8));
00370 #endif // QT_NO_TOOLTIP
00371 btnNewSegmentation->setText(QApplication::translate("QmitkSegmentationControls", "New segmentation", 0, QApplication::UnicodeUTF8));
00372 lblManualTools->setText(QApplication::translate("QmitkSegmentationControls", "Editing tools", 0, QApplication::UnicodeUTF8));
00373 lblInterpolation->setText(QApplication::translate("QmitkSegmentationControls", "Contour interpolation", 0, QApplication::UnicodeUTF8));
00374 widgetStack->setItemText(widgetStack->indexOf(pageManual), QApplication::translate("QmitkSegmentationControls", "Contouring", 0, QApplication::UnicodeUTF8));
00375 widgetStack->setItemText(widgetStack->indexOf(pageOrgans), QApplication::translate("QmitkSegmentationControls", "Organs", 0, QApplication::UnicodeUTF8));
00376 widgetStack->setItemText(widgetStack->indexOf(pageLesions), QApplication::translate("QmitkSegmentationControls", "Lesions", 0, QApplication::UnicodeUTF8));
00377 label->setText(QApplication::translate("QmitkSegmentationControls", "Select Surface For Image Masking:", 0, QApplication::UnicodeUTF8));
00378 #ifndef QT_NO_TOOLTIP
00379 CreateSegmentationFromSurface->setToolTip(QString());
00380 #endif // QT_NO_TOOLTIP
00381 CreateSegmentationFromSurface->setText(QApplication::translate("QmitkSegmentationControls", "Create Segmentation From Surface", 0, QApplication::UnicodeUTF8));
00382 widgetStack->setItemText(widgetStack->indexOf(SurfaceMasking), QApplication::translate("QmitkSegmentationControls", "Surface Masking", 0, QApplication::UnicodeUTF8));
00383 }
00384
00385 };
00386
00387 namespace Ui {
00388 class QmitkSegmentationControls: public Ui_QmitkSegmentationControls {};
00389 }
00390
00391 QT_END_NAMESPACE
00392
00393 #endif // UI_QMITKSEGMENTATIONCONTROLS_H