X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fimage-scaling-irregular-grid%2Fimage-scaling-irregular-grid-example.cpp;h=cb41669c85cefcda1205f3df08a74f6115b38153;hb=refs%2Fchanges%2F41%2F243041%2F2;hp=47aa49a1221a8f9738ed3f4d862597e0f03f5130;hpb=a284a43f0bb9f45e37809d9778d3c774a5169d50;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp b/examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp index 47aa49a..cb41669 100644 --- a/examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp +++ b/examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp @@ -318,7 +318,7 @@ public: toggleScalingButton.SetProperty( Toolkit::Button::Property::UNSELECTED_BACKGROUND_VISUAL, TOGGLE_SCALING_IMAGE ); toggleScalingButton.SetProperty( Toolkit::Button::Property::SELECTED_BACKGROUND_VISUAL, TOGGLE_SCALING_IMAGE_SELECTED ); toggleScalingButton.ClickedSignal().Connect( this, &ImageScalingIrregularGridController::OnToggleScalingTouched ); - mToolBar.AddControl( toggleScalingButton, DemoHelper::DEFAULT_VIEW_STYLE.mToolBarButtonPercentage, Toolkit::Alignment::HorizontalRight, DemoHelper::DEFAULT_MODE_SWITCH_PADDING ); + mToolBar.AddControl( toggleScalingButton, DemoHelper::DEFAULT_VIEW_STYLE.mToolBarButtonPercentage, Toolkit::Alignment::HORIZONTAL_RIGHT, DemoHelper::DEFAULT_MODE_SWITCH_PADDING ); SetTitle( APPLICATION_TITLE ); @@ -370,14 +370,14 @@ public: mGridActor = imageField; // Create the scroll bar - mScrollBarVertical = ScrollBar::New(Toolkit::ScrollBar::Vertical); + mScrollBarVertical = ScrollBar::New(Toolkit::ScrollBar::VERTICAL); mScrollBarVertical.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::TOP_RIGHT); mScrollBarVertical.SetProperty( Actor::Property::ANCHOR_POINT,AnchorPoint::TOP_RIGHT); mScrollBarVertical.SetResizePolicy(Dali::ResizePolicy::FILL_TO_PARENT, Dali::Dimension::HEIGHT); mScrollBarVertical.SetResizePolicy(Dali::ResizePolicy::FIT_TO_CHILDREN, Dali::Dimension::WIDTH); mScrollView.Add(mScrollBarVertical); - mScrollBarHorizontal = ScrollBar::New(Toolkit::ScrollBar::Horizontal); + mScrollBarHorizontal = ScrollBar::New(Toolkit::ScrollBar::HORIZONTAL); mScrollBarHorizontal.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::BOTTOM_LEFT); mScrollBarHorizontal.SetProperty( Actor::Property::ANCHOR_POINT,AnchorPoint::TOP_LEFT); mScrollBarHorizontal.SetResizePolicy(Dali::ResizePolicy::FIT_TO_CHILDREN, Dali::Dimension::WIDTH); @@ -477,7 +477,7 @@ public: ImageView image = CreateImageView( imageSource.configuration.path, imageSize.x, imageSize.y, fittingMode ); image.SetProperty( Actor::Property::POSITION, Vector3( imagePosition.x, imagePosition.y, 0 ) ); image.SetProperty( Actor::Property::SIZE, imageSize ); - image.TouchSignal().Connect( this, &ImageScalingIrregularGridController::OnTouchImage ); + image.TouchedSignal().Connect( this, &ImageScalingIrregularGridController::OnTouchImage ); image.ResourceReadySignal().Connect( this, &ImageScalingIrregularGridController::ResourceReadySignal ); mFittingModes[image.GetProperty< int >( Actor::Property::ID )] = fittingMode; mResourceUrls[image.GetProperty< int >( Actor::Property::ID )] = imageSource.configuration.path; @@ -542,7 +542,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) @@ -600,7 +600,7 @@ public: { mTitleActor = DemoHelper::CreateToolBarLabel( "" ); // Add title to the tool bar. - mToolBar.AddControl( mTitleActor, DemoHelper::DEFAULT_VIEW_STYLE.mToolBarTitlePercentage, Alignment::HorizontalCenter ); + mToolBar.AddControl( mTitleActor, DemoHelper::DEFAULT_VIEW_STYLE.mToolBarTitlePercentage, Alignment::HORIZONTAL_CENTER ); } mTitleActor.SetProperty( TextLabel::Property::TEXT, title );