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
060244a8
Commit
060244a8
authored
May 06, 2005
by
Jérome Decoodt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: fix problems about advanced button
parent
18dffb2a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
109 additions
and
92 deletions
+109
-92
modules/gui/macosx/prefs.h
modules/gui/macosx/prefs.h
+1
-1
modules/gui/macosx/prefs.m
modules/gui/macosx/prefs.m
+40
-23
modules/gui/macosx/prefs_widgets.h
modules/gui/macosx/prefs_widgets.h
+18
-28
modules/gui/macosx/prefs_widgets.m
modules/gui/macosx/prefs_widgets.m
+50
-40
No files found.
modules/gui/macosx/prefs.h
View file @
060244a8
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
VLCTreeItem
*
o_parent
;
VLCTreeItem
*
o_parent
;
NSMutableArray
*
o_children
;
NSMutableArray
*
o_children
;
int
i_object_category
;
int
i_object_category
;
NS
View
*
o_view
;
NS
MutableArray
*
o_subviews
;
}
}
+
(
VLCTreeItem
*
)
rootItem
;
+
(
VLCTreeItem
*
)
rootItem
;
...
...
modules/gui/macosx/prefs.m
View file @
060244a8
...
@@ -227,7 +227,7 @@ static VLCTreeItem *o_root_item = nil;
...
@@ -227,7 +227,7 @@ static VLCTreeItem *o_root_item = nil;
o_parent
=
o_parent_item
;
o_parent
=
o_parent_item
;
o_children
=
o_children_array
;
o_children
=
o_children_array
;
i_object_category
=
i_category
;
i_object_category
=
i_category
;
o_
view
=
nil
;
o_
subviews
=
nil
;
}
}
return
(
self
);
return
(
self
);
}
}
...
@@ -464,18 +464,22 @@ static VLCTreeItem *o_root_item = nil;
...
@@ -464,18 +464,22 @@ static VLCTreeItem *o_root_item = nil;
advancedView
:(
vlc_bool_t
)
b_advanced
advancedView
:(
vlc_bool_t
)
b_advanced
{
{
fprintf
(
stderr
,
"[%s] showView
\n
"
,
[
o_name
UTF8String
]
);
fprintf
(
stderr
,
"[%s] showView
\n
"
,
[
o_name
UTF8String
]
);
if
(
o_view
==
nil
)
NSRect
s_vrc
;
NSView
*
o_view
;
s_vrc
=
[[
o_prefs_view
contentView
]
bounds
];
s_vrc
.
size
.
height
-=
4
;
o_view
=
[[
VLCFlippedView
alloc
]
initWithFrame
:
s_vrc
];
[
o_view
setAutoresizingMask
:
NSViewWidthSizable
|
NSViewHeightSizable
];
/* Create all subviews if it isn't already done because we cannot use setHiden for MacOS < 10.3*/
if
(
o_subviews
==
nil
)
{
{
intf_thread_t
*
p_intf
=
VLCIntf
;
intf_thread_t
*
p_intf
=
VLCIntf
;
vlc_list_t
*
p_list
;
vlc_list_t
*
p_list
;
module_t
*
p_parser
=
NULL
;
module_t
*
p_parser
=
NULL
;
module_config_t
*
p_item
;
module_config_t
*
p_item
;
NSRect
s_vrc
;
s_vrc
=
[[
o_prefs_view
contentView
]
bounds
];
s_vrc
.
size
.
height
-=
4
;
o_view
=
[[
VLCFlippedView
alloc
]
initWithFrame
:
s_vrc
];
[
o_view
setAutoresizingMask
:
NSViewWidthSizable
|
NSViewHeightSizable
];
o_subviews
=
[[
NSMutableArray
alloc
]
initWithCapacity
:
10
];
/* Get a pointer to the module */
/* Get a pointer to the module */
if
(
i_object_category
==
-
1
)
if
(
i_object_category
==
-
1
)
{
{
...
@@ -521,8 +525,6 @@ fprintf( stderr, "%s (%d) is ", p_item->psz_name, p_item->i_type );
...
@@ -521,8 +525,6 @@ fprintf( stderr, "%s (%d) is ", p_item->psz_name, p_item->i_type );
{
{
VLCConfigControl
*
o_control
=
nil
;
VLCConfigControl
*
o_control
=
nil
;
int
i_widget
=
0
;
int
i_widget
=
0
;
if
(
p_item
->
b_advanced
&&
(
!
b_advanced
)
)
break
;
switch
(
p_item
->
i_type
)
switch
(
p_item
->
i_type
)
{
{
case
CONFIG_ITEM_STRING
:
case
CONFIG_ITEM_STRING
:
...
@@ -583,15 +585,14 @@ fprintf( stderr, "***UNKNOWN***" );
...
@@ -583,15 +585,14 @@ fprintf( stderr, "***UNKNOWN***" );
calcVerticalMargin:
i_widget
lastItem
:
i_lastItem
];
calcVerticalMargin:
i_widget
lastItem
:
i_lastItem
];
o_control
=
[
VLCConfigControl
newControl
:
p_item
o_control
=
[
VLCConfigControl
newControl
:
p_item
withView:
o_view
withView:
o_view
yOffset:
i_yPos
yOffset:
i_yPos
];
lastItem:
i_lastItem
];
if
(
o_control
!=
nil
)
if
(
o_control
!=
nil
)
{
{
i_yPos
+=
[
o_control
frame
].
size
.
height
;
i_yPos
+=
[
o_control
frame
].
size
.
height
;
i_lastItem
=
i_widget
;
i_lastItem
=
i_widget
;
[
o_control
setAutoresizingMask
:
NSViewMaxYMargin
|
[
o_control
setAutoresizingMask
:
NSViewMaxYMargin
|
NSViewWidthSizable
];
NSViewWidthSizable
];
[
o_
view
addSubview
:
o_control
];
[
o_
subviews
addObject
:
o_control
];
}
}
}
}
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
...
@@ -722,15 +723,14 @@ fprintf( stderr, "***UNKNOWN***" );
...
@@ -722,15 +723,14 @@ fprintf( stderr, "***UNKNOWN***" );
calcVerticalMargin:
i_widget
lastItem
:
i_lastItem
];
calcVerticalMargin:
i_widget
lastItem
:
i_lastItem
];
o_control
=
[
VLCConfigControl
newControl
:
p_item
o_control
=
[
VLCConfigControl
newControl
:
p_item
withView:
o_view
withView:
o_view
yOffset:
i_yPos
yOffset:
i_yPos
];
lastItem:
i_lastItem
];
if
(
o_control
!=
nil
)
if
(
o_control
!=
nil
)
{
{
i_yPos
+=
[
o_control
frame
].
size
.
height
;
i_yPos
+=
[
o_control
frame
].
size
.
height
;
i_lastItem
=
i_widget
;
i_lastItem
=
i_widget
;
[
o_control
setAutoresizingMask
:
NSViewMaxYMargin
|
[
o_control
setAutoresizingMask
:
NSViewMaxYMargin
|
NSViewWidthSizable
];
NSViewWidthSizable
];
[
o_
view
addSubview
:
o_control
];
[
o_
subviews
addObject
:
o_control
];
}
}
}
}
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
...
@@ -744,25 +744,42 @@ fprintf( stderr, "\n" );
...
@@ -744,25 +744,42 @@ fprintf( stderr, "\n" );
vlc_list_release
(
p_list
);
vlc_list_release
(
p_list
);
}
}
}
}
else
{
NSRect
s_vrc
;
s_vrc
=
[[
o_prefs_view
contentView
]
bounds
];
s_vrc
.
size
.
height
-=
4
;
[
o_view
setFrame
:
s_vrc
];
}
if
(
o_view
!=
nil
)
if
(
o_view
!=
nil
)
{
int
i_lastItem
=
0
;
int
i_yPos
=
0
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
[
o_subviews
count
]
;
i
++
)
{
int
i_widget
;
VLCConfigControl
*
o_widget
=
[
o_subviews
objectAtIndex
:
i
];
if
(
(
[
o_widget
isAdvanced
]
)
&&
(
!
b_advanced
)
)
continue
;
i_widget
=
[
o_widget
getViewType
];
i_yPos
+=
[
VLCConfigControl
calcVerticalMargin
:
i_widget
lastItem:
i_lastItem
];
[
o_widget
setYPos
:
i_yPos
];
i_yPos
+=
[
o_widget
frame
].
size
.
height
;
i_lastItem
=
i_widget
;
[
o_widget
setAutoresizingMask
:
NSViewMaxYMargin
|
NSViewWidthSizable
];
[
o_view
addSubview
:
o_widget
];
}
[
o_prefs_view
setDocumentView
:
o_view
];
[
o_prefs_view
setDocumentView
:
o_view
];
}
return
o_view
;
return
o_view
;
}
}
-
(
void
)
applyChanges
-
(
void
)
applyChanges
{
{
unsigned
int
i
;
unsigned
int
i
;
if
(
o_
view
!=
nil
)
if
(
o_
subviews
!=
nil
)
{
{
//Item has been shown
//Item has been shown
fprintf
(
stderr
,
"[%s] applying changes
\n
"
,
[
o_name
cString
]);
fprintf
(
stderr
,
"[%s] applying changes
\n
"
,
[
o_name
cString
]);
NSArray
*
o_subviews
=
[
o_view
subviews
];
for
(
i
=
0
;
i
<
[
o_subviews
count
]
;
i
++
)
for
(
i
=
0
;
i
<
[
o_subviews
count
]
;
i
++
)
[[
o_subviews
objectAtIndex
:
i
]
applyChanges
];
[[
o_subviews
objectAtIndex
:
i
]
applyChanges
];
}
}
...
...
modules/gui/macosx/prefs_widgets.h
View file @
060244a8
...
@@ -35,15 +35,18 @@
...
@@ -35,15 +35,18 @@
char
*
psz_name
;
char
*
psz_name
;
NSTextField
*
o_label
;
NSTextField
*
o_label
;
int
i_type
;
int
i_type
;
int
i_view_type
;
vlc_bool_t
b_advanced
;
vlc_bool_t
b_advanced
;
}
}
+
(
VLCConfigControl
*
)
newControl
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
yOffset
:(
int
)
i_yPos
lastItem
:
(
int
)
i_lastItem
;
+
(
VLCConfigControl
*
)
newControl
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
yOffset
:(
int
)
i_yPos
;
-
(
id
)
initWithFrame
:
(
NSRect
)
frame
item
:
(
module_config_t
*
)
p_item
;
-
(
id
)
initWithFrame
:
(
NSRect
)
frame
item
:
(
module_config_t
*
)
p_item
;
-
(
NSString
*
)
getName
;
-
(
NSString
*
)
getName
;
-
(
int
)
getType
;
-
(
int
)
getType
;
-
(
int
)
getViewType
;
-
(
BOOL
)
isAdvanced
;
-
(
BOOL
)
isAdvanced
;
-
(
void
)
setYPos
:(
int
)
i_yPos
;
-
(
int
)
intValue
;
-
(
int
)
intValue
;
-
(
float
)
floatValue
;
-
(
float
)
floatValue
;
-
(
char
*
)
stringValue
;
-
(
char
*
)
stringValue
;
...
@@ -61,8 +64,7 @@ static NSMenu *o_keys_menu = nil;
...
@@ -61,8 +64,7 @@ static NSMenu *o_keys_menu = nil;
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
;
withLastItem
:
(
int
)
i_lastItem
;
@end
@end
...
@@ -73,8 +75,7 @@ static NSMenu *o_keys_menu = nil;
...
@@ -73,8 +75,7 @@ static NSMenu *o_keys_menu = nil;
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
;
withLastItem
:
(
int
)
i_lastItem
;
@end
@end
...
@@ -87,8 +88,7 @@ static NSMenu *o_keys_menu = nil;
...
@@ -87,8 +88,7 @@ static NSMenu *o_keys_menu = nil;
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
;
withLastItem
:
(
int
)
i_lastItem
;
-
(
IBAction
)
openFileDialog
:
(
id
)
sender
;
-
(
IBAction
)
openFileDialog
:
(
id
)
sender
;
-
(
void
)
pathChosenInPanel
:(
NSOpenPanel
*
)
o_sheet
withReturn
:(
int
)
i_return_code
contextInfo
:(
void
*
)
o_context_info
;
-
(
void
)
pathChosenInPanel
:(
NSOpenPanel
*
)
o_sheet
withReturn
:(
int
)
i_return_code
contextInfo
:(
void
*
)
o_context_info
;
...
@@ -102,8 +102,7 @@ static NSMenu *o_keys_menu = nil;
...
@@ -102,8 +102,7 @@ static NSMenu *o_keys_menu = nil;
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
;
withLastItem
:
(
int
)
i_lastItem
;
@end
@end
...
@@ -116,8 +115,7 @@ static NSMenu *o_keys_menu = nil;
...
@@ -116,8 +115,7 @@ static NSMenu *o_keys_menu = nil;
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
;
withLastItem
:
(
int
)
i_lastItem
;
-
(
IBAction
)
stepperChanged
:(
id
)
sender
;
-
(
IBAction
)
stepperChanged
:(
id
)
sender
;
-
(
void
)
textfieldChanged
:(
NSNotification
*
)
o_notification
;
-
(
void
)
textfieldChanged
:(
NSNotification
*
)
o_notification
;
...
@@ -130,8 +128,7 @@ static NSMenu *o_keys_menu = nil;
...
@@ -130,8 +128,7 @@ static NSMenu *o_keys_menu = nil;
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
;
withLastItem
:
(
int
)
i_lastItem
;
@end
@end
...
@@ -146,8 +143,7 @@ static NSMenu *o_keys_menu = nil;
...
@@ -146,8 +143,7 @@ static NSMenu *o_keys_menu = nil;
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
;
withLastItem
:
(
int
)
i_lastItem
;
-
(
IBAction
)
sliderChanged
:(
id
)
sender
;
-
(
IBAction
)
sliderChanged
:(
id
)
sender
;
-
(
void
)
textfieldChanged
:(
NSNotification
*
)
o_notification
;
-
(
void
)
textfieldChanged
:(
NSNotification
*
)
o_notification
;
...
@@ -160,8 +156,7 @@ static NSMenu *o_keys_menu = nil;
...
@@ -160,8 +156,7 @@ static NSMenu *o_keys_menu = nil;
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
;
withLastItem
:
(
int
)
i_lastItem
;
@end
@end
...
@@ -174,8 +169,7 @@ static NSMenu *o_keys_menu = nil;
...
@@ -174,8 +169,7 @@ static NSMenu *o_keys_menu = nil;
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
;
withLastItem
:
(
int
)
i_lastItem
;
-
(
IBAction
)
stepperChanged
:(
id
)
sender
;
-
(
IBAction
)
stepperChanged
:(
id
)
sender
;
-
(
void
)
textfieldChanged
:(
NSNotification
*
)
o_notification
;
-
(
void
)
textfieldChanged
:(
NSNotification
*
)
o_notification
;
...
@@ -192,8 +186,7 @@ static NSMenu *o_keys_menu = nil;
...
@@ -192,8 +186,7 @@ static NSMenu *o_keys_menu = nil;
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
;
withLastItem
:
(
int
)
i_lastItem
;
-
(
IBAction
)
sliderChanged
:(
id
)
sender
;
-
(
IBAction
)
sliderChanged
:(
id
)
sender
;
-
(
void
)
textfieldChanged
:(
NSNotification
*
)
o_notification
;
-
(
void
)
textfieldChanged
:(
NSNotification
*
)
o_notification
;
...
@@ -210,8 +203,7 @@ static NSMenu *o_keys_menu = nil;
...
@@ -210,8 +203,7 @@ static NSMenu *o_keys_menu = nil;
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
;
withLastItem
:
(
int
)
i_lastItem
;
@end
@end
...
@@ -222,8 +214,7 @@ static NSMenu *o_keys_menu = nil;
...
@@ -222,8 +214,7 @@ static NSMenu *o_keys_menu = nil;
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
;
withLastItem
:
(
int
)
i_lastItem
;
@end
@end
...
@@ -236,8 +227,7 @@ static NSMenu *o_keys_menu = nil;
...
@@ -236,8 +227,7 @@ static NSMenu *o_keys_menu = nil;
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
;
withLastItem
:
(
int
)
i_lastItem
;
@end
@end
...
...
modules/gui/macosx/prefs_widgets.m
View file @
060244a8
...
@@ -418,12 +418,20 @@ if( MACOS_VERSION >= 10.3 ) \
...
@@ -418,12 +418,20 @@ if( MACOS_VERSION >= 10.3 ) \
psz_name
=
strdup
(
p_item
->
psz_name
);
psz_name
=
strdup
(
p_item
->
psz_name
);
o_label
=
NULL
;
o_label
=
NULL
;
i_type
=
p_item
->
i_type
;
i_type
=
p_item
->
i_type
;
i_view_type
=
0
;
b_advanced
=
p_item
->
b_advanced
;
b_advanced
=
p_item
->
b_advanced
;
[
self
setAutoresizingMask
:
NSViewWidthSizable
|
NSViewMinYMargin
];
[
self
setAutoresizingMask
:
NSViewWidthSizable
|
NSViewMinYMargin
];
}
}
return
(
self
);
return
(
self
);
}
}
-
(
void
)
setYPos
:(
int
)
i_yPos
{
NSRect
frame
=
[
self
frame
];
frame
.
origin
.
y
=
i_yPos
;
[
self
setFrame
:
frame
];
}
-
(
void
)
dealloc
-
(
void
)
dealloc
{
{
if
(
o_label
)
[
o_label
release
];
if
(
o_label
)
[
o_label
release
];
...
@@ -826,7 +834,6 @@ if( MACOS_VERSION >= 10.3 ) \
...
@@ -826,7 +834,6 @@ if( MACOS_VERSION >= 10.3 ) \
+
(
VLCConfigControl
*
)
newControl
:
(
module_config_t
*
)
_p_item
+
(
VLCConfigControl
*
)
newControl
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
yOffset
:(
int
)
i_yPos
yOffset
:(
int
)
i_yPos
lastItem
:
(
int
)
i_lastItem
{
{
VLCConfigControl
*
p_control
=
NULL
;
VLCConfigControl
*
p_control
=
NULL
;
switch
(
_p_item
->
i_type
)
switch
(
_p_item
->
i_type
)
...
@@ -837,16 +844,14 @@ if( MACOS_VERSION >= 10.3 ) \
...
@@ -837,16 +844,14 @@ if( MACOS_VERSION >= 10.3 ) \
p_control
=
[[
StringConfigControl
alloc
]
p_control
=
[[
StringConfigControl
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
withView:
o_parent_view
withVerticalOffset:
i_yPos
withVerticalOffset:
i_yPos
];
withLastItem:
i_lastItem
];
}
}
else
else
{
{
p_control
=
[[
StringListConfigControl
alloc
]
p_control
=
[[
StringListConfigControl
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
withView:
o_parent_view
withVerticalOffset:
i_yPos
withVerticalOffset:
i_yPos
];
withLastItem:
i_lastItem
];
}
}
break
;
break
;
case
CONFIG_ITEM_FILE
:
case
CONFIG_ITEM_FILE
:
...
@@ -854,16 +859,14 @@ if( MACOS_VERSION >= 10.3 ) \
...
@@ -854,16 +859,14 @@ if( MACOS_VERSION >= 10.3 ) \
p_control
=
[[
FileConfigControl
alloc
]
p_control
=
[[
FileConfigControl
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
withView:
o_parent_view
withVerticalOffset:
i_yPos
withVerticalOffset:
i_yPos
];
withLastItem:
i_lastItem
];
break
;
break
;
case
CONFIG_ITEM_MODULE
:
case
CONFIG_ITEM_MODULE
:
case
CONFIG_ITEM_MODULE_CAT
:
case
CONFIG_ITEM_MODULE_CAT
:
p_control
=
[[
ModuleConfigControl
alloc
]
p_control
=
[[
ModuleConfigControl
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
withView:
o_parent_view
withVerticalOffset:
i_yPos
withVerticalOffset:
i_yPos
];
withLastItem:
i_lastItem
];
break
;
break
;
case
CONFIG_ITEM_INTEGER
:
case
CONFIG_ITEM_INTEGER
:
if
(
_p_item
->
i_list
)
if
(
_p_item
->
i_list
)
...
@@ -871,32 +874,28 @@ if( MACOS_VERSION >= 10.3 ) \
...
@@ -871,32 +874,28 @@ if( MACOS_VERSION >= 10.3 ) \
p_control
=
[[
IntegerListConfigControl
alloc
]
p_control
=
[[
IntegerListConfigControl
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
withView:
o_parent_view
withVerticalOffset:
i_yPos
withVerticalOffset:
i_yPos
];
withLastItem:
i_lastItem
];
}
}
else
if
(
_p_item
->
i_min
!=
0
||
_p_item
->
i_max
!=
0
)
else
if
(
_p_item
->
i_min
!=
0
||
_p_item
->
i_max
!=
0
)
{
{
p_control
=
[[
RangedIntegerConfigControl
alloc
]
p_control
=
[[
RangedIntegerConfigControl
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
withView:
o_parent_view
withVerticalOffset:
i_yPos
withVerticalOffset:
i_yPos
];
withLastItem:
i_lastItem
];
}
}
else
else
{
{
p_control
=
[[
IntegerConfigControl
alloc
]
p_control
=
[[
IntegerConfigControl
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
withView:
o_parent_view
withVerticalOffset:
i_yPos
withVerticalOffset:
i_yPos
];
withLastItem:
i_lastItem
];
}
}
break
;
break
;
case
CONFIG_ITEM_BOOL
:
case
CONFIG_ITEM_BOOL
:
p_control
=
[[
BoolConfigControl
alloc
]
p_control
=
[[
BoolConfigControl
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
withView:
o_parent_view
withVerticalOffset:
i_yPos
withVerticalOffset:
i_yPos
];
withLastItem:
i_lastItem
];
break
;
break
;
case
CONFIG_ITEM_FLOAT
:
case
CONFIG_ITEM_FLOAT
:
if
(
_p_item
->
f_min
!=
0
||
_p_item
->
f_max
!=
0
)
if
(
_p_item
->
f_min
!=
0
||
_p_item
->
f_max
!=
0
)
...
@@ -904,16 +903,14 @@ if( MACOS_VERSION >= 10.3 ) \
...
@@ -904,16 +903,14 @@ if( MACOS_VERSION >= 10.3 ) \
p_control
=
[[
RangedFloatConfigControl
alloc
]
p_control
=
[[
RangedFloatConfigControl
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
withView:
o_parent_view
withVerticalOffset:
i_yPos
withVerticalOffset:
i_yPos
];
withLastItem:
i_lastItem
];
}
}
else
else
{
{
p_control
=
[[
FloatConfigControl
alloc
]
p_control
=
[[
FloatConfigControl
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
withView:
o_parent_view
withVerticalOffset:
i_yPos
withVerticalOffset:
i_yPos
];
withLastItem:
i_lastItem
];
}
}
break
;
break
;
case
CONFIG_ITEM_KEY
:
case
CONFIG_ITEM_KEY
:
...
@@ -922,16 +919,14 @@ if( MACOS_VERSION >= 10.3 ) \
...
@@ -922,16 +919,14 @@ if( MACOS_VERSION >= 10.3 ) \
p_control
=
[[
KeyConfigControlBefore103
alloc
]
p_control
=
[[
KeyConfigControlBefore103
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
withView:
o_parent_view
withVerticalOffset:
i_yPos
withVerticalOffset:
i_yPos
];
withLastItem:
i_lastItem
];
}
}
else
else
{
{
p_control
=
[[
KeyConfigControlAfter103
alloc
]
p_control
=
[[
KeyConfigControlAfter103
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
withView:
o_parent_view
withVerticalOffset:
i_yPos
withVerticalOffset:
i_yPos
];
withLastItem:
i_lastItem
];
}
}
break
;
break
;
case
CONFIG_ITEM_MODULE_LIST
:
case
CONFIG_ITEM_MODULE_LIST
:
...
@@ -939,8 +934,7 @@ if( MACOS_VERSION >= 10.3 ) \
...
@@ -939,8 +934,7 @@ if( MACOS_VERSION >= 10.3 ) \
p_control
=
[[
ModuleListConfigControl
alloc
]
p_control
=
[[
ModuleListConfigControl
alloc
]
initWithItem:
_p_item
initWithItem:
_p_item
withView:
o_parent_view
withView:
o_parent_view
withVerticalOffset:
i_yPos
withVerticalOffset:
i_yPos
];
withLastItem:
i_lastItem
];
break
;
break
;
default:
default:
break
;
break
;
...
@@ -958,6 +952,11 @@ if( MACOS_VERSION >= 10.3 ) \
...
@@ -958,6 +952,11 @@ if( MACOS_VERSION >= 10.3 ) \
return
i_type
;
return
i_type
;
}
}
-
(
int
)
getViewType
{
return
i_view_type
;
}
-
(
BOOL
)
isAdvanced
-
(
BOOL
)
isAdvanced
{
{
return
b_advanced
;
return
b_advanced
;
...
@@ -1014,7 +1013,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1014,7 +1013,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
withLastItem
:
(
int
)
i_lastItem
{
{
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSString
*
o_labelString
,
*
o_textfieldString
,
*
o_textfieldTooltip
;
NSString
*
o_labelString
,
*
o_textfieldString
,
*
o_textfieldTooltip
;
...
@@ -1025,6 +1023,7 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1025,6 +1023,7 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
i_view_type
=
CONFIG_ITEM_STRING
;
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
...
@@ -1071,7 +1070,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1071,7 +1070,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
withLastItem
:
(
int
)
i_lastItem
{
{
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSString
*
o_labelString
,
*
o_textfieldTooltip
;
NSString
*
o_labelString
,
*
o_textfieldTooltip
;
...
@@ -1083,6 +1081,7 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1083,6 +1081,7 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
int
i_index
;
int
i_index
;
i_view_type
=
CONFIG_ITEM_STRING_LIST
;
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
...
@@ -1146,7 +1145,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1146,7 +1145,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
withLastItem
:
(
int
)
i_lastItem
{
{
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSString
*
o_labelString
,
*
o_buttonTooltip
,
*
o_textfieldString
;
NSString
*
o_labelString
,
*
o_buttonTooltip
,
*
o_textfieldString
;
...
@@ -1158,6 +1156,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1158,6 +1156,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
i_view_type
=
CONFIG_ITEM_FILE
;
/* 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
;
...
@@ -1249,7 +1249,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1249,7 +1249,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
withLastItem
:
(
int
)
i_lastItem
{
{
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSString
*
o_labelString
,
*
o_popupTooltip
;
NSString
*
o_labelString
,
*
o_popupTooltip
;
...
@@ -1263,6 +1262,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1263,6 +1262,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
int
i_index
;
int
i_index
;
vlc_list_t
*
p_list
;
vlc_list_t
*
p_list
;
module_t
*
p_parser
;
module_t
*
p_parser
;
i_view_type
=
CONFIG_ITEM_MODULE
;
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
...
@@ -1398,7 +1399,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1398,7 +1399,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
withLastItem
:
(
int
)
i_lastItem
{
{
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSString
*
o_labelString
,
*
o_tooltip
,
*
o_textfieldString
;
NSString
*
o_labelString
,
*
o_tooltip
,
*
o_textfieldString
;
...
@@ -1409,6 +1409,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1409,6 +1409,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
i_view_type
=
CONFIG_ITEM_INTEGER
;
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
[[
VLCMain
sharedInstance
]
localizedString:
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
localizedString:
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
...
@@ -1479,7 +1481,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1479,7 +1481,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
withLastItem
:
(
int
)
i_lastItem
{
{
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSString
*
o_labelString
,
*
o_textfieldTooltip
;
NSString
*
o_labelString
,
*
o_textfieldTooltip
;
...
@@ -1491,6 +1492,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1491,6 +1492,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
int
i_index
;
int
i_index
;
i_view_type
=
CONFIG_ITEM_STRING_LIST
;
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
...
@@ -1555,7 +1558,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1555,7 +1558,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
withLastItem
:
(
int
)
i_lastItem
{
{
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSString
*
o_labelString
,
*
o_tooltip
;
NSString
*
o_labelString
,
*
o_tooltip
;
...
@@ -1566,6 +1568,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1566,6 +1568,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
i_view_type
=
CONFIG_ITEM_RANGED_INTEGER
;
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
...
@@ -1652,7 +1656,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1652,7 +1656,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
withLastItem
:
(
int
)
i_lastItem
{
{
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSString
*
o_labelString
,
*
o_tooltip
,
*
o_textfieldString
;
NSString
*
o_labelString
,
*
o_tooltip
,
*
o_textfieldString
;
...
@@ -1663,6 +1666,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1663,6 +1666,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
i_view_type
=
CONFIG_ITEM_INTEGER
;
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
o_tooltip
=
[[
VLCMain
sharedInstance
]
wrapString
:
[[
VLCMain
sharedInstance
]
[[
VLCMain
sharedInstance
]
localizedString:
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
localizedString:
p_item
->
psz_longtext
]
toWidth
:
PREFS_WRAP
];
...
@@ -1731,7 +1736,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1731,7 +1736,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
withLastItem
:
(
int
)
i_lastItem
{
{
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSString
*
o_labelString
,
*
o_tooltip
;
NSString
*
o_labelString
,
*
o_tooltip
;
...
@@ -1742,6 +1746,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1742,6 +1746,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
i_view_type
=
CONFIG_ITEM_RANGED_INTEGER
;
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
...
@@ -1830,7 +1836,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1830,7 +1836,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
withLastItem
:
(
int
)
i_lastItem
{
{
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSString
*
o_labelString
,
*
o_tooltip
;
NSString
*
o_labelString
,
*
o_tooltip
;
...
@@ -1841,6 +1846,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1841,6 +1846,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
i_view_type
=
CONFIG_ITEM_BOOL
;
/* add the checkbox */
/* add the checkbox */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
...
@@ -1876,7 +1883,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1876,7 +1883,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
withLastItem
:
(
int
)
i_lastItem
{
{
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSString
*
o_labelString
,
*
o_tooltip
;
NSString
*
o_labelString
,
*
o_tooltip
;
...
@@ -1887,6 +1893,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1887,6 +1893,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
i_view_type
=
CONFIG_ITEM_KEY_BEFORE_10_3
;
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
...
@@ -1990,7 +1998,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -1990,7 +1998,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
withLastItem
:
(
int
)
i_lastItem
{
{
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSRect
mainFrame
=
[
o_parent_view
frame
];
NSString
*
o_labelString
,
*
o_tooltip
;
NSString
*
o_labelString
,
*
o_tooltip
;
...
@@ -2001,6 +2008,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -2001,6 +2008,8 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
i_view_type
=
CONFIG_ITEM_KEY_AFTER_10_3
;
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
...
@@ -2054,7 +2063,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
...
@@ -2054,7 +2063,6 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
-
(
id
)
initWithItem
:
(
module_config_t
*
)
_p_item
withView
:
(
NSView
*
)
o_parent_view
withView
:
(
NSView
*
)
o_parent_view
withVerticalOffset
:
(
int
)
i_yPos
withVerticalOffset
:
(
int
)
i_yPos
withLastItem
:
(
int
)
i_lastItem
{
{
if
(
_p_item
->
i_type
==
CONFIG_ITEM_MODULE_LIST
)
if
(
_p_item
->
i_type
==
CONFIG_ITEM_MODULE_LIST
)
//TODO....
//TODO....
...
@@ -2111,6 +2119,8 @@ if( _p_item->i_type == CONFIG_ITEM_MODULE_LIST )
...
@@ -2111,6 +2119,8 @@ if( _p_item->i_type == CONFIG_ITEM_MODULE_LIST )
mainFrame
.
origin
.
y
=
i_yPos
;
mainFrame
.
origin
.
y
=
i_yPos
;
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
if
(
[
super
initWithFrame
:
mainFrame
item
:
_p_item
]
!=
nil
)
{
{
i_view_type
=
CONFIG_ITEM_MODULE_LIST
;
/* add the label */
/* add the label */
if
(
p_item
->
psz_text
)
if
(
p_item
->
psz_text
)
o_labelString
=
[[
VLCMain
sharedInstance
]
o_labelString
=
[[
VLCMain
sharedInstance
]
...
...
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