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


C++ CEikStatusPane类代码示例

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


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

示例1: ConstructL

// ---------------------------------------------------------
// CCdlExplorerContainer::ConstructL(const TRect& aRect)
// EPOC two phased constructor
// ---------------------------------------------------------
//
void CCdlExplorerContainer::ConstructL(const TRect& aRect)
    {
	CEikStatusPane *sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane();
	iTitlePane = (CAknTitlePane *)sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle));
	iAppTitle = iTitlePane->Text()->AllocL();

    CreateWindowL();

	iListBox = new (ELeave) CAknSingleStyleListBox();

    iListBox->SetContainerWindowL(*this);
    iListBox->ConstructL(this, EAknListBoxLoopScrolling);

	CCdlExplorableLibs* libs = new(ELeave) CCdlExplorableLibs;
	CleanupStack::PushL(libs);
	libs->OpenL();
	PushViewL(libs);
	CleanupStack::Pop(libs);

    iListBox->Model()->SetOwnershipType(ELbmDoesNotOwnItemArray);
    iListBox->SetListBoxObserver(this);
    iListBox->CreateScrollBarFrameL(ETrue);
    iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);

    SetRect(aRect);
    ActivateL();
    }
开发者ID:cdaffara,项目名称:symbiandump-mw4,代码行数:32,代码来源:CdlExplorerContainer.cpp

示例2: StatusPane

// ---------------------------------------------------------
// CSecModUIViewBase::DoAddNaviPaneL()
// Creates navi pane text
// ---------------------------------------------------------
//
void CSecModUIViewBase::DoAddNaviPaneL(TInt aResource)
    {
    TUid naviPaneUid;
    naviPaneUid.iUid = EEikStatusPaneUidNavi;
    CEikStatusPane* statusPane = StatusPane();
    CAknNavigationControlContainer* naviPane =
        (CAknNavigationControlContainer*) statusPane->ControlL(naviPaneUid);
    if(!iNaviDecorator)
        {
        // Let's try to create navipane
        CEikStatusPaneBase::TPaneCapabilities subPane =
        statusPane->PaneCapabilities(naviPaneUid);
    
        if (subPane.IsPresent() && subPane.IsAppOwned())
            {
            if (0 != aResource)
                {
                TResourceReader reader;
                iCoeEnv->CreateResourceReaderLC(reader, aResource);

                 // set the navigation pane label
                iNaviDecorator = naviPane->CreateNavigationLabelL(reader);
                CleanupStack::PopAndDestroy();
                }
             else
                {
                iNaviDecorator = naviPane->CreateNavigationLabelL();
                }
            }
        }
    if (iNaviDecorator)
        {
        naviPane->PushL(*iNaviDecorator);
        }
    }
开发者ID:kuailexs,项目名称:symbiandump-mw3,代码行数:40,代码来源:SecModUIViewBase.cpp

示例3:

/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
CYuccaNavi::~CYuccaNavi()
{
	delete iFullText;
	iFullText = NULL;
	if(iTimeOutTimer)
	{
		iTimeOutTimer->Cancel();
	}
	delete iTimeOutTimer;
	iTimeOutTimer = NULL;


	if (!iNaviPane)
    {
    	CEikStatusPane *sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane();
        //Fetch pointer to the default navi pane control
        iNaviPane = (CAknNavigationControlContainer *)sp->ControlL(TUid::Uid(EEikStatusPaneUidNavi));
    }
    
    iNaviPane->Pop(NULL); 
    iNaviPane = NULL;
    
    delete iNaviDecorator;
    iNaviDecorator = NULL;
}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:29,代码来源:Navipanel.cpp

示例4: MakeNavipanelL

/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CMailBoxContainer::MakeNavipanelL(void)
{
	CEikStatusPane *sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane();
	iNaviPane = (CAknNavigationControlContainer *)sp->ControlL(TUid::Uid(EEikStatusPaneUidNavi));

	CAknNavigationDecorator* iNaviDecoratorForTabsTemp = iNaviPane->CreateTabGroupL();
	delete iNaviDecoratorForTabs;
    iNaviDecoratorForTabs = NULL;
	iNaviDecoratorForTabs = iNaviDecoratorForTabsTemp;
   	iTabGroup = STATIC_CAST(CAknTabGroup*, iNaviDecoratorForTabs->DecoratedControl());
	iTabGroup->SetTabFixedWidthL(EAknTabWidthWithThreeLongTabs);//EAknTabWidthWithOneTab);

	TBuf<255> FldBuffer;

	for(TInt i=0; i < iFolderArray.Count(); i++)
	{
		FldBuffer.Zero();
		
		if(iFolderArray[i])
		{
			if(iFolderArray[i]->iTitle)
			{
				FldBuffer.Copy(*iFolderArray[i]->iTitle);	
			}
		}
		
		iTabGroup->AddTabL(i,FldBuffer);
	}
	
	if(iTabGroup->TabCount())
	{
		iTabGroup->SetActiveTabByIndex(0);
	}
	iNaviPane->PushL(*iNaviDecoratorForTabs);
}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:39,代码来源:mail_Container.cpp

