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

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00024 #ifndef _ASSISTANTPANEL_H
00025 #define _ASSISTANTPANEL_H
00026 
00027 #include <panodata/StandardImageVariableGroups.h>
00028 
00029 using namespace PT;
00030 
00036 class AssistantPanel: public wxPanel, public PT::PanoramaObserver
00037 {
00038 public:
00039     AssistantPanel();
00040 
00041     bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("panel"));
00042 
00043     void Init(PT::Panorama * pano);
00044 
00045     virtual ~AssistantPanel(void) ;
00046 
00061     virtual void panoramaChanged(PT::Panorama &pano);
00062     void panoramaImagesChanged(PT::Panorama &pano, const PT::UIntSet & imgNr);
00063 
00064 private:
00065     // a window event
00066     //void OnSize(wxSizeEvent & e);
00067 
00069     Panorama * m_pano;
00070     HuginBase::StandardImageVariableGroups * m_variable_groups;
00071 
00072     // event handlers
00073     void OnLoadImages( wxCommandEvent & e );
00074     void OnAlign( wxCommandEvent & e );
00075     void OnCreate( wxCommandEvent & e );
00076     void OnExifToggle( wxCommandEvent & e);
00077     void OnLoadLens(wxCommandEvent & e);
00078     void OnLensTypeChanged (wxCommandEvent & e);
00079     void OnFocalLengthChanged(wxCommandEvent & e);
00080     void OnCropFactorChanged(wxCommandEvent & e);
00081 
00082     wxPanel *  m_panel;
00083     wxStaticText * m_imagesText;
00084     wxButton * m_alignButton;
00085     wxStaticText * m_alignText;
00086     wxButton * m_createButton;
00087     wxCheckBox * m_exifToggle;
00088     wxChoice   * m_lensTypeChoice;
00089     wxTextCtrl * m_focalLengthText;
00090     wxTextCtrl * m_cropFactorText;
00091     wxButton   * m_loadLensButton;
00092 
00093     int m_degDigits;
00094 
00095     bool m_noImage;
00096 
00097     DECLARE_EVENT_TABLE()
00098 
00099     DECLARE_DYNAMIC_CLASS(AssistantPanel)
00100 };
00101 
00103 class AssistantPanelXmlHandler : public wxXmlResourceHandler
00104 {
00105     DECLARE_DYNAMIC_CLASS(AssistantPanelXmlHandler)
00106 
00107 public:
00108     AssistantPanelXmlHandler();
00109     virtual wxObject *DoCreateResource();
00110     virtual bool CanHandle(wxXmlNode *node);
00111 };
00112 
00113 
00114 
00115 #endif // _ASSISTANTPANEL_H

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