[vlc-commits] macosx: added some bits of documentation
Felix Paul Kühne
git at videolan.org
Wed Dec 28 01:39:54 CET 2011
vlc/vlc-1.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Dec 27 23:35:42 2011 +0100| [2e260131a6ac31b770f3f3b1dbb43d20f154a3cf] | committer: Jean-Baptiste Kempf
macosx: added some bits of documentation
(cherry picked from commit 262f28bee0ea0a94a510432196bc58ef0c4d149c)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=2e260131a6ac31b770f3f3b1dbb43d20f154a3cf
---
modules/gui/macosx/MainWindowTitle.m | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/modules/gui/macosx/MainWindowTitle.m b/modules/gui/macosx/MainWindowTitle.m
index ffcd931..7753e80 100644
--- a/modules/gui/macosx/MainWindowTitle.m
+++ b/modules/gui/macosx/MainWindowTitle.m
@@ -28,6 +28,10 @@
/*****************************************************************************
* VLCMainWindowTitleView
+ *
+ * this is our title bar, which can do anything a title should do
+ * it relies on the VLCWindowButtonCell to display the correct traffic light
+ * states, since we can't capture the mouse-moved events here correctly
*****************************************************************************/
@implementation VLCMainWindowTitleView
@@ -113,6 +117,14 @@
@end
+/*****************************************************************************
+ * VLCWindowButtonCell
+ *
+ * since the title bar cannot fetch these mouse events (the more top-level
+ * NSButton is unable fetch them as well), we are using a subclass of the
+ * button cell to do so. It's set in the nib for the respective objects.
+ *****************************************************************************/
+
@implementation VLCWindowButtonCell
- (void)mouseEntered:(NSEvent *)theEvent
@@ -133,6 +145,15 @@
@end
+
+/*****************************************************************************
+ * VLCResizeControl
+ *
+ * For Leopard and Snow Leopard, we need to emulate the resize control on the
+ * bottom right of the window, since it is gone by using the borderless window
+ * mask. A proper fix would be Lion-only.
+ *****************************************************************************/
+
@implementation VLCResizeControl
- (void)mouseDragged:(NSEvent *)theEvent
More information about the vlc-commits
mailing list