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
e4e2ff7f
Commit
e4e2ff7f
authored
Oct 11, 2008
by
Geoffroy Couprie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WinCE intf: get rid of VLC_OBJECT_MODULE
parent
559e9799
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
105 additions
and
123 deletions
+105
-123
modules/gui/wince/preferences.cpp
modules/gui/wince/preferences.cpp
+98
-117
modules/gui/wince/preferences_widgets.cpp
modules/gui/wince/preferences_widgets.cpp
+7
-6
No files found.
modules/gui/wince/preferences.cpp
View file @
e4e2ff7f
...
...
@@ -321,10 +321,8 @@ PrefsTreeCtrl::PrefsTreeCtrl( intf_thread_t *_p_intf,
PrefsDialog
*
_p_prefs_dialog
,
HWND
hwnd
,
HINSTANCE
hInst
)
{
vlc_list_t
*
p_list
;
module_t
*
p_module
=
NULL
;
module_config_t
*
p_item
;
int
i_index
;
INITCOMMONCONTROLSEX
iccex
;
RECT
rcClient
;
...
...
@@ -362,10 +360,6 @@ PrefsTreeCtrl::PrefsTreeCtrl( intf_thread_t *_p_intf,
tvi
.
mask
=
TVIF_TEXT
|
TVIF_IMAGE
|
TVIF_SELECTEDIMAGE
|
TVIF_PARAM
;
/* List the plugins */
p_list
=
vlc_list_find
(
p_intf
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
if
(
!
p_list
)
return
;
/*
* Build a tree of the main options
*/
...
...
@@ -385,25 +379,14 @@ PrefsTreeCtrl::PrefsTreeCtrl( intf_thread_t *_p_intf,
general_item
=
hPrev
;
/* Build the categories list */
for
(
i_index
=
0
;
i_index
<
p_list
->
i_count
;
i_index
++
)
{
p_module
=
(
module_t
*
)
p_list
->
p_values
[
i_index
].
p_object
;
if
(
strcmp
(
module_get_object
(
p_module
),
"main"
)
==
0
)
break
;
}
/* TODO replace by
* p_module = module_get_main( p_intf );
*/
if
(
i_index
<
p_list
->
i_count
)
{
p_module
=
module_get_main
();
unsigned
int
confsize
;
const
char
*
psz_help
;
module_config_t
*
p_config
;
/* We found the main module */
/* Enumerate config categories and store a reference so we can
* generate their config panel them
when it is asked by the user. */
* generate their config panel
when it is asked by the user. */
p_config
=
module_config_get
(
p_module
,
&
confsize
);
for
(
size_t
i
=
0
;
i
<
confsize
;
i
++
)
...
...
@@ -504,20 +487,20 @@ PrefsTreeCtrl::PrefsTreeCtrl( intf_thread_t *_p_intf,
}
TreeView_SortChildren
(
hwndTV
,
general_item
,
0
);
module_config_free
(
p_config
);
}
/* List the plugins */
module_t
**
p_list
=
module_list_get
(
NULL
);
module_config_t
*
p_config
;
/*
* Build a tree of all the plugins
*/
for
(
i_index
=
0
;
i_index
<
p_list
->
i_count
;
i_index
++
)
for
(
size_t
i_index
=
0
;
p_list
[
i_index
]
;
i_index
++
)
{
/* Take every module */
p_module
=
(
module_t
*
)
p_list
->
p_values
[
i_index
].
p_object
;
p_module
=
p_list
[
i_index
]
;
/* Exclude the main module */
if
(
!
strcmp
(
module_get_object
(
p_module
),
"main"
)
)
if
(
module_is_main
(
p_module
)
)
continue
;
/* Exclude empty plugins (submodules don't have config options, they
...
...
@@ -547,7 +530,6 @@ PrefsTreeCtrl::PrefsTreeCtrl( intf_thread_t *_p_intf,
}
module_config_free
(
p_config
);
//if( !i_options ) continue;
/* Dummy item, please proceed */
if
(
!
b_options
||
i_category
==
0
||
i_subcategory
==
0
)
continue
;
...
...
@@ -588,7 +570,7 @@ PrefsTreeCtrl::PrefsTreeCtrl( intf_thread_t *_p_intf,
config_data
->
i_object_id
=
p_item
->
value
.
i
;
config_data
->
p_module
=
p_module
;
tvi
.
pszText
=
_FROMMB
(
module_name
(
p_module
,
false
));
tvi
.
pszText
=
_FROMMB
(
module_
get_
name
(
p_module
,
false
));
tvi
.
cchTextMax
=
_tcslen
(
tvi
.
pszText
);
tvi
.
lParam
=
(
long
)
config_data
;
...
...
@@ -621,7 +603,7 @@ PrefsTreeCtrl::PrefsTreeCtrl( intf_thread_t *_p_intf,
}
/* Clean-up everything */
vlc_list_releas
e
(
p_list
);
module_list_fre
e
(
p_list
);
TreeView_Expand
(
hwndTV
,
general_item
,
TVE_EXPANDPARTIAL
|
TVE_EXPAND
);
}
...
...
@@ -764,7 +746,7 @@ PrefsPanel::PrefsPanel( HWND parent, HINSTANCE hInst, intf_thread_t *_p_intf,
/* Initializations */
p_intf
=
_p_intf
;
p_prefs_dialog
=
_p_prefs_dialog
;
vlc_list_t
*
p_list
=
NULL
;
module_t
**
p_list
;
b_advanced
=
true
;
...
...
@@ -786,14 +768,13 @@ PrefsPanel::PrefsPanel( HWND parent, HINSTANCE hInst, intf_thread_t *_p_intf,
else
{
/* List the plugins */
in
t
i_index
;
size_
t
i_index
;
bool
b_found
=
false
;
p_list
=
vlc_list_find
(
p_intf
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
if
(
!
p_list
)
return
;
p_list
=
module_list_get
(
NULL
);
for
(
i_index
=
0
;
i_index
<
p_list
->
i_count
;
i_index
++
)
for
(
i_index
=
0
;
p_list
[
i_index
]
;
i_index
++
)
{
p_module
=
(
module_t
*
)
p_list
->
p_values
[
i_index
].
p_object
;
p_module
=
p_list
[
i_index
]
;
if
(
!
strcmp
(
module_get_object
(
p_module
),
"main"
)
)
{
b_found
=
true
;
...
...
modules/gui/wince/preferences_widgets.cpp
View file @
e4e2ff7f
...
...
@@ -287,7 +287,7 @@ ModuleConfigControl::ModuleConfigControl( vlc_object_t *p_this,
int
*
py_pos
)
:
ConfigControl
(
p_this
,
p_item
,
parent
,
hInst
)
{
vlc_list_t
*
p_list
;
module_t
*
*
p_list
;
module_t
*
p_parser
;
label
=
CreateWindow
(
_T
(
"STATIC"
),
_FROMMB
(
p_item
->
psz_text
),
...
...
@@ -306,14 +306,15 @@ ModuleConfigControl::ModuleConfigControl( vlc_object_t *p_this,
*
py_pos
+=
15
+
10
;
/* build a list of available modules */
p_list
=
vlc_list_find
(
p_this
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
p_list
=
module_list_get
(
NULL
);
ComboBox_AddString
(
combo
,
_T
(
"Default"
)
);
ComboBox_SetItemData
(
combo
,
0
,
(
void
*
)
NULL
);
ComboBox_SetCurSel
(
combo
,
0
);
//ComboBox_SetText( combo, _T("Default") );
for
(
int
i_index
=
0
;
i_index
<
p_list
->
i_count
;
i_index
++
)
for
(
size_t
i_index
=
0
;
p_list
[
i_index
];
i_index
++
)
{
p_parser
=
(
module_t
*
)
p_list
->
p_values
[
i_index
].
p_object
;
p_parser
=
p_list
[
i_index
]
;
if
(
module_provides
(
p_parser
,
p_item
->
psz_type
)
)
{
...
...
@@ -324,11 +325,11 @@ ModuleConfigControl::ModuleConfigControl( vlc_object_t *p_this,
module_get_object
(
p_parser
))
)
{
ComboBox_SetCurSel
(
combo
,
i_index
);
//ComboBox_SetText( combo, _FROMMB(
p_parser->psz_longname
) );
//ComboBox_SetText( combo, _FROMMB(
module_GetLongName(p_parser)
) );
}
}
}
vlc_list_releas
e
(
p_list
);
module_list_fre
e
(
p_list
);
}
ModuleConfigControl
::~
ModuleConfigControl
()
...
...
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