mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-11 06:12:34 -06:00
ide: Now with macstyle menu
git-svn-id: svn://ultimatepp.org/upp/trunk@12610 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ef4e165897
commit
be24ef46ce
4 changed files with 16 additions and 1 deletions
|
|
@ -100,6 +100,7 @@ void CocoMenuBar::Set(Event<Bar&> bar)
|
|||
{
|
||||
if(lock) return;
|
||||
lock++;
|
||||
[cocomenu removeAllItems];
|
||||
bar(*this);
|
||||
lock--;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -569,7 +569,7 @@ bool GccBuilder::Link(const Vector<String>& linkfile, const String& linkoptions,
|
|||
<< "<plist version=\"1.0\">\n"
|
||||
<< "<dict>\n"
|
||||
<< " <key>CFBundleExecutable</key>\n"
|
||||
<< " <string>Test" << GetFileName(target) << "</string>\n"
|
||||
<< " <string>" << GetFileName(target) << "</string>\n"
|
||||
<< " <key>NSHighResolutionCapable</key>\n"
|
||||
<< " <string>True</string>\n"
|
||||
<< " <key>LSMinimumSystemVersion</key>\n"
|
||||
|
|
|
|||
|
|
@ -871,7 +871,12 @@ void Ide::SetBar()
|
|||
|
||||
void Ide::SetMenuBar()
|
||||
{
|
||||
#ifdef PLATFORM_COCOA
|
||||
SetMainMenu(THISBACK(MainMenu));
|
||||
menubar.Hide();
|
||||
#else
|
||||
menubar.Set(THISBACK(MainMenu));
|
||||
#endif
|
||||
}
|
||||
|
||||
void Ide::SetToolBar()
|
||||
|
|
|
|||
|
|
@ -325,6 +325,14 @@ void Ide::SetupBars()
|
|||
ClearFrames();
|
||||
int r = HorzLayoutZoom(170);
|
||||
int l = HorzLayoutZoom(350);
|
||||
#ifdef PLATFORM_COCOA
|
||||
int tcy = max(mainconfiglist.GetStdSize().cy + DPI(2), toolbar.GetStdHeight());
|
||||
bararea.Add(toolbar.HSizePos(0, r).VCenterPos(tcy));
|
||||
bararea.Add(display.RightPos(4, r).VSizePos(2, 3));
|
||||
bararea.Height(tcy);
|
||||
AddFrame(bararea);
|
||||
toolbar.NoTransparent();
|
||||
#else
|
||||
menubar.Transparent();
|
||||
if(toolbar_in_row) {
|
||||
toolbar.SetFrame(NullFrame());
|
||||
|
|
@ -345,6 +353,7 @@ void Ide::SetupBars()
|
|||
AddFrame(toolbar);
|
||||
toolbar.NoTransparent();
|
||||
}
|
||||
#endif
|
||||
AddFrame(statusbar);
|
||||
SetBar();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue