mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
DolphinQt: Rewrite cheat search GUI.
This commit is contained in:
51
Source/Core/DolphinQt/CheatSearchFactoryWidget.h
Normal file
51
Source/Core/DolphinQt/CheatSearchFactoryWidget.h
Normal file
@ -0,0 +1,51 @@
|
||||
// Copyright 2021 Dolphin Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
#include "Core/CheatSearch.h"
|
||||
|
||||
class QCheckBox;
|
||||
class QComboBox;
|
||||
class QLineEdit;
|
||||
class QPushButton;
|
||||
class QRadioButton;
|
||||
|
||||
class CheatSearchFactoryWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit CheatSearchFactoryWidget();
|
||||
~CheatSearchFactoryWidget() override;
|
||||
|
||||
signals:
|
||||
void NewSessionCreated(const Cheats::CheatSearchSessionBase& session);
|
||||
|
||||
private:
|
||||
void CreateWidgets();
|
||||
void ConnectWidgets();
|
||||
|
||||
void RefreshGui();
|
||||
|
||||
void OnAddressSpaceRadioChanged();
|
||||
void OnNewSearchClicked();
|
||||
|
||||
QRadioButton* m_standard_address_space;
|
||||
QRadioButton* m_custom_address_space;
|
||||
|
||||
QRadioButton* m_custom_virtual_address_space;
|
||||
QRadioButton* m_custom_physical_address_space;
|
||||
QRadioButton* m_custom_effective_address_space;
|
||||
|
||||
QLineEdit* m_custom_address_start;
|
||||
QLineEdit* m_custom_address_end;
|
||||
|
||||
QComboBox* m_data_type_dropdown;
|
||||
QCheckBox* m_data_type_aligned;
|
||||
|
||||
QPushButton* m_new_search;
|
||||
};
|
Reference in New Issue
Block a user