本文整理汇总了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();
}
示例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);
}
}
示例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;
}
示例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);
}
示例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);
}
}
}
}
示例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));
}
}
示例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);
}
示例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();
}
示例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();
}
示例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 );
}
示例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
}
示例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 ) ) );
}
示例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);
}
}
示例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;
}
示例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;
}