Updated needed for Internal::Control cleanup 13/40013/1 accepted/tizen/common/20150529.134111 accepted/tizen/mobile/20150529.134838 accepted/tizen/tv/20150529.134913 accepted/tizen/wearable/20150529.134856 submit/tizen/20150529.084413
authorKimmo Hoikka <kimmo.hoikka@samsung.com>
Wed, 27 May 2015 14:52:06 +0000 (15:52 +0100)
committerKimmo Hoikka <kimmo.hoikka@samsung.com>
Wed, 27 May 2015 14:52:06 +0000 (15:52 +0100)
Change-Id: I017f05ad58a7c52c6c6d348835dcbbec025a3091

examples/cluster/cluster-impl.cpp
examples/cluster/cluster-impl.h
shared/view.h

index 1185549..0edda67 100644 (file)
@@ -92,7 +92,7 @@ void Cluster::OnInitialize()
 {
 }
 
-void Cluster::OnControlSizeSet( const Vector3& targetSize )
+void Cluster::OnSizeSet( const Vector3& targetSize )
 {
   mClusterSize = targetSize;
   GetImpl(mClusterStyle).SetClusterSize(targetSize);
index f57c221..7c8a408 100644 (file)
@@ -253,15 +253,15 @@ public:
 private: // From Control
 
   /**
-   * @copydoc Demo::Control::OnInitialize()
+   * @copydoc Control::OnInitialize()
    */
   virtual void OnInitialize();
 
   /**
    *
-   * @copydoc Demo::Control::OnControlSizeSet( const Vector3& targetSize )
+   * @copydoc CustomActorImpl::OnSizeSet( const Vector3& targetSize )
    */
-  virtual void OnControlSizeSet( const Vector3& targetSize );
+  virtual void OnSizeSet( const Vector3& targetSize );
 
 protected:
 
index ce27187..dcf8e9a 100644 (file)
@@ -79,16 +79,12 @@ Dali::Layer CreateToolbar( Dali::Toolkit::ToolBar& toolBar,
 
   // Tool bar
   Dali::Image image = Dali::ResourceImage::New( toolbarImagePath );
-  Dali::ImageActor toolBarBackground = Dali::ImageActor::New( image );
-  toolBarBackground.SetName( "TOOLBAR_BACKGROUND" );
-  toolBarBackground.SetResizePolicy( Dali::ResizePolicy::FILL_TO_PARENT, Dali::Dimension::ALL_DIMENSIONS );
   toolBar = Dali::Toolkit::ToolBar::New();
   toolBar.SetName( "TOOLBAR" );
-  toolBar.SetBackground( toolBarBackground );
+  toolBar.SetBackgroundImage( image );
   toolBar.SetParentOrigin( Dali::ParentOrigin::TOP_CENTER );
   toolBar.SetAnchorPoint( Dali::AnchorPoint::TOP_CENTER );
   toolBar.SetResizePolicy( Dali::ResizePolicy::FILL_TO_PARENT, Dali::Dimension::ALL_DIMENSIONS );
-  toolBarBackground.SetSortModifier(1.0f);
 
   // Add the tool bar to the too bar layer.
   toolBarLayer.Add( toolBar );