X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-view%2Ftext-view-processor-dbg.cpp;h=713c6814e5fafa69e4cd5f4c4f8fbe15db0d08b5;hb=47602d95266454026fab0b4fb9c745a1c342c5c3;hp=7671c34f0c70a30d21a6177f82a6d418b6a5d1c2;hpb=ded2cfc2cce82645c2b7f8d1b666900b0ff10399;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/text-view/text-view-processor-dbg.cpp b/dali-toolkit/internal/controls/text-view/text-view-processor-dbg.cpp deleted file mode 100644 index 7671c34..0000000 --- a/dali-toolkit/internal/controls/text-view/text-view-processor-dbg.cpp +++ /dev/null @@ -1,181 +0,0 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -// INTERNAL INCLUDES -#include "text-view-processor-dbg.h" - -namespace Dali -{ - -namespace Toolkit -{ - -namespace Internal -{ - -namespace TextViewProcessor -{ - -#if defined(DEBUG_ENABLED) -Debug::Filter* gTextViewProcessorLogFilter = Debug::Filter::New(Debug::NoLogging, false, "LOG_TEXT_VIEW_PROCESSOR"); -#endif - -void dbgPrint( const WordLayoutInfo& word ) -{ - for( CharacterLayoutInfoContainer::const_iterator characterIt = word.mCharactersLayoutInfo.begin(), endCharacterIt = word.mCharactersLayoutInfo.end(); - characterIt != endCharacterIt; - ++characterIt ) - { - const CharacterLayoutInfo& character( *characterIt ); - - std::cout << "[" << character.mSize << std::endl; - std::cout << " ascender " << character.mAscender << std::endl; - - TextActor textActor = TextActor::DownCast( character.mGlyphActor ); - if( textActor ) - { - std::cout << "[" << textActor.GetText() << "]"; - } - else - { - std::cout << "[ImageActor]" << std::endl; - } - std::cout << "{" << character.mStyledText.mText.GetText() << "}"; - } - std::cout << " size " << word.mSize << std::endl; - std::cout << " ascender " << word.mAscender << std::endl; - std::cout << " num char " << word.mCharactersLayoutInfo.size() << std::endl; - std::cout << " type "; - switch( word.mType ) - { - case NoSeparator: - { - std::cout << "NoSeparator" << std::endl; - break; - } - case LineSeparator: - { - std::cout << "LineSeparator" << std::endl; - break; - } - case WordSeparator: - { - std::cout << "WordSeparator" << std::endl; - break; - } - } -} - -void dbgPrint( const WordGroupLayoutInfo& group ) -{ - std::cout << "( "; - std::cout << group.mSize; - std::cout << group.mNumberOfCharacters; - for( WordLayoutInfoContainer::const_iterator wordIt = group.mWordsLayoutInfo.begin(), endWordIt = group.mWordsLayoutInfo.end(); - wordIt != endWordIt; - ++wordIt ) - { - dbgPrint( *wordIt ); - } - std::cout << " )"; -} - -void dbgPrint( const LineLayoutInfo& line ) -{ - std::cout << "< "; - std::cout << line.mSize; - for( WordGroupLayoutInfoContainer::const_iterator groupIt = line.mWordGroupsLayoutInfo.begin(), endGroupIt = line.mWordGroupsLayoutInfo.end(); - groupIt != endGroupIt; - ++groupIt ) - { - dbgPrint( *groupIt ); - } - std::cout << " >"; - std::cout << std::endl; -} - -void dbgPrint( const TextLayoutInfo& textInfo ) -{ - std::cout << "||" << std::endl; - std::cout << textInfo.mWholeTextSize; - for( LineLayoutInfoContainer::const_iterator it = textInfo.mLinesLayoutInfo.begin(), endIt = textInfo.mLinesLayoutInfo.end(); - it != endIt; - ++it ) - { - dbgPrint( *it ); - } - std::cout << "||" << std::endl; -} - -void dbgPrint( const TextStyle& style ) -{ - std::cout << " font name : " << style.GetFontName() << std::endl; - std::cout << " font style : " << style.GetFontStyle() << std::endl; - std::cout << " font point size : " << style.GetFontPointSize() << std::endl; - std::cout << " weight : " << style.GetWeight() << std::endl; - std::cout << " text color : " << style.GetTextColor() << std::endl; - std::cout << " italics : " << style.GetItalics() << std::endl; - std::cout << " underline : " << style.GetUnderline() << std::endl; - std::cout << " shadow : " << style.GetShadow() << std::endl; - std::cout << " shadow color : " << style.GetShadowColor() << std::endl; - std::cout << " shadow offset : " << style.GetShadowOffset() << std::endl; - std::cout << " glow : " << style.GetGlow() << std::endl; - std::cout << " italics angle : " << style.GetItalicsAngle() << std::endl; - std::cout << " glow color : " << style.GetGlowColor() << std::endl; - std::cout << " glow intensity : " << style.GetGlowIntensity() << std::endl; - std::cout << " smooth edge : " << style.GetSmoothEdge() << std::endl; - std::cout << " outline : " << style.GetOutline() << std::endl; - std::cout << " outline color : " << style.GetOutlineColor() << std::endl; - std::cout << " outline thickness : " << style.GetOutlineThickness() << std::endl; -} - -void dbgPrint( const TextInfoIndices& indices ) -{ - std::cout << " line : " << indices.mLineIndex << std::endl; - std::cout << " group : " << indices.mGroupIndex << std::endl; - std::cout << " word : " << indices.mWordIndex << std::endl; - std::cout << " char : " << indices.mCharacterIndex << std::endl; -} - -void dbgPrint( const MarkupProcessor::StyledTextArray& textArray ) -{ - for( MarkupProcessor::StyledTextArray::const_iterator it = textArray.begin(), endIt = textArray.end(); it != endIt; ++it ) - { - const MarkupProcessor::StyledText& text( *it ); - - std::cout << text.mText.GetText(); - } -} - -void dbgPrintText( const WordLayoutInfo& word ) -{ - for( CharacterLayoutInfoContainer::const_iterator characterIt = word.mCharactersLayoutInfo.begin(), endCharacterIt = word.mCharactersLayoutInfo.end(); - characterIt != endCharacterIt; - ++characterIt ) - { - const CharacterLayoutInfo& character( *characterIt ); - - std::cout << character.mStyledText.mText.GetText(); - } -} - -} // namespace TextViewProcessor - -} // namespace Internal - -} // namespace Toolkit - -} // namespace Dali