Exemplo n.º 1
0
Tizen::Base::String BookMarkManager::GetCurrentCategoryName() const
{
  int const curCat = GetCurrentCategory();
  if (curCat < 0)
    return "";
  return GetCategoryName(curCat);
}
Exemplo n.º 2
0
DialectCategory* OPObjectNode::GetCategorySettings() {
    if (!CategorySettings) {
        opString categoryname = GetCategoryName();
        CategorySettings = DialectTracker::GetCategory(categoryname);
    }

    return CategorySettings;
}
Exemplo n.º 3
0
    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 );
            }
        }
    }
Exemplo n.º 4
0
/**
 * 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;
}
Exemplo n.º 5
0
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;
}