PSQL 01.11.2024

This commit is contained in:
krivoshein
2024-11-01 11:45:13 +03:00
parent 024cd38bd6
commit 9422c5e257
274 changed files with 3223 additions and 3102 deletions

View File

@@ -1,4 +1,5 @@
#include <QHBoxLayout>
#include <QMessageBox>
#include "mainwindow.h"
#include "./ui_mainwindow.h"
@@ -10,37 +11,16 @@ MainWindow::MainWindow(QWidget *parent)
{
ui->setupUi(this);
QString appDirPath = QCoreApplication::applicationDirPath();
//QMessageBox::information(this, tr("appFilePath"), appDirPath);
m_instructorsAndTrainees = new InstructorsAndTrainees(appDirPath);
m_tasksWidget = new TasksWidget(m_instructorsAndTrainees->getDataBaseTrainees());
m_viewerTrainees = new ViewerTrainees(m_instructorsAndTrainees->getDataBaseTrainees());
m_viewerInstructors = new ViewerInstructors(m_instructorsAndTrainees->getDataBaseInstructors());
m_instructorsAndTraineesWidget = new InstructorsAndTraineesWidget(this);
ui->horizontalLayout->addWidget(m_instructorsAndTraineesWidget);
ui->verticalLayout_2->addWidget(m_viewerTrainees);
ui->verticalLayout_2->addWidget(m_viewerInstructors);
ui->verticalLayout_2->addWidget(m_tasksWidget);
m_tasksWidget->setMaximumHeight(200);
m_viewerInstructors->setMinimumSize(800, 300);
m_viewerTrainees->setMinimumSize(800, 800);
this->showMaximized();
this->move(0, 0);
this->showNormal();
//this->showMaximized();
}
MainWindow::~MainWindow()
{
delete m_instructorsAndTraineesWidget;
delete ui;
}
void MainWindow::on_btnListTrainees_clicked()
{
m_instructorsAndTrainees->EditTrainees(this);
m_viewerTrainees->updateTrainees();
}
void MainWindow::on_btnListInstructors_clicked()
{
m_instructorsAndTrainees->EditInstructors(this);
m_viewerInstructors->updateInstructors();
}