Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
31c1e82e
Commit
31c1e82e
authored
Jun 04, 2006
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/skins2/*: Use ARG instead of ARG* as a template argument
parent
ff65ea95
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
modules/gui/skins2/controls/ctrl_tree.cpp
modules/gui/skins2/controls/ctrl_tree.cpp
+1
-1
modules/gui/skins2/controls/ctrl_tree.hpp
modules/gui/skins2/controls/ctrl_tree.hpp
+2
-2
modules/gui/skins2/utils/observer.hpp
modules/gui/skins2/utils/observer.hpp
+4
-4
modules/gui/skins2/utils/var_tree.hpp
modules/gui/skins2/utils/var_tree.hpp
+1
-1
No files found.
modules/gui/skins2/controls/ctrl_tree.cpp
View file @
31c1e82e
...
@@ -140,7 +140,7 @@ int CtrlTree::maxItems()
...
@@ -140,7 +140,7 @@ int CtrlTree::maxItems()
}
}
void
CtrlTree
::
onUpdate
(
Subject
<
VarTree
,
tree_update
*
>
&
rTree
,
void
CtrlTree
::
onUpdate
(
Subject
<
VarTree
,
tree_update
>
&
rTree
,
tree_update
*
arg
)
tree_update
*
arg
)
{
{
if
(
arg
->
i_type
==
0
)
// Item update
if
(
arg
->
i_type
==
0
)
// Item update
...
...
modules/gui/skins2/controls/ctrl_tree.hpp
View file @
31c1e82e
...
@@ -33,7 +33,7 @@ class GenericFont;
...
@@ -33,7 +33,7 @@ class GenericFont;
class
GenericBitmap
;
class
GenericBitmap
;
/// Class for control tree
/// Class for control tree
class
CtrlTree
:
public
CtrlGeneric
,
public
Observer
<
VarTree
,
tree_update
*
>
,
class
CtrlTree
:
public
CtrlGeneric
,
public
Observer
<
VarTree
,
tree_update
>
,
public
Observer
<
VarPercent
>
public
Observer
<
VarPercent
>
{
{
public:
public:
...
@@ -119,7 +119,7 @@ class CtrlTree: public CtrlGeneric, public Observer<VarTree, tree_update*>,
...
@@ -119,7 +119,7 @@ class CtrlTree: public CtrlGeneric, public Observer<VarTree, tree_update*>,
bool
m_flat
;
bool
m_flat
;
/// Method called when the tree variable is modified
/// Method called when the tree variable is modified
virtual
void
onUpdate
(
Subject
<
VarTree
,
tree_update
*
>
&
rTree
,
virtual
void
onUpdate
(
Subject
<
VarTree
,
tree_update
>
&
rTree
,
tree_update
*
);
tree_update
*
);
// Method called when the position variable of the tree is modified
// Method called when the position variable of the tree is modified
...
...
modules/gui/skins2/utils/observer.hpp
View file @
31c1e82e
...
@@ -32,7 +32,7 @@ template <class S, class ARG> class Observer;
...
@@ -32,7 +32,7 @@ template <class S, class ARG> class Observer;
/// Template for subjects in the Observer design pattern
/// Template for subjects in the Observer design pattern
template
<
class
S
,
class
ARG
=
void
*
>
class
Subject
template
<
class
S
,
class
ARG
=
void
>
class
Subject
{
{
public:
public:
virtual
~
Subject
()
{}
virtual
~
Subject
()
{}
...
@@ -58,7 +58,7 @@ template <class S, class ARG = void*> class Subject
...
@@ -58,7 +58,7 @@ template <class S, class ARG = void*> class Subject
}
}
/// Notify the observers when the status has changed
/// Notify the observers when the status has changed
virtual
void
notify
(
ARG
arg
)
virtual
void
notify
(
ARG
*
arg
)
{
{
// This stupid gcc 3.2 needs "typename"
// This stupid gcc 3.2 needs "typename"
typename
set
<
Observer
<
S
,
ARG
>*>::
const_iterator
iter
;
typename
set
<
Observer
<
S
,
ARG
>*>::
const_iterator
iter
;
...
@@ -87,13 +87,13 @@ template <class S, class ARG = void*> class Subject
...
@@ -87,13 +87,13 @@ template <class S, class ARG = void*> class Subject
/// Template for observers in the Observer design pattern
/// Template for observers in the Observer design pattern
template
<
class
S
,
class
ARG
=
void
*
>
class
Observer
template
<
class
S
,
class
ARG
=
void
>
class
Observer
{
{
public:
public:
virtual
~
Observer
()
{}
virtual
~
Observer
()
{}
/// Method called when the subject is modified
/// Method called when the subject is modified
virtual
void
onUpdate
(
Subject
<
S
,
ARG
>
&
rSubject
,
ARG
arg
)
=
0
;
virtual
void
onUpdate
(
Subject
<
S
,
ARG
>
&
rSubject
,
ARG
*
arg
)
=
0
;
protected:
protected:
Observer
()
{}
Observer
()
{}
...
...
modules/gui/skins2/utils/var_tree.hpp
View file @
31c1e82e
...
@@ -42,7 +42,7 @@ typedef struct tree_update
...
@@ -42,7 +42,7 @@ typedef struct tree_update
}
tree_update
;
}
tree_update
;
/// Tree variable
/// Tree variable
class
VarTree
:
public
Variable
,
public
Subject
<
VarTree
,
tree_update
*
>
class
VarTree
:
public
Variable
,
public
Subject
<
VarTree
,
tree_update
>
{
{
public:
public:
VarTree
(
intf_thread_t
*
pIntf
);
VarTree
(
intf_thread_t
*
pIntf
);
...
...
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