Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8bc62265
Commit
8bc62265
authored
Apr 05, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/bookmarks.cpp: fixes.
parent
795654cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
modules/gui/wxwindows/bookmarks.cpp
modules/gui/wxwindows/bookmarks.cpp
+18
-8
No files found.
modules/gui/wxwindows/bookmarks.cpp
View file @
8bc62265
...
...
@@ -75,16 +75,18 @@ BookmarksDialog::BookmarksDialog( intf_thread_t *_p_intf, wxWindow *p_parent )
wxPoint
(
p_parent
->
GetParent
()
->
GetRect
().
GetX
(),
p_parent
->
GetParent
()
->
GetRect
().
GetY
()
+
p_parent
->
GetParent
()
->
GetRect
().
GetHeight
()
+
40
),
!
p_parent
->
GetParent
()
?
wxDefaultSize
:
wxSize
(
p_parent
->
GetParent
()
->
GetRect
().
GetWidth
(),
-
1
),
wxSize
(
500
,
-
1
),
wxDEFAULT_FRAME_STYLE
|
wxFRAME_FLOAT_ON_PARENT
)
{
/* Initializations */
p_intf
=
_p_intf
;
wxPanel
*
main_panel
=
new
wxPanel
(
this
,
-
1
);
wxBoxSizer
*
main_sizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxBoxSizer
*
sizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxPanel
*
panel
=
new
wxPanel
(
this
,
-
1
);
wxPanel
*
panel
=
new
wxPanel
(
main_panel
,
-
1
);
wxBoxSizer
*
panel_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxButton
*
button_add
=
new
wxButton
(
panel
,
ButtonAdd_Event
,
wxU
(
_
(
"Add"
))
);
...
...
@@ -97,7 +99,8 @@ BookmarksDialog::BookmarksDialog( intf_thread_t *_p_intf, wxWindow *p_parent )
panel_sizer
->
Add
(
button_clear
,
0
,
wxEXPAND
);
panel
->
SetSizerAndFit
(
panel_sizer
);
list_ctrl
=
new
wxListView
(
this
,
-
1
,
wxDefaultPosition
,
wxDefaultSize
,
list_ctrl
=
new
wxListView
(
main_panel
,
-
1
,
wxDefaultPosition
,
wxDefaultSize
,
wxLC_REPORT
|
wxSUNKEN_BORDER
|
wxLC_SINGLE_SEL
);
list_ctrl
->
InsertColumn
(
0
,
wxU
(
_
(
"Description"
))
);
...
...
@@ -105,9 +108,12 @@ BookmarksDialog::BookmarksDialog( intf_thread_t *_p_intf, wxWindow *p_parent )
list_ctrl
->
InsertColumn
(
1
,
wxU
(
_
(
"Size offset"
))
);
list_ctrl
->
InsertColumn
(
2
,
wxU
(
_
(
"Time offset"
))
);
sizer
->
Add
(
panel
,
0
,
wxEXPAND
|
wxALL
,
5
);
sizer
->
Add
(
list_ctrl
,
1
,
wxEXPAND
|
wxALL
,
5
);
SetSizer
(
sizer
);
sizer
->
Add
(
panel
,
0
,
wxEXPAND
|
wxALL
,
1
);
sizer
->
Add
(
list_ctrl
,
1
,
wxEXPAND
|
wxALL
,
1
);
main_panel
->
SetSizer
(
sizer
);
main_sizer
->
Add
(
main_panel
,
1
,
wxEXPAND
);
SetSizer
(
main_sizer
);
playlist_t
*
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
...
...
@@ -115,7 +121,9 @@ BookmarksDialog::BookmarksDialog( intf_thread_t *_p_intf, wxWindow *p_parent )
if
(
p_playlist
)
{
/* Some global changes happened -> Rebuild all */
var_AddCallback
(
p_playlist
,
"playlist-current"
,
PlaylistChanged
,
this
);
var_AddCallback
(
p_playlist
,
"playlist-current"
,
PlaylistChanged
,
this
);
vlc_object_release
(
p_playlist
);
}
}
...
...
@@ -128,6 +136,8 @@ BookmarksDialog::~BookmarksDialog()
{
/* Some global changes happened -> Rebuild all */
var_DelCallback
(
p_playlist
,
"intf-change"
,
PlaylistChanged
,
this
);
vlc_object_release
(
p_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