void mxEnumerationEditor::CreateCommonStuff(wxString value, bool comma_splits) { wxArrayString array; m_comma_splits=comma_splits; mxUT::Split(value,array,m_comma_splits,false); CreateCommonStuff(array); }
mxEnumerationEditor::mxEnumerationEditor(wxWindow *parent, wxString title, wxTextCtrl *text, bool comma_splits) : wxDialog(parent, wxID_ANY, title, wxDefaultPosition, wxSize(450,400) ,wxALWAYS_SHOW_SB | wxALWAYS_SHOW_SB | wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER) { m_text=text; m_combo=nullptr; m_array=nullptr; CreateCommonStuff(text->GetValue(),comma_splits); }
mxEnumerationEditor::mxEnumerationEditor(wxWindow *parent, wxString title, wxArrayString *array) : wxDialog(parent, wxID_ANY, title, wxDefaultPosition, wxSize(450,400) ,wxALWAYS_SHOW_SB | wxALWAYS_SHOW_SB | wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER) { m_text=nullptr; m_combo=nullptr; m_array=array; CreateCommonStuff(*array); }
mxLongTextEditor::mxLongTextEditor(wxWindow *parent, wxString title, wxTextCtrl *atext) : wxDialog(parent, wxID_ANY, title, wxDefaultPosition, wxSize(450,250) ,wxALWAYS_SHOW_SB | wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER) { text=atext; combo=nullptr; CreateCommonStuff(text->GetValue()); }