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
b25a72c0
Commit
b25a72c0
authored
Sep 11, 2005
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* skins2/parser/skin_parser.cpp: fixed a FIXME
* skins2/vars/playtree.cpp: removed some debug lines
parent
54f65066
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
modules/gui/skins2/parser/skin_parser.cpp
modules/gui/skins2/parser/skin_parser.cpp
+11
-5
modules/gui/skins2/parser/skin_parser.hpp
modules/gui/skins2/parser/skin_parser.hpp
+1
-0
modules/gui/skins2/vars/playtree.cpp
modules/gui/skins2/vars/playtree.cpp
+3
-4
No files found.
modules/gui/skins2/parser/skin_parser.cpp
View file @
b25a72c0
...
@@ -261,8 +261,8 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
...
@@ -261,8 +261,8 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
CheckDefault
(
"selcolor"
,
"#0000FF"
);
CheckDefault
(
"selcolor"
,
"#0000FF"
);
CheckDefault
(
"help"
,
""
);
CheckDefault
(
"help"
,
""
);
m_cur
List
Id
=
uniqueId
(
attr
[
"id"
]
);
m_cur
Tree
Id
=
uniqueId
(
attr
[
"id"
]
);
const
BuilderData
::
Tree
treeData
(
m_cur
List
Id
,
atoi
(
attr
[
"x"
]
)
+
const
BuilderData
::
Tree
treeData
(
m_cur
Tree
Id
,
atoi
(
attr
[
"x"
]
)
+
m_xOffset
,
atoi
(
attr
[
"y"
]
)
+
m_yOffset
,
attr
[
"visible"
],
m_xOffset
,
atoi
(
attr
[
"y"
]
)
+
m_yOffset
,
attr
[
"visible"
],
atoi
(
attr
[
"width"
]),
atoi
(
attr
[
"height"
]
),
atoi
(
attr
[
"width"
]),
atoi
(
attr
[
"height"
]
),
attr
[
"lefttop"
],
attr
[
"rightbottom"
],
attr
[
"lefttop"
],
attr
[
"rightbottom"
],
...
@@ -331,7 +331,10 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
...
@@ -331,7 +331,10 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
{
{
// Slider associated to a list
// Slider associated to a list
newValue
=
"playlist.slider"
;
newValue
=
"playlist.slider"
;
// FIXME : this breaks slider usage in old style Playlists
}
else
if
(
m_curTreeId
!=
""
)
{
// Slider associated to a tree
newValue
=
"playtree.slider"
;
newValue
=
"playtree.slider"
;
}
}
const
BuilderData
::
Slider
slider
(
uniqueId
(
attr
[
"id"
]
),
const
BuilderData
::
Slider
slider
(
uniqueId
(
attr
[
"id"
]
),
...
@@ -450,11 +453,14 @@ void SkinParser::handleEndElement( const string &rName )
...
@@ -450,11 +453,14 @@ void SkinParser::handleEndElement( const string &rName )
m_xOffsetList
.
pop_back
();
m_xOffsetList
.
pop_back
();
m_yOffsetList
.
pop_back
();
m_yOffsetList
.
pop_back
();
}
}
else
if
(
rName
==
"Playlist"
)
else
if
(
rName
==
"Playlist"
||
rName
==
"Playtree"
)
{
{
m_curListId
=
""
;
m_curListId
=
""
;
}
}
else
if
(
rName
==
"Playtree"
)
{
m_curTreeId
=
""
;
}
}
}
...
...
modules/gui/skins2/parser/skin_parser.hpp
View file @
b25a72c0
...
@@ -46,6 +46,7 @@ class SkinParser: public XMLParser
...
@@ -46,6 +46,7 @@ class SkinParser: public XMLParser
string
m_curWindowId
;
string
m_curWindowId
;
string
m_curLayoutId
;
string
m_curLayoutId
;
string
m_curListId
;
string
m_curListId
;
string
m_curTreeId
;
/// Current offset of the controls
/// Current offset of the controls
int
m_xOffset
,
m_yOffset
;
int
m_xOffset
,
m_yOffset
;
list
<
int
>
m_xOffsetList
,
m_yOffsetList
;
list
<
int
>
m_xOffsetList
,
m_yOffsetList
;
...
...
modules/gui/skins2/vars/playtree.cpp
View file @
b25a72c0
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include "charset.h"
#include "charset.h"
Playtree
::
Playtree
(
intf_thread_t
*
pIntf
)
Playtree
::
Playtree
(
intf_thread_t
*
pIntf
)
:
VarTree
(
pIntf
,
/*m_parent = */
NULL
)
:
VarTree
(
pIntf
,
/*m_parent = */
NULL
)
{
{
...
@@ -41,7 +42,7 @@ Playtree::Playtree( intf_thread_t *pIntf )
...
@@ -41,7 +42,7 @@ Playtree::Playtree( intf_thread_t *pIntf )
msg_Dbg
(
pIntf
,
"Using character encoding: %s"
,
pCharset
);
msg_Dbg
(
pIntf
,
"Using character encoding: %s"
,
pCharset
);
free
(
pCharset
);
free
(
pCharset
);
if
(
iconvHandle
==
(
vlc_iconv_t
)
-
1
)
if
(
iconvHandle
==
(
vlc_iconv_t
)
-
1
)
{
{
msg_Warn
(
pIntf
,
"Unable to do requested conversion"
);
msg_Warn
(
pIntf
,
"Unable to do requested conversion"
);
}
}
...
@@ -51,7 +52,7 @@ Playtree::Playtree( intf_thread_t *pIntf )
...
@@ -51,7 +52,7 @@ Playtree::Playtree( intf_thread_t *pIntf )
Playtree
::~
Playtree
()
Playtree
::~
Playtree
()
{
{
if
(
iconvHandle
!=
(
vlc_iconv_t
)
-
1
)
vlc_iconv_close
(
iconvHandle
);
if
(
iconvHandle
!=
(
vlc_iconv_t
)
-
1
)
vlc_iconv_close
(
iconvHandle
);
// TODO : check that everything is destroyed
// TODO : check that everything is destroyed
}
}
...
@@ -96,10 +97,8 @@ void Playtree::onChange()
...
@@ -96,10 +97,8 @@ void Playtree::onChange()
void
Playtree
::
buildNode
(
playlist_item_t
*
p_node
,
VarTree
&
m_pNode
)
void
Playtree
::
buildNode
(
playlist_item_t
*
p_node
,
VarTree
&
m_pNode
)
{
{
fprintf
(
stderr
,
"[32;1mPlaytree::buildNode[0m
\n
"
);
for
(
int
i
=
0
;
i
<
p_node
->
i_children
;
i
++
)
for
(
int
i
=
0
;
i
<
p_node
->
i_children
;
i
++
)
{
{
fprintf
(
stderr
,
"[33;1m"
__FILE__
"%d :[0m adding playtree item : %s
\n
"
,
__LINE__
,
p_node
->
pp_children
[
i
]
->
input
.
psz_name
);
UString
*
pName
=
new
UString
(
getIntf
(),
p_node
->
pp_children
[
i
]
->
input
.
psz_name
);
UString
*
pName
=
new
UString
(
getIntf
(),
p_node
->
pp_children
[
i
]
->
input
.
psz_name
);
m_pNode
.
add
(
UStringPtr
(
pName
),
m_pNode
.
add
(
UStringPtr
(
pName
),
false
,
false
,
...
...
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