00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef LABELDIALOGDATA_H
00011 #define LABELDIALOGDATA_H
00012
00013 #include <BALL/COMMON/global.h>
00014 #include <QtCore/QVariant>
00015 #include <QtGui/QAction>
00016 #include <QtGui/QApplication>
00017 #include <QtGui/QButtonGroup>
00018 #include <QtGui/QComboBox>
00019 #include <QtGui/QDialog>
00020 #include <QtGui/QGridLayout>
00021 #include <QtGui/QGroupBox>
00022 #include <QtGui/QLabel>
00023 #include <QtGui/QPushButton>
00024 #include <QtGui/QRadioButton>
00025
00026 QT_BEGIN_NAMESPACE
00027
00028 class Ui_LabelDialogData
00029 {
00030 public:
00031 QGridLayout *gridLayout;
00032 QGroupBox *mode_group;
00033 QGridLayout *gridLayout1;
00034 QRadioButton *all_items;
00035 QRadioButton *every_residue;
00036 QRadioButton *every_item;
00037 QRadioButton *every_atom;
00038 QGroupBox *GroupBox1_2;
00039 QGridLayout *gridLayout2;
00040 QLabel *color_sample_;
00041 QPushButton *edit_button;
00042 QGroupBox *GroupBox1_2_2;
00043 QGridLayout *gridLayout3;
00044 QLabel *font_label;
00045 QPushButton *font_button;
00046 QPushButton *apply_button_;
00047 QPushButton *buttonCancel;
00048 QGroupBox *GroupBox1;
00049 QGridLayout *gridLayout4;
00050 QComboBox *text_box;
00051 QComboBox *tag_box;
00052 QPushButton *add_tag_button;
00053
00054 void setupUi(QDialog *LabelDialogData)
00055 {
00056 if (LabelDialogData->objectName().isEmpty())
00057 LabelDialogData->setObjectName(QString::fromUtf8("LabelDialogData"));
00058 LabelDialogData->resize(321, 423);
00059 QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(3), static_cast<QSizePolicy::Policy>(3));
00060 sizePolicy.setHorizontalStretch(0);
00061 sizePolicy.setVerticalStretch(0);
00062 sizePolicy.setHeightForWidth(LabelDialogData->sizePolicy().hasHeightForWidth());
00063 LabelDialogData->setSizePolicy(sizePolicy);
00064 LabelDialogData->setMinimumSize(QSize(0, 0));
00065 LabelDialogData->setMaximumSize(QSize(32767, 3000));
00066 LabelDialogData->setSizeGripEnabled(false);
00067 gridLayout = new QGridLayout(LabelDialogData);
00068 gridLayout->setSpacing(6);
00069 gridLayout->setMargin(4);
00070 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00071 mode_group = new QGroupBox(LabelDialogData);
00072 mode_group->setObjectName(QString::fromUtf8("mode_group"));
00073 gridLayout1 = new QGridLayout(mode_group);
00074 gridLayout1->setSpacing(4);
00075 gridLayout1->setMargin(4);
00076 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00077 all_items = new QRadioButton(mode_group);
00078 all_items->setObjectName(QString::fromUtf8("all_items"));
00079 all_items->setChecked(true);
00080
00081 gridLayout1->addWidget(all_items, 0, 0, 1, 1);
00082
00083 every_residue = new QRadioButton(mode_group);
00084 every_residue->setObjectName(QString::fromUtf8("every_residue"));
00085
00086 gridLayout1->addWidget(every_residue, 2, 0, 1, 1);
00087
00088 every_item = new QRadioButton(mode_group);
00089 every_item->setObjectName(QString::fromUtf8("every_item"));
00090
00091 gridLayout1->addWidget(every_item, 3, 0, 1, 1);
00092
00093 every_atom = new QRadioButton(mode_group);
00094 every_atom->setObjectName(QString::fromUtf8("every_atom"));
00095
00096 gridLayout1->addWidget(every_atom, 1, 0, 1, 1);
00097
00098
00099 gridLayout->addWidget(mode_group, 3, 0, 1, 2);
00100
00101 GroupBox1_2 = new QGroupBox(LabelDialogData);
00102 GroupBox1_2->setObjectName(QString::fromUtf8("GroupBox1_2"));
00103 gridLayout2 = new QGridLayout(GroupBox1_2);
00104 gridLayout2->setSpacing(6);
00105 gridLayout2->setMargin(4);
00106 gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
00107 color_sample_ = new QLabel(GroupBox1_2);
00108 color_sample_->setObjectName(QString::fromUtf8("color_sample_"));
00109 color_sample_->setMinimumSize(QSize(20, 40));
00110 color_sample_->setAutoFillBackground(true);
00111 color_sample_->setFrameShape(QFrame::StyledPanel);
00112
00113 gridLayout2->addWidget(color_sample_, 0, 0, 1, 1);
00114
00115 edit_button = new QPushButton(GroupBox1_2);
00116 edit_button->setObjectName(QString::fromUtf8("edit_button"));
00117 edit_button->setMinimumSize(QSize(0, 28));
00118
00119 gridLayout2->addWidget(edit_button, 0, 1, 1, 1);
00120
00121
00122 gridLayout->addWidget(GroupBox1_2, 2, 0, 1, 2);
00123
00124 GroupBox1_2_2 = new QGroupBox(LabelDialogData);
00125 GroupBox1_2_2->setObjectName(QString::fromUtf8("GroupBox1_2_2"));
00126 gridLayout3 = new QGridLayout(GroupBox1_2_2);
00127 gridLayout3->setSpacing(6);
00128 gridLayout3->setMargin(4);
00129 gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
00130 font_label = new QLabel(GroupBox1_2_2);
00131 font_label->setObjectName(QString::fromUtf8("font_label"));
00132 sizePolicy.setHeightForWidth(font_label->sizePolicy().hasHeightForWidth());
00133 font_label->setSizePolicy(sizePolicy);
00134 font_label->setMaximumSize(QSize(400, 190));
00135 QFont font;
00136 font.setFamily(QString::fromUtf8("Sans Serif"));
00137 font.setPointSize(9);
00138 font.setBold(false);
00139 font.setItalic(false);
00140 font.setUnderline(false);
00141 font.setWeight(50);
00142 font.setStrikeOut(false);
00143 font_label->setFont(font);
00144 font_label->setFrameShape(QFrame::Panel);
00145 font_label->setFrameShadow(QFrame::Sunken);
00146 font_label->setAlignment(Qt::AlignVCenter);
00147
00148 gridLayout3->addWidget(font_label, 0, 0, 1, 1);
00149
00150 font_button = new QPushButton(GroupBox1_2_2);
00151 font_button->setObjectName(QString::fromUtf8("font_button"));
00152 QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(3), static_cast<QSizePolicy::Policy>(0));
00153 sizePolicy1.setHorizontalStretch(0);
00154 sizePolicy1.setVerticalStretch(0);
00155 sizePolicy1.setHeightForWidth(font_button->sizePolicy().hasHeightForWidth());
00156 font_button->setSizePolicy(sizePolicy1);
00157 font_button->setMinimumSize(QSize(0, 28));
00158
00159 gridLayout3->addWidget(font_button, 0, 1, 1, 1);
00160
00161
00162 gridLayout->addWidget(GroupBox1_2_2, 1, 0, 1, 2);
00163
00164 apply_button_ = new QPushButton(LabelDialogData);
00165 apply_button_->setObjectName(QString::fromUtf8("apply_button_"));
00166 apply_button_->setEnabled(false);
00167 apply_button_->setMinimumSize(QSize(0, 30));
00168 apply_button_->setMaximumSize(QSize(32767, 30));
00169 apply_button_->setAutoDefault(true);
00170 apply_button_->setDefault(true);
00171
00172 gridLayout->addWidget(apply_button_, 4, 0, 1, 1);
00173
00174 buttonCancel = new QPushButton(LabelDialogData);
00175 buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
00176 buttonCancel->setMinimumSize(QSize(0, 30));
00177 buttonCancel->setMaximumSize(QSize(32767, 30));
00178 buttonCancel->setAutoDefault(true);
00179
00180 gridLayout->addWidget(buttonCancel, 4, 1, 1, 1);
00181
00182 GroupBox1 = new QGroupBox(LabelDialogData);
00183 GroupBox1->setObjectName(QString::fromUtf8("GroupBox1"));
00184 gridLayout4 = new QGridLayout(GroupBox1);
00185 gridLayout4->setSpacing(6);
00186 gridLayout4->setMargin(4);
00187 gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
00188 text_box = new QComboBox(GroupBox1);
00189 text_box->setObjectName(QString::fromUtf8("text_box"));
00190 text_box->setEnabled(true);
00191 text_box->setMinimumSize(QSize(0, 22));
00192 text_box->setEditable(true);
00193 text_box->setAutoCompletion(true);
00194 text_box->setDuplicatesEnabled(false);
00195
00196 gridLayout4->addWidget(text_box, 0, 0, 1, 2);
00197
00198 tag_box = new QComboBox(GroupBox1);
00199 tag_box->setObjectName(QString::fromUtf8("tag_box"));
00200 tag_box->setEnabled(false);
00201 tag_box->setMinimumSize(QSize(0, 22));
00202
00203 gridLayout4->addWidget(tag_box, 1, 0, 1, 1);
00204
00205 add_tag_button = new QPushButton(GroupBox1);
00206 add_tag_button->setObjectName(QString::fromUtf8("add_tag_button"));
00207 add_tag_button->setEnabled(false);
00208
00209 gridLayout4->addWidget(add_tag_button, 1, 1, 1, 1);
00210
00211
00212 gridLayout->addWidget(GroupBox1, 0, 0, 1, 2);
00213
00214 QWidget::setTabOrder(text_box, tag_box);
00215 QWidget::setTabOrder(tag_box, add_tag_button);
00216 QWidget::setTabOrder(add_tag_button, font_button);
00217 QWidget::setTabOrder(font_button, edit_button);
00218 QWidget::setTabOrder(edit_button, all_items);
00219 QWidget::setTabOrder(all_items, every_atom);
00220 QWidget::setTabOrder(every_atom, every_residue);
00221 QWidget::setTabOrder(every_residue, every_item);
00222 QWidget::setTabOrder(every_item, apply_button_);
00223 QWidget::setTabOrder(apply_button_, buttonCancel);
00224
00225 retranslateUi(LabelDialogData);
00226
00227 QMetaObject::connectSlotsByName(LabelDialogData);
00228 }
00229
00230 void retranslateUi(QDialog *LabelDialogData)
00231 {
00232 LabelDialogData->setWindowTitle(QApplication::translate("LabelDialogData", "Create label", 0, QApplication::UnicodeUTF8));
00233 mode_group->setTitle(QApplication::translate("LabelDialogData", "Mode", 0, QApplication::UnicodeUTF8));
00234 all_items->setText(QApplication::translate("LabelDialogData", "one label for all items", 0, QApplication::UnicodeUTF8));
00235 every_residue->setText(QApplication::translate("LabelDialogData", "one label for every residue", 0, QApplication::UnicodeUTF8));
00236 every_item->setText(QApplication::translate("LabelDialogData", "one label for every item", 0, QApplication::UnicodeUTF8));
00237 every_atom->setText(QApplication::translate("LabelDialogData", "one label for every atom", 0, QApplication::UnicodeUTF8));
00238 GroupBox1_2->setTitle(QApplication::translate("LabelDialogData", "Color", 0, QApplication::UnicodeUTF8));
00239
00240 #ifndef QT_NO_TOOLTIP
00241 color_sample_->setToolTip(QApplication::translate("LabelDialogData", "Label Color", 0, QApplication::UnicodeUTF8));
00242 #endif // QT_NO_TOOLTIP
00243
00244 color_sample_->setText(QString());
00245
00246 #ifndef QT_NO_TOOLTIP
00247 edit_button->setToolTip(QApplication::translate("LabelDialogData", "Edit label color", 0, QApplication::UnicodeUTF8));
00248 #endif // QT_NO_TOOLTIP
00249
00250 edit_button->setText(QApplication::translate("LabelDialogData", "Select", 0, QApplication::UnicodeUTF8));
00251 GroupBox1_2_2->setTitle(QApplication::translate("LabelDialogData", "Font", 0, QApplication::UnicodeUTF8));
00252
00253 #ifndef QT_NO_TOOLTIP
00254 font_label->setToolTip(QApplication::translate("LabelDialogData", "Font Preview", 0, QApplication::UnicodeUTF8));
00255 #endif // QT_NO_TOOLTIP
00256
00257 font_label->setText(QApplication::translate("LabelDialogData", "Font Test label", 0, QApplication::UnicodeUTF8));
00258
00259 #ifndef QT_NO_TOOLTIP
00260 font_button->setToolTip(QApplication::translate("LabelDialogData", "Select the font", 0, QApplication::UnicodeUTF8));
00261 #endif // QT_NO_TOOLTIP
00262
00263 font_button->setText(QApplication::translate("LabelDialogData", "Select", 0, QApplication::UnicodeUTF8));
00264
00265 #ifndef QT_NO_TOOLTIP
00266 apply_button_->setToolTip(QApplication::translate("LabelDialogData", "Add the label(s) for all highlighted items in the list of molecules", 0, QApplication::UnicodeUTF8));
00267 #endif // QT_NO_TOOLTIP
00268
00269 apply_button_->setText(QApplication::translate("LabelDialogData", "&Apply", 0, QApplication::UnicodeUTF8));
00270 apply_button_->setShortcut(QApplication::translate("LabelDialogData", "Alt+A", 0, QApplication::UnicodeUTF8));
00271
00272 #ifndef QT_NO_TOOLTIP
00273 buttonCancel->setToolTip(QApplication::translate("LabelDialogData", "Close window without creating label", 0, QApplication::UnicodeUTF8));
00274 #endif // QT_NO_TOOLTIP
00275
00276 buttonCancel->setText(QApplication::translate("LabelDialogData", "&Close", 0, QApplication::UnicodeUTF8));
00277 buttonCancel->setShortcut(QApplication::translate("LabelDialogData", "Alt+C", 0, QApplication::UnicodeUTF8));
00278 GroupBox1->setTitle(QApplication::translate("LabelDialogData", "Text", 0, QApplication::UnicodeUTF8));
00279
00280 #ifndef QT_NO_TOOLTIP
00281 text_box->setToolTip(QApplication::translate("LabelDialogData", "Enter a text here", 0, QApplication::UnicodeUTF8));
00282 #endif // QT_NO_TOOLTIP
00283
00284 tag_box->insertItems(0, QStringList()
00285 << QApplication::translate("LabelDialogData", "Name", 0, QApplication::UnicodeUTF8)
00286 << QApplication::translate("LabelDialogData", "Residue ID", 0, QApplication::UnicodeUTF8)
00287 << QApplication::translate("LabelDialogData", "Atom Type", 0, QApplication::UnicodeUTF8)
00288 << QApplication::translate("LabelDialogData", "Atom Type Name", 0, QApplication::UnicodeUTF8)
00289 << QApplication::translate("LabelDialogData", "Atom Charge", 0, QApplication::UnicodeUTF8)
00290 << QApplication::translate("LabelDialogData", "Element", 0, QApplication::UnicodeUTF8)
00291 );
00292
00293 #ifndef QT_NO_TOOLTIP
00294 tag_box->setToolTip(QApplication::translate("LabelDialogData", "Select a special text tag to add", 0, QApplication::UnicodeUTF8));
00295 #endif // QT_NO_TOOLTIP
00296
00297
00298 #ifndef QT_NO_TOOLTIP
00299 add_tag_button->setToolTip(QApplication::translate("LabelDialogData", "Add the selected text tag", 0, QApplication::UnicodeUTF8));
00300 #endif // QT_NO_TOOLTIP
00301
00302 add_tag_button->setText(QApplication::translate("LabelDialogData", "Add", 0, QApplication::UnicodeUTF8));
00303 Q_UNUSED(LabelDialogData);
00304 }
00305
00306 };
00307
00308 namespace Ui {
00309 class LabelDialogData: public Ui_LabelDialogData {};
00310 }
00311
00312 QT_END_NAMESPACE
00313
00314 #endif // LABELDIALOGDATA_H