feat(sdk): parser dialog injection with config persistence#30
Merged
pabloinigoblasco merged 1 commit intoApr 4, 2026
Merged
Conversation
Adds support for injecting parser-specific option dialogs into data source
dialogs (MQTT, ZMQ) via a pj_parser_slot widget. When the encoding combo
changes, the DialogEngine queries the parser_dialog_provider callback and
dynamically loads the parser's UI into the slot.
SDK extensions:
- WidgetData: setPlainText(), setFolderPicker()
- WidgetDataView: plainText(), isFolderPicker(), folderPickerTitle()
- WidgetEvent: folderSelected()
- DialogPluginTyped: onFolderSelected() virtual dispatch
- widget_binding: QPlainTextEdit support
DialogEngine:
- QueryParserDialogFn callback to resolve parser dialog vtables
- initial_parser_config for restoring parser dialog state
- parserConfig() accessor for retrieving parser config after accept
- Folder picker support via QFileDialog::getExistingDirectory
Proto app:
- Parser config persistence in QSettings (ParserConfig/{source})
- setParserConfig() on DataSourceSession for delegated ingest
- Error propagation from parser in rhPushRawMessage
dbc4e19 to
3694f05
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for injecting parser-specific option dialogs into data source dialogs (MQTT, ZMQ) via a
pj_parser_slotwidget. When the encoding combo changes, the DialogEngine queries the parser_dialog_provider callback and dynamically loads the parser's UI into the slot.Changes
SDK extensions:
WidgetData:setPlainText(),setFolderPicker()WidgetDataView:plainText(),isFolderPicker(),folderPickerTitle()WidgetEvent:folderSelected()DialogPluginTyped:onFolderSelected()virtual dispatchwidget_binding: QPlainTextEdit supportDialogEngine:
QueryParserDialogFncallback to resolve parser dialog vtablesinitial_parser_configfor restoring parser dialog stateparserConfig()accessor for retrieving parser config after acceptQFileDialog::getExistingDirectoryProto app:
ParserConfig/{source})setParserConfig()on DataSourceSession for delegated ingestrhPushRawMessageTest Plan