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
4a814bf0
Commit
4a814bf0
authored
Dec 07, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwidgets: save embedded playlist size on exit.
parent
212f8afc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
+26
-6
modules/gui/wxwidgets/interface.cpp
modules/gui/wxwidgets/interface.cpp
+25
-6
modules/gui/wxwidgets/interface.hpp
modules/gui/wxwidgets/interface.hpp
+1
-0
No files found.
modules/gui/wxwidgets/interface.cpp
View file @
4a814bf0
...
...
@@ -127,13 +127,28 @@ public:
#else
wxCLIP_CHILDREN
|
wxSP_3DSASH
),
#endif
p_intf
(
_p_intf
),
i_sash_position
(
150
),
i_width
(
-
1
),
b_video
(
0
),
i_delay
(
0
)
p_intf
(
_p_intf
),
b_video
(
0
),
i_delay
(
0
)
{
SetSashSize
(
0
);
wxSize
size
=
wxSize
(
-
1
,
150
);
wxPoint
p
=
wxPoint
(
0
,
0
);
bool
b_dummy
;
WindowSettings
*
ws
=
p_intf
->
p_sys
->
p_window_settings
;
ws
->
GetSettings
(
WindowSettings
::
ID_SMALL_PLAYLIST
,
b_dummy
,
p
,
size
);
i_width
=
size
.
GetWidth
();
i_sash_position
=
size
.
GetHeight
();
b_show_on_start
=
!!
p
.
x
;
}
virtual
~
Splitter
()
{};
virtual
~
Splitter
()
{
WindowSettings
*
ws
=
p_intf
->
p_sys
->
p_window_settings
;
ws
->
SetSettings
(
WindowSettings
::
ID_SMALL_PLAYLIST
,
true
,
wxPoint
(
!!
GetWindow2
(),
0
),
wxSize
(
i_width
,
i_sash_position
)
);
};
virtual
bool
Split
(
wxWindow
*
window1
,
wxWindow
*
window2
)
{
...
...
@@ -151,6 +166,8 @@ public:
return
wxSplitterWindow
::
Unsplit
(
window
);
}
bool
ShowOnStart
()
{
return
b_show_on_start
;
}
private:
DECLARE_EVENT_TABLE
()
...
...
@@ -222,6 +239,7 @@ private:
int
i_width
;
vlc_bool_t
b_video
;
mtime_t
i_delay
;
vlc_bool_t
b_show_on_start
;
};
BEGIN_EVENT_TABLE
(
Splitter
,
wxSplitterWindow
)
...
...
@@ -446,6 +464,9 @@ Interface::Interface( intf_thread_t *_p_intf, long style ):
if
(
config_GetInt
(
p_intf
,
"wx-extended"
)
)
OnExtended
(
dummy
);
SetIntfMinSize
();
/* Show embedded playlist if requested */
if
(
splitter
->
ShowOnStart
()
)
OnSmallPlaylist
(
dummy
);
}
Interface
::~
Interface
()
...
...
@@ -1165,11 +1186,9 @@ void Interface::TogglePlayButton( int i_playing_status )
static
int
DoInteract
(
intf_thread_t
*
,
interaction_dialog_t
*
,
int
)
{
fprintf
(
stderr
,
"Doing interaction
\n
"
);
return
VLC_SUCCESS
;
}
#if wxUSE_DRAG_AND_DROP
/*****************************************************************************
* Definition of DragAndDrop class.
...
...
modules/gui/wxwidgets/interface.hpp
View file @
4a814bf0
...
...
@@ -191,6 +191,7 @@ namespace wxvlc
ID_FILE_INFO
,
ID_BOOKMARKS
,
ID_VIDEO
,
ID_SMALL_PLAYLIST
,
ID_MAX
,
};
...
...
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