CLoadDraftView::~CLoadDraftView() { DoDeactivate(); //add your code here ... }
CNormalSettingView::~CNormalSettingView() { DoDeactivate(); //add your code here ... }
CMainScreenView::~CMainScreenView() { DoDeactivate(); //add your code here ... }
void Ctrl::KillFocusWnd() { GuiLock __; // notification, don't set host platform focus here LLOG("KillFocusWnd " << Name()); if(this == ~focusCtrlWnd) { Ptr<Ctrl> pfocusCtrl = focusCtrl; DoDeactivate(pfocusCtrl, NULL); focusCtrl = focusCtrlWnd = NULL; DoKillFocus(pfocusCtrl, NULL); } }
void CUploadViewImpl::HandleCommandL(TInt aCommand) { CALLSTACKITEM_N(_CL("CUploadViewImpl"), _CL("HandleCommandL")); iNext=false; MUploadCallBack* cb=iCallBack; iCallBack=0; if (cb) { switch(aCommand) { case Econtext_logCmdSoftkeyUpload: { TBool del=ETrue; Settings().GetSettingL(SETTING_DELETE_UPLOADED, del); MBBData* buf=MakePacketLC(); iContainer->CloseFile(); cb->Back(true, del, buf); Reporting().ShowGlobalNote(EAknGlobalConfirmationNote, _L("Queued for Upload")); CleanupStack::PopAndDestroy(); } break; case Econtext_logCmdSoftkeyCancel: iContainer->CloseFile(); cb->Back(false, false, 0); Reporting().ShowGlobalNote(EAknGlobalConfirmationNote, _L("Moved to NotShared")); break; default: return; break; } } if (!iNext && iCallBacks->iCount > 0) { iCallBack=0; TCallBackItem i=iCallBacks->Pop(); Prompt(i.iFileName, i.iCallBack); } if (!iNext) { // if no next, just display previous view iCallBack=0; TUid statusv={1}; AppUi()->ActivateLocalViewL(statusv); //CSwitchBack::NewL(iPrevView); *iNextViewId=iPrevView; } else { //if iNext -> save callback, remove view, reload it, faking previous view id MUploadCallBack* cb=iCallBack; iCallBack=0; DoDeactivate(); TUid dummy={0}; iCallBack=cb; DoActivateL(iPrevView, dummy, _L8("")); } }
void Ctrl::ActivateWnd() { GuiLock __; // notification, don't set physical focus here LLOG("ActivateWnd " << Name()); Ptr<Ctrl> nfocusCtrl = this; Ptr<Ctrl> pfocusCtrl = focusCtrl; LLOG("About to set focus: " << UPP::Name(nfocusCtrl)); DoDeactivate(pfocusCtrl, nfocusCtrl); focusCtrl = nfocusCtrl; focusCtrlWnd = this; DoKillFocus(pfocusCtrl, nfocusCtrl); DoSetFocus(pfocusCtrl, nfocusCtrl, true); LLOG("Focus: " << UPP::Name(focusCtrl) << " FocusWnd:" << UPP::Name(focusCtrlWnd)); }
void CWindow::Deactivate() { //保证只有激活过才能冻结 if(iIsActivated) { iIsActivated = EFalse; delete iBackgroundBmp; iBackgroundBmp = NULL; delete iControlPaneBmp; iControlPaneBmp = NULL; if(iShowControlText) { RemoveControl(iControlText); delete iControlText; iControlText = NULL; } DeactivateAllControl(); DoDeactivate(); } }
bool Ctrl::SetFocus0(bool activate) { GuiLock __; USRLOG(" SETFOCUS " << Desc(this)); LLOG("Ctrl::SetFocus " << Desc(this)); LLOG("focusCtrlWnd " << UPP::Name(focusCtrlWnd)); LLOG("Ctrl::SetFocus0 -> deferredSetFocus = NULL; was: " << UPP::Name(defferedSetFocus)); defferedSetFocus = NULL; if(focusCtrl == this) return true; if(!IsOpen() || !IsEnabled() || !IsVisible()) return false; Ptr<Ctrl> pfocusCtrl = focusCtrl; Ptr<Ctrl> topwindow = GetTopWindow(); Ptr<Ctrl> topctrl = GetTopCtrl(); Ptr<Ctrl> _this = this; if(!topwindow) topwindow = topctrl; LLOG("SetFocus -> SetWndFocus: topwindow = " << UPP::Name(topwindow) << ", focusCtrlWnd = " << UPP::Name(focusCtrlWnd)); if(!topwindow->HasWndFocus() && !topwindow->SetWndFocus()) return false;// cxl 31.1.2004 #ifdef PLATFORM_OSX11 // ugly temporary hack - popups not behaving right in MacOS // before 2012-9-2 was #ifdef GUI_X11, but that caused issues in most linux distros (cxl) // as parent window of popup always manages focus/keyboard for popup in X11 if(activate) // Dolik/fudadmin 2011-5-1 topctrl->SetWndForeground(); #else topwindow->SetWndForeground(); // cxl 2007-4-27 #endif LLOG("SetFocus -> focusCtrl = this: " << FormatIntHex(this) << ", _this = " << FormatIntHex(~_this) << ", " << UPP::Name(_this)); focusCtrl = _this; focusCtrlWnd = topwindow; DoKillFocus(pfocusCtrl, _this); LLOG("SetFocus 2"); DoDeactivate(pfocusCtrl, _this); DoSetFocus(pfocusCtrl, _this, activate); if(topwindow) lastActiveWnd = topwindow; return true; }
CEditorAppView::~CEditorAppView() { delete iHeader; DoDeactivate(); }
CThemeChangeAppView::~CThemeChangeAppView() { DoDeactivate(); }
CHelpView::~CHelpView() { DoDeactivate(); }
// -------------------------------------------------------------------------- // CMSFillBrowseView::~CMSFillBrowseView() // -------------------------------------------------------------------------- // CMSFillBrowseView::~CMSFillBrowseView() { LOG(_L("[MediaServant]\t CMSFillBrowseView::~CMSFillBrowseView")); DoDeactivate(); }
FX_BOOL CFWL_NoteDriver::DispatchMessage(CFWL_Message* pMessage, IFWL_Widget* pMessageForm) { FX_BOOL bRet = FALSE; switch (pMessage->GetClassID()) { case FWL_MSGHASH_Activate: { bRet = DoActivate(static_cast<CFWL_MsgActivate*>(pMessage), pMessageForm); break; } case FWL_MSGHASH_Deactivate: { bRet = DoDeactivate(static_cast<CFWL_MsgDeactivate*>(pMessage), pMessageForm); break; } case FWL_MSGHASH_SetFocus: { bRet = DoSetFocus(static_cast<CFWL_MsgSetFocus*>(pMessage), pMessageForm); break; } case FWL_MSGHASH_KillFocus: { bRet = DoKillFocus(static_cast<CFWL_MsgKillFocus*>(pMessage), pMessageForm); break; } case FWL_MSGHASH_Key: { bRet = DoKey(static_cast<CFWL_MsgKey*>(pMessage), pMessageForm); break; } case FWL_MSGHASH_Mouse: { bRet = DoMouse(static_cast<CFWL_MsgMouse*>(pMessage), pMessageForm); break; } case FWL_MSGHASH_MouseWheel: { bRet = DoWheel(static_cast<CFWL_MsgMouseWheel*>(pMessage), pMessageForm); break; } case FWL_MSGHASH_Size: { bRet = DoSize(static_cast<CFWL_MsgSize*>(pMessage)); break; } case FWL_MSGHASH_Cursor: { bRet = TRUE; break; } case FWL_MSGHASH_WindowMove: { bRet = DoWindowMove(static_cast<CFWL_MsgWindowMove*>(pMessage), pMessageForm); break; } case FWL_MSGHASH_DropFiles: { bRet = DoDragFiles(static_cast<CFWL_MsgDropFiles*>(pMessage), pMessageForm); break; } default: { bRet = TRUE; break; } } if (bRet) { IFWL_WidgetDelegate* pDelegate = pMessage->m_pDstTarget->SetDelegate(NULL); if (pDelegate) { pDelegate->OnProcessMessage(pMessage); } } return bRet; }