RunStitchFrame.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00002 
00027 #ifndef RUNSTITCHFRAME_H
00028 #define RUNSTITCHFRAME_H
00029 #include <hugin_version.h>
00030 #include "panoinc_WX.h"
00031 
00032 #include <wx/wfstream.h>
00033 
00034 #include "base_wx/RunStitchPanel.h"
00035 #include "base_wx/huginConfig.h"
00036 #include "base_wx/platform.h"
00037 
00038 // somewhere SetDesc gets defined.. this breaks wx/cmdline.h on OSX
00039 #ifdef SetDesc
00040 #undef SetDesc
00041 #endif
00042 
00043 using namespace vigra;
00044 using namespace PT;
00045 using namespace std;
00046 
00047 class RunStitchFrame: public wxFrame
00048 {
00049 public:
00050     //Constructor
00051     RunStitchFrame(wxWindow* parent, const wxString& title, const wxPoint& pos, const wxSize& size);  //ProjectArray projList, wxListBox *projListBox);
00052 
00054     bool StitchProject(wxString scriptFile, wxString outname,
00055                        HuginBase::PanoramaMakefilelibExport::PTPrograms progs);
00057     bool DetectProject(wxString scriptFile, HuginBase::AssistantMakefilelibExport::AssistantPrograms progs);
00059     int GetProcessId();
00061     int GetProjectId();
00063     void SetProcessId(int pid);
00065     void SetProjectId(int id);
00068     bool SaveLog(const wxString& filename);
00069 
00070 
00072     void OnCancel(wxCommandEvent& event);
00073     RunStitchPanel* m_stitchPanel;
00074 
00075 private:
00076 
00077     wxEvtHandler* m_evtParent;
00078     bool m_isStitching;
00079     bool m_isDetecting;
00080     int m_projectId;
00081     int m_pid;
00082     //Called in GUI application when process terminates
00083     void OnProcessTerminate(wxProcessEvent& event);
00084 
00085     DECLARE_EVENT_TABLE()
00086 };
00087 
00088 // event ID's for RunStitchPanel
00089 enum
00090 {
00091     ID_Quit = 1,
00092     ID_About
00093 };
00094 
00095 #endif //RUNSTITCHFRAME_H

Generated on Wed Apr 16 01:25:37 2014 for Hugintrunk by  doxygen 1.3.9.1