(Control) Can connect to gestures through scripting
[platform/core/uifw/dali-toolkit.git] / base / dali-toolkit / public-api / controls / control-impl.h
index bf58ce7..71ffabc 100644 (file)
@@ -179,6 +179,17 @@ public:
   static bool DoAction(BaseObject* object, const std::string& actionName, const std::vector<Property::Value>& attributes);
 
   /**
+   * Connects a callback function with the object's signals.
+   * @param[in] object The object providing the signal.
+   * @param[in] tracker Used to disconnect the signal.
+   * @param[in] signalName The signal to connect to.
+   * @param[in] functor A newly allocated FunctorDelegate.
+   * @return True if the signal was connected.
+   * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the caller is responsible for deleting the unused functor.
+   */
+  static bool DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor );
+
+  /**
    * @brief If deriving classes wish to fine tune pinch gesture
    * detection then they can access the gesture detector through this
    * API and modify the detection.
@@ -315,17 +326,6 @@ private: // For derived classes to override
   virtual void OnFontChange( bool defaultFontChange, bool defaultFontSizeChange ){ }
 
   /**
-   * @deprecated Use OnFontChange() instead.
-   * Before the using of StyleManager, the StyleChange only deals with font change.
-   *
-   * @brief This method should be overridden by deriving classes when
-   * they wish to be notified when the style changes.
-   *
-   * @param[in] change  Information denoting what has changed.
-   */
-  virtual void OnStyleChange( StyleChange change ) { }
-
-  /**
    * @brief Called whenever a pinch gesture is detected on this control.
    *
    * This can be overridden by deriving classes when pinch detection
@@ -553,14 +553,6 @@ protected: // Construction
   };
 
   /**
-   * @deprecated Use the constructor taking flags instead
-   * @brief Create a Control.
-   *
-   * @param[in] requiresTouchEvents True if the OnTouchEvent() callback is required.
-   */
-  Control(bool requiresTouchEvents);
-
-  /**
    * @brief Create a Control.
    *
    * @param[in] behaviourFlags Behavioural flags from ControlBehaviour enum
@@ -746,8 +738,6 @@ private:
 
 } // namespace Internal
 
-typedef Internal::Control ControlImpl; ///< @deprecated, Use Internal::Control
-
 } // namespace Toolkit
 
 } // namespace Dali