X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-selection-toolbar-impl.cpp;h=b87dab268fcaa2596cbf3cbec6df7a9c98e7cb57;hp=9ca5fb75840e3515cc93f242190fbe54522c9d72;hb=3d485e1b28628f0c6e1c5489c2dc31a65ac7ec52;hpb=4bf366c7c657eacb5cf150fa52e34263ca16218f diff --git a/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.cpp index 9ca5fb7..b87dab2 100644 --- a/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.cpp @@ -18,17 +18,17 @@ // CLASS HEADER #include -// INTERNAL INCLUDES -#include -#include - // EXTERNAL INCLUDES -#include +#include +#include #include #include #include -#include -#include +#include + +// INTERNAL INCLUDES +#include +#include namespace Dali { @@ -156,22 +156,6 @@ void TextSelectionToolbar::OnStageConnection( int depth ) // Call the Control::OnStageConnection() to set the depth of the background. Control::OnStageConnection( depth ); - // Traverse the dividers and set the depth. - for( unsigned int i = 0; i < mDividerIndexes.Count(); ++i ) - { - Actor divider = mTableOfButtons.GetChildAt( Toolkit::TableView::CellPosition( 0, mDividerIndexes[ i ] ) ); - - ImageActor dividerImageActor = ImageActor::DownCast( divider ); - if( dividerImageActor ) - { - dividerImageActor.SetSortModifier( DECORATION_DEPTH_INDEX + depth ); - } - else - { - // TODO at the moment divider are image actors. - } - } - // Texts are controls, they have their own OnStageConnection() implementation. // Icons are inside a TableView. It has it's own OnStageConnection() implementation. } @@ -221,7 +205,8 @@ void TextSelectionToolbar::SetUp() mStencilLayer.SetResizePolicy( ResizePolicy::FIT_TO_CHILDREN, Dimension::ALL_DIMENSIONS ); mStencilLayer.SetParentOrigin( ParentOrigin::CENTER ); - ImageActor stencil = CreateSolidColorActor( Color::RED ); + BufferImage stencilImage = BufferImage::WHITE(); // ImageView needs an Image or does nothing + Toolkit::ImageView stencil = Toolkit::ImageView::New(stencilImage); stencil.SetDrawMode( DrawMode::STENCIL ); stencil.SetVisible( true ); stencil.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );