dolphin/Source/Core/DolphinWX/Src/GeckoCodeDiag.h

53 lines
861 B
C
Raw Normal View History

#ifndef __GECKOCODEDIAG_h__
#define __GECKOCODEDIAG_h__
#include "GeckoCode.h"
#include "GeckoCodeConfig.h"
#include "wx/wx.h"
namespace Gecko
{
class CodeConfigPanel : public wxPanel
{
public:
CodeConfigPanel(wxWindow* const parent);
void LoadCodes(const IniFile& inifile, const std::string& gameid = "");
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();
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;
};
}
#endif