00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef PUBCHEMDIALOGDATA_H
00011 #define PUBCHEMDIALOGDATA_H
00012
00013 #include <QtCore/QVariant>
00014 #include <QtGui/QAction>
00015 #include <QtGui/QApplication>
00016 #include <QtGui/QButtonGroup>
00017 #include <QtGui/QDialog>
00018 #include <QtGui/QFrame>
00019 #include <QtGui/QGridLayout>
00020 #include <QtGui/QHBoxLayout>
00021 #include <QtGui/QLabel>
00022 #include <QtGui/QLineEdit>
00023 #include <QtGui/QPushButton>
00024 #include <QtGui/QTextEdit>
00025 #include <QtGui/QTreeWidget>
00026
00027 class Ui_PubChemDialogData
00028 {
00029 public:
00030 QGridLayout *gridLayout;
00031 QHBoxLayout *hboxLayout;
00032 QPushButton *ok_button;
00033 QPushButton *clear_button;
00034 QPushButton *cancel_button;
00035 QFrame *SDFrame;
00036 QTextEdit *text_field;
00037 QGridLayout *gridLayout1;
00038 QLineEdit *pubchem_label;
00039 QLabel *label;
00040 QPushButton *generate_button;
00041 QPushButton *search_button;
00042 QLineEdit *smiles_label;
00043 QLabel *label_2;
00044 QTreeWidget *queries;
00045
00046 void setupUi(QDialog *PubChemDialogData)
00047 {
00048 PubChemDialogData->setObjectName(QString::fromUtf8("PubChemDialogData"));
00049 gridLayout = new QGridLayout(PubChemDialogData);
00050 gridLayout->setSpacing(6);
00051 gridLayout->setMargin(3);
00052 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00053 hboxLayout = new QHBoxLayout();
00054 hboxLayout->setSpacing(6);
00055 hboxLayout->setMargin(0);
00056 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00057 ok_button = new QPushButton(PubChemDialogData);
00058 ok_button->setObjectName(QString::fromUtf8("ok_button"));
00059 ok_button->setEnabled(false);
00060 QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
00061 sizePolicy.setHorizontalStretch(0);
00062 sizePolicy.setVerticalStretch(0);
00063 sizePolicy.setHeightForWidth(ok_button->sizePolicy().hasHeightForWidth());
00064 ok_button->setSizePolicy(sizePolicy);
00065
00066 hboxLayout->addWidget(ok_button);
00067
00068 clear_button = new QPushButton(PubChemDialogData);
00069 clear_button->setObjectName(QString::fromUtf8("clear_button"));
00070 QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
00071 sizePolicy1.setHorizontalStretch(0);
00072 sizePolicy1.setVerticalStretch(0);
00073 sizePolicy1.setHeightForWidth(clear_button->sizePolicy().hasHeightForWidth());
00074 clear_button->setSizePolicy(sizePolicy1);
00075
00076 hboxLayout->addWidget(clear_button);
00077
00078 cancel_button = new QPushButton(PubChemDialogData);
00079 cancel_button->setObjectName(QString::fromUtf8("cancel_button"));
00080 QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
00081 sizePolicy2.setHorizontalStretch(0);
00082 sizePolicy2.setVerticalStretch(0);
00083 sizePolicy2.setHeightForWidth(cancel_button->sizePolicy().hasHeightForWidth());
00084 cancel_button->setSizePolicy(sizePolicy2);
00085
00086 hboxLayout->addWidget(cancel_button);
00087
00088
00089 gridLayout->addLayout(hboxLayout, 3, 0, 1, 2);
00090
00091 SDFrame = new QFrame(PubChemDialogData);
00092 SDFrame->setObjectName(QString::fromUtf8("SDFrame"));
00093 QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(3));
00094 sizePolicy3.setHorizontalStretch(0);
00095 sizePolicy3.setVerticalStretch(0);
00096 sizePolicy3.setHeightForWidth(SDFrame->sizePolicy().hasHeightForWidth());
00097 SDFrame->setSizePolicy(sizePolicy3);
00098 QPalette palette;
00099 QBrush brush(QColor(255, 255, 255, 255));
00100 brush.setStyle(Qt::SolidPattern);
00101 palette.setBrush(QPalette::Active, QPalette::Base, brush);
00102 QBrush brush1(QColor(255, 255, 255, 255));
00103 brush1.setStyle(Qt::SolidPattern);
00104 palette.setBrush(QPalette::Active, QPalette::Window, brush1);
00105 QBrush brush2(QColor(255, 255, 255, 255));
00106 brush2.setStyle(Qt::SolidPattern);
00107 palette.setBrush(QPalette::Inactive, QPalette::Base, brush2);
00108 QBrush brush3(QColor(255, 255, 255, 255));
00109 brush3.setStyle(Qt::SolidPattern);
00110 palette.setBrush(QPalette::Inactive, QPalette::Window, brush3);
00111 QBrush brush4(QColor(255, 255, 255, 255));
00112 brush4.setStyle(Qt::SolidPattern);
00113 palette.setBrush(QPalette::Disabled, QPalette::Base, brush4);
00114 QBrush brush5(QColor(255, 255, 255, 255));
00115 brush5.setStyle(Qt::SolidPattern);
00116 palette.setBrush(QPalette::Disabled, QPalette::Window, brush5);
00117 SDFrame->setPalette(palette);
00118 SDFrame->setAutoFillBackground(true);
00119 SDFrame->setFrameShape(QFrame::StyledPanel);
00120 SDFrame->setFrameShadow(QFrame::Raised);
00121
00122 gridLayout->addWidget(SDFrame, 0, 1, 1, 1);
00123
00124 text_field = new QTextEdit(PubChemDialogData);
00125 text_field->setObjectName(QString::fromUtf8("text_field"));
00126 QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(3));
00127 sizePolicy4.setHorizontalStretch(0);
00128 sizePolicy4.setVerticalStretch(0);
00129 sizePolicy4.setHeightForWidth(text_field->sizePolicy().hasHeightForWidth());
00130 text_field->setSizePolicy(sizePolicy4);
00131
00132 gridLayout->addWidget(text_field, 1, 1, 1, 1);
00133
00134 gridLayout1 = new QGridLayout();
00135 gridLayout1->setSpacing(6);
00136 gridLayout1->setMargin(0);
00137 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00138 pubchem_label = new QLineEdit(PubChemDialogData);
00139 pubchem_label->setObjectName(QString::fromUtf8("pubchem_label"));
00140
00141 gridLayout1->addWidget(pubchem_label, 0, 1, 1, 1);
00142
00143 label = new QLabel(PubChemDialogData);
00144 label->setObjectName(QString::fromUtf8("label"));
00145
00146 gridLayout1->addWidget(label, 1, 0, 1, 1);
00147
00148 generate_button = new QPushButton(PubChemDialogData);
00149 generate_button->setObjectName(QString::fromUtf8("generate_button"));
00150 generate_button->setMaximumSize(QSize(200, 16777215));
00151
00152 gridLayout1->addWidget(generate_button, 1, 2, 1, 1);
00153
00154 search_button = new QPushButton(PubChemDialogData);
00155 search_button->setObjectName(QString::fromUtf8("search_button"));
00156 QSizePolicy sizePolicy5(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
00157 sizePolicy5.setHorizontalStretch(0);
00158 sizePolicy5.setVerticalStretch(0);
00159 sizePolicy5.setHeightForWidth(search_button->sizePolicy().hasHeightForWidth());
00160 search_button->setSizePolicy(sizePolicy5);
00161 search_button->setMaximumSize(QSize(200, 16777215));
00162
00163 gridLayout1->addWidget(search_button, 0, 2, 1, 1);
00164
00165 smiles_label = new QLineEdit(PubChemDialogData);
00166 smiles_label->setObjectName(QString::fromUtf8("smiles_label"));
00167
00168 gridLayout1->addWidget(smiles_label, 1, 1, 1, 1);
00169
00170 label_2 = new QLabel(PubChemDialogData);
00171 label_2->setObjectName(QString::fromUtf8("label_2"));
00172
00173 gridLayout1->addWidget(label_2, 0, 0, 1, 1);
00174
00175
00176 gridLayout->addLayout(gridLayout1, 2, 0, 1, 2);
00177
00178 queries = new QTreeWidget(PubChemDialogData);
00179 queries->setObjectName(QString::fromUtf8("queries"));
00180 QSizePolicy sizePolicy6(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(7));
00181 sizePolicy6.setHorizontalStretch(0);
00182 sizePolicy6.setVerticalStretch(0);
00183 sizePolicy6.setHeightForWidth(queries->sizePolicy().hasHeightForWidth());
00184 queries->setSizePolicy(sizePolicy6);
00185
00186 gridLayout->addWidget(queries, 0, 0, 2, 1);
00187
00188 QWidget::setTabOrder(pubchem_label, search_button);
00189 QWidget::setTabOrder(search_button, smiles_label);
00190 QWidget::setTabOrder(smiles_label, generate_button);
00191 QWidget::setTabOrder(generate_button, ok_button);
00192 QWidget::setTabOrder(ok_button, clear_button);
00193 QWidget::setTabOrder(clear_button, cancel_button);
00194 QWidget::setTabOrder(cancel_button, queries);
00195 QWidget::setTabOrder(queries, text_field);
00196
00197 retranslateUi(PubChemDialogData);
00198
00199 QSize size(648, 721);
00200 size = size.expandedTo(PubChemDialogData->minimumSizeHint());
00201 PubChemDialogData->resize(size);
00202
00203 QObject::connect(ok_button, SIGNAL(clicked()), PubChemDialogData, SLOT(accept()));
00204 QObject::connect(cancel_button, SIGNAL(clicked()), PubChemDialogData, SLOT(reject()));
00205
00206 QMetaObject::connectSlotsByName(PubChemDialogData);
00207 }
00208
00209 void retranslateUi(QDialog *PubChemDialogData)
00210 {
00211 PubChemDialogData->setWindowTitle(QApplication::translate("PubChemDialogData", "Dialog", 0, QApplication::UnicodeUTF8));
00212 ok_button->setText(QApplication::translate("PubChemDialogData", "Add", 0, QApplication::UnicodeUTF8));
00213 clear_button->setText(QApplication::translate("PubChemDialogData", "Clear Results", 0, QApplication::UnicodeUTF8));
00214 cancel_button->setText(QApplication::translate("PubChemDialogData", "Cancel", 0, QApplication::UnicodeUTF8));
00215 label->setText(QApplication::translate("PubChemDialogData", "SMILES", 0, QApplication::UnicodeUTF8));
00216 generate_button->setText(QApplication::translate("PubChemDialogData", "Generate", 0, QApplication::UnicodeUTF8));
00217 search_button->setText(QApplication::translate("PubChemDialogData", "PubChem", 0, QApplication::UnicodeUTF8));
00218 label_2->setText(QApplication::translate("PubChemDialogData", "PubChem", 0, QApplication::UnicodeUTF8));
00219 Q_UNUSED(PubChemDialogData);
00220 }
00221
00222 };
00223
00224 namespace Ui {
00225 class PubChemDialogData: public Ui_PubChemDialogData {};
00226 }
00227
00228 #endif // PUBCHEMDIALOGDATA_H