-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathConfigEditorGUI.h
73 lines (62 loc) · 1.58 KB
/
ConfigEditorGUI.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
#ifndef __CONFIGEDITORGUI
#define __CONFIGEDITORGUI
#include <wx/wx.h>
#include <wx/dialog.h>
#include <wx/listctrl.h>
// Statsgen Includes
#include "WindowIDs.h"
#include "BoxedDropDown.h"
#include "TextConfigItemGUI.h"
#include "GroupedConfigItemsPanel.h"
#include "ImagePanel.h"
class ConfigEditorGUI : public wxDialog
{
public:
ConfigEditorGUI(wxWindow *parent,
wxWindowID id,
const wxString &title,
const wxPoint &pos,
const wxSize &size,
long style,
const wxString &name,
BoxedDropDown *filter1,
BoxedDropDown *filter2,
GroupedConfigItemsPanel *panelIn,
bool drawImages);
virtual ~ConfigEditorGUI();
void OnQuit(wxCommandEvent& event);
void OnSave(wxCommandEvent& event);
void OnListItemSelected(wxListEvent& event);
void OnResize(wxSizeEvent& event);
void OnTextChange(wxCommandEvent& event);
void OnFilterChanged(wxCommandEvent& event);
void AddConfigKey(
wxString &group,
wxString &configKey,
bool useRealName);
void DisplayDialog();
protected:
void CreateDialog();
wxArrayString configKeys;
wxArrayString configBaseKeys;
wxArrayString configDisplayNames;
wxListCtrl configItems;
//wxTextCtrl valueText;
TextConfigItemGUI valueText;
wxButton saveButton;
wxButton quitButton;
BoxedDropDown *filter1;
BoxedDropDown *filter2;
GroupedConfigItemsPanel *configPanel;
bool drawImages;
ImagePanel *imagePanel;
int imagePanelWidth;
int imagePanelHeight;
int imagePanelX;
int imagePanelY;
private:
void PopulateConfigItems();
wxString lastSelectedKey;
DECLARE_EVENT_TABLE()
};
#endif