X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=optional%2Fdali-toolkit%2Finternal%2Fcontrols%2Fimage-view%2Fmasked-image-view-impl.cpp;h=ed9d27bdfec85861e18fd22758f80a1ebc8c6594;hb=fbcadb5a9144d2ebe1d25ba2aa5e63bf6d2f61aa;hp=8329e65ac50bc93b0bd2da24bfbc6db5df355c3f;hpb=30f6ca1e541089b19f2b349a8a12d8a5bcaf2f9e;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/optional/dali-toolkit/internal/controls/image-view/masked-image-view-impl.cpp b/optional/dali-toolkit/internal/controls/image-view/masked-image-view-impl.cpp index 8329e65..ed9d27b 100644 --- a/optional/dali-toolkit/internal/controls/image-view/masked-image-view-impl.cpp +++ b/optional/dali-toolkit/internal/controls/image-view/masked-image-view-impl.cpp @@ -1,24 +1,29 @@ -// -// 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) 2014 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 // EXTERNAL INCLUDES #include - -// INTERNAL INCLUDES -#include +#include +#include +#include +#include namespace Dali { @@ -350,7 +355,7 @@ void MaskedImageView::OnPropertySet( Property::Index index, Property::Value prop } } -void MaskedImageView::OnPan(Actor source, PanGesture gesture) +void MaskedImageView::OnPan(Actor source, const PanGesture& gesture) { // Used to flag whether edit mode is setting properties mSelfPropertySetting = true; @@ -375,7 +380,7 @@ void MaskedImageView::OnPan(Actor source, PanGesture gesture) mSelfPropertySetting = false; } -void MaskedImageView::OnPinch(Actor actor, PinchGesture pinch) +void MaskedImageView::OnPinch(Actor actor, const PinchGesture& pinch) { // Used to flag whether edit mode is setting properties mSelfPropertySetting = true; @@ -474,7 +479,7 @@ Dali::Toolkit::MaskedImageView::MaskedImageViewSignal& MaskedImageView::MaskFini } MaskedImageView::MaskedImageView() -: ControlImpl(true), +: Control( ControlBehaviour( REQUIRES_TOUCH_EVENTS | REQUIRES_STYLE_CHANGE_SIGNALS ) ), mEditMode( Dali::Toolkit::MaskedImageView::EDIT_DISABLED ), mSelfPropertySetting( false ), mSourceRotation( Dali::Toolkit::MaskedImageView::ROTATE_0 ),