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
a7eb9fc8
Commit
a7eb9fc8
authored
Jan 05, 2003
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Added a Close Window and a close box to our QuickTime video output.
parent
e1562106
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
6 deletions
+52
-6
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
+3
-1
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
...s/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
+0
-0
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+2
-1
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+21
-2
modules/gui/macosx/vout.h
modules/gui/macosx/vout.h
+3
-1
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+23
-1
No files found.
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
View file @
a7eb9fc8
...
...
@@ -7,7 +7,7 @@
<key>
IBEditorPositions
</key>
<dict>
<key>
29
</key>
<string>
407 753 308 44 0 0 1600 1178
</string>
<string>
266 466 308 44 0 0 1152 746
</string>
<key>
303
</key>
<string>
93 566 72 114 0 0 1600 1178
</string>
</dict>
...
...
@@ -15,6 +15,8 @@
<string>
291.0
</string>
<key>
IBOpenObjects
</key>
<array>
<integer>
29
</integer>
<integer>
636
</integer>
<integer>
21
</integer>
</array>
<key>
IBSystem Version
</key>
...
...
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
View file @
a7eb9fc8
No preview for this file type
modules/gui/macosx/intf.h
View file @
a7eb9fc8
...
...
@@ -2,7 +2,7 @@
* intf.h: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: intf.h,v 1.
9 2003/01/04 04:11:08 jlj
Exp $
* $Id: intf.h,v 1.
10 2003/01/05 01:55:07 massiot
Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -163,6 +163,7 @@ struct intf_sys_t
IBOutlet
id
o_mu_window
;
IBOutlet
id
o_mi_minimize
;
IBOutlet
id
o_mi_close_window
;
IBOutlet
id
o_mi_bring_atf
;
/* dock menu */
...
...
modules/gui/macosx/intf.m
View file @
a7eb9fc8
...
...
@@ -2,7 +2,7 @@
* intf.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: intf.m,v 1.1
7 2003/01/04 04:11:08 jlj
Exp $
* $Id: intf.m,v 1.1
8 2003/01/05 01:55:07 massiot
Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -249,7 +249,8 @@ static void Run( intf_thread_t *p_intf )
[
o_mi_subtitle
setTitle
:
_NS
(
"Subtitles"
)];
[
o_mu_window
setTitle
:
_NS
(
"Window"
)];
[
o_mi_minimize
setTitle
:
_NS
(
"Minimize"
)];
[
o_mi_minimize
setTitle
:
_NS
(
"Minimize Window"
)];
[
o_mi_close_window
setTitle
:
_NS
(
"Close Window"
)];
[
o_mi_bring_atf
setTitle
:
_NS
(
"Bring All to Front"
)];
/* dock menu */
...
...
@@ -304,8 +305,17 @@ static void Run( intf_thread_t *p_intf )
}
else
if
(
p_intf
->
p_sys
->
p_input
->
b_dead
)
{
vout_thread_t
*
p_vout
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
vlc_object_release
(
p_intf
->
p_sys
->
p_input
);
p_intf
->
p_sys
->
p_input
=
NULL
;
if
(
p_vout
!=
NULL
)
{
vlc_object_detach
(
p_vout
);
vlc_object_release
(
p_vout
);
vout_Destroy
(
p_vout
);
}
}
if
(
p_intf
->
p_sys
->
p_input
!=
NULL
)
...
...
@@ -461,6 +471,12 @@ static void Run( intf_thread_t *p_intf )
p_intf
->
p_sys
->
p_input
=
NULL
;
}
if
(
o_prefs
!=
nil
)
{
[
o_prefs
release
];
o_prefs
=
nil
;
}
/*
* Free playlists
*/
...
...
@@ -542,6 +558,7 @@ static void Run( intf_thread_t *p_intf )
[
o_mi_channels
setEnabled
:
FALSE
];
[
o_mi_device
setEnabled
:
FALSE
];
[
o_mi_screen
setEnabled
:
FALSE
];
[
o_mi_close_window
setEnabled
:
FALSE
];
}
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
...
...
@@ -801,6 +818,8 @@ static void Run( intf_thread_t *p_intf )
var:
"video-device"
selector
:
@selector
(
toggleVar
:
)];
vlc_object_release
(
(
vlc_object_t
*
)
p_vout
);
[
o_mi_close_window
setEnabled
:
TRUE
];
}
p_intf
->
p_sys
->
b_vout_update
=
0
;
...
...
modules/gui/macosx/vout.h
View file @
a7eb9fc8
...
...
@@ -2,7 +2,7 @@
* vout.h: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: vout.h,v 1.
3 2002/12/24 23:00:51
massiot Exp $
* $Id: vout.h,v 1.
4 2003/01/05 01:55:07
massiot Exp $
*
* Authors: Colin Delacroix <colin@zoy.org>
* Florian G. Pflug <fgp@phlo.org>
...
...
@@ -37,6 +37,8 @@
-
(
void
)
toggleFullscreen
;
-
(
BOOL
)
isFullscreen
;
-
(
BOOL
)
windowShouldClose
:(
id
)
sender
;
@end
/*****************************************************************************
...
...
modules/gui/macosx/vout.m
View file @
a7eb9fc8
...
...
@@ -2,7 +2,7 @@
* vout.m: MacOS X video output plugin
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: vout.m,v 1.
9 2002/12/25 02:23:36
massiot Exp $
* $Id: vout.m,v 1.
10 2003/01/05 01:55:07
massiot Exp $
*
* Authors: Colin Delacroix <colin@zoy.org>
* Florian G. Pflug <fgp@phlo.org>
...
...
@@ -317,6 +317,9 @@ void E_(CloseVideo) ( vlc_object_t *p_this )
msg_Err
(
p_vout
,
"unable to destroy window"
);
}
if
(
p_vout
->
p_sys
->
p_fullscreen_state
!=
NULL
)
EndFullScreen
(
p_vout
->
p_sys
->
p_fullscreen_state
,
NULL
);
ExitMovies
();
free
(
p_vout
->
p_sys
->
p_matrix
);
...
...
@@ -858,6 +861,24 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
}
}
/* This is actually the same as VLCControls::stop. */
-
(
BOOL
)
windowShouldClose
:(
id
)
sender
{
intf_thread_t
*
p_intf
=
[
NSApp
getIntf
];
playlist_t
*
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
==
NULL
)
{
return
NO
;
}
playlist_Stop
(
p_playlist
);
vlc_object_release
(
p_playlist
);
/* The window will be closed by the intf later. */
return
NO
;
}
@end
/*****************************************************************************
...
...
@@ -1016,6 +1037,7 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
{
unsigned
int
i_stylemask
=
NSTitledWindowMask
|
NSMiniaturizableWindowMask
|
NSClosableWindowMask
|
NSResizableWindowMask
;
[
p_vout
->
p_sys
->
o_window
...
...
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