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