rohd_devtools_widgets
library
Constants
-
kDefaultNavigableFormats
→ const List<RohdSourceFormat>
-
Formats shown when source availability is unknown (module info not yet
loaded, the extension is unreachable, or the query errored).
-
Popup-menu value used to open the signal display-format submenu.
Functions
-
Build the standard pair of popup-menu items shown when right-clicking
a single multi-bit signal:
-
Build
Go to <format> Source popup-menu items for formats.
-
Standard popup-menu item using the same fixed icon gutter as source rows.
-
Builds the command that opens the signal display-format submenu.
-
captureBoundaryToPng(BuildContext context, {required GlobalKey<State<StatefulWidget>> boundaryKey, String filePrefix = 'export', double pixelRatio = 2.0, Future<String?> saveFn(Uint8List pngBytes, String fileName)?, Future<Uint8List?> encodeFn(RenderRepaintBoundary boundary, double pixelRatio)?})
→ Future<bool>
-
Capture a RepaintBoundary identified by
boundaryKey, encode to PNG,
save/download, and show a toast.
-
expandLogicType(Map<String, dynamic>? logicType, {String? parentBinaryValue})
→ List<TypeFieldNode>
-
Expand a
logic_type metadata map into a tree of TypeFieldNodes.
-
formatFieldValue(String? binaryValue, int width)
→ String
-
Format a binary field value for display.
-
formatTypeTooltip(Map<String, dynamic>? logicType, {String? parentBinaryValue, String? signalName, int maxDepth = 6})
→ String
-
Build a multi-line indented string showing struct/array fields with values.
-
gotoSourceFormatFromValue(String? value)
→ RohdSourceFormat?
-
Decode a popup-menu value produced by gotoSourceMenuValue.
-
Menu label for
Go to <format> Source, pluralized with count.
-
Encode a popup-menu value for navigating to
format.
-
gotoSourceShortName(RohdSourceFormat format)
→ String
-
Short, menu-friendly name for
format (e.g. 'ROHD', 'SV').
-
hexToBinary(String hexValue, int width)
→ String?
-
Convert a hex value string (e.g. "0x1a3f" or "1a3f") to binary (MSB-first).
-
regExpAllMatches(String source, String input, {int start = 0, bool multiLine = false, bool caseSensitive = true, bool unicode = false, bool dotAll = false})
→ Iterable<Match>
-
Returns all matches for
source in input, beginning at start.
-
regExpFirstMatch(String source, String input, {bool multiLine = false, bool caseSensitive = true, bool unicode = false, bool dotAll = false})
→ Match?
-
Returns the first match for
source in input, if one exists.
-
regExpHasMatch(String source, String input, {bool multiLine = false, bool caseSensitive = true, bool unicode = false, bool dotAll = false})
→ bool
-
Whether
input contains a match for source.
-
regExpPattern(String source, {bool multiLine = false, bool caseSensitive = true, bool unicode = false, bool dotAll = false})
→ Pattern
-
Creates a regular-expression pattern with the requested matching options.
-
Translate a popup-menu
value returned by showMenu<String> into a
BitExpansionAction, showing any follow-up dialog as needed.
-
resolveNavigableFormats(RohdModuleInfo? info)
→ List<RohdSourceFormat>
-
Resolve which navigable source formats to display for
info.
-
savePngBytes(Uint8List pngBytes, String fileName)
→ Future<String?>
-
Stub — always throws.
-
showBitRangeDialog(BuildContext context, {required String signalName, required int width})
→ Future<(int, int)?>
-
Show a dialog to select a bit range for a signal.
-
showDefineBitFieldsDialog(BuildContext context, {required String signalName, required int width, List<BitFieldDef>? existingDefs})
→ Future<List<BitFieldDef>?>
-
Show a dialog to define named bit-field slices on a signal.
-
showExportToast(BuildContext context, String message, {Duration duration = const Duration(seconds: 3)})
→ void
-
Show a brief floating toast at the bottom of the screen.
-
Shows signal display-format choices and returns the selected format.
-
sourceFormatIcon(RohdSourceFormat format, {double size = 18})
→ Widget
-
Backwards-compatible alias for sourceFormatMenuIcon.
-
sourceFormatIconStrip({required Iterable<RohdSourceFormat> formats, SourceFormatIconBuilder iconBuilder = sourceFormatMenuIcon, double size = 16, double gap = 3})
→ Widget
-
Compact strip of source/output format icons for trace-picker menu rows.
-
App-bar-style icon for a source/output
format.
-
Standard popup-menu row with a fixed-width prefix icon and ellipsized label.