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
621eb734
Commit
621eb734
authored
Jun 02, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/playlist.cpp: better playlist window resizing.
parent
ff5829d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+6
-9
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+1
-2
No files found.
modules/gui/wxwindows/playlist.cpp
View file @
621eb734
...
...
@@ -320,6 +320,7 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
listview
->
SetColumnWidth
(
0
,
250
);
listview
->
InsertColumn
(
1
,
wxU
(
_
(
"Duration"
))
);
listview
->
SetColumnWidth
(
1
,
75
);
listview
->
Layout
();
/* Create the Up-Down buttons */
wxButton
*
up_button
=
...
...
@@ -338,7 +339,7 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
wxBoxSizer
*
panel_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
panel_sizer
->
Add
(
listview
,
1
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Add
(
bottom_sizer
,
0
,
wx
EXPAND
|
wx
ALL
,
5
);
panel_sizer
->
Add
(
bottom_sizer
,
0
,
wxALL
,
5
);
panel_sizer
->
Layout
();
playlist_panel
->
SetSizerAndFit
(
panel_sizer
);
...
...
@@ -371,19 +372,15 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
/* Update the playlist */
Rebuild
();
DoSize
();
}
void
Playlist
::
OnSize
(
wxSizeEvent
&
event
)
{
DoSize
();
event
.
Skip
();
}
void
Playlist
::
DoSize
()
{
wxSize
size
=
GetClientSize
();
if
(
listview
)
listview
->
SetSize
(
0
,
0
,
size
.
x
,
size
.
y
*
4
/
5
);
if
(
listview
)
listview
->
SetColumnWidth
(
0
,
size
.
x
-
listview
->
GetColumnWidth
(
1
)
-
15
/* margins */
);
event
.
Skip
();
}
Playlist
::~
Playlist
()
...
...
modules/gui/wxwindows/wxwindows.h
View file @
621eb734
...
...
@@ -677,8 +677,7 @@ private:
/* Event handlers (these functions should _not_ be virtual) */
void
OnSize
(
wxSizeEvent
&
event
);
void
DoSize
();
void
OnSize
(
wxSizeEvent
&
event
);
void
OnAddFile
(
wxCommandEvent
&
event
);
void
OnAddMRL
(
wxCommandEvent
&
event
);
...
...
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