#ifndef _labelcombobox__hpp__included__ #define _labelcombobox__hpp__included__ #include #include #include #include #include #include "filenamebox.hpp" #include "common.hpp" #include class labeledcombobox { public: labeledcombobox(wxSizer* sizer, wxWindow* parent, const std::string& label, wxString* choices, size_t choice_count, size_t defaultidx, bool start_enabled, wxEvtHandler* dispatch_to, wxObjectEventFunction on_fn_change); std::string get_choice(); void enable(); void disable(const wxString& choice); void disable(); private: wxStaticText* label; wxComboBox* combo; wxString remembered; bool enabled; bool forced; }; #endif