| 1 | struct CheatDatabase : Window { |
| 2 | VerticalLayout layout; |
| 3 | ListView cheatList; |
| 4 | HorizontalLayout controlLayout; |
| 5 | Button selectAllButton; |
| 6 | Button unselectAllButton; |
| 7 | Widget spacer; |
| 8 | Button acceptButton; |
| 9 | |
| 10 | void findCodes(); |
| 11 | void addCodes(); |
| 12 | CheatDatabase(); |
| 13 | |
| 14 | private: |
| 15 | struct Cheat { |
| 16 | string code; |
| 17 | string desc; |
| 18 | }; |
| 19 | vector<Cheat> cheat; |
| 20 | }; |
| 21 | |
| 22 | extern CheatDatabase* cheatDatabase; |