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