示例5: ChangeIconAndNameL

/*
-----------------------------------------------------------------------------
----------------------------------------------------------------------------
*/
void CCrashContainer::ChangeIconAndNameL(void)
{	
 	CEikStatusPane*		sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane();
	if(sp)
	{
		CAknTitlePane* TitlePane = STATIC_CAST(CAknTitlePane*,sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle)));
		TitlePane->SetTextL(KCrashApplicationName);
			
    	CAknContextPane* 	ContextPane = (CAknContextPane *)sp->ControlL(TUid::Uid(EEikStatusPaneUidContext));
		if(ContextPane)
		{
			TFindFile AppFile(CCoeEnv::Static()->FsSession());
			if(KErrNone == AppFile.FindByDir(KCrashIconsFileName, KNullDesC))
			{
				TInt BgIndex(0),BgMask(1);
				
				if(iServerIsOn)
				{
					BgIndex = 2;
					BgMask = 3;
				}
				
				if(AknIconUtils::IsMifFile(AppFile.File()))
				{
					AknIconUtils::ValidateLogicalAppIconId(AppFile.File(), BgIndex,BgMask); 
				}
			
				ContextPane->SetPictureFromFileL(AppFile.File(),BgIndex,BgMask);  
			}
		}				
	}	
}
开发者ID:DrJukka,项目名称:Symbian_Codes,代码行数:36,代码来源:MainContainer.cpp

示例6: ConstructL

// -----------------------------------------------------------------------------
// CLandmarksEditDialog::ConstructL
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CLandmarksEditDialog::ConstructL()
    {
    CAknForm::ConstructL(R_LMREFAPP_EDIT_MENU_BAR);

    // Save original title
    CEikStatusPane* statusPane = iAvkonAppUi->StatusPane();
    iTitlePane = (CAknTitlePane*) statusPane->ControlL(
        TUid::Uid(EEikStatusPaneUidTitle));
    iOriginalTitle = iTitlePane->Text()->AllocL();

    // Create iPositionRequest
    HBufC* appName = iCoeEnv->AllocReadResourceAsDes16LC(R_LMREFAPP_APP_TITLE);
    iPositionRequest = CLandmarksPositionRequest::NewL(*appName, this);
    CleanupStack::PopAndDestroy(appName);

    // Initialize iCategoryIds
    iLandmark->GetCategoriesL(iCategoryIds);
    
    iLmCategoriesModel = 
            CLandmarksLmCategoriesModel::NewL(iEngine, iCategoryIds);

    // Initialise states of real value editors
    for (TInt i = ELatitudeEditor; i <= ERadiusEditor; i++)
        {
        User::LeaveIfError(iIsRealValueEdited.Append(EFalse));
        }
    }
开发者ID:fedor4ever,项目名称:packaging,代码行数:32,代码来源:LandmarksEditDialog.cpp

示例7: BaseConstructL

void CSpaceInvadersAppUi::ConstructL()
{
	// Initialise app UI with standard value.
	BaseConstructL(CAknAppUi::EAknEnableSkin);

	// Create the highscore holder to use highscores
	CSpaceInvadersDocument* ptr = (CSpaceInvadersDocument*)Document();
	iHighscoreHolder            = ptr->Holder();

	TInt error;
	
	// Create the audioplayer
	TRAP(error, iAudioPlayer = CSpaceInvadersAudioPlayer::NewL());
	if( error )
	{
		Exit();
	}
	
	// Create the ship
	TRAP(error, iShip = CShipEngine::NewL(0, 0 ));
	if ( error )
	{
		Exit();
	}

	// Create view objects
	TRAP(error, iAppView = CSpaceInvadersAppView::NewL( ClientRect(),this,iShip,
			                                iHighscoreHolder));
	if ( error )
	{
		Exit();
	}
	
	iAppView->MakeVisible(EFalse);
	
	TRAP(error, iStartMenuView = CSpaceInvadersStartMenuAppView::
								 NewL(ClientRect(), this, iHighscoreHolder) );
	if ( error )
	{
		Exit();
	}
	iStartMenuView->MakeVisible(ETrue);
	
	TRAP(error, iHighscoreView = CSpaceInvadersHighscoreView::
								 NewL(ClientRect(), this, iHighscoreHolder) );
	if ( error )
	{
		Exit();
	}
	iHighscoreView->MakeVisible(EFalse);
	iCurrentView = iStartMenuView;
	
	AddToStackL( iCurrentView );

	// Hiding the status pane
	CEikStatusPane* sp = iEikonEnv->AppUiFactory()->StatusPane();
	sp->MakeVisible(EFalse);

}
开发者ID:Watkinsong,项目名称:s6ace_invaders,代码行数:59,代码来源:SpaceInvadersAppUi.cpp

