RunStitchFrame Class Reference

#include <RunStitchFrame.h>

List of all members.

Public Member Functions

 RunStitchFrame (wxWindow *parent, const wxString &title, const wxPoint &pos, const wxSize &size)
bool StitchProject (wxString scriptFile, wxString outname)
 Starts stitching of project file.
bool DetectProject (wxString scriptFile)
 starts assistant of project file
int GetProcessId ()
 Returns process ID of running process.
int GetProjectId ()
 Gets project id from batch.
void SetProcessId (int pid)
 Sets process ID of running process (if running process from outside).
void SetProjectId (int id)
 Sets project id from batch.
bool SaveLog (const wxString &filename)
 save the content of the window into a given log file
void OnCancel (wxCommandEvent &event)
 Cancels project execution - kills process.
 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

Public Attributes

RunStitchPanelm_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
RunStitchPanelm_stitchPanel


Detailed Description

Definition at line 45 of file RunStitchFrame.h.


Constructor & Destructor Documentation

RunStitchFrame::RunStitchFrame ( wxWindow *  parent,
const wxString &  title,
const wxPoint &  pos,
const wxSize &  size 
)

Definition at line 34 of file RunStitchFrame.cpp.

RunStitchFrame::RunStitchFrame ( wxWindow *  parent,
const wxString &  title,
const wxPoint &  pos,
const wxSize &  size 
)


Member Function Documentation

bool RunStitchFrame::DetectProject ( wxString  scriptFile  ) 

starts assistant of project file

Definition at line 146 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 54 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 66 of file RunStitchFrame.cpp.

References m_projectId.

void RunStitchFrame::OnAbout ( wxCommandEvent &  event  ) 

void RunStitchFrame::OnCancel ( wxCommandEvent &  event  )  [private]

void RunStitchFrame::OnCancel ( wxCommandEvent &  event  ) 

Cancels project execution - kills process.

void RunStitchFrame::OnProcessTerminate ( wxProcessEvent &  event  )  [private]

void RunStitchFrame::OnProcessTerminate ( wxProcessEvent &  event  )  [private]

Definition at line 102 of file RunStitchFrame.cpp.

References DEBUG_TRACE, m_isStitching, and m_projectId.

void RunStitchFrame::OnProgress ( wxCommandEvent &  event  ) 

Definition at line 193 of file hugin_stitch_project.cpp.

References m_progress.

void RunStitchFrame::OnQuit ( wxCommandEvent &  event  ) 

bool RunStitchFrame::SaveLog ( const wxString &  filename  ) 

save the content of the window into a given log file

Returns:
true if log was saved successful

Definition at line 157 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 212 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 71 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 83 of file RunStitchFrame.cpp.

References m_projectId.

Referenced by Batch::OnDetect(), and Batch::OnStitch().

bool RunStitchFrame::StitchProject ( const wxString &  scriptFile,
const wxString &  outname,
const wxString &  userDefinedOutput,
bool  doDeleteOnExit 
)

Definition at line 201 of file hugin_stitch_project.cpp.

References m_deleteOnExit, m_isStitching, m_scriptFile, m_stitchPanel, and RunStitchPanel::StitchProject().

bool RunStitchFrame::StitchProject ( wxString  scriptFile,
wxString  outname 
)

Starts stitching of project file.

Definition at line 135 of file RunStitchFrame.cpp.

References m_isDetecting, m_isStitching, m_stitchPanel, and RunStitchPanel::StitchProject().

Referenced by stitchApp::OnInit(), and Batch::OnStitch().


Member Data Documentation

bool RunStitchFrame::m_deleteOnExit [private]

Definition at line 75 of file hugin_stitch_project.cpp.

Referenced by StitchProject().

wxEvtHandler* RunStitchFrame::m_evtParent [private]

Definition at line 74 of file RunStitchFrame.h.

bool RunStitchFrame::m_isDetecting [private]

Definition at line 76 of file RunStitchFrame.h.

Referenced by DetectProject(), and StitchProject().

bool RunStitchFrame::m_isStitching [private]

Definition at line 75 of file RunStitchFrame.h.

Referenced by DetectProject(), OnProcessTerminate(), and StitchProject().

int RunStitchFrame::m_pid [private]

Definition at line 78 of file RunStitchFrame.h.

Referenced by GetProcessId(), and SetProcessId().

wxGauge* RunStitchFrame::m_progress [private]

Definition at line 76 of file hugin_stitch_project.cpp.

Referenced by OnProgress().

int RunStitchFrame::m_projectId [private]

Definition at line 77 of file RunStitchFrame.h.

Referenced by GetProcessId(), GetProjectId(), OnProcessTerminate(), SetProcessId(), and SetProjectId().

wxString RunStitchFrame::m_scriptFile [private]

Definition at line 74 of file hugin_stitch_project.cpp.

Referenced by StitchProject().

RunStitchPanel* RunStitchFrame::m_stitchPanel [private]

Definition at line 81 of file hugin_stitch_project.cpp.

RunStitchPanel* RunStitchFrame::m_stitchPanel

Definition at line 70 of file RunStitchFrame.h.

Referenced by DetectProject(), GetProcessId(), Batch::OnStitch(), SaveLog(), SetOverwrite(), SetProcessId(), and StitchProject().


The documentation for this class was generated from the following files:
Generated on 28 Jul 2015 for Hugintrunk by  doxygen 1.4.7