Code: Select all
std::vector<std::string> model_data;
Code: Select all
wxListBox* gui_listbox;
The data could be converted manually to a suitable type, by reading each: std::string, converting to: wxString, then append to: wxArrayString which in turn would append to the: wxListBox
Code: Select all
wxString mystring(std::string);
wxArrayString;
gui_listbox.Append(wxArrayString&)
The model could be reimplemented to use wx objects instead of stl, but clear separation between model and gui is preferable.
Is there an elegant/efficient way of dealing with 'type conversions' between stl and wx ?