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
28c34206
Commit
28c34206
authored
Dec 16, 2003
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added field for RTSP in Network Stream open tab
parent
dd8a6acf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
32 deletions
+48
-32
modules/gui/wxwindows/open.cpp
modules/gui/wxwindows/open.cpp
+48
-32
No files found.
modules/gui/wxwindows/open.cpp
View file @
28c34206
...
...
@@ -2,7 +2,7 @@
* open.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001, 2003 VideoLAN
* $Id: open.cpp,v 1.5
6 2003/12/16 03:21:47 rocky
Exp $
* $Id: open.cpp,v 1.5
7 2003/12/16 09:14:22 courmisch
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -77,9 +77,9 @@ enum
DiscChapter_Event
,
NetType_Event
,
NetRadio1_Event
,
NetRadio2_Event
,
NetRadio3_Event
,
NetRadio1_Event
,
NetRadio2_Event
,
NetRadio3_Event
,
NetRadio4_Event
,
NetPort1_Event
,
NetPort2_Event
,
NetPort3_Event
,
NetAddr1_Event
,
NetAddr2_Event
,
NetAddr3_Event
,
NetAddr1_Event
,
NetAddr2_Event
,
NetAddr3_Event
,
NetAddr4_Event
,
NetForceIPv6_Event
,
#ifndef WIN32
...
...
@@ -122,6 +122,7 @@ BEGIN_EVENT_TABLE(OpenDialog, wxFrame)
EVT_RADIOBUTTON
(
NetRadio1_Event
,
OpenDialog
::
OnNetTypeChange
)
EVT_RADIOBUTTON
(
NetRadio2_Event
,
OpenDialog
::
OnNetTypeChange
)
EVT_RADIOBUTTON
(
NetRadio3_Event
,
OpenDialog
::
OnNetTypeChange
)
EVT_RADIOBUTTON
(
NetRadio4_Event
,
OpenDialog
::
OnNetTypeChange
)
EVT_TEXT
(
NetPort1_Event
,
OpenDialog
::
OnNetPanelChange
)
EVT_SPINCTRL
(
NetPort1_Event
,
OpenDialog
::
OnNetPanelChange
)
EVT_TEXT
(
NetPort2_Event
,
OpenDialog
::
OnNetPanelChange
)
...
...
@@ -130,6 +131,7 @@ BEGIN_EVENT_TABLE(OpenDialog, wxFrame)
EVT_SPINCTRL
(
NetPort3_Event
,
OpenDialog
::
OnNetPanelChange
)
EVT_TEXT
(
NetAddr2_Event
,
OpenDialog
::
OnNetPanelChange
)
EVT_TEXT
(
NetAddr3_Event
,
OpenDialog
::
OnNetPanelChange
)
EVT_TEXT
(
NetAddr4_Event
,
OpenDialog
::
OnNetPanelChange
)
EVT_CHECKBOX
(
NetForceIPv6_Event
,
OpenDialog
::
OnNetPanelChange
)
#ifndef WIN32
...
...
@@ -513,16 +515,17 @@ wxPanel *OpenDialog::NetPanel( wxWindow* parent )
wxSize
(
200
,
200
)
);
wxBoxSizer
*
sizer_row
=
new
wxBoxSizer
(
wxVERTICAL
);
wxFlexGridSizer
*
sizer
=
new
wxFlexGridSizer
(
2
,
3
,
20
);
wxFlexGridSizer
*
sizer
=
new
wxFlexGridSizer
(
2
,
4
,
20
);
static
const
wxString
net_type_array
[]
=
{
wxU
(
_
(
"UDP/RTP"
)),
wxU
(
_
(
"UDP/RTP Multicast"
)),
wxU
(
_
(
"HTTP/FTP/MMS"
))
wxU
(
_
(
"HTTP/FTP/MMS"
)),
wxU
(
_
(
"RTSP"
))
};
for
(
i
=
0
;
i
<
3
;
i
++
)
for
(
i
=
0
;
i
<
4
;
i
++
)
{
net_radios
[
i
]
=
new
wxRadioButton
(
panel
,
NetRadio1_Event
+
i
,
net_type_array
[
i
],
...
...
@@ -578,19 +581,23 @@ wxPanel *OpenDialog::NetPanel( wxWindow* parent )
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
);
net_subpanels
[
1
]
->
SetSizerAndFit
(
subpanel_sizer
);
/* HTTP row */
/* HTTP and RTSP rows */
for
(
i
=
2
;
i
<
4
;
i
++
)
{
subpanel_sizer
=
new
wxFlexGridSizer
(
2
,
1
,
20
);
label
=
new
wxStaticText
(
net_subpanels
[
2
],
-
1
,
wxU
(
_
(
"URL"
))
);
net_addrs
[
2
]
=
new
wxTextCtrl
(
net_subpanels
[
2
],
NetAddr3_Event
,
wxT
(
""
),
label
=
new
wxStaticText
(
net_subpanels
[
i
],
-
1
,
wxU
(
_
(
"URL"
))
);
net_addrs
[
i
]
=
new
wxTextCtrl
(
net_subpanels
[
i
],
NetAddr1_Event
+
i
,
wxT
((
i
==
2
)
?
""
:
"rtsp://"
),
wxDefaultPosition
,
wxSize
(
200
,
-
1
),
wxTE_PROCESS_ENTER
);
subpanel_sizer
->
Add
(
label
,
0
,
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
subpanel_sizer
->
Add
(
net_addrs
[
2
],
1
,
subpanel_sizer
->
Add
(
net_addrs
[
i
],
1
,
wxEXPAND
|
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
);
net_subpanels
[
2
]
->
SetSizerAndFit
(
subpanel_sizer
);
net_subpanels
[
i
]
->
SetSizerAndFit
(
subpanel_sizer
);
}
/* Stuff everything into the main panel */
for
(
i
=
0
;
i
<
3
;
i
++
)
for
(
i
=
0
;
i
<
4
;
i
++
)
{
sizer
->
Add
(
net_radios
[
i
],
0
,
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
...
...
@@ -792,7 +799,16 @@ void OpenDialog::UpdateMRL( int i_access_method )
{
mrltemp
=
wxT
(
"http"
)
+
demux
+
wxT
(
"://"
);
}
mrltemp
=
mrltemp
+
net_addrs
[
2
]
->
GetLineText
(
0
);
mrltemp
+=
net_addrs
[
2
]
->
GetLineText
(
0
);
break
;
case
3
:
/* RTSP access */
if
(
net_addrs
[
3
]
->
GetLineText
(
0
).
Find
(
"rtsp://"
)
!=
0
)
{
mrltemp
=
wxT
(
"rtsp"
)
+
demux
+
wxT
(
"://"
);
}
mrltemp
+=
net_addrs
[
3
]
->
GetLineText
(
0
);
break
;
}
break
;
...
...
@@ -1143,7 +1159,7 @@ void OpenDialog::OnNetTypeChange( wxCommandEvent& event )
i_net_type
=
event
.
GetId
()
-
NetRadio1_Event
;
for
(
i
=
0
;
i
<
3
;
i
++
)
for
(
i
=
0
;
i
<
4
;
i
++
)
{
net_radios
[
i
]
->
SetValue
(
event
.
GetId
()
==
(
NetRadio1_Event
+
i
)
);
net_subpanels
[
i
]
->
Enable
(
event
.
GetId
()
==
(
NetRadio1_Event
+
i
)
);
...
...
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