mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
43 lines
1.0 KiB
C++
43 lines
1.0 KiB
C++
#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();
|
|
|
|
void closeEvent(QCloseEvent *event) override;
|
|
|
|
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_treeWidgetCurrentItemChanged(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
|