Hugintrunk
0.1
|
#include <RunStitchFrame.h>
Public Member Functions | |
RunStitchFrame (wxWindow *parent, const wxString &title, const wxPoint &pos, const wxSize &size) | |
bool | StitchProject (wxString scriptFile, wxString outname, wxString userDefinedOutput=wxEmptyString) |
Starts stitching of project file. More... | |
bool | DetectProject (wxString scriptFile, wxString userDefinedAssistant=wxEmptyString) |
starts assistant of project file More... | |
int | GetProcessId () |
Returns process ID of running process. More... | |
int | GetProjectId () |
Gets project id from batch. More... | |
void | SetProcessId (int pid) |
Sets process ID of running process (if running process from outside) More... | |
void | SetProjectId (int id) |
Sets project id from batch. More... | |
bool | SaveLog (const wxString &filename) |
save the content of the window into a given log file More... | |
void | OnCancel (wxCommandEvent &event) |
Cancels project execution - kills process. More... | |
RunStitchFrame (wxWindow *parent, const wxString &title, const wxPoint &pos, const wxSize &size) | |
bool | StitchProject (const wxString &scriptFile, const wxString &outname, const wxString &userDefinedOutput, bool doDeleteOnExit) |
void | OnQuit (wxCommandEvent &event) |
void | OnAbout (wxCommandEvent &event) |
void | OnProgress (wxCommandEvent &event) |
void | SetOverwrite (bool doOverwrite) |
sets, if existing output file should be automatic overwritten More... | |
Public Attributes | |
RunStitchPanel * | m_stitchPanel |
Private Member Functions | |
void | OnProcessTerminate (wxProcessEvent &event) |
void | OnProcessTerminate (wxProcessEvent &event) |
void | OnCancel (wxCommandEvent &event) |
Private Attributes | |
wxEvtHandler * | m_evtParent |
bool | m_isStitching |
bool | m_isDetecting |
int | m_projectId |
int | m_pid |
wxString | m_scriptFile |
bool | m_deleteOnExit |
wxGauge * | m_progress |
Definition at line 42 of file RunStitchFrame.h.
RunStitchFrame::RunStitchFrame | ( | wxWindow * | parent, |
const wxString & | title, | ||
const wxPoint & | pos, | ||
const wxSize & | size | ||
) |
Definition at line 29 of file RunStitchFrame.cpp.
References m_stitchPanel, OnCancel(), and OnProcessTerminate().
RunStitchFrame::RunStitchFrame | ( | wxWindow * | parent, |
const wxString & | title, | ||
const wxPoint & | pos, | ||
const wxSize & | size | ||
) |
bool RunStitchFrame::DetectProject | ( | wxString | scriptFile, |
wxString | userDefinedAssistant = wxEmptyString |
||
) |
starts assistant of project file
Definition at line 143 of file RunStitchFrame.cpp.
References RunStitchPanel::DetectProject(), m_isDetecting, m_isStitching, and m_stitchPanel.
Referenced by Batch::OnDetect().
int RunStitchFrame::GetProcessId | ( | ) |
Returns process ID of running process.
Definition at line 51 of file RunStitchFrame.cpp.
References RunStitchPanel::GetPid(), m_pid, m_projectId, and m_stitchPanel.
int RunStitchFrame::GetProjectId | ( | ) |
Gets project id from batch.
Definition at line 63 of file RunStitchFrame.cpp.
References m_projectId.
void RunStitchFrame::OnAbout | ( | wxCommandEvent & | event | ) |
Definition at line 121 of file hugin_stitch_project.cpp.
References hugin_utils::GetHuginVersion().
void RunStitchFrame::OnCancel | ( | wxCommandEvent & | event | ) |
Cancels project execution - kills process.
Referenced by RunStitchFrame().
|
private |
|
private |
|
private |
Definition at line 99 of file RunStitchFrame.cpp.
References DEBUG_TRACE, m_isStitching, and m_projectId.
Referenced by RunStitchFrame().
void RunStitchFrame::OnProgress | ( | wxCommandEvent & | event | ) |
Definition at line 184 of file hugin_stitch_project.cpp.
References m_progress.
void RunStitchFrame::OnQuit | ( | wxCommandEvent & | event | ) |
Definition at line 127 of file hugin_stitch_project.cpp.
References RunStitchPanel::CancelStitch(), DEBUG_TRACE, m_isStitching, and m_stitchPanel.
bool RunStitchFrame::SaveLog | ( | const wxString & | filename | ) |
save the content of the window into a given log file
Definition at line 154 of file RunStitchFrame.cpp.
References m_stitchPanel, and RunStitchPanel::SaveLog().
void RunStitchFrame::SetOverwrite | ( | bool | doOverwrite | ) |
sets, if existing output file should be automatic overwritten
Definition at line 203 of file hugin_stitch_project.cpp.
References m_stitchPanel, and RunStitchPanel::SetOverwrite().
Referenced by stitchApp::OnInit().
void RunStitchFrame::SetProcessId | ( | int | pid | ) |
Sets process ID of running process (if running process from outside)
Definition at line 68 of file RunStitchFrame.cpp.
References RunStitchPanel::GetPid(), m_pid, m_projectId, and m_stitchPanel.
void RunStitchFrame::SetProjectId | ( | int | id | ) |
Sets project id from batch.
Definition at line 80 of file RunStitchFrame.cpp.
References m_projectId.
Referenced by Batch::OnDetect(), and Batch::OnStitch().
bool RunStitchFrame::StitchProject | ( | wxString | scriptFile, |
wxString | outname, | ||
wxString | userDefinedOutput = wxEmptyString |
||
) |
Starts stitching of project file.
Definition at line 132 of file RunStitchFrame.cpp.
References m_isDetecting, m_isStitching, m_stitchPanel, and RunStitchPanel::StitchProject().
Referenced by stitchApp::OnInit(), and Batch::OnStitch().
bool RunStitchFrame::StitchProject | ( | const wxString & | scriptFile, |
const wxString & | outname, | ||
const wxString & | userDefinedOutput, | ||
bool | doDeleteOnExit | ||
) |
Definition at line 192 of file hugin_stitch_project.cpp.
References m_deleteOnExit, m_isStitching, m_scriptFile, m_stitchPanel, and RunStitchPanel::StitchProject().
|
private |
Definition at line 70 of file hugin_stitch_project.cpp.
Referenced by StitchProject().
|
private |
Definition at line 71 of file RunStitchFrame.h.
|
private |
Definition at line 73 of file RunStitchFrame.h.
Referenced by DetectProject(), and StitchProject().
|
private |
Definition at line 72 of file RunStitchFrame.h.
Referenced by DetectProject(), OnProcessTerminate(), OnQuit(), and StitchProject().
|
private |
Definition at line 75 of file RunStitchFrame.h.
Referenced by GetProcessId(), and SetProcessId().
|
private |
Definition at line 71 of file hugin_stitch_project.cpp.
Referenced by OnProgress().
|
private |
Definition at line 74 of file RunStitchFrame.h.
Referenced by GetProcessId(), GetProjectId(), OnProcessTerminate(), SetProcessId(), and SetProjectId().
|
private |
Definition at line 69 of file hugin_stitch_project.cpp.
Referenced by StitchProject().
RunStitchPanel * RunStitchFrame::m_stitchPanel |
Definition at line 67 of file RunStitchFrame.h.
Referenced by DetectProject(), GetProcessId(), OnQuit(), Batch::OnStitch(), RunStitchFrame(), SaveLog(), SetOverwrite(), SetProcessId(), and StitchProject().