void HMessageBox::presentRootLayer(bool inQueue, bool inUI) { // CCLOG("MessageBox -- present: 0x%x: %s", this, m_pMessage ? m_pMessage->getCString() : ""); super::presentRootLayer(); showAction(m_pActionNode); return; }
void DelayedToolTip::quickShow(TaskItem *item) { ToolTipBase::quickShow(item); m_action = NoAction; m_newHoverItem = NULL; if (m_delayTimer->isActive()) { m_delayTimer->stop(); } showAction(false); }
void DlgRuleEditorFilterActionPage::update(Subject *subject) { SfsDefaultFilterPolicy *sfs; if (subject == filterPolicy_) { /* This is our policy. */ showAction(); showLog(); } if ((subject == defaultPathPicker) && (dynamic_cast<SfsDefaultFilterPolicy*>(filterPolicy_))) { sfs = dynamic_cast<SfsDefaultFilterPolicy*>(filterPolicy_); sfs->setPath(defaultPathPicker->getFileName()); } }
void DelayedToolTip::timeout() { switch (m_action) { case ShowAction: if (!m_newHoverItem.isNull() && !(m_shown && m_hoverItem == m_newHoverItem)) { bool wasShown = m_shown; if (!m_hoverItem.isNull()) { m_hoverItem->confirmLeave(); } m_hoverItem = m_newHoverItem; m_shown = true; m_hoverItem->confirmEnter(); showAction(wasShown); } break; case HideAction: hideAction(); default: break; } m_action = NoAction; }
void run() { switch (routes[action]) { case LOAD: loadAction(); break; case INSERT: insertAction(); break; case FIND: findAction(); break; case REMOVE: removeAction(); break; case CLEAR: clearAction(); break; case DELETE: deleteAction(); break; case SHOW: showAction(); break; case TEST: testAction(); break; case HELP: helpAction(); break; case REPORT: reportAction(); break; default: usageAction(); break; } }
void PLSelItem::enterEvent( QEvent *ev ) { showAction(); }