-
Notifications
You must be signed in to change notification settings - Fork 2
/
GenericNumberedConfigPanel.h
48 lines (39 loc) · 1.11 KB
/
GenericNumberedConfigPanel.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
#ifndef __GENERICNUMBEREDCONFIGPANEL
#define __GENERICNUMBEREDCONFIGPANEL
#include <wx/wx.h>
#include <wx/dialog.h>
#include <wx/listctrl.h>
// Statsgen Includes
#include "WindowIDs.h"
#include "GroupedConfigItemsPanel.h"
class GenericConfigPanel;
class GenericNumberedConfigPanel : public wxPanel
{
public:
GenericNumberedConfigPanel(
GenericConfigPanel *(*newPanelFunctionIn)(wxWindow *parentID,wxString &listID),
wxString &group,
wxString &listGroupPrefix,
wxWindow *parent,
wxWindowID id,
const wxPoint &pos,
const wxSize &size,
long style,
const wxString &name);
virtual ~GenericNumberedConfigPanel();
bool UpdateFromTrigger();
void OnListItemSelected(wxCommandEvent &event);
void OnTextChange(wxCommandEvent &event);
void OnResize(wxSizeEvent &event);
void CreateDialog();
void SetConfigPanel(GenericConfigPanel *configPanel);
protected:
private:
wxComboBox idList;
GenericConfigPanel * (*newPanelFunction)(wxWindow *parentID,wxString &listID);
GenericConfigPanel *configPanel;
wxString listGroup;
wxString listGroupPrefix;
DECLARE_EVENT_TABLE()
};
#endif