Tizen::Base::String BookMarkManager::GetCurrentCategoryName() const { int const curCat = GetCurrentCategory(); if (curCat < 0) return ""; return GetCategoryName(curCat); }
DialectCategory* OPObjectNode::GetCategorySettings() { if (!CategorySettings) { opString categoryname = GetCategoryName(); CategorySettings = DialectTracker::GetCategory(categoryname); } return CategorySettings; }
void SkillsAndInterestsScreen::OnSpriteUp( Tau::AbstractSprite* sprite, const Tau::String& name ) { CVMenuScreen::OnSpriteUp( sprite, name ); if( sprite == M::philosophyButton ) { this->Navigation_ShiftTo( "philosophyScreen" ); } else { Tau::String categoryName = GetCategoryName( sprite ); if( categoryName.HasLength() ) { this->Navigation_ShiftTo( "skillsAndInterestsCategoryScreen", categoryName ); } } }
/** * Appends my path, including an array index (where appropriate) */ bool FCategoryPropertyNode::GetQualifiedName( FString& PathPlusIndex, const bool bWithArrayIndex, const FPropertyNode* StopParent, bool bIgnoreCategories ) const { bool bAddedAnything = false; if( ParentNode && StopParent != ParentNode ) { bAddedAnything = ParentNode->GetQualifiedName(PathPlusIndex, bWithArrayIndex, StopParent, bIgnoreCategories ); if( bAddedAnything ) { PathPlusIndex += TEXT("."); } } if( !bIgnoreCategories ) { bAddedAnything = true; GetCategoryName().AppendString(PathPlusIndex); } return bAddedAnything; }
FString FCategoryPropertyNode::GetSubcategoryName() const { FString SubcategoryName; { // The category name may actually contain a path of categories. When displaying this category // in the property window, we only want the leaf part of the path const FString& CategoryPath = GetCategoryName().ToString(); FString CategoryDelimiterString; CategoryDelimiterString.AppendChar( FPropertyNodeConstants::CategoryDelimiterChar ); const int32 LastDelimiterCharIndex = CategoryPath.Find( CategoryDelimiterString ); if( LastDelimiterCharIndex != INDEX_NONE ) { // Grab the last sub-category from the path SubcategoryName = CategoryPath.Mid( LastDelimiterCharIndex + 1 ); } else { // No sub-categories, so just return the original (clean) category path SubcategoryName = CategoryPath; } } return SubcategoryName; }