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
bc03a973
Commit
bc03a973
authored
Jan 23, 2003
by
Boris Dorès
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- menus disabled by default
- cosmetic changes
parent
aeade697
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
19 deletions
+14
-19
modules/gui/win32/disc.cpp
modules/gui/win32/disc.cpp
+14
-11
modules/gui/win32/disc.dfm
modules/gui/win32/disc.dfm
+0
-8
No files found.
modules/gui/win32/disc.cpp
View file @
bc03a973
...
...
@@ -62,22 +62,12 @@ void __fastcall TDiscDlg::ButtonCancelClick( TObject *Sender )
//---------------------------------------------------------------------------
void
__fastcall
TDiscDlg
::
ButtonOkClick
(
TObject
*
Sender
)
{
AnsiString
Device
,
Source
,
Method
,
Title
,
Chapter
;
AnsiString
Device
,
Source
;
Hide
();
Device
=
EditDevice
->
Text
;
/* Check which method was activated */
if
(
RadioGroupType
->
ItemIndex
==
0
)
Method
=
"dvdold"
;
else
Method
=
"vcd"
;
/* Select title and chapter */
Title
.
sprintf
(
"%d"
,
SpinEditTitle
->
Value
);
Chapter
.
sprintf
(
"%d"
,
SpinEditChapter
->
Value
);
/* Build source name and add it to playlist */
if
(
CheckBoxMenus
->
Checked
&&
RadioGroupType
->
ItemIndex
==
0
)
{
...
...
@@ -85,8 +75,21 @@ void __fastcall TDiscDlg::ButtonOkClick( TObject *Sender )
}
else
{
AnsiString
Method
,
Title
,
Chapter
;
/* Select title and chapter */
Title
.
sprintf
(
"%d"
,
SpinEditTitle
->
Value
);
Chapter
.
sprintf
(
"%d"
,
SpinEditChapter
->
Value
);
/* Select access method */
if
(
RadioGroupType
->
ItemIndex
==
0
)
Method
=
"dvdold"
;
else
Method
=
"vcd"
;
/* build the MRL */
Source
=
Method
+
"://"
+
Device
+
"@"
+
Title
+
","
+
Chapter
;
}
msg_Dbg
(
p_intf
,
Source
.
c_str
());
p_intf
->
p_sys
->
p_playwin
->
Add
(
Source
,
PLAYLIST_APPEND
|
(
p_intf
->
p_sys
->
b_play_when_adding
?
PLAYLIST_GO
:
0
),
...
...
modules/gui/win32/disc.dfm
View file @
bc03a973
...
...
@@ -47,7 +47,6 @@ object DiscDlg: TDiscDlg
Width = 23
Height = 13
Caption = '&Title:'
Enabled = False
end
object LabelChapter: TLabel
Tag = 3
...
...
@@ -56,7 +55,6 @@ object DiscDlg: TDiscDlg
Width = 40
Height = 13
Caption = '&Chapter:'
Enabled = False
end
object SpinEditTitle: TCSpinEdit
Left = 56
...
...
@@ -64,8 +62,6 @@ object DiscDlg: TDiscDlg
Width = 73
Height = 22
TabStop = True
Color = clBtnFace
Enabled = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
...
...
@@ -84,8 +80,6 @@ object DiscDlg: TDiscDlg
Width = 73
Height = 22
TabStop = True
Color = clBtnFace
Enabled = False
MaxValue = 65535
MinValue = 1
ParentColor = False
...
...
@@ -98,8 +92,6 @@ object DiscDlg: TDiscDlg
Width = 97
Height = 17
Caption = '&Menus'
Checked = True
State = cbChecked
TabOrder = 0
OnClick = CheckBoxMenusClick
end
...
...
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