当前位置: 首页>>代码示例>>C++>>正文


C++ CAknTitlePane类代码示例

本文整理汇总了C++中CAknTitlePane的典型用法代码示例。如果您正苦于以下问题:C++ CAknTitlePane类的具体用法?C++ CAknTitlePane怎么用?C++ CAknTitlePane使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了CAknTitlePane类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: StatusPane

void CNPRStoryListBoxView::SetupStatusPaneL()
	{
	// reset the context pane
	TUid contextPaneUid = TUid::Uid( EEikStatusPaneUidContext );
	CEikStatusPaneBase::TPaneCapabilities subPaneContext = 
		StatusPane()->PaneCapabilities( contextPaneUid );
	if ( subPaneContext.IsPresent() && subPaneContext.IsAppOwned() )
		{
		CAknContextPane* context = static_cast< CAknContextPane* > ( 
			StatusPane()->ControlL( contextPaneUid ) );
		context->SetPictureToDefaultL();
		}
	
	// setup the title pane
	TUid titlePaneUid = TUid::Uid( EEikStatusPaneUidTitle );
	CEikStatusPaneBase::TPaneCapabilities subPaneTitle = 
		StatusPane()->PaneCapabilities( titlePaneUid );
	if ( subPaneTitle.IsPresent() && subPaneTitle.IsAppOwned() )
		{
		CAknTitlePane* title = static_cast< CAknTitlePane* >( 
			StatusPane()->ControlL( titlePaneUid ) );
		TResourceReader reader;
		iEikonEnv->CreateResourceReaderLC( reader, R_NPRSTORY_LIST_BOX_TITLE_RESOURCE );
		title->SetFromResourceL( reader );
		CleanupStack::PopAndDestroy(); // reader internal state
		}			
	}
开发者ID:SymbianSource,项目名称:oss.FCL.examples.app.NPR,代码行数:27,代码来源:NPRStoryListBoxView.cpp

示例2: SetTitleL

// ----------------------------------------------------
// CCcorAppUi::SetTitleL
// Set title pane text from a resource.
// ----------------------------------------------------
//
void CTrkAppUi::SetTitleL(TInt aResourceId)
{
    // Set title
    CAknTitlePane* title = static_cast<CAknTitlePane*>(StatusPane()->ControlL(TUid::Uid(EEikStatusPaneUidTitle)));
    TResourceReader reader;
    iCoeEnv->CreateResourceReaderLC(reader, aResourceId);
    title->SetFromResourceL(reader);
    CleanupStack::PopAndDestroy();  // resource reader
}
开发者ID:fedor4ever,项目名称:devicedbgsrvs,代码行数:14,代码来源:TrkAppUi.cpp

示例3: LOG

// --------------------------------------------------------------------------
// CMSBaseView::SetTitlePaneTextL()
// Sets text to title pane.
// --------------------------------------------------------------------------
void CMSBaseView::SetTitlePaneTextL( const TDesC& aText )
    {
    LOG(_L("[MediaServant]\t CMSBaseView::SetTitlePaneTextL"));

    // Fetches pointer to the default title pane control.
    CAknTitlePane* titlePane = static_cast<CAknTitlePane*>(
        StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) );

    titlePane->SetTextL( aText );
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:14,代码来源:msbaseview.cpp

示例4: StatusPane

void COsmo4AppUi::SetTitleInfo(const char *title)
{
#if 1
    CEikStatusPane* statusPane = StatusPane();
    CAknTitlePane *iTitlePane = (CAknTitlePane*) statusPane->ControlL(TUid::Uid(EEikStatusPaneUidTitle));

	if (!title) title = "Osmo4";

	HBufC *htitle = HBufC::NewL( strlen(title)+1);
	htitle->Des().Copy( TPtrC8(( TText8* ) title) );
	iTitlePane->SetText(htitle);
#endif
}
开发者ID:bigbensk,项目名称:gpac,代码行数:13,代码来源:osmo4_ui.cpp

示例5: SetTitle

void CFileSelectDialog::SetTitle()
	{
	
		TUid titlePaneUid;
		titlePaneUid.iUid = EEikStatusPaneUidTitle;
		TVwsViewId ViewID;CEikonEnv::Static()->AppUi()->GetActiveViewId(ViewID);
		CEikStatusPane* statusPane =((CAknAppUi*)CEikonEnv::Static()->AppUi())->StatusPane();		CEikStatusPaneBase::TPaneCapabilities subPane = statusPane->PaneCapabilities(titlePaneUid);
		if ( subPane.IsPresent() && subPane.IsAppOwned() )
			{
			CAknTitlePane* titlePane =(CAknTitlePane*) statusPane->ControlL(titlePaneUid);
			iOldTitle = *titlePane->Text();
			titlePane->SetTextL(iTitle);
			}
		
	}
开发者ID:kolayuk,项目名称:ActiveJack,代码行数:15,代码来源:FileSelectDialog.cpp

示例6: SetTitleL

