X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/10d28c972b8108f1eb2efa07e22738469972b5e8..430b5963a633f60c8a6b3a3778358f285a3a345e:/samples/stc/stctest.cpp diff --git a/samples/stc/stctest.cpp b/samples/stc/stctest.cpp index a662f074d5..f34b476e22 100644 --- a/samples/stc/stctest.cpp +++ b/samples/stc/stctest.cpp @@ -268,8 +268,6 @@ BEGIN_EVENT_TABLE (AppFrame, wxFrame) EVT_MENU (wxID_CUT, AppFrame::OnEdit) EVT_MENU (wxID_COPY, AppFrame::OnEdit) EVT_MENU (wxID_PASTE, AppFrame::OnEdit) - EVT_MENU (myID_INDENTINC, AppFrame::OnEdit) - EVT_MENU (myID_INDENTRED, AppFrame::OnEdit) EVT_MENU (wxID_SELECTALL, AppFrame::OnEdit) EVT_MENU (wxID_REDO, AppFrame::OnEdit) EVT_MENU (wxID_UNDO, AppFrame::OnEdit) @@ -517,6 +515,20 @@ void AppFrame::CreateMenu () menuView->AppendSeparator(); menuView->Append (myID_USECHARSET, _("Use &code page of .."), menuCharset); + // Annotations menu + wxMenu* menuAnnotations = new wxMenu; + menuAnnotations->Append(myID_ANNOTATION_ADD, _("&Add or edit an annotation..."), + _("Add an annotation for the current line")); + menuAnnotations->Append(myID_ANNOTATION_REMOVE, _("&Remove annotation"), + _("Remove the annotation for the current line")); + menuAnnotations->Append(myID_ANNOTATION_CLEAR, _("&Clear all annotations")); + + wxMenu* menuAnnotationsStyle = new wxMenu; + menuAnnotationsStyle->AppendRadioItem(myID_ANNOTATION_STYLE_HIDDEN, _("&Hidden")); + menuAnnotationsStyle->AppendRadioItem(myID_ANNOTATION_STYLE_STANDARD, _("&Standard")); + menuAnnotationsStyle->AppendRadioItem(myID_ANNOTATION_STYLE_BOXED, _("&Boxed")); + menuAnnotations->AppendSubMenu(menuAnnotationsStyle, "&Style"); + // change case submenu wxMenu *menuChangeCase = new wxMenu; menuChangeCase->Append (myID_CHANGEUPPER, _("&Upper case")); @@ -550,10 +562,13 @@ void AppFrame::CreateMenu () m_menuBar->Append (menuFile, _("&File")); m_menuBar->Append (menuEdit, _("&Edit")); m_menuBar->Append (menuView, _("&View")); + m_menuBar->Append (menuAnnotations, _("&Annotations")); m_menuBar->Append (menuExtra, _("E&xtra")); m_menuBar->Append (menuWindow, _("&Window")); m_menuBar->Append (menuHelp, _("&Help")); SetMenuBar (m_menuBar); + + m_menuBar->Check(myID_ANNOTATION_STYLE_BOXED, true); } void AppFrame::FileOpen (wxString fname)