Add basic prefences window with text editor command field

This commit is contained in:
BigBahss
2020-11-16 07:39:42 -05:00
parent 0a15dfbf4c
commit ea9cfa47e5
7 changed files with 177 additions and 1 deletions

View File

@@ -21,6 +21,7 @@
#include "filterchildrenproxymodel.h"
#include "newmappopup.h"
#include "newtilesetdialog.h"
#include "preferenceeditor.h"
namespace Ui {
class MainWindow;
@@ -226,6 +227,7 @@ private slots:
void on_pushButton_ConfigureEncountersJSON_clicked();
void on_actionRegion_Map_Editor_triggered();
void on_actionEdit_Preferences_triggered();
private:
Ui::MainWindow *ui;
@@ -234,6 +236,7 @@ private:
MapImageExporter *mapImageExporter = nullptr;
FilterChildrenProxyModel *mapListProxyModel;
NewMapPopup *newmapprompt = nullptr;
PreferenceEditor *preferenceEditor = nullptr;
QStandardItemModel *mapListModel;
QList<QStandardItem*> *mapGroupItemsList;
QMap<QString, QModelIndex> mapListIndexes;

View File

@@ -0,0 +1,31 @@
#ifndef PREFERENCES_H
#define PREFERENCES_H
#include <QMainWindow>
class QAbstractButton;
namespace Ui {
class PreferenceEditor;
}
class PreferenceEditor : public QMainWindow
{
Q_OBJECT
public:
explicit PreferenceEditor(QWidget *parent = nullptr);
~PreferenceEditor();
private:
Ui::PreferenceEditor *ui;
void populateFields();
void saveFields();
private slots:
void dialogButtonClicked(QAbstractButton *button);
};
#endif // PREFERENCES_H