-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgameData.h
executable file
·88 lines (78 loc) · 2.24 KB
/
gameData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#ifndef GAMEDATA_H
#define GAMEDATA_H
#include "wx/wx.h"
#include "wx/wfstream.h"
#include "wx/txtstrm.h"
#include "wx/tokenzr.h"
#include "wx/regex.h"
#include "wx/srchctrl.h"
#include "header.h"
enum{
tGameID=0,
tSaveFolder=1,
tSaveDesc=2,
tGameName=3,
tVideoFormat=4,
tScanID=5
};
//For getting game Prefixes form gameInfo.db
class gameDataDialog : public wxDialog
{
public:
gameDataDialog(wxWindow* parent, wxWindowID id, const wxString& title,
const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize,
long style=wxCAPTION|wxCLOSE_BOX|wxMINIMIZE_BOX|wxMAXIMIZE_BOX);
void onGameSelect(wxCommandEvent& event);
void generateGameList();
void onChar(wxKeyEvent& event);
void onOK(wxCommandEvent& event);
void Search(wxCommandEvent& event);
void SearchUpdate(wxCommandEvent& event);
void SearchID(const wxString& searchID, gameData& metaData);
void setFocus(wxFocusEvent& event);
wxArrayString PrefixList();
wxString getGameIDcode(){return m_gameIDcode;}
wxString getGameIDnum(){return m_gameIDnum;}
wxString getSaveIDcode(){return m_saveIDcode;}
wxString getSaveIDnum(){return m_saveIDnum;}
wxString getSaveFolder(){return m_saveFolder;}
wxString getSaveDesc(){return m_saveDesc;}
wxString getRegion(){return m_region;}
wxString getGameTitle(){return m_gameTitle;}
wxString getVideoFormat(){return m_videoFormat;}
wxString getScannerID(){return m_scannerID;}
DECLARE_EVENT_TABLE()
private:
wxStaticText* Desc1, *Desc2, *Desc3, *RegionDesc;
wxListBox* gameName;
wxChoice* gameID;
wxTextCtrl* gameNum;
gameDataList gameInfo;
wxSizer* sizer;
// wxStaticLine* line;
wxString m_gameIDcode;
wxString m_gameIDnum;
wxString m_saveIDcode;
wxString m_saveIDnum;
wxString m_saveFolder;
wxString m_saveDesc;
wxString m_region;
wxString m_gameTitle;
wxString m_videoFormat;
wxString m_scannerID;
int selectedInfo;
wxSearchCtrl* searchBox;
int windowWithFocus;
enum{
ID_Desc1=1000,
ID_gameTitle=1001,
ID_gameID=1002,
ID_gameNum=1003,
ID_Desc2=1004,
ID_Desc3=1005,
ID_RegionDesc=1006,
ID_searchBox=1007
//ID_line,
};
};
#endif