MCPcopy Create free account
hub / github.com/ALTaleX531/OpenGlass / UpdateSymbolDownloadResult

Method UpdateSymbolDownloadResult

OpenGlassGUI/MainFrame.Core.cpp:330–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328 }
329
330 void MainFrame::UpdateSymbolDownloadResult(wxArtID iconId, const wxString& summary, const wxString& details)
331 {
332 if (!m_pnlSymbolDownloadResult || !m_bmpSymbolDownloadResult || !m_lblSymbolDownloadResult)
333 {
334 return;
335 }
336
337 if (summary.empty() && details.empty())
338 {
339 m_symbolDownloadResultText.clear();
340 m_lblSymbolDownloadResult->SetLabel(wxEmptyString);
341 m_pnlSymbolDownloadResult->Hide();
342 RefreshSymbolDownloadLayout();
343 return;
344 }
345
346 m_bmpSymbolDownloadResult->SetBitmap(
347 wxArtProvider::GetBitmap(iconId, wxART_MESSAGE_BOX, wxSize(16, 16))
348 );
349
350 wxString message = summary;
351 if (!details.empty())
352 {
353 if (!message.empty())
354 {
355 message += L"\n\n";
356 }
357 message += details;
358 }
359
360 m_symbolDownloadResultText = message;
361 WrapStaticTextToParentWidth(m_lblSymbolDownloadResult, m_symbolDownloadResultText);
362 m_pnlSymbolDownloadResult->Show();
363 RefreshSymbolDownloadLayout();
364 }
365
366 void MainFrame::FinishSymbolDownload(const SymbolDownloadOutcome& outcome)
367 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected