-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDirectoryConfigItemGUI.h
45 lines (37 loc) · 972 Bytes
/
DirectoryConfigItemGUI.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
#ifndef __DIRECTORYCONFIGITEMGUI
#define __DIRECTORYCONFIGITEMGUI
#include <wx/wx.h>
#include <wx/panel.h>
#include <wx/stattext.h>
// Statsgen Includes
#include "WindowIDs.h"
#include "BaseConfigItemGUI.h"
class DirectoryConfigItemGUI : public BaseConfigItemGUI
{
public:
DirectoryConfigItemGUI();
virtual ~DirectoryConfigItemGUI();
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);
void OnResize(wxSizeEvent &event);
wxString GetValue();
void SetValue(wxString &value);
protected:
private:
wxTextCtrl textEdit;
wxBitmapButton button;
wxStaticText label;
bool maxCharactersSet;
int maxCharacters;
wxString labelText;
wxString defaultValue;
DECLARE_EVENT_TABLE()
};
#endif