Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
555be297
Commit
555be297
authored
Jan 04, 2008
by
Faustino Osuna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX/VLC_app: Make application responsible for window to fullscreen transition.
parent
11c628ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
extras/MacOSX/VLC_app/Sources/VLCBrowsableVideoView.h
extras/MacOSX/VLC_app/Sources/VLCBrowsableVideoView.h
+4
-1
extras/MacOSX/VLC_app/Sources/VLCBrowsableVideoView.m
extras/MacOSX/VLC_app/Sources/VLCBrowsableVideoView.m
+29
-1
No files found.
extras/MacOSX/VLC_app/Sources/VLCBrowsableVideoView.h
View file @
555be297
...
...
@@ -38,7 +38,8 @@
NSString
*
nodeKeyPath
;
NSString
*
contentKeyPath
;
id
selectedObject
;
BOOL
fullScreen
;
/* Actions on non-node items*/
id
target
;
SEL
action
;
...
...
@@ -51,6 +52,8 @@
@property
(
readonly
,
retain
)
id
selectedObject
;
@property
(
readwrite
)
BOOL
fullScreen
;
/* Set up a specific action to do, on items that don't have node.
* action first argument is the browsableVideoView. You can get the selected object,
* with -selectedObject */
...
...
extras/MacOSX/VLC_app/Sources/VLCBrowsableVideoView.m
View file @
555be297
...
...
@@ -62,6 +62,7 @@
-
(
NSArray
*
)
itemsTree
{
return
itemsTree
;
}
-
(
void
)
setItemsTree
:(
NSArray
*
)
newItemsTree
{
[
itemsTree
release
];
...
...
@@ -69,6 +70,26 @@
[
self
changeSelectedPath
:[[[
NSIndexPath
alloc
]
init
]
autorelease
]
withSelectedIndex
:
0
];
}
-
(
BOOL
)
fullScreen
{
return
[
super
isInFullScreenMode
];
}
-
(
void
)
setFullScreen
:(
BOOL
)
newFullScreen
{
if
(
newFullScreen
==
self
.
fullScreen
)
return
;
if
(
newFullScreen
)
{
[
super
enterFullScreenMode
:[[
self
window
]
screen
]
withOptions
:
nil
];
}
else
{
[
super
exitFullScreenModeWithOptions
:
nil
];
}
}
/* Initializer */
-
(
void
)
awakeFromNib
{
...
...
@@ -85,7 +106,6 @@
//[self changeSelectedIndex:0];
}
/* Hiding/Displaying the menu */
-
(
void
)
hideMenu
...
...
@@ -157,6 +177,14 @@
[
self
changeSelectedIndex
:
selectedIndex
+
1
];
}
-
(
void
)
mouseDown
:(
NSEvent
*
)
theEvent
{
if
([
theEvent
clickCount
]
!=
2
)
return
;
self
.
fullScreen
=
!
self
.
fullScreen
;
}
-
(
void
)
keyDown
:(
NSEvent
*
)
theEvent
{
if
(([[
theEvent
charactersIgnoringModifiers
]
characterAtIndex
:
0
]
==
13
)
&&
menuDisplayed
)
...
...
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