Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ngscopeclient/scopehal-apps
Browse files Browse the repository at this point in the history
  • Loading branch information
azonenberg committed Sep 24, 2024
2 parents e0044b4 + 7543f71 commit 9a28d9f
Show file tree
Hide file tree
Showing 24 changed files with 1,406 additions and 94 deletions.
6 changes: 6 additions & 0 deletions devdoc/Introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@ End user documentation is located at https://www.ngscopeclient.org/manual/conten
\defgroup drivers Instrument drivers
\ingroup libscopehal

\defgroup scopedrivers Oscilloscope / LA drivers
\ingroup drivers

\defgroup sdrdrivers SDR drivers
\ingroup drivers

\defgroup spectrometerdrivers Spectrometer drivers
\ingroup drivers

\defgroup vnadrivers VNA drivers
\ingroup drivers

Expand Down
2 changes: 1 addition & 1 deletion lib
24 changes: 24 additions & 0 deletions src/ngscopeclient/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,15 @@
#include "../scopeprotocols/ConstellationFilter.h"
#include "../scopeprotocols/CSVExportFilter.h"
#include "../scopeprotocols/CSVImportFilter.h"
#include "../scopeprotocols/DDR1Decoder.h"
#include "../scopeprotocols/DDR3Decoder.h"
#include "../scopeprotocols/DeskewFilter.h"
#include "../scopeprotocols/DivideFilter.h"
#include "../scopeprotocols/DownsampleFilter.h"
#include "../scopeprotocols/DPAuxChannelDecoder.h"
#include "../scopeprotocols/DramClockFilter.h"
#include "../scopeprotocols/DramRefreshActivateMeasurement.h"
#include "../scopeprotocols/DramRowColumnLatencyMeasurement.h"
#include "../scopeprotocols/DutyCycleMeasurement.h"
#include "../scopeprotocols/EnvelopeFilter.h"
#include "../scopeprotocols/Ethernet10BaseTDecoder.h"
Expand All @@ -110,6 +116,7 @@
#include "../scopeprotocols/FIRFilter.h"
#include "../scopeprotocols/FFTFilter.h"
#include "../scopeprotocols/FrequencyMeasurement.h"
#include "../scopeprotocols/FSKDecoder.h"
#include "../scopeprotocols/FullWidthHalfMax.h"
#include "../scopeprotocols/HistogramFilter.h"
#include "../scopeprotocols/IBM8b10bDecoder.h"
Expand All @@ -128,6 +135,7 @@
#include "../scopeprotocols/SawtoothGeneratorFilter.h"
#include "../scopeprotocols/SDCmdDecoder.h"
#include "../scopeprotocols/SDDataDecoder.h"
#include "../scopeprotocols/SpectrogramFilter.h"
#include "../scopeprotocols/StepGeneratorFilter.h"
#include "../scopeprotocols/SubtractFilter.h"
#include "../scopeprotocols/ThresholdFilter.h"
Expand Down Expand Up @@ -891,8 +899,14 @@ void MainWindow::LoadFilterIcons()
m_texmgr.LoadTexture("filter-constellation", FindDataFile("icons/filters/filter-constellation.png"));
m_texmgr.LoadTexture("filter-csv-export", FindDataFile("icons/filters/filter-csv-export.png"));
m_texmgr.LoadTexture("filter-csv-import", FindDataFile("icons/filters/filter-csv-import.png"));
m_texmgr.LoadTexture("filter-ddr1-command", FindDataFile("icons/filters/filter-ddr1-command.png"));
m_texmgr.LoadTexture("filter-ddr3-command", FindDataFile("icons/filters/filter-ddr3-command.png"));
m_texmgr.LoadTexture("filter-deskew", FindDataFile("icons/filters/filter-deskew.png"));
m_texmgr.LoadTexture("filter-displayport-aux", FindDataFile("icons/filters/filter-displayport-aux.png"));
m_texmgr.LoadTexture("filter-downsample", FindDataFile("icons/filters/filter-downsample.png"));
m_texmgr.LoadTexture("filter-dram-clocks", FindDataFile("icons/filters/filter-dram-clocks.png"));
m_texmgr.LoadTexture("filter-dram-trcd", FindDataFile("icons/filters/filter-dram-trcd.png"));
m_texmgr.LoadTexture("filter-dram-trfc", FindDataFile("icons/filters/filter-dram-trfc.png"));
m_texmgr.LoadTexture("filter-duty-cycle", FindDataFile("icons/filters/filter-duty-cycle.png"));
m_texmgr.LoadTexture("filter-divide", FindDataFile("icons/filters/filter-divide.png"));
m_texmgr.LoadTexture("filter-envelope", FindDataFile("icons/filters/filter-envelope.png"));
Expand All @@ -903,6 +917,7 @@ void MainWindow::LoadFilterIcons()
m_texmgr.LoadTexture("filter-fir-bandpass", FindDataFile("icons/filters/filter-fir-bandpass.png"));
m_texmgr.LoadTexture("filter-fir-notch", FindDataFile("icons/filters/filter-fir-notch.png"));
m_texmgr.LoadTexture("filter-fft", FindDataFile("icons/filters/filter-fft.png"));
m_texmgr.LoadTexture("filter-fsk", FindDataFile("icons/filters/filter-fsk.png"));
m_texmgr.LoadTexture("filter-frequency", FindDataFile("icons/filters/filter-frequency.png"));
m_texmgr.LoadTexture("filter-fwhm", FindDataFile("icons/filters/filter-fwhm.png"));
m_texmgr.LoadTexture("filter-histogram", FindDataFile("icons/filters/filter-histogram.png"));
Expand All @@ -923,6 +938,7 @@ void MainWindow::LoadFilterIcons()
m_texmgr.LoadTexture("filter-sd-command", FindDataFile("icons/filters/filter-sd-command.png"));
m_texmgr.LoadTexture("filter-sd-data", FindDataFile("icons/filters/filter-sd-bus.png"));
m_texmgr.LoadTexture("filter-sine", FindDataFile("icons/filters/filter-sine.png"));
m_texmgr.LoadTexture("filter-spectrogram", FindDataFile("icons/filters/filter-spectrogram.png"));
m_texmgr.LoadTexture("filter-step", FindDataFile("icons/filters/filter-step.png"));
m_texmgr.LoadTexture("filter-subtract", FindDataFile("icons/filters/filter-subtract.png"));
m_texmgr.LoadTexture("filter-threshold", FindDataFile("icons/filters/filter-threshold.png"));
Expand Down Expand Up @@ -952,9 +968,15 @@ void MainWindow::LoadFilterIcons()
m_filterIconMap[type_index(typeid(ConstellationFilter))] = "filter-constellation";
m_filterIconMap[type_index(typeid(CSVExportFilter))] = "filter-csv-export";
m_filterIconMap[type_index(typeid(CSVImportFilter))] = "filter-csv-import";
m_filterIconMap[type_index(typeid(DDR1Decoder))] = "filter-ddr1-command";
m_filterIconMap[type_index(typeid(DDR3Decoder))] = "filter-ddr3-command";
m_filterIconMap[type_index(typeid(DeskewFilter))] = "filter-deskew";
m_filterIconMap[type_index(typeid(DivideFilter))] = "filter-divide";
m_filterIconMap[type_index(typeid(DownsampleFilter))] = "filter-downsample";
m_filterIconMap[type_index(typeid(DPAuxChannelDecoder))] = "filter-displayport-aux";
m_filterIconMap[type_index(typeid(DramClockFilter))] = "filter-dram-clocks";
m_filterIconMap[type_index(typeid(DramRefreshActivateMeasurement))] = "filter-dram-trfc";
m_filterIconMap[type_index(typeid(DramRowColumnLatencyMeasurement))] = "filter-dram-trcd";
m_filterIconMap[type_index(typeid(DutyCycleMeasurement))] = "filter-duty-cycle";
m_filterIconMap[type_index(typeid(EnvelopeFilter))] = "filter-envelope";
m_filterIconMap[type_index(typeid(Ethernet10BaseTDecoder))] = "filter-rj45";
Expand All @@ -972,6 +994,7 @@ void MainWindow::LoadFilterIcons()
m_filterIconMap[type_index(typeid(FallMeasurement))] = "filter-fall";
m_filterIconMap[type_index(typeid(FFTFilter))] = "filter-fft";
m_filterIconMap[type_index(typeid(FrequencyMeasurement))] = "filter-frequency";
m_filterIconMap[type_index(typeid(FSKDecoder))] = "filter-fsk";
m_filterIconMap[type_index(typeid(FullWidthHalfMax))] = "filter-fwhm";
m_filterIconMap[type_index(typeid(HistogramFilter))] = "filter-histogram";
m_filterIconMap[type_index(typeid(IBM8b10bDecoder))] = "filter-8b10bdecoder";
Expand All @@ -996,6 +1019,7 @@ void MainWindow::LoadFilterIcons()
m_filterIconMap[type_index(typeid(TrendFilter))] = "filter-trend";
m_filterIconMap[type_index(typeid(TopMeasurement))] = "filter-top";
m_filterIconMap[type_index(typeid(OvershootMeasurement))] = "filter-overshoot";
m_filterIconMap[type_index(typeid(SpectrogramFilter))] = "filter-spectrogram";
m_filterIconMap[type_index(typeid(UARTDecoder))] = "filter-uart";
m_filterIconMap[type_index(typeid(UndershootMeasurement))] = "filter-undershoot";
m_filterIconMap[type_index(typeid(UpsampleFilter))] = "filter-upsample";
Expand Down
16 changes: 13 additions & 3 deletions src/ngscopeclient/TextureManager.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/***********************************************************************************************************************
* *
* glscopeclient *
* ngscopeclient *
* *
* Copyright (c) 2012-2022 Andrew D. Zonenberg *
* Copyright (c) 2012-2024 Andrew D. Zonenberg *
* All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the *
Expand Down Expand Up @@ -109,7 +109,17 @@ class TextureManager
const std::string& path);

ImTextureID GetTexture(const std::string& name)
{ return m_textures[name]->GetTexture(); }
{
auto it = m_textures.find(name);
if(it == m_textures.end())
{
LogFatal(
"Texture \"%s\" not found. This is probably the result of a developer mistyping a texture ID.\n",
name.c_str());
}
else
return it->second->GetTexture();
}

std::unique_ptr<vk::raii::Sampler>& GetSampler()
{ return m_sampler; }
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/ngscopeclient/icons/filters/filter-fir-bandpass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/ngscopeclient/icons/filters/filter-fir-notch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ngscopeclient/icons/filters/filter-fsk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
221 changes: 221 additions & 0 deletions src/ngscopeclient/icons/scalable/filter-ddr1-command.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9a28d9f

Please sign in to comment.