00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_CONNECTIONDIALOG_H
00011 #define UI_CONNECTIONDIALOG_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/QGroupBox>
00022 #include <QtGui/QHBoxLayout>
00023 #include <QtGui/QHeaderView>
00024 #include <QtGui/QLabel>
00025 #include <QtGui/QLineEdit>
00026 #include <QtGui/QPushButton>
00027 #include <QtGui/QSpacerItem>
00028 #include <QtGui/QSpinBox>
00029 #include <QtGui/QVBoxLayout>
00030
00031 QT_BEGIN_NAMESPACE
00032
00033 class Ui_ConnectionDialogUi
00034 {
00035 public:
00036 QVBoxLayout *vboxLayout;
00037 QGroupBox *connGroupBox;
00038 QGridLayout *gridLayout;
00039 QComboBox *comboDriver;
00040 QLabel *textLabel4;
00041 QLabel *textLabel2;
00042 QLineEdit *editDatabase;
00043 QSpinBox *portSpinBox;
00044 QLabel *textLabel3;
00045 QLineEdit *editPassword;
00046 QLineEdit *editUsername;
00047 QLineEdit *editHostname;
00048 QLabel *textLabel5;
00049 QLabel *textLabel5_2;
00050 QLabel *textLabel4_2;
00051 QHBoxLayout *hboxLayout;
00052 QSpacerItem *spacerItem;
00053 QCheckBox *dbCheckBox;
00054 QHBoxLayout *hboxLayout1;
00055 QSpacerItem *spacerItem1;
00056 QPushButton *okButton;
00057 QPushButton *cancelButton;
00058
00059 void setupUi(QDialog *ConnectionDialogUi)
00060 {
00061 if (ConnectionDialogUi->objectName().isEmpty())
00062 ConnectionDialogUi->setObjectName(QString::fromUtf8("ConnectionDialogUi"));
00063 ConnectionDialogUi->resize(315, 302);
00064 vboxLayout = new QVBoxLayout(ConnectionDialogUi);
00065 #ifndef Q_OS_MAC
00066 vboxLayout->setSpacing(6);
00067 #endif
00068 vboxLayout->setContentsMargins(8, 8, 8, 8);
00069 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
00070 connGroupBox = new QGroupBox(ConnectionDialogUi);
00071 connGroupBox->setObjectName(QString::fromUtf8("connGroupBox"));
00072 gridLayout = new QGridLayout(connGroupBox);
00073 #ifndef Q_OS_MAC
00074 gridLayout->setSpacing(6);
00075 #endif
00076 gridLayout->setContentsMargins(8, 8, 8, 8);
00077 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00078 comboDriver = new QComboBox(connGroupBox);
00079 comboDriver->setObjectName(QString::fromUtf8("comboDriver"));
00080
00081 gridLayout->addWidget(comboDriver, 0, 1, 1, 1);
00082
00083 textLabel4 = new QLabel(connGroupBox);
00084 textLabel4->setObjectName(QString::fromUtf8("textLabel4"));
00085
00086 gridLayout->addWidget(textLabel4, 2, 0, 1, 1);
00087
00088 textLabel2 = new QLabel(connGroupBox);
00089 textLabel2->setObjectName(QString::fromUtf8("textLabel2"));
00090
00091 gridLayout->addWidget(textLabel2, 0, 0, 1, 1);
00092
00093 editDatabase = new QLineEdit(connGroupBox);
00094 editDatabase->setObjectName(QString::fromUtf8("editDatabase"));
00095
00096 gridLayout->addWidget(editDatabase, 1, 1, 1, 1);
00097
00098 portSpinBox = new QSpinBox(connGroupBox);
00099 portSpinBox->setObjectName(QString::fromUtf8("portSpinBox"));
00100 portSpinBox->setMinimum(-1);
00101 portSpinBox->setMaximum(65535);
00102 portSpinBox->setValue(-1);
00103
00104 gridLayout->addWidget(portSpinBox, 5, 1, 1, 1);
00105
00106 textLabel3 = new QLabel(connGroupBox);
00107 textLabel3->setObjectName(QString::fromUtf8("textLabel3"));
00108
00109 gridLayout->addWidget(textLabel3, 1, 0, 1, 1);
00110
00111 editPassword = new QLineEdit(connGroupBox);
00112 editPassword->setObjectName(QString::fromUtf8("editPassword"));
00113 editPassword->setEchoMode(QLineEdit::Password);
00114
00115 gridLayout->addWidget(editPassword, 3, 1, 1, 1);
00116
00117 editUsername = new QLineEdit(connGroupBox);
00118 editUsername->setObjectName(QString::fromUtf8("editUsername"));
00119
00120 gridLayout->addWidget(editUsername, 2, 1, 1, 1);
00121
00122 editHostname = new QLineEdit(connGroupBox);
00123 editHostname->setObjectName(QString::fromUtf8("editHostname"));
00124
00125 gridLayout->addWidget(editHostname, 4, 1, 1, 1);
00126
00127 textLabel5 = new QLabel(connGroupBox);
00128 textLabel5->setObjectName(QString::fromUtf8("textLabel5"));
00129
00130 gridLayout->addWidget(textLabel5, 4, 0, 1, 1);
00131
00132 textLabel5_2 = new QLabel(connGroupBox);
00133 textLabel5_2->setObjectName(QString::fromUtf8("textLabel5_2"));
00134
00135 gridLayout->addWidget(textLabel5_2, 5, 0, 1, 1);
00136
00137 textLabel4_2 = new QLabel(connGroupBox);
00138 textLabel4_2->setObjectName(QString::fromUtf8("textLabel4_2"));
00139
00140 gridLayout->addWidget(textLabel4_2, 3, 0, 1, 1);
00141
00142
00143 vboxLayout->addWidget(connGroupBox);
00144
00145 hboxLayout = new QHBoxLayout();
00146 #ifndef Q_OS_MAC
00147 hboxLayout->setSpacing(6);
00148 #endif
00149 hboxLayout->setContentsMargins(0, 0, 0, 0);
00150 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00151 spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00152
00153 hboxLayout->addItem(spacerItem);
00154
00155 dbCheckBox = new QCheckBox(ConnectionDialogUi);
00156 dbCheckBox->setObjectName(QString::fromUtf8("dbCheckBox"));
00157
00158 hboxLayout->addWidget(dbCheckBox);
00159
00160
00161 vboxLayout->addLayout(hboxLayout);
00162
00163 hboxLayout1 = new QHBoxLayout();
00164 #ifndef Q_OS_MAC
00165 hboxLayout1->setSpacing(6);
00166 #endif
00167 hboxLayout1->setContentsMargins(0, 0, 0, 0);
00168 hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00169 spacerItem1 = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00170
00171 hboxLayout1->addItem(spacerItem1);
00172
00173 okButton = new QPushButton(ConnectionDialogUi);
00174 okButton->setObjectName(QString::fromUtf8("okButton"));
00175 okButton->setDefault(true);
00176
00177 hboxLayout1->addWidget(okButton);
00178
00179 cancelButton = new QPushButton(ConnectionDialogUi);
00180 cancelButton->setObjectName(QString::fromUtf8("cancelButton"));
00181
00182 hboxLayout1->addWidget(cancelButton);
00183
00184
00185 vboxLayout->addLayout(hboxLayout1);
00186
00187 #ifndef QT_NO_SHORTCUT
00188 textLabel4->setBuddy(editUsername);
00189 textLabel2->setBuddy(comboDriver);
00190 textLabel3->setBuddy(editDatabase);
00191 textLabel5->setBuddy(editHostname);
00192 textLabel5_2->setBuddy(portSpinBox);
00193 textLabel4_2->setBuddy(editPassword);
00194 #endif // QT_NO_SHORTCUT
00195 QWidget::setTabOrder(comboDriver, editDatabase);
00196 QWidget::setTabOrder(editDatabase, editUsername);
00197 QWidget::setTabOrder(editUsername, editPassword);
00198 QWidget::setTabOrder(editPassword, editHostname);
00199 QWidget::setTabOrder(editHostname, portSpinBox);
00200 QWidget::setTabOrder(portSpinBox, dbCheckBox);
00201 QWidget::setTabOrder(dbCheckBox, okButton);
00202 QWidget::setTabOrder(okButton, cancelButton);
00203
00204 retranslateUi(ConnectionDialogUi);
00205
00206 QMetaObject::connectSlotsByName(ConnectionDialogUi);
00207 }
00208
00209 void retranslateUi(QDialog *ConnectionDialogUi)
00210 {
00211 ConnectionDialogUi->setWindowTitle(QApplication::translate("ConnectionDialogUi", "Connect...", 0, QApplication::UnicodeUTF8));
00212 connGroupBox->setTitle(QApplication::translate("ConnectionDialogUi", "Connection settings", 0, QApplication::UnicodeUTF8));
00213 textLabel4->setText(QApplication::translate("ConnectionDialogUi", "&Username:", 0, QApplication::UnicodeUTF8));
00214 textLabel2->setText(QApplication::translate("ConnectionDialogUi", "D&river", 0, QApplication::UnicodeUTF8));
00215 portSpinBox->setSpecialValueText(QApplication::translate("ConnectionDialogUi", "Default", 0, QApplication::UnicodeUTF8));
00216 textLabel3->setText(QApplication::translate("ConnectionDialogUi", "Database Name:", 0, QApplication::UnicodeUTF8));
00217 textLabel5->setText(QApplication::translate("ConnectionDialogUi", "&Hostname:", 0, QApplication::UnicodeUTF8));
00218 textLabel5_2->setText(QApplication::translate("ConnectionDialogUi", "P&ort:", 0, QApplication::UnicodeUTF8));
00219 textLabel4_2->setText(QApplication::translate("ConnectionDialogUi", "&Password:", 0, QApplication::UnicodeUTF8));
00220 dbCheckBox->setText(QApplication::translate("ConnectionDialogUi", "Us&e predefined in-memory database", 0, QApplication::UnicodeUTF8));
00221 okButton->setText(QApplication::translate("ConnectionDialogUi", "&OK", 0, QApplication::UnicodeUTF8));
00222 cancelButton->setText(QApplication::translate("ConnectionDialogUi", "&Cancel", 0, QApplication::UnicodeUTF8));
00223 }
00224
00225 };
00226
00227 namespace Ui {
00228 class ConnectionDialogUi: public Ui_ConnectionDialogUi {};
00229 }
00230
00231 QT_END_NAMESPACE
00232
00233 #endif // UI_CONNECTIONDIALOG_H