X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller-impl.h;h=3073611f287e3db2766e2668f491f31103f647db;hb=36a4d207b64a34433a19d78dc0c9f768f6990773;hp=426cc607db63393981c16fdd61c62569217edd6a;hpb=a25c22b9f8f7f7e34932beea9a8457ebdf7f8398;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-controller-impl.h b/dali-toolkit/internal/text/text-controller-impl.h index 426cc60..3073611 100644 --- a/dali-toolkit/internal/text/text-controller-impl.h +++ b/dali-toolkit/internal/text/text-controller-impl.h @@ -20,13 +20,13 @@ // EXTERNAL INCLUDES #include -#include #include // INTERNAL INCLUDES #include #include #include +#include #include namespace Dali @@ -107,6 +107,7 @@ struct EventData SELECTION_CHANGED, EDITING, EDITING_WITH_POPUP, + EDITING_WITH_GRAB_HANDLE, GRAB_HANDLE_PANNING, SELECTION_HANDLE_PANNING }; @@ -208,7 +209,6 @@ struct Controller::Impl mView(), mLayoutEngine(), mModifyEvents(), - mControlSize(), mTextColor( Color::BLACK ), mAlignmentOffset(), mOperationsPending( NO_OPERATION ), @@ -230,6 +230,7 @@ struct Controller::Impl ~Impl() { + delete mFontDefaults; delete mEventData; } @@ -278,6 +279,12 @@ struct Controller::Impl return ( mEventData && mEventData->mIsShowingPlaceholderText ); } + bool IsShowingRealText() const + { + return ( !IsShowingPlaceholderText() && + 0u != mLogicalModel->mText.Count() ); + } + /** * @brief Called when placeholder-text is hidden */ @@ -465,7 +472,6 @@ struct Controller::Impl View mView; ///< The view interface to the rendering back-end. LayoutEngine mLayoutEngine; ///< The layout engine. std::vector mModifyEvents; ///< Temporary stores the text set until the next relayout. - Size mControlSize; ///< The size of the control. Vector4 mTextColor; ///< The regular text color Vector2 mAlignmentOffset; ///< Vertical and horizontal offset of the whole text inside the control due to alignment. OperationsMask mOperationsPending; ///< Operations pending to be done to layout the text.