MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / ActionDialogRemoveGroup

Class ActionDialogRemoveGroup

src/forms/Bookmark/BookmarkView.cpp:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52};
53
54class ActionDialogRemoveGroup : public ActionDialog {
55public:
56 explicit ActionDialogRemoveGroup( std::string groupName ) : ActionDialog(wxGetApp().getAppFrame(), wxID_ANY, wxT("Remove Group?")) {
57 subject = groupName;
58 m_questionText->SetLabelText(wxT("Warning: Are you sure you want to remove the group\n '" + subject + "' AND ALL BOOKMARKS WITHIN IT?"));
59 }
60
61 void doClickOK() override {
62 wxGetApp().getBookmarkMgr().removeGroup(subject);
63 wxGetApp().getBookmarkMgr().updateBookmarks();
64 }
65
66private:
67 std::string subject;
68};
69
70
71class ActionDialogRemoveRange : public ActionDialog {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected