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


C++ AppUi函数代码示例

本文整理汇总了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);
			}
	}
开发者ID:flaithbheartaigh,项目名称:jaikuengine-mobile-client,代码行数:34,代码来源:cu_dynamicsettings.cpp

示例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);	
        }
    }
开发者ID:fedor4ever,项目名称:packaging,代码行数:30,代码来源:noughtsandcrossessettingsview.cpp

示例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;
        }
    }
}
开发者ID:Nokia700,项目名称:SymTorrent,代码行数:31,代码来源:SymTorrentIAPSelectView.cpp

示例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;
		}
	}
开发者ID:cdaffara,项目名称:symbiandump-ossapps,代码行数:25,代码来源:directprintsettingview.cpp

示例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]
	
	}
开发者ID:bohwaz,项目名称:s60voip,代码行数:38,代码来源:symbian_ua_guiSettingItemListView.cpp

示例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();
}
开发者ID:Nokia700,项目名称:SymTorrent,代码行数:34,代码来源:SymTorrentStatusView.cpp

示例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 );
   }
}
开发者ID:VLjs,项目名称:Wayfinder-S60-Navigator,代码行数:30,代码来源:SplashView.cpp

示例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]

}
开发者ID:max3903,项目名称:SFLphone,代码行数:32,代码来源:symbian_ua_guiSettingItemListView.cpp

示例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");
	}
开发者ID:cdaffara,项目名称:symbiandump-ossapps,代码行数:57,代码来源:directprintpreviewview.cpp

示例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);
        }
    }
开发者ID:dai108tgg,项目名称:ttgpslogger,代码行数:12,代码来源:TTGPSLoggerViewerView.cpp

示例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;
    }
开发者ID:imrekel,项目名称:Symella,代码行数:18,代码来源:SymellaSettingsView.cpp

示例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();
		}
	}
}
开发者ID:Persepoliss,项目名称:symbian-client,代码行数:13,代码来源:BuddycloudAccountSettingsView.cpp

示例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;
        }
    }
开发者ID:dai108tgg,项目名称:ttgpslogger,代码行数:13,代码来源:TTGPSLoggerViewerView.cpp

示例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;
        }
    }
开发者ID:dai108tgg,项目名称:ttgpslogger,代码行数:50,代码来源:TTGPSLoggerViewerView.cpp

示例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 );
        }
   }
开发者ID:Nokia700,项目名称:SymTorrent,代码行数:19,代码来源:SymTorrentDetailsView.cpp


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