Files

75 lines
1.8 KiB
C++
Raw Permalink 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 TRAINEESWIDGET_H
#define TRAINEESWIDGET_H
#include "traineesview.h"
#include "ammtaskswidget.h"
#include "fimtaskswidget.h"
#include "messangercontroller.h"
#include "dialogcardtrainee.h"
#include "dialogredactortrainees.h"
namespace Ui {
class ViewerTrainees;
}
//Виджет только для просмотра БД Обучаемых
class ViewerTrainees : public TraineesView
{
Q_OBJECT
public:
explicit ViewerTrainees(ConnectorToServer* connectorToServer, MessangerController* messangerController, QWidget *parent = nullptr);
~ViewerTrainees();
public:
void setAuthComplited(bool authComplited);
void deactivate();
AMMtasksWidget* getAmmTasksWidgetCommon(){return ammTasksWidgetCommon;};
FIMtasksWidget* getFimTasksWidgetCommon(){return fimTasksWidgetCommon;};
protected:
void changeEvent(QEvent * event) override;
public slots:
void slot_receiveMessage(ClientMessage clientMessage);
void slot_checkTryBlockResult(bool result, QString type);
public Q_SLOTS:
void on_btnEditorTrainees_clicked();
void on_btnPersonalCard_clicked();
private Q_SLOTS:
void on_itemDoubleClicked(QTreeWidgetItem *item, int column);
void on_treeWidgetCurrentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
Q_SIGNALS:
//сигнал о выборе обучаемого
void signal_traineeSelected(int id_trainee);
void signal_needShowWait(bool flNeed);
private:
void updateButtons() override;
void dialog_EditorTrainees();
private:
AMMtasksWidget* ammTasksWidgetCommon;
FIMtasksWidget* fimTasksWidgetCommon;
MessangerController* messangerController;
DialogRedactorTrainees* dlgRedactor;
DialogCardTrainee* dlgCardTrainee;
bool flTryEditorTrainees;
private:
Ui::ViewerTrainees *ui;
};
#endif // TRAINEESWIDGET_H