Переделано под один мега-проект LMS с общим CMakeLists.txt

This commit is contained in:
krivoshein
2025-01-15 12:34:56 +03:00
parent 3064818931
commit 1c93b1f94d
219 changed files with 68 additions and 51 deletions

View File

@@ -0,0 +1,40 @@
#ifndef DIALOGINSTRUCTORS_H
#define DIALOGINSTRUCTORS_H
#include <QDialog>
#include <QTreeWidget>
#include "instructorsview.h"
namespace Ui {
class EditorInstructors;
}
//Виджет для редактирования БД Инструкторов
class EditorInstructors : public InstructorsView
{
Q_OBJECT
public:
explicit EditorInstructors(ConnectorToServer* connectorToServer, bool adminMode, QWidget *parent = nullptr);
~EditorInstructors();
private Q_SLOTS:
void on_btnNewInstructor_clicked();
void on_btnDeleteInstructor_clicked();
void on_btnToOrFromArchive_clicked();
void on_btnEdit_clicked();
void on_btnArchive_clicked();
void on_treeWidget_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
private:
//void setCurrentInstructor(int id);
bool verifyInstructor(Instructor instructor);
bool editInstructor(Instructor instructor, Instructor* instructor_edit);
private:
Ui::EditorInstructors *ui;
};
#endif // DIALOGINSTRUCTORS_H