Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
f25e0c78
Commit
f25e0c78
authored
Dec 10, 2007
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cleaning, reformatting, clarifying here and there...
parent
63d9df0e
Changes
32
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
462 additions
and
548 deletions
+462
-548
modules/gui/macosx/AppleRemote.m
modules/gui/macosx/AppleRemote.m
+0
-9
modules/gui/macosx/about.m
modules/gui/macosx/about.m
+4
-4
modules/gui/macosx/applescript.h
modules/gui/macosx/applescript.h
+3
-3
modules/gui/macosx/applescript.m
modules/gui/macosx/applescript.m
+1
-1
modules/gui/macosx/bookmarks.h
modules/gui/macosx/bookmarks.h
+1
-1
modules/gui/macosx/bookmarks.m
modules/gui/macosx/bookmarks.m
+0
-10
modules/gui/macosx/controls.h
modules/gui/macosx/controls.h
+13
-11
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+1
-1
modules/gui/macosx/embeddedwindow.h
modules/gui/macosx/embeddedwindow.h
+4
-4
modules/gui/macosx/embeddedwindow.m
modules/gui/macosx/embeddedwindow.m
+1
-1
modules/gui/macosx/equalizer.h
modules/gui/macosx/equalizer.h
+4
-4
modules/gui/macosx/fspanel.h
modules/gui/macosx/fspanel.h
+21
-21
modules/gui/macosx/fspanel.m
modules/gui/macosx/fspanel.m
+0
-11
modules/gui/macosx/interaction.m
modules/gui/macosx/interaction.m
+1
-11
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+10
-13
modules/gui/macosx/misc.h
modules/gui/macosx/misc.h
+1
-1
modules/gui/macosx/misc.m
modules/gui/macosx/misc.m
+0
-18
modules/gui/macosx/open.h
modules/gui/macosx/open.h
+2
-2
modules/gui/macosx/output.h
modules/gui/macosx/output.h
+1
-1
modules/gui/macosx/output.m
modules/gui/macosx/output.m
+1
-1
modules/gui/macosx/playlist.h
modules/gui/macosx/playlist.h
+0
-2
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+1
-8
modules/gui/macosx/playlistinfo.m
modules/gui/macosx/playlistinfo.m
+0
-15
modules/gui/macosx/prefs.h
modules/gui/macosx/prefs.h
+1
-1
modules/gui/macosx/prefs_widgets.m
modules/gui/macosx/prefs_widgets.m
+0
-10
modules/gui/macosx/update.m
modules/gui/macosx/update.m
+30
-27
modules/gui/macosx/vout.h
modules/gui/macosx/vout.h
+2
-2
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+4
-3
modules/gui/macosx/voutgl.m
modules/gui/macosx/voutgl.m
+3
-1
modules/gui/macosx/voutqt.m
modules/gui/macosx/voutqt.m
+1
-1
modules/gui/macosx/wizard.h
modules/gui/macosx/wizard.h
+2
-3
modules/gui/macosx/wizard.m
modules/gui/macosx/wizard.m
+349
-347
No files found.
modules/gui/macosx/AppleRemote.m
View file @
f25e0c78
...
@@ -117,15 +117,6 @@ const NSTimeInterval HOLD_RECOGNITION_TIME_INTERVAL=0.4;
...
@@ -117,15 +117,6 @@ const NSTimeInterval HOLD_RECOGNITION_TIME_INTERVAL=0.4;
[
super
dealloc
];
[
super
dealloc
];
}
}
/* this was added by the VideoLAN team to ensure Leopard-compatibility and is VLC-only */
#if GC_ENABLED
-
(
void
)
finalize
{
[
self
stopListening
:
self
];
[
super
finalize
];
}
#endif
-
(
int
)
remoteId
{
-
(
int
)
remoteId
{
return
remoteId
;
return
remoteId
;
}
}
...
...
modules/gui/macosx/about.m
View file @
f25e0c78
...
@@ -83,11 +83,11 @@ static VLAboutBox *_o_sharedInstance = nil;
...
@@ -83,11 +83,11 @@ static VLAboutBox *_o_sharedInstance = nil;
/* setup the creator / revision field */
/* setup the creator / revision field */
if
(
VLC_Changeset
()
!=
"exported"
)
if
(
VLC_Changeset
()
!=
"exported"
)
[
o_revision_field
setStringValue
:
[
NSString
stringWithFormat
:
\
[
o_revision_field
setStringValue
:
_NS
(
"Compiled by %s, based on SVN revision %s"
),
VLC_CompileBy
(),
\
[
NSString
stringWithFormat
:
_NS
(
"Compiled by %s, based on SVN revision %s"
),
VLC_Changeset
()]];
VLC_CompileBy
(),
VLC_Changeset
()]];
else
else
[
o_revision_field
setStringValue
:
[
NSString
stringWithFormat
:
\
[
o_revision_field
setStringValue
:
[
NSString
stringWithFormat
:
_NS
(
"Compiled by %s"
),
VLC_CompileBy
()]];
_NS
(
"Compiled by %s"
),
VLC_CompileBy
()]];
/* Setup the nameversion field */
/* Setup the nameversion field */
...
...
modules/gui/macosx/applescript.h
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* applescript.h: MacOS X AppleScript support
* applescript.h: MacOS X AppleScript support
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-2003 the VideoLAN team
* Copyright (C) 2002-2003
, 2005, 2007
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
...
@@ -38,6 +38,6 @@
...
@@ -38,6 +38,6 @@
*****************************************************************************/
*****************************************************************************/
@interface
NSApplication
(
ScriptSupport
)
@interface
NSApplication
(
ScriptSupport
)
-
(
BOOL
)
scriptFullscreenMode
;
-
(
BOOL
)
scriptFullscreenMode
;
-
(
void
)
setScriptFullscreenMode
:
(
BOOL
)
mode
;
-
(
void
)
setScriptFullscreenMode
:
(
BOOL
)
mode
;
@end
@end
modules/gui/macosx/applescript.m
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* applescript.m: MacOS X AppleScript support
* applescript.m: MacOS X AppleScript support
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-2003 the VideoLAN team
* Copyright (C) 2002-2003
, 2005, 2007
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
...
...
modules/gui/macosx/bookmarks.h
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* bookmarks.h: MacOS X Bookmarks window
* bookmarks.h: MacOS X Bookmarks window
*****************************************************************************
*****************************************************************************
* Copyright (C) 2005 the VideoLAN team
* Copyright (C) 2005
, 2007
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Felix Kühne <fkuehne@users.sf.net>
* Authors: Felix Kühne <fkuehne@users.sf.net>
...
...
modules/gui/macosx/bookmarks.m
View file @
f25e0c78
...
@@ -82,16 +82,6 @@ static VLCBookmarks *_o_sharedInstance = nil;
...
@@ -82,16 +82,6 @@ static VLCBookmarks *_o_sharedInstance = nil;
[
super
dealloc
];
[
super
dealloc
];
}
}
#if GC_ENABLED
-
(
void
)
finalize
{
/* release old input even if GC is enabled on 10.5 */
if
(
p_old_input
)
vlc_object_release
(
p_old_input
);
[
super
finalize
];
}
#endif
-
(
void
)
initStrings
-
(
void
)
initStrings
{
{
/* localise the items */
/* localise the items */
...
...
modules/gui/macosx/controls.h
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* controls.h: MacOS X interface module
* controls.h: MacOS X interface module
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-200
6
the VideoLAN team
* Copyright (C) 2002-200
7
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...
@@ -83,17 +83,17 @@
...
@@ -83,17 +83,17 @@
-
(
BOOL
)
isFullscreen
;
-
(
BOOL
)
isFullscreen
;
-
(
IBAction
)
windowAction
:(
id
)
sender
;
-
(
IBAction
)
windowAction
:(
id
)
sender
;
-
(
BOOL
)
keyEvent
:(
NSEvent
*
)
o_event
;
-
(
BOOL
)
keyEvent
:(
NSEvent
*
)
o_event
;
-
(
void
)
scrollWheel
:(
NSEvent
*
)
theEvent
;
-
(
void
)
scrollWheel
:
(
NSEvent
*
)
theEvent
;
-
(
void
)
setupVarMenuItem
:(
NSMenuItem
*
)
o_mi
-
(
void
)
setupVarMenuItem
:(
NSMenuItem
*
)
o_mi
target
:(
vlc_object_t
*
)
p_object
target
:(
vlc_object_t
*
)
p_object
var
:(
const
char
*
)
psz_variable
var
:(
const
char
*
)
psz_variable
selector
:(
SEL
)
pf_callback
;
selector
:(
SEL
)
pf_callback
;
-
(
void
)
setupVarMenu
:(
NSMenu
*
)
o_menu
-
(
void
)
setupVarMenu
:(
NSMenu
*
)
o_menu
forMenuItem
:
(
NSMenuItem
*
)
o_parent
forMenuItem
:
(
NSMenuItem
*
)
o_parent
target
:(
vlc_object_t
*
)
p_object
target
:(
vlc_object_t
*
)
p_object
var
:(
const
char
*
)
psz_variable
var
:(
const
char
*
)
psz_variable
selector
:(
SEL
)
pf_callback
;
selector
:(
SEL
)
pf_callback
;
-
(
IBAction
)
toggleVar
:(
id
)
sender
;
-
(
IBAction
)
toggleVar
:(
id
)
sender
;
-
(
int
)
toggleVarThread
:(
id
)
_o_data
;
-
(
int
)
toggleVarThread
:(
id
)
_o_data
;
...
@@ -116,8 +116,10 @@
...
@@ -116,8 +116,10 @@
int
i_type
;
int
i_type
;
}
}
-
(
id
)
initWithVar
:
(
const
char
*
)
_psz_name
Object
:
(
int
)
i_id
-
(
id
)
initWithVar
:
(
const
char
*
)
_psz_name
Value
:
(
vlc_value_t
)
val
ofType
:
(
int
)
_i_type
;
Object
:
(
int
)
i_id
Value
:
(
vlc_value_t
)
val
ofType
:
(
int
)
_i_type
;
-
(
char
*
)
name
;
-
(
char
*
)
name
;
-
(
int
)
objectID
;
-
(
int
)
objectID
;
-
(
vlc_value_t
)
value
;
-
(
vlc_value_t
)
value
;
...
...
modules/gui/macosx/controls.m
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* controls.m: MacOS X interface module
* controls.m: MacOS X interface module
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-200
6
the VideoLAN team
* Copyright (C) 2002-200
7
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
modules/gui/macosx/embeddedwindow.h
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* embeddedwindow.h: MacOS X interface module
* embeddedwindow.h: MacOS X interface module
*****************************************************************************
*****************************************************************************
* Copyright (C) 2005-200
6
the VideoLAN team
* Copyright (C) 2005-200
7
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Benjamin Pracht <bigben at videolan dot org>
* Authors: Benjamin Pracht <bigben at videolan dot org>
...
@@ -52,9 +52,9 @@
...
@@ -52,9 +52,9 @@
NSRecursiveLock
*
o_animation_lock
;
NSRecursiveLock
*
o_animation_lock
;
}
}
-
(
void
)
setTime
:
(
NSString
*
)
o_arg_ime
position
:
(
float
)
f_position
;
-
(
void
)
setTime
:
(
NSString
*
)
o_arg_ime
position
:
(
float
)
f_position
;
-
(
void
)
playStatusUpdated
:(
int
)
i_status
;
-
(
void
)
playStatusUpdated
:
(
int
)
i_status
;
-
(
void
)
setSeekable
:(
BOOL
)
b_seekable
;
-
(
void
)
setSeekable
:
(
BOOL
)
b_seekable
;
-
(
NSView
*
)
mainView
;
-
(
NSView
*
)
mainView
;
...
...
modules/gui/macosx/embeddedwindow.m
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* embeddedwindow.m: MacOS X interface module
* embeddedwindow.m: MacOS X interface module
*****************************************************************************
*****************************************************************************
* Copyright (C) 2005-200
6
the VideoLAN team
* Copyright (C) 2005-200
7
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Benjamin Pracht <bigben at videolan dot org>
* Authors: Benjamin Pracht <bigben at videolan dot org>
...
...
modules/gui/macosx/equalizer.h
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* equalizer.h: MacOS X interface module
* equalizer.h: MacOS X interface module
*****************************************************************************
*****************************************************************************
* Copyright (C) 2004-200
6
the VideoLAN team
* Copyright (C) 2004-200
7
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Jérôme Decoodt <djc@videolan.org>
* Authors: Jérôme Decoodt <djc@videolan.org>
...
@@ -55,9 +55,9 @@
...
@@ -55,9 +55,9 @@
-
(
void
)
windowWillClose
:(
NSNotification
*
)
aNotification
;
-
(
void
)
windowWillClose
:(
NSNotification
*
)
aNotification
;
-
(
void
)
awakeFromNib
;
-
(
void
)
awakeFromNib
;
-
(
void
)
setValue
:
(
float
)
value
forSlider
:
(
int
)
index
;
-
(
void
)
setValue
:
(
float
)
value
forSlider
:
(
int
)
index
;
-
(
id
)
getSliderByIndex
:(
int
)
index
;
-
(
id
)
getSliderByIndex
:
(
int
)
index
;
-
(
void
)
setBandSlidersValues
:(
float
*
)
values
;
-
(
void
)
setBandSlidersValues
:
(
float
*
)
values
;
-
(
void
)
initBandSliders
;
-
(
void
)
initBandSliders
;
...
...
modules/gui/macosx/fspanel.h
View file @
f25e0c78
...
@@ -46,31 +46,31 @@
...
@@ -46,31 +46,31 @@
-
(
void
)
setPlay
;
-
(
void
)
setPlay
;
-
(
void
)
setPause
;
-
(
void
)
setPause
;
-
(
void
)
setStreamTitle
:(
NSString
*
)
o_title
;
-
(
void
)
setStreamTitle
:
(
NSString
*
)
o_title
;
-
(
void
)
setStreamPos
:
(
float
)
f_pos
andTime
:
(
NSString
*
)
o_time
;
-
(
void
)
setStreamPos
:
(
float
)
f_pos
andTime
:
(
NSString
*
)
o_time
;
-
(
void
)
setSeekable
:
(
BOOL
)
b_seekable
;
-
(
void
)
setSeekable
:
(
BOOL
)
b_seekable
;
-
(
void
)
setVolumeLevel
:
(
float
)
f_volumeLevel
;
-
(
void
)
setVolumeLevel
:
(
float
)
f_volumeLevel
;
-
(
void
)
setNonActive
:(
id
)
noData
;
-
(
void
)
setNonActive
:
(
id
)
noData
;
-
(
void
)
setActive
:(
id
)
noData
;
-
(
void
)
setActive
:
(
id
)
noData
;
-
(
void
)
focus
:(
NSTimer
*
)
timer
;
-
(
void
)
focus
:
(
NSTimer
*
)
timer
;
-
(
void
)
unfocus
:(
NSTimer
*
)
timer
;
-
(
void
)
unfocus
:
(
NSTimer
*
)
timer
;
-
(
void
)
mouseExited
:(
NSEvent
*
)
theEvent
;
-
(
void
)
mouseExited
:
(
NSEvent
*
)
theEvent
;
-
(
void
)
fadeIn
;
-
(
void
)
fadeIn
;
-
(
void
)
fadeOut
;
-
(
void
)
fadeOut
;
-
(
NSTimer
*
)
fadeTimer
;
-
(
NSTimer
*
)
fadeTimer
;
-
(
void
)
setFadeTimer
:(
NSTimer
*
)
timer
;
-
(
void
)
setFadeTimer
:
(
NSTimer
*
)
timer
;
-
(
void
)
autoHide
;
-
(
void
)
autoHide
;
-
(
void
)
keepVisible
:(
NSTimer
*
)
timer
;
-
(
void
)
keepVisible
:
(
NSTimer
*
)
timer
;
-
(
void
)
mouseDown
:(
NSEvent
*
)
theEvent
;
-
(
void
)
mouseDown
:
(
NSEvent
*
)
theEvent
;
-
(
void
)
mouseDragged
:(
NSEvent
*
)
theEvent
;
-
(
void
)
mouseDragged
:
(
NSEvent
*
)
theEvent
;
-
(
BOOL
)
isDisplayed
;
-
(
BOOL
)
isDisplayed
;
-
(
void
)
setVoutWasUpdated
:
(
int
)
i_screen
;
-
(
void
)
setVoutWasUpdated
:
(
int
)
i_screen
;
@end
@end
@interface
VLCFSPanelView
:
NSView
@interface
VLCFSPanelView
:
NSView
...
@@ -80,8 +80,8 @@
...
@@ -80,8 +80,8 @@
NSTextField
*
o_streamTitle_txt
,
*
o_streamPosition_txt
;
NSTextField
*
o_streamTitle_txt
,
*
o_streamPosition_txt
;
NSSlider
*
o_fs_timeSlider
,
*
o_fs_volumeSlider
;
NSSlider
*
o_fs_timeSlider
,
*
o_fs_volumeSlider
;
}
}
-
(
id
)
initWithFrame
:(
NSRect
)
frameRect
;
-
(
id
)
initWithFrame
:
(
NSRect
)
frameRect
;
-
(
void
)
drawRect
:(
NSRect
)
rect
;
-
(
void
)
drawRect
:
(
NSRect
)
rect
;
-
(
void
)
setPlay
;
-
(
void
)
setPlay
;
-
(
void
)
setPause
;
-
(
void
)
setPause
;
...
@@ -94,23 +94,23 @@
...
@@ -94,23 +94,23 @@
-
(
IBAction
)
next
:(
id
)
sender
;
-
(
IBAction
)
next
:(
id
)
sender
;
-
(
IBAction
)
forward
:(
id
)
sender
;
-
(
IBAction
)
forward
:(
id
)
sender
;
-
(
IBAction
)
backward
:(
id
)
sender
;
-
(
IBAction
)
backward
:(
id
)
sender
;
-
(
IBAction
)
fsTimeSliderUpdate
:(
id
)
sender
;
-
(
IBAction
)
fsTimeSliderUpdate
:
(
id
)
sender
;
-
(
IBAction
)
fsVolumeSliderUpdate
:(
id
)
sender
;
-
(
IBAction
)
fsVolumeSliderUpdate
:
(
id
)
sender
;
@end
@end
@interface
VLCFSTimeSlider
:
NSSlider
@interface
VLCFSTimeSlider
:
NSSlider
{
{
}
}
-
(
void
)
drawKnobInRect
:(
NSRect
)
knobRect
;
-
(
void
)
drawKnobInRect
:
(
NSRect
)
knobRect
;
-
(
void
)
drawRect
:(
NSRect
)
rect
;
-
(
void
)
drawRect
:
(
NSRect
)
rect
;
@end
@end
@interface
VLCFSVolumeSlider
:
NSSlider
@interface
VLCFSVolumeSlider
:
NSSlider
{
{
}
}
-
(
void
)
drawKnobInRect
:(
NSRect
)
knobRect
;
-
(
void
)
drawKnobInRect
:
(
NSRect
)
knobRect
;
-
(
void
)
drawRect
:(
NSRect
)
rect
;
-
(
void
)
drawRect
:
(
NSRect
)
rect
;
@end
@end
modules/gui/macosx/fspanel.m
View file @
f25e0c78
...
@@ -93,17 +93,6 @@
...
@@ -93,17 +93,6 @@
return
YES
;
return
YES
;
}
}
#if GC_ENABLED
-
(
void
)
finalize
{
/* dealloc isn't called on 10.5 in case that GC is enabled, so we need to provide the functionality here */
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
[
self
setFadeTimer
:
nil
];
[
super
finalize
];
}
#endif
-
(
void
)
dealloc
-
(
void
)
dealloc
{
{
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
...
...
modules/gui/macosx/interaction.m
View file @
f25e0c78
...
@@ -94,16 +94,6 @@
...
@@ -94,16 +94,6 @@
return
o_error_panel
;
return
o_error_panel
;
}
}
#if GC_ENABLED
-
(
void
)
finalize
{
/* dealloc doesn't get called on 10.5 if GC is enabled, so we need to provide the basic functionality here */
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
[
o_interaction_list
removeAllObjects
];
[
super
finalize
];
}
#endif
-
(
void
)
dealloc
-
(
void
)
dealloc
{
{
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
...
@@ -278,7 +268,7 @@
...
@@ -278,7 +268,7 @@
{
{
if
(
p_dialog
->
i_flags
&
DIALOG_USER_PROGRESS
)
if
(
p_dialog
->
i_flags
&
DIALOG_USER_PROGRESS
)
{
{
[
o_prog_description
setStringValue
:
\
[
o_prog_description
setStringValue
:
[
NSString
stringWithUTF8String
:
p_dialog
->
psz_description
]];
[
NSString
stringWithUTF8String
:
p_dialog
->
psz_description
]];
[
o_prog_bar
setDoubleValue
:
(
double
)
p_dialog
->
val
.
f_float
];
[
o_prog_bar
setDoubleValue
:
(
double
)
p_dialog
->
val
.
f_float
];
...
...
modules/gui/macosx/intf.h
View file @
f25e0c78
...
@@ -51,9 +51,6 @@ unsigned int CocoaKeyToVLC( unichar i_key );
...
@@ -51,9 +51,6 @@ unsigned int CocoaKeyToVLC( unichar i_key );
@"/System/Library/CoreServices/SystemVersion.plist"] \
@"/System/Library/CoreServices/SystemVersion.plist"] \
objectForKey: @"ProductVersion"] floatValue]
objectForKey: @"ProductVersion"] floatValue]
/* switch this to 1, if you want to use Obj-C with GC */
#define GC_ENABLED 0
/*****************************************************************************
/*****************************************************************************
* intf_sys_t: description and status of the interface
* intf_sys_t: description and status of the interface
*****************************************************************************/
*****************************************************************************/
...
@@ -106,14 +103,14 @@ struct intf_sys_t
...
@@ -106,14 +103,14 @@ struct intf_sys_t
id
o_sfilters
;
/* VLCsFilters */
id
o_sfilters
;
/* VLCsFilters */
id
o_update
;
/* VLCUpdate */
id
o_update
;
/* VLCUpdate */
id
o_eyetv
;
/* VLCEyeTVController */
id
o_eyetv
;
/* VLCEyeTVController */
BOOL
nib_main_loaded
;
/*
reference to the main-nib
*/
BOOL
nib_main_loaded
;
/*
main nibfile
*/
BOOL
nib_open_loaded
;
/*
reference to the open-nib
*/
BOOL
nib_open_loaded
;
/*
open nibfile
*/
BOOL
nib_about_loaded
;
/*
reference to the about-nib
*/
BOOL
nib_about_loaded
;
/*
about nibfile
*/
BOOL
nib_wizard_loaded
;
/*
reference to the wizard-nib
*/
BOOL
nib_wizard_loaded
;
/*
wizard nibfile
*/
BOOL
nib_extended_loaded
;
/*
reference to the extended-nib
*/
BOOL
nib_extended_loaded
;
/*
extended nibfile
*/
BOOL
nib_bookmarks_loaded
;
/*
reference to the bookmarks-nib
*/
BOOL
nib_bookmarks_loaded
;
/*
bookmarks nibfile
*/
BOOL
nib_sfilters_loaded
;
/*
reference to the sfilters-nib
*/
BOOL
nib_sfilters_loaded
;
/*
sfilters nibfile
*/
BOOL
nib_update_loaded
;
/*
reference to the update-nib
*/
BOOL
nib_update_loaded
;
/*
update nibfile
*/
IBOutlet
id
o_window
;
/* main window */
IBOutlet
id
o_window
;
/* main window */
IBOutlet
id
o_playlist_view
;
/* playlist view */
IBOutlet
id
o_playlist_view
;
/* playlist view */
...
@@ -125,14 +122,14 @@ struct intf_sys_t
...
@@ -125,14 +122,14 @@ struct intf_sys_t
float
f_slider_old
;
/* old slider val */
float
f_slider_old
;
/* old slider val */
IBOutlet
id
o_volumeslider
;
/* volume slider */
IBOutlet
id
o_volumeslider
;
/* volume slider */
IBOutlet
id
o_main_pgbar
;
/*
main interface
progress bar */
IBOutlet
id
o_main_pgbar
;
/*
playlist window
progress bar */
IBOutlet
id
o_btn_prev
;
/* btn previous */
IBOutlet
id
o_btn_prev
;
/* btn previous */
IBOutlet
id
o_btn_rewind
;
/* btn rewind */
IBOutlet
id
o_btn_rewind
;
/* btn rewind */
IBOutlet
id
o_btn_play
;
/* btn play */
IBOutlet
id
o_btn_play
;
/* btn play */
IBOutlet
id
o_btn_stop
;
/* btn stop */
IBOutlet
id
o_btn_stop
;
/* btn stop */
IBOutlet
id
o_btn_ff
;
/* btn fast forward */
IBOutlet
id
o_btn_ff
;
/* btn fast forward */
IBOutlet
id
o_btn_next
;
/* btn next */
IBOutlet
id
o_btn_next
;
/* btn next */
IBOutlet
id
o_btn_fullscreen
;
/* btn fullscreen
*/
IBOutlet
id
o_btn_fullscreen
;
/* btn fullscreen
(embedded vout window)
*/
IBOutlet
id
o_btn_playlist
;
/* btn playlist */
IBOutlet
id
o_btn_playlist
;
/* btn playlist */
NSImage
*
o_img_play
;
/* btn play img */
NSImage
*
o_img_play
;
/* btn play img */
...
...
modules/gui/macosx/misc.h
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* misc.h: code not specific to vlc
* misc.h: code not specific to vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 the VideoLAN team
* Copyright (C) 2003
-2007
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
modules/gui/macosx/misc.m
View file @
f25e0c78
...
@@ -381,15 +381,6 @@ static NSMutableArray *blackoutWindows = NULL;
...
@@ -381,15 +381,6 @@ static NSMutableArray *blackoutWindows = NULL;
[
super
dealloc
];
[
super
dealloc
];
}
}
#if GC_ENABLED
-
(
void
)
finalize
{
/* dealloc doesn't get called on 10.5 if GC is enabled, so we need to provide the basic functionality here */
[
self
unregisterDraggedTypes
];
[
super
finalize
];
}
#endif
-
(
void
)
awakeFromNib
-
(
void
)
awakeFromNib
{
{
[
self
registerForDraggedTypes
:[
NSArray
arrayWithObjects
:
NSTIFFPboardType
,
[
self
registerForDraggedTypes
:[
NSArray
arrayWithObjects
:
NSTIFFPboardType
,
...
@@ -468,15 +459,6 @@ static NSMutableArray *blackoutWindows = NULL;
...
@@ -468,15 +459,6 @@ static NSMutableArray *blackoutWindows = NULL;
[
super
dealloc
];
[
super
dealloc
];
}
}
#if GC_ENABLED
-
(
void
)
finalize
{
/* dealloc doesn't get called on 10.5 if GC is enabled, so we need to provide the basic functionality here */
[
self
unregisterDraggedTypes
];
[
super
finalize
];
}
#endif
-
(
void
)
awakeFromNib
-
(
void
)
awakeFromNib
{
{
[
self
registerForDraggedTypes
:[
NSArray
arrayWithObjects
:
NSTIFFPboardType
,
[
self
registerForDraggedTypes
:[
NSArray
arrayWithObjects
:
NSTIFFPboardType
,
...
...
modules/gui/macosx/open.h
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* open.h: MacOS X module for vlc
* open.h: MacOS X module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-200
6
the VideoLAN team
* Copyright (C) 2002-200
7
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...
@@ -128,7 +128,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
...
@@ -128,7 +128,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
-
(
void
)
openFileGeneric
;
-
(
void
)
openFileGeneric
;
-
(
void
)
openFilePathChanged
:(
NSNotification
*
)
o_notification
;
-
(
void
)
openFilePathChanged
:(
NSNotification
*
)
o_notification
;
-
(
IBAction
)
openFileBrowse
:(
id
)
sender
;
-
(
IBAction
)
openFileBrowse
:(
id
)
sender
;
-
(
void
)
pathChosenInPanel
:
(
NSOpenPanel
*
)
sheet
withReturn
:
(
int
)
returnCode
contextInfo
:(
void
*
)
contextInfo
;
-
(
void
)
pathChosenInPanel
:
(
NSOpenPanel
*
)
sheet
withReturn
:(
int
)
returnCode
contextInfo
:(
void
*
)
contextInfo
;
-
(
IBAction
)
openFileStreamChanged
:(
id
)
sender
;
-
(
IBAction
)
openFileStreamChanged
:(
id
)
sender
;
-
(
void
)
openDisc
;
-
(
void
)
openDisc
;
...
...
modules/gui/macosx/output.h
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* output.h: MacOS X Output Dialog
* output.h: MacOS X Output Dialog
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-200
6
the VideoLAN team
* Copyright (C) 2002-200
7
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
modules/gui/macosx/output.m
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* output.m: MacOS X Output Dialog
* output.m: MacOS X Output Dialog
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-200
6
the VideoLAN team
* Copyright (C) 2002-200
7
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
modules/gui/macosx/playlist.h
View file @
f25e0c78
...
@@ -139,6 +139,4 @@
...
@@ -139,6 +139,4 @@
-
(
void
)
appendArray
:(
NSArray
*
)
o_array
atPos
:(
int
)
i_position
enqueue
:(
BOOL
)
b_enqueue
;
-
(
void
)
appendArray
:(
NSArray
*
)
o_array
atPos
:(
int
)
i_position
enqueue
:(
BOOL
)
b_enqueue
;
-
(
void
)
appendNodeArray
:(
NSArray
*
)
o_array
inNode
:(
playlist_item_t
*
)
p_node
atPos
:(
int
)
i_position
enqueue
:(
BOOL
)
b_enqueue
;
-
(
void
)
appendNodeArray
:(
NSArray
*
)
o_array
inNode
:(
playlist_item_t
*
)
p_node
atPos
:(
int
)
i_position
enqueue
:(
BOOL
)
b_enqueue
;
@end
@end
modules/gui/macosx/playlist.m
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* playlist.m: MacOS X interface module
* playlist.m: MacOS X interface module
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-200
6
the VideoLAN team
* Copyright (C) 2002-200
7
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...
@@ -1667,13 +1667,6 @@
...
@@ -1667,13 +1667,6 @@
vlc_object_release
(
p_playlist
);
vlc_object_release
(
p_playlist
);
return
NO
;
return
NO
;
}
}
/* Delegate method of NSWindow */
/*- (void)windowWillClose:(NSNotification *)aNotification
{
[o_btn_playlist setState: NSOffState];
}
*/
@end
@end
modules/gui/macosx/playlistinfo.m
View file @
f25e0c78
...
@@ -111,16 +111,6 @@
...
@@ -111,16 +111,6 @@
[
super
dealloc
];
[
super
dealloc
];
}
}
#if GC_ENABLED
-
(
void
)
finalize
{
/* since dealloc isn't called with enabled GC on 10.5, we need this to prevent core crashes */
if
(
[
o_statUpdateTimer
isValid
]
)
[
o_statUpdateTimer
invalidate
];
[
super
finalize
];
}
#endif
-
(
IBAction
)
togglePlaylistInfoPanel
:(
id
)
sender
-
(
IBAction
)
togglePlaylistInfoPanel
:(
id
)
sender
{
{
...
@@ -514,11 +504,6 @@ static VLCInfoTreeItem *o_root_item = nil;
...
@@ -514,11 +504,6 @@ static VLCInfoTreeItem *o_root_item = nil;
return
(
i_tmp
==
IsALeafNode
)
?
(
-
1
)
:
(
int
)[
i_tmp
count
];
return
(
i_tmp
==
IsALeafNode
)
?
(
-
1
)
:
(
int
)[
i_tmp
count
];
}
}
/*- (int)selectedPlaylistItem
{
return i_item;
}
*/
-
(
void
)
refresh
-
(
void
)
refresh
{
{
p_item
=
[[[
VLCMain
sharedInstance
]
getInfo
]
getItem
];
p_item
=
[[[
VLCMain
sharedInstance
]
getInfo
]
getItem
];
...
...
modules/gui/macosx/prefs.h
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* prefs.h: MacOS X module for vlc
* prefs.h: MacOS X module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-200
5
the VideoLAN team
* Copyright (C) 2002-200
7
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
modules/gui/macosx/prefs_widgets.m
View file @
f25e0c78
...
@@ -409,16 +409,6 @@
...
@@ -409,16 +409,6 @@
[
self
setFrame
:
frame
];
[
self
setFrame
:
frame
];
}
}
#if GC_ENABLED
-
(
void
)
finalize
{
/* since dealloc isn't called on 10.5 if GC is enabled and since GC is
* Obj-C only, we need to do this: */
if
(
psz_name
)
free
(
psz_name
);
[
super
finalize
];
}
#endif
-
(
void
)
dealloc
-
(
void
)
dealloc
{
{
if
(
o_label
)
[
o_label
release
];
if
(
o_label
)
[
o_label
release
];
...
...
modules/gui/macosx/update.m
View file @
f25e0c78
...
@@ -150,14 +150,17 @@ static VLCUpdate *_o_sharedInstance = nil;
...
@@ -150,14 +150,17 @@ static VLCUpdate *_o_sharedInstance = nil;
[
saveFilePanel
setRequiredFileType
:
@"dmg"
];
[
saveFilePanel
setRequiredFileType
:
@"dmg"
];
[
saveFilePanel
setCanSelectHiddenExtension
:
YES
];
[
saveFilePanel
setCanSelectHiddenExtension
:
YES
];
[
saveFilePanel
setCanCreateDirectories
:
YES
];
[
saveFilePanel
setCanCreateDirectories
:
YES
];
[
saveFilePanel
beginSheetForDirectory
:
nil
file
:
\
[
saveFilePanel
beginSheetForDirectory
:
nil
file
:
[[
o_urlOfBinary
componentsSeparatedByString
:
@"/"
]
lastObject
]
\
[[
o_urlOfBinary
componentsSeparatedByString
:
@"/"
]
lastObject
]
modalForWindow
:
o_update_window
modalDelegate
:
self
didEndSelector
:
sel
\
modalForWindow:
o_update_window
contextInfo
:
nil
];
modalDelegate:
self
didEndSelector:
sel
contextInfo:
nil
];
}
}
-
(
void
)
getLocationForSaving
:
(
NSSavePanel
*
)
sheet
returnCode
:
\
-
(
void
)
getLocationForSaving
:
(
NSSavePanel
*
)
sheet
(
int
)
returnCode
contextInfo
:
(
void
*
)
contextInfo
returnCode
:
(
int
)
returnCode
contextInfo
:
(
void
*
)
contextInfo
{
{
if
(
returnCode
==
NSOKButton
)
if
(
returnCode
==
NSOKButton
)
{
{
...
@@ -189,7 +192,7 @@ static VLCUpdate *_o_sharedInstance = nil;
...
@@ -189,7 +192,7 @@ static VLCUpdate *_o_sharedInstance = nil;
BOOL
gettingReleaseNote
=
NO
;
BOOL
gettingReleaseNote
=
NO
;
int
x
=
0
;
int
x
=
0
;
NSString
*
pathToReleaseNote
;
NSString
*
pathToReleaseNote
;
pathToReleaseNote
=
[
NSString
stringWithFormat
:
\
pathToReleaseNote
=
[
NSString
stringWithFormat
:
@"/tmp/vlc_releasenote_%d.tmp"
,
mdate
()];
@"/tmp/vlc_releasenote_%d.tmp"
,
mdate
()];
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
[
NSDate
date
]
forKey
:
kPrefUpdateLastTimeChecked
];
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
[
NSDate
date
]
forKey
:
kPrefUpdateLastTimeChecked
];
...
@@ -212,8 +215,8 @@ static VLCUpdate *_o_sharedInstance = nil;
...
@@ -212,8 +215,8 @@ static VLCUpdate *_o_sharedInstance = nil;
{
{
msg_Dbg
(
p_intf
,
"release note found, desc = %s"
,
msg_Dbg
(
p_intf
,
"release note found, desc = %s"
,
p_uit
->
file
.
psz_description
);
p_uit
->
file
.
psz_description
);
[
o_fld_releaseNote
setString
:
\
[
o_fld_releaseNote
setString
:
[
NSString
stringWithUTF8String
:
\
[
NSString
stringWithUTF8String
:
(
p_uit
->
file
.
psz_description
)]];
(
p_uit
->
file
.
psz_description
)]];
/* download our release note
/* download our release note
* We will read the temp file after this loop */
* We will read the temp file after this loop */
...
@@ -222,20 +225,20 @@ static VLCUpdate *_o_sharedInstance = nil;
...
@@ -222,20 +225,20 @@ static VLCUpdate *_o_sharedInstance = nil;
}
}
else
if
(
p_uit
->
file
.
i_type
==
UPDATE_FILE_TYPE_BINARY
)
else
if
(
p_uit
->
file
.
i_type
==
UPDATE_FILE_TYPE_BINARY
)
{
{
msg_Dbg
(
p_intf
,
"binary found, version = %s, "
\
msg_Dbg
(
p_intf
,
"binary found, version = %s, "
"url=%s, size=%i MB"
,
p_uit
->
release
.
psz_version
,
\
"url=%s, size=%i MB"
,
p_uit
->
release
.
psz_version
,
p_uit
->
file
.
psz_url
,
\
p_uit
->
file
.
psz_url
,
(
int
)((
p_uit
->
file
.
l_size
/
1024
)
/
1024
)
);
(
int
)((
p_uit
->
file
.
l_size
/
1024
)
/
1024
)
);
[
o_fld_currentVersionAndSize
setStringValue
:
[
NSString
\
[
o_fld_currentVersionAndSize
setStringValue
:
stringWithFormat
:
\
[
NSString
stringWithFormat
:
_NS
(
"The latest VLC media player release "
\
_NS
(
"The latest VLC media player release "
"is %s (%i MB to download)."
),
\
"is %s (%i MB to download)."
),
p_uit
->
release
.
psz_version
,
((
p_uit
->
file
.
l_size
\
p_uit
->
release
.
psz_version
,
((
p_uit
->
file
.
l_size
/
1024
)
/
1024
)]];
/
1024
)
/
1024
)]];
if
(
o_urlOfBinary
)
if
(
o_urlOfBinary
)
[
o_urlOfBinary
release
];
[
o_urlOfBinary
release
];
o_urlOfBinary
=
[[
NSString
alloc
]
initWithUTF8String
:
\
o_urlOfBinary
=
[[
NSString
alloc
]
initWithUTF8String
:
p_uit
->
file
.
psz_url
];
p_uit
->
file
.
psz_url
];
}
}
if
(
p_uit
->
release
.
i_status
==
UPDATE_RELEASE_STATUS_NEWER
&&
if
(
p_uit
->
release
.
i_status
==
UPDATE_RELEASE_STATUS_NEWER
&&
...
@@ -243,12 +246,12 @@ static VLCUpdate *_o_sharedInstance = nil;
...
@@ -243,12 +246,12 @@ static VLCUpdate *_o_sharedInstance = nil;
{
{
/* our version is outdated, let the user download the new
/* our version is outdated, let the user download the new
* release */
* release */
[
o_fld_status
setStringValue
:
_NS
(
"This version of VLC "
\
[
o_fld_status
setStringValue
:
_NS
(
"This version of VLC "
"is outdated."
)];
"is outdated."
)];
[
o_btn_DownloadNow
setEnabled
:
YES
];
[
o_btn_DownloadNow
setEnabled
:
YES
];
msg_Dbg
(
p_intf
,
"this version of VLC is outdated"
);
msg_Dbg
(
p_intf
,
"this version of VLC is outdated"
);
/* put the mirror information */
/* put the mirror information */
msg_Dbg
(
p_intf
,
"used mirror: %s, %s [%s]"
,
\
msg_Dbg
(
p_intf
,
"used mirror: %s, %s [%s]"
,
p_uit
->
mirror
.
psz_name
,
p_uit
->
mirror
.
psz_location
,
\
p_uit
->
mirror
.
psz_name
,
p_uit
->
mirror
.
psz_location
,
\
p_uit
->
mirror
.
psz_type
);
p_uit
->
mirror
.
psz_type
);
/* make sure that we perform this check only once */
/* make sure that we perform this check only once */
...
@@ -261,7 +264,7 @@ static VLCUpdate *_o_sharedInstance = nil;
...
@@ -261,7 +264,7 @@ static VLCUpdate *_o_sharedInstance = nil;
}
}
else
if
(
!
releaseChecked
)
else
if
(
!
releaseChecked
)
{
{
[
o_fld_status
setStringValue
:
_NS
(
"This version of VLC "
\
[
o_fld_status
setStringValue
:
_NS
(
"This version of VLC "
"is the latest available."
)];
"is the latest available."
)];
[
o_btn_DownloadNow
setEnabled
:
NO
];
[
o_btn_DownloadNow
setEnabled
:
NO
];
msg_Dbg
(
p_intf
,
"current version is up-to-date"
);
msg_Dbg
(
p_intf
,
"current version is up-to-date"
);
...
@@ -295,21 +298,21 @@ static VLCUpdate *_o_sharedInstance = nil;
...
@@ -295,21 +298,21 @@ static VLCUpdate *_o_sharedInstance = nil;
/* let's open our cached release note and display it
/* let's open our cached release note and display it
* we can't use NSString stringWithContentsOfFile:encoding:error:
* we can't use NSString stringWithContentsOfFile:encoding:error:
* since it is Tiger only */
* since it is Tiger only */
NSString
*
releaseNote
=
[[
NSString
alloc
]
initWithData
:
\
NSString
*
releaseNote
=
[[
NSString
alloc
]
initWithData
:
[
NSData
dataWithContentsOfFile
:
pathToReleaseNote
]
\
[
NSData
dataWithContentsOfFile
:
pathToReleaseNote
]
encoding:
NSISOLatin1StringEncoding
];
encoding:
NSISOLatin1StringEncoding
];
if
(
releaseNote
)
if
(
releaseNote
)
[
o_fld_releaseNote
setString
:
releaseNote
];
[
o_fld_releaseNote
setString
:
releaseNote
];
/* delete the file since it isn't needed anymore */
/* delete the file since it isn't needed anymore */
BOOL
myBOOL
=
NO
;
BOOL
myBOOL
=
NO
;
myBOOL
=
[[
NSFileManager
defaultManager
]
removeFileAtPath
:
\
myBOOL
=
[[
NSFileManager
defaultManager
]
removeFileAtPath
:
pathToReleaseNote
handler
:
nil
];
pathToReleaseNote
handler
:
nil
];
}
}
else
else
{
{
/* don't confuse the user, but make her happy */
/* don't confuse the user, but make her happy */
[
o_fld_status
setStringValue
:
_NS
(
"This version of VLC "
\
[
o_fld_status
setStringValue
:
_NS
(
"This version of VLC "
"is the latest available."
)];
"is the latest available."
)];
[
o_btn_DownloadNow
setEnabled
:
NO
];
[
o_btn_DownloadNow
setEnabled
:
NO
];
msg_Dbg
(
p_intf
,
"current version is up-to-date"
);
msg_Dbg
(
p_intf
,
"current version is up-to-date"
);
...
@@ -332,8 +335,8 @@ static VLCUpdate *_o_sharedInstance = nil;
...
@@ -332,8 +335,8 @@ static VLCUpdate *_o_sharedInstance = nil;
p_uit
->
file
.
i_type
==
UPDATE_FILE_TYPE_BINARY
)
p_uit
->
file
.
i_type
==
UPDATE_FILE_TYPE_BINARY
)
{
{
/* put the mirror information */
/* put the mirror information */
msg_Dbg
(
p_intf
,
"used mirror: %s, %s [%s]"
,
\
msg_Dbg
(
p_intf
,
"used mirror: %s, %s [%s]"
,
p_uit
->
mirror
.
psz_name
,
p_uit
->
mirror
.
psz_location
,
\
p_uit
->
mirror
.
psz_name
,
p_uit
->
mirror
.
psz_location
,
p_uit
->
mirror
.
psz_type
);
p_uit
->
mirror
.
psz_type
);
/* that's our binary */
/* that's our binary */
...
...
modules/gui/macosx/vout.h
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* vout.h: MacOS X interface module
* vout.h: MacOS X interface module
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001-200
6
the VideoLAN team
* Copyright (C) 2001-200
7
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Colin Delacroix <colin@zoy.org>
* Authors: Colin Delacroix <colin@zoy.org>
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
-
(
id
)
getWindow
;
-
(
id
)
getWindow
;
+
(
id
)
getVoutView
:
(
vout_thread_t
*
)
p_vout
subView
:
(
NSView
*
)
view
+
(
id
)
getVoutView
:
(
vout_thread_t
*
)
p_vout
subView
:
(
NSView
*
)
view
frame
:
(
NSRect
*
)
s_frame
;
frame
:
(
NSRect
*
)
s_frame
;
+
(
vout_thread_t
*
)
getRealVout
:
(
vout_thread_t
*
)
p_vout
;
+
(
vout_thread_t
*
)
getRealVout
:
(
vout_thread_t
*
)
p_vout
;
-
(
void
)
enterFullscreen
;
-
(
void
)
enterFullscreen
;
...
...
modules/gui/macosx/vout.m
View file @
f25e0c78
...
@@ -143,7 +143,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -143,7 +143,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
*****************************************************************************/
*****************************************************************************/
@implementation
VLCVoutView
@implementation
VLCVoutView
-
(
id
)
initWithFrame
:(
NSRect
)
frameRect
-
(
id
)
initWithFrame
:
(
NSRect
)
frameRect
{
{
[
super
initWithFrame
:
frameRect
];
[
super
initWithFrame
:
frameRect
];
p_vout
=
NULL
;
p_vout
=
NULL
;
...
@@ -155,8 +155,9 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
...
@@ -155,8 +155,9 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
return
self
;
return
self
;
}
}
-
(
BOOL
)
setVout
:
(
vout_thread_t
*
)
vout
subView
:
(
NSView
*
)
view
-
(
BOOL
)
setVout
:
(
vout_thread_t
*
)
vout
s
frame
:
(
NSRect
*
)
frame
ubView
:
(
NSView
*
)
view
frame
:
(
NSRect
*
)
frame
{
{
int
i_device
;
int
i_device
;
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
NSAutoreleasePool
*
o_pool
=
[[
NSAutoreleasePool
alloc
]
init
];
...
...
modules/gui/macosx/voutgl.m
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* voutgl.m: MacOS X OpenGL provider
* voutgl.m: MacOS X OpenGL provider
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001-2004 the VideoLAN team
* Copyright (C) 2001-2004
, 2007
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Colin Delacroix <colin@zoy.org>
* Authors: Colin Delacroix <colin@zoy.org>
...
@@ -1049,6 +1049,7 @@ static pascal OSStatus WindowEventHandler(EventHandlerCallRef nextHandler, Event
...
@@ -1049,6 +1049,7 @@ static pascal OSStatus WindowEventHandler(EventHandlerCallRef nextHandler, Event
static
int
aglLock
(
vout_thread_t
*
p_vout
)
static
int
aglLock
(
vout_thread_t
*
p_vout
)
{
{
#warning the following check is incorrect, needs testing!
#ifdef __ppc__
#ifdef __ppc__
/*
/*
* before 10.4, we set the AGL context as current and
* before 10.4, we set the AGL context as current and
...
@@ -1073,6 +1074,7 @@ static int aglLock( vout_thread_t * p_vout )
...
@@ -1073,6 +1074,7 @@ static int aglLock( vout_thread_t * p_vout )
static
void
aglUnlock
(
vout_thread_t
*
p_vout
)
static
void
aglUnlock
(
vout_thread_t
*
p_vout
)
{
{
#warning the following check is incorrect, needs testing!
#ifdef __ppc__
#ifdef __ppc__
/*
/*
* before 10.4, we assume that the AGL context is current.
* before 10.4, we assume that the AGL context is current.
...
...
modules/gui/macosx/voutqt.m
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* vout.m: MacOS X video output module
* vout.m: MacOS X video output module
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001-200
4
the VideoLAN team
* Copyright (C) 2001-200
7
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Colin Delacroix <colin@zoy.org>
* Authors: Colin Delacroix <colin@zoy.org>
...
...
modules/gui/macosx/wizard.h
View file @
f25e0c78
/*****************************************************************************
/*****************************************************************************
* wizard.h: MacOS X Streaming Wizard
* wizard.h: MacOS X Streaming Wizard
*****************************************************************************
*****************************************************************************
* Copyright (C) 2005-200
6
the VideoLAN team
* Copyright (C) 2005-200
7
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Felix Kühne <fkuehne@users.sf.net>
* Authors: Felix Kühne <fkuehne@users.sf.net>
...
@@ -181,7 +181,6 @@
...
@@ -181,7 +181,6 @@
-
(
void
)
createOpts
;
-
(
void
)
createOpts
;
-
(
void
)
rebuildCodecMenus
;
-
(
void
)
rebuildCodecMenus
;
-
(
id
)
getPlaylistWizard
;
-
(
id
)
getPlaylistWizard
;
-
(
void
)
initWithExtractValuesFrom
:
(
NSString
*
)
from
to
:
(
NSString
*
)
to
\
-
(
void
)
initWithExtractValuesFrom
:
(
NSString
*
)
from
to
:
(
NSString
*
)
to
ofItem
:
(
NSString
*
)
item
;
ofItem
:
(
NSString
*
)
item
;
@end
@end
modules/gui/macosx/wizard.m
View file @
f25e0c78
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment