mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-08 08:55:37 -05:00
Redesign new tileset dialog
This commit is contained in:
@@ -39,7 +39,6 @@ private:
|
||||
|
||||
void refresh();
|
||||
void saveSettings();
|
||||
bool isExistingLayout() const;
|
||||
|
||||
private slots:
|
||||
void dialogButtonClicked(QAbstractButton *button);
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
#define NEWTILESETDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "project.h"
|
||||
#include <QAbstractButton>
|
||||
|
||||
class Project;
|
||||
class Tileset;
|
||||
|
||||
namespace Ui {
|
||||
class NewTilesetDialog;
|
||||
@@ -15,20 +18,17 @@ class NewTilesetDialog : public QDialog
|
||||
public:
|
||||
explicit NewTilesetDialog(Project *project, QWidget *parent = nullptr);
|
||||
~NewTilesetDialog();
|
||||
QString path;
|
||||
QString fullSymbolName;
|
||||
QString friendlyName;
|
||||
bool isSecondary;
|
||||
bool checkerboardFill;
|
||||
|
||||
private slots:
|
||||
void NameOrSecondaryChanged();
|
||||
void SecondaryChanged();
|
||||
void FillChanged();
|
||||
virtual void accept() override;
|
||||
|
||||
private:
|
||||
Ui::NewTilesetDialog *ui;
|
||||
Project *project = nullptr;
|
||||
const QString symbolPrefix;
|
||||
|
||||
bool validateName(bool allowEmpty = false);
|
||||
void onFriendlyNameChanged(const QString &friendlyName);
|
||||
void dialogButtonClicked(QAbstractButton *button);
|
||||
};
|
||||
|
||||
#endif // NEWTILESETDIALOG_H
|
||||
|
||||
Reference in New Issue
Block a user