62 lines
1.7 KiB
C++
Executable File
62 lines
1.7 KiB
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <ExerciseManagement/exm_ftc.h>
|
|
#include <ExerciseManagement/exm_dtc.h>
|
|
#include <ExerciseManagement/logger.h>
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
#include <LtsUtils/LtsUtilsGui/LtsUtilsGuiDds/request_helper.h>
|
|
#include <LtsSession/lts_session.h>
|
|
#include <FileManagement/flm_dtc.h>
|
|
#include <FileManagement/flm_ftc.h>
|
|
|
|
namespace Ui
|
|
{
|
|
class ExerciseManagementDialog;
|
|
}
|
|
|
|
namespace ExerciseManagement
|
|
{
|
|
class ExerciseManagementDialogModel;
|
|
|
|
|
|
|
|
class ExerciseManagementDialog : public LtsWidgets::LtsDialog
|
|
, protected ExerciseManagement::Interface::Ftc::ExerciseRemoveReplyHandler
|
|
, protected FileManagement::Interface::Ftc::FolderRemoveReplyHandler
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ExerciseManagementDialog(const QString &menuGroup, QWidget *parent = nullptr);
|
|
~ExerciseManagementDialog();
|
|
|
|
bool init(LtsSession::LtsSessionDataDds *session);
|
|
|
|
private slots:
|
|
void enaDisa();
|
|
void onAddExercise();
|
|
void onEditExercise();
|
|
void onRemoveExercise();
|
|
|
|
private:
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
void retranslate() override;
|
|
void onExerciseRemoveReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); }
|
|
void onFolderRemoveReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); }
|
|
void tableColumnOrganiserSetting() override;
|
|
|
|
ExerciseManagementDialogModel *m_model;
|
|
Ui::ExerciseManagementDialog *m_ui;
|
|
LtsSession::LtsSessionDataDds *m_session;
|
|
std::shared_ptr<ExerciseManagement::Interface::Ftc> m_ftc;
|
|
std::shared_ptr<FileManagement::Interface::Dtc> m_flmDtc;
|
|
std::shared_ptr<FileManagement::Interface::Ftc> m_flmFtc;
|
|
QString m_menuGroup;
|
|
LtsUtils::RequestHelper *m_requestHelper;
|
|
};
|
|
}
|