mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
ide: Topic now does not have hex/text options active #1282
git-svn-id: svn://ultimatepp.org/upp/trunk@8982 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e44c739ccf
commit
c3ab15af3b
1 changed files with 3 additions and 1 deletions
|
|
@ -664,15 +664,17 @@ void Ide::MainTool(Bar& bar)
|
|||
}
|
||||
bar.Add("Edit as text", IdeImg::EditText(), THISBACK(EditAsText))
|
||||
.Check(!designer)
|
||||
.Enable(!editfile_isfolder)
|
||||
.Key(!designer ? 0 : K_CTRL_T);
|
||||
bool b = designer && !designer.Is<FileHexView>();
|
||||
bool d = IsDesignerFile(editfile);
|
||||
bar.Add("Edit using designer", IdeImg::EditDesigner(), THISBACK(EditUsingDesigner))
|
||||
.Check(b)
|
||||
.Enable(d)
|
||||
.Enable(d && !editfile_isfolder)
|
||||
.Key(b || !d ? 0 : K_CTRL_T);
|
||||
bar.Add("View as hex", IdeImg::EditHex(), THISBACK(EditAsHex))
|
||||
.Check(designer.Is<FileHexView>())
|
||||
.Enable(!editfile_isfolder)
|
||||
.Key(K_CTRL_B);
|
||||
if(!designer)
|
||||
bar.Separator();
|
||||
|
|
|
|||
Loading…
Reference in a new issue