X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-editor-property-handler.cpp;h=403f777cfb939df8e22c49a5a46d68ece8d37eeb;hb=ff6ce970724ccc8bee65f7c93411b274907c09d7;hp=5ea2cf1829bd5b808d74bb4eb5de00caede3e528;hpb=f040ee74bc71aad84339b672e5aec6247fdf189e;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/text-controls/text-editor-property-handler.cpp b/dali-toolkit/internal/controls/text-controls/text-editor-property-handler.cpp index 5ea2cf1..403f777 100644 --- a/dali-toolkit/internal/controls/text-controls/text-editor-property-handler.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-editor-property-handler.cpp @@ -126,6 +126,16 @@ void TextEditor::PropertyHandler::SetProperty(Toolkit::TextEditor textEditor, Pr } break; } + case Toolkit::DevelTextEditor::Property::VERTICAL_ALIGNMENT: + { + Toolkit::Text::VerticalAlignment::Type alignment(static_cast(-1)); // Set to invalid value to ensure a valid mode does get set + if(Text::GetVerticalAlignmentEnumeration(value, alignment)) + { + impl.mController->SetVerticalAlignment(alignment); + DALI_LOG_INFO(gTextEditorLogFilter, Debug::General, "TextEditor %p VERTICAL_ALIGNMENT %d\n", impl.mController.Get(), alignment); + } + break; + } case Toolkit::TextEditor::Property::SCROLL_THRESHOLD: { const float threshold = value.Get(); @@ -732,6 +742,15 @@ void TextEditor::PropertyHandler::SetProperty(Toolkit::TextEditor textEditor, Pr impl.mRenderer.Reset(); break; } + case Toolkit::DevelTextEditor::Property::SELECTION_POPUP_STYLE: + { + const Property::Map* map = value.GetMap(); + if(map) + { + impl.mDecorator->SetSelectionPopupStyle(*map); + } + break; + } } } @@ -786,6 +805,16 @@ Property::Value TextEditor::PropertyHandler::GetProperty(Toolkit::TextEditor tex } break; } + case Toolkit::DevelTextEditor::Property::VERTICAL_ALIGNMENT: + { + const char* name = Text::GetVerticalAlignmentString(impl.mController->GetVerticalAlignment()); + + if(name) + { + value = std::string(name); + } + break; + } case Toolkit::TextEditor::Property::SCROLL_THRESHOLD: { value = impl.mDecorator->GetScrollThreshold(); @@ -1144,6 +1173,13 @@ Property::Value TextEditor::PropertyHandler::GetProperty(Toolkit::TextEditor tex value = impl.mController->GetRelativeLineSize(); break; } + case Toolkit::DevelTextEditor::Property::SELECTION_POPUP_STYLE: + { + Property::Map map; + impl.mDecorator->GetSelectionPopupStyle(map); + value = map; + break; + } } //switch return value; }