CheatSearchFactoryWidget.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Copyright 2021 Dolphin Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <vector>
  5. #include <QWidget>
  6. #include "Core/CheatSearch.h"
  7. class QCheckBox;
  8. class QComboBox;
  9. class QLineEdit;
  10. class QPushButton;
  11. class QRadioButton;
  12. class CheatSearchFactoryWidget : public QWidget
  13. {
  14. Q_OBJECT
  15. public:
  16. explicit CheatSearchFactoryWidget();
  17. ~CheatSearchFactoryWidget() override;
  18. signals:
  19. void NewSessionCreated(const Cheats::CheatSearchSessionBase& session);
  20. private:
  21. void CreateWidgets();
  22. void ConnectWidgets();
  23. void RefreshGui();
  24. void OnAddressSpaceRadioChanged();
  25. void OnNewSearchClicked();
  26. QRadioButton* m_standard_address_space;
  27. QRadioButton* m_custom_address_space;
  28. QRadioButton* m_custom_virtual_address_space;
  29. QRadioButton* m_custom_physical_address_space;
  30. QRadioButton* m_custom_effective_address_space;
  31. QLineEdit* m_custom_address_start;
  32. QLineEdit* m_custom_address_end;
  33. QComboBox* m_data_type_dropdown;
  34. QCheckBox* m_data_type_aligned;
  35. QPushButton* m_new_search;
  36. };