mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
before task parser
This commit is contained in:
@@ -42,6 +42,7 @@ public:
|
||||
DialogAuthorizationInstructor->resize(300, 140);
|
||||
QFont font;
|
||||
font.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font.setPointSize(10);
|
||||
DialogAuthorizationInstructor->setFont(font);
|
||||
gridLayout = new QGridLayout(DialogAuthorizationInstructor);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
@@ -51,11 +52,15 @@ public:
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
label = new QLabel(DialogAuthorizationInstructor);
|
||||
label->setObjectName(QString::fromUtf8("label"));
|
||||
QFont font1;
|
||||
font1.setPointSize(10);
|
||||
label->setFont(font1);
|
||||
|
||||
horizontalLayout->addWidget(label);
|
||||
|
||||
editLogin = new QLineEdit(DialogAuthorizationInstructor);
|
||||
editLogin->setObjectName(QString::fromUtf8("editLogin"));
|
||||
editLogin->setFont(font1);
|
||||
|
||||
horizontalLayout->addWidget(editLogin);
|
||||
|
||||
@@ -66,11 +71,13 @@ public:
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
label_2 = new QLabel(DialogAuthorizationInstructor);
|
||||
label_2->setObjectName(QString::fromUtf8("label_2"));
|
||||
label_2->setFont(font1);
|
||||
|
||||
horizontalLayout_2->addWidget(label_2);
|
||||
|
||||
editPassword = new QLineEdit(DialogAuthorizationInstructor);
|
||||
editPassword->setObjectName(QString::fromUtf8("editPassword"));
|
||||
editPassword->setFont(font1);
|
||||
|
||||
horizontalLayout_2->addWidget(editPassword);
|
||||
|
||||
@@ -79,6 +86,7 @@ public:
|
||||
|
||||
buttonBox = new QDialogButtonBox(DialogAuthorizationInstructor);
|
||||
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
|
||||
buttonBox->setFont(font1);
|
||||
buttonBox->setLocale(QLocale(QLocale::English, QLocale::UnitedStates));
|
||||
buttonBox->setOrientation(Qt::Horizontal);
|
||||
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
||||
|
||||
@@ -39,6 +39,7 @@ public:
|
||||
DialogEditGroup->resize(300, 96);
|
||||
QFont font;
|
||||
font.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font.setPointSize(10);
|
||||
DialogEditGroup->setFont(font);
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/icons/group.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
@@ -51,11 +52,15 @@ public:
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
label_2 = new QLabel(DialogEditGroup);
|
||||
label_2->setObjectName(QString::fromUtf8("label_2"));
|
||||
QFont font1;
|
||||
font1.setPointSize(10);
|
||||
label_2->setFont(font1);
|
||||
|
||||
horizontalLayout->addWidget(label_2);
|
||||
|
||||
editName = new QLineEdit(DialogEditGroup);
|
||||
editName->setObjectName(QString::fromUtf8("editName"));
|
||||
editName->setFont(font1);
|
||||
|
||||
horizontalLayout->addWidget(editName);
|
||||
|
||||
@@ -67,6 +72,7 @@ public:
|
||||
|
||||
buttonBox = new QDialogButtonBox(DialogEditGroup);
|
||||
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
|
||||
buttonBox->setFont(font1);
|
||||
buttonBox->setLocale(QLocale(QLocale::English, QLocale::UnitedStates));
|
||||
buttonBox->setOrientation(Qt::Horizontal);
|
||||
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
||||
|
||||
@@ -53,6 +53,7 @@ public:
|
||||
DialogEditInstructor->resize(300, 286);
|
||||
QFont font;
|
||||
font.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font.setPointSize(10);
|
||||
DialogEditInstructor->setFont(font);
|
||||
gridLayout = new QGridLayout(DialogEditInstructor);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
@@ -62,6 +63,9 @@ public:
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
label_2 = new QLabel(DialogEditInstructor);
|
||||
label_2->setObjectName(QString::fromUtf8("label_2"));
|
||||
QFont font1;
|
||||
font1.setPointSize(10);
|
||||
label_2->setFont(font1);
|
||||
|
||||
horizontalLayout->addWidget(label_2);
|
||||
|
||||
@@ -78,6 +82,7 @@ public:
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
label_3 = new QLabel(DialogEditInstructor);
|
||||
label_3->setObjectName(QString::fromUtf8("label_3"));
|
||||
label_3->setFont(font1);
|
||||
|
||||
horizontalLayout_2->addWidget(label_3);
|
||||
|
||||
@@ -93,6 +98,7 @@ public:
|
||||
horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
|
||||
label_4 = new QLabel(DialogEditInstructor);
|
||||
label_4->setObjectName(QString::fromUtf8("label_4"));
|
||||
label_4->setFont(font1);
|
||||
|
||||
horizontalLayout_3->addWidget(label_4);
|
||||
|
||||
@@ -109,6 +115,7 @@ public:
|
||||
checkIsAdmin = new QCheckBox(DialogEditInstructor);
|
||||
checkIsAdmin->setObjectName(QString::fromUtf8("checkIsAdmin"));
|
||||
checkIsAdmin->setEnabled(false);
|
||||
checkIsAdmin->setFont(font1);
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/icons/admin.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
icon.addFile(QString::fromUtf8(":/icons/admin.png"), QSize(), QIcon::Disabled, QIcon::Off);
|
||||
@@ -125,6 +132,7 @@ public:
|
||||
checkArchived = new QCheckBox(DialogEditInstructor);
|
||||
checkArchived->setObjectName(QString::fromUtf8("checkArchived"));
|
||||
checkArchived->setEnabled(false);
|
||||
checkArchived->setFont(font1);
|
||||
QIcon icon1;
|
||||
icon1.addFile(QString::fromUtf8(":/icons/archive.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
icon1.addFile(QString::fromUtf8(":/icons/archive.png"), QSize(), QIcon::Disabled, QIcon::Off);
|
||||
@@ -141,6 +149,7 @@ public:
|
||||
checkLoggedIn = new QCheckBox(DialogEditInstructor);
|
||||
checkLoggedIn->setObjectName(QString::fromUtf8("checkLoggedIn"));
|
||||
checkLoggedIn->setEnabled(false);
|
||||
checkLoggedIn->setFont(font1);
|
||||
QIcon icon2;
|
||||
icon2.addFile(QString::fromUtf8(":/icons/circleGreen.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
icon2.addFile(QString::fromUtf8(":/icons/circleGreen.png"), QSize(), QIcon::Disabled, QIcon::Off);
|
||||
@@ -157,6 +166,7 @@ public:
|
||||
|
||||
buttonBox = new QDialogButtonBox(DialogEditInstructor);
|
||||
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
|
||||
buttonBox->setFont(font1);
|
||||
buttonBox->setLocale(QLocale(QLocale::English, QLocale::UnitedStates));
|
||||
buttonBox->setOrientation(Qt::Horizontal);
|
||||
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
||||
|
||||
@@ -51,6 +51,7 @@ public:
|
||||
DialogEditTrainee->resize(300, 252);
|
||||
QFont font;
|
||||
font.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font.setPointSize(10);
|
||||
DialogEditTrainee->setFont(font);
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/icons/trainee.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
@@ -59,6 +60,9 @@ public:
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
buttonBox = new QDialogButtonBox(DialogEditTrainee);
|
||||
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
|
||||
QFont font1;
|
||||
font1.setPointSize(10);
|
||||
buttonBox->setFont(font1);
|
||||
buttonBox->setLocale(QLocale(QLocale::English, QLocale::UnitedStates));
|
||||
buttonBox->setOrientation(Qt::Horizontal);
|
||||
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
||||
@@ -71,11 +75,13 @@ public:
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
label_2 = new QLabel(DialogEditTrainee);
|
||||
label_2->setObjectName(QString::fromUtf8("label_2"));
|
||||
label_2->setFont(font1);
|
||||
|
||||
horizontalLayout->addWidget(label_2);
|
||||
|
||||
editName = new QLineEdit(DialogEditTrainee);
|
||||
editName->setObjectName(QString::fromUtf8("editName"));
|
||||
editName->setFont(font1);
|
||||
|
||||
horizontalLayout->addWidget(editName);
|
||||
|
||||
@@ -86,11 +92,13 @@ public:
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
label_3 = new QLabel(DialogEditTrainee);
|
||||
label_3->setObjectName(QString::fromUtf8("label_3"));
|
||||
label_3->setFont(font1);
|
||||
|
||||
horizontalLayout_2->addWidget(label_3);
|
||||
|
||||
editLogin = new QLineEdit(DialogEditTrainee);
|
||||
editLogin->setObjectName(QString::fromUtf8("editLogin"));
|
||||
editLogin->setFont(font1);
|
||||
|
||||
horizontalLayout_2->addWidget(editLogin);
|
||||
|
||||
@@ -101,11 +109,13 @@ public:
|
||||
horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
|
||||
label_4 = new QLabel(DialogEditTrainee);
|
||||
label_4->setObjectName(QString::fromUtf8("label_4"));
|
||||
label_4->setFont(font1);
|
||||
|
||||
horizontalLayout_3->addWidget(label_4);
|
||||
|
||||
editPassword = new QLineEdit(DialogEditTrainee);
|
||||
editPassword->setObjectName(QString::fromUtf8("editPassword"));
|
||||
editPassword->setFont(font1);
|
||||
|
||||
horizontalLayout_3->addWidget(editPassword);
|
||||
|
||||
@@ -117,6 +127,7 @@ public:
|
||||
checkArchived = new QCheckBox(DialogEditTrainee);
|
||||
checkArchived->setObjectName(QString::fromUtf8("checkArchived"));
|
||||
checkArchived->setEnabled(false);
|
||||
checkArchived->setFont(font1);
|
||||
QIcon icon1;
|
||||
icon1.addFile(QString::fromUtf8(":/icons/archive.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
icon1.addFile(QString::fromUtf8(":/icons/archive.png"), QSize(), QIcon::Disabled, QIcon::Off);
|
||||
@@ -133,6 +144,7 @@ public:
|
||||
checkLoggedIn = new QCheckBox(DialogEditTrainee);
|
||||
checkLoggedIn->setObjectName(QString::fromUtf8("checkLoggedIn"));
|
||||
checkLoggedIn->setEnabled(false);
|
||||
checkLoggedIn->setFont(font1);
|
||||
QIcon icon2;
|
||||
icon2.addFile(QString::fromUtf8(":/icons/circleGreen.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
icon2.addFile(QString::fromUtf8(":/icons/circleGreen.png"), QSize(), QIcon::Disabled, QIcon::Off);
|
||||
|
||||
@@ -15,10 +15,8 @@
|
||||
#include <QtWidgets/QDialog>
|
||||
#include <QtWidgets/QGridLayout>
|
||||
#include <QtWidgets/QHBoxLayout>
|
||||
#include <QtWidgets/QHeaderView>
|
||||
#include <QtWidgets/QSpacerItem>
|
||||
#include <QtWidgets/QToolButton>
|
||||
#include <QtWidgets/QTreeWidget>
|
||||
#include <QtWidgets/QVBoxLayout>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
@@ -32,7 +30,6 @@ public:
|
||||
QGridLayout *gridLayout;
|
||||
QHBoxLayout *horizontalLayout_1;
|
||||
QVBoxLayout *verticalLayout_1;
|
||||
QTreeWidget *treeWidget;
|
||||
QWidget *widget_2;
|
||||
QGridLayout *gridLayout_3;
|
||||
QVBoxLayout *verticalLayout_2;
|
||||
@@ -48,12 +45,14 @@ public:
|
||||
if (EditorInstructors->objectName().isEmpty())
|
||||
EditorInstructors->setObjectName(QString::fromUtf8("EditorInstructors"));
|
||||
EditorInstructors->resize(1300, 800);
|
||||
QFont font;
|
||||
font.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font.setPointSize(10);
|
||||
EditorInstructors->setFont(font);
|
||||
gridLayout_2 = new QGridLayout(EditorInstructors);
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
widget = new QWidget(EditorInstructors);
|
||||
widget->setObjectName(QString::fromUtf8("widget"));
|
||||
QFont font;
|
||||
font.setPointSize(12);
|
||||
widget->setFont(font);
|
||||
widget->setStyleSheet(QString::fromUtf8("background-color: rgb(240, 240, 240);"));
|
||||
gridLayout = new QGridLayout(widget);
|
||||
@@ -62,20 +61,6 @@ public:
|
||||
horizontalLayout_1->setObjectName(QString::fromUtf8("horizontalLayout_1"));
|
||||
verticalLayout_1 = new QVBoxLayout();
|
||||
verticalLayout_1->setObjectName(QString::fromUtf8("verticalLayout_1"));
|
||||
treeWidget = new QTreeWidget(widget);
|
||||
QTreeWidgetItem *__qtreewidgetitem = new QTreeWidgetItem();
|
||||
__qtreewidgetitem->setText(0, QString::fromUtf8("1"));
|
||||
treeWidget->setHeaderItem(__qtreewidgetitem);
|
||||
treeWidget->setObjectName(QString::fromUtf8("treeWidget"));
|
||||
QFont font1;
|
||||
font1.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font1.setPointSize(10);
|
||||
treeWidget->setFont(font1);
|
||||
treeWidget->setIconSize(QSize(20, 20));
|
||||
treeWidget->setColumnCount(1);
|
||||
|
||||
verticalLayout_1->addWidget(treeWidget);
|
||||
|
||||
|
||||
horizontalLayout_1->addLayout(verticalLayout_1);
|
||||
|
||||
@@ -87,9 +72,7 @@ public:
|
||||
sizePolicy.setHeightForWidth(widget_2->sizePolicy().hasHeightForWidth());
|
||||
widget_2->setSizePolicy(sizePolicy);
|
||||
widget_2->setMinimumSize(QSize(127, 0));
|
||||
QFont font2;
|
||||
font2.setFamily(QString::fromUtf8("Tahoma"));
|
||||
widget_2->setFont(font2);
|
||||
widget_2->setFont(font);
|
||||
widget_2->setStyleSheet(QString::fromUtf8("background-color: rgb(180, 180, 180);"));
|
||||
gridLayout_3 = new QGridLayout(widget_2);
|
||||
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
|
||||
@@ -103,7 +86,7 @@ public:
|
||||
sizePolicy1.setHeightForWidth(btnNewInstructor->sizePolicy().hasHeightForWidth());
|
||||
btnNewInstructor->setSizePolicy(sizePolicy1);
|
||||
btnNewInstructor->setMinimumSize(QSize(160, 55));
|
||||
btnNewInstructor->setFont(font1);
|
||||
btnNewInstructor->setFont(font);
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/icons/addInstructor.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
btnNewInstructor->setIcon(icon);
|
||||
@@ -117,7 +100,7 @@ public:
|
||||
sizePolicy1.setHeightForWidth(btnDeleteInstructor->sizePolicy().hasHeightForWidth());
|
||||
btnDeleteInstructor->setSizePolicy(sizePolicy1);
|
||||
btnDeleteInstructor->setMinimumSize(QSize(160, 55));
|
||||
btnDeleteInstructor->setFont(font1);
|
||||
btnDeleteInstructor->setFont(font);
|
||||
QIcon icon1;
|
||||
icon1.addFile(QString::fromUtf8(":/icons/deleteInstructor.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
btnDeleteInstructor->setIcon(icon1);
|
||||
@@ -129,7 +112,7 @@ public:
|
||||
btnToOrFromArchive = new QToolButton(widget_2);
|
||||
btnToOrFromArchive->setObjectName(QString::fromUtf8("btnToOrFromArchive"));
|
||||
btnToOrFromArchive->setMinimumSize(QSize(160, 55));
|
||||
btnToOrFromArchive->setFont(font1);
|
||||
btnToOrFromArchive->setFont(font);
|
||||
QIcon icon2;
|
||||
icon2.addFile(QString::fromUtf8(":/icons/instructorArchive.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
btnToOrFromArchive->setIcon(icon2);
|
||||
@@ -143,7 +126,7 @@ public:
|
||||
sizePolicy1.setHeightForWidth(btnEdit->sizePolicy().hasHeightForWidth());
|
||||
btnEdit->setSizePolicy(sizePolicy1);
|
||||
btnEdit->setMinimumSize(QSize(160, 55));
|
||||
btnEdit->setFont(font1);
|
||||
btnEdit->setFont(font);
|
||||
QIcon icon3;
|
||||
icon3.addFile(QString::fromUtf8(":/icons/edit.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
btnEdit->setIcon(icon3);
|
||||
@@ -161,7 +144,7 @@ public:
|
||||
sizePolicy1.setHeightForWidth(btnArchive->sizePolicy().hasHeightForWidth());
|
||||
btnArchive->setSizePolicy(sizePolicy1);
|
||||
btnArchive->setMinimumSize(QSize(160, 55));
|
||||
btnArchive->setFont(font1);
|
||||
btnArchive->setFont(font);
|
||||
QIcon icon4;
|
||||
icon4.addFile(QString::fromUtf8(":/icons/archive.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
btnArchive->setIcon(icon4);
|
||||
|
||||
@@ -15,10 +15,8 @@
|
||||
#include <QtWidgets/QDialog>
|
||||
#include <QtWidgets/QGridLayout>
|
||||
#include <QtWidgets/QHBoxLayout>
|
||||
#include <QtWidgets/QHeaderView>
|
||||
#include <QtWidgets/QSpacerItem>
|
||||
#include <QtWidgets/QToolButton>
|
||||
#include <QtWidgets/QTreeWidget>
|
||||
#include <QtWidgets/QVBoxLayout>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
@@ -32,7 +30,6 @@ public:
|
||||
QGridLayout *gridLayout;
|
||||
QHBoxLayout *horizontalLayout_1;
|
||||
QVBoxLayout *verticalLayout_1;
|
||||
QTreeWidget *treeWidget;
|
||||
QWidget *widget_2;
|
||||
QGridLayout *gridLayout_3;
|
||||
QVBoxLayout *verticalLayout_2;
|
||||
@@ -58,9 +55,7 @@ public:
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
widget = new QWidget(EditorTrainees);
|
||||
widget->setObjectName(QString::fromUtf8("widget"));
|
||||
QFont font1;
|
||||
font1.setPointSize(12);
|
||||
widget->setFont(font1);
|
||||
widget->setFont(font);
|
||||
widget->setStyleSheet(QString::fromUtf8("background-color: rgb(240, 240, 240);"));
|
||||
gridLayout = new QGridLayout(widget);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
@@ -68,17 +63,6 @@ public:
|
||||
horizontalLayout_1->setObjectName(QString::fromUtf8("horizontalLayout_1"));
|
||||
verticalLayout_1 = new QVBoxLayout();
|
||||
verticalLayout_1->setObjectName(QString::fromUtf8("verticalLayout_1"));
|
||||
treeWidget = new QTreeWidget(widget);
|
||||
QTreeWidgetItem *__qtreewidgetitem = new QTreeWidgetItem();
|
||||
__qtreewidgetitem->setText(0, QString::fromUtf8("1"));
|
||||
treeWidget->setHeaderItem(__qtreewidgetitem);
|
||||
treeWidget->setObjectName(QString::fromUtf8("treeWidget"));
|
||||
treeWidget->setFont(font);
|
||||
treeWidget->setIconSize(QSize(20, 20));
|
||||
treeWidget->setColumnCount(1);
|
||||
|
||||
verticalLayout_1->addWidget(treeWidget);
|
||||
|
||||
|
||||
horizontalLayout_1->addLayout(verticalLayout_1);
|
||||
|
||||
@@ -90,9 +74,7 @@ public:
|
||||
sizePolicy.setHeightForWidth(widget_2->sizePolicy().hasHeightForWidth());
|
||||
widget_2->setSizePolicy(sizePolicy);
|
||||
widget_2->setMinimumSize(QSize(130, 0));
|
||||
QFont font2;
|
||||
font2.setFamily(QString::fromUtf8("Tahoma"));
|
||||
widget_2->setFont(font2);
|
||||
widget_2->setFont(font);
|
||||
widget_2->setStyleSheet(QString::fromUtf8("background-color: rgb(180, 180, 180);"));
|
||||
gridLayout_3 = new QGridLayout(widget_2);
|
||||
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
|
||||
|
||||
@@ -10,10 +10,14 @@
|
||||
#define UI_INSTRUCTORSANDTRAINEESWIDGET_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QIcon>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QGridLayout>
|
||||
#include <QtWidgets/QGroupBox>
|
||||
#include <QtWidgets/QHBoxLayout>
|
||||
#include <QtWidgets/QLabel>
|
||||
#include <QtWidgets/QSpacerItem>
|
||||
#include <QtWidgets/QToolButton>
|
||||
#include <QtWidgets/QVBoxLayout>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
@@ -27,27 +31,84 @@ public:
|
||||
QGroupBox *groupBox;
|
||||
QGridLayout *gridLayout_2;
|
||||
QVBoxLayout *verticalLayout;
|
||||
QVBoxLayout *verticalLayout_2;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QToolButton *btnConnectionToDB;
|
||||
QToolButton *btnAuthorizationInstructor;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QLabel *label;
|
||||
QLabel *lblLoggedInInstructor;
|
||||
|
||||
void setupUi(QWidget *InstructorsAndTraineesWidget)
|
||||
{
|
||||
if (InstructorsAndTraineesWidget->objectName().isEmpty())
|
||||
InstructorsAndTraineesWidget->setObjectName(QString::fromUtf8("InstructorsAndTraineesWidget"));
|
||||
InstructorsAndTraineesWidget->resize(400, 300);
|
||||
InstructorsAndTraineesWidget->resize(1000, 800);
|
||||
QFont font;
|
||||
font.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font.setPointSize(10);
|
||||
InstructorsAndTraineesWidget->setFont(font);
|
||||
gridLayout = new QGridLayout(InstructorsAndTraineesWidget);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
horizontalLayout = new QHBoxLayout();
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
groupBox = new QGroupBox(InstructorsAndTraineesWidget);
|
||||
groupBox->setObjectName(QString::fromUtf8("groupBox"));
|
||||
QFont font;
|
||||
font.setPointSize(10);
|
||||
groupBox->setFont(font);
|
||||
gridLayout_2 = new QGridLayout(groupBox);
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
verticalLayout = new QVBoxLayout();
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
|
||||
gridLayout_2->addLayout(verticalLayout, 0, 0, 1, 1);
|
||||
gridLayout_2->addLayout(verticalLayout, 1, 0, 1, 1);
|
||||
|
||||
verticalLayout_2 = new QVBoxLayout();
|
||||
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
btnConnectionToDB = new QToolButton(groupBox);
|
||||
btnConnectionToDB->setObjectName(QString::fromUtf8("btnConnectionToDB"));
|
||||
btnConnectionToDB->setMinimumSize(QSize(130, 58));
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/icons/connectDB.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
btnConnectionToDB->setIcon(icon);
|
||||
btnConnectionToDB->setIconSize(QSize(32, 32));
|
||||
btnConnectionToDB->setCheckable(true);
|
||||
btnConnectionToDB->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
||||
|
||||
horizontalLayout_2->addWidget(btnConnectionToDB);
|
||||
|
||||
btnAuthorizationInstructor = new QToolButton(groupBox);
|
||||
btnAuthorizationInstructor->setObjectName(QString::fromUtf8("btnAuthorizationInstructor"));
|
||||
btnAuthorizationInstructor->setMinimumSize(QSize(140, 58));
|
||||
QIcon icon1;
|
||||
icon1.addFile(QString::fromUtf8(":/icons/login-user.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
btnAuthorizationInstructor->setIcon(icon1);
|
||||
btnAuthorizationInstructor->setIconSize(QSize(32, 32));
|
||||
btnAuthorizationInstructor->setCheckable(true);
|
||||
btnAuthorizationInstructor->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
||||
|
||||
horizontalLayout_2->addWidget(btnAuthorizationInstructor);
|
||||
|
||||
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout_2->addItem(horizontalSpacer);
|
||||
|
||||
label = new QLabel(groupBox);
|
||||
label->setObjectName(QString::fromUtf8("label"));
|
||||
|
||||
horizontalLayout_2->addWidget(label);
|
||||
|
||||
lblLoggedInInstructor = new QLabel(groupBox);
|
||||
lblLoggedInInstructor->setObjectName(QString::fromUtf8("lblLoggedInInstructor"));
|
||||
|
||||
horizontalLayout_2->addWidget(lblLoggedInInstructor);
|
||||
|
||||
|
||||
verticalLayout_2->addLayout(horizontalLayout_2);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(verticalLayout_2, 0, 0, 1, 1);
|
||||
|
||||
|
||||
horizontalLayout->addWidget(groupBox);
|
||||
@@ -65,6 +126,10 @@ public:
|
||||
{
|
||||
InstructorsAndTraineesWidget->setWindowTitle(QCoreApplication::translate("InstructorsAndTraineesWidget", "Form", nullptr));
|
||||
groupBox->setTitle(QCoreApplication::translate("InstructorsAndTraineesWidget", "Database LMS", nullptr));
|
||||
btnConnectionToDB->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Connection to DB", nullptr));
|
||||
btnAuthorizationInstructor->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Authorization Instructor", nullptr));
|
||||
label->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "Logged in instructor:", nullptr));
|
||||
lblLoggedInInstructor->setText(QCoreApplication::translate("InstructorsAndTraineesWidget", "none", nullptr));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
@@ -15,10 +15,8 @@
|
||||
#include <QtWidgets/QGridLayout>
|
||||
#include <QtWidgets/QGroupBox>
|
||||
#include <QtWidgets/QHBoxLayout>
|
||||
#include <QtWidgets/QHeaderView>
|
||||
#include <QtWidgets/QSpacerItem>
|
||||
#include <QtWidgets/QToolButton>
|
||||
#include <QtWidgets/QTreeWidget>
|
||||
#include <QtWidgets/QVBoxLayout>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
@@ -35,7 +33,6 @@ public:
|
||||
QVBoxLayout *verticalLayout;
|
||||
QToolButton *btnEditorInstructors;
|
||||
QSpacerItem *verticalSpacer;
|
||||
QTreeWidget *treeWidget;
|
||||
|
||||
void setupUi(QWidget *ViewerInstructors)
|
||||
{
|
||||
@@ -44,6 +41,7 @@ public:
|
||||
ViewerInstructors->resize(400, 300);
|
||||
QFont font;
|
||||
font.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font.setPointSize(10);
|
||||
ViewerInstructors->setFont(font);
|
||||
gridLayout = new QGridLayout(ViewerInstructors);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
@@ -62,6 +60,7 @@ public:
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
btnEditorInstructors = new QToolButton(groupBox);
|
||||
btnEditorInstructors->setObjectName(QString::fromUtf8("btnEditorInstructors"));
|
||||
btnEditorInstructors->setEnabled(false);
|
||||
btnEditorInstructors->setMinimumSize(QSize(130, 58));
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/icons/DB-instructors.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
@@ -78,19 +77,6 @@ public:
|
||||
|
||||
horizontalLayout_2->addLayout(verticalLayout);
|
||||
|
||||
treeWidget = new QTreeWidget(groupBox);
|
||||
QTreeWidgetItem *__qtreewidgetitem = new QTreeWidgetItem();
|
||||
__qtreewidgetitem->setText(0, QString::fromUtf8("1"));
|
||||
treeWidget->setHeaderItem(__qtreewidgetitem);
|
||||
treeWidget->setObjectName(QString::fromUtf8("treeWidget"));
|
||||
QFont font2;
|
||||
font2.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font2.setPointSize(10);
|
||||
treeWidget->setFont(font2);
|
||||
treeWidget->setIconSize(QSize(20, 20));
|
||||
|
||||
horizontalLayout_2->addWidget(treeWidget);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(horizontalLayout_2, 0, 0, 1, 1);
|
||||
|
||||
|
||||
@@ -15,10 +15,8 @@
|
||||
#include <QtWidgets/QGridLayout>
|
||||
#include <QtWidgets/QGroupBox>
|
||||
#include <QtWidgets/QHBoxLayout>
|
||||
#include <QtWidgets/QHeaderView>
|
||||
#include <QtWidgets/QSpacerItem>
|
||||
#include <QtWidgets/QToolButton>
|
||||
#include <QtWidgets/QTreeWidget>
|
||||
#include <QtWidgets/QVBoxLayout>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
@@ -35,7 +33,6 @@ public:
|
||||
QVBoxLayout *verticalLayout;
|
||||
QToolButton *btnEditorTrainees;
|
||||
QSpacerItem *verticalSpacer;
|
||||
QTreeWidget *treeWidget;
|
||||
|
||||
void setupUi(QWidget *ViewerTrainees)
|
||||
{
|
||||
@@ -44,6 +41,7 @@ public:
|
||||
ViewerTrainees->resize(400, 300);
|
||||
QFont font;
|
||||
font.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font.setPointSize(10);
|
||||
ViewerTrainees->setFont(font);
|
||||
gridLayout = new QGridLayout(ViewerTrainees);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
@@ -62,6 +60,7 @@ public:
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
btnEditorTrainees = new QToolButton(groupBox);
|
||||
btnEditorTrainees->setObjectName(QString::fromUtf8("btnEditorTrainees"));
|
||||
btnEditorTrainees->setEnabled(false);
|
||||
btnEditorTrainees->setMinimumSize(QSize(130, 58));
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/icons/DB-trainees.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
@@ -78,20 +77,6 @@ public:
|
||||
|
||||
horizontalLayout_2->addLayout(verticalLayout);
|
||||
|
||||
treeWidget = new QTreeWidget(groupBox);
|
||||
QTreeWidgetItem *__qtreewidgetitem = new QTreeWidgetItem();
|
||||
__qtreewidgetitem->setText(0, QString::fromUtf8("1"));
|
||||
treeWidget->setHeaderItem(__qtreewidgetitem);
|
||||
treeWidget->setObjectName(QString::fromUtf8("treeWidget"));
|
||||
QFont font2;
|
||||
font2.setFamily(QString::fromUtf8("Tahoma"));
|
||||
font2.setPointSize(10);
|
||||
treeWidget->setFont(font2);
|
||||
treeWidget->setIconSize(QSize(20, 20));
|
||||
treeWidget->setColumnCount(1);
|
||||
|
||||
horizontalLayout_2->addWidget(treeWidget);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(horizontalLayout_2, 0, 0, 1, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user