Custom Panel

More
05 Mar 2025 16:40 #323287 by noqui
Custom Panel was created by noqui
Hi. I am a little bit confuse about working with your own Panels.
I modified the AXIS.ui with this panel ROBOT.ui

Se image 1. ROBOTui

Basically, I only added 6 tab windows

Then, as in the documentary PyVCP says it must be included in the INI I did it.
See image 2 PyVCP

But when I run again the Linux Stepconf to include the changes I find a place where I should add custom panels.
See image 3      Stepconf


In conclusion I don´t know where I have to place my custom ROBOT.ui that is an AXIS.ui modified.

Sorry for my English, is not my mother tongue,
By the way I am working in the translation into Spanish of the Developers Manual - 25 January 2025.

Thanks a lot.
Attachments:

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

  • Todd Zuercher
  • Todd Zuercher's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
05 Mar 2025 18:04 #323296 by Todd Zuercher
Replied by Todd Zuercher on topic Custom Panel
The instructions in the manual are what you should follow for building or modifying a configuration.

Stepconfig, is a wizard application for creating basic machine configurations. It asks you questions and you fill in the answers about your machine config, then it builds the configurations files (*.hal, *.ini ...) for you. The end result being a set of machine config files that might work for you, or be a stepping off point giving you a framework to create a more complex configuration from.

PS once you've created a config using one of the wizards, if you make manual hand modifications to the config files, do not try to make changes using the wizards. Because the wizards do not look at the existing config files for info, any previous changes to them will be lost and overwritten. (They work from other files that are not used for running Linuxcnc.)
The following user(s) said Thank You: noqui

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

More
05 Mar 2025 18:07 #323297 by cmorley
Replied by cmorley on topic Custom Panel
Looks like you are using Qtaxis?
Looks like you are modifying the screen rather then embedding a custom panel?

You would need to follow Qtvcp docs for Qtaxis modifications. I can help once you confirm what you are doing.
The following user(s) said Thank You: noqui

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

More
05 Mar 2025 21:37 - 05 Mar 2025 22:20 #323316 by noqui
Replied by noqui on topic Custom Panel
I used Qt 5 Designer to modify Qtaxis.ui
Through these new 5 tab windows I will add some widgets to each tab window. One will have a Camera, another a simulation of the robot made in FreeCAD, etc.

Any help would be many steps forwards. Thanks a lot.
Last edit: 05 Mar 2025 22:20 by noqui.

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

More
07 Mar 2025 02:38 #323395 by cmorley
Replied by cmorley on topic Custom Panel
To use your modified version, put the .ui file in:
YOUR CONFIGURATION FOLDER/qtvcp/screens/qtaxis/
use the name qtaxis.ui

Qtvcp should load your modified .ui file.
The following user(s) said Thank You: noqui

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

More
07 Mar 2025 17:18 - 07 Mar 2025 19:09 #323441 by noqui
Replied by noqui on topic Custom Panel
Ok. I started again from 0.

I downloaded the linuxcnc-uspace_2.9.3_amd64.deb file.
I extract the files in a newlinuxcncn directory.
I replace the qtaxis.ui with my qtaxis.ui

What's next ?
I ask in order not to commit mistakes.

Thanks a lot.
Last edit: 07 Mar 2025 19:09 by noqui.

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

More
08 Mar 2025 02:36 #323486 by cmorley
Replied by cmorley on topic Custom Panel
You don't replace the original ui file, though that will work.
you put it in YOUR CONFIGURATION FOLDER/qtvcp/screens/qtaxis/qtaxis.ui
Qtvcp will see it there and use it instead of the original/
The following user(s) said Thank You: noqui

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

More
08 Mar 2025 03:22 - 08 Mar 2025 04:10 #323489 by noqui
Replied by noqui on topic Custom Panel
Sorry, yes, I replaced the qtaxis.ui in my configuration folder/qtvcp/screens/qtaxis.ui (new), and then what must I do?.
Thanks a lot, cmorley
Last edit: 08 Mar 2025 04:10 by noqui.

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

More
08 Mar 2025 17:01 #323533 by cmorley
Replied by cmorley on topic Custom Panel
Then start linuxcnc with your selected configuration.
It should see your modified .ui file and use it.

If it does not, change the INI to debug mode (DISPLAY = qtvcp -d qtaxis)
run linuxcnc in a terminal and post the output.
The following user(s) said Thank You: noqui

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

Time to create page: 0.101 seconds
Powered by Kunena Forum