43 DIALOG_SHIM( aParent, wxID_ANY,
_(
"Remote Symbol Settings" ), wxDefaultPosition,
44 wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER ),
63 wxBoxSizer* topSizer =
new wxBoxSizer( wxVERTICAL );
65 wxStaticText* intro =
new wxStaticText(
this, wxID_ANY,
66 _(
"Configure remote symbol providers and where downloaded libraries are stored." ) );
67 intro->Wrap( FromDIP( 460 ) );
68 topSizer->Add( intro, 0, wxALL | wxEXPAND, FromDIP( 10 ) );
70 wxStaticBoxSizer* providerSizer =
new wxStaticBoxSizer( wxVERTICAL,
this,
_(
"Providers" ) );
72 wxBoxSizer* providerTopSizer =
new wxBoxSizer( wxHORIZONTAL );
75 providerTopSizer->Add(
m_providerList, 1, wxRIGHT | wxEXPAND, FromDIP( 8 ) );
77 wxBoxSizer* providerButtonSizer =
new wxBoxSizer( wxVERTICAL );
86 providerTopSizer->Add( providerButtonSizer, 0, wxEXPAND );
87 providerSizer->Add( providerTopSizer, 0, wxALL | wxEXPAND, FromDIP( 8 ) );
89 wxFlexGridSizer* providerGrid =
new wxFlexGridSizer( 2, FromDIP( 6 ), FromDIP( 6 ) );
90 providerGrid->AddGrowableCol( 1, 1 );
91 providerGrid->Add(
new wxStaticText(
this, wxID_ANY,
_(
"Metadata URL:" ) ),
92 0, wxALIGN_CENTER_VERTICAL );
95 providerGrid->Add(
new wxStaticText(
this, wxID_ANY,
_(
"Display name:" ) ),
96 0, wxALIGN_CENTER_VERTICAL );
99 providerGrid->Add(
new wxStaticText(
this, wxID_ANY,
_(
"Last account:" ) ),
100 0, wxALIGN_CENTER_VERTICAL );
103 providerGrid->Add(
new wxStaticText(
this, wxID_ANY,
_(
"Auth status:" ) ),
104 0, wxALIGN_CENTER_VERTICAL );
107 providerSizer->Add( providerGrid, 0, wxLEFT | wxRIGHT | wxBOTTOM | wxEXPAND, FromDIP( 8 ) );
109 topSizer->Add( providerSizer, 0, wxLEFT | wxRIGHT | wxBOTTOM | wxEXPAND, FromDIP( 10 ) );
111 wxFlexGridSizer* gridSizer =
new wxFlexGridSizer( 2, FromDIP( 6 ), FromDIP( 6 ) );
112 gridSizer->AddGrowableCol( 1, 1 );
114 gridSizer->Add(
new wxStaticText(
this, wxID_ANY,
_(
"Destination directory:" ) ),
115 0, wxALIGN_CENTER_VERTICAL );
117 wxBoxSizer* destSizer =
new wxBoxSizer( wxHORIZONTAL );
121 "Directory where downloaded symbol, footprint, and 3D model data will be written." ) );
126 gridSizer->Add( destSizer, 1, wxEXPAND );
128 gridSizer->Add(
new wxStaticText(
this, wxID_ANY,
_(
"Library prefix:" ) ),
129 0, wxALIGN_CENTER_VERTICAL );
131 m_prefixCtrl->SetToolTip(
_(
"Prefix that will be applied to the generated libraries." ) );
134 gridSizer->AddSpacer( 0 );
135 m_prefixHint =
new wxStaticText(
this, wxID_ANY, wxString() );
139 gridSizer->Add(
new wxStaticText(
this, wxID_ANY,
_(
"Add libraries to:" ) ),
140 0, wxALIGN_CENTER_VERTICAL );
142 wxBoxSizer* radioSizer =
new wxBoxSizer( wxHORIZONTAL );
143 m_projectRadio =
new wxRadioButton(
this, wxID_ANY,
_(
"Project library table" ),
144 wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
146 _(
"Adds the generated libraries to the project's library tables." ) );
147 radioSizer->Add(
m_projectRadio, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, FromDIP( 12 ) );
149 m_globalRadio =
new wxRadioButton(
this, wxID_ANY,
_(
"Global library table" ) );
151 _(
"Adds the generated libraries to the global library tables." ) );
152 radioSizer->Add(
m_globalRadio, 0, wxALIGN_CENTER_VERTICAL );
154 gridSizer->Add( radioSizer, 0, wxEXPAND );
156 topSizer->Add( gridSizer, 0, wxALL | wxEXPAND, FromDIP( 10 ) );
158 m_resetButton =
new wxButton(
this, wxID_ANY,
_(
"Reset to Defaults" ) );
159 m_resetButton->SetToolTip(
_(
"Restore the default destination and prefix." ) );
160 topSizer->Add(
m_resetButton, 0, wxLEFT | wxBOTTOM, FromDIP( 10 ) );
162 wxStdDialogButtonSizer* buttonSizer = CreateStdDialogButtonSizer( wxOK | wxCANCEL );
163 topSizer->Add( buttonSizer, 0, wxALL | wxEXPAND, FromDIP( 10 ) );
165 SetSizer( topSizer );
166 topSizer->Fit(
this );