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
c713876f
Commit
c713876f
authored
Jul 26, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/wxwindows/open.cpp: move the "open subtitles" line into the file panel.
parent
b4f05bc9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
30 deletions
+34
-30
modules/gui/wxwindows/open.cpp
modules/gui/wxwindows/open.cpp
+34
-30
No files found.
modules/gui/wxwindows/open.cpp
View file @
c713876f
...
...
@@ -2,7 +2,7 @@
* open.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: open.cpp,v 1.3
4 2003/07/26 12:41:52
gbazin Exp $
* $Id: open.cpp,v 1.3
5 2003/07/26 14:19:04
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -188,30 +188,6 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent,
wxU
(
_
(
"Alternatively, you can build an MRL using one of the "
"following predefined targets:"
))
);
/* Create Subtitles File checkox */
wxFlexGridSizer
*
subsfile_sizer
=
new
wxFlexGridSizer
(
2
,
1
,
20
);
subsfile_checkbox
=
new
wxCheckBox
(
panel
,
SubsFileEnable_Event
,
wxU
(
_
(
"Subtitles file"
))
);
subsfile_checkbox
->
SetToolTip
(
wxU
(
_
(
"Load an additional subtitles file. "
"Currently only works with AVI files."
))
);
subsfile_sizer
->
Add
(
subsfile_checkbox
,
0
,
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
subsfile_button
=
new
wxButton
(
panel
,
SubsFileSettings_Event
,
wxU
(
_
(
"Settings..."
))
);
subsfile_button
->
Disable
();
char
*
psz_subsfile
=
config_GetPsz
(
p_intf
,
"sub-file"
);
if
(
psz_subsfile
&&
*
psz_subsfile
)
{
subsfile_checkbox
->
SetValue
(
TRUE
);
subsfile_button
->
Enable
();
subsfile_mrl
.
Add
(
wxString
(
wxT
(
"sub-file="
))
+
wxU
(
psz_subsfile
)
);
}
if
(
psz_subsfile
)
free
(
psz_subsfile
);
subsfile_sizer
->
Add
(
subsfile_button
,
1
,
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
);
/* Create Stream Output checkox */
wxFlexGridSizer
*
sout_sizer
=
new
wxFlexGridSizer
(
2
,
1
,
20
);
sout_checkbox
=
new
wxCheckBox
(
panel
,
SoutEnable_Event
,
...
...
@@ -242,7 +218,7 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent,
wxU
(
_
(
"Capture the stream you are playing to a file"
))
);
demuxdump_textctrl
=
new
wxTextCtrl
(
panel
,
DemuxDump_Event
,
wxT
(
""
),
wxDefaultPosition
,
wxDefaultSize
,
wxTE_PROCESS_ENTER
);
wxTE_PROCESS_ENTER
);
demuxdump_button
=
new
wxButton
(
panel
,
DemuxDumpBrowse_Event
,
wxU
(
_
(
"Browse..."
))
);
...
...
@@ -307,7 +283,6 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent,
panel_sizer
->
Add
(
mrl_sizer_sizer
,
0
,
wxEXPAND
,
5
);
panel_sizer
->
Add
(
label
,
0
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Add
(
notebook_sizer
,
1
,
wxEXPAND
|
wxALL
,
5
);
panel_sizer
->
Add
(
subsfile_sizer
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
panel_sizer
->
Add
(
sout_sizer
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
panel_sizer
->
Add
(
demuxdump_sizer
,
0
,
wxEXPAND
|
wxALIGN_LEFT
|
wxALL
,
5
);
panel_sizer
->
Add
(
static_line
,
0
,
wxEXPAND
|
wxALL
,
5
);
...
...
@@ -355,15 +330,44 @@ wxPanel *OpenDialog::FilePanel( wxWindow* parent )
wxPanel
*
panel
=
new
wxPanel
(
parent
,
-
1
,
wxDefaultPosition
,
wxSize
(
200
,
200
)
);
wxBoxSizer
*
sizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxBoxSizer
*
sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
/* Create browse file line */
wxBoxSizer
*
file_sizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
file_combo
=
new
wxComboBox
(
panel
,
FileName_Event
,
wxT
(
""
),
wxPoint
(
20
,
25
),
wxSize
(
200
,
-
1
),
0
,
NULL
);
wxButton
*
browse_button
=
new
wxButton
(
panel
,
FileBrowse_Event
,
wxU
(
_
(
"Browse..."
))
);
sizer
->
Add
(
file_combo
,
1
,
wxALL
,
5
);
sizer
->
Add
(
browse_button
,
0
,
wxALL
,
5
);
file_sizer
->
Add
(
file_combo
,
1
,
wxALL
,
5
);
file_sizer
->
Add
(
browse_button
,
0
,
wxALL
,
5
);
/* Create Subtitles File checkox */
wxFlexGridSizer
*
subsfile_sizer
=
new
wxFlexGridSizer
(
2
,
1
,
20
);
subsfile_checkbox
=
new
wxCheckBox
(
panel
,
SubsFileEnable_Event
,
wxU
(
_
(
"Subtitles file"
))
);
subsfile_checkbox
->
SetToolTip
(
wxU
(
_
(
"Load an additional subtitles file. "
"Currently only works with AVI files."
))
);
subsfile_sizer
->
Add
(
subsfile_checkbox
,
0
,
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
subsfile_button
=
new
wxButton
(
panel
,
SubsFileSettings_Event
,
wxU
(
_
(
"Settings..."
))
);
subsfile_button
->
Disable
();
char
*
psz_subsfile
=
config_GetPsz
(
p_intf
,
"sub-file"
);
if
(
psz_subsfile
&&
*
psz_subsfile
)
{
subsfile_checkbox
->
SetValue
(
TRUE
);
subsfile_button
->
Enable
();
subsfile_mrl
.
Add
(
wxString
(
wxT
(
"sub-file="
))
+
wxU
(
psz_subsfile
)
);
}
if
(
psz_subsfile
)
free
(
psz_subsfile
);
subsfile_sizer
->
Add
(
subsfile_button
,
1
,
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
);
sizer
->
Add
(
file_sizer
,
0
,
wxEXPAND
|
wxALL
,
5
);
sizer
->
Add
(
subsfile_sizer
,
0
,
wxEXPAND
|
wxALL
,
5
);
panel
->
SetSizerAndFit
(
sizer
);
return
panel
;
}
...
...
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