00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_CONNECTIONDIALOG_BASE_H
00011 #define UI_CONNECTIONDIALOG_BASE_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/QComboBox>
00019 #include <QtGui/QDialog>
00020 #include <QtGui/QGridLayout>
00021 #include <QtGui/QLabel>
00022 #include <QtGui/QLineEdit>
00023 #include <QtGui/QPushButton>
00024 #include <QtGui/QSpacerItem>
00025 #include <QtGui/QTabWidget>
00026 #include <QtGui/QWidget>
00027
00028 class Ui_ConnectionDialog_BASE
00029 {
00030 public:
00031 QGridLayout *gridLayout;
00032 QTabWidget *tabWidget_ConnectionBuilder;
00033 QWidget *ConnectionBuilder;
00034 QGridLayout *gridLayout1;
00035 QLabel *label;
00036 QComboBox *comboBox_DBType;
00037 QLabel *label_2;
00038 QComboBox *comboBox_Server;
00039 QLabel *label_3;
00040 QComboBox *comboBox_Login;
00041 QLabel *label_4;
00042 QLineEdit *lineEdit_Password;
00043 QLabel *label_6;
00044 QComboBox *comboBox_Schema;
00045 QLabel *label_5;
00046 QComboBox *comboBox_DBName;
00047 QWidget *ConnectionHistory;
00048 QGridLayout *gridLayout2;
00049 QComboBox *comboBox_ConnectionHistory;
00050 QSpacerItem *spacerItem;
00051 QPushButton *pushButton_RemoveAllHistory;
00052 QPushButton *pushButton_RemoveHistoryEntry;
00053 QSpacerItem *spacerItem1;
00054 QCheckBox *checkBox_IOVs;
00055 QSpacerItem *spacerItem2;
00056 QPushButton *pushButton_TestConnection;
00057 QPushButton *pushButton_Cancel;
00058 QPushButton *pushButton_Connect;
00059
00060 void setupUi(QDialog *ConnectionDialog_BASE)
00061 {
00062 if (ConnectionDialog_BASE->objectName().isEmpty())
00063 ConnectionDialog_BASE->setObjectName(QString::fromUtf8("ConnectionDialog_BASE"));
00064 ConnectionDialog_BASE->setWindowModality(Qt::ApplicationModal);
00065 ConnectionDialog_BASE->resize(342, 283);
00066 ConnectionDialog_BASE->setModal(true);
00067 gridLayout = new QGridLayout(ConnectionDialog_BASE);
00068 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00069 tabWidget_ConnectionBuilder = new QTabWidget(ConnectionDialog_BASE);
00070 tabWidget_ConnectionBuilder->setObjectName(QString::fromUtf8("tabWidget_ConnectionBuilder"));
00071 tabWidget_ConnectionBuilder->setFocusPolicy(Qt::NoFocus);
00072 ConnectionBuilder = new QWidget();
00073 ConnectionBuilder->setObjectName(QString::fromUtf8("ConnectionBuilder"));
00074 gridLayout1 = new QGridLayout(ConnectionBuilder);
00075 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00076 label = new QLabel(ConnectionBuilder);
00077 label->setObjectName(QString::fromUtf8("label"));
00078
00079 gridLayout1->addWidget(label, 0, 0, 1, 1);
00080
00081 comboBox_DBType = new QComboBox(ConnectionBuilder);
00082 comboBox_DBType->setObjectName(QString::fromUtf8("comboBox_DBType"));
00083
00084 gridLayout1->addWidget(comboBox_DBType, 0, 1, 1, 1);
00085
00086 label_2 = new QLabel(ConnectionBuilder);
00087 label_2->setObjectName(QString::fromUtf8("label_2"));
00088
00089 gridLayout1->addWidget(label_2, 1, 0, 1, 1);
00090
00091 comboBox_Server = new QComboBox(ConnectionBuilder);
00092 comboBox_Server->setObjectName(QString::fromUtf8("comboBox_Server"));
00093 comboBox_Server->setEditable(true);
00094
00095 gridLayout1->addWidget(comboBox_Server, 1, 1, 1, 1);
00096
00097 label_3 = new QLabel(ConnectionBuilder);
00098 label_3->setObjectName(QString::fromUtf8("label_3"));
00099
00100 gridLayout1->addWidget(label_3, 2, 0, 1, 1);
00101
00102 comboBox_Login = new QComboBox(ConnectionBuilder);
00103 comboBox_Login->setObjectName(QString::fromUtf8("comboBox_Login"));
00104 comboBox_Login->setAcceptDrops(true);
00105 comboBox_Login->setEditable(true);
00106
00107 gridLayout1->addWidget(comboBox_Login, 2, 1, 1, 1);
00108
00109 label_4 = new QLabel(ConnectionBuilder);
00110 label_4->setObjectName(QString::fromUtf8("label_4"));
00111
00112 gridLayout1->addWidget(label_4, 3, 0, 1, 1);
00113
00114 lineEdit_Password = new QLineEdit(ConnectionBuilder);
00115 lineEdit_Password->setObjectName(QString::fromUtf8("lineEdit_Password"));
00116 lineEdit_Password->setEchoMode(QLineEdit::Password);
00117
00118 gridLayout1->addWidget(lineEdit_Password, 3, 1, 1, 1);
00119
00120 label_6 = new QLabel(ConnectionBuilder);
00121 label_6->setObjectName(QString::fromUtf8("label_6"));
00122
00123 gridLayout1->addWidget(label_6, 4, 0, 1, 1);
00124
00125 comboBox_Schema = new QComboBox(ConnectionBuilder);
00126 comboBox_Schema->setObjectName(QString::fromUtf8("comboBox_Schema"));
00127 comboBox_Schema->setAcceptDrops(true);
00128 comboBox_Schema->setEditable(true);
00129
00130 gridLayout1->addWidget(comboBox_Schema, 4, 1, 1, 1);
00131
00132 label_5 = new QLabel(ConnectionBuilder);
00133 label_5->setObjectName(QString::fromUtf8("label_5"));
00134
00135 gridLayout1->addWidget(label_5, 5, 0, 1, 1);
00136
00137 comboBox_DBName = new QComboBox(ConnectionBuilder);
00138 comboBox_DBName->setObjectName(QString::fromUtf8("comboBox_DBName"));
00139 comboBox_DBName->setAcceptDrops(true);
00140 comboBox_DBName->setEditable(true);
00141
00142 gridLayout1->addWidget(comboBox_DBName, 5, 1, 1, 1);
00143
00144 tabWidget_ConnectionBuilder->addTab(ConnectionBuilder, QString());
00145 ConnectionHistory = new QWidget();
00146 ConnectionHistory->setObjectName(QString::fromUtf8("ConnectionHistory"));
00147 gridLayout2 = new QGridLayout(ConnectionHistory);
00148 gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
00149 comboBox_ConnectionHistory = new QComboBox(ConnectionHistory);
00150 comboBox_ConnectionHistory->setObjectName(QString::fromUtf8("comboBox_ConnectionHistory"));
00151 comboBox_ConnectionHistory->setFocusPolicy(Qt::TabFocus);
00152
00153 gridLayout2->addWidget(comboBox_ConnectionHistory, 0, 0, 1, 3);
00154
00155 spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00156
00157 gridLayout2->addItem(spacerItem, 1, 0, 1, 1);
00158
00159 pushButton_RemoveAllHistory = new QPushButton(ConnectionHistory);
00160 pushButton_RemoveAllHistory->setObjectName(QString::fromUtf8("pushButton_RemoveAllHistory"));
00161 pushButton_RemoveAllHistory->setFocusPolicy(Qt::NoFocus);
00162
00163 gridLayout2->addWidget(pushButton_RemoveAllHistory, 1, 1, 1, 1);
00164
00165 pushButton_RemoveHistoryEntry = new QPushButton(ConnectionHistory);
00166 pushButton_RemoveHistoryEntry->setObjectName(QString::fromUtf8("pushButton_RemoveHistoryEntry"));
00167 pushButton_RemoveHistoryEntry->setFocusPolicy(Qt::NoFocus);
00168
00169 gridLayout2->addWidget(pushButton_RemoveHistoryEntry, 1, 2, 1, 1);
00170
00171 spacerItem1 = new QSpacerItem(20, 41, QSizePolicy::Minimum, QSizePolicy::Expanding);
00172
00173 gridLayout2->addItem(spacerItem1, 2, 1, 1, 1);
00174
00175 tabWidget_ConnectionBuilder->addTab(ConnectionHistory, QString());
00176
00177 gridLayout->addWidget(tabWidget_ConnectionBuilder, 0, 0, 1, 5);
00178
00179 checkBox_IOVs = new QCheckBox(ConnectionDialog_BASE);
00180 checkBox_IOVs->setObjectName(QString::fromUtf8("checkBox_IOVs"));
00181
00182 gridLayout->addWidget(checkBox_IOVs, 1, 0, 1, 1);
00183
00184 spacerItem2 = new QSpacerItem(21, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00185
00186 gridLayout->addItem(spacerItem2, 1, 1, 1, 1);
00187
00188 pushButton_TestConnection = new QPushButton(ConnectionDialog_BASE);
00189 pushButton_TestConnection->setObjectName(QString::fromUtf8("pushButton_TestConnection"));
00190
00191 gridLayout->addWidget(pushButton_TestConnection, 1, 2, 1, 1);
00192
00193 pushButton_Cancel = new QPushButton(ConnectionDialog_BASE);
00194 pushButton_Cancel->setObjectName(QString::fromUtf8("pushButton_Cancel"));
00195
00196 gridLayout->addWidget(pushButton_Cancel, 1, 3, 1, 1);
00197
00198 pushButton_Connect = new QPushButton(ConnectionDialog_BASE);
00199 pushButton_Connect->setObjectName(QString::fromUtf8("pushButton_Connect"));
00200 pushButton_Connect->setDefault(true);
00201
00202 gridLayout->addWidget(pushButton_Connect, 1, 4, 1, 1);
00203
00204 QWidget::setTabOrder(tabWidget_ConnectionBuilder, comboBox_DBType);
00205 QWidget::setTabOrder(comboBox_DBType, comboBox_Server);
00206 QWidget::setTabOrder(comboBox_Server, comboBox_Login);
00207 QWidget::setTabOrder(comboBox_Login, lineEdit_Password);
00208 QWidget::setTabOrder(lineEdit_Password, comboBox_DBName);
00209 QWidget::setTabOrder(comboBox_DBName, pushButton_Connect);
00210 QWidget::setTabOrder(pushButton_Connect, pushButton_TestConnection);
00211 QWidget::setTabOrder(pushButton_TestConnection, pushButton_Cancel);
00212 QWidget::setTabOrder(pushButton_Cancel, comboBox_ConnectionHistory);
00213
00214 retranslateUi(ConnectionDialog_BASE);
00215 QObject::connect(pushButton_Cancel, SIGNAL(clicked()), ConnectionDialog_BASE, SLOT(reject()));
00216 QObject::connect(comboBox_DBType, SIGNAL(activated(int)), comboBox_Server, SLOT(setFocus()));
00217 QObject::connect(comboBox_Server, SIGNAL(activated(int)), comboBox_Login, SLOT(setFocus()));
00218 QObject::connect(comboBox_Login, SIGNAL(activated(int)), lineEdit_Password, SLOT(setFocus()));
00219 QObject::connect(lineEdit_Password, SIGNAL(returnPressed()), comboBox_DBName, SLOT(setFocus()));
00220 QObject::connect(comboBox_DBName, SIGNAL(activated(int)), pushButton_Connect, SLOT(setFocus()));
00221 QObject::connect(comboBox_ConnectionHistory, SIGNAL(activated(int)), pushButton_Connect, SLOT(setFocus()));
00222
00223 tabWidget_ConnectionBuilder->setCurrentIndex(0);
00224
00225
00226 QMetaObject::connectSlotsByName(ConnectionDialog_BASE);
00227 }
00228
00229 void retranslateUi(QDialog *ConnectionDialog_BASE)
00230 {
00231 ConnectionDialog_BASE->setWindowTitle(QApplication::translate("ConnectionDialog_BASE", "Open COOL connection", 0, QApplication::UnicodeUTF8));
00232 label->setText(QApplication::translate("ConnectionDialog_BASE", "Database type:", 0, QApplication::UnicodeUTF8));
00233 comboBox_DBType->clear();
00234 comboBox_DBType->insertItems(0, QStringList()
00235 << QApplication::translate("ConnectionDialog_BASE", "oracle", 0, QApplication::UnicodeUTF8)
00236 << QApplication::translate("ConnectionDialog_BASE", "mysql", 0, QApplication::UnicodeUTF8)
00237 << QApplication::translate("ConnectionDialog_BASE", "sqlite", 0, QApplication::UnicodeUTF8)
00238 );
00239 label_2->setText(QApplication::translate("ConnectionDialog_BASE", "Server:", 0, QApplication::UnicodeUTF8));
00240 label_3->setText(QApplication::translate("ConnectionDialog_BASE", "Login:", 0, QApplication::UnicodeUTF8));
00241 label_4->setText(QApplication::translate("ConnectionDialog_BASE", "Password:", 0, QApplication::UnicodeUTF8));
00242 label_6->setText(QApplication::translate("ConnectionDialog_BASE", "Schema:", 0, QApplication::UnicodeUTF8));
00243 label_5->setText(QApplication::translate("ConnectionDialog_BASE", "Database:", 0, QApplication::UnicodeUTF8));
00244 tabWidget_ConnectionBuilder->setTabText(tabWidget_ConnectionBuilder->indexOf(ConnectionBuilder), QApplication::translate("ConnectionDialog_BASE", "Connection Builder", 0, QApplication::UnicodeUTF8));
00245 pushButton_RemoveAllHistory->setText(QApplication::translate("ConnectionDialog_BASE", "Clear All", 0, QApplication::UnicodeUTF8));
00246 pushButton_RemoveHistoryEntry->setText(QApplication::translate("ConnectionDialog_BASE", "Remove Entry", 0, QApplication::UnicodeUTF8));
00247 tabWidget_ConnectionBuilder->setTabText(tabWidget_ConnectionBuilder->indexOf(ConnectionHistory), QApplication::translate("ConnectionDialog_BASE", "History", 0, QApplication::UnicodeUTF8));
00248 checkBox_IOVs->setToolTip(QApplication::translate("ConnectionDialog_BASE", "Leave unchecked for most recent IOVs.", 0, QApplication::UnicodeUTF8));
00249 checkBox_IOVs->setText(QApplication::translate("ConnectionDialog_BASE", "All IOVs", 0, QApplication::UnicodeUTF8));
00250 pushButton_TestConnection->setText(QApplication::translate("ConnectionDialog_BASE", "Test", 0, QApplication::UnicodeUTF8));
00251 pushButton_Cancel->setText(QApplication::translate("ConnectionDialog_BASE", "Cancel", 0, QApplication::UnicodeUTF8));
00252 pushButton_Connect->setText(QApplication::translate("ConnectionDialog_BASE", "Connect", 0, QApplication::UnicodeUTF8));
00253 Q_UNUSED(ConnectionDialog_BASE);
00254 }
00255
00256 };
00257
00258 namespace Ui {
00259 class ConnectionDialog_BASE: public Ui_ConnectionDialog_BASE {};
00260 }
00261
00262 #endif // UI_CONNECTIONDIALOG_BASE_H