#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