Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CPDetectorDialog.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
11  /* This is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public
13  * License as published by the Free Software Foundation; either
14  * version 2 of the License, or (at your option) any later version.
15  *
16  * This software is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public
22  * License along with this software. If not, see
23  * <http://www.gnu.org/licenses/>.
24  *
25  */
26 
27 #ifndef _CPDETECTORDIALOG_H
28 #define _CPDETECTORDIALOG_H
29 
30 #include "panoinc.h"
31 #include "panoinc_WX.h"
33 
34 #include <wx/choicebk.h>
35 
37 class CPDetectorDialog : public wxDialog
38 {
39 public:
41  CPDetectorDialog(wxWindow* parent);
43  virtual ~CPDetectorDialog();
47  void UpdateFields(CPDetectorConfig* cpdet_config,int index);
51  void UpdateSettings(CPDetectorConfig* cpdet_config,int index);
52 protected:
54  void OnOk(wxCommandEvent & e);
56  void OnSelectPath(wxCommandEvent &e);
58  void OnSelectPathDescriptor(wxCommandEvent &e);
60  void OnSelectPathMatcher(wxCommandEvent &e);
62  void OnSelectPathStack(wxCommandEvent &e);
64  void OnTypeChange(wxCommandEvent &e);
66  void OnStepChanging(wxChoicebookEvent &e);
68  bool ShowFileDialog(wxString & prog);
69 private:
70  wxTextCtrl *m_edit_desc;
71  wxTextCtrl *m_edit_prog;
72  wxTextCtrl *m_edit_args;
73  wxStaticText *m_label_args_cleanup;
74  wxTextCtrl *m_edit_args_cleanup;
77  wxTextCtrl *m_edit_prog_matcher;
78  wxTextCtrl *m_edit_args_matcher;
79  wxTextCtrl *m_edit_prog_stack;
80  wxTextCtrl *m_edit_args_stack;
81  wxCheckBox *m_check_option;
82  wxChoice *m_cpdetector_type;
83  wxChoicebook * m_choice_step;
85 
86  void ChangeType();
88 };
89 
90 #endif
void OnSelectPath(wxCommandEvent &e)
select program with file open dialog
void UpdateFields(CPDetectorConfig *cpdet_config, int index)
updates edit fields with values from settings
wxTextCtrl * m_edit_args_matcher
CPDetectorDialog(wxWindow *parent)
constructor
wxTextCtrl * m_edit_prog_stack
void OnSelectPathStack(wxCommandEvent &e)
select program for stack with file open dialog
wxChoicebook * m_choice_step
include file for the hugin project
void OnSelectPathMatcher(wxCommandEvent &e)
select program for feature matcher with file open dialog
void OnTypeChange(wxCommandEvent &e)
update dialog, when other cp detector type is changed
wxStaticText * m_label_args_cleanup
wxTextCtrl * m_edit_args
dialog for input settings of one autopano generator
void OnStepChanging(wxChoicebookEvent &e)
block selection of two step detector for autopano setting
wxTextCtrl * m_edit_args_stack
wxTextCtrl * m_edit_prog
virtual ~CPDetectorDialog()
destructor, saves position and size
wxTextCtrl * m_edit_args_cleanup
wxChoice * m_cpdetector_type
wxTextCtrl * m_edit_args_descriptor
bool ShowFileDialog(wxString &prog)
shows file dialog
wxTextCtrl * m_edit_prog_matcher
include file for the hugin project
declaration of CPDetectorSetting and CPDetectorConfig classes, which are for storing and changing set...
wxCheckBox * m_check_option
wxTextCtrl * m_edit_desc
wxTextCtrl * m_edit_prog_descriptor
void OnSelectPathDescriptor(wxCommandEvent &e)
select program for feature descriptor with file open dialog
class for storing settings of different control point generators
void UpdateSettings(CPDetectorConfig *cpdet_config, int index)
return inputed settings
void OnOk(wxCommandEvent &e)
check inputs