51 lines
907 B
C++
Executable File
51 lines
907 B
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
|
|
#include <QtCore/QString>
|
|
|
|
#include "plan_editor_export.h"
|
|
|
|
|
|
namespace PlanEditor
|
|
{
|
|
class PLANEDITOR_EXPORT Dialog : public LtsWidgets::LtsDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit Dialog( QWidget *parent
|
|
, LtsWidgets::ButtonCombination buttonCombination = LtsWidgets::ButtonCombination::CloseOnly
|
|
, bool closeable = true)
|
|
: LtsWidgets::LtsDialog(parent, buttonCombination, closeable), m_titleString(tr("Undefined Title"))
|
|
{
|
|
setUnchangeable();
|
|
}
|
|
|
|
virtual ~Dialog() = default;
|
|
|
|
void setTitle( const QString &title ) { m_titleString = title; }
|
|
|
|
void retranslate() override;
|
|
|
|
signals:
|
|
|
|
void signalAboutToClose();
|
|
|
|
protected:
|
|
|
|
void aboutToClose() override;
|
|
|
|
private:
|
|
|
|
QString m_titleString;
|
|
|
|
};
|
|
|
|
}
|