Files
QtGameMaker/dialogs/backgroundpropertiesdialog.h
T

35 lines
657 B
C++
Raw Normal View History

2022-01-09 06:42:13 +01:00
#pragma once
#include <QDialog>
#include <QString>
#include <memory>
namespace Ui { class BackgroundPropertiesDialog; }
struct Background;
class BackgroundPropertiesDialog : public QDialog
{
Q_OBJECT
public:
explicit BackgroundPropertiesDialog(Background &background, QWidget *parent = nullptr);
~BackgroundPropertiesDialog();
void accept() override;
void reject() override;
private slots:
void loadBackground();
void saveBackground();
void editBackground();
void changed();
private:
const std::unique_ptr<Ui::BackgroundPropertiesDialog> m_ui;
Background &m_background;
bool m_unsavedChanges{};
};