X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=base%2Fdali-toolkit%2Finternal%2Fcontrols%2Fbuttons%2Fpush-button-impl.cpp;h=9f8452ca3df1aa03e09f9c1c873168be753b6e9e;hp=153c3964fc8c5da0a47b8301ec1367039f3f58e7;hb=7957e6e4dd4c6f97a7296d3125c7410a4b6bc5d7;hpb=9950e5ec78fa88379dbfa3fdf952a0c6b578adbd diff --git a/base/dali-toolkit/internal/controls/buttons/push-button-impl.cpp b/base/dali-toolkit/internal/controls/buttons/push-button-impl.cpp index 153c396..9f8452c 100644 --- a/base/dali-toolkit/internal/controls/buttons/push-button-impl.cpp +++ b/base/dali-toolkit/internal/controls/buttons/push-button-impl.cpp @@ -16,15 +16,15 @@ */ // CLASS HEADER - #include "push-button-impl.h" // EXTERNAL INCLUDES - #include +#include +#include +#include // INTERNAL INCLUDES - #include "push-button-default-painter-impl.h" #include @@ -638,6 +638,25 @@ float PushButton::OnAnimationTimeRequested() const return GetPushButtonPainter( mPainter )->GetAnimationTime(); } +void PushButton::OnButtonStageDisconnection() +{ + if( ButtonDown == mState ) + { + if( !mToggleButton ) + { + Toolkit::PushButton handle( GetOwner() ); + + // Notifies the painter the button has been released. + GetPushButtonPainter( mPainter )->Released( handle ); + + if( mAutoRepeating ) + { + mAutoRepeatingTimer.Reset(); + } + } + } +} + PushButton::PushButton() : Button(), mAutoRepeating( false ), @@ -694,7 +713,7 @@ bool PushButton::AutoRepeatingSlot() void PushButton::OnActivated() { // When the button is activated, it performs the click action - std::vector attributes; + PropertyValueContainer attributes; DoClickAction(attributes); } @@ -775,7 +794,7 @@ void PushButton::DoClickAction(const PropertyValueContainer& attributes) } } -bool PushButton::DoAction(BaseObject* object, const std::string& actionName, const std::vector& attributes) +bool PushButton::DoAction(BaseObject* object, const std::string& actionName, const PropertyValueContainer& attributes) { bool ret = false;