1/********************************************************************************
2** Form generated from reading UI file 'browserwidget.ui'
3**
4** Created by: Qt User Interface Compiler version 5.15.9
5**
6** WARNING! All changes made in this file will be lost when recompiling UI file!
7********************************************************************************/
8
9#ifndef UI_BROWSERWIDGET_H
10#define UI_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
27QT_BEGIN_NAMESPACE
28
29class Ui_Browser
30{
31public:
32 QAction *insertRowAction;
33 QAction *deleteRowAction;
34 QAction *fieldStrategyAction;
35 QAction *rowStrategyAction;
36 QAction *manualStrategyAction;
37 QAction *submitAction;
38 QAction *revertAction;
39 QAction *selectAction;
40 QVBoxLayout *vboxLayout;
41 QSplitter *splitter_2;
42 ConnectionWidget *connectionWidget;
43 QTableView *table;
44 QGroupBox *groupBox;
45 QVBoxLayout *vboxLayout1;
46 QTextEdit *sqlEdit;
47 QHBoxLayout *hboxLayout;
48 QSpacerItem *spacerItem;
49 QPushButton *clearButton;
50 QPushButton *submitButton;
51
52 void setupUi(QWidget *Browser)
53 {
54 if (Browser->objectName().isEmpty())
55 Browser->setObjectName(QString::fromUtf8(str: "Browser"));
56 Browser->resize(w: 765, h: 515);
57 insertRowAction = new QAction(Browser);
58 insertRowAction->setObjectName(QString::fromUtf8(str: "insertRowAction"));
59 insertRowAction->setEnabled(false);
60 deleteRowAction = new QAction(Browser);
61 deleteRowAction->setObjectName(QString::fromUtf8(str: "deleteRowAction"));
62 deleteRowAction->setEnabled(false);
63 fieldStrategyAction = new QAction(Browser);
64 fieldStrategyAction->setObjectName(QString::fromUtf8(str: "fieldStrategyAction"));
65 fieldStrategyAction->setCheckable(true);
66 rowStrategyAction = new QAction(Browser);
67 rowStrategyAction->setObjectName(QString::fromUtf8(str: "rowStrategyAction"));
68 rowStrategyAction->setCheckable(true);
69 manualStrategyAction = new QAction(Browser);
70 manualStrategyAction->setObjectName(QString::fromUtf8(str: "manualStrategyAction"));
71 manualStrategyAction->setCheckable(true);
72 submitAction = new QAction(Browser);
73 submitAction->setObjectName(QString::fromUtf8(str: "submitAction"));
74 revertAction = new QAction(Browser);
75 revertAction->setObjectName(QString::fromUtf8(str: "revertAction"));
76 selectAction = new QAction(Browser);
77 selectAction->setObjectName(QString::fromUtf8(str: "selectAction"));
78 vboxLayout = new QVBoxLayout(Browser);
79#ifndef Q_OS_MAC
80 vboxLayout->setSpacing(6);
81#endif
82 vboxLayout->setContentsMargins(left: 8, top: 8, right: 8, bottom: 8);
83 vboxLayout->setObjectName(QString::fromUtf8(str: "vboxLayout"));
84 splitter_2 = new QSplitter(Browser);
85 splitter_2->setObjectName(QString::fromUtf8(str: "splitter_2"));
86 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
87 sizePolicy.setHorizontalStretch(0);
88 sizePolicy.setVerticalStretch(0);
89 sizePolicy.setHeightForWidth(splitter_2->sizePolicy().hasHeightForWidth());
90 splitter_2->setSizePolicy(sizePolicy);
91 splitter_2->setOrientation(Qt::Horizontal);
92 connectionWidget = new ConnectionWidget(splitter_2);
93 connectionWidget->setObjectName(QString::fromUtf8(str: "connectionWidget"));
94 QSizePolicy sizePolicy1(QSizePolicy::Ignored, QSizePolicy::Expanding);
95 sizePolicy1.setHorizontalStretch(1);
96 sizePolicy1.setVerticalStretch(0);
97 sizePolicy1.setHeightForWidth(connectionWidget->sizePolicy().hasHeightForWidth());
98 connectionWidget->setSizePolicy(sizePolicy1);
99 splitter_2->addWidget(widget: connectionWidget);
100 table = new QTableView(splitter_2);
101 table->setObjectName(QString::fromUtf8(str: "table"));
102 QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Expanding);
103 sizePolicy2.setHorizontalStretch(2);
104 sizePolicy2.setVerticalStretch(0);
105 sizePolicy2.setHeightForWidth(table->sizePolicy().hasHeightForWidth());
106 table->setSizePolicy(sizePolicy2);
107 table->setContextMenuPolicy(Qt::ActionsContextMenu);
108 table->setSelectionBehavior(QAbstractItemView::SelectRows);
109 splitter_2->addWidget(widget: table);
110
111 vboxLayout->addWidget(splitter_2);
112
113 groupBox = new QGroupBox(Browser);
114 groupBox->setObjectName(QString::fromUtf8(str: "groupBox"));
115 QSizePolicy sizePolicy3(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
116 sizePolicy3.setHorizontalStretch(0);
117 sizePolicy3.setVerticalStretch(0);
118 sizePolicy3.setHeightForWidth(groupBox->sizePolicy().hasHeightForWidth());
119 groupBox->setSizePolicy(sizePolicy3);
120 groupBox->setMaximumSize(QSize(16777215, 180));
121 vboxLayout1 = new QVBoxLayout(groupBox);
122#ifndef Q_OS_MAC
123 vboxLayout1->setSpacing(6);
124#endif
125#ifndef Q_OS_MAC
126 vboxLayout1->setContentsMargins(left: 9, top: 9, right: 9, bottom: 9);
127#endif
128 vboxLayout1->setObjectName(QString::fromUtf8(str: "vboxLayout1"));
129 sqlEdit = new QTextEdit(groupBox);
130 sqlEdit->setObjectName(QString::fromUtf8(str: "sqlEdit"));
131 QSizePolicy sizePolicy4(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding);
132 sizePolicy4.setHorizontalStretch(0);
133 sizePolicy4.setVerticalStretch(0);
134 sizePolicy4.setHeightForWidth(sqlEdit->sizePolicy().hasHeightForWidth());
135 sqlEdit->setSizePolicy(sizePolicy4);
136 sqlEdit->setMinimumSize(QSize(0, 18));
137 sqlEdit->setBaseSize(QSize(0, 120));
138
139 vboxLayout1->addWidget(sqlEdit);
140
141 hboxLayout = new QHBoxLayout();
142#ifndef Q_OS_MAC
143 hboxLayout->setSpacing(6);
144#endif
145 hboxLayout->setContentsMargins(left: 1, top: 1, right: 1, bottom: 1);
146 hboxLayout->setObjectName(QString::fromUtf8(str: "hboxLayout"));
147 spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
148
149 hboxLayout->addItem(spacerItem);
150
151 clearButton = new QPushButton(groupBox);
152 clearButton->setObjectName(QString::fromUtf8(str: "clearButton"));
153
154 hboxLayout->addWidget(clearButton);
155
156 submitButton = new QPushButton(groupBox);
157 submitButton->setObjectName(QString::fromUtf8(str: "submitButton"));
158
159 hboxLayout->addWidget(submitButton);
160
161
162 vboxLayout1->addLayout(layout: hboxLayout);
163
164
165 vboxLayout->addWidget(groupBox);
166
167 QWidget::setTabOrder(sqlEdit, clearButton);
168 QWidget::setTabOrder(clearButton, submitButton);
169 QWidget::setTabOrder(submitButton, connectionWidget);
170 QWidget::setTabOrder(connectionWidget, table);
171
172 retranslateUi(Browser);
173
174 QMetaObject::connectSlotsByName(o: Browser);
175 } // setupUi
176
177 void retranslateUi(QWidget *Browser)
178 {
179 Browser->setWindowTitle(QCoreApplication::translate(context: "Browser", key: "Qt SQL Browser", disambiguation: nullptr));
180 insertRowAction->setText(QCoreApplication::translate(context: "Browser", key: "&Insert Row", disambiguation: nullptr));
181#if QT_CONFIG(statustip)
182 insertRowAction->setStatusTip(QCoreApplication::translate(context: "Browser", key: "Inserts a new Row", disambiguation: nullptr));
183#endif // QT_CONFIG(statustip)
184 deleteRowAction->setText(QCoreApplication::translate(context: "Browser", key: "&Delete Row", disambiguation: nullptr));
185#if QT_CONFIG(statustip)
186 deleteRowAction->setStatusTip(QCoreApplication::translate(context: "Browser", key: "Deletes the current Row", disambiguation: nullptr));
187#endif // QT_CONFIG(statustip)
188 fieldStrategyAction->setText(QCoreApplication::translate(context: "Browser", key: "Submit on &Field Change", disambiguation: nullptr));
189#if QT_CONFIG(tooltip)
190 fieldStrategyAction->setToolTip(QCoreApplication::translate(context: "Browser", key: "Commit on Field Change", disambiguation: nullptr));
191#endif // QT_CONFIG(tooltip)
192 rowStrategyAction->setText(QCoreApplication::translate(context: "Browser", key: "Submit on &Row Change", disambiguation: nullptr));
193#if QT_CONFIG(tooltip)
194 rowStrategyAction->setToolTip(QCoreApplication::translate(context: "Browser", key: "Commit on Row Change", disambiguation: nullptr));
195#endif // QT_CONFIG(tooltip)
196 manualStrategyAction->setText(QCoreApplication::translate(context: "Browser", key: "Submit &Manually", disambiguation: nullptr));
197#if QT_CONFIG(tooltip)
198 manualStrategyAction->setToolTip(QCoreApplication::translate(context: "Browser", key: "Commit Manually", disambiguation: nullptr));
199#endif // QT_CONFIG(tooltip)
200 submitAction->setText(QCoreApplication::translate(context: "Browser", key: "&Submit All", disambiguation: nullptr));
201#if QT_CONFIG(tooltip)
202 submitAction->setToolTip(QCoreApplication::translate(context: "Browser", key: "Submit Changes", disambiguation: nullptr));
203#endif // QT_CONFIG(tooltip)
204 revertAction->setText(QCoreApplication::translate(context: "Browser", key: "&Revert All", disambiguation: nullptr));
205#if QT_CONFIG(tooltip)
206 revertAction->setToolTip(QCoreApplication::translate(context: "Browser", key: "Revert", disambiguation: nullptr));
207#endif // QT_CONFIG(tooltip)
208 selectAction->setText(QCoreApplication::translate(context: "Browser", key: "S&elect", disambiguation: nullptr));
209#if QT_CONFIG(tooltip)
210 selectAction->setToolTip(QCoreApplication::translate(context: "Browser", key: "Refresh Data from Database", disambiguation: nullptr));
211#endif // QT_CONFIG(tooltip)
212 groupBox->setTitle(QCoreApplication::translate(context: "Browser", key: "SQL Query", disambiguation: nullptr));
213 clearButton->setText(QCoreApplication::translate(context: "Browser", key: "&Clear", disambiguation: nullptr));
214 submitButton->setText(QCoreApplication::translate(context: "Browser", key: "&Submit", disambiguation: nullptr));
215 } // retranslateUi
216
217};
218
219namespace Ui {
220 class Browser: public Ui_Browser {};
221} // namespace Ui
222
223QT_END_NAMESPACE
224
225#endif // UI_BROWSERWIDGET_H
226

source code of qtbase/examples/sql/sqlbrowser/.uic/ui_browserwidget.h