MCPcopy Create free account
hub / github.com/GollyGang/ready / OnAddMyPatterns

Method OnAddMyPatterns

src/gui/frame.cpp:947–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945// ---------------------------------------------------------------------
946
947void MyFrame::OnAddMyPatterns(wxCommandEvent& event)
948{
949 // first make sure the patterns pane is visible
950 wxAuiPaneInfo &pane = this->aui_mgr.GetPane(PaneName(ID::PatternsPane));
951 if(pane.IsOk() && !pane.IsShown()) {
952 pane.Show();
953 this->aui_mgr.Update();
954 }
955
956 wxDirDialog dirdlg(this, _("Choose your pattern folder"), userdir, wxDD_NEW_DIR_BUTTON);
957 if (dirdlg.ShowModal() == wxID_OK) {
958 userdir = dirdlg.GetPath();
959 this->patterns_panel->BuildTree();
960 }
961}
962
963// ---------------------------------------------------------------------
964

Callers

nothing calls this directly

Calls 3

PaneNameFunction · 0.85
BuildTreeMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected