35#ifndef ProtocolAnalyzerDialog_h
36#define ProtocolAnalyzerDialog_h
41#include "../scopehal/PacketDecoder.h"
82 std::string GetFilterExpression()
85 void SetFilterExpression(
const std::string& f);
89 std::shared_ptr<PacketManager> m_mgr;
113 void DoDataColumn(
Packet* pack, ImFont* dataFont, std::vector<RowData>& rows,
size_t nrow);
Generic dialog box or other popup window.
Definition: Dialog.h:44
Top level application window.
Definition: MainWindow.h:115
Definition: PacketDecoder.h:85
Definition: PacketDecoder.h:40
UI for the history system.
Definition: ProtocolAnalyzerDialog.h:49
size_t m_bytesPerLine
The number of bytes per line we can display with the current column setup.
Definition: ProtocolAnalyzerDialog.h:119
bool PollForSelectionChanges()
Returns true if a new waveform was selected this frame.
Definition: ProtocolAnalyzerDialog.h:61
virtual bool DoRender()
Renders the dialog and handles UI events.
Definition: ProtocolAnalyzerDialog.cpp:93
bool m_needToScrollToSelectedPacket
True if the selected packet should be scrolled to.
Definition: ProtocolAnalyzerDialog.h:111
void OnWaveformLoaded(TimePoint t)
Called when a new waveform arrives.
Definition: ProtocolAnalyzerDialog.h:77
std::string m_filterExpression
Filter expression we're typing.
Definition: ProtocolAnalyzerDialog.h:122
void OnCursorMoved(int64_t offset)
Notifies the dialog that a cursor has been moved.
Definition: ProtocolAnalyzerDialog.cpp:622
void DoDataColumn(Packet *pack, ImFont *dataFont, std::vector< RowData > &rows, size_t nrow)
Handles the "data" column for packets.
Definition: ProtocolAnalyzerDialog.cpp:430
enum ProtocolAnalyzerDialog::@2 m_dataFormat
Output data format.
Packet * m_selectedPacket
Currently selected packet.
Definition: ProtocolAnalyzerDialog.h:100
bool m_firstDataBlockOfFrame
True the first time DoDataColumn() is called in a given frame.
Definition: ProtocolAnalyzerDialog.h:116
TimePoint m_lastSelectedWaveform
Timestamp of the previously selected waveform.
Definition: ProtocolAnalyzerDialog.h:97
std::string m_committedFilterExpression
Filter expression we're actually using.
Definition: ProtocolAnalyzerDialog.h:125
bool m_waveformChanged
True if a new waveform in the dialog was selected this frame.
Definition: ProtocolAnalyzerDialog.h:94
A Session stores all of the instrument configuration and other state the user has open.
Definition: Session.h:95
A timestamp, measured in seconds + femtoseconds.
Definition: Marker.h:42