// ----------------------------------------------------------------------------
// CStatusPaneHandler::SetTitleL
// 
// ----------------------------------------------------------------------------
//
TBool CStatusPaneHandler::SetTitleL( CAknAppUi* aAppUi, const TDesC& aTitle )
    {
    CEikStatusPane* statusPane = aAppUi->StatusPane();
    if ( statusPane && statusPane->PaneCapabilities( TUid::Uid( EEikStatusPaneUidTitle ) ).IsPresent() )
        {
        CAknTitlePane* titlePane = static_cast<CAknTitlePane*>
            ( statusPane->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) );
        if ( titlePane->Text() ) 
            {
            titlePane->SetTextL( aTitle );
            return ETrue;
            }
        }
    return EFalse;
    }
开发者ID:cdaffara,项目名称:symbiandump-mw2,代码行数:20,代码来源:audiofetcherdialogutils.cpp

示例7: GetTitleL

// ----------------------------------------------------------------------------
// CStatusPaneHandler::GetTitleL
// 
// ----------------------------------------------------------------------------
//
TBool CStatusPaneHandler::GetTitleL( CAknAppUi* aAppUi, TDes& aTitle )
    {
    aTitle = KNullDesC;

    CEikStatusPane* statusPane = aAppUi->StatusPane();
    if (statusPane && statusPane->PaneCapabilities( TUid::Uid( EEikStatusPaneUidTitle ) ).IsPresent() )
        {
        CAknTitlePane* titlePane = static_cast<CAknTitlePane*>
            ( statusPane->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) );
        if ( titlePane->Text() ) 
            {
            StrCopy( aTitle, *titlePane->Text() );
            return ETrue;
            }
        }

    return EFalse;
    }
开发者ID:cdaffara,项目名称:symbiandump-mw2,代码行数:23,代码来源:audiofetcherdialogutils.cpp

示例8: DoActivateL

void CBuddycloudAccountSettingsView::DoActivateL(const TVwsViewId& /*aPrevViewId*/, TUid aCustomMessageId, const TDesC8& /*aCustomMessage*/) {
	if (!iList) {
		CAknTitlePane* aTitlePane = static_cast<CAknTitlePane*>(StatusPane()->ControlL(TUid::Uid( EEikStatusPaneUidTitle)));
		HBufC* aTitle = iEikonEnv->AllocReadResourceLC(R_LOCALIZED_STRING_ACCOUNTSETTINGS_TITLE);
		aTitlePane->SetTextL(*aTitle);
		CleanupStack::PopAndDestroy(); // aTitle

		iList = new (ELeave) CBuddycloudAccountSettingsList(iBuddycloudLogic);
		iList->ConstructL(ClientRect());
		iList->SetMopParent(this);

		TResourceReader aReader;
		iEikonEnv->CreateResourceReaderLC(aReader, R_ACCOUNT_SETTINGS_ITEM_LIST);
		iList->ConstructFromResourceL(aReader);
		CleanupStack::PopAndDestroy(); // aReader

		AppUi()->AddToViewStackL(*this, iList);
		iList->ActivateL(aCustomMessageId.iUid);
	}
}
开发者ID:Persepoliss,项目名称:symbian-client,代码行数:20,代码来源:BuddycloudAccountSettingsView.cpp

示例9: __LOG

// --------------------------------------------------------------------------
// CUPnPVideoPlayerDlg::PreLayoutDynInitL();
// called by framework before dialog is shown
// --------------------------------------------------------------------------
//
void CUPnPVideoPlayerDlg::PreLayoutDynInitL()
{
    __LOG( "CUPnPVideoPlayerDlg::PreLayoutDynInitL" );


    // Browse dialog title text
    TUid titlePaneUid;
    titlePaneUid.iUid = EEikStatusPaneUidTitle;
    CEikStatusPane* statusPane = iEikonEnv->AppUiFactory()->StatusPane();
    CEikStatusPaneBase::TPaneCapabilities titlesubPane =
        statusPane->PaneCapabilities( titlePaneUid );


    if( titlesubPane.IsPresent() &&
            titlesubPane.IsAppOwned() )
    {
        CAknTitlePane* titlePane =
            (CAknTitlePane*) statusPane->ControlL( titlePaneUid );
        // Take backup of title text
        iOriginalTitleText->Des().Copy( *titlePane->Text() );

        HBufC *tmpbuf = UpnpString::ToUnicodeL( iItem->Title() );
        CleanupStack::PushL( tmpbuf );
        titlePane->SetTextL( *tmpbuf );
        CleanupStack::PopAndDestroy();
    }


    // Start to observe the rendering session
    iRendSession.RemoveObserver();
    iRendSession.SetObserver( *this );

    PreparePlayBackL();

    StartWaitNoteL();

    /*
    // Temporally commented out. Will be uncommented when UpnpAvController
    // provides cancel functionaly fot SetUri action (Upnp Fw 2.5)
        if( iExitCode == EEikBidCancel )
            {
            // Cancel the SetUri
            //iRendSession.Cancel();
            // Send Stop
            TRAP_IGNORE( iRendSession.StopL() );
            ClearTitleL();
            iExitCode = KErrCancel;
            }
    */
    User::LeaveIfError( iExitCode );

    if ( !Layout_Meta_Data::IsLandscapeOrientation() )
    {
        iEikonEnv->AppUiFactory()->StatusPane()->SwitchLayoutL(
            R_AVKON_STATUS_PANE_LAYOUT_USUAL );
    }
    // Volume level to 0
    iCurrentVolume = KMiniumVolume;

    // try to get volume level from renderer
    TRAPD( err, iRendSession.GetVolumeL() );
    if( !err )
    {
        iAdjustingVolume = ETrue;
    }

    __LOG( "CUPnPVideoPlayerDlg::PreLayoutDynInitL End" );
}
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:73,代码来源:upnpvideoplayerdialog.cpp

