mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
57 lines
1.4 KiB
C++
57 lines
1.4 KiB
C++
#ifndef TRAINEESWIDGET_H
|
||
#define TRAINEESWIDGET_H
|
||
|
||
#include <QWidget>
|
||
#include <QObject>
|
||
#include <QEvent>
|
||
#include "instructorsAndTrainees_global.h"
|
||
#include "databasetrainees.h"
|
||
#include "traineesview.h"
|
||
|
||
namespace Ui {
|
||
class ViewerTrainees;
|
||
}
|
||
|
||
//Виджет только для просмотра БД Обучаемых
|
||
|
||
class INSTRUCTORSANDTRAINEES_EXPORT ViewerTrainees : /*public QWidget,*/ public TraineesView
|
||
{
|
||
Q_OBJECT
|
||
|
||
public:
|
||
explicit ViewerTrainees(DataBaseTrainees* db, QWidget *parent = nullptr);
|
||
~ViewerTrainees();
|
||
|
||
protected:
|
||
// Метод получения событий
|
||
// В нём будет производиться проверка события смены перевода приложения
|
||
void changeEvent(QEvent * event) override;
|
||
|
||
public Q_SLOTS:
|
||
void slot_LanguageChanged(QString language);
|
||
|
||
public:
|
||
void updateTrainees()
|
||
{
|
||
loadTraineesFromDB();
|
||
}
|
||
|
||
void setFilterTraineeLoggedIn( bool enabled );
|
||
|
||
private Q_SLOTS:
|
||
void on_treeWidget_itemClicked(QTreeWidgetItem *item, int column);
|
||
|
||
public Q_SLOTS:
|
||
//слот обработки сигнала об изменении вкладки диалога в мессенджере
|
||
void slot_tabMessengerChanged(QString login);
|
||
|
||
Q_SIGNALS:
|
||
//сигнал о выборе обучаемого
|
||
void signal_traineeSelected(QString login);
|
||
|
||
private:
|
||
Ui::ViewerTrainees *ui;
|
||
};
|
||
|
||
#endif // TRAINEESWIDGET_H
|