Revert "Updated needed for Internal::Control cleanup" submit/tizen_mobile/20150604.083251 submit/tizen_tv/20150604.083259 submit/tizen_wearable/20150604.083353
authortaeyoon <taeyoon0.lee@samsung.com>
Thu, 4 Jun 2015 08:11:37 +0000 (17:11 +0900)
committertaeyoon <taeyoon0.lee@samsung.com>
Thu, 4 Jun 2015 08:11:37 +0000 (17:11 +0900)
This reverts commit 49fdbca4c0382c4b8f437a46f3543330d307e1ff.

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

index 0edda67..1185549 100644 (file)
@@ -92,7 +92,7 @@ void Cluster::OnInitialize()
 {
 }
 
-void Cluster::OnSizeSet( const Vector3& targetSize )
+void Cluster::OnControlSizeSet( const Vector3& targetSize )
 {
   mClusterSize = targetSize;
   GetImpl(mClusterStyle).SetClusterSize(targetSize);
index 7c8a408..f57c221 100644 (file)
@@ -253,15 +253,15 @@ public:
 private: // From Control
 
   /**
-   * @copydoc Control::OnInitialize()
+   * @copydoc Demo::Control::OnInitialize()
    */
   virtual void OnInitialize();
 
   /**
    *
-   * @copydoc CustomActorImpl::OnSizeSet( const Vector3& targetSize )
+   * @copydoc Demo::Control::OnControlSizeSet( const Vector3& targetSize )
    */
-  virtual void OnSizeSet( const Vector3& targetSize );
+  virtual void OnControlSizeSet( const Vector3& targetSize );
 
 protected:
 
index dcf8e9a..ce27187 100644 (file)
@@ -79,12 +79,16 @@ 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.SetBackgroundImage( image );
+  toolBar.SetBackground( toolBarBackground );
   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 );