void CMakePlugin::OnCMakeTerminated(clProcessEvent& event) { m_mgr->AppendOutputTabText(kOutputTab_Build, event.GetOutput()); IProcess* process = event.GetProcess(); wxDELETE(process); event.SetProcess(NULL); m_mgr->AppendOutputTabText(kOutputTab_Build, "==== Done ====\n"); }
void clTernServer::OnTernOutput(clProcessEvent& event) { static wxRegEx rePort("Listening on port ([0-9]+)"); if(rePort.IsValid() && rePort.Matches(event.GetOutput())) { wxString strPort = rePort.GetMatch(event.GetOutput(), 1); strPort.ToCLong(&m_port); } PrintMessage(event.GetOutput()); }
void LLDBConnector::OnProcessOutput(clProcessEvent& event) { wxString output = event.GetOutput(); wxArrayString lines = ::wxStringTokenize(output, "\n", wxTOKEN_STRTOK); for(size_t i = 0; i < lines.GetCount(); ++i) { CL_DEBUG("%s", lines.Item(i).Trim()); } }
void DbgGdb::OnDataRead(clProcessEvent& e) { // Data arrived from the debugger wxString bufferRead; bufferRead << e.GetOutput(); if(!m_gdbProcess || !m_gdbProcess->IsAlive()) return; CL_DEBUG("GDB>> %s", bufferRead); wxArrayString lines = wxStringTokenize(bufferRead, wxT("\n"), wxTOKEN_STRTOK); if(lines.IsEmpty()) return; // Prepend the partially saved line from previous iteration to the first line // of this iteration lines.Item(0).Prepend(m_gdbOutputIncompleteLine); m_gdbOutputIncompleteLine.Clear(); // If the last line is in-complete, remove it from the array and keep it for next iteration if(!bufferRead.EndsWith(wxT("\n"))) { m_gdbOutputIncompleteLine = lines.Last(); lines.RemoveAt(lines.GetCount() - 1); } for(size_t i = 0; i < lines.GetCount(); i++) { wxString line = lines.Item(i); line.Replace(wxT("(gdb)"), wxT("")); line.Trim().Trim(false); if(line.IsEmpty() == false) { m_gdbOutputArr.Add(line); } } if(m_gdbOutputArr.IsEmpty() == false) { // Trigger GDB processing Poke(); } }
void TerminalEmulator::OnProcessOutput(clProcessEvent& event) { clCommandEvent evtOutput(wxEVT_TERMINAL_COMMAND_OUTPUT); evtOutput.SetString(event.GetOutput()); AddPendingEvent(evtOutput); }
void wxTerminal::OnReadProcessOutput(clProcessEvent& event) { m_outputBuffer << event.GetOutput(); }
void SvnCommand::OnProcessOutput(clProcessEvent& event) { m_output.Append(event.GetOutput()); CL_DEBUG("Subversion:\n%s", m_output); }
void SvnCommitDialog::OnProcessOutput(clProcessEvent& e) { m_output << e.GetOutput(); }
void CppCheckPlugin::OnCppCheckReadData(clProcessEvent& e) { e.Skip(); m_view->AppendLine(e.GetOutput()); }
void CMakePlugin::OnCMakeOutput(clProcessEvent& event) { m_mgr->AppendOutputTabText(kOutputTab_Build, event.GetOutput()); }
void wxFormBuilder::OnWxFBTerminated(clProcessEvent& e) { if(e.GetProcess()) { delete e.GetProcess(); } }