Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
RunStitchFrame Class Reference

#include <RunStitchFrame.h>

Inheritance diagram for RunStitchFrame:
Inheritance graph

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

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
 

Detailed Description

Definition at line 42 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,
wxString  userDefinedAssistant = wxEmptyString 
)

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)

Definition at line 125 of file hugin_stitch_project.cpp.

References hugin_utils::GetHuginVersion().

void RunStitchFrame::OnCancel ( wxCommandEvent &  event)

Cancels project execution - kills process.

void RunStitchFrame::OnCancel ( wxCommandEvent &  event)
private
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 188 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 207 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 ( wxString  scriptFile,
wxString  outname,
wxString  userDefinedOutput = wxEmptyString 
)

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().

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

Member Data Documentation

bool RunStitchFrame::m_deleteOnExit
private

Definition at line 70 of file hugin_stitch_project.cpp.

Referenced by StitchProject().

wxEvtHandler* RunStitchFrame::m_evtParent
private

Definition at line 71 of file RunStitchFrame.h.

bool RunStitchFrame::m_isDetecting
private

Definition at line 73 of file RunStitchFrame.h.

Referenced by DetectProject(), and StitchProject().

bool RunStitchFrame::m_isStitching
private

Definition at line 72 of file RunStitchFrame.h.

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

int RunStitchFrame::m_pid
private

Definition at line 75 of file RunStitchFrame.h.

Referenced by GetProcessId(), and SetProcessId().

wxGauge* RunStitchFrame::m_progress
private

Definition at line 71 of file hugin_stitch_project.cpp.

Referenced by OnProgress().

int RunStitchFrame::m_projectId
private
wxString RunStitchFrame::m_scriptFile
private

Definition at line 69 of file hugin_stitch_project.cpp.

Referenced by StitchProject().

RunStitchPanel * RunStitchFrame::m_stitchPanel

The documentation for this class was generated from the following files: