| 52 | }; |
| 53 | |
| 54 | class ActionDialogRemoveGroup : public ActionDialog { |
| 55 | public: |
| 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 | |
| 66 | private: |
| 67 | std::string subject; |
| 68 | }; |
| 69 | |
| 70 | |
| 71 | class ActionDialogRemoveRange : public ActionDialog { |
nothing calls this directly
no outgoing calls
no test coverage detected