Hiding a GladeVCP panel
15 Mar 2014 14:02 #44833
by cmorley
a couple in sim/axis/gladevcp/
Seems a few have disappeared in the reshuffle.
Chris M
Replied by cmorley on topic Hiding a GladeVCP panel
The samples that the GladeVCP guide refer to does not exist in the configs directory anymore. Is there some other place that it could be found?
a couple in sim/axis/gladevcp/
Seems a few have disappeared in the reshuffle.
Chris M
Please Log in or Create an account to join the conversation.
15 Mar 2014 14:44 #44834
by mariusl
No Chris it is an embedded panel that is loaded into a user tab provided by Gmoccapy on the main display. There are four such "boxes" provided.
wiki.linuxcnc.org/cgi-bin/wiki.pl?Gmocca...tabs_and_side_panels
I want to hide the custom box or at least the contents of the box.
The panel will contain much the same as the Axis remap tool change panel. Two buttons, two leds, some labels etc. This panel must only become visible when the M6 remap code sets a pin. Once the user is done with the tool change, the remap code will reset the pin and the panel must disappear.
I will try to make a generic solution to be used with all four custom boxes on Gmoccapy.
Regards
Marius
www.bluearccnc.com
Replied by mariusl on topic Hiding a GladeVCP panel
So now I think you want to show / hide a panel that displays over top of Gmoccapy (not embedded). yes?
sort of like a dialog box.
Chris M
No Chris it is an embedded panel that is loaded into a user tab provided by Gmoccapy on the main display. There are four such "boxes" provided.
wiki.linuxcnc.org/cgi-bin/wiki.pl?Gmocca...tabs_and_side_panels
I want to hide the custom box or at least the contents of the box.
The panel will contain much the same as the Axis remap tool change panel. Two buttons, two leds, some labels etc. This panel must only become visible when the M6 remap code sets a pin. Once the user is done with the tool change, the remap code will reset the pin and the panel must disappear.
I will try to make a generic solution to be used with all four custom boxes on Gmoccapy.
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
15 Mar 2014 16:07 #44839
by ArcEye
Replied by ArcEye on topic Hiding a GladeVCP panel
Just a thought.
Why not embed a tabbed widget, with different panels on each tab.
That will take care of the show() hide() aspect for different windows
There will be an existing method to select any of the tabs and make them visible, instead of writing a complete handler, you will only have to call that method
setCurrentIndex() or setCurrentWidget() in Qt, glade will have an equivilent
You should also have a method for disabling the tab (greying it out and making the child widgets inactive)
This could be used even if the tab is displayed
regards
Why not embed a tabbed widget, with different panels on each tab.
That will take care of the show() hide() aspect for different windows
There will be an existing method to select any of the tabs and make them visible, instead of writing a complete handler, you will only have to call that method
setCurrentIndex() or setCurrentWidget() in Qt, glade will have an equivilent
You should also have a method for disabling the tab (greying it out and making the child widgets inactive)
This could be used even if the tab is displayed
regards
Please Log in or Create an account to join the conversation.
16 Mar 2014 04:07 #44862
by cmorley
Replied by cmorley on topic Hiding a GladeVCP panel
I see Norbert helped you get what you want with Gmoccapy...but for the future
I add a new widget HAL_HideTable that with hide / show it's children widgets based on a HAL pin.
Chris M
I add a new widget HAL_HideTable that with hide / show it's children widgets based on a HAL pin.
Chris M
The following user(s) said Thank You: mariusl
Please Log in or Create an account to join the conversation.
16 Mar 2014 13:40 #44874
by mariusl
Regards
Marius
www.bluearccnc.com
Replied by mariusl on topic Hiding a GladeVCP panel
Thanks Chris, it is a very handy feature indeed.
Regards
Marius
www.bluearccnc.com
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.173 seconds