void GGDIView::ClearView(bool bSynchronize) { LOG_LEVEL4("ClearView()"); m_rStrListJSCalls.clear(); static QString const qksJSCall1("if(SectionLoadOrderControler){SectionLoadOrderControler.Clear();}"); static QString const qksJSCall2("$('<div id=\"screen\" style=\"position: absolute; top: 0px; left 0px; width: 0px; height: 0px; overflow: hidden;\"/>').appendTo('body');"); m_rStrListJSCalls << QString(qksJSCall1); m_rStrListJSCalls << QString(qksJSCall2); SetViewContent(bSynchronize, m_rStrListJSCalls); }
// ---------------------------------------------------------------------------- // Name : MouseMessage() // Desc : // ---------------------------------------------------------------------------- WMSG_RESULT CUIHelp::MouseMessage( MSG *pMsg ) { WMSG_RESULT wmsgResult; // Title bar static BOOL bTitleBarClick = FALSE; // Mouse point static int nOldX, nOldY; int nX = LOWORD( pMsg->lParam ); int nY = HIWORD( pMsg->lParam ); if(!m_bVisible) return WMSG_FAIL; // Mouse message switch( pMsg->message ) { case WM_MOUSEMOVE: { if( IsInside( nX, nY ) ) CUIManager::getSingleton()->SetMouseCursorInsideUIs(); if( IsInsideRect(nX,nY,m_rcRightView)) m_bVisibleImg = TRUE; else { m_bVisibleImg = FALSE; m_bSlideImgX = 0; } // Move web board if( bTitleBarClick && ( pMsg->wParam & MK_LBUTTON ) ) { int ndX = nX - nOldX; int ndY = nY - nOldY; nOldX = nX; nOldY = nY; Move( ndX, ndY ); return WMSG_SUCCESS; } // Close button else if( m_btnClose.MouseMessage( pMsg ) != WMSG_FAIL ) return WMSG_SUCCESS; // List box else if( m_lbListContent.MouseMessage( pMsg ) != WMSG_FAIL ) return WMSG_SUCCESS; // List box else if( m_lbReadContent.MouseMessage( pMsg ) != WMSG_FAIL ) return WMSG_SUCCESS; } break; case WM_LBUTTONDOWN: { if( IsInside( nX, nY ) ) { SetFocus ( TRUE ); CUIManager::getSingleton()->RearrangeOrder( UI_HELP, TRUE ); nOldX = nX; nOldY = nY; // Close button if( m_btnClose.MouseMessage( pMsg ) != WMSG_FAIL ) { // Nothing } // Title bar else if( IsInsideRect( nX, nY, m_rcTitle ) ) { bTitleBarClick = TRUE; } // List box if( ( wmsgResult = m_lbListContent.MouseMessage( pMsg ) ) != WMSG_FAIL ) { if( wmsgResult == WMSG_COMMAND ) { SetViewContent( m_lbListContent.GetCurSel() ); SetListContent( m_lbListContent.GetCurSel() ); } } // List box else if( ( wmsgResult = m_lbReadContent.MouseMessage( pMsg ) ) != WMSG_FAIL ) { // Do Nothing } return WMSG_SUCCESS; } } break; case WM_LBUTTONUP: { CUIManager* pUIManager = CUIManager::getSingleton(); // If holding button doesn't exist if (pUIManager->GetDragIcon() == NULL) { // Title bar bTitleBarClick = FALSE; // If teleport isn't focused if( !IsFocused() ) return WMSG_FAIL; // Close button if( ( wmsgResult = m_btnClose.MouseMessage( pMsg ) ) != WMSG_FAIL ) { if( wmsgResult == WMSG_COMMAND ) CloseHelp(); return WMSG_SUCCESS; } // List box else if( m_lbListContent.MouseMessage( pMsg ) != WMSG_FAIL ) return WMSG_SUCCESS; // List box else if( m_lbReadContent.MouseMessage( pMsg ) != WMSG_FAIL ) return WMSG_SUCCESS; } // If holding button exists else { if( IsInside( nX, nY ) ) { // Reset holding button pUIManager->ResetHoldBtn(); return WMSG_SUCCESS; } } } break; case WM_LBUTTONDBLCLK: { if( IsInside( nX, nY ) ) { // DO NOTTHING return WMSG_SUCCESS; } } break; case WM_MOUSEWHEEL: { if( IsInside( nX, nY ) ) { // List box of read type if( m_lbListContent.MouseMessage( pMsg ) != WMSG_FAIL ) return WMSG_SUCCESS; // List box of read type if( m_lbReadContent.MouseMessage( pMsg ) != WMSG_FAIL ) return WMSG_SUCCESS; } } break; } return WMSG_FAIL; }