Commit 7c08fb2f authored by Cyril Deguet's avatar Cyril Deguet

* all: fixed member initialization order

parent 64a27c19
...@@ -53,7 +53,6 @@ CtrlSliderCursor::CtrlSliderCursor( intf_thread_t *pIntf, ...@@ -53,7 +53,6 @@ CtrlSliderCursor::CtrlSliderCursor( intf_thread_t *pIntf,
m_cmdOverDown( pIntf, this ), m_cmdDownOver( pIntf, this ), m_cmdOverDown( pIntf, this ), m_cmdDownOver( pIntf, this ),
m_cmdOverUp( pIntf, this ), m_cmdUpOver( pIntf, this ), m_cmdOverUp( pIntf, this ), m_cmdUpOver( pIntf, this ),
m_cmdMove( pIntf, this ), m_cmdScroll( pIntf, this ), m_cmdMove( pIntf, this ), m_cmdScroll( pIntf, this ),
m_lastPercentage( 0 ), m_xOffset( 0 ), m_yOffset( 0 ), m_lastPercentage( 0 ), m_xOffset( 0 ), m_yOffset( 0 ),
m_pEvt( NULL ), m_rCurve( rCurve ) m_pEvt( NULL ), m_rCurve( rCurve )
{ {
......
...@@ -77,6 +77,13 @@ class CtrlSliderCursor: public CtrlGeneric, public Observer<VarPercent> ...@@ -77,6 +77,13 @@ class CtrlSliderCursor: public CtrlGeneric, public Observer<VarPercent>
int m_width, m_height; int m_width, m_height;
/// Position of the cursor /// Position of the cursor
int m_xPosition, m_yPosition; int m_xPosition, m_yPosition;
/// Callback objects
DEFINE_CALLBACK( CtrlSliderCursor, OverDown )
DEFINE_CALLBACK( CtrlSliderCursor, DownOver )
DEFINE_CALLBACK( CtrlSliderCursor, OverUp )
DEFINE_CALLBACK( CtrlSliderCursor, UpOver )
DEFINE_CALLBACK( CtrlSliderCursor, Move )
DEFINE_CALLBACK( CtrlSliderCursor, Scroll )
/// Last saved position of the cursor (stored as a percentage) /// Last saved position of the cursor (stored as a percentage)
float m_lastPercentage; float m_lastPercentage;
/// Offset between the mouse pointer and the center of the cursor /// Offset between the mouse pointer and the center of the cursor
...@@ -90,14 +97,6 @@ class CtrlSliderCursor: public CtrlGeneric, public Observer<VarPercent> ...@@ -90,14 +97,6 @@ class CtrlSliderCursor: public CtrlGeneric, public Observer<VarPercent>
/// Bezier curve of the slider /// Bezier curve of the slider
const Bezier &m_rCurve; const Bezier &m_rCurve;
/// Callback objects
DEFINE_CALLBACK( CtrlSliderCursor, OverDown )
DEFINE_CALLBACK( CtrlSliderCursor, DownOver )
DEFINE_CALLBACK( CtrlSliderCursor, OverUp )
DEFINE_CALLBACK( CtrlSliderCursor, UpOver )
DEFINE_CALLBACK( CtrlSliderCursor, Move )
DEFINE_CALLBACK( CtrlSliderCursor, Scroll )
/// Method called when the position variable is modified /// Method called when the position variable is modified
virtual void onUpdate( Subject<VarPercent> &rVariable ); virtual void onUpdate( Subject<VarPercent> &rVariable );
......
...@@ -68,6 +68,11 @@ class CtrlText: public CtrlGeneric, public Observer<VarText> ...@@ -68,6 +68,11 @@ class CtrlText: public CtrlGeneric, public Observer<VarText>
FSM m_fsm; FSM m_fsm;
/// Variable associated to the control /// Variable associated to the control
VarText &m_rVariable; VarText &m_rVariable;
/// Callback objects
DEFINE_CALLBACK( CtrlText, ToManual )
DEFINE_CALLBACK( CtrlText, ManualMoving )
DEFINE_CALLBACK( CtrlText, ManualStill )
DEFINE_CALLBACK( CtrlText, Move )
/// The last received event /// The last received event
EvtGeneric *m_pEvt; EvtGeneric *m_pEvt;
/// Font used to render the text /// Font used to render the text
...@@ -89,12 +94,6 @@ class CtrlText: public CtrlGeneric, public Observer<VarText> ...@@ -89,12 +94,6 @@ class CtrlText: public CtrlGeneric, public Observer<VarText>
/// Timer to move the text /// Timer to move the text
OSTimer *m_pTimer; OSTimer *m_pTimer;
/// Callback objects
DEFINE_CALLBACK( CtrlText, ToManual )
DEFINE_CALLBACK( CtrlText, ManualMoving )
DEFINE_CALLBACK( CtrlText, ManualStill )
DEFINE_CALLBACK( CtrlText, Move )
/// Callback for the timer /// Callback for the timer
static void updateText( SkinObject *pCtrl ); static void updateText( SkinObject *pCtrl );
......
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