X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fdecorator%2Ftext-decorator.cpp;h=7934b6f1aa8c8073444a424c6520b387ba326280;hp=392fde11a26d150e075b786cdaddb6a6d265a0e3;hb=cb6abb2872336c1532a69093f05d8cb333c31f47;hpb=ccb1140dd671a9ed76a62177285c4119182478d2 diff --git a/dali-toolkit/internal/text/decorator/text-decorator.cpp b/dali-toolkit/internal/text/decorator/text-decorator.cpp index 392fde1..7934b6f 100644 --- a/dali-toolkit/internal/text/decorator/text-decorator.cpp +++ b/dali-toolkit/internal/text/decorator/text-decorator.cpp @@ -228,9 +228,11 @@ struct Decorator::Impl : public ConnectionTracker int offset; }; - Impl( ControllerInterface& controller ) + Impl( ControllerInterface& controller, + TextSelectionPopupCallbackInterface& callbackInterface ) : mController( controller ), mEnabledPopupButtons( TextSelectionPopup::NONE ), + mTextSelectionPopupCallbackInterface( callbackInterface ), mBoundingBox( Rect() ), mHighlightColor( LIGHT_BLUE ), mActiveCursor( ACTIVE_CURSOR_NONE ), @@ -405,7 +407,7 @@ struct Decorator::Impl : public ConnectionTracker UnparentAndReset( mCopyPastePopup.actor ); if ( !mCopyPastePopup.actor ) { - mCopyPastePopup.actor = TextSelectionPopup::New( mEnabledPopupButtons ); + mCopyPastePopup.actor = TextSelectionPopup::New( mEnabledPopupButtons, &mTextSelectionPopupCallbackInterface ); #ifdef DECORATOR_DEBUG mCopyPastePopup.actor.SetName("mCopyPastePopup"); #endif @@ -1213,6 +1215,7 @@ struct Decorator::Impl : public ConnectionTracker PopupImpl mCopyPastePopup; TextSelectionPopup::Buttons mEnabledPopupButtons; /// Bit mask of currently enabled Popup buttons + TextSelectionPopupCallbackInterface& mTextSelectionPopupCallbackInterface; Image mHandleImages[HANDLE_TYPE_COUNT][HANDLE_IMAGE_TYPE_COUNT]; Image mCursorImage; @@ -1245,9 +1248,11 @@ struct Decorator::Impl : public ConnectionTracker bool mSwapSelectionHandles : 1; ///< Whether to swap the selection handle images. }; -DecoratorPtr Decorator::New( ControllerInterface& controller ) +DecoratorPtr Decorator::New( ControllerInterface& controller, + TextSelectionPopupCallbackInterface& callbackInterface ) { - return DecoratorPtr( new Decorator(controller) ); + return DecoratorPtr( new Decorator( controller, + callbackInterface ) ); } void Decorator::SetBoundingBox( const Rect& boundingBox ) @@ -1479,10 +1484,11 @@ Decorator::~Decorator() delete mImpl; } -Decorator::Decorator( ControllerInterface& controller ) +Decorator::Decorator( ControllerInterface& controller, + TextSelectionPopupCallbackInterface& callbackInterface ) : mImpl( NULL ) { - mImpl = new Decorator::Impl( controller ); + mImpl = new Decorator::Impl( controller, callbackInterface ); } } // namespace Text