-
Notifications
You must be signed in to change notification settings - Fork 2
/
GenericNumberedConfigGUI.h
61 lines (53 loc) · 1.59 KB
/
GenericNumberedConfigGUI.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
#ifndef __GENERICNUMBEREDCONFIGGUI
#define __GENERICNUMBEREDCONFIGGUI
#include <wx/wx.h>
#include <wx/dialog.h>
#include <wx/listctrl.h>
// Statsgen Includes
#include "WindowIDs.h"
#include "GroupedConfigItemsPanel.h"
#include "GenericConfigPanel.h"
class GenericNumberedConfigGUI : public wxDialog
{
public:
GenericNumberedConfigGUI(
wxPanel * (*newPanelFunctionIn)(wxWindow *parentID,wxString &listID),
//GenericConfigPanel * (*newPanelFunctionIn)(wxWindow *parentID,wxString &listID),
wxString &group,
wxString &listGroupPrefix,
wxWindow *parent,
wxWindowID id,
const wxString &title,
const wxPoint &pos,
const wxSize &size,
long style,
const wxString &name);
virtual ~GenericNumberedConfigGUI();
void OnQuit(wxCommandEvent& event);
void OnSave(wxCommandEvent& event);
void OnNew(wxCommandEvent& event);
void OnDelete(wxCommandEvent& event);
void OnResize(wxSizeEvent& event);
void OnListItemSelected(wxCommandEvent &event);
void DisplayDialog();
//void SetConfigPanel(GenericConfigPanel *configPanel);
void SetConfigPanel(wxPanel *configPanel);
protected:
void CreateDialog();
private:
void WriteIDList();
wxComboBox idList;
//GenericConfigPanel * (*newPanelFunction)(wxWindow *parentID,wxString &listID);
wxPanel * (*newPanelFunction)(wxWindow *parentID,wxString &listID);
//GenericConfigPanel *configPanel;
wxPanel *configPanel;
wxButton saveButton;
wxButton quitButton;
wxButton newButton;
wxButton deleteButton;
wxString listGroup;
wxString listGroupPrefix;
bool firstTimeResize;
DECLARE_EVENT_TABLE()
};
#endif