Commit Graph

22 Commits

Author SHA1 Message Date
Paul Wilde
d947ec2467 Retina tab assets 2012-08-19 21:13:25 +02:00
Allan Odgaard
9366a1ec50 Cache image resources
This was also done prior to commit 806cb44. I just assumed that now that we are back using the system’s named image stuff, we would benefit from their cache, but clearly we are not (especially file browser seemed sluggish because of (re)loading the file type images).
2012-08-19 14:44:57 +02:00
Allan Odgaard
6677a9ce0a Remove unused NSImage category method 2012-08-19 01:31:47 +02:00
Allan Odgaard
806cb44b4b Support loading @2x image assets
Untested, but we now use imageForResource: (10.7) instead of constructing an absolute file path, so the system should take care of finding @2x assets.
2012-08-19 01:31:02 +02:00
jtbandes
7a56a801b6 Fix bundle menu items' appearance in the Help menu 2012-08-18 21:28:55 +02:00
Allan Odgaard
a2a0c187d4 Replace SetItemMark() with Cocoa code
Use of the (undocumented) NSMenuItemBullet was suggested by an Apple engineer and the consequences, if it is unavailable, are harmless.
2012-08-18 15:30:24 +02:00
Allan Odgaard
7cca8f3f4a Use Objective-C literals
This brings it in line with the rest of the source, which have embraced these.
2012-08-18 15:30:23 +02:00
Allan Odgaard
67dc0b3943 Make OakRunIOAlertPanel accessible from C++
I moved it to a C header. An alternative would be to put some #ifdef’s around the Objective-C stuff in OakAppKit.h, but with the standalone header, it’s clear that this is the only thing we need from OakAppKit.
2012-08-15 20:47:18 +02:00
Allan Odgaard
cc436b2dfa fixup! Remove old tab trigger render code 2012-08-14 22:08:27 +02:00
Bo Xiao
96cb899b53 Initial commit of Simplified Chinese localization for xib files. 2012-08-14 21:29:51 +02:00
Allan Odgaard
0ceff6beab Remove old tab trigger render code
This code was using (the no longer there in the 10.7 SDK) GetPortBounds() to be able to render into a CGContextRef.

It was also using the private _NSGetCarbonMenu to be able to install the menu handler (that augmented the rendering).
2012-08-14 21:29:51 +02:00
Adam Strzelecki
7bd9f9817b Improve tab trigger rendering
This is using NSAttributedString’s NSTextTableBlocks:

* Font is determined from current menu rather than hardcoded
* Fixed: Invalid font size on bundle-item popup
* Fixed: Both tab triggers and key equivalents can co exists on single menu item
* No relayout calculations are needed after menu update (this is done automatically by NSLayoutManager when using NSTextTables)
* Uses 10.5 compatible API
2012-08-14 21:00:02 +02:00
Adam Strzelecki
98de1f5f51 Select popup menu item only on non-negative index. 2012-08-14 19:13:14 +02:00
Allan Odgaard
a92c7cda68 fixup! Stop using deprecated NSSavePanel/NSOpenPanel methods
Be careful not to initialize an NSURL from nil.
2012-08-12 22:23:52 +02:00
jtbandes
df3e9bcdc2 QLPreviewPanel is no longer private 2012-08-12 12:59:43 +02:00
jtbandes
0112532e64 Stop using deprecated NSSavePanel/NSOpenPanel methods 2012-08-12 12:59:43 +02:00
jtbandes
bf2fa756ce Fix xib warnings 2012-08-11 23:04:00 -07:00
jtbandes
ee11103d2d Change deployment target of all xibs to OS X 10.7 2012-08-11 23:04:00 -07:00
jtbandes
45b68389f2 Save all xibs with Xcode 4.4.1 (4F1003) 2012-08-11 23:04:00 -07:00
Mads Hartmann Jensen
dc37506831 Keep window open after closing last tab. Fixes #24.
When the last tab is closed the window will be kept open if the
file browser is shown. It will close the existing document and
replace it with a scratch document.
2012-08-11 17:05:05 +02:00
Gerd Knops
7892f5269a git: show modifications in upstream folders 2012-08-10 19:17:35 +02:00
Allan Odgaard
9894969e67 Initial commit 2012-08-09 16:25:56 +02:00