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

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00024 #ifndef _PREVIEWFRAME_H
00025 #define _PREVIEWFRAME_H
00026 
00027 class PreviewPanel;
00028 class wxToolBar;
00029 class wxToggleButton;
00030 class wxCheckBox;
00031 
00039 class PreviewFrame : public wxFrame, public PT::PanoramaObserver, public utils::MultiProgressDisplay
00040 {
00041 public:
00042 
00045     PreviewFrame(wxFrame * frame, PT::Panorama &pano);
00046 
00049     virtual ~PreviewFrame();
00050 
00051     void panoramaChanged(PT::Panorama &pano);
00052     void panoramaImagesChanged(PT::Panorama &pano, const PT::UIntSet &changed);
00053     void OnUpdate(wxCommandEvent& event);
00054     
00055     void updateProgressDisplay();
00056 protected:
00057     void OnClose(wxCloseEvent& e);
00058 
00059     void OnChangeDisplayedImgs(wxCommandEvent & e);
00060     void OnAutoPreviewToggle(wxCommandEvent & e);
00061     void OnCenterHorizontally(wxCommandEvent & e);
00062     void OnFitPano(wxCommandEvent& e);
00063     void OnStraighten(wxCommandEvent & e);
00064     void OnShowAll(wxCommandEvent & e);
00065     void OnShowNone(wxCommandEvent & e);
00066     void OnNumTransform(wxCommandEvent & e);
00067     void OnChangeFOV(wxScrollEvent & e);
00068     void OnTextCtrlChanged(wxCommandEvent & e);
00069 
00070     void OnDefaultExposure( wxCommandEvent & e );
00071     void OnDecreaseExposure( wxSpinEvent & e );
00072     void OnIncreaseExposure( wxSpinEvent & e );
00074     void OnProjParameterReset(wxCommandEvent & e);
00075 
00076     void OnBlendChoice(wxCommandEvent & e);
00077     void OnProjectionChoice(wxCommandEvent & e);
00078     void OnOutputChoice(wxCommandEvent & e);
00080     void OnFullScreen(wxCommandEvent &e);
00082     void OnUndo(wxCommandEvent &e);
00084     void OnRedo(wxCommandEvent &e);
00085 
00086     // update the panorama display
00087     void updatePano();
00088 private:
00089 
00090     PT::Panorama & m_pano;
00091 
00092     PreviewPanel * m_PreviewPanel;
00093     wxToolBar * m_ToolBar;
00094     wxSlider * m_HFOVSlider;
00095     wxSlider * m_VFOVSlider;
00096     wxChoice * m_BlendModeChoice;
00097     wxChoice * m_ProjectionChoice;
00098     wxChoice * m_outputModeChoice;
00099     wxTextCtrl * m_exposureTextCtrl;
00100     wxBitmapButton * m_defaultExposureBut;
00101     wxSpinButton * m_exposureSpinBut;
00102 
00103     wxString m_choices[3];
00104     int m_oldProjFormat;
00105 
00106 //    wxButton * m_updatePreview;
00107 //    wxCheckBox * m_autoCB;
00108 
00109         wxScrolledWindow * m_ButtonPanel;
00110         wxBoxSizer * m_ButtonSizer;
00111         wxStaticBoxSizer * m_ToggleButtonSizer;
00112 
00113     wxBoxSizer * m_topsizer;
00114     wxStaticBoxSizer * m_projParamSizer;
00115     std::vector<wxStaticText *> m_projParamNamesLabel;
00116     std::vector<wxTextCtrl *>   m_projParamTextCtrl;
00117     std::vector<wxSlider *>     m_projParamSlider;
00118 
00119 #ifdef USE_TOGGLE_BUTTON
00120     std::vector<wxToggleButton *> m_ToggleButtons;
00121 #else
00122     std::vector<wxCheckBox *> m_ToggleButtons;
00123 #endif
00124 
00125     DECLARE_EVENT_TABLE()
00126 };
00127 
00128 
00129 
00130 #endif // _PREVIEWFRAME_H

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