SCREEN_CONTROL_LAST_SETTING usage

More
4 years 10 months ago #229429 by snowgoer540
I am trying to figure out how to use the following items from the preferences file. No matter how I manipulate them, the graphics preview window loads the same way:
Code:
[SCREEN_CONTROL_LAST_SETTING] conv_preview-user-view = p conv_preview-user-zoom = 10.0 conv_preview-user-panx = 0.0 conv_preview-user-pany = 0.0 conv_preview-user-lat = 0.0 conv_preview-user-lon = 0.0 gcodegraphics-user-view = z gcodegraphics-user-zoom = 10.0 gcodegraphics-user-panx = 0.0 gcodegraphics-user-pany = 0.0 gcodegraphics-user-lat = 0.0 gcodegraphics-user-lon = 0.0

Perhaps I am missing something?

What I am trying to accomplish is having the zoom level be "zoom all" and display the entirety of the machine's extents when the GUI starts, or when no programs are loaded, etc. Any ideas otherwise?

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

More
4 years 10 months ago #229442 by cmorley
From memory, the graphics screen is very stubborn about it's default display.
again from memory, loading a default program allows the preview to be set to a different default.

i remember investigating this (at the time just to get something besides 'P' to display) and i could not find what the secret was besides a default program.
This is deep in the underlaying common code. I believe AXIS works the same.

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

More
4 years 10 months ago #229448 by snowgoer540
Yea, it seemed like it wouldnt be easy.  No worries, it's not a huge deal, just was a rabbit hole I had started down.

What is the correct use for the [SCREEN_CONTROL_LAST_SETTING] stuff in the preferences file?  I cant seem to get them to affect any change in the GUI...?

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

More
4 years 10 months ago #229451 by cmorley
last settings - holds the user view settings - for the user view action button (if there is one)
checkout qtdragon sim for the userview setting/recording button.
The following user(s) said Thank You: snowgoer540

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

More
4 years 10 months ago #229457 by snowgoer540
Thanks Chris, I’ll take a peep then

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

More
4 years 10 months ago #229493 by snowgoer540
I've worked out the user button stuff, thanks for the nudge in the right direction.  I am not using ActionToolButton though, in favor of two separate buttons, one to set the view stuff, and one to change to that view.  Calling ACTION.SET_GRAPHICS_VIEW('record-view') and ACTION.SET_GRAPHICS_VIEW('set-recorded-view') respectively.

What I haven't worked out is how to have the user view be the default view on GUI load.  It seems if you try to call the set-recorded-view before the graphics window is shown, it causes the works to crash.

Is there a way to do this?  Since there are pyqtProperties, I thought maybe there was a way to do it with stylesheets, but nothing I tried worked.  Hopefully I missed something simple?
 

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

Moderators: cmorley
Time to create page: 0.060 seconds
Powered by Kunena Forum