Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
44 lines (36 sloc)
914 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __SELECTIONCONFIGITEMGUI | |
#define __SELECTIONCONFIGITEMGUI | |
#include <wx/wx.h> | |
#include <wx/panel.h> | |
#include <wx/stattext.h> | |
#include <wx/combobox.h> | |
// Statsgen Includes | |
#include "WindowIDs.h" | |
#include "BaseConfigItemGUI.h" | |
class SelectionConfigItemGUI : public BaseConfigItemGUI | |
{ | |
public: | |
SelectionConfigItemGUI(); | |
virtual ~SelectionConfigItemGUI(); | |
void OnTextChange(wxCommandEvent& event); | |
void SetConfigKey(wxString &configKeyIn); | |
void SetLabelWidth(int width); | |
int GetLabelWidth(); | |
void Set(wxString &configKeyIn, | |
wxString &labelText, | |
wxString &defaultValueIn, | |
wxArrayString &codes, | |
wxArrayString &names); | |
void OnResize(wxSizeEvent &event); | |
wxString GetValue(); | |
protected: | |
private: | |
wxComboBox textEdit; | |
wxStaticText label; | |
wxString labelText; | |
wxString defaultValue; | |
wxArrayString codes; | |
wxArrayString names; | |
DECLARE_EVENT_TABLE() | |
}; | |
#endif |