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
1ddde2be
Commit
1ddde2be
authored
Apr 21, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* changed "Font" into "SkinFont" (see previous commit)
parent
05af5dd8
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
39 additions
and
35 deletions
+39
-35
modules/gui/skins/controls/playlist.cpp
modules/gui/skins/controls/playlist.cpp
+2
-2
modules/gui/skins/controls/playlist.h
modules/gui/skins/controls/playlist.h
+4
-4
modules/gui/skins/controls/text.h
modules/gui/skins/controls/text.h
+3
-3
modules/gui/skins/gtk2/gtk2_font.cpp
modules/gui/skins/gtk2/gtk2_font.cpp
+2
-2
modules/gui/skins/gtk2/gtk2_font.h
modules/gui/skins/gtk2/gtk2_font.h
+2
-2
modules/gui/skins/gtk2/gtk2_theme.cpp
modules/gui/skins/gtk2/gtk2_theme.cpp
+5
-1
modules/gui/skins/src/banks.cpp
modules/gui/skins/src/banks.cpp
+4
-4
modules/gui/skins/src/banks.h
modules/gui/skins/src/banks.h
+4
-4
modules/gui/skins/src/event.h
modules/gui/skins/src/event.h
+2
-2
modules/gui/skins/src/font.cpp
modules/gui/skins/src/font.cpp
+3
-3
modules/gui/skins/src/font.h
modules/gui/skins/src/font.h
+4
-4
modules/gui/skins/win32/win32_font.cpp
modules/gui/skins/win32/win32_font.cpp
+2
-2
modules/gui/skins/win32/win32_font.h
modules/gui/skins/win32/win32_font.h
+2
-2
No files found.
modules/gui/skins/controls/playlist.cpp
View file @
1ddde2be
...
...
@@ -2,7 +2,7 @@
* playlist.cpp: Playlist control
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: playlist.cpp,v 1.
8 2003/04/21 21:51:16
asmax Exp $
* $Id: playlist.cpp,v 1.
9 2003/04/21 22:12:37
asmax Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -323,7 +323,7 @@ void ControlPlayList::DrawCase( Graphics *dest, int i, int x, int y, int w,
}
// Choose font
Font
*
F
;
Skin
Font
*
F
;
if
(
PlayList
->
i_index
==
i
)
F
=
PlayFont
;
else
...
...
modules/gui/skins/controls/playlist.h
View file @
1ddde2be
...
...
@@ -2,7 +2,7 @@
* playlist.h: Playlist control
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: playlist.h,v 1.
3 2003/04/21 21:51:16
asmax Exp $
* $Id: playlist.h,v 1.
4 2003/04/21 22:12:37
asmax Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -35,7 +35,7 @@ using namespace std;
class
Event
;
class
Graphics
;
class
SkinWindow
;
class
Font
;
class
Skin
Font
;
class
Bezier
;
class
Region
;
...
...
@@ -47,8 +47,8 @@ class ControlPlayList : public GenericControl
{
private:
Event
*
UpdateEvent
;
Font
*
TextFont
;
Font
*
PlayFont
;
Skin
Font
*
TextFont
;
Skin
Font
*
PlayFont
;
string
FontName
;
string
PlayFontName
;
bool
Enabled
;
...
...
modules/gui/skins/controls/text.h
View file @
1ddde2be
...
...
@@ -2,7 +2,7 @@
* text.h: Text control
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: text.h,v 1.
3 2003/04/21 21:51:16
asmax Exp $
* $Id: text.h,v 1.
4 2003/04/21 22:12:37
asmax Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -37,7 +37,7 @@ class BitmapBank;
class
Graphics
;
class
SkinWindow
;
class
Region
;
class
Font
;
class
Skin
Font
;
//---------------------------------------------------------------------------
class
ControlText
:
public
GenericControl
...
...
@@ -62,7 +62,7 @@ class ControlText : public GenericControl
// General parameters
string
Text
;
int
Align
;
Font
*
TextFont
;
Skin
Font
*
TextFont
;
string
FontName
;
list
<
string
>
DisplayList
;
list
<
string
>::
const_iterator
Display
;
...
...
modules/gui/skins/gtk2/gtk2_font.cpp
View file @
1ddde2be
...
...
@@ -2,7 +2,7 @@
* gtk2_font.cpp: GTK2 implementation of the Font class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_font.cpp,v 1.1
2 2003/04/21 18:39:38
asmax Exp $
* $Id: gtk2_font.cpp,v 1.1
3 2003/04/21 22:12:37
asmax Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -44,7 +44,7 @@
//---------------------------------------------------------------------------
GTK2Font
::
GTK2Font
(
intf_thread_t
*
_p_intf
,
string
fontname
,
int
size
,
int
color
,
int
weight
,
bool
italic
,
bool
underline
)
:
Font
(
_p_intf
,
fontname
,
size
,
color
,
weight
,
italic
,
underline
)
:
Skin
Font
(
_p_intf
,
fontname
,
size
,
color
,
weight
,
italic
,
underline
)
{
Context
=
gdk_pango_context_get
();
Layout
=
pango_layout_new
(
Context
);
...
...
modules/gui/skins/gtk2/gtk2_font.h
View file @
1ddde2be
...
...
@@ -2,7 +2,7 @@
* gtk2_font.h: GTK2 implementation of the Font class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_font.h,v 1.
5 2003/04/17 15:43:29 karibu
Exp $
* $Id: gtk2_font.h,v 1.
6 2003/04/21 22:12:37 asmax
Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
...
...
@@ -38,7 +38,7 @@ struct intf_thread_t;
class
Graphics
;
//---------------------------------------------------------------------------
class
GTK2Font
:
Font
class
GTK2Font
:
Skin
Font
{
private:
PangoContext
*
Context
;
...
...
modules/gui/skins/gtk2/gtk2_theme.cpp
View file @
1ddde2be
...
...
@@ -2,7 +2,7 @@
* gtk2_theme.cpp: GTK2 implementation of the Theme class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_theme.cpp,v 1.2
3 2003/04/21 21:51:16
asmax Exp $
* $Id: gtk2_theme.cpp,v 1.2
4 2003/04/21 22:12:37
asmax Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
...
...
@@ -27,6 +27,7 @@
//--- GTK2 -----------------------------------------------------------------
#include <gdk/gdk.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <X11/Xlib.h>
//--- VLC -------------------------------------------------------------------
#include <vlc/intf.h>
...
...
@@ -110,6 +111,9 @@ void GTK2Theme::OnLoadTheme()
msg_Err
(
p_intf
,
"gdk_window_new failed"
);
return
;
}
Display
*
display
=
XOpenDisplay
(
NULL
);
Window
root
=
DefaultRootWindow
(
display
);
}
//---------------------------------------------------------------------------
void
GTK2Theme
::
AddSystemMenu
(
string
name
,
Event
*
event
)
...
...
modules/gui/skins/src/banks.cpp
View file @
1ddde2be
...
...
@@ -2,7 +2,7 @@
* banks.cpp: Bitmap bank, Event, bank, Font bank and OffSet bank
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: banks.cpp,v 1.
4 2003/04/21 00:54:26 ipkiss
Exp $
* $Id: banks.cpp,v 1.
5 2003/04/21 22:12:37 asmax
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -99,7 +99,7 @@ FontBank::FontBank( intf_thread_t *_p_intf )
//---------------------------------------------------------------------------
FontBank
::~
FontBank
()
{
for
(
map
<
string
,
Font
*>::
iterator
iter
=
Bank
.
begin
();
for
(
map
<
string
,
Skin
Font
*>::
iterator
iter
=
Bank
.
begin
();
iter
!=
Bank
.
end
();
iter
++
)
{
delete
(
OSFont
*
)
iter
->
second
;
...
...
@@ -115,12 +115,12 @@ bool FontBank::Add( string name, string fontname, int size,
return
false
;
}
Bank
[
name
]
=
(
Font
*
)
new
OSFont
(
p_intf
,
fontname
,
size
,
color
,
Bank
[
name
]
=
(
Skin
Font
*
)
new
OSFont
(
p_intf
,
fontname
,
size
,
color
,
weight
,
italic
,
underline
);
return
true
;
}
//---------------------------------------------------------------------------
Font
*
FontBank
::
Get
(
string
Id
)
Skin
Font
*
FontBank
::
Get
(
string
Id
)
{
// If the specified font doesn't exist, use the default one
if
(
Bank
[
Id
]
==
NULL
)
...
...
modules/gui/skins/src/banks.h
View file @
1ddde2be
...
...
@@ -2,7 +2,7 @@
* banks.h: Bitmap bank, Event bank, Font bank and OffSet bank
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: banks.h,v 1.
1 2003/03/18 02:21:47 ipkiss
Exp $
* $Id: banks.h,v 1.
2 2003/04/21 22:12:37 asmax
Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -42,7 +42,7 @@ using namespace std;
//---------------------------------------------------------------------------
struct
intf_thread_t
;
class
Bitmap
;
class
Font
;
class
Skin
Font
;
class
Event
;
//---------------------------------------------------------------------------
...
...
@@ -61,14 +61,14 @@ class BitmapBank
class
FontBank
{
private:
map
<
string
,
Font
*>
Bank
;
map
<
string
,
Skin
Font
*>
Bank
;
intf_thread_t
*
p_intf
;
public:
FontBank
(
intf_thread_t
*
_p_intf
);
~
FontBank
();
bool
Add
(
string
name
,
string
fontname
,
int
size
,
int
color
,
int
weight
,
bool
italic
,
bool
underline
);
Font
*
Get
(
string
Id
);
// Return the font with matching ID
Skin
Font
*
Get
(
string
Id
);
// Return the font with matching ID
};
//---------------------------------------------------------------------------
class
EventBank
...
...
modules/gui/skins/src/event.h
View file @
1ddde2be
...
...
@@ -2,7 +2,7 @@
* event.h: Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: event.h,v 1.
7 2003/04/21 00:54:26 ipkiss
Exp $
* $Id: event.h,v 1.
8 2003/04/21 22:12:37 asmax
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -132,7 +132,7 @@ using namespace std;
//---------------------------------------------------------------------------
struct
intf_thread_t
;
class
GenericControl
;
class
Window
;
class
Skin
Window
;
class
Event
;
...
...
modules/gui/skins/src/font.cpp
View file @
1ddde2be
...
...
@@ -2,7 +2,7 @@
* font.cpp: Font class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: font.cpp,v 1.
2 2003/04/16 21:40:07 ipkiss
Exp $
* $Id: font.cpp,v 1.
3 2003/04/21 22:12:37 asmax
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -36,7 +36,7 @@
//---------------------------------------------------------------------------
// Font object
//---------------------------------------------------------------------------
Font
::
Font
(
intf_thread_t
*
_p_intf
,
string
fontname
,
int
size
,
int
color
,
SkinFont
::
Skin
Font
(
intf_thread_t
*
_p_intf
,
string
fontname
,
int
size
,
int
color
,
int
weight
,
bool
italic
,
bool
underline
)
{
p_intf
=
_p_intf
;
...
...
@@ -53,7 +53,7 @@ Font::Font( intf_thread_t *_p_intf, string fontname, int size, int color,
Weight
=
1
;
}
//---------------------------------------------------------------------------
Font
::~
Font
()
SkinFont
::~
Skin
Font
()
{
}
//---------------------------------------------------------------------------
modules/gui/skins/src/font.h
View file @
1ddde2be
...
...
@@ -2,7 +2,7 @@
* font.h: Font class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: font.h,v 1.
3 2003/04/17 19:56:31 karibu
Exp $
* $Id: font.h,v 1.
4 2003/04/21 22:12:37 asmax
Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -36,7 +36,7 @@ struct intf_thread_t;
class
Graphics
;
//---------------------------------------------------------------------------
class
Font
class
Skin
Font
{
private:
// Assign font to Device Context
...
...
@@ -56,11 +56,11 @@ class Font
public:
// Constructor
Font
(
intf_thread_t
*
_p_intf
,
string
fontname
,
int
size
,
int
color
,
Skin
Font
(
intf_thread_t
*
_p_intf
,
string
fontname
,
int
size
,
int
color
,
int
weight
,
bool
italic
,
bool
underline
);
// Destructor
virtual
~
Font
();
virtual
~
Skin
Font
();
// Get size of text
virtual
void
GetSize
(
string
text
,
int
&
w
,
int
&
h
)
=
0
;
...
...
modules/gui/skins/win32/win32_font.cpp
View file @
1ddde2be
...
...
@@ -2,7 +2,7 @@
* win32_font.cpp: Win32 implementation of the Font class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: win32_font.cpp,v 1.
3 2003/04/16 21:40:07 ipkiss
Exp $
* $Id: win32_font.cpp,v 1.
4 2003/04/21 22:12:37 asmax
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -44,7 +44,7 @@
//---------------------------------------------------------------------------
Win32Font
::
Win32Font
(
intf_thread_t
*
_p_intf
,
string
fontname
,
int
size
,
int
color
,
int
weight
,
bool
italic
,
bool
underline
)
:
Font
(
_p_intf
,
fontname
,
size
,
color
,
weight
,
italic
,
underline
)
:
Skin
Font
(
_p_intf
,
fontname
,
size
,
color
,
weight
,
italic
,
underline
)
{
}
//---------------------------------------------------------------------------
...
...
modules/gui/skins/win32/win32_font.h
View file @
1ddde2be
...
...
@@ -2,7 +2,7 @@
* win32_font.h: Win32 implementation of the Font class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: win32_font.h,v 1.
2 2003/04/12 21:43:2
7 asmax Exp $
* $Id: win32_font.h,v 1.
3 2003/04/21 22:12:3
7 asmax Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -37,7 +37,7 @@ struct intf_thread_t;
class
Graphics
;
//---------------------------------------------------------------------------
class
Win32Font
:
Font
class
Win32Font
:
Skin
Font
{
private:
// Assign font to Device Context
...
...
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