2022-12-04 11:03:45 +00:00
|
|
|
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
|
|
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
|
2020-10-19 15:14:49 +00:00
|
|
|
#pragma once
|
|
|
|
#include "core/cheats.h"
|
|
|
|
#include "ui_cheatcodeeditordialog.h"
|
|
|
|
|
|
|
|
class CheatCodeEditorDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-10-21 11:30:23 +00:00
|
|
|
CheatCodeEditorDialog(const QStringList& group_names, CheatCode* code, QWidget* parent);
|
2020-10-19 15:14:49 +00:00
|
|
|
~CheatCodeEditorDialog();
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void saveClicked();
|
|
|
|
void cancelClicked();
|
|
|
|
|
|
|
|
private:
|
2020-10-21 11:30:23 +00:00
|
|
|
void setupAdditionalUi(const QStringList& group_names);
|
2020-10-19 15:14:49 +00:00
|
|
|
void fillUi();
|
|
|
|
void connectUi();
|
|
|
|
|
|
|
|
CheatCode* m_code;
|
|
|
|
|
|
|
|
Ui::CheatCodeEditorDialog m_ui;
|
|
|
|
};
|