Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+65
@@ -0,0 +1,65 @@
|
||||
/**
|
||||
* @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();
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user