Permalink
Browse files

Merge pull request #7245 from lioncash/internal

Qt/CheatsManager: Move concealable types into the cpp file
  • Loading branch information...
spycrab committed Jul 11, 2018
2 parents f170009 + 43bc365 commit d81b63f4039f338fbbcd0464101f84d399cbc9ec
Showing with 37 additions and 33 deletions.
  1. +31 −0 Source/Core/DolphinQt/CheatsManager.cpp
  2. +6 −33 Source/Core/DolphinQt/CheatsManager.h
@@ -40,6 +40,35 @@ constexpr u32 MAX_RESULTS = 50;
constexpr int INDEX_ROLE = Qt::UserRole;
constexpr int COLUMN_ROLE = Qt::UserRole + 1;
enum class CompareType : int
{
Equal = 0,
NotEqual = 1,
Less = 2,
LessEqual = 3,
More = 4,
MoreEqual = 5
};
enum class DataType : int
{
Byte = 0,
Short = 1,
Int = 2,
Float = 3,
Double = 4,
String = 5
};
struct Result
{
u32 address;
DataType type;
QString name;
bool locked = false;
u32 locked_value;
};
CheatsManager::CheatsManager(QWidget* parent) : QDialog(parent)
{
setWindowTitle(tr("Cheats Manager"));
@@ -56,6 +85,8 @@ CheatsManager::CheatsManager(QWidget* parent) : QDialog(parent)
Update();
}
CheatsManager::~CheatsManager() = default;
void CheatsManager::OnStateChanged(Core::State state)
{
if (state != Core::State::Running && state != Core::State::Paused)
@@ -15,59 +15,32 @@
class ARCodeWidget;
class QComboBox;
class QDialogButtonBox;
class QLabel;
class QLineEdit;
class QPushButton;
class QRadioButton;
class QSplitter;
class QTabWidget;
class QTableWidget;
class QTableWidgetItem;
class QLabel;
namespace UICommon
{
class GameFile;
}
struct Result;
namespace Core
{
enum class State;
}
enum class CompareType : int
{
Equal = 0,
NotEqual = 1,
Less = 2,
LessEqual = 3,
More = 4,
MoreEqual = 5
};
enum class DataType : int
{
Byte = 0,
Short = 1,
Int = 2,
Float = 3,
Double = 4,
String = 5
};
struct Result
namespace UICommon
{
u32 address;
DataType type;
QString name;
bool locked = false;
u32 locked_value;
};
class GameFile;
}
class CheatsManager : public QDialog
{
Q_OBJECT
public:
explicit CheatsManager(QWidget* parent = nullptr);
~CheatsManager();
private:
QWidget* CreateCheatSearch();

0 comments on commit d81b63f

Please sign in to comment.