-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathFileConfigItemGUI.h
47 lines (39 loc) · 1.02 KB
/
FileConfigItemGUI.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
#ifndef __FILECONFIGITEMGUI
#define __FILECONFIGITEMGUI
#include <wx/wx.h>
#include <wx/panel.h>
#include <wx/stattext.h>
// Statsgen Includes
#include "WindowIDs.h"
#include "BaseConfigItemGUI.h"
#include "DirectoryConfigItemGUI.h"
class FileConfigItemGUI : public BaseConfigItemGUI
{
public:
FileConfigItemGUI();
virtual ~FileConfigItemGUI();
void OnTextChange(wxCommandEvent& event);
void OnButtonPressed(wxCommandEvent& event);
void SetConfigKey(wxString &configKeyIn);
void SetLabelWidth(int width);
int GetLabelWidth();
void Set(wxString &configKeyIn,
wxString &labelText,
wxString &defaultValueIn,
int maxCharactersIn,
DirectoryConfigItemGUI *directoryGUIIn=NULL);
void OnResize(wxSizeEvent &event);
wxString GetValue();
protected:
private:
wxTextCtrl textEdit;
wxBitmapButton button;
wxStaticText label;
bool maxCharactersSet;
int maxCharacters;
wxString labelText;
wxString defaultValue;
DirectoryConfigItemGUI *directoryConfig;
DECLARE_EVENT_TABLE()
};
#endif