Wxwidgets graphics plugin
[lsnes.git] / platform / wxwidgets / src / labelcombobox.hpp
blobcd4233dc7c077038e29cddbb04e4ac43ada44aab
1 #ifndef _labelcombobox__hpp__included__
2 #define _labelcombobox__hpp__included__
4 #include <wx/wx.h>
5 #include <wx/event.h>
6 #include <wx/control.h>
7 #include <wx/combobox.h>
8 #include <wx/string.h>
9 #include "filenamebox.hpp"
10 #include "common.hpp"
11 #include <string>
13 class labeledcombobox
15 public:
16 labeledcombobox(wxSizer* sizer, wxWindow* parent, const std::string& label, wxString* choices,
17 size_t choice_count, size_t defaultidx, bool start_enabled, wxEvtHandler* dispatch_to,
18 wxObjectEventFunction on_fn_change);
19 std::string get_choice();
20 void enable();
21 void disable(const wxString& choice);
22 void disable();
23 private:
24 wxStaticText* label;
25 wxComboBox* combo;
26 wxString remembered;
27 bool enabled;
28 bool forced;
31 #endif