void FileTransferModule_Impl::MKOForFileTransferModuleCallback(const std::string& keyId, MKO_TUPLE_PARAM mkoParam) { if (module::KEY_FILETRANSFER_REQUEST == keyId || module::KEY_FILETRANSFER_SENDFILE == keyId) { if (m_pFileTransferDialog) { std::string& sFileId = std::get<MKO_STRING>(mkoParam); m_pFileTransferDialog->AddTransderItemToList(sFileId); m_pFileTransferDialog->BringToTop(); } else { showFileTransferDialog(); } } }
bool ViewerWindow::onCommand(WPARAM wParam, LPARAM lParam) { if (HIWORD(wParam) == 1) { int transl = translateAccelToTB(LOWORD(wParam)); if (transl != -1) { wParam = transl; } } switch (wParam) { case IDS_ABOUT_VIEWER: onAbout(); return true; case IDS_TB_CONNOPTIONS: dialogConnectionOptions(); return true; case IDS_TB_CONNINFO: dialogConnectionInfo(); return true; case IDS_TB_PROCESSINFO: dialogProcessInfo(); return true; case IDS_TB_PAUSE: commandPause(); return true; case IDS_TB_REFRESH: m_viewerCore->refreshFrameBuffer(); return true; case IDS_TB_CTRLALTDEL: commandCtrlAltDel(); return true; case IDS_TB_CTRLESC: commandCtrlEsc(); return true; case IDS_TB_CTRL: commandCtrl(); return true; case IDS_TB_ALT: commandAlt(); return true; case IDS_TB_TOOLBAR: commandToolBar(); return true; case IDS_TB_TRANSFER: showFileTransferDialog(); return true; case IDS_TB_NEWCONNECTION: commandNewConnection(); return true; case IDS_TB_SAVESESSION: commandSaveSession(); return true; case IDS_TB_SCALEIN: commandScaleIn(); return true; case IDS_TB_SCALEOUT: commandScaleOut(); return true; case IDS_TB_SCALE100: commandScale100(); return true; case IDS_TB_SCALEAUTO: commandScaleAuto(); return true; case IDS_TB_FULLSCREEN: switchFullScreenMode(); return true; case IDS_TB_CONFIGURATION: dialogConfiguration(); return true; } return false; }