00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_QMITKIMAGECROPPERCONTROLS_H
00011 #define UI_QMITKIMAGECROPPERCONTROLS_H
00012
00013 #include <QtCore/QVariant>
00014 #include <QtGui/QAction>
00015 #include <QtGui/QApplication>
00016 #include <QtGui/QButtonGroup>
00017 #include <QtGui/QCheckBox>
00018 #include <QtGui/QGroupBox>
00019 #include <QtGui/QHBoxLayout>
00020 #include <QtGui/QHeaderView>
00021 #include <QtGui/QLabel>
00022 #include <QtGui/QSlider>
00023 #include <QtGui/QSpacerItem>
00024 #include <QtGui/QSpinBox>
00025 #include <QtGui/QToolButton>
00026 #include <QtGui/QVBoxLayout>
00027 #include <QtGui/QWidget>
00028 #include "QmitkDataStorageComboBox.h"
00029
00030 QT_BEGIN_NAMESPACE
00031
00032 class Ui_QmitkImageCropperControls
00033 {
00034 public:
00035 QVBoxLayout *vboxLayout;
00036 QLabel *textLabel1;
00037 QmitkDataStorageComboBox *cmbImage;
00038 QCheckBox *m_EnableSurroundingCheckBox;
00039 QLabel *m_TLGrayvalue;
00040 QHBoxLayout *hboxLayout;
00041 QSlider *m_SurroundingSlider;
00042 QSpinBox *m_SurroundingSpin;
00043 QToolButton *btnCrop;
00044 QToolButton *m_NewBoxButton;
00045 QCheckBox *chkInformation;
00046 QGroupBox *groupInfo;
00047 QVBoxLayout *vboxLayout1;
00048 QLabel *lblInfo;
00049 QHBoxLayout *hboxLayout1;
00050 QLabel *pixlblWhatToDo;
00051 QLabel *pixlblWhatToDo_2;
00052 QLabel *textLabel2;
00053 QHBoxLayout *hboxLayout2;
00054 QLabel *pixlblWhatToDo_3;
00055 QLabel *pixlblWhatToDo_2_2;
00056 QLabel *textLabel2_2;
00057 QHBoxLayout *hboxLayout3;
00058 QLabel *pixlblWhatToDo_3_2;
00059 QLabel *pixlblWhatToDo_2_2_2;
00060 QLabel *textLabel2_2_2;
00061 QSpacerItem *spacer3;
00062
00063 void setupUi(QWidget *QmitkImageCropperControls)
00064 {
00065 if (QmitkImageCropperControls->objectName().isEmpty())
00066 QmitkImageCropperControls->setObjectName(QString::fromUtf8("QmitkImageCropperControls"));
00067 QmitkImageCropperControls->resize(339, 651);
00068 QmitkImageCropperControls->setMinimumSize(QSize(0, 0));
00069 vboxLayout = new QVBoxLayout(QmitkImageCropperControls);
00070 vboxLayout->setSpacing(6);
00071 vboxLayout->setContentsMargins(11, 11, 11, 11);
00072 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
00073 textLabel1 = new QLabel(QmitkImageCropperControls);
00074 textLabel1->setObjectName(QString::fromUtf8("textLabel1"));
00075 textLabel1->setWordWrap(false);
00076
00077 vboxLayout->addWidget(textLabel1);
00078
00079 cmbImage = new QmitkDataStorageComboBox(QmitkImageCropperControls);
00080 cmbImage->setObjectName(QString::fromUtf8("cmbImage"));
00081
00082 vboxLayout->addWidget(cmbImage);
00083
00084 m_EnableSurroundingCheckBox = new QCheckBox(QmitkImageCropperControls);
00085 m_EnableSurroundingCheckBox->setObjectName(QString::fromUtf8("m_EnableSurroundingCheckBox"));
00086
00087 vboxLayout->addWidget(m_EnableSurroundingCheckBox);
00088
00089 m_TLGrayvalue = new QLabel(QmitkImageCropperControls);
00090 m_TLGrayvalue->setObjectName(QString::fromUtf8("m_TLGrayvalue"));
00091 m_TLGrayvalue->setWordWrap(false);
00092
00093 vboxLayout->addWidget(m_TLGrayvalue);
00094
00095 hboxLayout = new QHBoxLayout();
00096 hboxLayout->setSpacing(6);
00097 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00098 m_SurroundingSlider = new QSlider(QmitkImageCropperControls);
00099 m_SurroundingSlider->setObjectName(QString::fromUtf8("m_SurroundingSlider"));
00100 m_SurroundingSlider->setMinimum(-2000);
00101 m_SurroundingSlider->setMaximum(2000);
00102 m_SurroundingSlider->setValue(1000);
00103 m_SurroundingSlider->setOrientation(Qt::Horizontal);
00104
00105 hboxLayout->addWidget(m_SurroundingSlider);
00106
00107 m_SurroundingSpin = new QSpinBox(QmitkImageCropperControls);
00108 m_SurroundingSpin->setObjectName(QString::fromUtf8("m_SurroundingSpin"));
00109 m_SurroundingSpin->setMinimum(-32767);
00110 m_SurroundingSpin->setMaximum(32767);
00111 m_SurroundingSpin->setValue(1000);
00112
00113 hboxLayout->addWidget(m_SurroundingSpin);
00114
00115
00116 vboxLayout->addLayout(hboxLayout);
00117
00118 btnCrop = new QToolButton(QmitkImageCropperControls);
00119 btnCrop->setObjectName(QString::fromUtf8("btnCrop"));
00120 btnCrop->setEnabled(false);
00121 QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
00122 sizePolicy.setHorizontalStretch(0);
00123 sizePolicy.setVerticalStretch(0);
00124 sizePolicy.setHeightForWidth(btnCrop->sizePolicy().hasHeightForWidth());
00125 btnCrop->setSizePolicy(sizePolicy);
00126 btnCrop->setMinimumSize(QSize(200, 0));
00127
00128 vboxLayout->addWidget(btnCrop);
00129
00130 m_NewBoxButton = new QToolButton(QmitkImageCropperControls);
00131 m_NewBoxButton->setObjectName(QString::fromUtf8("m_NewBoxButton"));
00132 m_NewBoxButton->setEnabled(false);
00133 sizePolicy.setHeightForWidth(m_NewBoxButton->sizePolicy().hasHeightForWidth());
00134 m_NewBoxButton->setSizePolicy(sizePolicy);
00135 m_NewBoxButton->setMinimumSize(QSize(200, 0));
00136
00137 vboxLayout->addWidget(m_NewBoxButton);
00138
00139 chkInformation = new QCheckBox(QmitkImageCropperControls);
00140 chkInformation->setObjectName(QString::fromUtf8("chkInformation"));
00141
00142 vboxLayout->addWidget(chkInformation);
00143
00144 groupInfo = new QGroupBox(QmitkImageCropperControls);
00145 groupInfo->setObjectName(QString::fromUtf8("groupInfo"));
00146 vboxLayout1 = new QVBoxLayout(groupInfo);
00147 vboxLayout1->setSpacing(6);
00148 vboxLayout1->setContentsMargins(11, 11, 11, 11);
00149 vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
00150 lblInfo = new QLabel(groupInfo);
00151 lblInfo->setObjectName(QString::fromUtf8("lblInfo"));
00152 lblInfo->setAlignment(Qt::AlignVCenter);
00153 lblInfo->setWordWrap(true);
00154
00155 vboxLayout1->addWidget(lblInfo);
00156
00157 hboxLayout1 = new QHBoxLayout();
00158 hboxLayout1->setSpacing(6);
00159 hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00160 pixlblWhatToDo = new QLabel(groupInfo);
00161 pixlblWhatToDo->setObjectName(QString::fromUtf8("pixlblWhatToDo"));
00162 QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed);
00163 sizePolicy1.setHorizontalStretch(0);
00164 sizePolicy1.setVerticalStretch(0);
00165 sizePolicy1.setHeightForWidth(pixlblWhatToDo->sizePolicy().hasHeightForWidth());
00166 pixlblWhatToDo->setSizePolicy(sizePolicy1);
00167 pixlblWhatToDo->setPixmap(QPixmap(QString::fromUtf8(":/imagecropper/btn_ctrl.xpm")));
00168 pixlblWhatToDo->setScaledContents(false);
00169 pixlblWhatToDo->setWordWrap(false);
00170
00171 hboxLayout1->addWidget(pixlblWhatToDo);
00172
00173 pixlblWhatToDo_2 = new QLabel(groupInfo);
00174 pixlblWhatToDo_2->setObjectName(QString::fromUtf8("pixlblWhatToDo_2"));
00175 sizePolicy1.setHeightForWidth(pixlblWhatToDo_2->sizePolicy().hasHeightForWidth());
00176 pixlblWhatToDo_2->setSizePolicy(sizePolicy1);
00177 pixlblWhatToDo_2->setPixmap(QPixmap(QString::fromUtf8(":/imagecropper/mouse_left.xpm")));
00178 pixlblWhatToDo_2->setScaledContents(false);
00179 pixlblWhatToDo_2->setWordWrap(false);
00180
00181 hboxLayout1->addWidget(pixlblWhatToDo_2);
00182
00183 textLabel2 = new QLabel(groupInfo);
00184 textLabel2->setObjectName(QString::fromUtf8("textLabel2"));
00185 textLabel2->setWordWrap(false);
00186
00187 hboxLayout1->addWidget(textLabel2);
00188
00189
00190 vboxLayout1->addLayout(hboxLayout1);
00191
00192 hboxLayout2 = new QHBoxLayout();
00193 hboxLayout2->setSpacing(6);
00194 hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
00195 pixlblWhatToDo_3 = new QLabel(groupInfo);
00196 pixlblWhatToDo_3->setObjectName(QString::fromUtf8("pixlblWhatToDo_3"));
00197 sizePolicy1.setHeightForWidth(pixlblWhatToDo_3->sizePolicy().hasHeightForWidth());
00198 pixlblWhatToDo_3->setSizePolicy(sizePolicy1);
00199 pixlblWhatToDo_3->setPixmap(QPixmap(QString::fromUtf8(":/imagecropper/btn_ctrl.xpm")));
00200 pixlblWhatToDo_3->setScaledContents(false);
00201 pixlblWhatToDo_3->setWordWrap(false);
00202
00203 hboxLayout2->addWidget(pixlblWhatToDo_3);
00204
00205 pixlblWhatToDo_2_2 = new QLabel(groupInfo);
00206 pixlblWhatToDo_2_2->setObjectName(QString::fromUtf8("pixlblWhatToDo_2_2"));
00207 sizePolicy1.setHeightForWidth(pixlblWhatToDo_2_2->sizePolicy().hasHeightForWidth());
00208 pixlblWhatToDo_2_2->setSizePolicy(sizePolicy1);
00209 pixlblWhatToDo_2_2->setPixmap(QPixmap(QString::fromUtf8(":/imagecropper/mouse_middle.xpm")));
00210 pixlblWhatToDo_2_2->setScaledContents(false);
00211 pixlblWhatToDo_2_2->setWordWrap(false);
00212
00213 hboxLayout2->addWidget(pixlblWhatToDo_2_2);
00214
00215 textLabel2_2 = new QLabel(groupInfo);
00216 textLabel2_2->setObjectName(QString::fromUtf8("textLabel2_2"));
00217 textLabel2_2->setWordWrap(false);
00218
00219 hboxLayout2->addWidget(textLabel2_2);
00220
00221
00222 vboxLayout1->addLayout(hboxLayout2);
00223
00224 hboxLayout3 = new QHBoxLayout();
00225 hboxLayout3->setSpacing(6);
00226 hboxLayout3->setObjectName(QString::fromUtf8("hboxLayout3"));
00227 pixlblWhatToDo_3_2 = new QLabel(groupInfo);
00228 pixlblWhatToDo_3_2->setObjectName(QString::fromUtf8("pixlblWhatToDo_3_2"));
00229 sizePolicy1.setHeightForWidth(pixlblWhatToDo_3_2->sizePolicy().hasHeightForWidth());
00230 pixlblWhatToDo_3_2->setSizePolicy(sizePolicy1);
00231 pixlblWhatToDo_3_2->setPixmap(QPixmap(QString::fromUtf8(":/imagecropper/btn_ctrl.xpm")));
00232 pixlblWhatToDo_3_2->setScaledContents(false);
00233 pixlblWhatToDo_3_2->setWordWrap(false);
00234
00235 hboxLayout3->addWidget(pixlblWhatToDo_3_2);
00236
00237 pixlblWhatToDo_2_2_2 = new QLabel(groupInfo);
00238 pixlblWhatToDo_2_2_2->setObjectName(QString::fromUtf8("pixlblWhatToDo_2_2_2"));
00239 sizePolicy1.setHeightForWidth(pixlblWhatToDo_2_2_2->sizePolicy().hasHeightForWidth());
00240 pixlblWhatToDo_2_2_2->setSizePolicy(sizePolicy1);
00241 pixlblWhatToDo_2_2_2->setPixmap(QPixmap(QString::fromUtf8(":/imagecropper/mouse_right.xpm")));
00242 pixlblWhatToDo_2_2_2->setScaledContents(false);
00243 pixlblWhatToDo_2_2_2->setWordWrap(false);
00244
00245 hboxLayout3->addWidget(pixlblWhatToDo_2_2_2);
00246
00247 textLabel2_2_2 = new QLabel(groupInfo);
00248 textLabel2_2_2->setObjectName(QString::fromUtf8("textLabel2_2_2"));
00249 textLabel2_2_2->setWordWrap(false);
00250
00251 hboxLayout3->addWidget(textLabel2_2_2);
00252
00253
00254 vboxLayout1->addLayout(hboxLayout3);
00255
00256
00257 vboxLayout->addWidget(groupInfo);
00258
00259 spacer3 = new QSpacerItem(20, 200, QSizePolicy::Minimum, QSizePolicy::Expanding);
00260
00261 vboxLayout->addItem(spacer3);
00262
00263
00264 retranslateUi(QmitkImageCropperControls);
00265 QObject::connect(m_SurroundingSlider, SIGNAL(valueChanged(int)), m_SurroundingSpin, SLOT(setValue(int)));
00266 QObject::connect(m_SurroundingSpin, SIGNAL(valueChanged(int)), m_SurroundingSlider, SLOT(setValue(int)));
00267
00268 QMetaObject::connectSlotsByName(QmitkImageCropperControls);
00269 }
00270
00271 void retranslateUi(QWidget *QmitkImageCropperControls)
00272 {
00273 QmitkImageCropperControls->setWindowTitle(QApplication::translate("QmitkImageCropperControls", "BoundingObjectImageCropper", 0, QApplication::UnicodeUTF8));
00274 textLabel1->setText(QApplication::translate("QmitkImageCropperControls", "Select the image to crop:", 0, QApplication::UnicodeUTF8));
00275 m_EnableSurroundingCheckBox->setText(QApplication::translate("QmitkImageCropperControls", "Set border voxels to specific value after cropping", 0, QApplication::UnicodeUTF8));
00276 m_TLGrayvalue->setText(QApplication::translate("QmitkImageCropperControls", "Select grayvalue of the border voxels", 0, QApplication::UnicodeUTF8));
00277 #ifndef QT_NO_TOOLTIP
00278 btnCrop->setToolTip(QApplication::translate("QmitkImageCropperControls", "crop the selected image", 0, QApplication::UnicodeUTF8));
00279 #endif // QT_NO_TOOLTIP
00280 btnCrop->setText(QApplication::translate("QmitkImageCropperControls", "Crop", 0, QApplication::UnicodeUTF8));
00281 #ifndef QT_NO_TOOLTIP
00282 m_NewBoxButton->setToolTip(QApplication::translate("QmitkImageCropperControls", "crop the selected image", 0, QApplication::UnicodeUTF8));
00283 #endif // QT_NO_TOOLTIP
00284 m_NewBoxButton->setText(QApplication::translate("QmitkImageCropperControls", "New bounding box!", 0, QApplication::UnicodeUTF8));
00285 chkInformation->setText(QApplication::translate("QmitkImageCropperControls", "Show usage information", 0, QApplication::UnicodeUTF8));
00286 groupInfo->setTitle(QString());
00287 lblInfo->setText(QApplication::translate("QmitkImageCropperControls", "The yellow box around the selected image can be changed in size and orientation. You can use it so mark an interesing region of the image and then use the \"Crop\" button to cut off parts of the image that are outside the box.<br>\n"
00288 "The original image will not be modified, it will only be hidden.", 0, QApplication::UnicodeUTF8));
00289 textLabel2->setText(QApplication::translate("QmitkImageCropperControls", "Move the box", 0, QApplication::UnicodeUTF8));
00290 pixlblWhatToDo_3->setText(QString());
00291 textLabel2_2->setText(QApplication::translate("QmitkImageCropperControls", "Rotate the box", 0, QApplication::UnicodeUTF8));
00292 pixlblWhatToDo_3_2->setText(QString());
00293 textLabel2_2_2->setText(QApplication::translate("QmitkImageCropperControls", "Resize the box", 0, QApplication::UnicodeUTF8));
00294 }
00295
00296 };
00297
00298 namespace Ui {
00299 class QmitkImageCropperControls: public Ui_QmitkImageCropperControls {};
00300 }
00301
00302 QT_END_NAMESPACE
00303
00304 #endif // UI_QMITKIMAGECROPPERCONTROLS_H