summaryrefslogtreecommitdiff
path: root/src/wx/dcpomatic_choice.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-08-09 02:20:36 +0200
committerCarl Hetherington <cth@carlh.net>2024-09-03 17:02:24 +0200
commit6c5cd3e54f7a63ca89a824944b3c87236815764b (patch)
treee75327860d23ecfdcd2eda47da332ef4e43b285d /src/wx/dcpomatic_choice.h
parentcc090db73c3ababa4b208711c1a2098f393e8dcd (diff)
Add some convenience methods to the Choice class.
Diffstat (limited to 'src/wx/dcpomatic_choice.h')
-rw-r--r--src/wx/dcpomatic_choice.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/dcpomatic_choice.h b/src/wx/dcpomatic_choice.h
index cc8115d20..5417c1aa2 100644
--- a/src/wx/dcpomatic_choice.h
+++ b/src/wx/dcpomatic_choice.h
@@ -35,11 +35,15 @@ public:
void add_entry(wxString const& entry);
void add_entry(wxString const& entry, wxClientData* data);
void add_entry(wxString const& entry, wxString const& data);
+ void add_entry(wxString const& entry, std::string const& data);
void add_entry(std::string const& entry);
void set_entries(wxArrayString const& entries);
+ void clear();
+
void set(int index);
void set_by_data(wxString const& data);
+ void set_by_data(std::string const& data);
boost::optional<int> get() const;
boost::optional<wxString> get_data() const;