Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
e77471fb
Commit
e77471fb
authored
Apr 04, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Timeshift checkbox in open dialog
parent
de30e639
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
modules/gui/wxwindows/open.cpp
modules/gui/wxwindows/open.cpp
+23
-3
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+1
-0
No files found.
modules/gui/wxwindows/open.cpp
View file @
e77471fb
...
...
@@ -69,7 +69,7 @@ enum
NetRadio1_Event
,
NetRadio2_Event
,
NetRadio3_Event
,
NetRadio4_Event
,
NetPort1_Event
,
NetPort2_Event
,
NetPort3_Event
,
NetAddr1_Event
,
NetAddr2_Event
,
NetAddr3_Event
,
NetAddr4_Event
,
NetForceIPv6_Event
,
NetForceIPv6_Event
,
NetTimeshift_Event
,
SubsFileEnable_Event
,
SubsFileSettings_Event
,
...
...
@@ -122,6 +122,7 @@ BEGIN_EVENT_TABLE(OpenDialog, wxDialog)
EVT_TEXT
(
NetAddr3_Event
,
OpenDialog
::
OnNetPanelChange
)
EVT_TEXT
(
NetAddr4_Event
,
OpenDialog
::
OnNetPanelChange
)
EVT_CHECKBOX
(
NetForceIPv6_Event
,
OpenDialog
::
OnNetPanelChange
)
EVT_CHECKBOX
(
NetTimeshift_Event
,
OpenDialog
::
OnNetPanelChange
)
/* Events generated by the subtitle file buttons */
EVT_CHECKBOX
(
SubsFileEnable_Event
,
OpenDialog
::
OnSubsFileEnable
)
...
...
@@ -770,6 +771,17 @@ wxPanel *OpenDialog::NetPanel( wxWindow* parent )
net_subpanels
[
i
]
->
SetSizerAndFit
(
subpanel_sizer
);
}
/* Timeshift */
wxPanel
*
timeshift_panel
=
new
wxPanel
(
panel
,
-
1
);
subpanel_sizer
=
new
wxFlexGridSizer
(
1
,
1
,
20
);
net_timeshift
=
new
wxCheckBox
(
timeshift_panel
,
NetTimeshift_Event
,
wxU
(
_
(
"Allow timeshifting"
))
);
subpanel_sizer
->
Add
(
net_timeshift
,
0
,
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
timeshift_panel
->
SetSizerAndFit
(
subpanel_sizer
);
net_timeshift
->
Enable
();
/* Stuff everything into the main panel */
for
(
i
=
0
;
i
<
4
;
i
++
)
{
...
...
@@ -778,6 +790,7 @@ wxPanel *OpenDialog::NetPanel( wxWindow* parent )
sizer
->
Add
(
net_subpanels
[
i
],
1
,
wxEXPAND
|
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
}
sizer
->
Add
(
timeshift_panel
);
sizer_row
->
Add
(
sizer
,
0
,
wxEXPAND
|
wxALL
,
5
);
...
...
@@ -935,6 +948,8 @@ void OpenDialog::UpdateMRL( int i_access_method )
caching_name
=
wxT
(
"rtsp-caching"
);
break
;
}
if
(
net_timeshift
->
IsEnabled
()
&&
net_timeshift
->
IsChecked
()
)
mrltemp
+=
wxT
(
" :access-filter=timeshift"
);
break
;
default:
...
...
@@ -1061,8 +1076,8 @@ void OpenDialog::OnOk( wxCommandEvent& WXUNUSED(event) )
}
}
int
i_id
=
playlist_AddItem
(
p_playlist
,
p_item
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
playlist_AddItem
(
p_playlist
,
p_item
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
if
(
b_start
)
{
...
...
@@ -1265,6 +1280,11 @@ void OpenDialog::OnNetTypeChange( wxCommandEvent& event )
net_radios
[
i
]
->
SetValue
(
event
.
GetId
()
==
(
NetRadio1_Event
+
i
)
);
net_subpanels
[
i
]
->
Enable
(
event
.
GetId
()
==
(
NetRadio1_Event
+
i
)
);
}
/* UDP Unicast or multicast -> timeshift */
if
(
i_net_type
==
0
||
i_net_type
==
1
)
net_timeshift
->
Enable
();
else
net_timeshift
->
Disable
();
UpdateMRL
(
NET_ACCESS
);
}
...
...
modules/gui/wxwindows/wxwindows.h
View file @
e77471fb
...
...
@@ -513,6 +513,7 @@ private:
wxSpinCtrl
*
net_ports
[
4
];
int
i_net_ports
[
4
];
wxTextCtrl
*
net_addrs
[
4
];
wxCheckBox
*
net_timeshift
;
wxCheckBox
*
net_ipv6
;
/* Controls for the subtitles file */
...
...
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