Program Reload

More
27 Aug 2019 23:23 #143370 by cmorley
Replied by cmorley on topic Program Reload
let me try to explain.
reload is usually used to update the display eg during offset changes and just to clean the screen.
in this case you wish to 'reload' the _already_ filtered program - which is a temporarily stored file on the system.

What you are asking for is to _refilter_ a program - which is really loading the program again, but without the dialog to choose the path.
That is a new behavior that has not been anticipated for with current widgets.

I don't think it's a big deal to work around - we just need the file path and a way to load linuxcnc using a filter but without a dialog...

Chris M

Please Log in or Create an account to join the conversation.

More
27 Aug 2019 23:26 - 27 Aug 2019 23:27 #143372 by phillc54
Replied by phillc54 on topic Program Reload
Yes, the Axis demo was easy as all I had to do was to get axis-remote to load the file again.

I would imagine that if we could somehow get the original files full path then we could use already existing infrastructure to load the file again.

Edit: I know this is a corner case but it would be nice...
Last edit: 27 Aug 2019 23:27 by phillc54.

Please Log in or Create an account to join the conversation.

More
27 Aug 2019 23:38 #143374 by cmorley
Replied by cmorley on topic Program Reload
As far as I can see with a quick look:
It will require a change to hal_filechooser's _EMC_FileChooser class to remember the original path.
It will then require you to access Gmoccapy's instance of that class - does Gmoccapy allow user access to it's handler file? I didn't think it did. If not then you are talking a modified version of GMoccapy.

Chris

Please Log in or Create an account to join the conversation.

More
27 Aug 2019 23:43 #143376 by phillc54
Replied by phillc54 on topic Program Reload
Thanks for looking Chris.

I don't know about access to the handler file and I sure don't want to run a modified version of Gmoccapy, I have enough trouble keeping up with what I have now.

It's not a dealbreaker. At the moment if anyone uses that feature on a Gmoccapy config they will get a popup telling them to load the file from scratch again. It works but doesn't look pretty.

Please Log in or Create an account to join the conversation.

More
27 Aug 2019 23:48 #143378 by cmorley
Replied by cmorley on topic Program Reload
yes it's too bad we can't send custom NML messages between user programs - that's another way to get around it - it's not the first time I've hit this similar problem (needing to push information to another program)

Well I'll add the capability to refilter to qtvcp ...
Maybe someone else will see something I didn't.

Please Log in or Create an account to join the conversation.

More
28 Aug 2019 09:18 #143425 by phillc54
Replied by phillc54 on topic Program Reload
I managed to get it functioning OK using the temp file with linuxcnc.stat() and linuxcnc.command() and doing the filtering in the gladevcp handler. It turned out pretty good.

Chris, I see you have already done a bit for this in QtVCP. I hope to get back to that soon.

Please Log in or Create an account to join the conversation.

More
28 Aug 2019 09:27 #143428 by rodw
Replied by rodw on topic Program Reload
Phill, that looks pretty awesome!
The following user(s) said Thank You: phillc54

Please Log in or Create an account to join the conversation.

More
28 Aug 2019 10:26 #143434 by tommylight
Replied by tommylight on topic Program Reload

rodw wrote: Phill, that looks pretty awesome!

Sorry, but i have to agree. ! :)
The following user(s) said Thank You: phillc54, rodw

Please Log in or Create an account to join the conversation.

More
28 Aug 2019 10:31 #143435 by cmorley
Replied by cmorley on topic Program Reload
Nice job Phill!

Yes I really need a killer app for qtvcp - I'll do what i can to support you when you get back to it.

Chris
The following user(s) said Thank You: phillc54, tommylight

Please Log in or Create an account to join the conversation.

Moderators: newbynobi
Time to create page: 0.097 seconds
Powered by Kunena Forum