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
f7986362
Commit
f7986362
authored
Apr 19, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed a bunch of compilation warnings, which popped up using newer Xcode release
no functional changes
parent
1930ef47
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
43 deletions
+42
-43
modules/gui/macosx/MainMenu.m
modules/gui/macosx/MainMenu.m
+1
-1
modules/gui/macosx/PXSourceList.m
modules/gui/macosx/PXSourceList.m
+2
-2
modules/gui/macosx/VideoEffects.m
modules/gui/macosx/VideoEffects.m
+9
-9
modules/gui/macosx/coredialogs.m
modules/gui/macosx/coredialogs.m
+2
-2
modules/gui/macosx/open.m
modules/gui/macosx/open.m
+5
-5
modules/gui/macosx/output.m
modules/gui/macosx/output.m
+1
-2
modules/gui/macosx/prefs_widgets.m
modules/gui/macosx/prefs_widgets.m
+17
-17
modules/gui/macosx/wizard.m
modules/gui/macosx/wizard.m
+5
-5
No files found.
modules/gui/macosx/MainMenu.m
View file @
f7986362
...
...
@@ -508,7 +508,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
for
(
NSUInteger
i
=
0
;
i
<
count
;
i
++
)
{
s_rect
=
[[
o_screens
objectAtIndex
:
i
]
frame
];
[
o_submenu
addItemWithTitle
:
[
NSString
stringWithFormat
:
@"%@ %i (%ix%i)"
,
_NS
(
"Screen"
),
i
+
1
,
[
o_submenu
addItemWithTitle
:
[
NSString
stringWithFormat
:
@"%@ %
l
i (%ix%i)"
,
_NS
(
"Screen"
),
i
+
1
,
(
int
)
s_rect
.
size
.
width
,
(
int
)
s_rect
.
size
.
height
]
action
:
@selector
(
toggleFullscreenDevice
:
)
keyEquivalent
:
@""
];
o_mitem
=
[
o_submenu
itemAtIndex
:
i
+
1
];
[
o_mitem
setTag
:
(
int
)[[
o_screens
objectAtIndex
:
i
]
displayID
]];
...
...
modules/gui/macosx/PXSourceList.m
View file @
f7986362
...
...
@@ -350,7 +350,7 @@ NSString * const PXSLDeleteKeyPressedOnRowsNotification = @"PXSourceListDeleteKe
return
NSZeroSize
;
}
NSAttributedString
*
badgeAttrString
=
[[
NSAttributedString
alloc
]
initWithString
:[
NSString
stringWithFormat
:
@"%d"
,
[
self
badgeValueForItem
:
rowItem
]]
attributes
:[
NSDictionary
dictionaryWithObjectsAndKeys
:
BADGE_FONT
,
NSFontAttributeName
,
nil
]];
NSAttributedString
*
badgeAttrString
=
[[
NSAttributedString
alloc
]
initWithString
:[
NSString
stringWithFormat
:
@"%
l
d"
,
[
self
badgeValueForItem
:
rowItem
]]
attributes
:[
NSDictionary
dictionaryWithObjectsAndKeys
:
BADGE_FONT
,
NSFontAttributeName
,
nil
]];
NSSize
stringSize
=
[
badgeAttrString
size
];
//Calculate the width needed to display the text or the minimum width if it's smaller
...
...
@@ -498,7 +498,7 @@ NSString * const PXSLDeleteKeyPressedOnRowsNotification = @"PXSourceListDeleteKe
[
badgePath
fill
];
//Draw the badge text
NSAttributedString
*
badgeAttrString
=
[[
NSAttributedString
alloc
]
initWithString
:[
NSString
stringWithFormat
:
@"%d"
,
[
self
badgeValueForItem
:
rowItem
]]
attributes
:
attributes
];
NSAttributedString
*
badgeAttrString
=
[[
NSAttributedString
alloc
]
initWithString
:[
NSString
stringWithFormat
:
@"%
l
d"
,
[
self
badgeValueForItem
:
rowItem
]]
attributes
:
attributes
];
NSSize
stringSize
=
[
badgeAttrString
size
];
NSPoint
badgeTextPoint
=
NSMakePoint
(
NSMidX
(
badgeFrame
)
-
(
stringSize
.
width
/
2
.
0
),
//Center in the badge frame
...
...
modules/gui/macosx/VideoEffects.m
View file @
f7986362
...
...
@@ -238,7 +238,7 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[
o_adjust_brightness_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%0.3f"
,
config_GetFloat
(
p_intf
,
"brightness"
)]];
[
o_adjust_contrast_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%0.3f"
,
config_GetFloat
(
p_intf
,
"contrast"
)]];
[
o_adjust_gamma_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%0.3f"
,
config_GetFloat
(
p_intf
,
"gamma"
)]];
[
o_adjust_hue_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%i"
,
config_GetInt
(
p_intf
,
"hue"
)]];
[
o_adjust_hue_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%
ll
i"
,
config_GetInt
(
p_intf
,
"hue"
)]];
[
o_adjust_saturation_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%0.3f"
,
config_GetFloat
(
p_intf
,
"saturation"
)]];
b_state
=
[
o_adjust_ckb
state
];
[
o_adjust_brightness_sld
setEnabled
:
b_state
];
...
...
@@ -258,7 +258,7 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[
o_sharpen_sld
setEnabled
:
[
o_sharpen_ckb
state
]];
[
o_sharpen_lbl
setEnabled
:
[
o_sharpen_ckb
state
]];
[
o_banding_sld
setIntValue
:
config_GetInt
(
p_intf
,
"gradfun-radius"
)];
[
o_banding_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%i"
,
config_GetInt
(
p_intf
,
"gradfun-radius"
)]];
[
o_banding_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%
ll
i"
,
config_GetInt
(
p_intf
,
"gradfun-radius"
)]];
[
o_banding_sld
setEnabled
:
[
o_banding_ckb
state
]];
[
o_banding_lbl
setEnabled
:
[
o_banding_ckb
state
]];
[
o_grain_sld
setFloatValue
:
config_GetFloat
(
p_intf
,
"grain-variance"
)];
...
...
@@ -293,11 +293,11 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[
o_puzzle_columns_lbl
setEnabled
:
b_state
];
[
o_puzzle_blackslot_ckb
setEnabled
:
b_state
];
[
o_threshold_color_fld
setStringValue
:
[[
NSString
stringWithFormat
:
@"%x"
,
config_GetInt
(
p_intf
,
"colorthres-color"
)]
uppercaseString
]];
[
o_threshold_color_fld
setStringValue
:
[[
NSString
stringWithFormat
:
@"%
ll
x"
,
config_GetInt
(
p_intf
,
"colorthres-color"
)]
uppercaseString
]];
[
o_threshold_saturation_sld
setIntValue
:
config_GetInt
(
p_intf
,
"colorthres-saturationthres"
)];
[
o_threshold_saturation_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%i"
,
config_GetInt
(
p_intf
,
"colorthres-saturationthres"
)]];
[
o_threshold_saturation_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%
ll
i"
,
config_GetInt
(
p_intf
,
"colorthres-saturationthres"
)]];
[
o_threshold_similarity_sld
setIntValue
:
config_GetInt
(
p_intf
,
"colorthres-similaritythres"
)];
[
o_threshold_similarity_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%i"
,
config_GetInt
(
p_intf
,
"colorthres-similaritythres"
)]];
[
o_threshold_similarity_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%
ll
i"
,
config_GetInt
(
p_intf
,
"colorthres-similaritythres"
)]];
b_state
=
[
o_threshold_ckb
state
];
[
o_threshold_color_fld
setEnabled
:
b_state
];
[
o_threshold_color_lbl
setEnabled
:
b_state
];
...
...
@@ -324,14 +324,14 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[
o_gradient_mode_lbl
setEnabled
:
b_state
];
[
o_gradient_cartoon_ckb
setEnabled
:
b_state
];
[
o_gradient_color_ckb
setEnabled
:
b_state
];
[
o_extract_fld
setStringValue
:
[[
NSString
stringWithFormat
:
@"%x"
,
config_GetInt
(
p_intf
,
"extract-component"
)]
uppercaseString
]];
[
o_extract_fld
setStringValue
:
[[
NSString
stringWithFormat
:
@"%
ll
x"
,
config_GetInt
(
p_intf
,
"extract-component"
)]
uppercaseString
]];
[
o_extract_fld
setEnabled
:
[
o_extract_ckb
state
]];
[
o_extract_lbl
setEnabled
:
[
o_extract_ckb
state
]];
[
o_posterize_fld
setIntValue
:
config_GetInt
(
p_intf
,
"posterize-level"
)];
[
o_posterize_fld
setEnabled
:
[
o_posterize_ckb
state
]];
[
o_posterize_lbl
setEnabled
:
[
o_posterize_ckb
state
]];
[
o_blur_sld
setIntValue
:
config_GetInt
(
p_intf
,
"blur-factor"
)];
[
o_blur_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%i"
,
config_GetInt
(
p_intf
,
"blur-factor"
)]];
[
o_blur_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%
ll
i"
,
config_GetInt
(
p_intf
,
"blur-factor"
)]];
[
o_blur_sld
setEnabled
:
[
o_blur_ckb
state
]];
[
o_blur_lbl
setEnabled
:
[
o_blur_ckb
state
]];
...
...
@@ -356,7 +356,7 @@ static VLCVideoEffects *_o_sharedInstance = nil;
}
[
o_addlogo_pos_pop
selectItemWithTag
:
config_GetInt
(
p_intf
,
"logo-position"
)];
[
o_addlogo_transparency_sld
setIntValue
:
config_GetInt
(
p_intf
,
"logo-opacity"
)];
[
o_addlogo_transparency_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%i"
,
config_GetInt
(
p_intf
,
"logo-opacity"
)]];
[
o_addlogo_transparency_sld
setToolTip
:
[
NSString
stringWithFormat
:
@"%
ll
i"
,
config_GetInt
(
p_intf
,
"logo-opacity"
)]];
b_state
=
[
o_addlogo_ckb
state
];
[
o_addlogo_pos_pop
setEnabled
:
b_state
];
[
o_addlogo_pos_lbl
setEnabled
:
b_state
];
...
...
@@ -752,7 +752,7 @@ static VLCVideoEffects *_o_sharedInstance = nil;
-
(
IBAction
)
transformModifierChanged
:(
id
)
sender
{
NSInteger
tag
=
[[
o_transform_pop
selectedItem
]
tag
];
char
*
psz_string
=
(
char
*
)[[
NSString
stringWithFormat
:
@"%i"
,
tag
]
UTF8String
];
char
*
psz_string
=
(
char
*
)[[
NSString
stringWithFormat
:
@"%
l
i"
,
tag
]
UTF8String
];
if
(
tag
==
1
)
psz_string
=
(
char
*
)
"hflip"
;
else
if
(
tag
==
2
)
...
...
modules/gui/macosx/coredialogs.m
View file @
f7986362
...
...
@@ -97,7 +97,7 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
dialog_fatal_t
*
p_dialog
=
[
o_value
pointerValue
];
NSAlert
*
o_alert
;
o_alert
=
[
NSAlert
alertWithMessageText
:
[
NSString
stringWithUTF8String
:
p_dialog
->
title
]
defaultButton
:
_NS
(
"OK"
)
alternateButton
:
nil
otherButton
:
nil
informativeTextWithFormat
:
[
NSString
stringWithUTF8String
:
p_dialog
->
message
]
];
o_alert
=
[
NSAlert
alertWithMessageText
:
[
NSString
stringWithUTF8String
:
p_dialog
->
title
]
defaultButton
:
_NS
(
"OK"
)
alternateButton
:
nil
otherButton
:
nil
informativeTextWithFormat
:
@"%s"
,
p_dialog
->
message
];
[
o_alert
setAlertStyle
:
NSCriticalAlertStyle
];
[
o_alert
runModal
];
}
...
...
@@ -116,7 +116,7 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
if
(
p_dialog
->
cancel
!=
NULL
)
o_cancel
=
[
NSString
stringWithUTF8String
:
p_dialog
->
cancel
];
o_alert
=
[
NSAlert
alertWithMessageText
:
[
NSString
stringWithUTF8String
:
p_dialog
->
title
]
defaultButton
:
o_yes
alternateButton
:
o_no
otherButton
:
o_cancel
informativeTextWithFormat
:
[
NSString
stringWithUTF8String
:
p_dialog
->
message
]
];
o_alert
=
[
NSAlert
alertWithMessageText
:
[
NSString
stringWithUTF8String
:
p_dialog
->
title
]
defaultButton
:
o_yes
alternateButton
:
o_no
otherButton
:
o_cancel
informativeTextWithFormat
:
@"%s"
,
p_dialog
->
message
];
[
o_alert
setAlertStyle
:
NSInformationalAlertStyle
];
i_returnValue
=
[
o_alert
runModal
];
...
...
modules/gui/macosx/open.m
View file @
f7986362
...
...
@@ -434,7 +434,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
@"subsdec-encoding=%@"
,
[
o_file_sub_encoding_pop
titleOfSelectedItem
]]];
[
o_options
addObject
:
[
NSString
stringWithFormat
:
@"subsdec-align=%i"
,
@"subsdec-align=%
l
i"
,
[
o_file_sub_align_pop
indexOfSelectedItem
]]];
p_item
=
config_FindConfig
(
VLC_OBJECT
(
p_intf
),
...
...
@@ -1086,9 +1086,9 @@ static VLCOpen *_o_sharedMainInstance = nil;
int
i_port
=
[
o_net_udp_port
intValue
];
if
(
[[
o_net_udp_protocol_mat
selectedCell
]
tag
]
==
0
)
o_mrl_string
=
[
NSString
stringWithString
:
@"udp://"
]
;
o_mrl_string
=
@"udp://"
;
else
o_mrl_string
=
[
NSString
stringWithString
:
@"rtp://"
]
;
o_mrl_string
=
@"rtp://"
;
if
(
i_port
!=
config_GetInt
(
p_intf
,
"server-port"
)
)
{
...
...
@@ -1144,9 +1144,9 @@ static VLCOpen *_o_sharedMainInstance = nil;
int
i_port
=
[
o_net_udp_port
intValue
];
if
(
[[
o_net_udp_protocol_mat
selectedCell
]
tag
]
==
0
)
o_mrl_string
=
[
NSString
stringWithString
:
@"udp://"
]
;
o_mrl_string
=
@"udp://"
;
else
o_mrl_string
=
[
NSString
stringWithString
:
@"rtp://"
]
;
o_mrl_string
=
@"rtp://"
;
if
(
i_port
!=
config_GetInt
(
p_intf
,
"server-port"
)
)
{
...
...
modules/gui/macosx/output.m
View file @
f7986362
...
...
@@ -372,8 +372,7 @@
{
NSMutableArray
*
o_sout_options
;
o_sout_options
=
[
NSArray
arrayWithObjects
:
[
NSString
stringWithString
:
@":demux=dump"
],
@":demux=dump"
,
[
NSString
stringWithFormat
:
@":demuxdump-file=%@"
,
[
o_file_field
stringValue
]],
...
...
modules/gui/macosx/prefs_widgets.m
View file @
f7986362
...
...
@@ -983,7 +983,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
psz_text
)
o_labelString
=
_NS
((
char
*
)
p_item
->
psz_text
);
else
o_labelString
=
[
NSString
stringWithString
:
@""
]
;
o_labelString
=
@""
;
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_textfieldTooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
...
...
@@ -992,7 +992,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
value
.
psz
)
o_textfieldString
=
_NS
((
char
*
)
p_item
->
value
.
psz
);
else
o_textfieldString
=
[
NSString
stringWithString
:
@""
]
;
o_textfieldString
=
@""
;
if
(
p_item
->
i_type
==
CONFIG_ITEM_PASSWORD
)
{
ADD_SECURETEXTFIELD
(
o_textfield
,
mainFrame
,
[
o_label
frame
].
size
.
width
+
2
,
...
...
@@ -1045,7 +1045,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
psz_value
)
o_textfieldString
=
_NS
(
psz_value
);
else
o_textfieldString
=
[
NSString
stringWithString
:
@""
]
;
o_textfieldString
=
@""
;
free
(
psz_value
);
[
super
resetValues
];
}
...
...
@@ -1073,7 +1073,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
psz_text
)
o_labelString
=
_NS
((
char
*
)
p_item
->
psz_text
);
else
o_labelString
=
[
NSString
stringWithString
:
@""
]
;
o_labelString
=
@""
;
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_textfieldTooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
...
...
@@ -1188,7 +1188,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
psz_text
)
o_labelString
=
_NS
((
char
*
)
p_item
->
psz_text
);
else
o_labelString
=
[
NSString
stringWithString
:
@""
]
;
o_labelString
=
@""
;
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
3
,
o_labelString
,
o_itemTooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
...
...
@@ -1203,7 +1203,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
value
.
psz
)
o_textfieldString
=
[
NSString
stringWithFormat
:
@"%s"
,
(
char
*
)
p_item
->
value
.
psz
];
else
o_textfieldString
=
[
NSString
stringWithString
:
@""
]
;
o_textfieldString
=
@""
;
ADD_TEXTFIELD
(
o_textfield
,
mainFrame
,
12
,
2
,
mainFrame
.
size
.
width
-
8
-
[
o_button
frame
].
size
.
width
,
o_itemTooltip
,
o_textfieldString
)
...
...
@@ -1271,7 +1271,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
psz_value
)
o_textfieldString
=
[
NSString
stringWithFormat
:
@"%s"
,
psz_value
];
else
o_textfieldString
=
[
NSString
stringWithString
:
@""
]
;
o_textfieldString
=
@""
;
free
(
psz_value
);
[
super
resetValues
];
...
...
@@ -1299,7 +1299,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
psz_text
)
o_labelString
=
_NS
((
char
*
)
p_item
->
psz_text
);
else
o_labelString
=
[
NSString
stringWithString
:
@""
]
;
o_labelString
=
@""
;
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
1
,
o_labelString
,
o_popupTooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
...
...
@@ -1469,7 +1469,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
psz_text
)
o_labelString
=
_NS
((
char
*
)
p_item
->
psz_text
);
else
o_labelString
=
[
NSString
stringWithString
:
@""
]
;
o_labelString
=
@""
;
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
...
...
@@ -1564,7 +1564,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
psz_text
)
o_labelString
=
_NS
((
char
*
)
p_item
->
psz_text
);
else
o_labelString
=
[
NSString
stringWithString
:
@""
]
;
o_labelString
=
@""
;
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_textfieldTooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
...
...
@@ -1664,7 +1664,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
psz_text
)
o_labelString
=
_NS
((
char
*
)
p_item
->
psz_text
);
else
o_labelString
=
[
NSString
stringWithString
:
@""
]
;
o_labelString
=
@""
;
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
...
...
@@ -1780,7 +1780,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
psz_text
)
o_labelString
=
_NS
((
char
*
)
p_item
->
psz_text
);
else
o_labelString
=
[
NSString
stringWithString
:
@""
]
;
o_labelString
=
@""
;
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
2
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
...
...
@@ -1873,7 +1873,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
psz_text
)
o_labelString
=
_NS
((
char
*
)
p_item
->
psz_text
);
else
o_labelString
=
[
NSString
stringWithString
:
@""
]
;
o_labelString
=
@""
;
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
...
...
@@ -1993,7 +1993,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
psz_text
)
o_labelString
=
_NS
((
char
*
)
p_item
->
psz_text
);
else
o_labelString
=
[
NSString
stringWithString
:
@""
]
;
o_labelString
=
@""
;
ADD_LABEL
(
o_label
,
mainFrame
,
[
o_checkbox
frame
].
size
.
width
,
0
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
...
...
@@ -2040,7 +2040,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
psz_text
)
o_labelString
=
_NS
((
char
*
)
p_item
->
psz_text
);
else
o_labelString
=
[
NSString
stringWithString
:
@""
]
;
o_labelString
=
@""
;
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
1
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
...
...
@@ -2177,7 +2177,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
psz_text
)
o_labelString
=
_NS
((
char
*
)
p_item
->
psz_text
);
else
o_labelString
=
[
NSString
stringWithString
:
@""
]
;
o_labelString
=
@""
;
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
...
...
@@ -2186,7 +2186,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
if
(
p_item
->
value
.
psz
)
o_textfieldString
=
_NS
((
char
*
)
p_item
->
value
.
psz
);
else
o_textfieldString
=
[
NSString
stringWithString
:
@""
]
;
o_textfieldString
=
@""
;
ADD_TEXTFIELD
(
o_textfield
,
mainFrame
,
[
o_label
frame
].
size
.
width
+
2
,
mainFrame
.
size
.
height
-
22
,
mainFrame
.
size
.
width
-
[
o_label
frame
].
size
.
width
-
2
,
o_tooltip
,
o_textfieldString
)
...
...
modules/gui/macosx/wizard.m
View file @
f7986362
...
...
@@ -1122,17 +1122,17 @@ static VLCWizard *_o_sharedInstance = nil;
if
(
[[
o_userSelections
objectForKey
:
@"pathToStrm"
]
count
]
>
1
)
NSBeginInformationalAlertSheet
(
_NS
(
"No folder selected"
),
_NS
(
"OK"
),
@""
,
@""
,
o_wizard_window
,
nil
,
nil
,
nil
,
nil
,
[
NSString
stringWithFormat
:
@"%@
\n\n
%@"
,
_NS
(
"A directory "
@"%@
\n\n
%@"
,
_NS
(
"A directory "
"where to save the files has to be selected."
),
_NS
(
"Enter either a valid path or use the
\"
Choose...
\"
"
"button to select a location."
)
]
);
"button to select a location."
));
else
NSBeginInformationalAlertSheet
(
_NS
(
"No file selected"
),
_NS
(
"OK"
),
@""
,
@""
,
o_wizard_window
,
nil
,
nil
,
nil
,
nil
,
[
NSString
stringWithFormat
:
@"%@
\n\n
%@"
,
_NS
(
"A file "
@"%@
\n\n
%@"
,
_NS
(
"A file "
"where to save the stream has to be selected."
),
_NS
(
"Enter either a valid path or use the
\"
Choose
\"
"
"button to select a location."
)
]
);
"button to select a location."
));
}
else
{
/* create a string containing the requested suffix for later usage */
NSString
*
theEncapFormat
=
[[
o_encapFormats
objectAtIndex
:
...
...
@@ -1423,7 +1423,7 @@ static VLCWizard *_o_sharedInstance = nil;
/* do only show the destination of the first item and add a counter, if needed */
if
(
[[
o_userSelections
objectForKey
:
@"trnscdFilePath"
]
count
]
>
1
)
[
o_t8_fld_saveFileTo
setStringValue
:
[
NSString
stringWithFormat
:
@"%@ (+%i)"
,
[
NSString
stringWithFormat
:
@"%@ (+%
l
i)"
,
[[
o_userSelections
objectForKey
:
@"trnscdFilePath"
]
objectAtIndex
:
0
],
([[
o_userSelections
objectForKey
:
@"trnscdFilePath"
]
count
]
-
1
)]];
else
...
...
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