Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
wxTwoFilesInputDialogInterface.cpp
1 ///////////////////////////////////////////////////////////////////////////
2 // C++ code generated with wxFormBuilder (version Sep 8 2010)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
6 ///////////////////////////////////////////////////////////////////////////
7 
8 #include "wxTwoFilesInputDialogInterface.h"
9 
10 ///////////////////////////////////////////////////////////////////////////
11 
12 wxTwoFilesInputDialogInterface::wxTwoFilesInputDialogInterface( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
13 {
14  this->SetSizeHints( wxSize( 500,100 ), wxSize( 500,300 ) );
15 
16  wxBoxSizer* outerSizer;
17  outerSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bSizer2;
20  bSizer2 = new wxBoxSizer( wxVERTICAL );
21 
22  m_staticTextHeadline = new wxStaticText( this, wxID_ANY, wxT("Choose plugins for PMDTec Camcube Camera:"), wxDefaultPosition, wxDefaultSize, 0 );
23  m_staticTextHeadline->Wrap( -1 );
24  bSizer2->Add( m_staticTextHeadline, 0, wxALL, 5 );
25 
26  m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxSize( 480,-1 ), wxLI_HORIZONTAL );
27  bSizer2->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
28 
29  outerSizer->Add( bSizer2, 1, wxEXPAND|wxSHAPED, 5 );
30 
31  wxBoxSizer* bSizer3;
32  bSizer3 = new wxBoxSizer( wxHORIZONTAL );
33 
34  m_staticText1 = new wxStaticText( this, wxID_ANY, wxT("Source Plugin"), wxDefaultPosition, wxDefaultSize, 0 );
35  m_staticText1->Wrap( -1 );
36  m_staticText1->SetMinSize( wxSize( 120,25 ) );
37 
38  bSizer3->Add( m_staticText1, 0, wxALL, 5 );
39 
40  m_textCtrl1 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 250,40 ), wxTE_CENTRE|wxTE_DONTWRAP|wxTE_RICH );
41  m_textCtrl1->SetMinSize( wxSize( 250,40 ) );
42  m_textCtrl1->SetMaxSize( wxSize( 250,40 ) );
43 
44  bSizer3->Add( m_textCtrl1, 0, wxALL|wxEXPAND, 5 );
45 
46  m_button1 = new wxButton( this, wxID_ANY, wxT("Select"), wxDefaultPosition, wxDefaultSize, 0 );
47  m_button1->SetMinSize( wxSize( -1,25 ) );
48 
49  bSizer3->Add( m_button1, 0, wxALL, 5 );
50 
51  outerSizer->Add( bSizer3, 1, wxEXPAND|wxSHAPED, 5 );
52 
53  wxBoxSizer* bSizer4;
54  bSizer4 = new wxBoxSizer( wxHORIZONTAL );
55 
56  m_staticText2 = new wxStaticText( this, wxID_ANY, wxT("Processing Plugin"), wxDefaultPosition, wxDefaultSize, 0 );
57  m_staticText2->Wrap( -1 );
58  m_staticText2->SetMinSize( wxSize( 120,25 ) );
59 
60  bSizer4->Add( m_staticText2, 0, wxALL, 5 );
61 
62  m_textCtrl2 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 250,40 ), wxTE_CENTRE|wxTE_DONTWRAP|wxTE_RICH );
63  m_textCtrl2->SetMinSize( wxSize( 250,40 ) );
64  m_textCtrl2->SetMaxSize( wxSize( 250,40 ) );
65 
66  bSizer4->Add( m_textCtrl2, 0, wxALL|wxEXPAND, 5 );
67 
68  m_button2 = new wxButton( this, wxID_ANY, wxT("Select"), wxDefaultPosition, wxDefaultSize, 0 );
69  m_button2->SetMinSize( wxSize( -1,25 ) );
70 
71  bSizer4->Add( m_button2, 0, wxALL, 5 );
72 
73  outerSizer->Add( bSizer4, 1, wxEXPAND|wxSHAPED, 5 );
74 
75  m_sdbSizer1 = new wxStdDialogButtonSizer();
76  m_sdbSizer1OK = new wxButton( this, wxID_OK );
77  m_sdbSizer1->AddButton( m_sdbSizer1OK );
78  m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
79  m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
80  m_sdbSizer1->Realize();
81  outerSizer->Add( m_sdbSizer1, 1, wxALIGN_CENTER|wxALL|wxFIXED_MINSIZE|wxSHAPED, 0 );
82 
83  this->SetSizer( outerSizer );
84  this->Layout();
85 
86  // Connect Events
87  m_button1->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxTwoFilesInputDialogInterface::OnButton1 ), NULL, this );
88  m_button2->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxTwoFilesInputDialogInterface::OnButton2 ), NULL, this );
89 }
90 
92 {
93  // Disconnect Events
94  m_button1->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxTwoFilesInputDialogInterface::OnButton1 ), NULL, this );
95  m_button2->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxTwoFilesInputDialogInterface::OnButton2 ), NULL, this );
96 
97 }
wxTwoFilesInputDialogInterface(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("Choose files"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 238), long style=wxCAPTION)
virtual void OnButton1(wxCommandEvent &event)
virtual void OnButton2(wxCommandEvent &event)