Emit a signal when layout is activated in ItemView
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / scrollable / item-view / item-view.cpp
index c951b0c..12a6baf 100644 (file)
@@ -1,18 +1,19 @@
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Flora License, Version 1.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://floralicense.org/license/
-//
-// 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.
-//
+/*
+ * Copyright (c) 2015 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.
+ *
+ */
 
 #include <dali-toolkit/public-api/controls/scrollable/scrollable.h>
 #include <dali-toolkit/public-api/controls/scrollable/item-view/item-view.h>
@@ -63,11 +64,6 @@ ItemView ItemView::DownCast( BaseHandle handle )
   return Control::DownCast<ItemView, Internal::ItemView>(handle);
 }
 
-ScrollConnector ItemView::GetScrollConnector() const
-{
-  return GetImpl(*this).GetScrollConnector();
-}
-
 ItemView::~ItemView()
 {
 }
@@ -132,14 +128,14 @@ float ItemView::GetMinimumSwipeDistance() const
   return GetImpl(*this).GetMinimumSwipeDistance();
 }
 
-void ItemView::SetMouseWheelScrollDistanceStep(float step)
+void ItemView::SetWheelScrollDistanceStep(float step)
 {
-  GetImpl(*this).SetMouseWheelScrollDistanceStep(step);
+  GetImpl(*this).SetWheelScrollDistanceStep(step);
 }
 
-float ItemView::GetMouseWheelScrollDistanceStep() const
+float ItemView::GetWheelScrollDistanceStep() const
 {
-  return GetImpl(*this).GetMouseWheelScrollDistanceStep();
+  return GetImpl(*this).GetWheelScrollDistanceStep();
 }
 
 void ItemView::SetAnchoring(bool enabled)
@@ -167,16 +163,21 @@ void ItemView::ScrollToItem(unsigned int itemId, float durationSeconds)
   GetImpl(*this).ScrollToItem(itemId, durationSeconds);
 }
 
-void ItemView::SetRefreshInterval(unsigned int intervalMilliseconds)
+void ItemView::SetRefreshInterval(float intervalLayoutPositions)
 {
-  GetImpl(*this).SetRefreshInterval(intervalMilliseconds);
+  GetImpl(*this).SetRefreshInterval(intervalLayoutPositions);
 }
 
-unsigned int ItemView::GetRefreshInterval() const
+float ItemView::GetRefreshInterval() const
 {
   return GetImpl(*this).GetRefreshInterval();
 }
 
+void ItemView::Refresh()
+{
+  return GetImpl(*this).Refresh();
+}
+
 Actor ItemView::GetItem(unsigned int itemId) const
 {
   return GetImpl(*this).GetItem(itemId);
@@ -187,9 +188,64 @@ unsigned int ItemView::GetItemId(Actor actor) const
   return GetImpl(*this).GetItemId(actor);
 }
 
+void ItemView::InsertItem(Item newItem, float durationSeconds)
+{
+  GetImpl(*this).InsertItem( newItem, durationSeconds );
+}
+
+void ItemView::InsertItems(const ItemContainer& newItems, float durationSeconds)
+{
+  GetImpl(*this).InsertItems( newItems, durationSeconds );
+}
+
 void ItemView::RemoveItem(unsigned int itemId, float durationSeconds)
 {
-  GetImpl(*this).RemoveItem(itemId, durationSeconds);
+  GetImpl(*this).RemoveItem( itemId, durationSeconds );
+}
+
+void ItemView::RemoveItems(const ItemIdContainer& itemIds, float durationSeconds)
+{
+  GetImpl(*this).RemoveItems( itemIds, durationSeconds );
+}
+
+void ItemView::ReplaceItem(Item replacementItem, float durationSeconds)
+{
+  GetImpl(*this).ReplaceItem( replacementItem, durationSeconds );
+}
+
+void ItemView::ReplaceItems(const ItemContainer& replacementItems, float durationSeconds)
+{
+  GetImpl(*this).ReplaceItems( replacementItems, durationSeconds );
+}
+
+void ItemView::SetItemsParentOrigin( const Vector3& parentOrigin )
+{
+  GetImpl(*this).SetItemsParentOrigin( parentOrigin );
+}
+
+Vector3 ItemView::GetItemsParentOrigin() const
+{
+  return GetImpl(*this).GetItemsParentOrigin();
+}
+
+void ItemView::SetItemsAnchorPoint( const Vector3& anchorPoint )
+{
+  GetImpl(*this).SetItemsAnchorPoint(anchorPoint);
+}
+
+Vector3 ItemView::GetItemsAnchorPoint() const
+{
+  return GetImpl(*this).GetItemsAnchorPoint();
+}
+
+void ItemView::GetItemsRange(ItemRange& range)
+{
+  GetImpl(*this).GetItemsRange(range);
+}
+
+ItemView::LayoutActivatedSignalType& ItemView::LayoutActivatedSignal()
+{
+  return GetImpl(*this).LayoutActivatedSignal();
 }
 
 } // namespace Toolkit