mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
DolphinWX: Split cheat window components into their own source files
This commit is contained in:
59
Source/Core/DolphinWX/Cheats/GeckoCodeDiag.h
Normal file
59
Source/Core/DolphinWX/Cheats/GeckoCodeDiag.h
Normal file
@ -0,0 +1,59 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <wx/panel.h>
|
||||
|
||||
#include "Core/GeckoCode.h"
|
||||
|
||||
class IniFile;
|
||||
class wxButton;
|
||||
class wxCheckListBox;
|
||||
class wxCommandEvent;
|
||||
class wxListBox;
|
||||
class wxStaticText;
|
||||
class wxTextCtrl;
|
||||
class wxWindow;
|
||||
|
||||
namespace Gecko
|
||||
{
|
||||
|
||||
|
||||
class CodeConfigPanel : public wxPanel
|
||||
{
|
||||
public:
|
||||
CodeConfigPanel(wxWindow* const parent);
|
||||
|
||||
|
||||
void LoadCodes(const IniFile& globalIni, const IniFile& localIni, const std::string& gameid = "", bool checkRunning = false);
|
||||
const std::vector<GeckoCode>& GetCodes() const { return m_gcodes; }
|
||||
|
||||
protected:
|
||||
void UpdateInfoBox(wxCommandEvent&);
|
||||
void ToggleCode(wxCommandEvent& evt);
|
||||
void DownloadCodes(wxCommandEvent&);
|
||||
//void ApplyChanges(wxCommandEvent&);
|
||||
|
||||
void UpdateCodeList(bool checkRunning = false);
|
||||
|
||||
private:
|
||||
std::vector<GeckoCode> m_gcodes;
|
||||
|
||||
std::string m_gameid;
|
||||
|
||||
// wxwidgets stuff
|
||||
wxCheckListBox* m_listbox_gcodes;
|
||||
struct
|
||||
{
|
||||
wxStaticText* label_name, *label_notes, *label_creator;
|
||||
wxTextCtrl* textctrl_notes;
|
||||
wxListBox* listbox_codes;
|
||||
} m_infobox;
|
||||
wxButton* btn_download;
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user