|
Hugintrunk
0.1
|
#include <MyExternalCmdExecDialog.h>

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 More... | |
| void | ContinueProcess () |
| long | GetPid () |
| int | ExecWithRedirect (wxString command) |
| int | ExecQueue (HuginQueue::CommandQueue *queue) |
| 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 More... | |
| void | CopyLogToClipboard () |
| copy the content of the log window into the clipboard More... | |
| wxArrayString | GetLogAsArrayString () |
| returns the output More... | |
| void | AddString (const wxString &s) |
| display the string in the panel More... | |
| void | ClearOutput () |
| clear the output More... | |
| virtual | ~MyExecPanel () |
Public Member Functions inherited from MyProcessListener | |
| virtual | ~MyProcessListener () |
Private Member Functions | |
| void | AddToOutput (wxInputStream &s) |
| void | DoAsyncExec (const wxString &cmd) |
| void | AddAsyncProcess (MyPipedProcess *process) |
| void | RemoveAsyncProcess (MyPipedProcess *process) |
| int | ExecNextQueue () |
| execute next command in queue More... | |
Private Attributes | |
| long | m_pidLast |
| wxTextCtrl * | m_textctrl |
| long | m_lastLineStart |
| MyProcessesArray | m_running |
| wxTimer | m_timerIdleWakeUp |
| HuginQueue::CommandQueue * | m_queue |
| size_t | m_queueLength |
| bool | m_checkReturnCode |
| wxExecuteEnv | m_executeEnv |
| wxStopWatch | m_stopWatch |
Definition at line 54 of file MyExternalCmdExecDialog.h.
|
explicit |
Definition at line 73 of file MyExternalCmdExecDialog.cpp.
References m_lastLineStart, m_pidLast, m_stopWatch, m_textctrl, and OnTimer().
|
virtual |
Definition at line 499 of file MyExternalCmdExecDialog.cpp.
References m_queue, and m_textctrl.
|
private |
Definition at line 305 of file MyExternalCmdExecDialog.cpp.
References m_running, and m_timerIdleWakeUp.
Referenced by ExecWithRedirect().
| void MyExecPanel::AddString | ( | const wxString & | s | ) |
display the string in the panel
Definition at line 529 of file MyExternalCmdExecDialog.cpp.
References m_lastLineStart, and m_textctrl.
Referenced by MyExecDialog::AddString(), ExecNextQueue(), EnfusePanel::ExecuteEnfuse(), StackerPanel::ExecuteStacker(), and RunStitchPanel::StitchProject().
|
private |
Definition at line 336 of file MyExternalCmdExecDialog.cpp.
References DEBUG_TRACE, m_lastLineStart, and m_textctrl.
Referenced by OnProcessTerminated(), and OnTimer().
| void MyExecPanel::ClearOutput | ( | ) |
clear the output
Definition at line 538 of file MyExternalCmdExecDialog.cpp.
References m_lastLineStart, m_stopWatch, and m_textctrl.
Referenced by EnfusePanel::ExecuteEnfuse(), EnfusePanel::ExecuteEnfuseExiftool(), StackerPanel::ExecuteStacker(), StackerPanel::ExecuteStackerExiftool(), and PerspectivePanel::OnSaveOutput().
| void MyExecPanel::ContinueProcess | ( | ) |
Definition at line 184 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 518 of file MyExternalCmdExecDialog.cpp.
References m_textctrl.
Referenced by RawImportProgress::OnProcessReferenceTerminate(), MyExecDialog::OnProcessTerminate(), and RawImportProgress::OnProcessTerminate().
|
private |
|
private |
execute next command in queue
Definition at line 276 of file MyExternalCmdExecDialog.cpp.
References AddString(), HuginQueue::NormalCommand::CheckReturnCode(), ExecWithRedirect(), HuginQueue::NormalCommand::GetCommand(), HuginQueue::NormalCommand::GetComment(), m_checkReturnCode, m_queue, m_queueLength, and hugin_utils::roundi().
Referenced by ExecQueue(), and OnProcessTerminated().
| int MyExecPanel::ExecQueue | ( | HuginQueue::CommandQueue * | queue | ) |
Definition at line 242 of file MyExternalCmdExecDialog.cpp.
References ExecNextQueue(), m_executeEnv, m_queue, m_queueLength, and m_stopWatch.
Referenced by RunStitchPanel::DetectProject(), MyExecDialog::ExecQueue(), EnfusePanel::ExecuteEnfuseExiftool(), StackerPanel::ExecuteStackerExiftool(), RawImportProgress::OnInitDialog(), RawImportProgress::OnProcessReferenceTerminate(), PerspectivePanel::OnSaveOutput(), and RunStitchPanel::StitchProject().
| int MyExecPanel::ExecWithRedirect | ( | wxString | command | ) |
Definition at line 194 of file MyExternalCmdExecDialog.cpp.
References AddAsyncProcess(), m_executeEnv, and m_pidLast.
Referenced by ExecNextQueue(), EnfusePanel::ExecuteEnfuse(), StackerPanel::ExecuteStacker(), and MyExecDialog::ExecWithRedirect().
| wxArrayString MyExecPanel::GetLogAsArrayString | ( | ) |
returns the output
Definition at line 524 of file MyExternalCmdExecDialog.cpp.
References m_textctrl.
Referenced by RawImportProgress::OnProcessReferenceTerminate().
| long MyExecPanel::GetPid | ( | ) |
Definition at line 189 of file MyExternalCmdExecDialog.cpp.
References m_pidLast.
Referenced by RunStitchPanel::GetPid().
| void MyExecPanel::KillProcess | ( | ) |
Definition at line 95 of file MyExternalCmdExecDialog.cpp.
References DEBUG_DEBUG, and m_pidLast.
Referenced by RunStitchPanel::CancelStitch(), MyExecDialog::OnCancel(), and RawImportProgress::OnCancel().
|
virtual |
Implements MyProcessListener.
Definition at line 451 of file MyExternalCmdExecDialog.cpp.
References AddToOutput(), DEBUG_TRACE, ExecNextQueue(), m_checkReturnCode, m_queue, m_stopWatch, m_textctrl, RemoveAsyncProcess(), and hugin_utils::roundi().
| void MyExecPanel::OnTimer | ( | wxTimerEvent & | event | ) |
Definition at line 396 of file MyExternalCmdExecDialog.cpp.
References AddToOutput(), DEBUG_DEBUG, DEBUG_TRACE, m_pidLast, and m_running.
Referenced by MyExecPanel().
| 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 122 of file MyExternalCmdExecDialog.cpp.
References m_pidLast.
Referenced by ContinueProcess(), and RunStitchPanel::PauseStitch().
|
private |
Definition at line 320 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
Definition at line 513 of file MyExternalCmdExecDialog.cpp.
References m_textctrl.
Referenced by RunStitchPanel::SaveLog().
|
private |
Definition at line 114 of file MyExternalCmdExecDialog.h.
Referenced by ExecNextQueue(), and OnProcessTerminated().
|
private |
Definition at line 115 of file MyExternalCmdExecDialog.h.
Referenced by ExecQueue(), and ExecWithRedirect().
|
private |
Definition at line 104 of file MyExternalCmdExecDialog.h.
Referenced by AddString(), AddToOutput(), ClearOutput(), and MyExecPanel().
|
private |
Definition at line 101 of file MyExternalCmdExecDialog.h.
Referenced by ExecWithRedirect(), GetPid(), KillProcess(), MyExecPanel(), OnTimer(), and PauseProcess().
|
private |
Definition at line 111 of file MyExternalCmdExecDialog.h.
Referenced by ExecNextQueue(), ExecQueue(), OnProcessTerminated(), and ~MyExecPanel().
|
private |
Definition at line 112 of file MyExternalCmdExecDialog.h.
Referenced by ExecNextQueue(), and ExecQueue().
|
private |
Definition at line 106 of file MyExternalCmdExecDialog.h.
Referenced by AddAsyncProcess(), OnTimer(), and RemoveAsyncProcess().
|
private |
Definition at line 116 of file MyExternalCmdExecDialog.h.
Referenced by ClearOutput(), ExecQueue(), MyExecPanel(), and OnProcessTerminated().
|
private |
Definition at line 103 of file MyExternalCmdExecDialog.h.
Referenced by AddString(), AddToOutput(), ClearOutput(), CopyLogToClipboard(), GetLogAsArrayString(), MyExecPanel(), OnProcessTerminated(), SaveLog(), and ~MyExecPanel().
|
private |
Definition at line 109 of file MyExternalCmdExecDialog.h.
Referenced by AddAsyncProcess(), and RemoveAsyncProcess().
1.8.5