35#ifndef StreamBrowserDialog_h
36#define StreamBrowserDialog_h
53 std::vector<uint64_t> m_rates;
54 std::vector<std::string> m_rateNames;
61 return m_rates[m_rate];
65 std::vector<uint64_t> m_depths;
66 std::vector<std::string> m_depthNames;
74 std::string m_rbwText;
78 std::string m_centerText;
81 std::string m_spanText;
84 std::string m_startText;
87 std::string m_endText;
91 std::string m_integrationText;
92 double m_integrationTime;
95 std::vector<std::string> m_adcmodeNames;
107 void FlushConfigCache();
125 void renderInfoLink(
const char *label,
const char *linktext,
bool &clicked,
bool &hovered);
134 const std::vector<std::string>& values,
135 bool useColorForText =
false,
136 uint8_t cropTextTo = 0,
137 bool hideArrow =
true);
162 std::shared_ptr<StreamBrowserTimebaseInfo> GetTimebaseInfoFor(std::shared_ptr<Oscilloscope>& scope);
164 void DoFrequencySettings(std::shared_ptr<Oscilloscope> scope);
165 void DoSpectrometerSettings(std::shared_ptr<SCPISpectrometer> spec);
168 void renderChannelNode(std::shared_ptr<Instrument> instrument,
size_t channelIndex,
bool isLast);
183 std::map<std::shared_ptr<Instrument>,
bool> m_instrumentDownloadIsSlow;
188 std::map<std::shared_ptr<Instrument>, std::shared_ptr<StreamBrowserTimebaseInfo> >
m_timebaseConfig;
193 ImGui::PushStyleVar(ImGuiStyleVar_DisabledAlpha, 1);
194 ImGui::BeginDisabled();
195 ImGui::SmallButton(label);
196 ImGui::EndDisabled();
197 ImGui::PopStyleVar();
Generic dialog box or other popup window.
Definition: Dialog.h:44
Abstract base class for all filter graph blocks which are not physical instrument channels.
Definition: Filter.h:95
A single channel of a function generator.
Definition: FunctionGeneratorChannel.h:45
A single channel of an instrument.
Definition: InstrumentChannel.h:63
Top level application window.
Definition: MainWindow.h:115
A single channel of a power supply.
Definition: PowerSupplyChannel.h:37
A Session stores all of the instrument configuration and other state the user has open.
Definition: Session.h:95
Definition: StreamBrowserDialog.h:100
void startBadgeLine()
prepare rendering context to display a badge at the end of current line
Definition: StreamBrowserDialog.cpp:152
InstrumentBadge
State of badges used in intrument node rendering.
Definition: StreamBrowserDialog.h:114
bool renderOnOffToggle(const char *label, bool alignRight, bool curValue)
Render an on/off toggle button combo.
Definition: StreamBrowserDialog.cpp:414
virtual bool DoRender() override
Renders the dialog and handles UI events.
Definition: StreamBrowserDialog.cpp:1620
float m_badgeXMin
Positions for badge display.
Definition: StreamBrowserDialog.h:180
void renderDownloadProgress(std::shared_ptr< Instrument > inst, InstrumentChannel *chan, bool isLast)
Render a download progress bar for a given instrument channel.
Definition: StreamBrowserDialog.cpp:447
bool renderToggleEXT(const char *label, bool alignRight, ImVec4 color, bool &curValue)
Render a toggle button combo.
Definition: StreamBrowserDialog.cpp:398
void renderPsuRows(bool isVoltage, bool cc, PowerSupplyChannel *chan, const char *setValue, const char *measuredValue, bool &clicked, bool &hovered)
Render a PSU properties row.
Definition: StreamBrowserDialog.cpp:595
void renderChannelNode(std::shared_ptr< Instrument > instrument, size_t channelIndex, bool isLast)
Rendering of a channel node.
Definition: StreamBrowserDialog.cpp:1244
void renderInstrumentBadge(std::shared_ptr< Instrument > inst, bool latched, InstrumentBadge badge)
render a badge for an instrument node
Definition: StreamBrowserDialog.cpp:167
void renderFilterNode(Filter *filter)
Rendering of a Filter node.
Definition: StreamBrowserDialog.cpp:1544
std::map< std::shared_ptr< Instrument >, std::shared_ptr< StreamBrowserTimebaseInfo > > m_timebaseConfig
Map of instruments to timebase settings.
Definition: StreamBrowserDialog.h:188
void SmallDisabledButton(const char *label)
Helper to render a small button that's non-interactive.
Definition: StreamBrowserDialog.h:191
bool renderToggle(const char *label, bool alignRight, ImVec4 color, bool curValue)
Render a toggle button combo.
Definition: StreamBrowserDialog.cpp:384
void renderAwgProperties(std::shared_ptr< FunctionGenerator > awg, FunctionGeneratorChannel *awgchan)
Render AWG channel properties.
Definition: StreamBrowserDialog.cpp:668
void renderStreamNode(std::shared_ptr< Instrument > instrument, InstrumentChannel *channel, size_t streamIndex, bool renderName, bool renderProps, bool isLast)
Rendering of a stream node.
Definition: StreamBrowserDialog.cpp:1443
void renderInfoLink(const char *label, const char *linktext, bool &clicked, bool &hovered)
Render a link of the "Sample rate: 4 GSa/s" type that shows up in the scope properties box.
Definition: StreamBrowserDialog.cpp:139
bool renderOnOffToggleEXT(const char *label, bool alignRight, bool &curValue)
Render an on/off toggle button combo.
Definition: StreamBrowserDialog.cpp:430
void DoTimebaseSettings(std::shared_ptr< Oscilloscope > scope)
Add nodes for timebase controls under an instrument.
Definition: StreamBrowserDialog.cpp:1103
void renderBadge(ImVec4 color,...)
render a badge at the end of current line with provided color and text
Definition: StreamBrowserDialog.cpp:221
void renderInstrumentNode(std::shared_ptr< Instrument > instrument)
Rendering of an instrument node.
Definition: StreamBrowserDialog.cpp:849
std::map< std::shared_ptr< Instrument >, std::pair< double, InstrumentBadge > > m_instrumentLastBadge
Store the last state of an intrument badge (used for badge state latching)
Definition: StreamBrowserDialog.h:185
Definition: StreamBrowserDialog.h:46