[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

hugin1/ptbatcher/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_config.h>
00030 #include <hugin_version.h>
00031 #include "panoinc_WX.h"
00032 //#include "panoinc.h"
00033 
00034 #include <wx/wfstream.h>
00035 
00036 
00037 //#include <fstream>
00038 //#include <sstream>
00039 //#include <vigra/error.hxx>
00040 //#include <vigra_ext/MultiThreadOperations.h>
00041 //#include "PT/Panorama.h"
00042 //#include "PT/utils.h"
00043 #include "base_wx/RunStitchPanel.h"
00044 #include "base_wx/huginConfig.h"
00045 //#include "base_wx/MyProgressDialog.h"
00046 //#include "base_wx/MyExternalCmdExecDialog.h"
00047 #include "base_wx/platform.h"
00048 //#include "common/wxPlatform.h"
00049 
00050 //#include <tiffio.h>
00051 
00052 // somewhere SetDesc gets defined.. this breaks wx/cmdline.h on OSX
00053 #ifdef SetDesc
00054 #undef SetDesc
00055 #endif
00056 
00057 //#include <wx/cmdline.h>
00058 
00059 using namespace vigra;
00060 using namespace PT;
00061 using namespace std;
00062 //using namespace utils;
00063 
00064 class RunStitchFrame: public wxFrame
00065 {
00066 public:
00067         //Constructor
00068     RunStitchFrame(wxWindow * parent, const wxString& title, const wxPoint& pos, const wxSize& size); //ProjectArray projList, wxListBox *projListBox);
00069 
00070         //Starts stitching of project file
00071     bool StitchProject(wxString scriptFile, wxString outname,
00072                        HuginBase::PanoramaMakefileExport::PTPrograms progs);
00073         
00074         //Returns process ID of running process
00075         int GetProcessId();
00076         //Gets project id from batch
00077         int GetProjectId();
00078         //Sets process ID of running process (if running process from outside)
00079         void SetProcessId(int pid);
00080         //Sets project id from batch
00081         void SetProjectId(int id);
00082         
00083         //Cancels project execution - kills process
00084         void OnCancel(wxCommandEvent & event);
00085         RunStitchPanel * m_stitchPanel;
00086 
00087 private:
00088 
00089         wxEvtHandler* m_evtParent;
00090     bool m_isStitching;
00091         int m_projectId;
00092         int m_pid;
00093         //Called in GUI application when process terminates
00094     void OnProcessTerminate(wxProcessEvent & event);
00095     
00096     DECLARE_EVENT_TABLE()
00097 };
00098 
00099 // event ID's for RunStitchPanel
00100 enum
00101 {
00102     ID_Quit = 1,
00103     ID_About   
00104 };
00105 
00106 #endif //RUNSTITCHFRAME_H

Generated on Mon Sep 20 01:01:26 2010 for Hugintrunk by doxygen 1.3.9.1