Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[3f9ab6]: src / hugin1 / hugin / PreviewFrame.h Maximize Restore History

Download this file

PreviewFrame.h    129 lines (107 with data), 3.7 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// -*- c-basic-offset: 4 -*-
/** @file PreviewFrame.h
*
* @author Pablo d'Angelo <pablo.dangelo@web.de>
*
* $Id$
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this software; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef _PREVIEWFRAME_H
#define _PREVIEWFRAME_H
class PreviewPanel;
class wxToolBar;
class wxToggleButton;
class wxCheckBox;
class MaskEdClientWnd;
/** The image preview frame
*
* Contains the ImagePreviewPanel and various controls for it.
*
* it is not created with XRC, because it is highly dynamic, buttons
* have to be added etc.
*/
class PreviewFrame : public wxFrame, public PT::PanoramaObserver, public utils::MultiProgressDisplay
{
public:
/** ctor.
*/
PreviewFrame(wxFrame * frame, PT::Panorama &pano);
/** dtor.
*/
virtual ~PreviewFrame();
void panoramaChanged(PT::Panorama &pano);
void panoramaImagesChanged(PT::Panorama &pano, const PT::UIntSet &changed);
void OnUpdate(wxCommandEvent& event);
void updateProgressDisplay();
void initPreviewMode();
void setPreviewMode();
void setMaskEditorMode();
protected:
void OnClose(wxCloseEvent& e);
void OnMaskEditor(wxCommandEvent & e);
void OnExitMaskEditor(wxCommandEvent &e);
void OnChangeDisplayedImgs(wxCommandEvent & e);
void OnAutoPreviewToggle(wxCommandEvent & e);
void OnCenterHorizontally(wxCommandEvent & e);
void OnFitPano(wxCommandEvent& e);
void OnStraighten(wxCommandEvent & e);
void OnShowAll(wxCommandEvent & e);
void OnShowNone(wxCommandEvent & e);
void OnNumTransform(wxCommandEvent & e);
void OnChangeFOV(wxScrollEvent & e);
void OnTextCtrlChanged(wxCommandEvent & e);
void OnDefaultExposure( wxCommandEvent & e );
void OnDecreaseExposure( wxSpinEvent & e );
void OnIncreaseExposure( wxSpinEvent & e );
void OnBlendChoice(wxCommandEvent & e);
void OnProjectionChoice(wxCommandEvent & e);
void OnOutputChoice(wxCommandEvent & e);
// update the panorama display
void updatePano();
private:
PT::Panorama & m_pano;
MaskEdClientWnd *m_MaskEdClientWnd;
PreviewPanel * m_PreviewPanel;
wxToolBar * m_ToolBar;
wxSlider * m_HFOVSlider;
wxSlider * m_VFOVSlider;
wxChoice * m_BlendModeChoice;
wxChoice * m_ProjectionChoice;
wxChoice * m_outputModeChoice;
wxTextCtrl * m_exposureTextCtrl;
wxBitmapButton * m_defaultExposureBut;
wxSpinButton * m_exposureSpinBut;
wxString m_choices[3];
int m_oldProjFormat;
// wxButton * m_updatePreview;
// wxCheckBox * m_autoCB;
wxScrolledWindow * m_ButtonPanel;
wxBoxSizer * m_ButtonSizer;
wxStaticBoxSizer * m_ToggleButtonSizer;
wxBoxSizer * m_topsizer;
wxStaticBoxSizer * m_projParamSizer;
std::vector<wxStaticText *> m_projParamNamesLabel;
std::vector<wxTextCtrl *> m_projParamTextCtrl;
std::vector<wxSlider *> m_projParamSlider;
#ifdef USE_TOGGLE_BUTTON
std::vector<wxToggleButton *> m_ToggleButtons;
#else
std::vector<wxCheckBox *> m_ToggleButtons;
#endif
DECLARE_EVENT_TABLE()
};
#endif // _PREVIEWFRAME_H