[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/base_wx/RunStitchPanel.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00002 
00027 #ifndef RUN_STITCH_FRAME_H
00028 #define RUN_STITCH_FRAME_H
00029 
00030 #include <hugin_shared.h>
00031 #include <vector>
00032 #include <set>
00033 #include <functional>
00034 #include <utility>
00035 #include <string>
00036 
00037 #include <PT/Panorama.h>
00038 
00039 #include <algorithms/panorama_makefile/PanoramaMakefileExport.h>
00040 
00041 #include "MyExternalCmdExecDialog.h"
00042 
00043 struct WXIMPEX StitchProjectEntry
00044 {
00045     StitchProjectEntry(wxString script, wxString output)
00046     : scriptFile(script), outputPrefix(output), finished(false),
00047       error(false)   
00048     {
00049     }
00050 
00051     wxString scriptFile;
00052     wxString outputPrefix;
00053     bool finished;
00054     bool error;
00055 };
00056 
00057 class WXIMPEX RunStitchPanel: public wxPanel
00058 {
00059 public:
00060     RunStitchPanel(wxWindow * parent);
00061 
00062     bool StitchProject(wxString scriptFile, wxString outname,
00063                        HuginBase::PanoramaMakefileExport::PTPrograms progs);
00064     void CancelStitch();
00065         bool IsPaused();
00066         void SetOverwrite(bool over = true);
00067         void PauseStitch();
00068         void ContinueStitch();
00069         long GetPid();
00070 
00071 private:
00072         bool m_paused;
00073         bool m_overwrite;
00074     wxString m_currentPTOfn;
00075     wxString m_currentMakefn;
00076     void OnProcessTerminate(wxProcessEvent & event);
00077 
00078     MyExecPanel * m_execPanel;
00079 
00080     DECLARE_EVENT_TABLE()
00081 };
00082 
00083 #endif

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