-
-
Notifications
You must be signed in to change notification settings - Fork 769
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
Added File Browser / File Tree panel #2460
Conversation
First of all, thanks for digging into UGS. =) I have a couple of things that I would like to tweak that I think will make things easier in the long run. The I think that you should disable the panel if the machine is running. Otherwise it could technically be possible to load a new file while the machine is running. File loading is handled a bit differently in the platform edition. The easiest way is probably to instanciate and execute this action. Translations of actions and TopComponent can be a bit tricky, the most robust way is probably this: |
Thanks for the review, @breiler!
Question: naming-wise, which makes more sense for this codebase: I should have some time to implement these changes tonight after work. |
So when trying to move the Idea is smart enough to catch possible circular dependencies and gives this warning:
Any suggestions? Or I can just ignore the WidgetPreviewer, as I'm guessing that might be legacy? |
@breiler this should be back in review. Thank you for your time to look over it! |
@breiler let me know if there's anything I'm missing. |
See the two comments I made in the review, the first one I think must be fixed before merging. |
This seems to be the only comment I can see.
|
...tform-ugscore/src/main/java/com/willwinder/ugs/nbp/core/control/FileBrowserTopComponent.java
Outdated
Show resolved
Hide resolved
.../ugs-platform-ugscore/src/main/java/com/willwinder/ugs/nbp/core/panels/FileBrowserPanel.java
Show resolved
Hide resolved
Both comments have been addressed. Thank you! |
Description
Added a File Browser panel, similar to how most CNCs with control boards have file lists.
The purpose of this is to make it easier for the user to load files.
Current issues:
GUIHelpers.openGcodeFile(gcodeFile, backend);
like it's used in theMainWindow
.Note to reviewer: please let me know what other issues are found and which of the issues i mentioned need addressing.
Screenshots: