Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PanoOutputDialog.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
10 /* This is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public
12  * License as published by the Free Software Foundation; either
13  * version 2 of the License, or (at your option) any later version.
14  *
15  * This software is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public
21  * License along with this software. If not, see
22  * <http://www.gnu.org/licenses/>.
23  *
24  */
25 
26 #ifndef _PANOOUTPUTDIALOG_H
27 #define _PANOOUTPUTDIALOG_H
28 
29 #include "panoinc_WX.h"
30 #include "panoinc.h"
31 #include "GuiLevel.h"
32 
34 class PanoOutputDialog : public wxDialog
35 {
36 public:
38  PanoOutputDialog(wxWindow *parent, HuginBase::Panorama& pano, GuiLevel guiLevel);
42 protected:
44  void OnOk(wxCommandEvent & e);
46  void OnOutputChanged(wxCommandEvent & e);
48  void OnLDRFormatChanged(wxCommandEvent & e);
50  void OnHDRFormatChanged(wxCommandEvent & e);
52  void OnWidthChanged(wxSpinEvent & e);
54  void OnHeightChanged(wxSpinEvent & e);
55 
56 private:
57  void EnableOutputOptions();
58 
61  double m_initalWidth;
63  double m_aspect;
65 
66  wxSpinCtrl* m_edit_width;
67  wxSpinCtrl* m_edit_height;
68 
69  std::vector<HuginBase::UIntSet> m_stacks;
70  std::vector<HuginBase::UIntSet> m_exposureLayers;
71 
72  DECLARE_EVENT_TABLE()
73 };
74 
75 #endif //_PANOOUTPUTDIALOG_H
declaration of helper for work with different GuiLevels
~PanoOutputDialog()
destructor, save position
void OnHeightChanged(wxSpinEvent &e)
height changed
Dialog for setting output parameters for simple user interface.
include file for the hugin project
wxSpinCtrl * m_edit_height
void OnOk(wxCommandEvent &e)
Saves current state of all checkboxes when closing dialog with Ok.
HuginBase::Panorama & m_pano
HuginBase::PanoramaOptions GetNewPanoramaOptions()
Model for a panorama.
Definition: Panorama.h:152
std::vector< HuginBase::UIntSet > m_exposureLayers
wxSpinCtrl * m_edit_width
std::vector< HuginBase::UIntSet > m_stacks
include file for the hugin project
void OnHDRFormatChanged(wxCommandEvent &e)
HDR format changed.
HuginBase::PanoramaOptions m_newOpt
PanoOutputDialog(wxWindow *parent, HuginBase::Panorama &pano, GuiLevel guiLevel)
Constructor, read from xrc ressource; restore last uses settings, size and position.
GuiLevel
Definition: GuiLevel.h:31
Panorama image options.
void OnLDRFormatChanged(wxCommandEvent &e)
LDR format changed.
void OnWidthChanged(wxSpinEvent &e)
width changed
void OnOutputChanged(wxCommandEvent &e)
enabled Ok button and LDR/HDR format settings depeding on selected output settings ...