static void double_click_func(void *data) { EDITINFO *einf = (EDITINFO *) data; change_check = MP_False; dbl_click(); get_motion_hints(einf->drawwin_id, 0); }
void DockWnd::callProc(unsigned long param) { switch (param){ case WM_RBUTTONUP: QTimer::singleShot(0, this, SLOT(showPopup())); return; case WM_LBUTTONDBLCLK: bNoToggle = true; QTimer::singleShot(0, this, SLOT(dbl_click())); return; case WM_LBUTTONDOWN: if (!bNoToggle) QTimer::singleShot(500, this, SLOT(toggle())); return; } }
void DockWnd::callProc(unsigned long param) { unsigned id; Client *client; switch (param){ case WM_RBUTTONUP: QTimer::singleShot(0, this, SLOT(showPopup())); return; case WM_LBUTTONDBLCLK: bNoToggle = true; QTimer::singleShot(0, this, SLOT(dbl_click())); return; case WM_LBUTTONDOWN: if (!bNoToggle) QTimer::singleShot(500, this, SLOT(toggle())); return; case NIN_BALLOONHIDE: case NIN_BALLOONTIMEOUT: case NIN_BALLOONUSERCLICK: if (m_queue.empty()) return; id = m_queue.front().id; client = m_queue.front().client; m_queue.erase(m_queue.begin()); if (!m_queue.empty()) showBalloon(); if (param == NIN_BALLOONUSERCLICK){ Command cmd; cmd->id = id; cmd->param = client; Event e(EventCommandExec, cmd); e.process(); } return; } }