mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-31 22:02:58 -06:00
ide: Advanced menu now local too
git-svn-id: svn://ultimatepp.org/upp/trunk@6697 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e761007338
commit
db4703df6c
3 changed files with 10 additions and 5 deletions
|
|
@ -151,9 +151,15 @@ void Ide::InsertMenu(Bar& bar)
|
|||
bar.Add("Insert file path..", THISBACK(InsertFilePath));
|
||||
}
|
||||
|
||||
void Ide::EditorMenu(Bar& bar)
|
||||
void Ide::InsertAdvanced(Bar& bar)
|
||||
{
|
||||
bar.Add("Insert", THISBACK(InsertMenu));
|
||||
bar.Add("Advanced", THISBACK(EditSpecial));
|
||||
}
|
||||
|
||||
void Ide::EditorMenu(Bar& bar)
|
||||
{
|
||||
InsertAdvanced(bar);
|
||||
bar.MenuSeparator();
|
||||
editor.StdBar(bar);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -869,6 +869,7 @@ public:
|
|||
void InsertCString();
|
||||
void InsertFilePath();
|
||||
void InsertMenu(Bar& bar);
|
||||
void InsertAdvanced(Bar& bar);
|
||||
void EditorMenu(Bar& bar);
|
||||
|
||||
void SearchMenu(Bar& bar);
|
||||
|
|
|
|||
|
|
@ -212,10 +212,8 @@ void Ide::Edit(Bar& menu) {
|
|||
if(menu.IsMenuBar())
|
||||
menu.Add("Find and Replace", THISBACK(SearchMenu));
|
||||
|
||||
if(!designer && menu.IsMenuBar()) {
|
||||
menu.Add("Insert", THISBACK(InsertMenu));
|
||||
menu.Add("Advanced", THISBACK(EditSpecial));
|
||||
}
|
||||
if(!designer && menu.IsMenuBar())
|
||||
InsertAdvanced(menu);
|
||||
|
||||
if(editor.GetLineCount() && editor.GetUtf8Line(0) == "$uvs: PENDING CONFLICT") {
|
||||
menu.MenuSeparator();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue