本文整理汇总了C++中CEikStatusPane::CurrentLayoutResId方法的典型用法代码示例。如果您正苦于以下问题:C++ CEikStatusPane::CurrentLayoutResId方法的具体用法?C++ CEikStatusPane::CurrentLayoutResId怎么用?C++ CEikStatusPane::CurrentLayoutResId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CEikStatusPane
的用法示例。
在下文中一共展示了CEikStatusPane::CurrentLayoutResId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ConstructL
/*
-----------------------------------------------------------------------
-----------------------------------------------------------------------
*/
void CMailBoxContainer::ConstructL(const TRect& aRect)
{
CreateWindowL();
iUtils.GetFileUtils().GetCurrentPath(iCurrPath);
iBgContext = CAknsBasicBackgroundControlContext::NewL(KAknsIIDQsnBgAreaMain,TRect(0,0,aRect.Width(),aRect.Height()), ETrue);
iBgContext->SetParentPos(aRect.iTl);
SetRect(aRect);
ActivateL();
SetMenuL();
CEikStatusPane* sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane();
if(sp)
{
if(sp->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_USUAL)//R_AVKON_STATUS_PANE_LAYOUT_SMALL_WITH_SIGNAL_PANE)
{
sp->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL);
}
}
iSession = CMsvSession::OpenSyncL(*this);
iCurrentFolder = 0;
GetFoldersL();
MakeNavipanelL();
if(iFolderArray.Count() <= iCurrentFolder)
{
iCurrentFolder = 0;
}
if(iCurrentFolder < iFolderArray.Count())
{
if(iFolderArray[iCurrentFolder])
{
ReadMailFolderL(iFolderArray[iCurrentFolder]->iMscId);
}
}
}
示例2: HandlerExitL
/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CMainContainer::HandlerExitL(CYTasksContainer* /*aHandler*/)
{
delete iYTasksContainer;
iYTasksContainer = NULL;
CEikStatusPane* sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane();
if(sp)
{
CAknTitlePane* TitlePane = STATIC_CAST(CAknTitlePane*,sp->ControlL(TUid::Uid(EEikStatusPaneUidTitle)));
TitlePane->SetTextToDefaultL();
CAknContextPane* ContextPane = (CAknContextPane *)sp->ControlL(TUid::Uid(EEikStatusPaneUidContext));
if(ContextPane)
{
ContextPane->SetPictureToDefaultL();
}
if(sp->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_USUAL)
{
sp->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_USUAL);
}
sp->DrawNow();
}
if(iTimeOutTimer)
{
iTimeOutTimer->After(KSplashTimeOut);
}
else
{
if(iGridIsOn)
MakeGridBoxL();
else
MakeListBoxL();
}
SetMenuL();
DrawNow();
}
示例3: ConstructL
//.........这里部分代码省略.........
iLeftButton = CAknButton::NewL(NULL,NULL,NULL,NULL,hjelpper,_L(""),0,0);
iLeftButton->SetContainerWindowL(*this);
if(iMirroRed){
iLeftButton->SetRect(iRightBtOut);
}else{
iLeftButton->SetRect(iLeftBtOut);
}
iLeftButton->SetObserver(this);
iLeftButton->SetIconScaleMode( EAspectRatioPreserved );
CGulIcon* lefticcon = GetButtonIconL(KAknsIIDQgnIndiButtonAnswer,TSize(50,50));
CAknButtonState* state = iLeftButton->State(iLeftButton->StateIndex());
state->SetIcon(lefticcon);
iLeftButton->SetTextFont(iButtonFont);
iLeftButton->SetTextAndIconAlignment( CAknButton::EIconOverText );
iLeftButton->SetTextHorizontalAlignment( CGraphicsContext::ECenter );
iLeftButton->MakeVisible(ETrue);
iLeftButton->ActivateL();
StringLoader::Load(hjelpper,R_SH_STR_SILENSE);
iRightButton = CAknButton::NewL(NULL,NULL,NULL,NULL,hjelpper,_L(""),0,0);//KAknButtonStateHasLatchedFrame
iRightButton->SetContainerWindowL(*this);
if(iMirroRed){
iRightButton->SetRect(iLeftBtOut);
}else{
iRightButton->SetRect(iRightBtOut);
}
iRightButton->SetObserver(this);
CGulIcon* righticcon = GetButtonIconL(KAknsIIDQgnIndiButtonSilence,TSize(50,50));
CAknButtonState* state2 = iRightButton->State(iRightButton->StateIndex());
state2->SetIcon(righticcon);
iRightButton->SetIconScaleMode( EAspectRatioPreserved );
iRightButton->SetTextFont(iButtonFont);
iRightButton->SetTextAndIconAlignment( CAknButton::EIconOverText );
iRightButton->SetTextHorizontalAlignment( CGraphicsContext::ECenter );
iRightButton->MakeVisible(ETrue);
iRightButton->ActivateL();
TFindFile PrivFolder(CCoeEnv::Static()->FsSession());
if(KErrNone == PrivFolder.FindByDir(KMyIconFile, KNullDesC))// finds the drive
{
iBluePhone = GetPhoneIconL(PrivFolder.File(),0,1,TSize(20,25));
}
iGreenPhone = GetPhoneIconL(_L("z:\\resource\\apps\\callstatus.mif"),16384, 16385,TSize(50,50));
iYellowPhone = GetPhoneIconL(_L("z:\\resource\\apps\\callstatus.mif"),16396,16397,TSize(50,50));
#else
if(!iTextFont){
TFontSpec spec2 = AknLayoutUtils::FontFromId(EAknLogicalFontPrimaryFont)->FontSpecInTwips();
spec2.iHeight = ((spec2.iHeight * 85) / 100);
CEikonEnv::Static()->ScreenDevice()->GetNearestFontInTwips(iTextFont, spec2);
}
if ( iBgContext )
{
iBgContext->SetRect(Rect());
if ( &Window() )
{
iBgContext->SetParentPos( PositionRelativeToScreen() );
}
}
iGreenPhone = GetPhoneIconL(_L("z:\\resource\\apps\\callstatus.mif"),16384, 16385,TSize(40,40));
iYellowPhone = GetPhoneIconL(_L("z:\\resource\\apps\\callstatus.mif"),16396,16397,TSize(40,40));
#endif
ActivateL();
CEikStatusPane* sp = ((CAknAppUi*)iEikonEnv->EikAppUi())->StatusPane();
if(sp)
{
if(sp->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_IDLE)//R_AVKON_STATUS_PANE_LAYOUT_SMALL_WITH_SIGNAL_PANE)
{
sp->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_IDLE);
}
}
iGetOperatorName = CGetOperatorName::NewL(*this);
//iHWRMLight = CHWRMLight::NewL();
iHWRMVibra = CHWRMVibra::NewL(this);
if(iDebugFile.SubSessionHandle())
{
iDebugFile.Write(_L8("And running\n\r"));
}
}