本文整理匯總了C++中AppUi函數的典型用法代碼示例。如果您正苦於以下問題:C++ AppUi函數的具體用法?C++ AppUi怎麽用?C++ AppUi使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了AppUi函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: HandleCommandL
void HandleCommandL(TInt aCommand)
{
CALLSTACKITEM_N(_CL("CDynamicSettingsViewImpl"), _CL("HandleCommandL"));
switch ( aCommand )
{
case EContextUICmdSettingsChange:
{
ShowSettingPageL( ETrue );
}
break;
case EContextUICmdResetUiState1:
{
Settings().WriteSettingL( SETTING_DONT_DOUBLE_CONFIRM_DELETES, 0 );
Settings().WriteSettingL( SETTING_SHOW_WARNING_ON_BACK, 1 );
}
break;
case EContextUICmdSettingsSave:
StoreSettingsL();
break;
case EAknSoftkeyOk:
case EAknSoftkeyDone:
case EAknSoftkeyBack:
StoreSettingsL();
if (iPreviousLocalViewId==TUid::Uid(0)) {
AppUi()->ActivateViewL(iPreviousViewId);
} else {
AppUi()->ActivateLocalViewL(iPreviousLocalViewId);
}
break;
default:
AppUi()->HandleCommandL(aCommand);
}
}
示例2: switch
// -----------------------------------------------------------------------------
// CAknExGridView::HandleCommandL()
// Handles the commands.
// -----------------------------------------------------------------------------
//
void CNoughtsAndCrossesSettingsView::HandleCommandL (TInt aCommand)
{
switch (aCommand)
{
case EAknSoftkeyOk:
{
CNoughtsAndCrossesDocument* document = static_cast<
CNoughtsAndCrossesDocument*> (AppUi()->Document());
iListBox->StoreSettingsL();
document->SaveSettingsAndInformationL();
document->NewGame();
AppUi()->ActivateLocalViewL (TUid::Uid (EMultiViewsPlayGameId));
break;
}
case EAknSoftkeyCancel:
{
AppUi()->ActivateLocalViewL (TUid::Uid (EMultiViewsPlayGameId));
break;
}
default:
AppUi()->HandleCommandL (aCommand);
}
}
示例3: switch
// ---------------------------------------------------------
// CSymTorrentIAPSelectView::HandleCommandL(TInt aCommand)
// takes care of view command handling
// ---------------------------------------------------------
//
void CSymTorrentIAPSelectView::HandleCommandL(TInt aCommand)
{
switch ( aCommand )
{
case EAknSoftkeySelect:
case EAknSoftkeyOk:
{
if (iContainer->CurrentItemIndex() >= 0)
DOCUMENT->SetIAPIDL(iIAPIDs[iContainer->CurrentItemIndex()]);
AppUi()->ActivateLocalViewL(KMainViewId);
break;
}
case EAknSoftkeyCancel:
case EAknSoftkeyBack:
{
AppUi()->ActivateLocalViewL(KMainViewId);
break;
}
default:
{
break;
}
}
}
示例4: switch
void CDirectPrintPrinterSettingView::HandleCommandL(TInt aCommand)
{
switch (aCommand)
{
case EAknSoftkeyBack:
{
iListBox->StoreSettingsL();
StoreDriverInfoL();
StoreTypeInfoL();
StoreBearerInfoL();
StoreExtendSettingsL();
WriteDataL(); // write to model
GetBearerMgr()->SetJobSettings(); // write to bearer
GetModel().SetIsNewData(EFalse);
AppUi()->HandleCommandL(EDirectPrintCmdIdPrinterSettingViewBack);
}
break;
default:
{
AppUi()->HandleCommandL(aCommand);
}
break;
}
}
示例5: SetupStatusPaneL
/**
* Handles user actions during activation of the view,
* such as initializing the content.
*/
void Csymbian_ua_guiSettingItemListView::DoActivateL(
const TVwsViewId& aPrevViewId,
TUid /*aCustomMessageId*/,
const TDesC8& /*aCustomMessage*/ )
{
previousView = aPrevViewId.iViewUid;
SetupStatusPaneL();
CEikButtonGroupContainer* cba = AppUi()->Cba();
if ( cba != NULL )
{
cba->MakeVisible( EFalse );
}
if ( iSymbian_ua_guiSettingItemList == NULL )
{
iSettings = TSymbian_ua_guiSettingItemListSettings::NewL();
CVoIPDocument* doc = static_cast<CVoIPDocument*>(CEikonEnv::Static()->EikAppUi()->Document());
doc->LoadSettingValuesL(*iSettings);
iSymbian_ua_guiSettingItemList = new ( ELeave ) CSymbian_ua_guiSettingItemList( *iSettings, this );
iSymbian_ua_guiSettingItemList->SetMopParent( this );
iSymbian_ua_guiSettingItemList->ConstructFromResourceL( R_SYMBIAN_UA_GUI_SETTING_ITEM_LIST_SYMBIAN_UA_GUI_SETTING_ITEM_LIST );
iSymbian_ua_guiSettingItemList->ActivateL();
//iSymbian_ua_guiSettingItemList->LoadSettingValuesL();
iSymbian_ua_guiSettingItemList->LoadSettingsL();
AppUi()->AddToStackL( *this, iSymbian_ua_guiSettingItemList );
}
// ]]] end generated region [Generated Contents]
}
示例6: new
// ---------------------------------------------------------
// CSymTorrentStatusView::DoActivateL(...)
//
// ---------------------------------------------------------
//
void CSymTorrentStatusView::DoActivateL(
const TVwsViewId& /*aPrevViewId*/,TUid /*aCustomMessageId*/,
const TDesC8& /*aCustomMessage*/)
{
static_cast<CSymTorrentAppUi*>(AppUi())->SetCurrentViewId(ESymTorrentStatusView);
if (!iStatusContainer)
{
iStatusContainer = new (ELeave) CSymTorrentStatusContainer;
iStatusContainer->SetMopParent(this);
iStatusContainer->ConstructL( ClientRect(), iAppUi, iTorrentMgr );
AppUi()->AddToStackL( *this, iStatusContainer );
if (PREFERENCES->RightSoftkeyMode() == ESTSoftkeyHide)
{
Cba()->SetCommandL(2, ESymTorrentCmdHide, KLitHideButtonText);
Cba()->DrawDeferred();
}
else
{
Cba()->SetCommandL(2, EAknSoftkeyExit, KLitExitButtonText);
Cba()->DrawDeferred();
}
iTorrentMgr->SetEngineStateObserverL(iStatusContainer);
}
static_cast<CSymTorrentAppUi*>(AppUi())->TitlePane()->SetTextToDefaultL();
}
示例7: switch
// ---------------------------------------------------------
// CSplashView::HandleCommandL(TInt aCommand)
// ?implementation_description
// ---------------------------------------------------------
//
void CSplashView::HandleCommandL(TInt aCommand)
{
switch ( aCommand )
{
case EAknSoftkeyOk:
{
AppUi()->HandleCommandL( EWayFinderSoftkeyStart);
/* iWayFinderUI->iIniFile->shownNewsChecksum = */
/* iWayFinderUI->iIniFile->latestNewsChecksum; */
/* iWayFinderUI->iIniFile->Save(); */
iWayFinderUI->iIniFile->SetShownNewsChecksum();
}
break;
/* case EWayFinderSoftKeyUpgrade: */
/* { */
/* if ( iWayFinderUI->ShowUpgradeInfoCba()) { */
/* iShowUpgrade = ETrue; */
/* AppUi()->HandleCommandL( EWayFinderSoftkeyStart ); */
/* } */
/* } */
break;
default:
AppUi()->HandleCommandL( aCommand );
}
}
示例8: SetupStatusPaneL
/**
* Handles user actions during activation of the view,
* such as initializing the content.
*/
void Csymbian_ua_guiSettingItemListView::DoActivateL (
const TVwsViewId& /*aPrevViewId*/,
TUid /*aCustomMessageId*/,
const TDesC8& /*aCustomMessage*/)
{
// [[[ begin generated region: do not modify [Generated Contents]
SetupStatusPaneL();
CEikButtonGroupContainer* cba = AppUi()->Cba();
if (cba != NULL) {
cba->MakeVisible (EFalse);
}
if (iSymbian_ua_guiSettingItemList == NULL) {
iSettings = TSymbian_ua_guiSettingItemListSettings::NewL();
iSymbian_ua_guiSettingItemList = new (ELeave) CSymbian_ua_guiSettingItemList (*iSettings, this);
iSymbian_ua_guiSettingItemList->SetMopParent (this);
iSymbian_ua_guiSettingItemList->ConstructFromResourceL (R_SYMBIAN_UA_GUI_SETTING_ITEM_LIST_SYMBIAN_UA_GUI_SETTING_ITEM_LIST);
iSymbian_ua_guiSettingItemList->ActivateL();
iSymbian_ua_guiSettingItemList->LoadSettingValuesL();
iSymbian_ua_guiSettingItemList->LoadSettingsL();
AppUi()->AddToStackL (*this, iSymbian_ua_guiSettingItemList);
}
// ]]] end generated region [Generated Contents]
}
示例9: LOG
void CDirectPrintPreviewView::DoActivateL(const TVwsViewId& /*aPrevViewId*/, TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/)
{
LOG("CDirectPrintPreviewView::DoActivateL BEGIN");
CAknToolbar* toolbar = AppUi()->CurrentFixedToolbar();
toolbar->SetToolbarObserver(this);
// set the title pane
SetActiveTitleL(R_DIRECTPRINT_PREVIEW_TITLE);
if (!iPrevCtrl)
{
CDirectPrintAppAppUi* appui = static_cast<CDirectPrintAppAppUi*>( AppUi() );
CDirectPrintEngine* engine = appui->Engine();
const TInt KPanelGutter=5;
const TInt KShadowWidth=2;
const TInt KLabelFontHeight=12;
TFontSpec normalFontSpec = CEikonEnv::Static()->NormalFont()->FontSpecInTwips();
TFontSpec fontSpec(normalFontSpec);
fontSpec.iHeight = KLabelFontHeight;
iPrintPreviewFormat.iLabelFontSpecInPixels=fontSpec;
iPrintPreviewFormat.iMinPanelGutterInPixels=TSize(KPanelGutter,KPanelGutter);
iPrintPreviewFormat.iPanelShadowWidthInPixels=KShadowWidth;
iPrintPreviewFormat.iPanelShadowColor=KRgbDarkGray;
iPrintPreviewFormat.iPanelMarginColor=KRgbGray;
iPrintPreviewFormat.iLabelOffsetInPixels=5;
iPrevCtrl = CDirectPrintPreviewControl::NewL(NULL);
iPrevCtrl->SetMopParent(this);
//iNumPagesInDoc = engine->MaxPageNum();
iNumPagesInDoc = 3;
iFirstPageToDisplay = 1;
iNumPagesToView = 1;
iNumBands = 2;
iMarginState = CPrintPreviewImage::EShowMargins;
engine->StartPrintPreviewL();
iPrevCtrl->InitializeFormat(*(engine->PrintSetup()),
*(engine->PageRegionPrinter()),
iPrintPreviewFormat,
iNumPagesInDoc,
iFirstPageToDisplay,
iNumPagesToView,
iMarginState);
iPrevCtrl->ActivateL();
iPrevCtrl->SetNumBands(2);
}
iPrevCtrl->SetRect(ClientRect());
iPrevCtrl->SetDrawFlag(ETrue);
iPrevCtrl->MakeVisible(ETrue);
iPrevCtrl->DrawDeferred();
AppUi()->AddToStackL(*this, iPrevCtrl);
ChangeVisibleState();
LOG("CDirectPrintPreviewView::DoActivateL END");
}
示例10: ClientRect
void CTTGPSLoggerViewerView::DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage)
{
if (!iContainer)
{
iContainer = CTTGPSLoggerViewerContainer::NewL(this, ClientRect());
if (static_cast<CTTGPSLoggerAppUi*>(AppUi())->Engine())
{
static_cast<CTTGPSLoggerAppUi*>(AppUi())->Engine()->AddPositionObserver(iContainer);
}
AppUi()->AddToStackL(iContainer);
}
}
示例11: AppUi
// ---------------------------------------------------------
// CSymellaSettingsView::HandleCommandL(TInt aCommand)
// ?implementation_description
// ---------------------------------------------------------
//
void CSymellaSettingsView::DoDeactivate()
{
if ( iContainer )
{
AppUi()->RemoveFromViewStack( *this, iContainer );
if (!AppUi()->View(KWebCacheViewId)->IsForeground())
static_cast<CSymellaAppUi*>(AppUi())->ShowTabGroupL();
}
delete iContainer;
iContainer = NULL;
}
示例12: AppUi
void CBuddycloudAccountSettingsView::HandleCommandL(TInt aCommand) {
if(aCommand == EAknSoftkeyDone) {
AppUi()->ActivateLocalViewL(KFollowingViewId);
}
else if(aCommand == EMenuHelpCommand) {
AppUi()->HandleCommandL(aCommand);
}
else if(aCommand == EMenuEditItemCommand) {
if(iList) {
iList->EditCurrentItemL();
}
}
}
示例13: AppUi
void CTTGPSLoggerViewerView::DoDeactivate()
{
if (iContainer)
{
AppUi()->RemoveFromStack(iContainer);
if (static_cast<CTTGPSLoggerAppUi*>(AppUi())->Engine())
{
static_cast<CTTGPSLoggerAppUi*>(AppUi())->Engine()->DeletePositionObserver(iContainer);
}
delete iContainer;
iContainer = NULL;
}
}
示例14: switch
void CTTGPSLoggerViewerView::HandleCommandL(TInt aCommand)
{
switch (aCommand)
{
case EEikCmdExit:
case EAknSoftkeyExit:
{
AppUi()->Exit();
break;
}
case EAknSoftkeyBack:
{
TTGPSLoggerCommon::SetTextStatusPaneL(R_TTGP_TBUF32_STATUSPANE_TITLE_MAIN);
AppUi()->ActivateLocalViewL(TUid::Uid(ETTGPSLoggerViewMainId));
break;
}
case ETTGPSLoggerCBACopy:
case ETTGPSLoggerTBViewerCopy:
{
if (iContainer)
{
iContainer->CopyL();
}
break;
}
case ETTGPSLoggerCBAReload:
{
if (iContainer)
{
iContainer->ReloadL();
}
break;
}
case ETTGPSLoggerTBViewerNMEASt:
{
TTGPSLoggerCommon::SetTextStatusPaneL(R_TTGP_TBUF32_STATUSPANE_TITLE_NMEAVIEWER);
static_cast<CTTGPSLoggerAppUi*>(CEikonEnv::Static()->EikAppUi())->ActivateLocalViewL(TUid::Uid(ETTGPSLoggerViewNMEAViewerId));
break;
}
case ETTGPSLoggerTBViewerGPSSt:
{
TTGPSLoggerCommon::SetTextStatusPaneL(R_TTGP_TBUF32_STATUSPANE_TITLE_GPSSTATUS);
static_cast<CTTGPSLoggerAppUi*>(CEikonEnv::Static()->EikAppUi())->ActivateLocalViewL(TUid::Uid(ETTGPSLoggerViewGPSStatusId));
break;
}
default:
Panic(ETTGPSLoggerUi);
break;
}
}
示例15: new
// ---------------------------------------------------------
// CSymTorrentDetailsView::DoActivateL(...)
//
// ---------------------------------------------------------
//
void CSymTorrentDetailsView::DoActivateL(
const TVwsViewId& /*aPrevViewId*/,TUid /*aCustomMessageId*/,
const TDesC8& /*aCustomMessage*/)
{
static_cast<CSymTorrentAppUi*>(AppUi())->SetCurrentViewId(ESymTorrentDetailsView);
if (!iDetailsContainer)
{
iDetailsContainer = new (ELeave) CSymTorrentDetailsContainer;
iDetailsContainer->SetMopParent(this);
iDetailsContainer->ConstructL( ClientRect(), iAppUi, iTorrentMgr );
AppUi()->AddToStackL( *this, iDetailsContainer );
}
}