66 lines
1.2 KiB
C++
Executable File
66 lines
1.2 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* PlanChooser Payload UI
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*
|
|
* Created by Mike Wille, SLSE, 2016-11-02
|
|
*/
|
|
#pragma once
|
|
|
|
#include <Plugins/InfrastructureManagement/ism_data_plugin_interface.h>
|
|
#include <InfrastructureManagement/logger.h>
|
|
|
|
#include <QDialog>
|
|
|
|
namespace Ui
|
|
{
|
|
class PlanChooser;
|
|
}
|
|
|
|
namespace LtsSession
|
|
{
|
|
class LtsSession;
|
|
}
|
|
|
|
namespace InfrastructureManagement
|
|
{
|
|
class PlanDialogModel;
|
|
|
|
class PlanChooser : public QDialog // TODO: move me directly to Gui ?
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit PlanChooser(const std::shared_ptr<InfrastructureManagement::Interface::Dtc> &dtc, QWidget *parent = nullptr);
|
|
~PlanChooser();
|
|
|
|
bool init(LtsSession::LtsSession *session);
|
|
void selectPlan(int planId);
|
|
|
|
private:
|
|
Ui::PlanChooser *m_ui{nullptr};
|
|
PlanDialogModel *m_model{nullptr};
|
|
LtsSession::LtsSession *m_session{nullptr};
|
|
std::shared_ptr<InfrastructureManagement::Interface::Dtc> m_dtc{nullptr};
|
|
bool m_close{false};
|
|
bool m_selected{false};
|
|
LOGGER_T m_logger;
|
|
|
|
protected:
|
|
void closeEvent(QCloseEvent *event) override;
|
|
|
|
private Q_SLOTS:
|
|
void slotPlanSelected();
|
|
void enaDisa();
|
|
void reject() override;
|
|
|
|
Q_SIGNALS:
|
|
void signalNewPlan();
|
|
void signalSelectPlan(int planId);
|
|
void signalQuit();
|
|
|
|
};
|
|
|
|
}
|