30 : wxFrame(parent, -1, title, pos, size, wxRESIZE_BORDER | wxCAPTION | wxCLIP_CHILDREN), m_isStitching(false)
33 wxBoxSizer* topsizer =
new wxBoxSizer( wxVERTICAL );
38 topsizer->Add(
new wxButton(
this, wxID_CANCEL, _(
"Cancel")),
39 0, wxALL | wxALIGN_RIGHT, 10);
43 this->SetBackgroundColour(
m_stitchPanel->GetBackgroundColour());
103 event.SetEventObject(
this );
104 event.m_exitcode = 1;
107 this->GetParent()->GetEventHandler()->ProcessEvent( event );
114 if (event.GetExitCode() != 0)
116 event.SetEventObject(
this );
118 this->GetParent()->GetEventHandler()->ProcessEvent( event );
123 event.SetEventObject(
this );
126 this->GetParent()->GetEventHandler()->ProcessEvent( event );
RunStitchFrame(wxWindow *parent, const wxString &title, const wxPoint &pos, const wxSize &size)
Stitch a pto project file, with GUI output etc.
void OnCancel(wxCommandEvent &event)
Cancels project execution - kills process.
void OnProcessTerminate(wxProcessEvent &event)
RunStitchPanel * m_stitchPanel
bool StitchProject(const wxString &scriptFile, const wxString &outname, const wxString &userDefinedOutput=wxEmptyString)
bool StitchProject(wxString scriptFile, wxString outname, wxString userDefinedOutput=wxEmptyString)
Starts stitching of project file.
int GetProcessId()
Returns process ID of running process.
bool DetectProject(wxString scriptFile, wxString userDefinedAssistant=wxEmptyString)
starts assistant of project file
bool SaveLog(const wxString &filename)
save the content of the window into a given log file
bool DetectProject(const wxString &scriptFile, const wxString &userDefinedAssistant=wxEmptyString)
void SetProjectId(int id)
Sets project id from batch.
int GetProjectId()
Gets project id from batch.
void SetProcessId(int pid)
Sets process ID of running process (if running process from outside)
bool SaveLog(const wxString &filename)
save the content of the window into a given log file