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
00afb055
Commit
00afb055
authored
Mar 30, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/*: another bunch of improvements.
parent
a1e81377
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
18 deletions
+34
-18
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+6
-2
modules/gui/wxwindows/timer.cpp
modules/gui/wxwindows/timer.cpp
+28
-16
No files found.
modules/gui/wxwindows/interface.cpp
View file @
00afb055
...
...
@@ -2,7 +2,7 @@
* interface.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: interface.cpp,v 1.1
6 2003/03/26 00:56:22
gbazin Exp $
* $Id: interface.cpp,v 1.1
7 2003/03/30 19:56:11
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -156,6 +156,8 @@ Interface::Interface( intf_thread_t *_p_intf ):
/* Creation of the slider sub-window */
CreateOurSlider
();
frame_sizer
->
Add
(
slider_frame
,
1
,
wxGROW
,
0
);
frame_sizer
->
Hide
(
slider_frame
);
/* Creation of the status bar
* Helptext for menu items and toolbar tools will automatically get
...
...
@@ -318,7 +320,6 @@ void Interface::CreateOurSlider()
/* Create a new frame containing the slider */
slider_frame
=
new
wxPanel
(
this
,
-
1
,
wxDefaultPosition
,
wxDefaultSize
);
slider_frame
->
SetAutoLayout
(
TRUE
);
slider_frame
->
Hide
();
/* Create static box to surround the slider */
slider_box
=
new
wxStaticBox
(
slider_frame
,
-
1
,
""
);
...
...
@@ -335,6 +336,9 @@ void Interface::CreateOurSlider()
slider_sizer
->
Add
(
slider
,
1
,
wxGROW
|
wxALL
,
5
);
slider_sizer
->
Layout
();
slider_sizer
->
SetSizeHints
(
slider_frame
);
/* Hide the slider by default */
slider_frame
->
Hide
();
}
void
Interface
::
Open
(
int
i_access_method
)
...
...
modules/gui/wxwindows/timer.cpp
View file @
00afb055
...
...
@@ -2,7 +2,7 @@
* timer.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: timer.cpp,v 1.1
1 2003/03/26 00:56:22
gbazin Exp $
* $Id: timer.cpp,v 1.1
2 2003/03/30 19:56:11
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -98,6 +98,8 @@ static int wxSetupMenus( intf_thread_t * p_intf )
*****************************************************************************/
void
Timer
::
Notify
()
{
vlc_bool_t
b_pace_control
;
vlc_mutex_lock
(
&
p_intf
->
change_lock
);
/* If the "display popup" flag has changed */
...
...
@@ -120,28 +122,37 @@ void Timer::Notify()
p_intf
->
p_sys
->
p_input
=
(
input_thread_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
/* Show slider */
if
(
p_intf
->
p_sys
->
p_input
)
if
(
p_intf
->
p_sys
->
p_input
)
{
//if( p_intf->p_sys->p_input->stream.b_seekable )
{
p_main_interface
->
frame_sizer
->
Add
(
p_main_interface
->
slider_frame
,
1
,
wxGROW
,
0
);
p_main_interface
->
slider_frame
->
Show
();
p_main_interface
->
frame_sizer
->
Show
(
p_main_interface
->
slider_frame
);
p_main_interface
->
frame_sizer
->
Layout
();
p_main_interface
->
frame_sizer
->
Fit
(
p_main_interface
);
}
p_main_interface
->
statusbar
->
SetStatusText
(
p_intf
->
p_sys
->
p_input
->
psz_source
,
1
);
p_main_interface
->
TogglePlayButton
(
PLAYING_S
);
i_old_playing_status
=
PLAYING_S
;
}
/* control buttons for free pace streams */
b_pace_control
=
p_intf
->
p_sys
->
p_input
->
stream
.
b_pace_control
;
}
else
if
(
p_intf
->
p_sys
->
p_input
->
b_dead
)
{
/* Hide slider */
if
(
p_intf
->
p_sys
->
p_input
)
//if( p_intf->p_sys->p_input->stream.b_seekable
)
{
p_main_interface
->
slider_frame
->
Hide
();
p_main_interface
->
frame_sizer
->
Remov
e
(
p_main_interface
->
frame_sizer
->
Hid
e
(
p_main_interface
->
slider_frame
);
p_main_interface
->
frame_sizer
->
Layout
();
p_main_interface
->
frame_sizer
->
Fit
(
p_main_interface
);
...
...
@@ -181,7 +192,6 @@ void Timer::Notify()
/* Manage the slider */
if
(
p_input
->
stream
.
b_seekable
&&
p_intf
->
p_sys
->
b_playing
)
{
stream_position_t
position
;
/* Update the slider if the user isn't dragging it. */
...
...
@@ -191,17 +201,19 @@ void Timer::Notify()
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
input_Tell
(
p_input
,
&
position
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
if
(
position
.
i_size
)
{
p_intf
->
p_sys
->
i_slider_pos
=
(
SLIDER_MAX_POS
*
position
.
i_tell
)
/
position
.
i_size
;
p_main_interface
->
slider
->
SetValue
(
p_intf
->
p_sys
->
i_slider_pos
);
DisplayStreamDate
(
p_main_interface
->
slider_box
,
p_intf
,
DisplayStreamDate
(
p_main_interface
->
slider_box
,
p_intf
,
p_intf
->
p_sys
->
i_slider_pos
);
}
}
}
if
(
p_intf
->
p_sys
->
i_part
!=
p_input
->
stream
.
p_selected_area
->
i_part
)
...
...
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