Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
wxTwoFilesInputDialog.cpp
1 #include "wxTwoFilesInputDialog.h"
2 #include <wx/filedlg.h>
3 
5 :
7 {
8 
9 }
10 
11 void wxTwoFilesInputDialog::OnButton1( wxCommandEvent& event )
12 {
13  wxString filename = wxFileSelector(wxT("Choose a file to open"));
14  if ( !filename.empty() )
15  {
16  m_textCtrl1->SetLabel(filename);
17  }
18 }
19 
20 void wxTwoFilesInputDialog::OnButton2( wxCommandEvent& event )
21 {
22  wxString filename = wxFileSelector(wxT("Choose a file to open"));
23  if ( !filename.empty() )
24  {
25  m_textCtrl2->SetLabel(filename);
26  }
27 }
28 
30  return m_textCtrl1->GetValue();
31 }
32 
34  return m_textCtrl2->GetValue();
35 }
36 
38  return m_textCtrl1->SetValue(s);
39 }
40 
42  return m_textCtrl2->SetValue(s);
43 }
44 
void OnButton2(wxCommandEvent &event)
Class wxTwoFilesInputDialogInterface.
wxTwoFilesInputDialog(wxWindow *parent)
Constructor.
void OnButton1(wxCommandEvent &event)