(ControlImpl) Move Visual related APIs to the Devel API
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / image-view / image-view-impl.cpp
index 80f1ee4..65e043e 100644 (file)
@@ -1,4 +1,19 @@
-// Copyright (c) 2016 Samsung Electronics Co., Ltd.
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 
 // CLASS HEADER
 #include "image-view-impl.h"
@@ -11,6 +26,7 @@
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/public-api/controls/image-view/image-view.h>
+#include <dali-toolkit/devel-api/controls/control-devel.h>
 #include <dali-toolkit/devel-api/visuals/visual-properties-devel.h>
 #include <dali-toolkit/devel-api/visual-factory/visual-factory.h>
 #include <dali-toolkit/internal/visuals/visual-string-constants.h>
@@ -79,7 +95,7 @@ void ImageView::SetImage( Image image )
   mPropertyMap.Clear();
 
   mVisual =  Toolkit::VisualFactory::Get().CreateVisual( image );
-  RegisterVisual( Toolkit::ImageView::Property::IMAGE, mVisual  );
+  DevelControl::RegisterVisual( *this, Toolkit::ImageView::Property::IMAGE, mVisual  );
 
   RelayoutRequest();
 }
@@ -92,7 +108,7 @@ void ImageView::SetImage( const Property::Map& map )
   mImage.Reset();
 
   mVisual =  Toolkit::VisualFactory::Get().CreateVisual( mPropertyMap );
-  RegisterVisual( Toolkit::ImageView::Property::IMAGE, mVisual  );
+  DevelControl::RegisterVisual( *this, Toolkit::ImageView::Property::IMAGE, mVisual  );
 
   RelayoutRequest();
 }
@@ -105,7 +121,7 @@ void ImageView::SetImage( const std::string& url, ImageDimensions size )
   mPropertyMap.Clear();
 
   mVisual =  Toolkit::VisualFactory::Get().CreateVisual( url, size );
-  RegisterVisual( Toolkit::ImageView::Property::IMAGE, mVisual );
+  DevelControl::RegisterVisual( *this, Toolkit::ImageView::Property::IMAGE, mVisual );
 
   RelayoutRequest();
 }