Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
91467d76
Commit
91467d76
authored
Jul 06, 2008
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show tooltips on virtually all labels (except for the min/max ones next to sliders)
parent
189d534f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
51 deletions
+59
-51
modules/gui/macosx/prefs_widgets.m
modules/gui/macosx/prefs_widgets.m
+59
-51
No files found.
modules/gui/macosx/prefs_widgets.m
View file @
91467d76
...
@@ -248,7 +248,8 @@
...
@@ -248,7 +248,8 @@
[o_menu addItem: o_mi]; \
[o_menu addItem: o_mi]; \
}
}
#define ADD_LABEL( o_label, superFrame, x_offset, my_y_offset, label ) \
#define ADD_LABEL( o_label, superFrame, x_offset, my_y_offset, label, \
tooltip ) \
{ \
{ \
NSRect s_rc = superFrame; \
NSRect s_rc = superFrame; \
s_rc.size.height = 17; \
s_rc.size.height = 17; \
...
@@ -260,6 +261,7 @@
...
@@ -260,6 +261,7 @@
[o_label setEditable: NO]; \
[o_label setEditable: NO]; \
[o_label setSelectable: NO]; \
[o_label setSelectable: NO]; \
[o_label setStringValue: label]; \
[o_label setStringValue: label]; \
[o_label setToolTip: tooltip]; \
[o_label setFont:[NSFont systemFontOfSize:0]]; \
[o_label setFont:[NSFont systemFontOfSize:0]]; \
[o_label sizeToFit]; \
[o_label sizeToFit]; \
}
}
...
@@ -989,20 +991,21 @@
...
@@ -989,20 +991,21 @@
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
i_view_type
=
CONFIG_ITEM_STRING
;
i_view_type
=
CONFIG_ITEM_STRING
;
o_textfieldTooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString
:
(
char
*
)
p_item
->
psz_longtext
]
toWidth:
PREFS_WRAP
];
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_text
];
localizedString:
(
char
*
)
p_item
->
psz_text
];
else
else
o_labelString
=
[
NSString
stringWithString
:
@""
];
o_labelString
=
[
NSString
stringWithString
:
@""
];
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
)
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_textfieldTooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
[
self
addSubview
:
o_label
];
/* build the textfield */
/* build the textfield */
o_textfieldTooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString
:
(
char
*
)
p_item
->
psz_longtext
]
toWidth:
PREFS_WRAP
];
if
(
p_item
->
value
.
psz
)
if
(
p_item
->
value
.
psz
)
o_textfieldString
=
[[
VLCMain
sharedInstance
]
o_textfieldString
=
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
value
.
psz
];
localizedString:
(
char
*
)
p_item
->
value
.
psz
];
...
@@ -1059,20 +1062,22 @@
...
@@ -1059,20 +1062,22 @@
{
{
int
i_index
;
int
i_index
;
i_view_type
=
CONFIG_ITEM_STRING_LIST
;
i_view_type
=
CONFIG_ITEM_STRING_LIST
;
o_textfieldTooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_text
];
localizedString:
(
char
*
)
p_item
->
psz_text
];
else
else
o_labelString
=
[
NSString
stringWithString
:
@""
];
o_labelString
=
[
NSString
stringWithString
:
@""
];
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
)
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_textfieldTooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
[
self
addSubview
:
o_label
];
/* build the textfield */
/* build the textfield */
o_textfieldTooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
ADD_COMBO
(
o_combo
,
mainFrame
,
[
o_label
frame
].
size
.
width
,
ADD_COMBO
(
o_combo
,
mainFrame
,
[
o_label
frame
].
size
.
width
,
-
2
,
0
,
o_textfieldTooltip
)
-
2
,
0
,
o_textfieldTooltip
)
[
o_combo
setAutoresizingMask
:
NSViewWidthSizable
];
[
o_combo
setAutoresizingMask
:
NSViewWidthSizable
];
...
@@ -1137,8 +1142,7 @@
...
@@ -1137,8 +1142,7 @@
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
{
{
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSString
*
o_labelString
,
*
o_buttonTooltip
,
*
o_textfieldString
;
NSString
*
o_labelString
,
*
o_itemTooltip
,
*
o_textfieldString
;
NSString
*
o_textfieldTooltip
;
mainFrame
.
size
.
height
=
46
;
mainFrame
.
size
.
height
=
46
;
mainFrame
.
size
.
width
=
mainFrame
.
size
.
width
-
LEFTMARGIN
-
RIGHTMARGIN
;
mainFrame
.
size
.
width
=
mainFrame
.
size
.
width
-
LEFTMARGIN
-
RIGHTMARGIN
;
mainFrame
.
origin
.
x
=
LEFTMARGIN
;
mainFrame
.
origin
.
x
=
LEFTMARGIN
;
...
@@ -1148,6 +1152,10 @@
...
@@ -1148,6 +1152,10 @@
{
{
i_view_type
=
CONFIG_ITEM_FILE
;
i_view_type
=
CONFIG_ITEM_FILE
;
o_itemTooltip
=
[[
VLCMain
sharedInstance
]
wrapString:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
/* is it a directory */
/* is it a directory */
b_directory
=
(
[
self
getType
]
==
CONFIG_ITEM_DIRECTORY
)
?
YES
:
NO
;
b_directory
=
(
[
self
getType
]
==
CONFIG_ITEM_DIRECTORY
)
?
YES
:
NO
;
...
@@ -1157,30 +1165,24 @@
...
@@ -1157,30 +1165,24 @@
localizedString:
(
char
*
)
p_item
->
psz_text
];
localizedString:
(
char
*
)
p_item
->
psz_text
];
else
else
o_labelString
=
[
NSString
stringWithString
:
@""
];
o_labelString
=
[
NSString
stringWithString
:
@""
];
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
3
,
o_labelString
)
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
3
,
o_labelString
,
o_itemTooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
[
self
addSubview
:
o_label
];
/* build the button */
/* build the button */
o_buttonTooltip
=
[[
VLCMain
sharedInstance
]
ADD_RIGHT_BUTTON
(
o_button
,
mainFrame
,
0
,
0
,
o_itemTooltip
,
wrapString:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
ADD_RIGHT_BUTTON
(
o_button
,
mainFrame
,
0
,
0
,
o_buttonTooltip
,
_NS
(
"Browse..."
)
)
_NS
(
"Browse..."
)
)
[
o_button
setAutoresizingMask
:
NSViewMinXMargin
];
[
o_button
setAutoresizingMask
:
NSViewMinXMargin
];
[
self
addSubview
:
o_button
];
[
self
addSubview
:
o_button
];
/* build the textfield */
/* build the textfield */
o_textfieldTooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
if
(
p_item
->
value
.
psz
)
if
(
p_item
->
value
.
psz
)
o_textfieldString
=
[
NSString
stringWithFormat
:
@"%s"
,
(
char
*
)
p_item
->
value
.
psz
];
o_textfieldString
=
[
NSString
stringWithFormat
:
@"%s"
,
(
char
*
)
p_item
->
value
.
psz
];
else
else
o_textfieldString
=
[
NSString
stringWithString
:
@""
];
o_textfieldString
=
[
NSString
stringWithString
:
@""
];
ADD_TEXTFIELD
(
o_textfield
,
mainFrame
,
12
,
2
,
mainFrame
.
size
.
width
-
ADD_TEXTFIELD
(
o_textfield
,
mainFrame
,
12
,
2
,
mainFrame
.
size
.
width
-
8
-
[
o_button
frame
].
size
.
width
,
8
-
[
o_button
frame
].
size
.
width
,
o_
textfield
Tooltip
,
o_textfieldString
)
o_
item
Tooltip
,
o_textfieldString
)
[
o_textfield
setAutoresizingMask
:
NSViewWidthSizable
];
[
o_textfield
setAutoresizingMask
:
NSViewWidthSizable
];
[
self
addSubview
:
o_textfield
];
[
self
addSubview
:
o_textfield
];
}
}
...
@@ -1257,20 +1259,21 @@
...
@@ -1257,20 +1259,21 @@
module_t
*
p_parser
;
module_t
*
p_parser
;
i_view_type
=
CONFIG_ITEM_MODULE
;
i_view_type
=
CONFIG_ITEM_MODULE
;
o_popupTooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_text
];
localizedString:
(
char
*
)
p_item
->
psz_text
];
else
else
o_labelString
=
[
NSString
stringWithString
:
@""
];
o_labelString
=
[
NSString
stringWithString
:
@""
];
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
1
,
o_labelString
)
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
1
,
o_labelString
,
o_popupTooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
[
self
addSubview
:
o_label
];
/* build the popup */
/* build the popup */
o_popupTooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
ADD_POPUP
(
o_popup
,
mainFrame
,
[
o_label
frame
].
size
.
width
,
ADD_POPUP
(
o_popup
,
mainFrame
,
[
o_label
frame
].
size
.
width
,
-
2
,
0
,
o_popupTooltip
)
-
2
,
0
,
o_popupTooltip
)
[
o_popup
setAutoresizingMask
:
NSViewWidthSizable
];
[
o_popup
setAutoresizingMask
:
NSViewWidthSizable
];
...
@@ -1432,7 +1435,7 @@
...
@@ -1432,7 +1435,7 @@
localizedString:
(
char
*
)
p_item
->
psz_text
];
localizedString:
(
char
*
)
p_item
->
psz_text
];
else
else
o_labelString
=
[
NSString
stringWithString
:
@""
];
o_labelString
=
[
NSString
stringWithString
:
@""
];
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
)
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
[
self
addSubview
:
o_label
];
...
@@ -1514,20 +1517,21 @@
...
@@ -1514,20 +1517,21 @@
int
i_index
;
int
i_index
;
i_view_type
=
CONFIG_ITEM_STRING_LIST
;
i_view_type
=
CONFIG_ITEM_STRING_LIST
;
o_textfieldTooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_text
];
localizedString:
(
char
*
)
p_item
->
psz_text
];
else
else
o_labelString
=
[
NSString
stringWithString
:
@""
];
o_labelString
=
[
NSString
stringWithString
:
@""
];
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
)
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_textfieldTooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
[
self
addSubview
:
o_label
];
/* build the textfield */
/* build the textfield */
o_textfieldTooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
ADD_COMBO
(
o_combo
,
mainFrame
,
[
o_label
frame
].
size
.
width
,
ADD_COMBO
(
o_combo
,
mainFrame
,
[
o_label
frame
].
size
.
width
,
-
2
,
0
,
o_textfieldTooltip
)
-
2
,
0
,
o_textfieldTooltip
)
[
o_combo
setAutoresizingMask
:
NSViewWidthSizable
];
[
o_combo
setAutoresizingMask
:
NSViewWidthSizable
];
...
@@ -1603,20 +1607,21 @@
...
@@ -1603,20 +1607,21 @@
{
{
i_view_type
=
CONFIG_ITEM_RANGED_INTEGER
;
i_view_type
=
CONFIG_ITEM_RANGED_INTEGER
;
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_text
];
localizedString:
(
char
*
)
p_item
->
psz_text
];
else
else
o_labelString
=
[
NSString
stringWithString
:
@""
];
o_labelString
=
[
NSString
stringWithString
:
@""
];
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
)
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
[
self
addSubview
:
o_label
];
/* build the textfield */
/* build the textfield */
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
ADD_TEXTFIELD
(
o_textfield
,
mainFrame
,
[
o_label
frame
].
size
.
width
+
2
,
ADD_TEXTFIELD
(
o_textfield
,
mainFrame
,
[
o_label
frame
].
size
.
width
+
2
,
28
,
49
,
o_tooltip
,
@""
)
28
,
49
,
o_tooltip
,
@""
)
[
o_textfield
setIntValue
:
p_item
->
value
.
i
];
[
o_textfield
setIntValue
:
p_item
->
value
.
i
];
...
@@ -1629,7 +1634,7 @@
...
@@ -1629,7 +1634,7 @@
[
self
addSubview
:
o_textfield
];
[
self
addSubview
:
o_textfield
];
/* build the mintextfield */
/* build the mintextfield */
ADD_LABEL
(
o_textfield_min
,
mainFrame
,
12
,
-
30
,
@"-8888"
)
ADD_LABEL
(
o_textfield_min
,
mainFrame
,
12
,
-
30
,
@"-8888"
,
@""
)
[
o_textfield_min
setIntValue
:
p_item
->
min
.
i
];
[
o_textfield_min
setIntValue
:
p_item
->
min
.
i
];
[
o_textfield_min
setAutoresizingMask
:
NSViewMaxXMargin
];
[
o_textfield_min
setAutoresizingMask
:
NSViewMaxXMargin
];
[
o_textfield_min
setAlignment
:
NSRightTextAlignment
];
[
o_textfield_min
setAlignment
:
NSRightTextAlignment
];
...
@@ -1637,7 +1642,7 @@
...
@@ -1637,7 +1642,7 @@
/* build the maxtextfield */
/* build the maxtextfield */
ADD_LABEL
(
o_textfield_max
,
mainFrame
,
ADD_LABEL
(
o_textfield_max
,
mainFrame
,
mainFrame
.
size
.
width
-
31
,
-
30
,
@"8888"
)
mainFrame
.
size
.
width
-
31
,
-
30
,
@"8888"
,
@""
)
[
o_textfield_max
setIntValue
:
p_item
->
max
.
i
];
[
o_textfield_max
setIntValue
:
p_item
->
max
.
i
];
[
o_textfield_max
setAutoresizingMask
:
NSViewMinXMargin
];
[
o_textfield_max
setAutoresizingMask
:
NSViewMinXMargin
];
[
self
addSubview
:
o_textfield_max
];
[
self
addSubview
:
o_textfield_max
];
...
@@ -1723,7 +1728,7 @@
...
@@ -1723,7 +1728,7 @@
localizedString:
(
char
*
)
p_item
->
psz_text
];
localizedString:
(
char
*
)
p_item
->
psz_text
];
else
else
o_labelString
=
[
NSString
stringWithString
:
@""
];
o_labelString
=
[
NSString
stringWithString
:
@""
];
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
2
,
o_labelString
)
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
2
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
[
self
addSubview
:
o_label
];
...
@@ -1803,20 +1808,21 @@
...
@@ -1803,20 +1808,21 @@
{
{
i_view_type
=
CONFIG_ITEM_RANGED_INTEGER
;
i_view_type
=
CONFIG_ITEM_RANGED_INTEGER
;
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_text
];
localizedString:
(
char
*
)
p_item
->
psz_text
];
else
else
o_labelString
=
[
NSString
stringWithString
:
@""
];
o_labelString
=
[
NSString
stringWithString
:
@""
];
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
)
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
[
self
addSubview
:
o_label
];
/* build the textfield */
/* build the textfield */
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
ADD_TEXTFIELD
(
o_textfield
,
mainFrame
,
[
o_label
frame
].
size
.
width
+
2
,
ADD_TEXTFIELD
(
o_textfield
,
mainFrame
,
[
o_label
frame
].
size
.
width
+
2
,
28
,
49
,
o_tooltip
,
@""
)
28
,
49
,
o_tooltip
,
@""
)
[
o_textfield
setFloatValue
:
p_item
->
value
.
f
];
[
o_textfield
setFloatValue
:
p_item
->
value
.
f
];
...
@@ -1829,7 +1835,7 @@
...
@@ -1829,7 +1835,7 @@
[
self
addSubview
:
o_textfield
];
[
self
addSubview
:
o_textfield
];
/* build the mintextfield */
/* build the mintextfield */
ADD_LABEL
(
o_textfield_min
,
mainFrame
,
12
,
-
30
,
@"-8888"
)
ADD_LABEL
(
o_textfield_min
,
mainFrame
,
12
,
-
30
,
@"-8888"
,
@""
)
[
o_textfield_min
setFloatValue
:
p_item
->
min
.
f
];
[
o_textfield_min
setFloatValue
:
p_item
->
min
.
f
];
[
o_textfield_min
setAutoresizingMask
:
NSViewMaxXMargin
];
[
o_textfield_min
setAutoresizingMask
:
NSViewMaxXMargin
];
[
o_textfield_min
setAlignment
:
NSRightTextAlignment
];
[
o_textfield_min
setAlignment
:
NSRightTextAlignment
];
...
@@ -1837,7 +1843,7 @@
...
@@ -1837,7 +1843,7 @@
/* build the maxtextfield */
/* build the maxtextfield */
ADD_LABEL
(
o_textfield_max
,
mainFrame
,
mainFrame
.
size
.
width
-
31
,
ADD_LABEL
(
o_textfield_max
,
mainFrame
,
mainFrame
.
size
.
width
-
31
,
-
30
,
@"8888"
)
-
30
,
@"8888"
,
@""
)
[
o_textfield_max
setFloatValue
:
p_item
->
max
.
f
];
[
o_textfield_max
setFloatValue
:
p_item
->
max
.
f
];
[
o_textfield_max
setAutoresizingMask
:
NSViewMinXMargin
];
[
o_textfield_max
setAutoresizingMask
:
NSViewMinXMargin
];
[
self
addSubview
:
o_textfield_max
];
[
self
addSubview
:
o_textfield_max
];
...
@@ -1929,7 +1935,7 @@
...
@@ -1929,7 +1935,7 @@
localizedString:
(
char
*
)
p_item
->
psz_text
];
localizedString:
(
char
*
)
p_item
->
psz_text
];
else
else
o_labelString
=
[
NSString
stringWithString
:
@""
];
o_labelString
=
[
NSString
stringWithString
:
@""
];
ADD_LABEL
(
o_label
,
mainFrame
,
[
o_checkbox
frame
].
size
.
width
,
0
,
o_labelString
)
ADD_LABEL
(
o_label
,
mainFrame
,
[
o_checkbox
frame
].
size
.
width
,
0
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
[
self
addSubview
:
o_label
];
}
}
...
@@ -1964,20 +1970,21 @@
...
@@ -1964,20 +1970,21 @@
{
{
i_view_type
=
CONFIG_ITEM_KEY_AFTER_10_3
;
i_view_type
=
CONFIG_ITEM_KEY_AFTER_10_3
;
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_text
];
localizedString:
(
char
*
)
p_item
->
psz_text
];
else
else
o_labelString
=
[
NSString
stringWithString
:
@""
];
o_labelString
=
[
NSString
stringWithString
:
@""
];
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
1
,
o_labelString
)
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
1
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
[
self
addSubview
:
o_label
];
/* build the popup */
/* build the popup */
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
ADD_POPUP
(
o_popup
,
mainFrame
,
[
o_label
frame
].
origin
.
x
+
ADD_POPUP
(
o_popup
,
mainFrame
,
[
o_label
frame
].
origin
.
x
+
[
o_label
frame
].
size
.
width
+
3
,
[
o_label
frame
].
size
.
width
+
3
,
-
2
,
0
,
o_tooltip
)
-
2
,
0
,
o_tooltip
)
...
@@ -2094,20 +2101,21 @@ if( _p_item->i_type == CONFIG_ITEM_MODULE_LIST )
...
@@ -2094,20 +2101,21 @@ if( _p_item->i_type == CONFIG_ITEM_MODULE_LIST )
{
{
i_view_type
=
CONFIG_ITEM_MODULE_LIST
;
i_view_type
=
CONFIG_ITEM_MODULE_LIST
;
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_text
];
localizedString:
(
char
*
)
p_item
->
psz_text
];
else
else
o_labelString
=
[
NSString
stringWithString
:
@""
];
o_labelString
=
[
NSString
stringWithString
:
@""
];
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
)
ADD_LABEL
(
o_label
,
mainFrame
,
0
,
-
3
,
o_labelString
,
o_tooltip
)
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
o_label
setAutoresizingMask
:
NSViewNotSizable
];
[
self
addSubview
:
o_label
];
[
self
addSubview
:
o_label
];
/* build the textfield */
/* build the textfield */
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
if
(
p_item
->
value
.
psz
)
if
(
p_item
->
value
.
psz
)
o_textfieldString
=
[[
VLCMain
sharedInstance
]
o_textfieldString
=
[[
VLCMain
sharedInstance
]
localizedString:
(
char
*
)
p_item
->
value
.
psz
];
localizedString:
(
char
*
)
p_item
->
value
.
psz
];
...
...
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