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

[gsoc] support open/save/copy/paste/new actions in gr-web #2

Draft
wants to merge 13 commits into
base: update-to-current-grc-qt
Choose a base branch
from

Conversation

eat4toast
Copy link

@eat4toast eat4toast commented Oct 2, 2022

This draft pr intend to support open/save/copy/paste/new actions in gnuradio-web
those contexts are still WIP since there are some weird interactions with emscripten virtual file system API.

refer to open and save. The logic is really straightforward:

for open:

  • Get the file path and import the data
  • trans the data to flowgraph
  • update flow graph

for save or save as

  • Get the saved name
  • export the data to the YAML file under the specific path name

I failed with the directly logging to ensure whether they are called correctly to get the file path/name, which means the official QFileDialog.getOpenFileName does not work well. (Sad)

for copy and paste:

Since the upstream qt_gui in gnuradio has not implemented the copy and paste full feature, I try to call the origin flowgraph::copy/paste related method, with the flowgraph update. But seems there lack of some block connections with the transplant of the copy && paste.

for new:

it will new flow graph and set the newer one to central.

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.

None yet

1 participant