Debian Codegraph @

target-ethos/tools/cheat-editor.hpp

raw symbols SCIP
1 struct CheatEditor : ToolsLayout {
2 ListView cheatList;
3 HorizontalLayout codeLayout;
4 Label codeLabel;
5 LineEdit codeEdit;
6 HorizontalLayout descLayout;
7 Label descLabel;
8 LineEdit descEdit;
9 HorizontalLayout controlLayout;
10 Button findButton;
11 Widget spacer;
12 Button resetButton;
13 Button eraseButton;
14
15 void reset();
16 void erase();
17 void updateCode();
18 void updateDesc();
19
20 bool load(string filename);
21 bool save(string filename);
22 bool import(string code, string desc);
23
24 void update();
25 void refresh();
26 void synchronize();
27 CheatEditor();
28
29 private:
30 enum : unsigned { Codes = 128 };
31 struct Cheat {
32 string code;
33 string desc;
34 };
35 Cheat cheat[Codes];
36 };
37
38 extern CheatEditor* cheatEditor;