47 lines
735 B
C++
Executable File
47 lines
735 B
C++
Executable File
/*
|
|
* @RDE_HEADER@
|
|
* <short description>
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Malte Schröder, SLSE, 2016-06-08
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <nglwidgets/ngldialog.h>
|
|
|
|
namespace Ui
|
|
{
|
|
class LicenceEdit;
|
|
}
|
|
namespace LtsLicence
|
|
{
|
|
struct Licence;
|
|
}
|
|
|
|
class LicenceEdit : public NGLDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit LicenceEdit(QWidget *parent = nullptr);
|
|
~LicenceEdit();
|
|
|
|
void setLicence(const LtsLicence::Licence &licence);
|
|
void clear();
|
|
|
|
signals:
|
|
void newLicence(const LtsLicence::Licence &li);
|
|
|
|
private slots:
|
|
void onOk();
|
|
void onCancel();
|
|
|
|
void enableIgnoreCount(int checkState);
|
|
void enableIgnoreExpiration(int checkState);
|
|
void onNameChanged(const QString &name);
|
|
private:
|
|
Ui::LicenceEdit *m_ui;
|
|
};
|