Skip to content

Commit

Permalink
#5159: Add search-by-typing functionality to vocal set and head choos…
Browse files Browse the repository at this point in the history
…er dialogs
  • Loading branch information
codereader committed Apr 7, 2020
1 parent 34b5020 commit 624bc16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/dm.editing/AIHeadChooserDialog.cpp
Expand Up @@ -41,6 +41,9 @@ AIHeadChooserDialog::AIHeadChooserDialog() :
_headsView->AppendTextColumn("", _columns.name.getColumnIndex(),
wxDATAVIEW_CELL_INERT, wxCOL_WIDTH_AUTOSIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE);

// Allow searching for the name
_headsView->AddSearchColumn(_columns.name);

FitToScreen(0.7f, 0.6f);

wxPanel* previewPanel = new wxPanel(splitter, wxID_ANY);
Expand Down
3 changes: 3 additions & 0 deletions plugins/dm.editing/AIVocalSetChooserDialog.cpp
Expand Up @@ -39,6 +39,9 @@ AIVocalSetChooserDialog::AIVocalSetChooserDialog() :
_setView->AppendTextColumn("", _columns.name.getColumnIndex(),
wxDATAVIEW_CELL_INERT, wxCOL_WIDTH_AUTOSIZE, wxALIGN_NOT, wxDATAVIEW_COL_SORTABLE);

// Allow searching for the name
_setView->AddSearchColumn(_columns.name);

wxBoxSizer* vbox1 = new wxBoxSizer(wxVERTICAL);

wxStaticText* label1 = new wxStaticText(this, wxID_ANY, _("Available Sets"));
Expand Down

0 comments on commit 624bc16

Please sign in to comment.