int main (int argc, char *argv[]) { pwr_tStatus sts = 1; qdb_sPort port; qdb_sPort *pp; qcom_sQid qid = qdb_cQimport; qdb_sNode *np; errh_Init("pwr_qimp"); if (!qcom_Init(&sts, NULL)) exit(sts); if (!qcom_CreateQ(&sts, &qid, NULL)) exit(sts); port.sa.sin_family = AF_INET; port.sa.sin_addr.s_addr = htonl(INADDR_ANY); port.sa.sin_port = qdb->my_node->sa.sin_port; pp = qnet_Open(&sts, &port); while (qdb->g->up) { np = qnet_Get(&sts, pp); if (np->bp == NULL) pwr_Bugcheck(QCOM__WEIRD, "(np->bp == NULL)"); linkEvent(pp, np); } qnet_Close(&sts, pp); qcom_Exit(&sts); exit(QCOM__SUCCESS); }
void wxHyperlinkCtrlBase::SendEvent() { wxString url = GetURL(); wxHyperlinkEvent linkEvent(this, GetId(), url); if (!GetEventHandler()->ProcessEvent(linkEvent)) // was the event skipped ? { if (!wxLaunchDefaultBrowser(url)) { wxLogWarning(wxT("Could not launch the default browser with url '%s' !"), url.c_str()); } } }
void wxHyperlinkCtrl::OnLeftUp(wxMouseEvent& event) { // the click must be started and ended in the hyperlink rect if (!m_clicking || !GetLabelRect().Contains(event.GetPosition())) return; SetForegroundColour(m_visitedColour); m_visited = true; m_clicking = false; // send the event wxHyperlinkEvent linkEvent(this, GetId(), m_url); if (!GetEventHandler()->ProcessEvent(linkEvent)) // was the event skipped ? if (!wxLaunchDefaultBrowser(m_url)) wxLogWarning(wxT("Could not launch the default browser with url '%s' !"), m_url.c_str()); }
void MidiEvent::linkEvent(MidiEvent& mev) { linkEvent(&mev); }