2019-03-21 23:50:50 +00:00
|
|
|
#ifndef NEWTILESETDIALOG_H
|
|
|
|
#define NEWTILESETDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2024-12-04 03:27:29 +00:00
|
|
|
#include <QAbstractButton>
|
|
|
|
|
|
|
|
class Project;
|
|
|
|
class Tileset;
|
2019-03-21 23:50:50 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class NewTilesetDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class NewTilesetDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit NewTilesetDialog(Project *project, QWidget *parent = nullptr);
|
|
|
|
~NewTilesetDialog();
|
|
|
|
|
2024-12-04 03:27:29 +00:00
|
|
|
virtual void accept() override;
|
2019-03-21 23:50:50 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::NewTilesetDialog *ui;
|
|
|
|
Project *project = nullptr;
|
2024-12-04 03:27:29 +00:00
|
|
|
const QString symbolPrefix;
|
|
|
|
|
|
|
|
bool validateName(bool allowEmpty = false);
|
|
|
|
void onFriendlyNameChanged(const QString &friendlyName);
|
|
|
|
void dialogButtonClicked(QAbstractButton *button);
|
2019-03-21 23:50:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // NEWTILESETDIALOG_H
|