summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/CheatSearchFactoryWidget.h
blob: 12e590da15d0c92f1e2c7af3cff4748038b928fe (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright 2021 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#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;
};