.ide Added "Go to line.." dialog as an alternative to navigator approche. It is also integrated with editor mode - that previously hasn't got that feature due to lack of navigator.

git-svn-id: svn://ultimatepp.org/upp/trunk@11036 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
klugier 2017-04-29 15:11:27 +00:00
parent 32f189180e
commit 405fbcbe84
7 changed files with 71 additions and 5 deletions

View file

@ -610,6 +610,7 @@ void Ide::BrowseMenu(Bar& menu)
menu.Add(!designer, AK_THISBACKS, callback(&editor, &AssistEditor::Thisbacks));
menu.Add(!designer, AK_COMPLETE, callback(&editor, &AssistEditor::Complete));
menu.Add(!designer, AK_ABBR, callback(&editor, &AssistEditor::Abbr));
menu.Add(!designer, AK_GO_TO_LINE, THISBACK(GoToLine));
menu.Add(!designer, "Insert", THISBACK(InsertMenu));
menu.MenuSeparator();
}
@ -630,6 +631,11 @@ void Ide::BrowseMenu(Bar& menu)
menu.MenuSeparator();
}
}
else {
menu.Add(!designer, AK_GO_TO_LINE, THISBACK(GoToLine));
menu.MenuSeparator();
}
if(menu.IsMenuBar()) {
menu.AddMenu(AK_CALC, IdeImg::calc(), THISBACK1(ToggleBottom, BCALC))
.Check(IsBottomShown() && btabs.GetCursor() == BCALC);