summaryrefslogtreecommitdiffhomepage
path: root/gui/mapping-window.hpp
blob: cb589efcdf80173345c82e21916eb37c7bc798e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include <QWidget>
#include "logic/mappings.hpp"
#include "ui_mapping-window.h"

class MapWidget final : public QWidget
{
    Q_OBJECT
public:
    MapWidget(Mappings& m);
    void reload();
private:
    Ui::mapping_window ui;
    Mappings& m;
    main_settings s;

    void closeEvent(QCloseEvent*) override;

    void save_dialog();
    void invalidate_dialog();

private slots:
    void doOK();
    void doCancel();
};