Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
fb9fadde
Commit
fb9fadde
authored
Mar 31, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skins strings (Refs:#438)
parent
f7e4ba30
Changes
27
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
113 additions
and
112 deletions
+113
-112
modules/gui/skins2/commands/cmd_change_skin.cpp
modules/gui/skins2/commands/cmd_change_skin.cpp
+3
-3
modules/gui/skins2/commands/cmd_dialogs.hpp
modules/gui/skins2/commands/cmd_dialogs.hpp
+1
-1
modules/gui/skins2/events/evt_mouse.cpp
modules/gui/skins2/events/evt_mouse.cpp
+2
-2
modules/gui/skins2/events/evt_scroll.cpp
modules/gui/skins2/events/evt_scroll.cpp
+1
-1
modules/gui/skins2/events/evt_special.cpp
modules/gui/skins2/events/evt_special.cpp
+1
-1
modules/gui/skins2/parser/builder.cpp
modules/gui/skins2/parser/builder.cpp
+23
-23
modules/gui/skins2/parser/interpreter.cpp
modules/gui/skins2/parser/interpreter.cpp
+14
-14
modules/gui/skins2/parser/skin_parser.cpp
modules/gui/skins2/parser/skin_parser.cpp
+6
-6
modules/gui/skins2/parser/xmlparser.cpp
modules/gui/skins2/parser/xmlparser.cpp
+5
-5
modules/gui/skins2/src/dialogs.cpp
modules/gui/skins2/src/dialogs.cpp
+1
-1
modules/gui/skins2/src/ft2_font.cpp
modules/gui/skins2/src/ft2_font.cpp
+8
-8
modules/gui/skins2/src/generic_layout.cpp
modules/gui/skins2/src/generic_layout.cpp
+1
-1
modules/gui/skins2/src/popup.cpp
modules/gui/skins2/src/popup.cpp
+1
-1
modules/gui/skins2/src/skin_main.cpp
modules/gui/skins2/src/skin_main.cpp
+6
-6
modules/gui/skins2/src/theme.cpp
modules/gui/skins2/src/theme.cpp
+2
-2
modules/gui/skins2/src/theme_loader.cpp
modules/gui/skins2/src/theme_loader.cpp
+12
-12
modules/gui/skins2/src/theme_repository.cpp
modules/gui/skins2/src/theme_repository.cpp
+1
-1
modules/gui/skins2/src/top_window.cpp
modules/gui/skins2/src/top_window.cpp
+3
-3
modules/gui/skins2/src/var_manager.cpp
modules/gui/skins2/src/var_manager.cpp
+1
-1
modules/gui/skins2/src/window_manager.cpp
modules/gui/skins2/src/window_manager.cpp
+1
-1
modules/gui/skins2/utils/ustring.cpp
modules/gui/skins2/utils/ustring.cpp
+2
-2
modules/gui/skins2/vars/playtree.cpp
modules/gui/skins2/vars/playtree.cpp
+3
-3
modules/gui/skins2/win32/win32_factory.cpp
modules/gui/skins2/win32/win32_factory.cpp
+6
-6
modules/gui/skins2/win32/win32_tooltip.cpp
modules/gui/skins2/win32/win32_tooltip.cpp
+1
-1
modules/gui/skins2/x11/x11_display.cpp
modules/gui/skins2/x11/x11_display.cpp
+1
-1
modules/gui/skins2/x11/x11_graphics.cpp
modules/gui/skins2/x11/x11_graphics.cpp
+5
-4
modules/gui/skins2/x11/x11_loop.cpp
modules/gui/skins2/x11/x11_loop.cpp
+2
-2
No files found.
modules/gui/skins2/commands/cmd_change_skin.cpp
View file @
fb9fadde
...
@@ -45,7 +45,7 @@ void CmdChangeSkin::execute()
...
@@ -45,7 +45,7 @@ void CmdChangeSkin::execute()
if
(
loader
.
load
(
m_file
)
)
if
(
loader
.
load
(
m_file
)
)
{
{
// Everything went well
// Everything went well
msg_
Dbg
(
getIntf
(),
"N
ew theme successfully loaded (%s)"
,
msg_
Info
(
getIntf
(),
"n
ew theme successfully loaded (%s)"
,
m_file
.
c_str
()
);
m_file
.
c_str
()
);
if
(
pOldTheme
)
if
(
pOldTheme
)
{
{
...
@@ -54,14 +54,14 @@ void CmdChangeSkin::execute()
...
@@ -54,14 +54,14 @@ void CmdChangeSkin::execute()
}
}
else
if
(
pOldTheme
)
else
if
(
pOldTheme
)
{
{
msg_
Err
(
getIntf
(),
"A
problem occurred when loading the new theme,"
msg_
Warn
(
getIntf
(),
"a
problem occurred when loading the new theme,"
" restoring the previous one"
);
" restoring the previous one"
);
getIntf
()
->
p_sys
->
p_theme
=
pOldTheme
;
getIntf
()
->
p_sys
->
p_theme
=
pOldTheme
;
pOldTheme
->
getWindowManager
().
showAll
();
pOldTheme
->
getWindowManager
().
showAll
();
}
}
else
else
{
{
msg_Err
(
getIntf
(),
"
C
annot load the theme, aborting"
);
msg_Err
(
getIntf
(),
"
c
annot load the theme, aborting"
);
// Quit
// Quit
CmdQuit
cmd
(
getIntf
()
);
CmdQuit
cmd
(
getIntf
()
);
cmd
.
execute
();
cmd
.
execute
();
...
...
modules/gui/skins2/commands/cmd_dialogs.hpp
View file @
fb9fadde
...
@@ -119,7 +119,7 @@ class CmdDialogs: public CmdGeneric
...
@@ -119,7 +119,7 @@ class CmdDialogs: public CmdGeneric
pDialogs
->
showStreamingWizard
();
pDialogs
->
showStreamingWizard
();
break
;
break
;
default:
default:
msg_Warn
(
getIntf
(),
"
U
nknown dialog type"
);
msg_Warn
(
getIntf
(),
"
u
nknown dialog type"
);
break
;
break
;
}
}
}
}
...
...
modules/gui/skins2/events/evt_mouse.cpp
View file @
fb9fadde
...
@@ -37,7 +37,7 @@ const string EvtMouse::getAsString() const
...
@@ -37,7 +37,7 @@ const string EvtMouse::getAsString() const
else
if
(
m_button
==
kRight
)
else
if
(
m_button
==
kRight
)
event
+=
":right"
;
event
+=
":right"
;
else
else
msg_Warn
(
getIntf
(),
"
U
nknown button type"
);
msg_Warn
(
getIntf
(),
"
u
nknown button type"
);
// Add the action
// Add the action
if
(
m_action
==
kDown
)
if
(
m_action
==
kDown
)
...
@@ -47,7 +47,7 @@ const string EvtMouse::getAsString() const
...
@@ -47,7 +47,7 @@ const string EvtMouse::getAsString() const
else
if
(
m_action
==
kDblClick
)
else
if
(
m_action
==
kDblClick
)
event
+=
":dblclick"
;
event
+=
":dblclick"
;
else
else
msg_Warn
(
getIntf
(),
"
U
nknown action type"
);
msg_Warn
(
getIntf
(),
"
u
nknown action type"
);
// Add the modifier
// Add the modifier
addModifier
(
event
);
addModifier
(
event
);
...
...
modules/gui/skins2/events/evt_scroll.cpp
View file @
fb9fadde
...
@@ -35,7 +35,7 @@ const string EvtScroll::getAsString() const
...
@@ -35,7 +35,7 @@ const string EvtScroll::getAsString() const
else
if
(
m_direction
==
kDown
)
else
if
(
m_direction
==
kDown
)
event
+=
":down"
;
event
+=
":down"
;
else
else
msg_Warn
(
getIntf
(),
"
U
nknown scrolling direction"
);
msg_Warn
(
getIntf
(),
"
u
nknown scrolling direction"
);
// Add the modifier
// Add the modifier
addModifier
(
event
);
addModifier
(
event
);
...
...
modules/gui/skins2/events/evt_special.cpp
View file @
fb9fadde
...
@@ -39,7 +39,7 @@ const string EvtSpecial::getAsString() const
...
@@ -39,7 +39,7 @@ const string EvtSpecial::getAsString() const
else
if
(
m_action
==
kDisable
)
else
if
(
m_action
==
kDisable
)
event
+=
":disable"
;
event
+=
":disable"
;
else
else
msg_Warn
(
getIntf
(),
"
U
nknown action type"
);
msg_Warn
(
getIntf
(),
"
u
nknown action type"
);
return
event
;
return
event
;
}
}
...
...
modules/gui/skins2/parser/builder.cpp
View file @
fb9fadde
...
@@ -147,7 +147,7 @@ void Builder::addTheme( const BuilderData::Theme &rData )
...
@@ -147,7 +147,7 @@ void Builder::addTheme( const BuilderData::Theme &rData )
}
}
else
else
{
{
msg_Warn
(
getIntf
(),
"
I
nvalid tooltip font: %s"
,
msg_Warn
(
getIntf
(),
"
i
nvalid tooltip font: %s"
,
rData
.
m_tooltipfont
.
c_str
()
);
rData
.
m_tooltipfont
.
c_str
()
);
}
}
}
}
...
@@ -173,7 +173,7 @@ void Builder::addSubBitmap( const BuilderData::SubBitmap &rData )
...
@@ -173,7 +173,7 @@ void Builder::addSubBitmap( const BuilderData::SubBitmap &rData )
{
{
if
(
m_pTheme
->
m_bitmaps
.
find
(
rData
.
m_id
)
!=
m_pTheme
->
m_bitmaps
.
end
()
)
if
(
m_pTheme
->
m_bitmaps
.
find
(
rData
.
m_id
)
!=
m_pTheme
->
m_bitmaps
.
end
()
)
{
{
msg_Dbg
(
getIntf
(),
"
B
itmap %s already exists"
,
rData
.
m_id
.
c_str
()
);
msg_Dbg
(
getIntf
(),
"
b
itmap %s already exists"
,
rData
.
m_id
.
c_str
()
);
return
;
return
;
}
}
...
@@ -191,7 +191,7 @@ void Builder::addSubBitmap( const BuilderData::SubBitmap &rData )
...
@@ -191,7 +191,7 @@ void Builder::addSubBitmap( const BuilderData::SubBitmap &rData )
{
{
// Invalid sub-bitmap
// Invalid sub-bitmap
delete
pBmp
;
delete
pBmp
;
msg_Warn
(
getIntf
(),
"
SubB
itmap %s ignored"
,
rData
.
m_id
.
c_str
()
);
msg_Warn
(
getIntf
(),
"
sub-b
itmap %s ignored"
,
rData
.
m_id
.
c_str
()
);
return
;
return
;
}
}
m_pTheme
->
m_bitmaps
[
rData
.
m_id
]
=
GenericBitmapPtr
(
pBmp
);
m_pTheme
->
m_bitmaps
[
rData
.
m_id
]
=
GenericBitmapPtr
(
pBmp
);
...
@@ -202,7 +202,7 @@ void Builder::addBitmapFont( const BuilderData::BitmapFont &rData )
...
@@ -202,7 +202,7 @@ void Builder::addBitmapFont( const BuilderData::BitmapFont &rData )
{
{
if
(
m_pTheme
->
m_fonts
.
find
(
rData
.
m_id
)
!=
m_pTheme
->
m_fonts
.
end
()
)
if
(
m_pTheme
->
m_fonts
.
find
(
rData
.
m_id
)
!=
m_pTheme
->
m_fonts
.
end
()
)
{
{
msg_Dbg
(
getIntf
(),
"
F
ont %s already exists"
,
rData
.
m_id
.
c_str
()
);
msg_Dbg
(
getIntf
(),
"
f
ont %s already exists"
,
rData
.
m_id
.
c_str
()
);
return
;
return
;
}
}
...
@@ -282,14 +282,14 @@ void Builder::addMenuItem( const BuilderData::MenuItem &rData )
...
@@ -282,14 +282,14 @@ void Builder::addMenuItem( const BuilderData::MenuItem &rData )
Popup
*
pPopup
=
m_pTheme
->
getPopupById
(
rData
.
m_popupId
);
Popup
*
pPopup
=
m_pTheme
->
getPopupById
(
rData
.
m_popupId
);
if
(
pPopup
==
NULL
)
if
(
pPopup
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
U
nknown popup id: %s"
,
rData
.
m_popupId
.
c_str
()
);
msg_Err
(
getIntf
(),
"
u
nknown popup id: %s"
,
rData
.
m_popupId
.
c_str
()
);
return
;
return
;
}
}
CmdGeneric
*
pCommand
=
parseAction
(
rData
.
m_action
);
CmdGeneric
*
pCommand
=
parseAction
(
rData
.
m_action
);
if
(
pCommand
==
NULL
)
if
(
pCommand
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid action: %s"
,
rData
.
m_action
.
c_str
()
);
msg_Err
(
getIntf
(),
"
i
nvalid action: %s"
,
rData
.
m_action
.
c_str
()
);
return
;
return
;
}
}
...
@@ -302,7 +302,7 @@ void Builder::addMenuSeparator( const BuilderData::MenuSeparator &rData )
...
@@ -302,7 +302,7 @@ void Builder::addMenuSeparator( const BuilderData::MenuSeparator &rData )
Popup
*
pPopup
=
m_pTheme
->
getPopupById
(
rData
.
m_popupId
);
Popup
*
pPopup
=
m_pTheme
->
getPopupById
(
rData
.
m_popupId
);
if
(
pPopup
==
NULL
)
if
(
pPopup
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
U
nknown popup id: %s"
,
rData
.
m_popupId
.
c_str
()
);
msg_Err
(
getIntf
(),
"
u
nknown popup id: %s"
,
rData
.
m_popupId
.
c_str
()
);
return
;
return
;
}
}
...
@@ -360,7 +360,7 @@ void Builder::addAnchor( const BuilderData::Anchor &rData )
...
@@ -360,7 +360,7 @@ void Builder::addAnchor( const BuilderData::Anchor &rData )
Bezier
*
pCurve
=
getPoints
(
rData
.
m_points
.
c_str
()
);
Bezier
*
pCurve
=
getPoints
(
rData
.
m_points
.
c_str
()
);
if
(
pCurve
==
NULL
)
if
(
pCurve
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid format in tag points=
\"
%s
\"
"
,
msg_Err
(
getIntf
(),
"
i
nvalid format in tag points=
\"
%s
\"
"
,
rData
.
m_points
.
c_str
()
);
rData
.
m_points
.
c_str
()
);
return
;
return
;
}
}
...
@@ -395,7 +395,7 @@ void Builder::addButton( const BuilderData::Button &rData )
...
@@ -395,7 +395,7 @@ void Builder::addButton( const BuilderData::Button &rData )
CmdGeneric
*
pCommand
=
parseAction
(
rData
.
m_actionId
);
CmdGeneric
*
pCommand
=
parseAction
(
rData
.
m_actionId
);
if
(
pCommand
==
NULL
)
if
(
pCommand
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid action: %s"
,
rData
.
m_actionId
.
c_str
()
);
msg_Err
(
getIntf
(),
"
i
nvalid action: %s"
,
rData
.
m_actionId
.
c_str
()
);
return
;
return
;
}
}
...
@@ -452,14 +452,14 @@ void Builder::addCheckbox( const BuilderData::Checkbox &rData )
...
@@ -452,14 +452,14 @@ void Builder::addCheckbox( const BuilderData::Checkbox &rData )
CmdGeneric
*
pCommand1
=
parseAction
(
rData
.
m_action1
);
CmdGeneric
*
pCommand1
=
parseAction
(
rData
.
m_action1
);
if
(
pCommand1
==
NULL
)
if
(
pCommand1
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid action: %s"
,
rData
.
m_action1
.
c_str
()
);
msg_Err
(
getIntf
(),
"
i
nvalid action: %s"
,
rData
.
m_action1
.
c_str
()
);
return
;
return
;
}
}
CmdGeneric
*
pCommand2
=
parseAction
(
rData
.
m_action2
);
CmdGeneric
*
pCommand2
=
parseAction
(
rData
.
m_action2
);
if
(
pCommand2
==
NULL
)
if
(
pCommand2
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid action: %s"
,
rData
.
m_action2
.
c_str
()
);
msg_Err
(
getIntf
(),
"
i
nvalid action: %s"
,
rData
.
m_action2
.
c_str
()
);
return
;
return
;
}
}
...
@@ -518,7 +518,7 @@ void Builder::addImage( const BuilderData::Image &rData )
...
@@ -518,7 +518,7 @@ void Builder::addImage( const BuilderData::Image &rData )
CmdGeneric
*
pCommand
=
parseAction
(
rData
.
m_action2Id
);
CmdGeneric
*
pCommand
=
parseAction
(
rData
.
m_action2Id
);
if
(
pCommand
==
NULL
)
if
(
pCommand
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid action: %s"
,
rData
.
m_action2Id
.
c_str
()
);
msg_Err
(
getIntf
(),
"
i
nvalid action: %s"
,
rData
.
m_action2Id
.
c_str
()
);
return
;
return
;
}
}
...
@@ -588,7 +588,7 @@ void Builder::addText( const BuilderData::Text &rData )
...
@@ -588,7 +588,7 @@ void Builder::addText( const BuilderData::Text &rData )
GenericFont
*
pFont
=
getFont
(
rData
.
m_fontId
);
GenericFont
*
pFont
=
getFont
(
rData
.
m_fontId
);
if
(
pFont
==
NULL
)
if
(
pFont
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
U
nknown font id: %s"
,
rData
.
m_fontId
.
c_str
()
);
msg_Err
(
getIntf
(),
"
u
nknown font id: %s"
,
rData
.
m_fontId
.
c_str
()
);
return
;
return
;
}
}
...
@@ -602,7 +602,7 @@ void Builder::addText( const BuilderData::Text &rData )
...
@@ -602,7 +602,7 @@ void Builder::addText( const BuilderData::Text &rData )
scrolling
=
CtrlText
::
kNone
;
scrolling
=
CtrlText
::
kNone
;
else
else
{
{
msg_Err
(
getIntf
(),
"
I
nvalid scrolling mode: %s"
,
msg_Err
(
getIntf
(),
"
i
nvalid scrolling mode: %s"
,
rData
.
m_scrolling
.
c_str
()
);
rData
.
m_scrolling
.
c_str
()
);
return
;
return
;
}
}
...
@@ -617,7 +617,7 @@ void Builder::addText( const BuilderData::Text &rData )
...
@@ -617,7 +617,7 @@ void Builder::addText( const BuilderData::Text &rData )
alignment
=
CtrlText
::
kRight
;
alignment
=
CtrlText
::
kRight
;
else
else
{
{
msg_Err
(
getIntf
(),
"
I
nvalid alignment: %s"
,
msg_Err
(
getIntf
(),
"
i
nvalid alignment: %s"
,
rData
.
m_alignment
.
c_str
()
);
rData
.
m_alignment
.
c_str
()
);
return
;
return
;
}
}
...
@@ -671,7 +671,7 @@ void Builder::addRadialSlider( const BuilderData::RadialSlider &rData )
...
@@ -671,7 +671,7 @@ void Builder::addRadialSlider( const BuilderData::RadialSlider &rData )
VarPercent
*
pVar
=
pInterpreter
->
getVarPercent
(
rData
.
m_value
,
m_pTheme
);
VarPercent
*
pVar
=
pInterpreter
->
getVarPercent
(
rData
.
m_value
,
m_pTheme
);
if
(
pVar
==
NULL
)
if
(
pVar
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
U
nknown slider value: %s"
,
rData
.
m_value
.
c_str
()
);
msg_Err
(
getIntf
(),
"
u
nknown slider value: %s"
,
rData
.
m_value
.
c_str
()
);
return
;
return
;
}
}
...
@@ -723,7 +723,7 @@ void Builder::addSlider( const BuilderData::Slider &rData )
...
@@ -723,7 +723,7 @@ void Builder::addSlider( const BuilderData::Slider &rData )
Bezier
*
pCurve
=
getPoints
(
rData
.
m_points
.
c_str
()
);
Bezier
*
pCurve
=
getPoints
(
rData
.
m_points
.
c_str
()
);
if
(
pCurve
==
NULL
)
if
(
pCurve
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid format in tag points=
\"
%s
\"
"
,
msg_Err
(
getIntf
(),
"
i
nvalid format in tag points=
\"
%s
\"
"
,
rData
.
m_points
.
c_str
()
);
rData
.
m_points
.
c_str
()
);
return
;
return
;
}
}
...
@@ -738,7 +738,7 @@ void Builder::addSlider( const BuilderData::Slider &rData )
...
@@ -738,7 +738,7 @@ void Builder::addSlider( const BuilderData::Slider &rData )
VarPercent
*
pVar
=
pInterpreter
->
getVarPercent
(
rData
.
m_value
,
m_pTheme
);
VarPercent
*
pVar
=
pInterpreter
->
getVarPercent
(
rData
.
m_value
,
m_pTheme
);
if
(
pVar
==
NULL
)
if
(
pVar
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
U
nknown slider value: %s"
,
rData
.
m_value
.
c_str
()
);
msg_Err
(
getIntf
(),
"
u
nknown slider value: %s"
,
rData
.
m_value
.
c_str
()
);
return
;
return
;
}
}
...
@@ -799,7 +799,7 @@ void Builder::addList( const BuilderData::List &rData )
...
@@ -799,7 +799,7 @@ void Builder::addList( const BuilderData::List &rData )
GenericFont
*
pFont
=
getFont
(
rData
.
m_fontId
);
GenericFont
*
pFont
=
getFont
(
rData
.
m_fontId
);
if
(
pFont
==
NULL
)
if
(
pFont
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
U
nknown font id: %s"
,
rData
.
m_fontId
.
c_str
()
);
msg_Err
(
getIntf
(),
"
u
nknown font id: %s"
,
rData
.
m_fontId
.
c_str
()
);
return
;
return
;
}
}
...
@@ -808,7 +808,7 @@ void Builder::addList( const BuilderData::List &rData )
...
@@ -808,7 +808,7 @@ void Builder::addList( const BuilderData::List &rData )
VarList
*
pVar
=
pInterpreter
->
getVarList
(
rData
.
m_var
,
m_pTheme
);
VarList
*
pVar
=
pInterpreter
->
getVarList
(
rData
.
m_var
,
m_pTheme
);
if
(
pVar
==
NULL
)
if
(
pVar
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
N
o such list variable: %s"
,
rData
.
m_var
.
c_str
()
);
msg_Err
(
getIntf
(),
"
n
o such list variable: %s"
,
rData
.
m_var
.
c_str
()
);
return
;
return
;
}
}
...
@@ -855,7 +855,7 @@ void Builder::addTree( const BuilderData::Tree &rData )
...
@@ -855,7 +855,7 @@ void Builder::addTree( const BuilderData::Tree &rData )
GenericFont
*
pFont
=
getFont
(
rData
.
m_fontId
);
GenericFont
*
pFont
=
getFont
(
rData
.
m_fontId
);
if
(
pFont
==
NULL
)
if
(
pFont
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
U
nknown font id: %s"
,
rData
.
m_fontId
.
c_str
()
);
msg_Err
(
getIntf
(),
"
u
nknown font id: %s"
,
rData
.
m_fontId
.
c_str
()
);
return
;
return
;
}
}
...
@@ -864,7 +864,7 @@ void Builder::addTree( const BuilderData::Tree &rData )
...
@@ -864,7 +864,7 @@ void Builder::addTree( const BuilderData::Tree &rData )
VarTree
*
pVar
=
pInterpreter
->
getVarTree
(
rData
.
m_var
,
m_pTheme
);
VarTree
*
pVar
=
pInterpreter
->
getVarTree
(
rData
.
m_var
,
m_pTheme
);
if
(
pVar
==
NULL
)
if
(
pVar
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
N
o such list variable: %s"
,
rData
.
m_var
.
c_str
()
);
msg_Err
(
getIntf
(),
"
n
o such list variable: %s"
,
rData
.
m_var
.
c_str
()
);
return
;
return
;
}
}
...
@@ -1019,7 +1019,7 @@ GenericFont *Builder::getFont( const string &fontId )
...
@@ -1019,7 +1019,7 @@ GenericFont *Builder::getFont( const string &fontId )
}
}
if
(
!
pFont
)
if
(
!
pFont
)
{
{
msg_Err
(
getIntf
(),
"
F
ailed to open the default font"
);
msg_Err
(
getIntf
(),
"
f
ailed to open the default font"
);
}
}
}
}
return
pFont
;
return
pFont
;
...
...
modules/gui/skins2/parser/interpreter.cpp
View file @
fb9fadde
...
@@ -193,16 +193,16 @@ CmdGeneric *Interpreter::parseAction( const string &rAction, Theme *pTheme )
...
@@ -193,16 +193,16 @@ CmdGeneric *Interpreter::parseAction( const string &rAction, Theme *pTheme )
GenericLayout
*
pLayout
=
pTheme
->
getLayoutById
(
layoutId
);
GenericLayout
*
pLayout
=
pTheme
->
getLayoutById
(
layoutId
);
if
(
!
pWin
)
if
(
!
pWin
)
{
{
msg_Err
(
getIntf
(),
"
U
nknown window (%s)"
,
windowId
.
c_str
()
);
msg_Err
(
getIntf
(),
"
u
nknown window (%s)"
,
windowId
.
c_str
()
);
}
}
else
if
(
!
pLayout
)
else
if
(
!
pLayout
)
{
{
msg_Err
(
getIntf
(),
"
U
nknown layout (%s)"
,
layoutId
.
c_str
()
);
msg_Err
(
getIntf
(),
"
u
nknown layout (%s)"
,
layoutId
.
c_str
()
);
}
}
// Check that the layout doesn't correspond to another window
// Check that the layout doesn't correspond to another window
else
if
(
pWin
!=
pLayout
->
getWindow
()
)
else
if
(
pWin
!=
pLayout
->
getWindow
()
)
{
{
msg_Err
(
getIntf
(),
"
L
ayout %s is not associated to window %s"
,
msg_Err
(
getIntf
(),
"
l
ayout %s is not associated to window %s"
,
layoutId
.
c_str
(),
windowId
.
c_str
()
);
layoutId
.
c_str
(),
windowId
.
c_str
()
);
}
}
else
else
...
@@ -230,7 +230,7 @@ CmdGeneric *Interpreter::parseAction( const string &rAction, Theme *pTheme )
...
@@ -230,7 +230,7 @@ CmdGeneric *Interpreter::parseAction( const string &rAction, Theme *pTheme )
}
}
else
else
{
{
msg_Err
(
getIntf
(),
"
U
nknown window or popup (%s)"
,
msg_Err
(
getIntf
(),
"
u
nknown window or popup (%s)"
,
windowId
.
c_str
()
);
windowId
.
c_str
()
);
}
}
}
}
...
@@ -247,7 +247,7 @@ CmdGeneric *Interpreter::parseAction( const string &rAction, Theme *pTheme )
...
@@ -247,7 +247,7 @@ CmdGeneric *Interpreter::parseAction( const string &rAction, Theme *pTheme )
}
}
else
else
{
{
msg_Err
(
getIntf
(),
"
U
nknown window (%s)"
,
windowId
.
c_str
()
);
msg_Err
(
getIntf
(),
"
u
nknown window (%s)"
,
windowId
.
c_str
()
);
}
}
}
}
...
@@ -258,7 +258,7 @@ CmdGeneric *Interpreter::parseAction( const string &rAction, Theme *pTheme )
...
@@ -258,7 +258,7 @@ CmdGeneric *Interpreter::parseAction( const string &rAction, Theme *pTheme )
}
}
else
else
{
{
msg_Warn
(
getIntf
(),
"
U
nknown action: %s"
,
rAction
.
c_str
()
);
msg_Warn
(
getIntf
(),
"
u
nknown action: %s"
,
rAction
.
c_str
()
);
}
}
return
pCommand
;
return
pCommand
;
...
@@ -284,7 +284,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
...
@@ -284,7 +284,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
// Get the 2 last variables on the stack
// Get the 2 last variables on the stack
if
(
varStack
.
empty
()
)
if
(
varStack
.
empty
()
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid boolean expression: %s"
,
msg_Err
(
getIntf
(),
"
i
nvalid boolean expression: %s"
,
rName
.
c_str
());
rName
.
c_str
());
return
NULL
;
return
NULL
;
}
}
...
@@ -292,7 +292,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
...
@@ -292,7 +292,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
varStack
.
pop_back
();
varStack
.
pop_back
();
if
(
varStack
.
empty
()
)
if
(
varStack
.
empty
()
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid boolean expression: %s"
,
msg_Err
(
getIntf
(),
"
i
nvalid boolean expression: %s"
,
rName
.
c_str
());
rName
.
c_str
());
return
NULL
;
return
NULL
;
}
}
...
@@ -310,7 +310,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
...
@@ -310,7 +310,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
// Get the 2 last variables on the stack
// Get the 2 last variables on the stack
if
(
varStack
.
empty
()
)
if
(
varStack
.
empty
()
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid boolean expression: %s"
,
msg_Err
(
getIntf
(),
"
i
nvalid boolean expression: %s"
,
rName
.
c_str
());
rName
.
c_str
());
return
NULL
;
return
NULL
;
}
}
...
@@ -318,7 +318,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
...
@@ -318,7 +318,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
varStack
.
pop_back
();
varStack
.
pop_back
();
if
(
varStack
.
empty
()
)
if
(
varStack
.
empty
()
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid boolean expression: %s"
,
msg_Err
(
getIntf
(),
"
i
nvalid boolean expression: %s"
,
rName
.
c_str
());
rName
.
c_str
());
return
NULL
;
return
NULL
;
}
}
...
@@ -336,7 +336,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
...
@@ -336,7 +336,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
// Get the last variable on the stack
// Get the last variable on the stack
if
(
varStack
.
empty
()
)
if
(
varStack
.
empty
()
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid boolean expression: %s"
,
msg_Err
(
getIntf
(),
"
i
nvalid boolean expression: %s"
,
rName
.
c_str
());
rName
.
c_str
());
return
NULL
;
return
NULL
;
}
}
...
@@ -361,7 +361,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
...
@@ -361,7 +361,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
}
}
else
else
{
{
msg_Err
(
getIntf
(),
"
U
nknown window (%s)"
,
windowId
.
c_str
()
);
msg_Err
(
getIntf
(),
"
u
nknown window (%s)"
,
windowId
.
c_str
()
);
return
NULL
;
return
NULL
;
}
}
}
}
...
@@ -371,7 +371,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
...
@@ -371,7 +371,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
VarBool
*
pVar
=
(
VarBool
*
)
pVarManager
->
getVar
(
token
,
"bool"
);
VarBool
*
pVar
=
(
VarBool
*
)
pVarManager
->
getVar
(
token
,
"bool"
);
if
(
!
pVar
)
if
(
!
pVar
)
{
{
msg_Err
(
getIntf
(),
"
C
annot resolve boolean variable: %s"
,
msg_Err
(
getIntf
(),
"
c
annot resolve boolean variable: %s"
,
token
.
c_str
());
token
.
c_str
());
return
NULL
;
return
NULL
;
}
}
...
@@ -384,7 +384,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
...
@@ -384,7 +384,7 @@ VarBool *Interpreter::getVarBool( const string &rName, Theme *pTheme )
// The stack should contain a single variable
// The stack should contain a single variable
if
(
varStack
.
size
()
!=
1
)
if
(
varStack
.
size
()
!=
1
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid boolean expression: %s"
,
rName
.
c_str
()
);
msg_Err
(
getIntf
(),
"
i
nvalid boolean expression: %s"
,
rName
.
c_str
()
);
return
NULL
;
return
NULL
;
}
}
return
varStack
.
back
();
return
varStack
.
back
();
...
...
modules/gui/skins2/parser/skin_parser.cpp
View file @
fb9fadde
...
@@ -54,7 +54,7 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
...
@@ -54,7 +54,7 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
#define RequireDefault( a ) \
#define RequireDefault( a ) \
if( attr.find(a) == attr.end() ) \
if( attr.find(a) == attr.end() ) \
{ \
{ \
msg_Err( getIntf(), "
B
ad theme (element: %s, missing attribute: %s)", \
msg_Err( getIntf(), "
b
ad theme (element: %s, missing attribute: %s)", \
rName.c_str(), a ); \
rName.c_str(), a ); \
m_errors = true; return; \
m_errors = true; return; \
}
}
...
@@ -65,7 +65,7 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
...
@@ -65,7 +65,7 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
OSFactory
*
pFactory
=
OSFactory
::
instance
(
getIntf
()
);
OSFactory
*
pFactory
=
OSFactory
::
instance
(
getIntf
()
);
string
fullPath
=
m_path
+
pFactory
->
getDirSeparator
()
+
attr
[
"file"
];
string
fullPath
=
m_path
+
pFactory
->
getDirSeparator
()
+
attr
[
"file"
];
msg_Dbg
(
getIntf
(),
"
O
pening included XML file: %s"
,
fullPath
.
c_str
()
);
msg_Dbg
(
getIntf
(),
"
o
pening included XML file: %s"
,
fullPath
.
c_str
()
);
// FIXME: We do not use the DTD to validate the included XML file,
// FIXME: We do not use the DTD to validate the included XML file,
// as the parser seems to dislike it otherwise...
// as the parser seems to dislike it otherwise...
SkinParser
subParser
(
getIntf
(),
fullPath
.
c_str
(),
false
,
m_pData
);
SkinParser
subParser
(
getIntf
(),
fullPath
.
c_str
(),
false
,
m_pData
);
...
@@ -484,7 +484,7 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
...
@@ -484,7 +484,7 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
// Check the version
// Check the version
if
(
strcmp
(
attr
[
"version"
],
SKINS_DTD_VERSION
)
)
if
(
strcmp
(
attr
[
"version"
],
SKINS_DTD_VERSION
)
)
{
{
msg_Err
(
getIntf
(),
"
B
ad theme version : %s (you need version %s)"
,
msg_Err
(
getIntf
(),
"
b
ad theme version : %s (you need version %s)"
,
attr
[
"version"
],
SKINS_DTD_VERSION
);
attr
[
"version"
],
SKINS_DTD_VERSION
);
m_errors
=
true
;
m_errors
=
true
;
return
;
return
;
...
@@ -592,14 +592,14 @@ int SkinParser::convertInRange( const char *value, int minValue, int maxValue,
...
@@ -592,14 +592,14 @@ int SkinParser::convertInRange( const char *value, int minValue, int maxValue,
if
(
intValue
<
minValue
)
if
(
intValue
<
minValue
)
{
{
msg_Warn
(
getIntf
(),
"
V
alue of
\"
%s
\"
attribute (%i) is out of the "
msg_Warn
(
getIntf
(),
"
v
alue of
\"
%s
\"
attribute (%i) is out of the "
"expected range [%i, %i], using %i instead"
,
"expected range [%i, %i], using %i instead"
,
rAttribute
.
c_str
(),
intValue
,
minValue
,
maxValue
,
minValue
);
rAttribute
.
c_str
(),
intValue
,
minValue
,
maxValue
,
minValue
);
return
minValue
;
return
minValue
;
}
}
else
if
(
intValue
>
maxValue
)
else
if
(
intValue
>
maxValue
)
{
{
msg_Warn
(
getIntf
(),
"
V
alue of
\"
%s
\"
attribute (%i) is out of the "
msg_Warn
(
getIntf
(),
"
v
alue of
\"
%s
\"
attribute (%i) is out of the "
"expected range [%i, %i], using %i instead"
,
"expected range [%i, %i], using %i instead"
,
rAttribute
.
c_str
(),
intValue
,
minValue
,
maxValue
,
maxValue
);
rAttribute
.
c_str
(),
intValue
,
minValue
,
maxValue
,
maxValue
);
return
maxValue
;
return
maxValue
;
...
@@ -633,7 +633,7 @@ const string SkinParser::uniqueId( const string &id )
...
@@ -633,7 +633,7 @@ const string SkinParser::uniqueId( const string &id )
// The id was already used
// The id was already used
if
(
id
!=
"none"
)
if
(
id
!=
"none"
)
{
{
msg_Warn
(
getIntf
(),
"
Non
unique id: %s"
,
id
.
c_str
()
);
msg_Warn
(
getIntf
(),
"
non-
unique id: %s"
,
id
.
c_str
()
);
}
}
newId
=
generateId
();
newId
=
generateId
();
}
}
...
...
modules/gui/skins2/parser/xmlparser.cpp
View file @
fb9fadde
...
@@ -41,7 +41,7 @@ XMLParser::XMLParser( intf_thread_t *pIntf, const string &rFileName,
...
@@ -41,7 +41,7 @@ XMLParser::XMLParser( intf_thread_t *pIntf, const string &rFileName,
m_pXML
=
xml_Create
(
pIntf
);
m_pXML
=
xml_Create
(
pIntf
);
if
(
!
m_pXML
)
if
(
!
m_pXML
)
{
{
msg_Err
(
getIntf
(),
"
F
ailed to open XML parser"
);
msg_Err
(
getIntf
(),
"
f
ailed to open XML parser"
);
return
;
return
;
}
}
...
@@ -55,14 +55,14 @@ XMLParser::XMLParser( intf_thread_t *pIntf, const string &rFileName,
...
@@ -55,14 +55,14 @@ XMLParser::XMLParser( intf_thread_t *pIntf, const string &rFileName,
m_pStream
=
stream_UrlNew
(
pIntf
,
rFileName
.
c_str
()
);
m_pStream
=
stream_UrlNew
(
pIntf
,
rFileName
.
c_str
()
);
if
(
!
m_pStream
)
if
(
!
m_pStream
)
{
{
msg_Err
(
getIntf
(),
"
F
ailed to open %s for reading"
,
msg_Err
(
getIntf
(),
"
f
ailed to open %s for reading"
,
rFileName
.
c_str
()
);
rFileName
.
c_str
()
);
return
;
return
;
}
}
m_pReader
=
xml_ReaderCreate
(
m_pXML
,
m_pStream
);
m_pReader
=
xml_ReaderCreate
(
m_pXML
,
m_pStream
);
if
(
!
m_pReader
)
if
(
!
m_pReader
)
{
{
msg_Err
(
getIntf
(),
"
F
ailed to open %s for parsing"
,
msg_Err
(
getIntf
(),
"
f
ailed to open %s for parsing"
,
rFileName
.
c_str
()
);
rFileName
.
c_str
()
);
return
;
return
;
}
}
...
@@ -115,7 +115,7 @@ void XMLParser::LoadCatalog()
...
@@ -115,7 +115,7 @@ void XMLParser::LoadCatalog()
if
(
!
stat
(
path
.
c_str
(),
&
statBuf
)
)
if
(
!
stat
(
path
.
c_str
(),
&
statBuf
)
)
{
{
// DTD found
// DTD found
msg_Dbg
(
getIntf
(),
"
U
sing DTD %s"
,
path
.
c_str
()
);
msg_Dbg
(
getIntf
(),
"
u
sing DTD %s"
,
path
.
c_str
()
);
// Add an entry in the default catalog
// Add an entry in the default catalog
xml_CatalogAdd
(
m_pXML
,
"public"
,
xml_CatalogAdd
(
m_pXML
,
"public"
,
...
@@ -126,7 +126,7 @@ void XMLParser::LoadCatalog()
...
@@ -126,7 +126,7 @@ void XMLParser::LoadCatalog()
}
}
if
(
it
==
resPath
.
end
()
)
if
(
it
==
resPath
.
end
()
)
{
{
msg_Err
(
getIntf
(),
"
Cannot find the skins DTD !
"
);
msg_Err
(
getIntf
(),
"
cannot find the skins DTD
"
);
}
}
#endif
#endif
}
}
...
...
modules/gui/skins2/src/dialogs.cpp
View file @
fb9fadde
...
@@ -170,7 +170,7 @@ bool Dialogs::init()
...
@@ -170,7 +170,7 @@ bool Dialogs::init()
m_pModule
=
module_Need
(
m_pProvider
,
"dialogs provider"
,
NULL
,
0
);
m_pModule
=
module_Need
(
m_pProvider
,
"dialogs provider"
,
NULL
,
0
);
if
(
m_pModule
==
NULL
)
if
(
m_pModule
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
N
o suitable dialogs provider found (hint: compile the wxWidgets plugin, and make sure it is loaded properly)"
);
msg_Err
(
getIntf
(),
"
n
o suitable dialogs provider found (hint: compile the wxWidgets plugin, and make sure it is loaded properly)"
);
vlc_object_destroy
(
m_pProvider
);
vlc_object_destroy
(
m_pProvider
);
m_pProvider
=
NULL
;
m_pProvider
=
NULL
;
return
false
;
return
false
;
...
...
modules/gui/skins2/src/ft2_font.cpp
View file @
fb9fadde
...
@@ -68,7 +68,7 @@ bool FT2Font::init()
...
@@ -68,7 +68,7 @@ bool FT2Font::init()
// Initalise libfreetype
// Initalise libfreetype
if
(
FT_Init_FreeType
(
&
m_lib
)
)
if
(
FT_Init_FreeType
(
&
m_lib
)
)
{
{
msg_Err
(
getIntf
(),
"
Failed to initalize lib
freetype"
);
msg_Err
(
getIntf
(),
"
failed to initalize
freetype"
);
return
false
;
return
false
;
}
}
...
@@ -76,11 +76,11 @@ bool FT2Font::init()
...
@@ -76,11 +76,11 @@ bool FT2Font::init()
FILE
*
file
=
fopen
(
m_name
.
c_str
(),
"rb"
);
FILE
*
file
=
fopen
(
m_name
.
c_str
(),
"rb"
);
if
(
file
)
if
(
file
)
{
{
msg_Dbg
(
getIntf
(),
"
L
oading font %s"
,
m_name
.
c_str
()
);
msg_Dbg
(
getIntf
(),
"
l
oading font %s"
,
m_name
.
c_str
()
);
}
}
else
else
{
{
msg_Dbg
(
getIntf
(),
"
U
nable to open the font %s"
,
m_name
.
c_str
()
);
msg_Dbg
(
getIntf
(),
"
u
nable to open the font %s"
,
m_name
.
c_str
()
);
return
false
;
return
false
;
}
}
// Get the file size
// Get the file size
...
@@ -91,7 +91,7 @@ bool FT2Font::init()
...
@@ -91,7 +91,7 @@ bool FT2Font::init()
m_buffer
=
malloc
(
size
);
m_buffer
=
malloc
(
size
);
if
(
!
m_buffer
)
if
(
!
m_buffer
)
{
{
msg_Err
(
getIntf
(),
"
N
ot enough memory for the font %s"
,
msg_Err
(
getIntf
(),
"
n
ot enough memory for the font %s"
,
m_name
.
c_str
()
);
m_name
.
c_str
()
);
return
false
;
return
false
;
}
}
...
@@ -104,26 +104,26 @@ bool FT2Font::init()
...
@@ -104,26 +104,26 @@ bool FT2Font::init()
&
m_face
);
&
m_face
);
if
(
err
==
FT_Err_Unknown_File_Format
)
if
(
err
==
FT_Err_Unknown_File_Format
)
{
{
msg_Err
(
getIntf
(),
"
U
nsupported font format (%s)"
,
m_name
.
c_str
()
);
msg_Err
(
getIntf
(),
"
u
nsupported font format (%s)"
,
m_name
.
c_str
()
);
return
false
;
return
false
;
}
}
else
if
(
err
)
else
if
(
err
)
{
{
msg_Err
(
getIntf
(),
"
E
rror opening font (%s)"
,
m_name
.
c_str
()
);
msg_Err
(
getIntf
(),
"
e
rror opening font (%s)"
,
m_name
.
c_str
()
);
return
false
;
return
false
;
}
}
// Select the charset
// Select the charset
if
(
FT_Select_Charmap
(
m_face
,
ft_encoding_unicode
)
)
if
(
FT_Select_Charmap
(
m_face
,
ft_encoding_unicode
)
)
{
{
msg_Err
(
getIntf
(),
"
F
ont has no UNICODE table (%s)"
,
m_name
.
c_str
()
);
msg_Err
(
getIntf
(),
"
f
ont has no UNICODE table (%s)"
,
m_name
.
c_str
()
);
return
false
;
return
false
;
}
}
// Set the pixel size
// Set the pixel size
if
(
FT_Set_Pixel_Sizes
(
m_face
,
0
,
m_size
)
)
if
(
FT_Set_Pixel_Sizes
(
m_face
,
0
,
m_size
)
)
{
{
msg_Warn
(
getIntf
(),
"
C
annot set a pixel size of %d (%s)"
,
m_size
,
msg_Warn
(
getIntf
(),
"
c
annot set a pixel size of %d (%s)"
,
m_size
,
m_name
.
c_str
()
);
m_name
.
c_str
()
);
}
}
...
...
modules/gui/skins2/src/generic_layout.cpp
View file @
fb9fadde
...
@@ -110,7 +110,7 @@ void GenericLayout::addControl( CtrlGeneric *pControl,
...
@@ -110,7 +110,7 @@ void GenericLayout::addControl( CtrlGeneric *pControl,
}
}
else
else
{
{
msg_Dbg
(
getIntf
(),
"
A
dding NULL control in the layout"
);
msg_Dbg
(
getIntf
(),
"
a
dding NULL control in the layout"
);
}
}
}
}
...
...
modules/gui/skins2/src/popup.cpp
View file @
fb9fadde
...
@@ -80,7 +80,7 @@ void Popup::handleEvent( const EvtMenu &rEvent )
...
@@ -80,7 +80,7 @@ void Popup::handleEvent( const EvtMenu &rEvent )
else
else
{
{
// Should never happen
// Should never happen
msg_Warn
(
getIntf
(),
"
P
roblem in the popup implementation"
);
msg_Warn
(
getIntf
(),
"
p
roblem in the popup implementation"
);
}
}
}
}
modules/gui/skins2/src/skin_main.cpp
View file @
fb9fadde
...
@@ -109,35 +109,35 @@ static int Open( vlc_object_t *p_this )
...
@@ -109,35 +109,35 @@ static int Open( vlc_object_t *p_this )
// Initialize singletons
// Initialize singletons
if
(
OSFactory
::
instance
(
p_intf
)
==
NULL
)
if
(
OSFactory
::
instance
(
p_intf
)
==
NULL
)
{
{
msg_Err
(
p_intf
,
"
C
annot initialize OSFactory"
);
msg_Err
(
p_intf
,
"
c
annot initialize OSFactory"
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
AsyncQueue
::
instance
(
p_intf
)
==
NULL
)
if
(
AsyncQueue
::
instance
(
p_intf
)
==
NULL
)
{
{
msg_Err
(
p_intf
,
"
C
annot initialize AsyncQueue"
);
msg_Err
(
p_intf
,
"
c
annot initialize AsyncQueue"
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
Interpreter
::
instance
(
p_intf
)
==
NULL
)
if
(
Interpreter
::
instance
(
p_intf
)
==
NULL
)
{
{
msg_Err
(
p_intf
,
"
C
annot instanciate Interpreter"
);
msg_Err
(
p_intf
,
"
c
annot instanciate Interpreter"
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
VarManager
::
instance
(
p_intf
)
==
NULL
)
if
(
VarManager
::
instance
(
p_intf
)
==
NULL
)
{
{
msg_Err
(
p_intf
,
"
C
annot instanciate VarManager"
);
msg_Err
(
p_intf
,
"
c
annot instanciate VarManager"
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
VlcProc
::
instance
(
p_intf
)
==
NULL
)
if
(
VlcProc
::
instance
(
p_intf
)
==
NULL
)
{
{
msg_Err
(
p_intf
,
"
C
annot initialize VLCProc"
);
msg_Err
(
p_intf
,
"
c
annot initialize VLCProc"
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
vlc_object_release
(
p_intf
->
p_sys
->
p_playlist
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
msg_Unsubscribe
(
p_intf
,
p_intf
->
p_sys
->
p_sub
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
@@ -223,7 +223,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -223,7 +223,7 @@ static void Run( intf_thread_t *p_intf )
AsyncQueue
*
pQueue
=
AsyncQueue
::
instance
(
p_intf
);
AsyncQueue
*
pQueue
=
AsyncQueue
::
instance
(
p_intf
);
pQueue
->
push
(
CmdGenericPtr
(
pCmd
)
);
pQueue
->
push
(
CmdGenericPtr
(
pCmd
)
);
msg_Err
(
p_intf
,
msg_Err
(
p_intf
,
"
C
annot show the
\"
open skin
\"
dialog: exiting..."
);
"
c
annot show the
\"
open skin
\"
dialog: exiting..."
);
}
}
}
}
}
}
...
...
modules/gui/skins2/src/theme.cpp
View file @
fb9fadde
...
@@ -41,7 +41,7 @@ Theme::~Theme()
...
@@ -41,7 +41,7 @@ Theme::~Theme()
void
Theme
::
loadConfig
()
void
Theme
::
loadConfig
()
{
{
msg_Dbg
(
getIntf
(),
"
L
oading theme configuration"
);
msg_Dbg
(
getIntf
(),
"
l
oading theme configuration"
);
// Get config from vlcrc file
// Get config from vlcrc file
char
*
save
=
config_GetPsz
(
getIntf
(),
"skins2-config"
);
char
*
save
=
config_GetPsz
(
getIntf
(),
"skins2-config"
);
...
@@ -88,7 +88,7 @@ void Theme::loadConfig()
...
@@ -88,7 +88,7 @@ void Theme::loadConfig()
void
Theme
::
saveConfig
()
void
Theme
::
saveConfig
()
{
{
msg_Dbg
(
getIntf
(),
"
S
aving theme configuration"
);
msg_Dbg
(
getIntf
(),
"
s
aving theme configuration"
);
// Initialize char where config is stored
// Initialize char where config is stored
char
*
save
=
new
char
[
400
];
char
*
save
=
new
char
[
400
];
...
...
modules/gui/skins2/src/theme_loader.cpp
View file @
fb9fadde
...
@@ -163,7 +163,7 @@ bool ThemeLoader::extractZip( const string &zipFile, const string &rootDir )
...
@@ -163,7 +163,7 @@ bool ThemeLoader::extractZip( const string &zipFile, const string &rootDir )
{
{
if
(
!
extractFileInZip
(
file
,
rootDir
)
)
if
(
!
extractFileInZip
(
file
,
rootDir
)
)
{
{
msg_Warn
(
getIntf
(),
"
E
rror while unzipping %s"
,
msg_Warn
(
getIntf
(),
"
e
rror while unzipping %s"
,
zipFile
.
c_str
()
);
zipFile
.
c_str
()
);
unzClose
(
file
);
unzClose
(
file
);
return
false
;
return
false
;
...
@@ -174,7 +174,7 @@ bool ThemeLoader::extractZip( const string &zipFile, const string &rootDir )
...
@@ -174,7 +174,7 @@ bool ThemeLoader::extractZip( const string &zipFile, const string &rootDir )
// Go the next file in the archive
// Go the next file in the archive
if
(
unzGoToNextFile
(
file
)
!=
UNZ_OK
)
if
(
unzGoToNextFile
(
file
)
!=
UNZ_OK
)
{
{
msg_Warn
(
getIntf
(),
"
E
rror while unzipping %s"
,
msg_Warn
(
getIntf
(),
"
e
rror while unzipping %s"
,
zipFile
.
c_str
()
);
zipFile
.
c_str
()
);
unzClose
(
file
);
unzClose
(
file
);
return
false
;
return
false
;
...
@@ -209,7 +209,7 @@ bool ThemeLoader::extractFileInZip( unzFile file, const string &rootDir )
...
@@ -209,7 +209,7 @@ bool ThemeLoader::extractFileInZip( unzFile file, const string &rootDir )
void
*
pBuffer
=
malloc
(
ZIP_BUFFER_SIZE
);
void
*
pBuffer
=
malloc
(
ZIP_BUFFER_SIZE
);
if
(
!
pBuffer
)
if
(
!
pBuffer
)
{
{
msg_Err
(
getIntf
(),
"
F
ailed to allocate memory"
);
msg_Err
(
getIntf
(),
"
f
ailed to allocate memory"
);
return
false
;
return
false
;
}
}
...
@@ -232,7 +232,7 @@ bool ThemeLoader::extractFileInZip( unzFile file, const string &rootDir )
...
@@ -232,7 +232,7 @@ bool ThemeLoader::extractFileInZip( unzFile file, const string &rootDir )
FILE
*
fout
=
fopen
(
fullPath
.
c_str
(),
"wb"
);
FILE
*
fout
=
fopen
(
fullPath
.
c_str
(),
"wb"
);
if
(
fout
==
NULL
)
if
(
fout
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
E
rror opening %s"
,
fullPath
.
c_str
()
);
msg_Err
(
getIntf
(),
"
e
rror opening %s"
,
fullPath
.
c_str
()
);
free
(
pBuffer
);
free
(
pBuffer
);
return
false
;
return
false
;
}
}
...
@@ -244,7 +244,7 @@ bool ThemeLoader::extractFileInZip( unzFile file, const string &rootDir )
...
@@ -244,7 +244,7 @@ bool ThemeLoader::extractFileInZip( unzFile file, const string &rootDir )
n
=
unzReadCurrentFile
(
file
,
pBuffer
,
ZIP_BUFFER_SIZE
);
n
=
unzReadCurrentFile
(
file
,
pBuffer
,
ZIP_BUFFER_SIZE
);
if
(
n
<
0
)
if
(
n
<
0
)
{
{
msg_Err
(
getIntf
(),
"
E
rror while reading zip file"
);
msg_Err
(
getIntf
(),
"
e
rror while reading zip file"
);
free
(
pBuffer
);
free
(
pBuffer
);
return
false
;
return
false
;
}
}
...
@@ -252,7 +252,7 @@ bool ThemeLoader::extractFileInZip( unzFile file, const string &rootDir )
...
@@ -252,7 +252,7 @@ bool ThemeLoader::extractFileInZip( unzFile file, const string &rootDir )
{
{
if
(
fwrite
(
pBuffer
,
n
,
1
,
fout
)
!=
1
)
if
(
fwrite
(
pBuffer
,
n
,
1
,
fout
)
!=
1
)
{
{
msg_Err
(
getIntf
(),
"
E
rror while writing %s"
,
msg_Err
(
getIntf
(),
"
e
rror while writing %s"
,
fullPath
.
c_str
()
);
fullPath
.
c_str
()
);
free
(
pBuffer
);
free
(
pBuffer
);
return
false
;
return
false
;
...
@@ -303,7 +303,7 @@ bool ThemeLoader::extract( const string &fileName )
...
@@ -303,7 +303,7 @@ bool ThemeLoader::extract( const string &fileName )
string
mainBmp
;
string
mainBmp
;
if
(
findFile
(
tempPath
,
"main.bmp"
,
mainBmp
)
)
if
(
findFile
(
tempPath
,
"main.bmp"
,
mainBmp
)
)
{
{
msg_Dbg
(
getIntf
(),
"
Try
to load a winamp2 skin"
);
msg_Dbg
(
getIntf
(),
"
trying
to load a winamp2 skin"
);
path
=
getFilePath
(
mainBmp
);
path
=
getFilePath
(
mainBmp
);
// Look for winamp2.xml in the resource path
// Look for winamp2.xml in the resource path
...
@@ -322,13 +322,13 @@ bool ThemeLoader::extract( const string &fileName )
...
@@ -322,13 +322,13 @@ bool ThemeLoader::extract( const string &fileName )
// Parse the XML file
// Parse the XML file
if
(
!
parse
(
path
,
xmlFile
)
)
if
(
!
parse
(
path
,
xmlFile
)
)
{
{
msg_Err
(
getIntf
(),
"
E
rror while parsing %s"
,
xmlFile
.
c_str
()
);
msg_Err
(
getIntf
(),
"
e
rror while parsing %s"
,
xmlFile
.
c_str
()
);
result
=
false
;
result
=
false
;
}
}
}
}
else
else
{
{
msg_Err
(
getIntf
(),
"
N
o XML found in theme %s"
,
fileName
.
c_str
()
);
msg_Err
(
getIntf
(),
"
n
o XML found in theme %s"
,
fileName
.
c_str
()
);
result
=
false
;
result
=
false
;
}
}
...
@@ -348,13 +348,13 @@ void ThemeLoader::deleteTempFiles( const string &path )
...
@@ -348,13 +348,13 @@ void ThemeLoader::deleteTempFiles( const string &path )
bool
ThemeLoader
::
parse
(
const
string
&
path
,
const
string
&
xmlFile
)
bool
ThemeLoader
::
parse
(
const
string
&
path
,
const
string
&
xmlFile
)
{
{
// File loaded
// File loaded
msg_Dbg
(
getIntf
(),
"
U
sing skin file: %s"
,
xmlFile
.
c_str
()
);
msg_Dbg
(
getIntf
(),
"
u
sing skin file: %s"
,
xmlFile
.
c_str
()
);
// Start the parser
// Start the parser
SkinParser
parser
(
getIntf
(),
xmlFile
,
path
);
SkinParser
parser
(
getIntf
(),
xmlFile
,
path
);
if
(
!
parser
.
parse
()
)
if
(
!
parser
.
parse
()
)
{
{
msg_Err
(
getIntf
(),
"
F
ailed to parse %s"
,
xmlFile
.
c_str
()
);
msg_Err
(
getIntf
(),
"
f
ailed to parse %s"
,
xmlFile
.
c_str
()
);
return
false
;
return
false
;
}
}
...
@@ -418,7 +418,7 @@ bool ThemeLoader::findFile( const string &rootDir, const string &rFileName,
...
@@ -418,7 +418,7 @@ bool ThemeLoader::findFile( const string &rootDir, const string &rFileName,
if
(
pCurrDir
==
NULL
)
if
(
pCurrDir
==
NULL
)
{
{
// An error occurred
// An error occurred
msg_Dbg
(
getIntf
(),
"
C
annot open directory %s"
,
rootDir
.
c_str
()
);
msg_Dbg
(
getIntf
(),
"
c
annot open directory %s"
,
rootDir
.
c_str
()
);
return
false
;
return
false
;
}
}
...
...
modules/gui/skins2/src/theme_repository.cpp
View file @
fb9fadde
...
@@ -109,7 +109,7 @@ void ThemeRepository::parseDirectory( const string &rDir )
...
@@ -109,7 +109,7 @@ void ThemeRepository::parseDirectory( const string &rDir )
if
(
pDir
==
NULL
)
if
(
pDir
==
NULL
)
{
{
// An error occurred
// An error occurred
msg_Dbg
(
getIntf
(),
"
C
annot open directory %s"
,
rDir
.
c_str
()
);
msg_Dbg
(
getIntf
(),
"
c
annot open directory %s"
,
rDir
.
c_str
()
);
return
;
return
;
}
}
...
...
modules/gui/skins2/src/top_window.cpp
View file @
fb9fadde
...
@@ -98,7 +98,7 @@ void TopWindow::processEvent( EvtMenu &rEvtMenu )
...
@@ -98,7 +98,7 @@ void TopWindow::processEvent( EvtMenu &rEvtMenu )
// We should never receive a menu event when there is no active popup!
// We should never receive a menu event when there is no active popup!
if
(
pPopup
==
NULL
)
if
(
pPopup
==
NULL
)
{
{
msg_Warn
(
getIntf
(),
"
U
nexpected menu event, ignoring"
);
msg_Warn
(
getIntf
(),
"
u
nexpected menu event, ignoring"
);
return
;
return
;
}
}
...
@@ -380,7 +380,7 @@ void TopWindow::onControlRelease( const CtrlGeneric &rCtrl )
...
@@ -380,7 +380,7 @@ void TopWindow::onControlRelease( const CtrlGeneric &rCtrl )
}
}
else
else
{
{
msg_Dbg
(
getIntf
(),
"
C
ontrol had not captured the mouse"
);
msg_Dbg
(
getIntf
(),
"
c
ontrol had not captured the mouse"
);
}
}
// Send an enter event to the control under the mouse, if it doesn't
// Send an enter event to the control under the mouse, if it doesn't
...
@@ -451,7 +451,7 @@ CtrlGeneric *TopWindow::findHitControl( int xPos, int yPos )
...
@@ -451,7 +451,7 @@ CtrlGeneric *TopWindow::findHitControl( int xPos, int yPos )
}
}
else
else
{
{
msg_Dbg
(
getIntf
(),
"
C
ontrol at NULL position"
);
msg_Dbg
(
getIntf
(),
"
c
ontrol at NULL position"
);
}
}
}
}
...
...
modules/gui/skins2/src/var_manager.cpp
View file @
fb9fadde
...
@@ -115,7 +115,7 @@ Variable *VarManager::getVar( const string &rName, const string &rType )
...
@@ -115,7 +115,7 @@ Variable *VarManager::getVar( const string &rName, const string &rType )
// Check the variable type
// Check the variable type
if
(
pVar
->
getType
()
!=
rType
)
if
(
pVar
->
getType
()
!=
rType
)
{
{
msg_Warn
(
getIntf
(),
"
V
ariable %s has incorrect type (%s instead"
msg_Warn
(
getIntf
(),
"
v
ariable %s has incorrect type (%s instead"
" of (%s)"
,
rName
.
c_str
(),
pVar
->
getType
().
c_str
(),
" of (%s)"
,
rName
.
c_str
(),
pVar
->
getType
().
c_str
(),
rType
.
c_str
()
);
rType
.
c_str
()
);
return
NULL
;
return
NULL
;
...
...
modules/gui/skins2/src/window_manager.cpp
View file @
fb9fadde
...
@@ -381,7 +381,7 @@ void WindowManager::createTooltip( const GenericFont &rTipFont )
...
@@ -381,7 +381,7 @@ void WindowManager::createTooltip( const GenericFont &rTipFont )
}
}
else
else
{
{
msg_Warn
(
getIntf
(),
"
T
ooltip already created!"
);
msg_Warn
(
getIntf
(),
"
t
ooltip already created!"
);
}
}
}
}
...
...
modules/gui/skins2/utils/ustring.cpp
View file @
fb9fadde
...
@@ -71,7 +71,7 @@ UString::UString( intf_thread_t *pIntf, const char *pString ):
...
@@ -71,7 +71,7 @@ UString::UString( intf_thread_t *pIntf, const char *pString ):
}
}
if
(
!
pCur
||
*
pCur
)
if
(
!
pCur
||
*
pCur
)
{
{
msg_Err
(
pIntf
,
"
I
nvalid UTF8 string: %s"
,
pString
);
msg_Err
(
pIntf
,
"
i
nvalid UTF8 string: %s"
,
pString
);
m_length
=
0
;
m_length
=
0
;
m_pString
=
NULL
;
m_pString
=
NULL
;
return
;
return
;
...
@@ -315,7 +315,7 @@ UString UString::substr( uint32_t position, uint32_t n) const
...
@@ -315,7 +315,7 @@ UString UString::substr( uint32_t position, uint32_t n) const
UString
tmp
(
getIntf
(),
""
);
UString
tmp
(
getIntf
(),
""
);
if
(
position
>
size
()
)
if
(
position
>
size
()
)
{
{
msg_Err
(
getIntf
(),
"
I
nvalid position in UString::substr()"
);
msg_Err
(
getIntf
(),
"
i
nvalid position in UString::substr()"
);
return
tmp
;
return
tmp
;
}
}
tmp
.
m_length
=
(
n
<
size
()
-
position
)
?
n
:
size
()
-
position
;
tmp
.
m_length
=
(
n
<
size
()
-
position
)
?
n
:
size
()
-
position
;
...
...
modules/gui/skins2/vars/playtree.cpp
View file @
fb9fadde
...
@@ -40,12 +40,12 @@ Playtree::Playtree( intf_thread_t *pIntf ): VarTree( pIntf )
...
@@ -40,12 +40,12 @@ Playtree::Playtree( intf_thread_t *pIntf ): VarTree( pIntf )
char
*
pCharset
;
char
*
pCharset
;
vlc_current_charset
(
&
pCharset
);
vlc_current_charset
(
&
pCharset
);
iconvHandle
=
vlc_iconv_open
(
"UTF-8"
,
pCharset
);
iconvHandle
=
vlc_iconv_open
(
"UTF-8"
,
pCharset
);
msg_Dbg
(
pIntf
,
"
U
sing character encoding: %s"
,
pCharset
);
msg_Dbg
(
pIntf
,
"
u
sing character encoding: %s"
,
pCharset
);
free
(
pCharset
);
free
(
pCharset
);
if
(
iconvHandle
==
(
vlc_iconv_t
)
-
1
)
if
(
iconvHandle
==
(
vlc_iconv_t
)
-
1
)
{
{
msg_Warn
(
pIntf
,
"
U
nable to do requested conversion"
);
msg_Warn
(
pIntf
,
"
u
nable to do requested conversion"
);
}
}
buildTree
();
buildTree
();
...
@@ -149,7 +149,7 @@ void Playtree::onUpdateItem( int id )
...
@@ -149,7 +149,7 @@ void Playtree::onUpdateItem( int id )
}
}
else
else
{
{
msg_Warn
(
getIntf
(),
"
C
annot find node with id %d"
,
id
);
msg_Warn
(
getIntf
(),
"
c
annot find node with id %d"
,
id
);
}
}
descr
.
i_type
=
0
;
descr
.
i_type
=
0
;
notify
(
&
descr
);
notify
(
&
descr
);
...
...
modules/gui/skins2/win32/win32_factory.cpp
View file @
fb9fadde
...
@@ -120,7 +120,7 @@ bool Win32Factory::init()
...
@@ -120,7 +120,7 @@ bool Win32Factory::init()
// then fine, otherwise return with an error.
// then fine, otherwise return with an error.
if
(
!
GetClassInfo
(
m_hInst
,
_T
(
"SkinWindowClass"
),
&
wndclass
)
)
if
(
!
GetClassInfo
(
m_hInst
,
_T
(
"SkinWindowClass"
),
&
wndclass
)
)
{
{
msg_Err
(
getIntf
(),
"
C
annot register window class"
);
msg_Err
(
getIntf
(),
"
c
annot register window class"
);
return
false
;
return
false
;
}
}
}
}
...
@@ -131,7 +131,7 @@ bool Win32Factory::init()
...
@@ -131,7 +131,7 @@ bool Win32Factory::init()
-
200
,
-
200
,
0
,
0
,
0
,
0
,
m_hInst
,
0
);
-
200
,
-
200
,
0
,
0
,
0
,
0
,
m_hInst
,
0
);
if
(
m_hParentWindow
==
NULL
)
if
(
m_hParentWindow
==
NULL
)
{
{
msg_Err
(
getIntf
(),
"
C
annot create parent window"
);
msg_Err
(
getIntf
(),
"
c
annot create parent window"
);
return
false
;
return
false
;
}
}
...
@@ -157,7 +157,7 @@ bool Win32Factory::init()
...
@@ -157,7 +157,7 @@ bool Win32Factory::init()
GetProcAddress
(
m_hMsimg32
,
_T
(
"TransparentBlt"
)
)
)
)
GetProcAddress
(
m_hMsimg32
,
_T
(
"TransparentBlt"
)
)
)
)
{
{
TransparentBlt
=
NULL
;
TransparentBlt
=
NULL
;
msg_Dbg
(
getIntf
(),
"
C
ouldn't find TransparentBlt(), "
msg_Dbg
(
getIntf
(),
"
c
ouldn't find TransparentBlt(), "
"falling back to BitBlt()"
);
"falling back to BitBlt()"
);
}
}
if
(
!
m_hMsimg32
||
if
(
!
m_hMsimg32
||
...
@@ -167,7 +167,7 @@ bool Win32Factory::init()
...
@@ -167,7 +167,7 @@ bool Win32Factory::init()
GetProcAddress
(
m_hMsimg32
,
_T
(
"AlphaBlend"
)
)
)
)
GetProcAddress
(
m_hMsimg32
,
_T
(
"AlphaBlend"
)
)
)
)
{
{
AlphaBlend
=
NULL
;
AlphaBlend
=
NULL
;
msg_Dbg
(
getIntf
(),
"
C
ouldn't find AlphaBlend()"
);
msg_Dbg
(
getIntf
(),
"
c
ouldn't find AlphaBlend()"
);
}
}
// Idem for user32.dll and SetLayeredWindowAttributes()
// Idem for user32.dll and SetLayeredWindowAttributes()
...
@@ -178,7 +178,7 @@ bool Win32Factory::init()
...
@@ -178,7 +178,7 @@ bool Win32Factory::init()
GetProcAddress
(
m_hUser32
,
_T
(
"SetLayeredWindowAttributes"
)
)
)
)
GetProcAddress
(
m_hUser32
,
_T
(
"SetLayeredWindowAttributes"
)
)
)
)
{
{
SetLayeredWindowAttributes
=
NULL
;
SetLayeredWindowAttributes
=
NULL
;
msg_Dbg
(
getIntf
(),
"
C
ouldn't find SetLayeredWindowAttributes()"
);
msg_Dbg
(
getIntf
(),
"
c
ouldn't find SetLayeredWindowAttributes()"
);
}
}
// Initialize the resource path
// Initialize the resource path
...
@@ -267,7 +267,7 @@ OSPopup *Win32Factory::createOSPopup()
...
@@ -267,7 +267,7 @@ OSPopup *Win32Factory::createOSPopup()
// GenericWindow (we cannot eevn access the OSWindow).
// GenericWindow (we cannot eevn access the OSWindow).
if
(
m_windowMap
.
begin
()
==
m_windowMap
.
end
()
)
if
(
m_windowMap
.
begin
()
==
m_windowMap
.
end
()
)
{
{
msg_Err
(
getIntf
(),
"
N
o window has been created before the popup!"
);
msg_Err
(
getIntf
(),
"
n
o window has been created before the popup!"
);
return
NULL
;
return
NULL
;
}
}
...
...
modules/gui/skins2/win32/win32_tooltip.cpp
View file @
fb9fadde
...
@@ -40,7 +40,7 @@ Win32Tooltip::Win32Tooltip( intf_thread_t *pIntf, HINSTANCE hInst,
...
@@ -40,7 +40,7 @@ Win32Tooltip::Win32Tooltip( intf_thread_t *pIntf, HINSTANCE hInst,
if
(
!
m_hWnd
)
if
(
!
m_hWnd
)
{
{
msg_Err
(
getIntf
(),
"
C
reateWindow failed"
);
msg_Err
(
getIntf
(),
"
c
reateWindow failed"
);
return
;
return
;
}
}
}
}
...
...
modules/gui/skins2/x11/x11_display.cpp
View file @
fb9fadde
...
@@ -183,7 +183,7 @@ X11Display::X11Display( intf_thread_t *pIntf ): SkinObject( pIntf ),
...
@@ -183,7 +183,7 @@ X11Display::X11Display( intf_thread_t *pIntf ): SkinObject( pIntf ),
break
;
break
;
default:
default:
msg_Err
(
getIntf
(),
"
U
nsupported depth: %d bpp
\n
"
,
depth
);
msg_Err
(
getIntf
(),
"
u
nsupported depth: %d bpp
\n
"
,
depth
);
m_pDisplay
=
NULL
;
m_pDisplay
=
NULL
;
break
;
break
;
}
}
...
...
modules/gui/skins2/x11/x11_graphics.cpp
View file @
fb9fadde
...
@@ -49,7 +49,7 @@ X11Graphics::X11Graphics( intf_thread_t *pIntf, X11Display &rDisplay,
...
@@ -49,7 +49,7 @@ X11Graphics::X11Graphics( intf_thread_t *pIntf, X11Display &rDisplay,
{
{
// Avoid a X11 Bad Value error
// Avoid a X11 Bad Value error
width
=
height
=
1
;
width
=
height
=
1
;
msg_Err
(
getIntf
(),
"
I
nvalid image size (null width or height)"
);
msg_Err
(
getIntf
(),
"
i
nvalid image size (null width or height)"
);
}
}
// Create a pixmap
// Create a pixmap
...
@@ -138,7 +138,7 @@ void X11Graphics::drawBitmap( const GenericBitmap &rBitmap, int xSrc,
...
@@ -138,7 +138,7 @@ void X11Graphics::drawBitmap( const GenericBitmap &rBitmap, int xSrc,
}
}
else
if
(
width
>
rBitmap
.
getWidth
()
)
else
if
(
width
>
rBitmap
.
getWidth
()
)
{
{
msg_Dbg
(
getIntf
(),
"
Bitmap width too small!"
);
msg_Dbg
(
getIntf
(),
"
bitmap width too small (%i)"
,
rBitmap
.
getWidth
()
);
width
=
rBitmap
.
getWidth
();
width
=
rBitmap
.
getWidth
();
}
}
if
(
height
==
-
1
)
if
(
height
==
-
1
)
...
@@ -147,7 +147,8 @@ void X11Graphics::drawBitmap( const GenericBitmap &rBitmap, int xSrc,
...
@@ -147,7 +147,8 @@ void X11Graphics::drawBitmap( const GenericBitmap &rBitmap, int xSrc,
}
}
else
if
(
height
>
rBitmap
.
getHeight
()
)
else
if
(
height
>
rBitmap
.
getHeight
()
)
{
{
msg_Dbg
(
getIntf
(),
"Bitmap height too small!"
);
msg_Dbg
(
getIntf
(),
"bitmap height too small (%i)"
,
rBitmap
.
getHeight
()
);
height
=
rBitmap
.
getHeight
();
height
=
rBitmap
.
getHeight
();
}
}
...
@@ -160,7 +161,7 @@ void X11Graphics::drawBitmap( const GenericBitmap &rBitmap, int xSrc,
...
@@ -160,7 +161,7 @@ void X11Graphics::drawBitmap( const GenericBitmap &rBitmap, int xSrc,
// Safety check for debugging purpose
// Safety check for debugging purpose
if
(
xDest
+
width
>
m_width
||
yDest
+
height
>
m_height
)
if
(
xDest
+
width
>
m_width
||
yDest
+
height
>
m_height
)
{
{
msg_Dbg
(
getIntf
(),
"
Bitmap too large !
"
);
msg_Dbg
(
getIntf
(),
"
bitmap too large
"
);
return
;
return
;
}
}
...
...
modules/gui/skins2/x11/x11_loop.cpp
View file @
fb9fadde
...
@@ -175,7 +175,7 @@ void X11Loop::handleX11Event()
...
@@ -175,7 +175,7 @@ void X11Loop::handleX11Event()
if
(
!
pWin
)
if
(
!
pWin
)
{
{
msg_
Dbg
(
getIntf
(),
"No associated generic window !!
"
);
msg_
Warn
(
getIntf
(),
"no associated generic window
"
);
return
;
return
;
}
}
...
@@ -370,7 +370,7 @@ void X11Loop::handleX11Event()
...
@@ -370,7 +370,7 @@ void X11Loop::handleX11Event()
((
X11Factory
*
)
pOsFactory
)
->
m_dndMap
[
event
.
xany
.
window
];
((
X11Factory
*
)
pOsFactory
)
->
m_dndMap
[
event
.
xany
.
window
];
if
(
!
pDnd
)
if
(
!
pDnd
)
{
{
msg_Err
(
getIntf
(),
"
No associated D&D object !!
"
);
msg_Err
(
getIntf
(),
"
no associated D&D object
"
);
return
;
return
;
}
}
...
...
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