X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller-impl.h;h=e9d99f1fe4db80164d826a08a2c7af6f25342c8b;hb=026776eb4b0303604b3c6ca5857cc1ac59b4006e;hp=43a7cf39c3944001384ab131be6d7e34c16fa0b3;hpb=33e8a1f0bd187a0d6edbc647e632ef61bc555077;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 43a7cf3..e9d99f1 100644 --- a/dali-toolkit/internal/text/text-controller-impl.h +++ b/dali-toolkit/internal/text/text-controller-impl.h @@ -104,6 +104,7 @@ struct EventData DecoratorPtr mDecorator; ///< Pointer to the decorator. ImfManager mImfManager; ///< The Input Method Framework Manager. + std::string mPlaceholderText; ///< The text to display when the TextField is empty. std::string mPlaceholderTextActive; ///< The text to display when the TextField is empty with key-input focus. std::string mPlaceholderTextInactive; ///< The text to display when the TextField is empty and inactive. Vector4 mPlaceholderTextColor; ///< The in/active placeholder text color. @@ -316,7 +317,8 @@ struct Controller::Impl mIsAutoScrollEnabled( false ), mAutoScrollDirectionRTL( false ), mUnderlineSetByString( false ), - mShadowSetByString( false ) + mShadowSetByString( false ), + mFontStyleSetByString( false ) { mModel = Model::New(); @@ -382,10 +384,9 @@ struct Controller::Impl */ bool IsPlaceholderAvailable() const { - return ( mEventData && - ( !mEventData->mPlaceholderTextInactive.empty() || - !mEventData->mPlaceholderTextActive.empty() ) - ); + return ( mEventData && ( !mEventData->mPlaceholderText.empty() || + !mEventData->mPlaceholderTextInactive.empty() || + !mEventData->mPlaceholderTextActive.empty() ) ); } bool IsShowingPlaceholderText() const @@ -398,7 +399,8 @@ struct Controller::Impl */ bool IsFocusedPlaceholderAvailable() const { - return ( mEventData && !mEventData->mPlaceholderTextActive.empty() ); + return ( mEventData && ( !mEventData->mPlaceholderTextActive.empty() || + !mEventData->mPlaceholderText.empty() ) ); } bool IsShowingRealText() const @@ -725,6 +727,7 @@ public: bool mUnderlineSetByString:1; ///< Set when underline is set by string (legacy) instead of map bool mShadowSetByString:1; ///< Set when shadow is set by string (legacy) instead of map + bool mFontStyleSetByString:1; ///< Set when font style is set by string (legacy) instead of map }; } // namespace Text