00001 // -*- c-basic-offset: 4 -*- 00011 /* This is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU General Public 00013 * License as published by the Free Software Foundation; either 00014 * version 2 of the License, or (at your option) any later version. 00015 * 00016 * This software is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 * Lesser General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public 00022 * License along with this software; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00024 * 00025 */ 00026 00027 #ifndef _CPDETECTORDIALOG_H 00028 #define _CPDETECTORDIALOG_H 00029 00030 #include "panoinc.h" 00031 #include "panoinc_WX.h" 00032 #include "icpfind/CPDetectorConfig.h" 00033 00034 #include <wx/choicebk.h> 00035 00037 class CPDetectorDialog : public wxDialog 00038 { 00039 public: 00041 CPDetectorDialog(wxWindow* parent); 00043 virtual ~CPDetectorDialog(); 00047 void UpdateFields(CPDetectorConfig* cpdet_config,int index); 00051 void UpdateSettings(CPDetectorConfig* cpdet_config,int index); 00052 protected: 00054 void OnOk(wxCommandEvent & e); 00056 void OnSelectPath(wxCommandEvent &e); 00058 void OnSelectPathDescriptor(wxCommandEvent &e); 00060 void OnSelectPathMatcher(wxCommandEvent &e); 00062 void OnSelectPathStack(wxCommandEvent &e); 00064 void OnTypeChange(wxCommandEvent &e); 00066 void OnStepChanging(wxChoicebookEvent &e); 00068 bool ShowFileDialog(wxString & prog); 00069 private: 00070 wxTextCtrl *m_edit_desc; 00071 wxTextCtrl *m_edit_prog; 00072 wxTextCtrl *m_edit_args; 00073 wxStaticText *m_label_args_cleanup; 00074 wxTextCtrl *m_edit_args_cleanup; 00075 wxTextCtrl *m_edit_prog_descriptor; 00076 wxTextCtrl *m_edit_args_descriptor; 00077 wxTextCtrl *m_edit_prog_matcher; 00078 wxTextCtrl *m_edit_args_matcher; 00079 wxTextCtrl *m_edit_prog_stack; 00080 wxTextCtrl *m_edit_args_stack; 00081 wxCheckBox *m_check_option; 00082 wxChoice *m_cpdetector_type; 00083 wxChoicebook * m_choice_step; 00084 bool twoStepAllowed; 00085 00086 void ChangeType(); 00087 DECLARE_EVENT_TABLE(); 00088 }; 00089 00090 #endif
1.3.9.1