-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathBoxedDropDown.h
More file actions
41 lines (33 loc) · 904 Bytes
/
Copy pathBoxedDropDown.h
File metadata and controls
41 lines (33 loc) · 904 Bytes
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
#ifndef __BOXEDDROPDOWN
#define __BOXEDDROPDOWN
// wxWindows includes
#include <wx/wx.h>
#include <wx/panel.h>
#include <wx/combobox.h>
// Statsgen Includes
class BoxedDropDown : public wxPanel
{
public:
BoxedDropDown();
void AllEntriesAllowed(bool allEntries);
virtual ~BoxedDropDown();
bool CreateDialog(wxWindow *parent,
wxWindowID id,
const wxPoint &pos=wxDefaultPosition,
const wxSize &size=wxDefaultSize,
long style=wxTAB_TRAVERSAL,
const wxString &name="panel");
wxString GetSelectedCode();
protected:
virtual wxString GetLabel()=0;
virtual wxString AllCode()=0;
virtual wxString AllName()=0;
virtual wxString FindCodeFromName(wxString &code)=0;
virtual void DropDownEntries(wxArrayString &entries,
wxString &defaultSelection)=0;
private:
bool allEntriesAllowed;
wxStaticBox staticBox;
wxComboBox *dropDown;
};
#endif