PSQL 30.10.2024

This commit is contained in:
krivoshein
2024-10-30 15:33:26 +03:00
commit 024cd38bd6
256 changed files with 31332 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
#include <QHBoxLayout>
#include "mainwindow.h"
#include "./ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
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());
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();
}
MainWindow::~MainWindow()
{
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();
}