41 lines
840 B
C++
41 lines
840 B
C++
#ifndef PROJECTSETTINGSEDITOR_H
|
|
#define PROJECTSETTINGSEDITOR_H
|
|
|
|
#include <QMainWindow>
|
|
#include "project.h"
|
|
|
|
class NoScrollComboBox;
|
|
class QAbstractButton;
|
|
|
|
|
|
namespace Ui {
|
|
class ProjectSettingsEditor;
|
|
}
|
|
|
|
class ProjectSettingsEditor : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ProjectSettingsEditor(QWidget *parent = nullptr, Project *project = nullptr);
|
|
~ProjectSettingsEditor();
|
|
|
|
signals:
|
|
void saved();
|
|
|
|
private:
|
|
Ui::ProjectSettingsEditor *ui;
|
|
Project *project;
|
|
NoScrollComboBox *combo_defaultPrimaryTileset;
|
|
NoScrollComboBox *combo_defaultSecondaryTileset;
|
|
NoScrollComboBox *combo_baseGameVersion;
|
|
NoScrollComboBox *combo_attributesSize;
|
|
|
|
void initUi();
|
|
void saveFields();
|
|
|
|
private slots:
|
|
void dialogButtonClicked(QAbstractButton *button);
|
|
};
|
|
|
|
#endif // PROJECTSETTINGSEDITOR_H
|