2016-01-20 00:43:31 -05:00
///////////////////////////////////////////////////////////////////////////
2017-10-31 06:08:15 -04:00
// C++ code generated with wxFormBuilder (version Oct 27 2017)
2016-01-20 00:43:31 -05:00
// http://www.wxformbuilder.org/
//
2017-10-31 06:08:15 -04:00
// PLEASE DO *NOT* EDIT THIS FILE!
2016-01-20 00:43:31 -05:00
///////////////////////////////////////////////////////////////////////////
# include "SDRDeviceAddForm.h"
///////////////////////////////////////////////////////////////////////////
2017-10-31 06:08:15 -04:00
SDRDeviceAddForm : : SDRDeviceAddForm ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : wxDialog ( parent , id , title , pos , size , style )
2016-01-20 00:43:31 -05:00
{
2017-10-31 06:08:15 -04:00
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
2016-01-20 00:43:31 -05:00
wxBoxSizer * bSizer6 ;
2017-10-31 06:08:15 -04:00
bSizer6 = new wxBoxSizer ( wxVERTICAL ) ;
m_staticText4 = new wxStaticText ( this , wxID_ANY , wxT ( " Manually add a SoapyRemote or SoapySDR device. \n \n Useful for a device that is not detected automatically. " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText4 - > Wrap ( - 1 ) ;
bSizer6 - > Add ( m_staticText4 , 0 , wxALL , 8 ) ;
bSizer6 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2016-01-20 00:43:31 -05:00
wxArrayString m_soapyModuleChoices ;
2017-10-31 06:08:15 -04:00
m_soapyModule = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , m_soapyModuleChoices , 0 ) ;
m_soapyModule - > SetSelection ( 0 ) ;
bSizer6 - > Add ( m_soapyModule , 0 , wxALL , 8 ) ;
bSizer6 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_paramLabel = new wxStaticText ( this , wxID_ANY , wxT ( " <Parameter> " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_paramLabel - > Wrap ( - 1 ) ;
bSizer6 - > Add ( m_paramLabel , 0 , wxALL , 8 ) ;
m_paramText = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_DONTWRAP | wxHSCROLL ) ;
m_paramText - > SetMinSize ( wxSize ( - 1 , 48 ) ) ;
bSizer6 - > Add ( m_paramText , 1 , wxALL | wxEXPAND , 8 ) ;
bSizer6 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
2016-01-20 00:43:31 -05:00
wxBoxSizer * bSizer7 ;
2017-10-31 06:08:15 -04:00
bSizer7 = new wxBoxSizer ( wxHORIZONTAL ) ;
bSizer7 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_cancelButton = new wxButton ( this , wxID_ANY , wxT ( " Cancel " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer7 - > Add ( m_cancelButton , 0 , wxALL , 2 ) ;
m_OkButton = new wxButton ( this , wxID_ANY , wxT ( " Ok " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer7 - > Add ( m_OkButton , 0 , wxALL , 2 ) ;
bSizer6 - > Add ( bSizer7 , 1 , wxEXPAND , 8 ) ;
bSizer6 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
this - > SetSizer ( bSizer6 ) ;
2016-01-20 00:43:31 -05:00
this - > Layout ( ) ;
2017-10-31 06:08:15 -04:00
this - > Centre ( wxBOTH ) ;
2016-01-20 00:43:31 -05:00
// Connect Events
2017-10-31 06:08:15 -04:00
m_soapyModule - > Connect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( SDRDeviceAddForm : : OnSoapyModuleChanged ) , NULL , this ) ;
m_cancelButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( SDRDeviceAddForm : : OnCancelButton ) , NULL , this ) ;
m_OkButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( SDRDeviceAddForm : : OnOkButton ) , NULL , this ) ;
2016-01-20 00:43:31 -05:00
}
SDRDeviceAddForm : : ~ SDRDeviceAddForm ( )
{
// Disconnect Events
2017-10-31 06:08:15 -04:00
m_soapyModule - > Disconnect ( wxEVT_COMMAND_CHOICE_SELECTED , wxCommandEventHandler ( SDRDeviceAddForm : : OnSoapyModuleChanged ) , NULL , this ) ;
m_cancelButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( SDRDeviceAddForm : : OnCancelButton ) , NULL , this ) ;
m_OkButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( SDRDeviceAddForm : : OnOkButton ) , NULL , this ) ;
2016-01-20 00:43:31 -05:00
}