Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b1c218b2
Commit
b1c218b2
authored
Sep 12, 2001
by
Tony Castley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Slider overflow and slider behaviour.
Also corrected the button status behavour.
parent
ee860753
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
10 deletions
+33
-10
plugins/beos/MediaControlView.cpp
plugins/beos/MediaControlView.cpp
+28
-5
plugins/beos/MediaControlView.h
plugins/beos/MediaControlView.h
+5
-5
No files found.
plugins/beos/MediaControlView.cpp
View file @
b1c218b2
...
...
@@ -2,7 +2,7 @@
* MediaControlView.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: MediaControlView.cpp,v 1.
1 2001/06/15 09:07:10
tcastley Exp $
* $Id: MediaControlView.cpp,v 1.
2 2001/09/12 01:31:37
tcastley Exp $
*
* Authors: Tony Castley <tony@castley.net>
*
...
...
@@ -147,13 +147,34 @@ void MediaControlView::MessageReceived(BMessage *message)
{
}
void
MediaControlView
::
SetProgress
(
float
position
)
void
MediaControlView
::
SetProgress
(
uint64
seek
,
uint64
size
)
{
p_seek
->
Set
Value
(
position
);
p_seek
->
Set
Position
((
float
)
seek
/
size
);
}
void
MediaControlView
::
SetStatus
(
int
status
,
int
rate
)
{
switch
(
status
)
{
case
PLAYING_S
:
case
FORWARD_S
:
case
BACKWARD_S
:
case
START_S
:
p_play
->
SetPlaying
();
break
;
case
PAUSE_S
:
p_play
->
SetPaused
();
break
;
case
UNDEF_S
:
case
NOT_STARTED_S
:
default:
p_play
->
SetStopped
();
break
;
}
if
(
rate
<
DEFAULT_RATE
)
{
intf_Msg
(
"Fastler Rate: %d"
,
rate
);
}
}
void
MediaControlView
::
SetEnabled
(
bool
enabled
)
...
...
@@ -167,12 +188,12 @@ void MediaControlView::SetEnabled(bool enabled)
p_seek
->
SetEnabled
(
enabled
);
}
int32
MediaControlView
::
GetSeekTo
()
u
int32
MediaControlView
::
GetSeekTo
()
{
return
p_seek
->
seekTo
;
}
int32
MediaControlView
::
GetVolume
()
u
int32
MediaControlView
::
GetVolume
()
{
return
p_vol
->
Value
();
}
...
...
@@ -248,7 +269,9 @@ SeekSlider::~SeekSlider()
void
SeekSlider
::
MouseDown
(
BPoint
where
)
{
BSlider
::
MouseDown
(
where
);
seekTo
=
ValueForPoint
(
where
);
fOwner
->
fScrubSem
=
create_sem
(
0
,
"Vlc::fScrubSem"
);
release_sem
(
fOwner
->
fScrubSem
);
fMouseDown
=
true
;
}
...
...
plugins/beos/MediaControlView.h
View file @
b1c218b2
...
...
@@ -2,7 +2,7 @@
* MediaControlView.h: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: MediaControlView.h,v 1.
1 2001/06/15 09:07:10
tcastley Exp $
* $Id: MediaControlView.h,v 1.
2 2001/09/12 01:31:37
tcastley Exp $
*
* Authors: Tony Castley <tony@castley.net>
*
...
...
@@ -36,12 +36,12 @@ public:
~
MediaControlView
();
virtual
void
MessageReceived
(
BMessage
*
message
);
void
SetProgress
(
float
position
);
void
SetProgress
(
uint64
seek
,
uint64
size
);
void
SetStatus
(
int
status
,
int
rate
);
void
SetEnabled
(
bool
);
int32
GetSeekTo
();
int32
GetVolume
();
uint32
GetSeekTo
();
uint32
GetVolume
();
sem_id
fScrubSem
;
bool
fSeeking
;
...
...
@@ -80,7 +80,7 @@ public:
thumb_style
thumbType
=
B_TRIANGLE_THUMB
);
~
SeekSlider
();
int32
seekTo
;
u
int32
seekTo
;
virtual
void
MouseDown
(
BPoint
);
virtual
void
MouseUp
(
BPoint
pt
);
virtual
void
MouseMoved
(
BPoint
pt
,
uint32
c
,
const
BMessage
*
m
);
...
...
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