MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / SDRDeviceAddForm

Method SDRDeviceAddForm

src/forms/SDRDevices/SDRDeviceAddForm.cpp:12–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10///////////////////////////////////////////////////////////////////////////
11
12SDRDeviceAddForm::SDRDeviceAddForm( 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( wxDefaultSize, wxDefaultSize );
15
16 wxBoxSizer* bSizer6;
17 bSizer6 = new wxBoxSizer( wxVERTICAL );
18
19 m_staticText4 = new wxStaticText( this, wxID_ANY, wxT("Manually add a SoapyRemote or SoapySDR device. \n\nUseful for a device that is not detected automatically."), wxDefaultPosition, wxDefaultSize, 0 );
20 m_staticText4->Wrap( -1 );
21 bSizer6->Add( m_staticText4, 0, wxALL, 8 );
22
23
24 bSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
25
26 wxArrayString m_soapyModuleChoices;
27 m_soapyModule = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_soapyModuleChoices, 0 );
28 m_soapyModule->SetSelection( 0 );
29 bSizer6->Add( m_soapyModule, 0, wxALL, 8 );
30
31
32 bSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
33
34 m_paramLabel = new wxStaticText( this, wxID_ANY, wxT("<Parameter>"), wxDefaultPosition, wxDefaultSize, 0 );
35 m_paramLabel->Wrap( -1 );
36 bSizer6->Add( m_paramLabel, 0, wxALL, 8 );
37
38 m_paramText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_DONTWRAP|wxHSCROLL );
39 m_paramText->SetMinSize( wxSize( -1,48 ) );
40
41 bSizer6->Add( m_paramText, 1, wxALL|wxEXPAND, 8 );
42
43
44 bSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
45
46 wxBoxSizer* bSizer7;
47 bSizer7 = new wxBoxSizer( wxHORIZONTAL );
48
49
50 bSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
51
52 m_cancelButton = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
53 bSizer7->Add( m_cancelButton, 0, wxALL, 2 );
54
55 m_OkButton = new wxButton( this, wxID_ANY, wxT("Ok"), wxDefaultPosition, wxDefaultSize, 0 );
56 bSizer7->Add( m_OkButton, 0, wxALL, 2 );
57
58
59 bSizer6->Add( bSizer7, 1, wxEXPAND, 8 );
60
61
62 bSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
63
64
65 this->SetSizer( bSizer6 );
66 this->Layout();
67
68 this->Centre( wxBOTH );
69

Callers

nothing calls this directly

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected