Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RunStitchFrame.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
2 
27 #ifndef RUNSTITCHFRAME_H
28 #define RUNSTITCHFRAME_H
29 #include "base_wx/platform.h"
30 #include "panoinc_WX.h"
31 
32 #include <wx/wfstream.h>
33 
34 #include "base_wx/RunStitchPanel.h"
35 #include "base_wx/huginConfig.h"
36 
37 // somewhere SetDesc gets defined.. this breaks wx/cmdline.h on OSX
38 #ifdef SetDesc
39 #undef SetDesc
40 #endif
41 
42 class RunStitchFrame: public wxFrame
43 {
44 public:
45  //Constructor
46  RunStitchFrame(wxWindow* parent, const wxString& title, const wxPoint& pos, const wxSize& size); //ProjectArray projList, wxListBox *projListBox);
47 
49  bool StitchProject(wxString scriptFile, wxString outname, wxString userDefinedOutput = wxEmptyString);
51  bool DetectProject(wxString scriptFile, wxString userDefinedAssistant = wxEmptyString);
53  int GetProcessId();
55  int GetProjectId();
57  void SetProcessId(int pid);
59  void SetProjectId(int id);
62  bool SaveLog(const wxString& filename);
63 
64 
66  void OnCancel(wxCommandEvent& event);
68 
69 private:
70 
71  wxEvtHandler* m_evtParent;
75  int m_pid;
76  //Called in GUI application when process terminates
77  void OnProcessTerminate(wxProcessEvent& event);
78 };
79 
80 // event ID's for RunStitchPanel
81 enum
82 {
83  ID_Quit = 1,
85 };
86 
87 #endif //RUNSTITCHFRAME_H
RunStitchFrame(wxWindow *parent, const wxString &title, const wxPoint &pos, const wxSize &size)
implementation of huginApp Class
void OnCancel(wxCommandEvent &event)
Cancels project execution - kills process.
void OnProcessTerminate(wxProcessEvent &event)
RunStitchPanel * m_stitchPanel
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
wxEvtHandler * m_evtParent
include file for the hugin project
functions for interaction with the hugin configuration file
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