mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-13 20:36:19 -05:00
Add project settings window
This commit is contained in:
41
include/ui/projectsettingseditor.h
Normal file
41
include/ui/projectsettingseditor.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user