porymap/include/ui/newtilesetdialog.h

35 lines
663 B
C
Raw Normal View History

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);
2024-12-14 21:25:11 +00:00
void onNameChanged(const QString &name);
2024-12-04 03:27:29 +00:00
void dialogButtonClicked(QAbstractButton *button);
2019-03-21 23:50:50 +00:00
};
#endif // NEWTILESETDIALOG_H