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
dfa3b2c3
Commit
dfa3b2c3
authored
Nov 25, 2005
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* wxwidgets/dialogs/vlm: add choose input & choose output
parent
4a473a3e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
2 deletions
+34
-2
modules/gui/wxwidgets/dialogs/vlm/vlm_panel.cpp
modules/gui/wxwidgets/dialogs/vlm/vlm_panel.cpp
+25
-0
modules/gui/wxwidgets/dialogs/vlm/vlm_panel.hpp
modules/gui/wxwidgets/dialogs/vlm/vlm_panel.hpp
+8
-1
modules/gui/wxwidgets/interface.cpp
modules/gui/wxwidgets/interface.cpp
+1
-1
No files found.
modules/gui/wxwidgets/dialogs/vlm/vlm_panel.cpp
View file @
dfa3b2c3
...
...
@@ -291,6 +291,8 @@ enum
BEGIN_EVENT_TABLE
(
VLMAddStreamPanel
,
wxPanel
)
EVT_BUTTON
(
Create_Event
,
VLMAddStreamPanel
::
OnCreate
)
EVT_BUTTON
(
Clear_Event
,
VLMAddStreamPanel
::
OnClear
)
EVT_BUTTON
(
ChooseInput_Event
,
VLMAddStreamPanel
::
OnChooseInput
)
EVT_BUTTON
(
ChooseOutput_Event
,
VLMAddStreamPanel
::
OnChooseOutput
)
END_EVENT_TABLE
()
VLMAddStreamPanel
::
VLMAddStreamPanel
(
intf_thread_t
*
_p_intf
,
...
...
@@ -308,6 +310,8 @@ VLMAddStreamPanel::VLMAddStreamPanel( intf_thread_t *_p_intf,
wxBoxSizer
*
panel_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxFlexGridSizer
*
upper_sizer
=
new
wxFlexGridSizer
(
5
,
2
);
upper_sizer
->
AddGrowableCol
(
1
,
1
);
upper_sizer
->
AddGrowableCol
(
3
,
1
);
upper_sizer
->
Add
(
new
wxStaticText
(
this
,
-
1
,
wxU
(
_
(
"Name"
)
)
)
);
name_text
=
new
wxTextCtrl
(
this
,
-
1
,
wxU
(
_
(
""
)
),
wxDefaultPosition
,
...
...
@@ -413,6 +417,27 @@ void VLMAddStreamPanel::OnClear( wxCommandEvent &event )
output_text
->
SetValue
(
wxU
(
""
)
);
}
void
VLMAddStreamPanel
::
OnChooseInput
(
wxCommandEvent
&
event
)
{
if
(
p_open_dialog
==
NULL
)
p_open_dialog
=
new
OpenDialog
(
p_intf
,
this
,
-
1
,
-
1
,
OPEN_STREAM
);
if
(
p_open_dialog
&&
p_open_dialog
->
ShowModal
()
==
wxID_OK
)
{
input_text
->
SetValue
(
p_open_dialog
->
mrl
[
0
]
);
}
}
void
VLMAddStreamPanel
::
OnChooseOutput
(
wxCommandEvent
&
event
)
{
if
(
p_sout_dialog
==
NULL
)
p_sout_dialog
=
new
SoutDialog
(
p_intf
,
this
);
if
(
p_sout_dialog
&&
p_sout_dialog
->
ShowModal
()
==
wxID_OK
)
{
output_text
->
SetValue
(
(
p_sout_dialog
->
GetOptions
())[
0
]
);
}
}
/****************************************************************************
* VLM Frame implementation
...
...
modules/gui/wxwidgets/dialogs/vlm/vlm_panel.hpp
View file @
dfa3b2c3
...
...
@@ -25,6 +25,8 @@
#define _WXVLC_VLMPANEL_H_
#include "wxwidgets.hpp"
#include "dialogs/open.hpp"
#include "dialogs/streamout.hpp"
#include <wx/notebook.h>
#include <vector>
...
...
@@ -55,6 +57,8 @@ namespace wxvlc
private:
void
OnCreate
(
wxCommandEvent
&
);
void
OnClear
(
wxCommandEvent
&
);
void
OnChooseInput
(
wxCommandEvent
&
);
void
OnChooseOutput
(
wxCommandEvent
&
);
wxTextCtrl
*
name_text
;
wxTextCtrl
*
input_text
;
...
...
@@ -66,9 +70,12 @@ namespace wxvlc
intf_thread_t
*
p_intf
;
VLMWrapper
*
p_vlm
;
vlc_bool_t
b_edit
,
b_broadcast
;
OpenDialog
*
p_open_dialog
;
SoutDialog
*
p_sout_dialog
;
wxFileDialog
*
p_file_dialog
;
DECLARE_EVENT_TABLE
();
};
...
...
modules/gui/wxwidgets/interface.cpp
View file @
dfa3b2c3
...
...
@@ -472,7 +472,7 @@ void Interface::CreateOurMenuBar()
view_menu
->
Append
(
FileInfo_Event
,
wxU
(
_
(
"Stream and Media &info...
\t
Ctrl-I"
))
);
view_menu
->
Append
(
VLM_Event
,
wxU
(
_
(
"VLM Control...
\t
Ctrl-
I
"
))
);
wxU
(
_
(
"VLM Control...
\t
Ctrl-
V
"
))
);
/* Create the "Auto-generated" menus */
p_settings_menu
=
SettingsMenu
(
p_intf
,
this
);
...
...
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