27#ifndef _MYEXTERNALCMDEXECDIALOG__H
28#define _MYEXTERNALCMDEXECDIALOG__H
61 void PauseProcess(
bool pause =
true);
62 void ContinueProcess();
76 bool SaveLog(
const wxString &filename);
78 void CopyLogToClipboard();
128 : wxProcess(0), m_cmd(
cmd)
135 virtual void OnTerminate(
int pid,
int status);
148 void OnCancel(wxCommandEvent&
event);
basic classes and function for queuing commands in wxWidgets
const int HUGIN_EXIT_CODE_CANCELLED
wxDECLARE_EXPORTED_EVENT(WXIMPEX, EVT_QUEUE_PROGRESS, wxCommandEvent)
WXIMPEX int MyExecuteCommandOnDialog(wxString command, wxString args, wxWindow *parent, wxString title, bool isQuoted=false)
execute a single command in own dialog, redirect output to frame and allow canceling
WX_DEFINE_ARRAY_PTR(MyPipedProcess *, MyProcessesArray)
WXIMPEX int MyExecuteCommandQueue(HuginQueue::CommandQueue *queue, wxWindow *parent, const wxString &title, const wxString &comment=wxEmptyString)
execute all commands in queue with redirection of output to frame and allow canceling the queue will ...
MyExecPanel * m_execPanel
MyProcessesArray m_running
wxTimer m_timerIdleWakeUp
wxExecuteEnv m_executeEnv
HuginQueue::CommandQueue * m_queue
void DoAsyncExec(const wxString &cmd)
MyPipedProcess(MyProcessListener *parent, const wxString &cmd)
MyProcessListener * m_parent
virtual void OnProcessTerminated(MyPipedProcess *process, int pid, int status)=0
virtual ~MyProcessListener()
std::vector< NormalCommand * > CommandQueue
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.