Files
RRJServer/LibInstructorsAndTrainees/instructors/viewerinstructors.h
2026-01-16 14:31:13 +03:00

52 lines
1.1 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef INSTRUCTORSWIDGET_H
#define INSTRUCTORSWIDGET_H
#include "instructorsview.h"
#include "dialogredactorinstructors.h"
namespace Ui {
class ViewerInstructors;
}
//Виджет только для просмотра БД Инструкторов
class ViewerInstructors : public InstructorsView
{
Q_OBJECT
public:
explicit ViewerInstructors(ConnectorToServer* connectorToServer, QWidget *parent = nullptr);
~ViewerInstructors();
public:
void setAuthComplited(bool authComplited);
void deactivate();
protected:
void changeEvent(QEvent * event) override;
public slots:
void slot_receiveMessage(ClientMessage clientMessage);
public Q_SLOTS:
void on_btnEditorInstructors_clicked();
void on_treeWidgetCurrentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
Q_SIGNALS:
//сигнал о выборе инструктора
void signal_instructorSelected(int id_instructor);
private:
void updateButtons() override;
private:
DialogRedactorInstructors* dlgRedactor;
private:
Ui::ViewerInstructors *ui;
};
#endif // INSTRUCTORSWIDGET_H