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