Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ChangeUserDefinedDialog.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
2 
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 _CHANGEUSERDEFINEDDIALOG_H
28 #define _CHANGEUSERDEFINEDDIALOG_H
29 
30 #include "panoinc_WX.h"
31 #include "panoinc.h"
32 
35 class ChangeUserDefinedSequenceDialog : public wxDialog
36 {
37 public:
39  ChangeUserDefinedSequenceDialog(wxWindow* parent, wxString xrcPrefix, wxString userDefinedSequence, bool assistantUserDefined);
43  wxString GetNewSequence();
44 
45 protected:
46  void UpdateStatus(wxCommandEvent& e);
47  void OnChangeUserDefinedChoice(wxCommandEvent& e);
48  void OnChooseFilename(wxCommandEvent& e);
49  void OnOk(wxCommandEvent& e);
50 
51 private:
54  void FillUserDefinedChoice(const wxArrayString& files);
55 
57  wxArrayString m_userFileNames;
58  wxArrayString m_userHelpTexts;
59  // all controls for easier access
60  wxRadioButton* m_radio_default;
61  wxRadioButton* m_radio_user_sequence;
63  wxStaticText* m_label_user_define;
65  wxRadioButton* m_radio_external;
66  wxTextCtrl* m_text_external_file;
68 
69  DECLARE_EVENT_TABLE()
70 };
71 
72 #endif //_CHANGEUSERDEFINEDDIALOG_H
include file for the hugin project
void OnChangeUserDefinedChoice(wxCommandEvent &e)
wxString GetNewSequence()
returns the newly selected sequence
~ChangeUserDefinedSequenceDialog()
destructor, saves size and position
void FillUserDefinedChoice(const wxArrayString &files)
Dialog for changing the user defined sequence.
ChangeUserDefinedSequenceDialog(wxWindow *parent, wxString xrcPrefix, wxString userDefinedSequence, bool assistantUserDefined)
Constructor, read from xrc ressource; restore last uses size and position.
include file for the hugin project