示例10: SetTitleL

void CBuddycloudEditPlaceList::SetTitleL(TInt aResourceId) {
	CAknTitlePane* aTitlePane = static_cast<CAknTitlePane*>(iEikonEnv->AppUiFactory()->StatusPane()->ControlL(TUid::Uid(EEikStatusPaneUidTitle)));
	HBufC* aTitle = iEikonEnv->AllocReadResourceLC(aResourceId);
	aTitlePane->SetTextL(*aTitle);
	CleanupStack::PopAndDestroy(); // aTitle
}
开发者ID:Persepoliss,项目名称:symbian-client,代码行数:6,代码来源:BuddycloudEditPlaceList.cpp

示例11:

// ---------------------------------------------------------------------------
// CAppMngr2PackagesView::SetTitleL()
// ---------------------------------------------------------------------------
//
void CAppMngr2PackagesView::SetTitleL( CAknTitlePane& aTitlePane )
    {
    HBufC* title = StringLoader::LoadLC( R_AM_TITLE_NOT_INSTALLED );
    aTitlePane.SetTextL( *title );
    CleanupStack::PopAndDestroy( title );
    }
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:10,代码来源:appmngr2packagesview.cpp

示例12: SetTitleL

void CBuddycloudListComponent::SetTitleL(const TDesC& aTitle) {
	CAknTitlePane* aTitlePane = static_cast<CAknTitlePane*>(iEikonEnv->AppUiFactory()->StatusPane()->ControlL(TUid::Uid(EEikStatusPaneUidTitle)));

	aTitlePane->SetTextL(aTitle);
}
开发者ID:Persepoliss,项目名称:symbian-client,代码行数:5,代码来源:BuddycloudListComponent.cpp

示例13: titleId

// ----------------------------------------------------------------------------
// CAknExQueryView::SetTitlePane( TInt aOutlineId )
// Sets text of title pane. 
// ----------------------------------------------------------------------------
//
void CAknExQueryView::SetTitlePaneL( TInt aOutlineId )
    {
    TInt titleId( KAknExQueryInitId );
    TBool defaultFlg( EFalse );

    iContainer->DeleteLabelL();
    iContainer->DeleteListBoxL();
    iCurrentOutline = aOutlineId; // Set current display outlinenumber

    switch ( aOutlineId )
        {
        case EAknExQueryNoOutline:
            defaultFlg = ETrue;
            break;
        case EAknExQueryOutline1:
            titleId = R_AKNEXQUERY_OUTLINE1;
            break;
        case EAknExQueryOutline4:
            titleId = R_AKNEXQUERY_OUTLINE4;
            break;
        case EAknExQueryOutline8:
            titleId = R_AKNEXQUERY_OUTLINE8;
            break;
        case EAknExQueryOutline10:
            titleId = R_AKNEXQUERY_OUTLINE10;
            break;
        case EAknExQueryOutline16:
            titleId = R_AKNEXQUERY_OUTLINE16;
            break;
        case EAknExQueryOutline44:
            titleId = R_AKNEXQUERY_OUTLINE44;
            break;
        case EAknExQueryOutline48:
            titleId = R_AKNEXQUERY_OUTLINE48;
            break;
        case EAknExQueryOutline52:
            titleId = R_AKNEXQUERY_OUTLINE52;
            break;
        case EAknExQueryOutline54:
            titleId = R_AKNEXQUERY_OUTLINE54;
            break;
        case EAknExQueryOutline61:
            titleId = R_AKNEXQUERY_OUTLINE61;
            break;
        default:
            defaultFlg = ETrue;
            break;
        }

    // Fetches pointer to the default title pane control.
    CAknTitlePane* titlePane = 
        static_cast<CAknTitlePane*>
            ( StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) );

    if ( !defaultFlg )
        {
        // Makes and sets text whitch is used title pane.
        TBuf<KAknExQueryTitleBufLength> MessageText( KAknExQueryBufferEmpty );
        iCoeEnv->ReadResource( MessageText, titleId );
        titlePane->SetTextL( MessageText );
        }
    else
        {
        titlePane->SetTextToDefaultL();
        }
    }
开发者ID:fedor4ever,项目名称:packaging,代码行数:71,代码来源:aknexqueryview.cpp


注:本文中的CAknTitlePane类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。