// EXTERNAL INCLUDES
-#include <boost/function.hpp>
-
#include <dali/public-api/object/base-handle.h>
-#include <dali/public-api/signals/dali-signal-v2.h>
+#include <dali/public-api/signals/dali-signal.h>
namespace Dali
{
/**
* @brief The DragAndDropDetector%s provides signals when draggable objects are dragged into our window.
+ *
* It provides signals for when the draggable object enters our window, moves around in our window,
* leaves our window and when it is finally dropped into our window.
+ *
* The basic usage is shown below:
*
* @code
// Typedefs
- /**
- * @brief Drag & Drop signal.
- */
- typedef SignalV2< void ( DragAndDropDetector ) > DragAndDropSignalV2;
-
- // Signal Names
- static const char* const SIGNAL_ENTERED;///< name "drag-and-drop-entered"
- static const char* const SIGNAL_EXITED; ///< name "drag-and-drop-exited"
- static const char* const SIGNAL_MOVED; ///< name "drag-and-drop-moved"
- static const char* const SIGNAL_DROPPED;///< name "drag-and-drop-dropped"
+ typedef Signal< void ( DragAndDropDetector ) > DragAndDropSignal; ///< Drag & Drop signal
/**
* @brief Create an uninitialized handle.
*/
Vector2 GetCurrentScreenPosition() const;
-public: // Signals
+ // Signals
/**
* @brief This is emitted when a dragged object enters a DALi window.
* @endcode
* @return The signal to connect to.
*/
- DragAndDropSignalV2& EnteredSignal();
+ DragAndDropSignal& EnteredSignal();
/**
* @brief This is emitted when a dragged object leaves a DALi window.
* @endcode
* @return The signal to connect to.
*/
- DragAndDropSignalV2& ExitedSignal();
+ DragAndDropSignal& ExitedSignal();
/**
* @brief This is emitted when a dragged object is moved within the DALi window.
* @code
* void YourCallback( DragAndDropDetector detector );
* @endcode
- * This will be replaced by a property notification system once that is in place.
* @return The signal to connect to.
*/
- DragAndDropSignalV2& MovedSignal();
+ DragAndDropSignal& MovedSignal();
/**
* @brief This is emitted when a dragged object is dropped within a DALi window.
* @endcode
* @return The signal to connect to.
*/
- DragAndDropSignalV2& DroppedSignal();
+ DragAndDropSignal& DroppedSignal();
public: // Not intended for application developers