X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fitem-view%2Fitem-view-example.cpp;h=6a0a6e2fe73693027310bef78ec43c3feba1c0ed;hb=e193b880408e91c3c21b8ed40a4c03a43369d707;hp=9bfbac8f58addd13296def229697afb87ad8b3b1;hpb=79ca1d506fc1f3da22994bffc1028242a3121165;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/item-view/item-view-example.cpp b/examples/item-view/item-view-example.cpp index 9bfbac8..6a0a6e2 100644 --- a/examples/item-view/item-view-example.cpp +++ b/examples/item-view/item-view-example.cpp @@ -103,9 +103,9 @@ const unsigned int IMAGE_WIDTH = 256; const unsigned int IMAGE_HEIGHT = 256; const unsigned int NUM_IMAGE_PER_ROW_IN_ATLAS = 8; -AlphaFunction ALPHA_FUNCTIONS[] = { AlphaFunctions::Linear, - AlphaFunctions::EaseIn, - AlphaFunctions::EaseOut }; +AlphaFunction ALPHA_FUNCTIONS[] = { AlphaFunction(AlphaFunction::LINEAR), + AlphaFunction(AlphaFunction::EASE_IN), + AlphaFunction(AlphaFunction::EASE_OUT) }; const unsigned int NUM_ALPHA_FUNCTIONS = sizeof(ALPHA_FUNCTIONS) / sizeof(AlphaFunction); @@ -253,7 +253,7 @@ public: TOOLBAR_IMAGE, "" ); - mView.OrientationAnimationStartedSignal().Connect( this, &ItemViewExample::OnOrientationChanged ); + app.GetWindow().GetOrientation().ChangedSignal().Connect( this, &ItemViewExample::OnOrientationChanged ); // Create an edit mode button. (left of toolbar) Toolkit::PushButton editButton = Toolkit::PushButton::New(); @@ -414,7 +414,7 @@ public: * Orientation changed signal callback * @param orientation */ - void OnOrientationChanged( View view, Animation& animation, const Orientation& orientation ) + void OnOrientationChanged( Orientation orientation ) { const unsigned int angle = orientation.GetDegrees(); @@ -1105,7 +1105,7 @@ private: Mode mMode; bool mMenuShown; - Toolkit::View mView; + Toolkit::Control mView; unsigned int mOrientation; Toolkit::ToolBar mToolBar;