mirror of
https://github.com/rodamaral/lsnes.git
synced 2025-04-02 10:42:15 -04:00
36 lines
796 B
C++
Executable file
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;
|