Screen shots of gui designs

More
23 Oct 2018 20:50 #119284 by KCJ
Replied by KCJ on topic Screen shots of gui designs
Chris, that looks great!
Does it use NGCGUI style subs?

I wrote a parser for NGCGUI subs that will pull in values from widgets in a QMainWindow that have an objectName that match the sub variable names, and pass them as arguments when the sub is called ...

Cheers,
Kurt

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

More
23 Oct 2018 21:09 #119288 by cmorley
Replied by cmorley on topic Screen shots of gui designs
No it parses an O word file that has magic comments.
Which also specifies what SVG file and what layer to use as the icon and full view
here is the probe file:
Chris M
; MACROCOMMAND=r1 Max,Fast Feed,Slow Feed,d1 (mm)
; MACRODEFAULTS=1,25,.1,6
; MACROSVG=LatheMacro.svg,8,9
; O<probe-hole> call [Max Radius] [slow_feed] [fast_feed] [diameter]

; #1 Max radius
; #2 fast probe speed
; #3 slow probe feed
; #5 probe diameter (in mm)

O<probe-hole> sub

; Fast feed for roughing in measurements
G20 F#2

#1000=#1 ;max radius

G91 G38.3 Z.00001
#1001=#5061
#1002=#5062

G91 G38.2 X#1000
#1003=#5061
G90 G0 X#1001
G91 G38.2 X[0-#1000]
#1004=#5061
#1001=[[#1003+#1004]/2]
G90 G0 X#1001

G91 G38.2 Y#1000
#1005=#5062
G90 G0 Y#1002
G91 G38.2 Y[0-#1000]
#1006=#5062
#1002=[[#1005+#1006]/2]
G90 G0 Y#1002


G91 G38.2 X#1000
#1003=#5061
G90 G0 X#1001
G91 G38.2 X[0-#1000]
#1004=#5061
#1001=[[#1003+#1004]/2]
G90 G0 X#1001

G91 G38.2 Y#1000
#1005=#5062
G90 G0 Y#1002
G91 G38.2 Y[0-#1000]
#1006=#5062
#1002=[[#1005+#1006]/2]
G90 G0 Y#1002

; Slow probe for accuracy
F#3

G90 G0 X[#1003-0.005]
G91 G38.2 X0.010
#1003=#5061
G90 G0 X[#1004+0.005]
G91 G38.2 X-0.010
#1004=#5061
#1001=[[#1003+#1004]/2]
G90 G0 X#1001

G90 G0 Y[#1005-0.005]
G91 G38.2 Y0.010
#1005=#5062
G90 G0 Y[#1006+0.005]
G91 G38.2 Y-0.010
#1006=#5062
#1002=[[#1005+#1006]/2]
G90 G0 Y#1002
G91 G1 F1 X[0-#5071] Y[0-#5072]
G90

#1007=[#1003-#1004+[#5/25.4]]
#1008=[#1005-#1006+[#5/25.4]]
#1009=[[#1007+#1008]/2]
#1010=[atan[#1002]/[#1001]]
#1011=[sqrt[[#1001*#1001]+[#1002*#1002]]]

(debug,Dia #1009 Ang #1010 Dist #1011)
O<probe-hole> endsub
The following user(s) said Thank You: KCJ

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

More
23 Oct 2018 21:22 #119290 by KCJ
Replied by KCJ on topic Screen shots of gui designs
I like that, especially being able to specify the image file. I was trying to stay compatible with existing NGCGUI subs, but it seems that not many people use them anyway, and it's not much work to convert to your format.
The following user(s) said Thank You: Lcvette

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

More
23 Oct 2018 21:39 #119292 by cmorley
Replied by cmorley on topic Screen shots of gui designs
Yes the svg file format makes it compact and resizable.
It also makes it not much work to add the capability to preexisting Owords files and without breaking the oword subroutine from being used natively.

Again, it would be nice if all screens could use the same format - so they are all compatible. This was my initial idea which seemed to work nicely.

Chris M
The following user(s) said Thank You: Lcvette

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

More
13 Dec 2018 17:47 #122376 by Lcvette
Replied by Lcvette on topic Screen shots of gui designs
this is fantastic! but oh how I wish we were all working on the same problems together, we could have been done by now with a mill, lathe, plasma gui with crazy awesome features!
The following user(s) said Thank You: tommylight

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

More
13 Dec 2018 17:56 #122377 by cmorley
Replied by cmorley on topic Screen shots of gui designs
Yes I agree.

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

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

More
13 Dec 2018 18:20 #122380 by KCJ
Replied by KCJ on topic Screen shots of gui designs
I am solely responsible for the fragmentation of efforts on the PyQt based VCP projects. I had no intention of starting a "competing" project, but mostly due to poor communication on my part that is what happened. I trust that the projects have different enough goals that they will both be valuable additions to LinuxCNC.

Kurt
The following user(s) said Thank You: tommylight, Lcvette

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

More
28 Dec 2018 13:42 #123015 by BigJohnT

KCJ wrote: Chris, that looks great!
Does it use NGCGUI style subs?

I wrote a parser for NGCGUI subs that will pull in values from widgets in a QMainWindow that have an objectName that match the sub variable names, and pass them as arguments when the sub is called ...

Cheers,
Kurt


I use NGCGUI subs a lot for my lathe and a bit for my plasma and hmm also on my knee mill.

JT
The following user(s) said Thank You: KCJ

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

More
16 May 2019 22:58 #134016 by persei8
Replied by persei8 on topic Screen shots of gui designs
Screen shot of my GTK panel built with gscreen. Once you figure out how to actually use gscreen, the rest is relatively straight forward. The layout was inspired by the probe basic development and much of the python code is taken from gmoccapy. This is a single purpose, customized gui for a 3 axis router. It doesn't even have a spindle though one can be added later. Now it's time to quit fooling with the machine and start making stuff with it.
Attachments:
The following user(s) said Thank You: Grotius

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

More
16 May 2019 23:13 - 17 May 2019 00:31 #134018 by Grotius
Replied by Grotius on topic Screen shots of gui designs
@Jim,

Very good done !

It's nicer to embed your picture in the post like this :



For c coded gui's i leaved gtk+. Try to invest your time in QT coded gui's !
I wonder who has already has the whole linuxcnc project code adapted in one QT project. B)
This time will come soon. Just a matter of time. Maybe a clever student will pick this up.

The button Mach0 attrack's me in some way. I keep looking at this button. Is this a full speed button ?
Last edit: 17 May 2019 00:31 by Grotius.

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

Time to create page: 0.167 seconds
Powered by Kunena Forum