43 lines
739 B
C++
Executable File
43 lines
739 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* AreaEffectSimulation - ChargeEdit Dlg
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Patric Karwat, SLSE, 2019-05-17
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LtsWidgets/lts_frameless_dialog.h>
|
|
#include <LtsWidgets/lts_dialog_button_box.h>
|
|
|
|
namespace Ui
|
|
{
|
|
class ChargeEdit;
|
|
}
|
|
|
|
namespace AreaEffectSimulation
|
|
{
|
|
|
|
class ChargeEdit : public LtsWidgets::LtsFramelessDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ChargeEdit(int chargeId, const QString &charge, int oldStock, QWidget *parent = nullptr);
|
|
~ChargeEdit();
|
|
|
|
private slots:
|
|
void onSendStock();
|
|
|
|
signals:
|
|
void newStock(int chargeId, int newStock);
|
|
private:
|
|
int m_chargeId;
|
|
int m_oldStock;
|
|
LtsWidgets::LtsDialogButtonBox *m_buttonBox;
|
|
Ui::ChargeEdit *m_ui;
|
|
|
|
};
|
|
}
|