MyExecPanel Class Reference

#include <MyExternalCmdExecDialog.h>

Inheritance diagram for MyExecPanel:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 MyExecPanel (wxWindow *parent)
void KillProcess ()
void PauseProcess (bool pause=true)
 function to pause running process, argument pause defaults to true - to resume, set it to false
void ContinueProcess ()
long GetPid ()
void OnExecWithRedirect (wxCommandEvent &event)
int ExecWithRedirect (wxString command)
void OnTimer (wxTimerEvent &event)
void OnProcessTerminated (MyPipedProcess *process, int pid, int status)
bool SaveLog (const wxString &filename)
 save the content of the window into a given log file
void CopyLogToClipboard ()
 copy the content of the log window into the clipboard
virtual ~MyExecPanel ()

Private Member Functions

void AddToOutput (wxInputStream &s)
void DoAsyncExec (const wxString &cmd)
void AddAsyncProcess (MyPipedProcess *process)
void RemoveAsyncProcess (MyPipedProcess *process)

Private Attributes

long m_pidLast
wxString m_cmdLast
wxTextCtrl * m_textctrl
long m_lastLineStart
MyProcessesArray m_running
wxTimer m_timerIdleWakeUp

Constructor & Destructor Documentation

MyExecPanel::MyExecPanel wxWindow *  parent  ) 
 

Definition at line 97 of file MyExternalCmdExecDialog.cpp.

MyExecPanel::~MyExecPanel  )  [virtual]
 

Definition at line 509 of file MyExternalCmdExecDialog.cpp.


Member Function Documentation

void MyExecPanel::AddAsyncProcess MyPipedProcess process  )  [private]
 

Definition at line 289 of file MyExternalCmdExecDialog.cpp.

References m_running, and m_timerIdleWakeUp.

Referenced by ExecWithRedirect().

void MyExecPanel::AddToOutput wxInputStream &  s  )  [private]
 

Definition at line 320 of file MyExternalCmdExecDialog.cpp.

References DEBUG_TRACE, m_lastLineStart, and m_textctrl.

Referenced by OnProcessTerminated().

void MyExecPanel::ContinueProcess  ) 
 

Definition at line 230 of file MyExternalCmdExecDialog.cpp.

References PauseProcess().

Referenced by RunStitchPanel::ContinueStitch().

void MyExecPanel::CopyLogToClipboard  ) 
 

copy the content of the log window into the clipboard

Definition at line 522 of file MyExternalCmdExecDialog.cpp.

References m_textctrl.

Referenced by MyExecDialog::OnProcessTerminate().

void MyExecPanel::DoAsyncExec const wxString &  cmd  )  [private]
 

int MyExecPanel::ExecWithRedirect wxString  command  ) 
 

Definition at line 240 of file MyExternalCmdExecDialog.cpp.

References AddAsyncProcess(), cout, m_cmdLast, and m_pidLast.

Referenced by RunStitchPanel::DetectProject(), MyExecDialog::ExecWithRedirect(), and RunStitchPanel::StitchProject().

long MyExecPanel::GetPid  ) 
 

Definition at line 235 of file MyExternalCmdExecDialog.cpp.

Referenced by RunStitchPanel::GetPid().

void MyExecPanel::KillProcess  ) 
 

Definition at line 140 of file MyExternalCmdExecDialog.cpp.

References DEBUG_DEBUG, and m_pidLast.

Referenced by RunStitchPanel::CancelStitch().

void MyExecPanel::OnExecWithRedirect wxCommandEvent &  event  ) 
 

void MyExecPanel::OnProcessTerminated MyPipedProcess process,
int  pid,
int  status
[virtual]
 

Implements MyProcessListener.

Definition at line 491 of file MyExternalCmdExecDialog.cpp.

References AddToOutput(), DEBUG_TRACE, and RemoveAsyncProcess().

void MyExecPanel::OnTimer wxTimerEvent &  event  ) 
 

void MyExecPanel::PauseProcess bool  pause = true  ) 
 

function to pause running process, argument pause defaults to true - to resume, set it to false

Definition at line 167 of file MyExternalCmdExecDialog.cpp.

References m_pidLast.

Referenced by ContinueProcess(), and RunStitchPanel::PauseStitch().

void MyExecPanel::RemoveAsyncProcess MyPipedProcess process  )  [private]
 

Definition at line 304 of file MyExternalCmdExecDialog.cpp.

References m_running, and m_timerIdleWakeUp.

Referenced by OnProcessTerminated().

bool MyExecPanel::SaveLog const wxString &  filename  ) 
 

save the content of the window into a given log file

Returns:
true if log was saved successful

Definition at line 517 of file MyExternalCmdExecDialog.cpp.

References m_textctrl.

Referenced by RunStitchPanel::SaveLog().


Member Data Documentation

wxString MyExecPanel::m_cmdLast [private]
 

Definition at line 99 of file MyExternalCmdExecDialog.h.

Referenced by ExecWithRedirect().

long MyExecPanel::m_lastLineStart [private]
 

Definition at line 108 of file MyExternalCmdExecDialog.h.

Referenced by AddToOutput().

long MyExecPanel::m_pidLast [private]
 

Definition at line 96 of file MyExternalCmdExecDialog.h.

Referenced by ExecWithRedirect(), KillProcess(), and PauseProcess().

MyProcessesArray MyExecPanel::m_running [private]
 

Definition at line 111 of file MyExternalCmdExecDialog.h.

Referenced by AddAsyncProcess(), and RemoveAsyncProcess().

wxTextCtrl* MyExecPanel::m_textctrl [private]
 

Definition at line 107 of file MyExternalCmdExecDialog.h.

Referenced by AddToOutput(), CopyLogToClipboard(), and SaveLog().

wxTimer MyExecPanel::m_timerIdleWakeUp [private]
 

Definition at line 114 of file MyExternalCmdExecDialog.h.

Referenced by AddAsyncProcess(), and RemoveAsyncProcess().


The documentation for this class was generated from the following files:
Generated on Mon Sep 1 01:25:50 2014 for Hugintrunk by  doxygen 1.3.9.1