Commit ff65ea95 authored by Olivier Teulière's avatar Olivier Teulière

* modules/gui/skins2/*: More simplifications of the same kind

parent e1670aca
...@@ -34,7 +34,7 @@ class CmdGeneric; ...@@ -34,7 +34,7 @@ class CmdGeneric;
/// Base class for button controls /// Base class for button controls
class CtrlButton: public CtrlGeneric, public Observer<AnimBitmap, void*> class CtrlButton: public CtrlGeneric, public Observer<AnimBitmap>
{ {
public: public:
/// Create a button with 3 images /// Create a button with 3 images
......
...@@ -36,7 +36,7 @@ class CmdGeneric; ...@@ -36,7 +36,7 @@ class CmdGeneric;
/// Base class for checkbox controls /// Base class for checkbox controls
class CtrlCheckbox: public CtrlGeneric, public Observer<AnimBitmap, void*> class CtrlCheckbox: public CtrlGeneric, public Observer<AnimBitmap>
{ {
public: public:
/// Create a checkbox with 6 images /// Create a checkbox with 6 images
......
...@@ -41,7 +41,7 @@ class VarBool; ...@@ -41,7 +41,7 @@ class VarBool;
/// Base class for controls /// Base class for controls
class CtrlGeneric: public SkinObject, public Observer<VarBool, void*> class CtrlGeneric: public SkinObject, public Observer<VarBool>
{ {
public: public:
virtual ~CtrlGeneric(); virtual ~CtrlGeneric();
......
...@@ -35,8 +35,8 @@ class GenericBitmap; ...@@ -35,8 +35,8 @@ class GenericBitmap;
/// Class for control list /// Class for control list
class CtrlList: public CtrlGeneric, public Observer<VarList, void*>, class CtrlList: public CtrlGeneric, public Observer<VarList>,
public Observer<VarPercent, void *> public Observer<VarPercent>
{ {
public: public:
CtrlList( intf_thread_t *pIntf, VarList &rList, CtrlList( intf_thread_t *pIntf, VarList &rList,
......
...@@ -36,7 +36,7 @@ class VarPercent; ...@@ -36,7 +36,7 @@ class VarPercent;
/// Radial slider /// Radial slider
class CtrlRadialSlider: public CtrlGeneric, public Observer<VarPercent, void*> class CtrlRadialSlider: public CtrlGeneric, public Observer<VarPercent>
{ {
public: public:
/// Create a radial slider with the given image, which must be /// Create a radial slider with the given image, which must be
......
...@@ -37,7 +37,7 @@ class VarPercent; ...@@ -37,7 +37,7 @@ class VarPercent;
/// Cursor of a slider /// Cursor of a slider
class CtrlSliderCursor: public CtrlGeneric, public Observer<VarPercent, void*> class CtrlSliderCursor: public CtrlGeneric, public Observer<VarPercent>
{ {
public: public:
/// Create a cursor with 3 images (which are NOT copied, be careful) /// Create a cursor with 3 images (which are NOT copied, be careful)
...@@ -109,7 +109,7 @@ class CtrlSliderCursor: public CtrlGeneric, public Observer<VarPercent, void*> ...@@ -109,7 +109,7 @@ class CtrlSliderCursor: public CtrlGeneric, public Observer<VarPercent, void*>
/// Slider background /// Slider background
class CtrlSliderBg: public CtrlGeneric, public Observer<VarPercent, void*> class CtrlSliderBg: public CtrlGeneric, public Observer<VarPercent>
{ {
public: public:
CtrlSliderBg( intf_thread_t *pIntf, CtrlSliderBg( intf_thread_t *pIntf,
......
...@@ -38,7 +38,7 @@ class VarText; ...@@ -38,7 +38,7 @@ class VarText;
/// Class for control text /// Class for control text
class CtrlText: public CtrlGeneric, public Observer<VarText, void*> class CtrlText: public CtrlGeneric, public Observer<VarText>
{ {
public: public:
enum Align_t enum Align_t
......
...@@ -34,7 +34,7 @@ class GenericBitmap; ...@@ -34,7 +34,7 @@ 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, void*> public Observer<VarPercent>
{ {
public: public:
CtrlTree( intf_thread_t *pIntf, CtrlTree( intf_thread_t *pIntf,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
class VoutWindow; class VoutWindow;
/// Control video /// Control video
class CtrlVideo: public CtrlGeneric, public Observer<VarBox, void*> class CtrlVideo: public CtrlGeneric, public Observer<VarBox>
{ {
public: public:
CtrlVideo( intf_thread_t *pIntf, GenericLayout &rLayout, CtrlVideo( intf_thread_t *pIntf, GenericLayout &rLayout,
......
...@@ -42,7 +42,7 @@ class WindowManager; ...@@ -42,7 +42,7 @@ class WindowManager;
/// Generic window class /// Generic window class
class GenericWindow: public SkinObject, public Observer<VarBool, void*> class GenericWindow: public SkinObject, public Observer<VarBool>
{ {
private: private:
friend class WindowManager; friend class WindowManager;
......
...@@ -35,7 +35,7 @@ class OSGraphics; ...@@ -35,7 +35,7 @@ class OSGraphics;
class UString; class UString;
class Tooltip: public SkinObject, public Observer<VarText, void*> class Tooltip: public SkinObject, public Observer<VarText>
{ {
public: public:
/// Create a tooltip with the given font and delay (in milliseconds) /// Create a tooltip with the given font and delay (in milliseconds)
......
...@@ -89,7 +89,7 @@ class VarBoolImpl: public VarBool ...@@ -89,7 +89,7 @@ class VarBoolImpl: public VarBool
/// Conjunction of two boolean variables (AND) /// Conjunction of two boolean variables (AND)
class VarBoolAndBool: public VarBool, public Observer<VarBool, void*> class VarBoolAndBool: public VarBool, public Observer<VarBool>
{ {
public: public:
VarBoolAndBool( intf_thread_t *pIntf, VarBool &rVar1, VarBool &rVar2 ); VarBoolAndBool( intf_thread_t *pIntf, VarBool &rVar1, VarBool &rVar2 );
...@@ -108,7 +108,7 @@ class VarBoolAndBool: public VarBool, public Observer<VarBool, void*> ...@@ -108,7 +108,7 @@ class VarBoolAndBool: public VarBool, public Observer<VarBool, void*>
/// Disjunction of two boolean variables (OR) /// Disjunction of two boolean variables (OR)
class VarBoolOrBool: public VarBool, public Observer<VarBool, void*> class VarBoolOrBool: public VarBool, public Observer<VarBool>
{ {
public: public:
VarBoolOrBool( intf_thread_t *pIntf, VarBool &rVar1, VarBool &rVar2 ); VarBoolOrBool( intf_thread_t *pIntf, VarBool &rVar1, VarBool &rVar2 );
...@@ -127,7 +127,7 @@ class VarBoolOrBool: public VarBool, public Observer<VarBool, void*> ...@@ -127,7 +127,7 @@ class VarBoolOrBool: public VarBool, public Observer<VarBool, void*>
/// Negation of a boolean variable (NOT) /// Negation of a boolean variable (NOT)
class VarNotBool: public VarBool, public Observer<VarBool, void*> class VarNotBool: public VarBool, public Observer<VarBool>
{ {
public: public:
VarNotBool( intf_thread_t *pIntf, VarBool &rVar ); VarNotBool( intf_thread_t *pIntf, VarBool &rVar );
......
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
/// String variable /// String variable
class VarText: public Variable, public Subject<VarText>, class VarText: public Variable, public Subject<VarText>,
public Observer<VarPercent, void*>, public Observer<VarPercent>,
public Observer< VarText,void*> public Observer<VarText>
{ {
public: public:
// Set substVars to true to replace "$X" variables in the text // Set substVars to true to replace "$X" variables in the text
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
/// Variable for graphical equalizer /// Variable for graphical equalizer
class EqualizerBands: public SkinObject, public Observer<VarPercent, void*> class EqualizerBands: public SkinObject, public Observer<VarPercent>
{ {
public: public:
/// Number of bands /// Number of bands
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment