Files
RRJServer/DBXML/InstructorsAndTrainees/trainees/viewertrainees.h
2024-10-30 15:33:26 +03:00

57 lines
1.4 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 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