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 "panoinc_WX.h"
00030 
00031 #include <wx/wfstream.h>
00032 
00033 #include "base_wx/RunStitchPanel.h"
00034 #include "base_wx/huginConfig.h"
00035 #include "base_wx/platform.h"
00036 
00037 // somewhere SetDesc gets defined.. this breaks wx/cmdline.h on OSX
00038 #ifdef SetDesc
00039 #undef SetDesc
00040 #endif
00041 
00042 class RunStitchFrame: public wxFrame
00043 {
00044 public:
00045     //Constructor
00046     RunStitchFrame(wxWindow* parent, const wxString& title, const wxPoint& pos, const wxSize& size);  //ProjectArray projList, wxListBox *projListBox);
00047 
00049     bool StitchProject(wxString scriptFile, wxString outname);
00051     bool DetectProject(wxString scriptFile);
00053     int GetProcessId();
00055     int GetProjectId();
00057     void SetProcessId(int pid);
00059     void SetProjectId(int id);
00062     bool SaveLog(const wxString& filename);
00063 
00064 
00066     void OnCancel(wxCommandEvent& event);
00067     RunStitchPanel* m_stitchPanel;
00068 
00069 private:
00070 
00071     wxEvtHandler* m_evtParent;
00072     bool m_isStitching;
00073     bool m_isDetecting;
00074     int m_projectId;
00075     int m_pid;
00076     //Called in GUI application when process terminates
00077     void OnProcessTerminate(wxProcessEvent& event);
00078 
00079     DECLARE_EVENT_TABLE()
00080 };
00081 
00082 // event ID's for RunStitchPanel
00083 enum
00084 {
00085     ID_Quit = 1,
00086     ID_About
00087 };
00088 
00089 #endif //RUNSTITCHFRAME_H

Generated on 26 Sep 2016 for Hugintrunk by  doxygen 1.4.7