1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
/********************************************************************************
** Form generated from reading UI file 'bookwindow.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef BOOKWINDOW_H
#define BOOKWINDOW_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QTableView>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_BookWindow
{
public:
QWidget *centralWidget;
QVBoxLayout *vboxLayout;
QGroupBox *groupBox;
QVBoxLayout *vboxLayout1;
QTableView *bookTable;
QGroupBox *groupBox_2;
QFormLayout *formLayout;
QLabel *label_5;
QLineEdit *titleEdit;
QLabel *label_2_2_2_2;
QComboBox *authorEdit;
QLabel *label_3;
QComboBox *genreEdit;
QLabel *label_4;
QSpinBox *yearEdit;
QLabel *label;
QSpinBox *ratingEdit;
void setupUi(QMainWindow *BookWindow)
{
if (BookWindow->objectName().isEmpty())
BookWindow->setObjectName("BookWindow");
BookWindow->resize(601, 420);
centralWidget = new QWidget(BookWindow);
centralWidget->setObjectName("centralWidget");
vboxLayout = new QVBoxLayout(centralWidget);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout->setContentsMargins(9, 9, 9, 9);
#endif
vboxLayout->setObjectName("vboxLayout");
groupBox = new QGroupBox(centralWidget);
groupBox->setObjectName("groupBox");
vboxLayout1 = new QVBoxLayout(groupBox);
#ifndef Q_OS_MAC
vboxLayout1->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout1->setContentsMargins(9, 9, 9, 9);
#endif
vboxLayout1->setObjectName("vboxLayout1");
bookTable = new QTableView(groupBox);
bookTable->setObjectName("bookTable");
bookTable->setSelectionBehavior(QAbstractItemView::SelectRows);
vboxLayout1->addWidget(bookTable);
groupBox_2 = new QGroupBox(groupBox);
groupBox_2->setObjectName("groupBox_2");
formLayout = new QFormLayout(groupBox_2);
formLayout->setObjectName("formLayout");
label_5 = new QLabel(groupBox_2);
label_5->setObjectName("label_5");
formLayout->setWidget(0, QFormLayout::LabelRole, label_5);
titleEdit = new QLineEdit(groupBox_2);
titleEdit->setObjectName("titleEdit");
titleEdit->setEnabled(true);
formLayout->setWidget(0, QFormLayout::FieldRole, titleEdit);
label_2_2_2_2 = new QLabel(groupBox_2);
label_2_2_2_2->setObjectName("label_2_2_2_2");
formLayout->setWidget(1, QFormLayout::LabelRole, label_2_2_2_2);
authorEdit = new QComboBox(groupBox_2);
authorEdit->setObjectName("authorEdit");
authorEdit->setEnabled(true);
formLayout->setWidget(1, QFormLayout::FieldRole, authorEdit);
label_3 = new QLabel(groupBox_2);
label_3->setObjectName("label_3");
formLayout->setWidget(2, QFormLayout::LabelRole, label_3);
genreEdit = new QComboBox(groupBox_2);
genreEdit->setObjectName("genreEdit");
genreEdit->setEnabled(true);
formLayout->setWidget(2, QFormLayout::FieldRole, genreEdit);
label_4 = new QLabel(groupBox_2);
label_4->setObjectName("label_4");
formLayout->setWidget(3, QFormLayout::LabelRole, label_4);
yearEdit = new QSpinBox(groupBox_2);
yearEdit->setObjectName("yearEdit");
yearEdit->setEnabled(true);
yearEdit->setMaximum(2100);
yearEdit->setMinimum(-1000);
formLayout->setWidget(3, QFormLayout::FieldRole, yearEdit);
label = new QLabel(groupBox_2);
label->setObjectName("label");
formLayout->setWidget(4, QFormLayout::LabelRole, label);
ratingEdit = new QSpinBox(groupBox_2);
ratingEdit->setObjectName("ratingEdit");
ratingEdit->setMaximum(5);
formLayout->setWidget(4, QFormLayout::FieldRole, ratingEdit);
vboxLayout1->addWidget(groupBox_2);
vboxLayout->addWidget(groupBox);
BookWindow->setCentralWidget(centralWidget);
QWidget::setTabOrder(bookTable, titleEdit);
QWidget::setTabOrder(titleEdit, authorEdit);
QWidget::setTabOrder(authorEdit, genreEdit);
QWidget::setTabOrder(genreEdit, yearEdit);
retranslateUi(BookWindow);
QMetaObject::connectSlotsByName(BookWindow);
} // setupUi
void retranslateUi(QMainWindow *BookWindow)
{
BookWindow->setWindowTitle(QCoreApplication::translate("BookWindow", "Books", nullptr));
groupBox->setTitle(QCoreApplication::translate("BookWindow", "Books", nullptr));
groupBox_2->setTitle(QCoreApplication::translate("BookWindow", "Details", nullptr));
label_5->setText(QCoreApplication::translate("BookWindow", "<b>Title:</b>", nullptr));
label_2_2_2_2->setText(QCoreApplication::translate("BookWindow", "<b>Author: </b>", nullptr));
label_3->setText(QCoreApplication::translate("BookWindow", "<b>Genre:</b>", nullptr));
label_4->setText(QCoreApplication::translate("BookWindow", "<b>Year:</b>", nullptr));
yearEdit->setPrefix(QString());
label->setText(QCoreApplication::translate("BookWindow", "<b>Rating:</b>", nullptr));
} // retranslateUi
};
namespace Ui {
class BookWindow: public Ui_BookWindow {};
} // namespace Ui
QT_END_NAMESPACE
#endif // BOOKWINDOW_H
|