mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
Ide: move help icon after line display and make tool in the row default on mac.
This commit is contained in:
parent
4193ef4f3f
commit
48158780bf
3 changed files with 17 additions and 9 deletions
|
|
@ -627,7 +627,13 @@ public:
|
|||
byte default_charset;
|
||||
bool indent_spaces;
|
||||
bool show_status_bar;
|
||||
bool toolbar_in_row;
|
||||
bool toolbar_in_row =
|
||||
#ifdef PLATFORM_MACOS
|
||||
true
|
||||
#else
|
||||
false
|
||||
#endif
|
||||
;
|
||||
bool disable_custom_caption = false;
|
||||
bool show_tabs;
|
||||
bool show_spaces;
|
||||
|
|
@ -1042,6 +1048,7 @@ public:
|
|||
void InsertParameters();
|
||||
|
||||
void HelpMenu(Bar& menu);
|
||||
void HelpShowTopicMenu(Bar& menu);
|
||||
void ViewIdeLogFile();
|
||||
void About();
|
||||
|
||||
|
|
|
|||
|
|
@ -968,7 +968,6 @@ void Ide::HelpMenu(Bar& menu)
|
|||
{
|
||||
LTIMESTOP("HelpMenu");
|
||||
if(!IsEditorMode()) {
|
||||
// menu.Add(AK_BROWSETOPICS, IdeImg::help(), THISBACK(ShowTopics));
|
||||
menu.Add(editor.GetWord().GetCount(), AK_SEARCHTOPICS, THISBACK(SearchTopics));
|
||||
}
|
||||
menu.AddMenu(AK_BROWSETOPICS_WIN, CtrlImg::help(), THISBACK(ShowTopicsWin));
|
||||
|
|
@ -984,14 +983,16 @@ void Ide::HelpMenu(Bar& menu)
|
|||
menu.Separator();
|
||||
menu.Add("About..", IdeImg::info(), THISBACK(About));
|
||||
}
|
||||
else {
|
||||
}
|
||||
|
||||
void Ide::HelpShowTopicMenu(Bar& menu)
|
||||
{
|
||||
if(!toolbar_in_row) {
|
||||
menu.GapRight();
|
||||
}
|
||||
menu.Separator();
|
||||
}
|
||||
menu.Add(AK_BROWSETOPICS_WIN, CtrlImg::help(), THISBACK(ShowTopicsWin));
|
||||
}
|
||||
}
|
||||
|
||||
void Ide::MainMenu(Bar& menu)
|
||||
{
|
||||
|
|
@ -1058,6 +1059,7 @@ void Ide::MainTool(Bar& bar)
|
|||
#ifdef PLATFORM_COCOA
|
||||
bar.GapRight();
|
||||
bar.Add(display, HorzLayoutZoom(170));
|
||||
HelpShowTopicMenu(bar);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -523,7 +523,6 @@ Ide::Ide()
|
|||
menubar.AreaLook(1);
|
||||
toolbar.WhenHelp = ~statusbar;
|
||||
toolbar.AreaLook(1);
|
||||
toolbar_in_row = false;
|
||||
WhenClose = THISBACK(Exit);
|
||||
|
||||
editor_p.Add(editor.SizePos());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue