-
Notifications
You must be signed in to change notification settings - Fork 3
/
GVOpenGameDialog.h
56 lines (44 loc) · 1.05 KB
/
GVOpenGameDialog.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
#if !defined(GVOPENGAMEDIALOG_H)
#define GVOPENGAMEDIALOG_H
#include "wx/xrc/xmlres.h"
#include "wx/config.h"
#include "wx/fileconf.h"
#include "wx/treectrl.h"
class GVOpenGameDialog:public wxDialog
{
public:
/**
* Constructor: creates a new frame for GalaxyView open game dialog
* \param parent: wxWindow parent window
* \param withNew: show new button in open dialog
*/
GVOpenGameDialog (wxWindow * parent, bool withNew = false);
/**
* Add a game to select to this dialog
* \param game wxString gamename
*/
void AddGame (wxString game, bool active);
/**
* \return wxString selected string
*/
wxString GetSelection ()
{
return m_selection;
}
/**
* Sorts Games
*/
void SortGames ();
// callbacks
void OnOK (wxCommandEvent & event);
void OnCancel(wxCommandEvent& event);
void OnSelectionChanged (wxCommandEvent & event);
void OnNew (wxCommandEvent & event);
private:
wxString m_selection;
wxTreeItemId m_treeroot;
wxTreeItemId m_activeroot;
wxTreeItemId m_inactiveroot;
DECLARE_EVENT_TABLE ()
};
#endif