Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional command-line params and support for plugin notifications #489

Closed
wants to merge 1 commit into from

Conversation

GerardoPardo
Copy link
Contributor

Added command-line parameters that configure various including window titles, content of the "about' window, the splash image, set of enabled and disabled plugins, selecting a "default" streamer, auto starting the "default" streamer.

Added support for managing streaming plugin notifications

Added support for streaming plugin start/stop "out of band" so that PJ can always know whether the plugin is running or not.

@facontidavide
Copy link
Owner

Hi Gerardo.

I think that this PR is too big for its own sake. This makes it more complicated for me to review it.

My initial suggestions are listed in the pending review.

Additionally:

  1. Why read strings from file (MainWindow::ReadFileContent) instead of passing directly a string?
  2. I need to review in detail the "notification mechanism"

@GerardoPardo
Copy link
Contributor Author

GerardoPardo commented Aug 16, 2021 via email

@facontidavide
Copy link
Owner

ok, Let me cherry-pick some of your changes and do it in "my way".

Since once this is merged, I become responsible to support this, I need to be sure that these changes are consistent with the vision I have 😄

facontidavide added a commit that referenced this pull request Aug 28, 2021
- new options [enabled_plugins] and [disabled_plugins]
- new option [skin_path]
@facontidavide
Copy link
Owner

In the last commit f7959a4 I added some of the features you suggest with a twist:

@facontidavide
Copy link
Owner

More changes pulled from your PR.

8be5c05

The outstanding modifications you suggest are:

  • Automatically start a plugin (I will think take care of this feature miself, don't worry)
  • Add signal DataStreamer::runStatusChanged . I think this is redundant in scope with DataStreamer::closed, am I missing something? It is OK for a plugin to stop itself (generally after an error), but no to start itself, in my opinion.

I suggest closing this PR and if you want to discuss the other features, we can do it in smaller and more focused Pull Requests.

@facontidavide
Copy link
Owner

By the way, I modified the dummy streamer (launch with option -t). You can see there how my modified notifications work (I will keep the bell always visible but disabler or enabled).

@GerardoPardo
Copy link
Contributor Author

GerardoPardo commented Aug 30, 2021 via email

@facontidavide
Copy link
Owner

I added the option "start_streamer" 1a716ba

To quickly test it:

         plotjuggler -t --start_streamer libDataStreamSample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants