當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。