本文整理汇总了C++中wxThreadEvent::GetInt方法的典型用法代码示例。如果您正苦于以下问题:C++ wxThreadEvent::GetInt方法的具体用法?C++ wxThreadEvent::GetInt怎么用?C++ wxThreadEvent::GetInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wxThreadEvent
的用法示例。
在下文中一共展示了wxThreadEvent::GetInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnRemoteCmd
void CDStarRepeaterApp::OnRemoteCmd(wxThreadEvent& event)
{
wxLogMessage("Request to execute command %s (%d)",
m_commandLine[event.GetInt()], event.GetInt());
// XXX sanity check the command line here.
wxShell(m_commandLine[event.GetInt()]);
}
示例2: OnResolverResponse
void CMainApp::OnResolverResponse(wxThreadEvent& event)
{
unsigned key = event.GetInt();
unsigned data = event.GetExtraLong();
CContact c = event.GetPayload<CContact>();
CJournalEntry *pE = findActiveEntry(key);
if (pE != NULL) {
if (data == RESOLVE_CALLER) {
pE->setCallerName(c.getSN());
if (pE->getType() == CJournalEntry::J_INCOMING) {
pE->setImage(c.getImage());
}
} else if (data == RESOLVE_CALLED) {
pE->setCalledName(c.getSN());
if (pE->getType() == CJournalEntry::J_OUTGOING) {
pE->setImage(c.getImage());
}
}
m_pJournalModel->insertUpdateEntry(*pE);
}
else {
CJournalEntry e;
if (findJournalEntry(key, e)) {
if (data == RESOLVE_CALLER) e.setCallerName(c.getSN());
if (data == RESOLVE_CALLED) e.setCalledName(c.getSN());
m_pJournalModel->insertUpdateEntry(e);
}
}
}
示例3: OnMoveComplete
void MyFrame::OnMoveComplete(wxThreadEvent& event)
{
try
{
Mount *pThisMount = event.GetPayload<Mount *>();
assert(pThisMount->IsBusy());
pThisMount->DecrementRequestCount();
Mount::MOVE_RESULT moveResult = static_cast<Mount::MOVE_RESULT>(event.GetInt());
pMount->LogGuideStepInfo();
if (moveResult != Mount::MOVE_OK)
{
if (moveResult == Mount::MOVE_STOP_GUIDING)
{
Debug.Write("mount move error indicates guiding should stop\n");
pGuider->StopGuiding();
}
throw ERROR_INFO("Error reported moving");
}
}
catch (wxString Msg)
{
POSSIBLY_UNUSED(Msg);
}
}
示例4: OnNewCall
void CMainApp::OnNewCall(wxThreadEvent& event)
{
unsigned pid = event.GetInt();
TEventInfoNewCall info = event.GetPayload<TEventInfoNewCall>();
CJournalEntry *pCall = new CJournalEntry(pid, info.cid, CallType2JournalType(info.type));
pCall->setState(CallState2JournalState(info.status));
m_pJournalModel->insertUpdateEntry(*pCall);
m_ActiveCalls.insert(std::make_pair(TJournalKey(pid, info.cid), pCall));
displayNotification(*pCall);
}
示例5: OnRBFUpdatePg
void MainFrame::OnRBFUpdatePg(wxThreadEvent& evt)
{
int iteration = evt.GetInt() + 1 ;
int total = m_RBF->m_nTotalIteration;
m_gaugePg->SetValue(100*iteration/total);
m_staticTextPg->SetLabel(wxString::Format("%d/%d", iteration, total));
m_staticTextTimer->SetLabel(getTimer());
}
示例6: OnQUERYSequenceEnd
void PMBUSQUERYProgressDialog::OnQUERYSequenceEnd(wxThreadEvent& event){
PSU_DEBUG_PRINT(MSG_DEBUG, "OnQUERYSequenceEnd");
int HasError = event.GetInt();
if (HasError == 1){
PSU_DEBUG_PRINT(MSG_ERROR, "Query Commands Failed ! Please Check PSU Device Status !");
}
// Close Dialog
this->EndModal(wxID_OK);
}
示例7: OnCallStateUpdate
void CMainApp::OnCallStateUpdate(wxThreadEvent& event)
{
unsigned pid = event.GetInt();
TEventInfoCallStatus info = event.GetPayload<TEventInfoCallStatus>();
TJournalMap::iterator it = m_ActiveCalls.find(TJournalKey(pid, info.cid));
if (it != m_ActiveCalls.end()) {
if (info.status == TCALL_IDLE) {
delete (it->second);
m_ActiveCalls.erase(it);
} else {
it->second->setState(CallState2JournalState(info.status));
m_pJournalModel->insertUpdateEntry(*(it->second));
}
}
}
示例8: OnMoveComplete
void MyFrame::OnMoveComplete(wxThreadEvent& event)
{
try
{
Mount *mount = event.GetPayload<Mount *>();
assert(mount->IsBusy());
mount->DecrementRequestCount();
Mount::MOVE_RESULT moveResult = static_cast<Mount::MOVE_RESULT>(event.GetInt());
mount->LogGuideStepInfo();
// deliver the outstanding GuidingStopped notification if this is a late-arriving
// move completion event
if (!pGuider->IsCalibratingOrGuiding() &&
(!pMount || !pMount->IsBusy()) &&
(!pSecondaryMount || !pSecondaryMount->IsBusy()))
{
pFrame->NotifyGuidingStopped();
}
if (moveResult != Mount::MOVE_OK)
{
mount->IncrementErrorCount();
if (moveResult == Mount::MOVE_STOP_GUIDING)
{
Debug.Write("mount move error indicates guiding should stop\n");
pGuider->StopGuiding();
}
throw ERROR_INFO("Error reported moving");
}
}
catch (const wxString& Msg)
{
POSSIBLY_UNUSED(Msg);
}
}
示例9: OnWorkerEvent
void MyFrame::OnWorkerEvent(wxThreadEvent& event)
{
int n = event.GetInt();
if ( n == -1 )
{
m_dlgProgress->Destroy();
m_dlgProgress = (wxProgressDialog *)NULL;
// the dialog is aborted because the event came from another thread, so
// we may need to wake up the main event loop for the dialog to be
// really closed
wxWakeUpIdle();
}
else
{
if ( !m_dlgProgress->Update(n) )
{
wxCriticalSectionLocker lock(m_csCancelled);
m_cancelled = true;
}
}
}
示例10: OnCallInfoUpdate
void CMainApp::OnCallInfoUpdate(wxThreadEvent& event)
{
unsigned pid = event.GetInt();
TEventInfoCallInfo info = event.GetPayload<TEventInfoCallInfo>();
TJournalMap::iterator it = m_ActiveCalls.find(TJournalKey(pid, info.cid));
if (it != m_ActiveCalls.end())
{
CJournalEntry *pJ = it->second;
if (pJ->getCalledName().IsEmpty()) {
pJ->setCalledName(info.info.m_strCalledName);
}
if (pJ->getCallerName().IsEmpty()) {
pJ->setCallerName(info.info.m_strCallerName);
}
if (pJ->getCalledAddress().IsEmpty() && !info.info.m_strCalledAddress.empty()) {
ResolveCalled(info.info.m_strCalledAddress, pJ);
}
if (pJ->getCallerAddress().IsEmpty() && !info.info.m_strCallerAddress.empty()) {
ResolveCaller(info.info.m_strCallerAddress, pJ);
}
m_pJournalModel->insertUpdateEntry(*pJ);
}
}
示例11: OnExposeComplete
void MyFrame::OnExposeComplete(wxThreadEvent& event)
{
usImage *image = event.GetPayload<usImage *>();
bool err = event.GetInt() != 0;
OnExposeComplete(image, err);
}
示例12: OnGUIThreadEvent
void MyImageDialog::OnGUIThreadEvent(wxThreadEvent& event)
{
m_nCurrentProgress = int(((float)event.GetInt()*100)/GUITHREAD_NUM_UPDATES);
Refresh();
}
示例13: OnFileProcessedProgressUpdate
void CreatePatchFrame::OnFileProcessedProgressUpdate(wxThreadEvent& evt)
{
m_progressFileProccess->SetValue(evt.GetInt());
}
示例14: OnComparisonProgressUpdate
void CreatePatchFrame::OnComparisonProgressUpdate(wxThreadEvent& evt)
{
m_progressComparison->SetValue(evt.GetInt());
}
示例15: OnProgressBarUpdate
void ZLauncherFrame::OnProgressBarUpdate(wxThreadEvent& evt)
{
m_progress->SetValue(evt.GetInt());
}