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
7e96734b
Commit
7e96734b
authored
Dec 29, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: add mouse scroll support for fullscreen time slider
parent
a8bd7a32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
modules/gui/macosx/fspanel.h
modules/gui/macosx/fspanel.h
+3
-0
modules/gui/macosx/fspanel.m
modules/gui/macosx/fspanel.m
+6
-2
No files found.
modules/gui/macosx/fspanel.h
View file @
7e96734b
...
...
@@ -76,12 +76,15 @@
-
(
void
)
setVoutWasUpdated
:
(
VLCWindow
*
)
o_window
;
@end
@class
VLCProgressView
;
@interface
VLCFSPanelView
:
NSView
{
NSColor
*
fillColor
;
NSButton
*
o_prev
,
*
o_next
,
*
o_bwd
,
*
o_fwd
,
*
o_play
,
*
o_fullscreen
;
NSTextField
*
o_streamTitle_txt
,
*
o_streamPosition_txt
;
NSSlider
*
o_fs_timeSlider
,
*
o_fs_volumeSlider
;
VLCProgressView
*
o_progress_view
;
NSImage
*
o_background_img
,
*
o_vol_sld_img
,
*
o_vol_mute_img
,
*
o_vol_max_img
,
*
o_time_sld_img
;
NSTimeInterval
last_fwd_event
;
NSTimeInterval
last_bwd_event
;
...
...
modules/gui/macosx/fspanel.m
View file @
7e96734b
...
...
@@ -417,11 +417,14 @@
[
o_bwd
setContinuous
:
YES
];
/* time slider */
s_rc
=
[
self
frame
];
// (surrounding progress view for swipe behaviour)
s_rc
.
origin
.
x
=
15
;
s_rc
.
origin
.
y
=
45
;
s_rc
.
size
.
width
=
518
;
s_rc
.
size
.
height
=
13
;
o_progress_view
=
[[
VLCProgressView
alloc
]
initWithFrame
:
s_rc
];
s_rc
.
origin
.
x
=
0
;
s_rc
.
origin
.
y
=
0
;
o_fs_timeSlider
=
[[
VLCFSTimeSlider
alloc
]
initWithFrame
:
s_rc
];
[
o_fs_timeSlider
setMinValue
:
0
];
[
o_fs_timeSlider
setMaxValue
:
10000
];
...
...
@@ -431,7 +434,8 @@
[
o_fs_timeSlider
setAction
:
@selector
(
fsTimeSliderUpdate
:)];
[[
o_fs_volumeSlider
cell
]
accessibilitySetOverrideValue
:
_NS
(
"Position"
)
forAttribute
:
NSAccessibilityTitleAttribute
];
[[
o_fs_timeSlider
cell
]
accessibilitySetOverrideValue
:
_NS
(
"Click and move the mouse while keeping the button pressed to use this slider to change current playback position."
)
forAttribute
:
NSAccessibilityDescriptionAttribute
];
[
self
addSubview
:
o_fs_timeSlider
];
[
self
addSubview
:
o_progress_view
];
[
o_progress_view
addSubview
:
o_fs_timeSlider
];
/* volume slider */
s_rc
=
[
self
frame
];
...
...
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