示例8: StoreTitlePaneL

// -----------------------------------------------------------------------------
// CLandmarksInfoContainer::StoreTitlePaneL
// 
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
void CLandmarksInfoContainer::StoreTitlePaneL()
    {
    CEikStatusPane* statusPane = iAvkonAppUi->StatusPane();
    iTitlePane = (CAknTitlePane*) statusPane->ControlL(
        TUid::Uid(EEikStatusPaneUidTitle));

    iOriginalTitle = iTitlePane->Text()->AllocL();
    }
开发者ID:fedor4ever,项目名称:packaging,代码行数:14,代码来源:LandmarksInfoContainer.cpp

示例9: DoActivateL

	void DoActivateL(
					 const TVwsViewId& aPrevViewId,TUid /*aCustomMessageId*/,
				const TDesC8& /*aCustomMessage*/)
	{
		CALLSTACKITEM_N(_CL("CDynamicSettingsViewImpl"), _CL("DoActivateL"));
		iIsActivated=ETrue;
		MActiveErrorReporter* rep=AppContext().GetActiveErrorReporter();
		if (rep) rep->SetInHandlableEvent(ETrue);
#ifdef __WINS__
		TInt dummy;
		TBreakItem b(GetContext(), dummy);
#endif
		iPreviousViewId = aPrevViewId;

		{
			CEikStatusPane *sp = StatusPane();
			// Fetch pointer to the default navi pane control
			CAknNavigationControlContainer* naviPane = ( CAknNavigationControlContainer * )
				sp->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) );
			naviPane->PushDefaultL(ETrue);
		}

		if (!iContainer)
			{
				iContainer = CBgContainer::NewL( this, ClientRect() );
				
				if (!iListbox) {
					iListbox = new (ELeave) CAknSettingStyleListBox();
					iListbox->ConstructL( iContainer, EAknListBoxSelectionList );
						//iListbox->SetMopParent( iContainer );
					iListbox->SetContainerWindowL( *iContainer );
					iListbox->CreateScrollBarFrameL( ETrue );
					iListbox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, 
																		CEikScrollBarFrame::EAuto );
					iListbox->SetListBoxObserver( this );
					iSettingItemArray = new (ELeave) CAknSettingItemArray( 10, EFalse, 0);
					CTextListBoxModel* model = iListbox->Model();
					model->SetItemTextArray( iSettingItemArray );
					model->SetOwnershipType( ELbmDoesNotOwnItemArray );
				} 
			}
		
		UpdateListBoxL();
		
		iContainer->SetContentL( iListbox );

		AppUi()->AddToStackL( *this, iContainer );
		iContainer->SetRect(ClientRect());
		
		// 	CEikStatusPane* sp=iEikonEnv->AppUiFactory()->StatusPane();
		// 	CAknNavigationControlContainer *np = (CAknNavigationControlContainer *)sp->ControlL(TUid::Uid(EEikStatusPaneUidNavi)); 
		// 	np->PushDefaultL();
	
		iContainer->ActivateL();
	}
开发者ID:flaithbheartaigh,项目名称:jaikuengine-mobile-client,代码行数:55,代码来源:cu_dynamicsettings.cpp

示例10: ConstructL

void CEmTubeVideoUploadDialog::ConstructL()
	{
	CAknForm::ConstructL( R_UPLOAD_VIDEO_DIALOG_MENU_BAR );

	CEikStatusPane* statusPane = iAvkonAppUi->StatusPane();
	iTitlePane = (CAknTitlePane*) statusPane->ControlL( TUid::Uid(EEikStatusPaneUidTitle) );
	iOriginalTitle = iTitlePane->Text()->AllocL();
	HBufC* txt = StringLoader::LoadLC( R_UPLOAD_VIDEO_TXT );
	iTitlePane->SetTextL( *txt );
	CleanupStack::PopAndDestroy( txt );

	}
开发者ID:Yelinson,项目名称:OpenVideoHub,代码行数:12,代码来源:emTubeVideoUploadDialog.cpp

示例11: 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

示例12: ConstructL

// -----------------------------------------------------------------------------
// CNaviScrollTimer::ConstructL()
// 2nd phase constructor.
// -----------------------------------------------------------------------------
//
void CNaviScrollTimer::ConstructL( const TDesC& aNavitext )
    {
    CActiveScheduler::Add( this );
    CTimer::ConstructL(); 
    
    iNaviText = aNavitext.AllocL();
    iCount = iNaviText->Des().Length();
    
    // Get the navigation pane
    CEikStatusPane* sp = CEikonEnv::Static()->AppUiFactory()->StatusPane();
    iNaviPane = static_cast<CAknNavigationControlContainer*>(
        sp->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ) );         
    }
开发者ID:fedor4ever,项目名称:packaging,代码行数:18,代码来源:NaviScrollTimer.cpp

示例13: 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

示例14: 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

示例15: 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


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