35 : wxFrame(parent, -1, title, pos, size, wxRESIZE_BORDER | wxCAPTION | wxCLIP_CHILDREN), m_isStitching(false)
38 wxBoxSizer* topsizer =
new wxBoxSizer( wxVERTICAL );
41 topsizer->Add(m_stitchPanel, 1, wxEXPAND | wxALL, 2);
43 topsizer->Add(
new wxButton(
this, wxID_CANCEL, _(
"Cancel")),
44 0, wxALL | wxALIGN_RIGHT, 10);
48 this->SetBackgroundColour(m_stitchPanel->GetBackgroundColour());
106 event.SetEventObject(
this );
107 event.m_exitcode = 1;
110 this->GetParent()->GetEventHandler()->ProcessEvent( event );
117 if (event.GetExitCode() != 0)
119 event.SetEventObject(
this );
121 this->GetParent()->GetEventHandler()->ProcessEvent( event );
126 event.SetEventObject(
this );
129 this->GetParent()->GetEventHandler()->ProcessEvent( event );
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