| 1 |
/******************************************************************************** |
| 2 |
** Form generated from reading UI file 'browserwidget.ui' |
| 3 |
** |
| 4 |
** Created by: Qt User Interface Compiler version 5.12.0 |
| 5 |
** |
| 6 |
** WARNING! All changes made in this file will be lost when recompiling UI file! |
| 7 |
********************************************************************************/ |
| 8 |
|
| 9 |
#ifndef BROWSERWIDGET_H |
| 10 |
#define BROWSERWIDGET_H |
| 11 |
|
| 12 |
#include <QtCore/QVariant> |
| 13 |
#include <QtWidgets/QAction> |
| 14 |
#include <QtWidgets/QApplication> |
| 15 |
#include <QtWidgets/QGroupBox> |
| 16 |
#include <QtWidgets/QHBoxLayout> |
| 17 |
#include <QtWidgets/QHeaderView> |
| 18 |
#include <QtWidgets/QPushButton> |
| 19 |
#include <QtWidgets/QSpacerItem> |
| 20 |
#include <QtWidgets/QSplitter> |
| 21 |
#include <QtWidgets/QTableView> |
| 22 |
#include <QtWidgets/QTextEdit> |
| 23 |
#include <QtWidgets/QVBoxLayout> |
| 24 |
#include <QtWidgets/QWidget> |
| 25 |
#include "connectionwidget.h" |
| 26 |
|
| 27 |
QT_BEGIN_NAMESPACE |
| 28 |
|
| 29 |
class Ui_Browser |
| 30 |
{ |
| 31 |
public: |
| 32 |
QAction *insertRowAction; |
| 33 |
QAction *deleteRowAction; |
| 34 |
QVBoxLayout *vboxLayout; |
| 35 |
QSplitter *splitter_2; |
| 36 |
ConnectionWidget *connectionWidget; |
| 37 |
QTableView *table; |
| 38 |
QGroupBox *groupBox; |
| 39 |
QVBoxLayout *vboxLayout1; |
| 40 |
QTextEdit *sqlEdit; |
| 41 |
QHBoxLayout *hboxLayout; |
| 42 |
QSpacerItem *spacerItem; |
| 43 |
QPushButton *clearButton; |
| 44 |
QPushButton *submitButton; |
| 45 |
|
| 46 |
void setupUi(QWidget *Browser) |
| 47 |
{ |
| 48 |
if (Browser->objectName().isEmpty()) |
| 49 |
Browser->setObjectName(QString::fromUtf8("Browser")); |
| 50 |
Browser->resize(765, 515); |
| 51 |
insertRowAction = new QAction(Browser); |
| 52 |
insertRowAction->setObjectName(QString::fromUtf8("insertRowAction")); |
| 53 |
insertRowAction->setEnabled(false); |
| 54 |
deleteRowAction = new QAction(Browser); |
| 55 |
deleteRowAction->setObjectName(QString::fromUtf8("deleteRowAction")); |
| 56 |
deleteRowAction->setEnabled(false); |
| 57 |
vboxLayout = new QVBoxLayout(Browser); |
| 58 |
#ifndef Q_OS_MAC |
| 59 |
vboxLayout->setSpacing(6); |
| 60 |
#endif |
| 61 |
vboxLayout->setContentsMargins(8, 8, 8, 8); |
| 62 |
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); |
| 63 |
splitter_2 = new QSplitter(Browser); |
| 64 |
splitter_2->setObjectName(QString::fromUtf8("splitter_2")); |
| 65 |
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
| 66 |
sizePolicy.setHorizontalStretch(0); |
| 67 |
sizePolicy.setVerticalStretch(0); |
| 68 |
sizePolicy.setHeightForWidth(splitter_2->sizePolicy().hasHeightForWidth()); |
| 69 |
splitter_2->setSizePolicy(sizePolicy); |
| 70 |
splitter_2->setOrientation(Qt::Horizontal); |
| 71 |
connectionWidget = new ConnectionWidget(splitter_2); |
| 72 |
connectionWidget->setObjectName(QString::fromUtf8("connectionWidget")); |
| 73 |
QSizePolicy sizePolicy1(QSizePolicy::Ignored, QSizePolicy::Expanding); |
| 74 |
sizePolicy1.setHorizontalStretch(1); |
| 75 |
sizePolicy1.setVerticalStretch(0); |
| 76 |
sizePolicy1.setHeightForWidth(connectionWidget->sizePolicy().hasHeightForWidth()); |
| 77 |
connectionWidget->setSizePolicy(sizePolicy1); |
| 78 |
splitter_2->addWidget(connectionWidget); |
| 79 |
table = new QTableView(splitter_2); |
| 80 |
table->setObjectName(QString::fromUtf8("table")); |
| 81 |
QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Expanding); |
| 82 |
sizePolicy2.setHorizontalStretch(2); |
| 83 |
sizePolicy2.setVerticalStretch(0); |
| 84 |
sizePolicy2.setHeightForWidth(table->sizePolicy().hasHeightForWidth()); |
| 85 |
table->setSizePolicy(sizePolicy2); |
| 86 |
table->setContextMenuPolicy(Qt::ActionsContextMenu); |
| 87 |
table->setSelectionBehavior(QAbstractItemView::SelectRows); |
| 88 |
splitter_2->addWidget(table); |
| 89 |
|
| 90 |
vboxLayout->addWidget(splitter_2); |
| 91 |
|
| 92 |
groupBox = new QGroupBox(Browser); |
| 93 |
groupBox->setObjectName(QString::fromUtf8("groupBox")); |
| 94 |
QSizePolicy sizePolicy3(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding); |
| 95 |
sizePolicy3.setHorizontalStretch(0); |
| 96 |
sizePolicy3.setVerticalStretch(0); |
| 97 |
sizePolicy3.setHeightForWidth(groupBox->sizePolicy().hasHeightForWidth()); |
| 98 |
groupBox->setSizePolicy(sizePolicy3); |
| 99 |
groupBox->setMaximumSize(QSize(16777215, 180)); |
| 100 |
vboxLayout1 = new QVBoxLayout(groupBox); |
| 101 |
#ifndef Q_OS_MAC |
| 102 |
vboxLayout1->setSpacing(6); |
| 103 |
#endif |
| 104 |
#ifndef Q_OS_MAC |
| 105 |
vboxLayout1->setContentsMargins(9, 9, 9, 9); |
| 106 |
#endif |
| 107 |
vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1")); |
| 108 |
sqlEdit = new QTextEdit(groupBox); |
| 109 |
sqlEdit->setObjectName(QString::fromUtf8("sqlEdit")); |
| 110 |
QSizePolicy sizePolicy4(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding); |
| 111 |
sizePolicy4.setHorizontalStretch(0); |
| 112 |
sizePolicy4.setVerticalStretch(0); |
| 113 |
sizePolicy4.setHeightForWidth(sqlEdit->sizePolicy().hasHeightForWidth()); |
| 114 |
sqlEdit->setSizePolicy(sizePolicy4); |
| 115 |
sqlEdit->setMinimumSize(QSize(0, 18)); |
| 116 |
sqlEdit->setBaseSize(QSize(0, 120)); |
| 117 |
|
| 118 |
vboxLayout1->addWidget(sqlEdit); |
| 119 |
|
| 120 |
hboxLayout = new QHBoxLayout(); |
| 121 |
#ifndef Q_OS_MAC |
| 122 |
hboxLayout->setSpacing(6); |
| 123 |
#endif |
| 124 |
hboxLayout->setContentsMargins(1, 1, 1, 1); |
| 125 |
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout")); |
| 126 |
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
| 127 |
|
| 128 |
hboxLayout->addItem(spacerItem); |
| 129 |
|
| 130 |
clearButton = new QPushButton(groupBox); |
| 131 |
clearButton->setObjectName(QString::fromUtf8("clearButton")); |
| 132 |
|
| 133 |
hboxLayout->addWidget(clearButton); |
| 134 |
|
| 135 |
submitButton = new QPushButton(groupBox); |
| 136 |
submitButton->setObjectName(QString::fromUtf8("submitButton")); |
| 137 |
|
| 138 |
hboxLayout->addWidget(submitButton); |
| 139 |
|
| 140 |
|
| 141 |
vboxLayout1->addLayout(hboxLayout); |
| 142 |
|
| 143 |
|
| 144 |
vboxLayout->addWidget(groupBox); |
| 145 |
|
| 146 |
QWidget::setTabOrder(sqlEdit, clearButton); |
| 147 |
QWidget::setTabOrder(clearButton, submitButton); |
| 148 |
QWidget::setTabOrder(submitButton, connectionWidget); |
| 149 |
QWidget::setTabOrder(connectionWidget, table); |
| 150 |
|
| 151 |
retranslateUi(Browser); |
| 152 |
|
| 153 |
QMetaObject::connectSlotsByName(Browser); |
| 154 |
} // setupUi |
| 155 |
|
| 156 |
void retranslateUi(QWidget *Browser) |
| 157 |
{ |
| 158 |
Browser->setWindowTitle(QCoreApplication::translate("Browser", "Qt SQL Browser", nullptr)); |
| 159 |
insertRowAction->setText(QCoreApplication::translate("Browser", "&Insert Row", nullptr)); |
| 160 |
#if QT_CONFIG(statustip) |
| 161 |
insertRowAction->setStatusTip(QCoreApplication::translate("Browser", "Inserts a new Row", nullptr)); |
| 162 |
#endif // QT_CONFIG(statustip) |
| 163 |
deleteRowAction->setText(QCoreApplication::translate("Browser", "&Delete Row", nullptr)); |
| 164 |
#if QT_CONFIG(statustip) |
| 165 |
deleteRowAction->setStatusTip(QCoreApplication::translate("Browser", "Deletes the current Row", nullptr)); |
| 166 |
#endif // QT_CONFIG(statustip) |
| 167 |
groupBox->setTitle(QCoreApplication::translate("Browser", "SQL Query", nullptr)); |
| 168 |
clearButton->setText(QCoreApplication::translate("Browser", "&Clear", nullptr)); |
| 169 |
submitButton->setText(QCoreApplication::translate("Browser", "&Submit", nullptr)); |
| 170 |
} // retranslateUi |
| 171 |
|
| 172 |
}; |
| 173 |
|
| 174 |
namespace Ui { |
| 175 |
class Browser: public Ui_Browser {}; |
| 176 |
} // namespace Ui |
| 177 |
|
| 178 |
QT_END_NAMESPACE |
| 179 |
|
| 180 |
#endif // BROWSERWIDGET_H |