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 using namespace vigra;
00043 using namespace std;
00044 
00045 class RunStitchFrame: public wxFrame
00046 {
00047 public:
00048     //Constructor
00049     RunStitchFrame(wxWindow* parent, const wxString& title, const wxPoint& pos, const wxSize& size);  //ProjectArray projList, wxListBox *projListBox);
00050 
00052     bool StitchProject(wxString scriptFile, wxString outname);
00054     bool DetectProject(wxString scriptFile);
00056     int GetProcessId();
00058     int GetProjectId();
00060     void SetProcessId(int pid);
00062     void SetProjectId(int id);
00065     bool SaveLog(const wxString& filename);
00066 
00067 
00069     void OnCancel(wxCommandEvent& event);
00070     RunStitchPanel* m_stitchPanel;
00071 
00072 private:
00073 
00074     wxEvtHandler* m_evtParent;
00075     bool m_isStitching;
00076     bool m_isDetecting;
00077     int m_projectId;
00078     int m_pid;
00079     //Called in GUI application when process terminates
00080     void OnProcessTerminate(wxProcessEvent& event);
00081 
00082     DECLARE_EVENT_TABLE()
00083 };
00084 
00085 // event ID's for RunStitchPanel
00086 enum
00087 {
00088     ID_Quit = 1,
00089     ID_About
00090 };
00091 
00092 #endif //RUNSTITCHFRAME_H

Generated on 29 Aug 2015 for Hugintrunk by  doxygen 1.4.7