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

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00002 
00027 #include "RunStitchFrame.h"
00028 #include "Batch.h"
00029 #include "BatchFrame.h"
00030 //#include "FilePoller.h"
00031 //#include "ProjectArray.h"
00032 
00033 #include <wx/dir.h>
00034 #include <wx/wfstream.h>
00035 #include <wx/filefn.h>
00036 #include <wx/snglinst.h>
00037 #include <wx/ipc.h>
00038 
00039 #include <hugin_config.h>
00040 #include <wx/cmdline.h>
00041 
00042 #ifndef FRAMEARRAY
00043 #define FRAMEARRAY
00044         WX_DEFINE_ARRAY_PTR(RunStitchFrame*,FrameArray);
00045 #endif
00046 
00047 #ifndef PTBATCHERGUI_H
00048 #define PTBATCHERGUI_H
00049 // **********************************************************************
00050 
00056 class BatchIPCConnection : public wxConnection
00057 {
00058 public:
00060         virtual wxChar *OnRequest(const wxString& topic, const wxString& item, int *size = NULL, wxIPCFormat format = wxIPC_TEXT);
00061 };
00062 
00064 class BatchIPCServer : public wxServer
00065 {
00066 public:
00068         virtual wxConnectionBase *OnAcceptConnection (const wxString& topic);
00069 };
00070 
00072 const wxString IPC_START(wxT("BatchStart"));
00073 
00078 class PTBatcherGUI : public wxApp
00079 {
00080 public:
00083         virtual bool OnInit();
00084         virtual int OnExit();
00085 
00086         //Handles some input keys for the frame
00087         void OnItemActivated(wxListEvent &event);
00088         void OnKeyDown(wxKeyEvent &event);
00089         
00090         //Main batch list
00091         ProjectArray projList;
00092         //List of projects in progress (their RunStitchFrames)
00093         FrameArray stitchFrames;
00094         BatchFrame* GetFrame() {return m_frame;};
00095 
00096 #ifdef __WXMAC__
00097 
00098     void MacOpenFile(const wxString &fileName);
00099 #endif
00100 
00101 private:
00102         BatchFrame *m_frame;
00103     wxLocale m_locale;
00104         wxString m_xrcPrefix;
00105         PTPrograms progs;
00106         wxSingleInstanceChecker *m_checker;
00107         BatchIPCServer *m_server;
00108 
00109 #ifdef __WXMAC__
00110     wxString m_macFileNameToOpenOnStart;
00111 #endif
00112 
00113         DECLARE_EVENT_TABLE()
00114 };
00115 
00116 DECLARE_APP(PTBatcherGUI)
00117 
00118 #endif //PTBATCHERGUI_H

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