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
2c208e64
Commit
2c208e64
authored
Nov 23, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/*: additional small fixes.
parent
c7cf1f08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
11 deletions
+26
-11
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+8
-3
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+18
-8
No files found.
modules/gui/wxwindows/interface.cpp
View file @
2c208e64
...
...
@@ -2,7 +2,7 @@
* interface.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: interface.cpp,v 1.
8 2002/11/23 16:17:12
gbazin Exp $
* $Id: interface.cpp,v 1.
9 2002/11/23 18:42:59
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -156,10 +156,13 @@ Interface::Interface( intf_thread_t *_p_intf ):
SetTitle
(
COPYRIGHT_MESSAGE
);
/* Make sure we've got the right background colour */
SetBackgroundColour
(
slider_frame
->
GetBackgroundColour
()
);
/* Layout everything */
SetAutoLayout
(
TRUE
);
frame_sizer
->
Layout
();
frame_sizer
->
SetSizeHints
(
this
);
frame_sizer
->
Fit
(
this
);
/* Associate drop targets with the main interface */
SetDropTarget
(
new
DragAndDrop
(
p_intf
)
);
...
...
@@ -289,7 +292,7 @@ void Interface::CreateOurToolBar()
void
Interface
::
CreateOurSlider
()
{
/* Create a new frame containing the slider */
slider_frame
=
new
wxPanel
(
this
,
-
1
,
wxDefaultPosition
,
wx
Size
(
-
1
,
50
)
);
slider_frame
=
new
wxPanel
(
this
,
-
1
,
wxDefaultPosition
,
wx
DefaultSize
);
slider_frame
->
SetAutoLayout
(
TRUE
);
slider_frame
->
Hide
();
...
...
@@ -300,12 +303,14 @@ void Interface::CreateOurSlider()
wxStaticBoxSizer
*
slider_sizer
=
new
wxStaticBoxSizer
(
slider_box
,
wxHORIZONTAL
);
slider_frame
->
SetSizer
(
slider_sizer
);
slider_sizer
->
SetMinSize
(
-
1
,
50
);
/* Create slider */
slider
=
new
wxSlider
(
slider_frame
,
SliderScroll_Event
,
0
,
0
,
SLIDER_MAX_POS
,
wxDefaultPosition
,
wxDefaultSize
);
slider_sizer
->
Add
(
slider
,
1
,
wxGROW
|
wxALL
,
5
);
slider_sizer
->
Layout
();
slider_sizer
->
SetSizeHints
(
slider_frame
);
}
/*****************************************************************************
...
...
modules/gui/wxwindows/playlist.cpp
View file @
2c208e64
/*****************************************************************************
*
interface
.cpp : wxWindows plugin for vlc
*
playlist
.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $$
* $
Id: playlist.cpp,v 1.4 2002/11/23 18:42:59 gbazin Exp
$
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
*
...
...
@@ -10,7 +10,7 @@
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
-
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
...
...
@@ -120,12 +120,17 @@ Playlist::Playlist( intf_thread_t *_p_intf, Interface *_p_main_interface ):
/* Attach the menu bar to the frame */
SetMenuBar
(
menubar
);
/* Create a panel to put everything in */
wxPanel
*
playlist_panel
=
new
wxPanel
(
this
,
-
1
);
playlist_panel
->
SetAutoLayout
(
TRUE
);
/* Create the listview */
/* FIXME: the given size is arbitrary, and prevents us from resizing
* the window to smaller dimensions. But the sizers don't seem to adjust
* themselves to the size of a listview, and with a wxDefaultSize the
* playlist window is ridiculously small */
listview
=
new
wxListView
(
this
,
ListView_Event
,
wxDefaultPosition
,
listview
=
new
wxListView
(
playlist_panel
,
ListView_Event
,
wxDefaultPosition
,
wxSize
(
350
,
300
),
wxLC_REPORT
);
listview
->
InsertColumn
(
0
,
_
(
"Url"
)
);
listview
->
InsertColumn
(
1
,
_
(
"Duration"
)
);
...
...
@@ -133,16 +138,21 @@ Playlist::Playlist( intf_thread_t *_p_intf, Interface *_p_main_interface ):
listview
->
SetColumnWidth
(
1
,
100
);
/* Create the OK button */
ok_button
=
new
wxButton
(
this
,
wxID_OK
,
_
(
"OK"
)
);
ok_button
=
new
wxButton
(
playlist_panel
,
wxID_OK
,
_
(
"OK"
)
);
ok_button
->
SetDefault
();
/* Place everything in sizers */
wxBoxSizer
*
ok_button_sizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
ok_button_sizer
->
Add
(
ok_button
,
0
,
wxALL
,
5
);
ok_button_sizer
->
Layout
();
wxBoxSizer
*
main_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
main_sizer
->
Add
(
listview
,
1
,
wxEXPAND
|
wxALL
,
5
);
main_sizer
->
Add
(
ok_button_sizer
,
0
,
wxALIGN_CENTRE
);
wxBoxSizer
*
panel_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
panel_sizer
->
Add
(
listview
,
1
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Add
(
ok_button_sizer
,
0
,
wxALIGN_CENTRE
);
panel_sizer
->
Layout
();
playlist_panel
->
SetSizerAndFit
(
panel_sizer
);
main_sizer
->
Add
(
playlist_panel
,
1
,
wxGROW
,
0
);
main_sizer
->
Layout
();
SetSizerAndFit
(
main_sizer
);
/* Associate drop targets with the playlist */
...
...
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