lsnes/ui/tools/cheat-editor.hpp
2013-05-03 17:47:34 +03:00

36 lines
796 B
C++
Executable file

struct CheatEditor : Window {
VerticalLayout layout;
ListView cheatList;
HorizontalLayout codeLayout;
Label codeLabel;
LineEdit codeEdit;
HorizontalLayout descLayout;
Label descLabel;
LineEdit descEdit;
HorizontalLayout controlLayout;
Button findButton;
Widget spacer;
Button clearAllButton;
Button clearButton;
void synchronize();
void updateUI();
void updateInterface();
void updateCode();
void updateDesc();
void clearAll();
void clearSelected();
void reset();
bool load(const string &filename);
bool save(const string &filename);
bool addCode(const string &code, const string &description);
CheatEditor();
private:
enum : unsigned { Code = 0, Desc = 1 };
string cheatText[128][2];
};
extern CheatEditor *cheatEditor;