2011-04-27 10:05:43 +00:00
|
|
|
/********************************************************************************
|
|
|
|
** Form generated from reading UI file 'browserwidget.ui'
|
|
|
|
**
|
2012-12-13 12:48:18 +00:00
|
|
|
** Created by: Qt User Interface Compiler version 5.0.0
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
|
|
********************************************************************************/
|
|
|
|
|
|
|
|
#ifndef BROWSERWIDGET_H
|
|
|
|
#define BROWSERWIDGET_H
|
|
|
|
|
|
|
|
#include <QtCore/QVariant>
|
2011-09-22 13:09:37 +00:00
|
|
|
#include <QtWidgets/QAction>
|
|
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <QtWidgets/QButtonGroup>
|
|
|
|
#include <QtWidgets/QGroupBox>
|
|
|
|
#include <QtWidgets/QHBoxLayout>
|
|
|
|
#include <QtWidgets/QHeaderView>
|
|
|
|
#include <QtWidgets/QPushButton>
|
|
|
|
#include <QtWidgets/QSpacerItem>
|
|
|
|
#include <QtWidgets/QSplitter>
|
|
|
|
#include <QtWidgets/QTableView>
|
|
|
|
#include <QtWidgets/QTextEdit>
|
|
|
|
#include <QtWidgets/QVBoxLayout>
|
|
|
|
#include <QtWidgets/QWidget>
|
2011-04-27 10:05:43 +00:00
|
|
|
#include "connectionwidget.h"
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
class Ui_Browser
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
QAction *insertRowAction;
|
|
|
|
QAction *deleteRowAction;
|
|
|
|
QVBoxLayout *vboxLayout;
|
|
|
|
QSplitter *splitter_2;
|
|
|
|
ConnectionWidget *connectionWidget;
|
|
|
|
QTableView *table;
|
|
|
|
QGroupBox *groupBox;
|
|
|
|
QVBoxLayout *vboxLayout1;
|
|
|
|
QTextEdit *sqlEdit;
|
|
|
|
QHBoxLayout *hboxLayout;
|
|
|
|
QSpacerItem *spacerItem;
|
|
|
|
QPushButton *clearButton;
|
|
|
|
QPushButton *submitButton;
|
|
|
|
|
|
|
|
void setupUi(QWidget *Browser)
|
|
|
|
{
|
|
|
|
if (Browser->objectName().isEmpty())
|
2011-12-11 15:55:01 +00:00
|
|
|
Browser->setObjectName(QStringLiteral("Browser"));
|
2011-04-27 10:05:43 +00:00
|
|
|
Browser->resize(765, 515);
|
|
|
|
insertRowAction = new QAction(Browser);
|
2011-12-11 15:55:01 +00:00
|
|
|
insertRowAction->setObjectName(QStringLiteral("insertRowAction"));
|
2011-04-27 10:05:43 +00:00
|
|
|
insertRowAction->setEnabled(false);
|
|
|
|
deleteRowAction = new QAction(Browser);
|
2011-12-11 15:55:01 +00:00
|
|
|
deleteRowAction->setObjectName(QStringLiteral("deleteRowAction"));
|
2011-04-27 10:05:43 +00:00
|
|
|
deleteRowAction->setEnabled(false);
|
|
|
|
vboxLayout = new QVBoxLayout(Browser);
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
vboxLayout->setSpacing(6);
|
|
|
|
#endif
|
|
|
|
vboxLayout->setContentsMargins(8, 8, 8, 8);
|
2011-12-11 15:55:01 +00:00
|
|
|
vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
splitter_2 = new QSplitter(Browser);
|
2011-12-11 15:55:01 +00:00
|
|
|
splitter_2->setObjectName(QStringLiteral("splitter_2"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(7));
|
|
|
|
sizePolicy.setHorizontalStretch(0);
|
|
|
|
sizePolicy.setVerticalStretch(0);
|
|
|
|
sizePolicy.setHeightForWidth(splitter_2->sizePolicy().hasHeightForWidth());
|
|
|
|
splitter_2->setSizePolicy(sizePolicy);
|
|
|
|
splitter_2->setOrientation(Qt::Horizontal);
|
|
|
|
connectionWidget = new ConnectionWidget(splitter_2);
|
2011-12-11 15:55:01 +00:00
|
|
|
connectionWidget->setObjectName(QStringLiteral("connectionWidget"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(13), static_cast<QSizePolicy::Policy>(7));
|
|
|
|
sizePolicy1.setHorizontalStretch(1);
|
|
|
|
sizePolicy1.setVerticalStretch(0);
|
|
|
|
sizePolicy1.setHeightForWidth(connectionWidget->sizePolicy().hasHeightForWidth());
|
|
|
|
connectionWidget->setSizePolicy(sizePolicy1);
|
|
|
|
splitter_2->addWidget(connectionWidget);
|
|
|
|
table = new QTableView(splitter_2);
|
2011-12-11 15:55:01 +00:00
|
|
|
table->setObjectName(QStringLiteral("table"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(7));
|
|
|
|
sizePolicy2.setHorizontalStretch(2);
|
|
|
|
sizePolicy2.setVerticalStretch(0);
|
|
|
|
sizePolicy2.setHeightForWidth(table->sizePolicy().hasHeightForWidth());
|
|
|
|
table->setSizePolicy(sizePolicy2);
|
|
|
|
table->setContextMenuPolicy(Qt::ActionsContextMenu);
|
|
|
|
table->setSelectionBehavior(QAbstractItemView::SelectRows);
|
|
|
|
splitter_2->addWidget(table);
|
|
|
|
|
|
|
|
vboxLayout->addWidget(splitter_2);
|
|
|
|
|
|
|
|
groupBox = new QGroupBox(Browser);
|
2011-12-11 15:55:01 +00:00
|
|
|
groupBox->setObjectName(QStringLiteral("groupBox"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(5), static_cast<QSizePolicy::Policy>(3));
|
|
|
|
sizePolicy3.setHorizontalStretch(0);
|
|
|
|
sizePolicy3.setVerticalStretch(0);
|
|
|
|
sizePolicy3.setHeightForWidth(groupBox->sizePolicy().hasHeightForWidth());
|
|
|
|
groupBox->setSizePolicy(sizePolicy3);
|
|
|
|
groupBox->setMaximumSize(QSize(16777215, 180));
|
|
|
|
vboxLayout1 = new QVBoxLayout(groupBox);
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
vboxLayout1->setSpacing(6);
|
|
|
|
#endif
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
vboxLayout1->setContentsMargins(9, 9, 9, 9);
|
|
|
|
#endif
|
2011-12-11 15:55:01 +00:00
|
|
|
vboxLayout1->setObjectName(QStringLiteral("vboxLayout1"));
|
2011-04-27 10:05:43 +00:00
|
|
|
sqlEdit = new QTextEdit(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
sqlEdit->setObjectName(QStringLiteral("sqlEdit"));
|
2011-04-27 10:05:43 +00:00
|
|
|
QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(3));
|
|
|
|
sizePolicy4.setHorizontalStretch(0);
|
|
|
|
sizePolicy4.setVerticalStretch(0);
|
|
|
|
sizePolicy4.setHeightForWidth(sqlEdit->sizePolicy().hasHeightForWidth());
|
|
|
|
sqlEdit->setSizePolicy(sizePolicy4);
|
|
|
|
sqlEdit->setMinimumSize(QSize(0, 18));
|
|
|
|
sqlEdit->setBaseSize(QSize(0, 120));
|
|
|
|
|
|
|
|
vboxLayout1->addWidget(sqlEdit);
|
|
|
|
|
|
|
|
hboxLayout = new QHBoxLayout();
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
hboxLayout->setSpacing(6);
|
|
|
|
#endif
|
|
|
|
hboxLayout->setContentsMargins(1, 1, 1, 1);
|
2011-12-11 15:55:01 +00:00
|
|
|
hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
|
|
|
|
|
|
|
hboxLayout->addItem(spacerItem);
|
|
|
|
|
|
|
|
clearButton = new QPushButton(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
clearButton->setObjectName(QStringLiteral("clearButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(clearButton);
|
|
|
|
|
|
|
|
submitButton = new QPushButton(groupBox);
|
2011-12-11 15:55:01 +00:00
|
|
|
submitButton->setObjectName(QStringLiteral("submitButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
hboxLayout->addWidget(submitButton);
|
|
|
|
|
|
|
|
|
|
|
|
vboxLayout1->addLayout(hboxLayout);
|
|
|
|
|
|
|
|
|
|
|
|
vboxLayout->addWidget(groupBox);
|
|
|
|
|
|
|
|
QWidget::setTabOrder(sqlEdit, clearButton);
|
|
|
|
QWidget::setTabOrder(clearButton, submitButton);
|
|
|
|
QWidget::setTabOrder(submitButton, connectionWidget);
|
|
|
|
QWidget::setTabOrder(connectionWidget, table);
|
|
|
|
|
|
|
|
retranslateUi(Browser);
|
|
|
|
|
|
|
|
QMetaObject::connectSlotsByName(Browser);
|
|
|
|
} // setupUi
|
|
|
|
|
|
|
|
void retranslateUi(QWidget *Browser)
|
|
|
|
{
|
2016-08-17 03:52:14 +00:00
|
|
|
Browser->setWindowTitle(QApplication::translate("Browser", "Qt SQL Browser", Q_NULLPTR));
|
|
|
|
insertRowAction->setText(QApplication::translate("Browser", "&Insert Row", Q_NULLPTR));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_STATUSTIP
|
2016-08-17 03:52:14 +00:00
|
|
|
insertRowAction->setStatusTip(QApplication::translate("Browser", "Inserts a new Row", Q_NULLPTR));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_STATUSTIP
|
2016-08-17 03:52:14 +00:00
|
|
|
deleteRowAction->setText(QApplication::translate("Browser", "&Delete Row", Q_NULLPTR));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_STATUSTIP
|
2016-08-17 03:52:14 +00:00
|
|
|
deleteRowAction->setStatusTip(QApplication::translate("Browser", "Deletes the current Row", Q_NULLPTR));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_STATUSTIP
|
2016-08-17 03:52:14 +00:00
|
|
|
groupBox->setTitle(QApplication::translate("Browser", "SQL Query", Q_NULLPTR));
|
|
|
|
clearButton->setText(QApplication::translate("Browser", "&Clear", Q_NULLPTR));
|
|
|
|
submitButton->setText(QApplication::translate("Browser", "&Submit", Q_NULLPTR));
|
2011-04-27 10:05:43 +00:00
|
|
|
} // retranslateUi
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class Browser: public Ui_Browser {};
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
#endif // BROWSERWIDGET_H
|