Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImageVariableDialog.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 _IMAGEVARIABLEDIALOG_H
27 #define _IMAGEVARIABLEDIALOG_H
28 
29 #include "panoinc_WX.h"
30 #include "panoinc.h"
31 #include "GuiLevel.h"
32 
33 // forward declaration
34 namespace wxGraphTools
35 {
36 class GraphPopupWindow;
37 };
38 
40 class ImageVariableDialog : public wxDialog
41 {
42 public:
44  ImageVariableDialog(wxWindow *parent, HuginBase::Panorama* pano, HuginBase::UIntSet imgs);
48  void SetGuiLevel(GuiLevel newLevel);
50  void SelectTab(size_t i);
51 
52 protected:
54  void OnOk(wxCommandEvent & e);
56  void OnHelp(wxCommandEvent & e);
58  void OnShowDistortionGraph(wxCommandEvent & e);
60  void OnShowVignettingGraph(wxCommandEvent & e);
62  void OnShowResponseGraph(wxCommandEvent & e);
64  void OnResponseSelected(wxCommandEvent& e);
65 
66 private:
69  static const char *m_varNames[];
72  void InitValues();
74  bool ApplyNewVariables();
75 
76  DECLARE_EVENT_TABLE()
77 };
78 
79 #endif //_IMAGEVARIABLEDIALOG_H
declaration of helper for work with different GuiLevels
void OnShowDistortionGraph(wxCommandEvent &e)
shows a popup with distortion graph
void SetGuiLevel(GuiLevel newLevel)
sets the GuiLevel
void OnShowVignettingGraph(wxCommandEvent &e)
shows a popup with vignetting graph
void SelectTab(size_t i)
selects the tab with index i
include file for the hugin project
simple popup to show graph
Definition: GraphTools.h:38
void OnResponseSelected(wxCommandEvent &e)
response type changed
std::set< unsigned int > UIntSet
Definition: PanoramaData.h:51
Model for a panorama.
Definition: Panorama.h:152
wxGraphTools::GraphPopupWindow * m_popup
void OnHelp(wxCommandEvent &e)
shows the help
bool ApplyNewVariables()
applies the changed variables to the Panorama class, using CommandHistory
void OnOk(wxCommandEvent &e)
Saves current state of all checkboxes when closing dialog with Ok.
include file for the hugin project
~ImageVariableDialog()
destructor, saves position
void OnShowResponseGraph(wxCommandEvent &e)
shows a popup with response graph
ImageVariableDialog(wxWindow *parent, HuginBase::Panorama *pano, HuginBase::UIntSet imgs)
Constructor, read from xrc ressource; restore last uses settings and position.
GuiLevel
Definition: GuiLevel.h:31
static const char * m_varNames[]
HuginBase::UIntSet m_images
HuginBase::Panorama * m_pano
Dialog for editing image variables.
void InitValues()
copy the variables from Panorama to dialog