/*****************************************************************************
* ctrl_move.hpp
*****************************************************************************
- * Copyright (C) 2003 VideoLAN
+ * Copyright (C) 2003 the VideoLAN team
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
- * Olivier Teulière <ipkiss@via.ecp.fr>
+ * Olivier Teulière <ipkiss@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef CTRL_MOVE_HPP
/// Get the position of the decorated control in the layout, if any
virtual const Position *getPosition() const;
- static void transMovingMoving( SkinObject *pCtrl );
- static void transStillMoving( SkinObject *pCtrl );
- static void transMovingStill( SkinObject *pCtrl );
+ /// Method called when the control is resized
+ virtual void onResize();
+
+ /// Get the type of control (custom RTTI)
+ virtual string getType() const { return m_rCtrl.getType(); }
private:
FSM m_fsm;
EvtGeneric *m_pEvt;
/// Position of the click that started the move
int m_xPos, m_yPos;
- /// Callbacks
- Callback m_cmdMovingMoving;
- Callback m_cmdStillMoving;
- Callback m_cmdMovingStill;
-};
+
+ /// Callback objects
+ DEFINE_CALLBACK( CtrlMove, MovingMoving )
+ DEFINE_CALLBACK( CtrlMove, StillMoving )
+ DEFINE_CALLBACK( CtrlMove, MovingStill )
+ };
#endif