-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Gmoccapy 3.5.1 #3494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Gmoccapy 3.5.1 #3494
Conversation
|
I'll take a look |
Sure.
I tried but it was rejected by the community. I didn't remember the issue or thread, but I kept the images in the latest release: f3a8136
Oh, I didn't test that. The everlasting problems with the localization in the tool table... |
I cannot test this right now but I think replacing this line: https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/usr_intf/gmoccapy/gmoccapy.py#L1992 with this should do it. |
That would bee to easy 😄. But yeah, almost that 😉 (4bcfd3e). Thanks. |
I would rather disable localization in the calculator. |
Yes, but it should be possibly to use the comma key on the keyboard as decimal separator. |
It was Norberts conditions. Maybe this will help:
|
|
Hmm but weird that it crashes though. |
|
It crashed here:
In save function:
Not in function :
The col_editted function was probably skipped by the calculator. |
We could have the calculator widget accept ',' as well as '.' by converting all commas to dots: Changing this https://github.com/Sigma1912/linuxcnc/blob/master/lib/python/gladevcp/calculatorwidget.py#L174 to this: |
|
An other option would be to do it in the signal handler function similar to what is done in 'col_editted': Changing this https://github.com/Sigma1912/linuxcnc/blob/master/src/emc/usr_intf/gmoccapy/gmoccapy.py#L1992 to this |
|
I think I would prefer the second option thus not allowing mixing comma AND dots in the calculator but either commas OR dots depdending on the locale set.
Yes, the calculator uses the 'editing-started' signal which is emitted as soon as a cell is in editing mode while the 'edited' signal is emitted after the cell has been edited using the keyboard. |
|
[Sigma1912]
I would say that history is repeating itself here. I also preferred to use only comma, or only dot.
If we could agree on this, we could make it a rule and list it here: |
|
@zz912 |
Yes
You are lucky man. |
|
Could you test this please? to this: This should have the advantage of only accepting the decimal symbol set in the locale (ie dot OR comma but not both) and then hand back values with decimal dot. |
|
I'll look at it tonight. |
|
It did not help. I tested it with print command: b was with decimal point, but in table cell was comma. It is weird. If you want to test other localizations, here is the manual: |
Where do you live? Because your name sounds German... Or just a German living abroad? 🤔 |
|
I'm in Switzerland |
|
Ah, didn't know that they use dots. |
I think this was originally intended by Norbert, like the tool table also used localization. |
Yes, yes, yes. My opinion. But don't forget to accept decimal comma in inputs. The best is plain: |
|
@Sigma1912 Check this out: https://github.com/PeterMue/gmoccapy-icon-themes (Section "Symbolic Icon This is the source of the material icons, if you like, please send me a PR or let me know, then I will add the new icons. |
|
Also a bit about that in the docs: https://linuxcnc.org/docs/html/gui/gmoccapy.html#gmoccapy:icon-theme-section |
|
Two more icons ('Add' and 'Delete') in this recent PR |
|
@hansu See The 'switch to highlighted' instead of 'switch to checked' tool change would then be in sync with the 'switch to selected offset' in the offset page. |
I'll integrate them in https://github.com/PeterMue/gmoccapy-icon-themes and update the hansu#9 accordingly. |
|
So what are check buttons for now? |
|
Checkbuttons would only be used to delete the selected lines |
|
Deleting is really the only use case where selecting multiple lines makes any sense. |
|
I think it would be confusing to have both there. Both "select line" and "checkbuttons". Select line can multiple lines too. |
Yes, but it requires holding down the shift key which is a pain when using a touch screen (without a physical keyboard) |
|
Hallo, IMHO we should delete the column with the checkboxes. Is it possible to select several lines holding down and clicking that line, as we all are used to do in Excel? That would allow deleting several tools at once (I can not remember having done that in all my time working on CNC machines). The single selected line will be edited, if several lines have been selected, which one will be used for the next step? That is why you get an error if you change tool and have not selected any row or several. Norvbert |
|
Almost all have completely misunderstood this PR :'( So please continue for the several topics that arose from this in the dedicated topics: Offset page: #3513 |
because this does not reflect the spindle speed programmed with the S word. It shows the current resp. commanded speed.
* feat: new icons for gmoccapy * calculator_open * chevron_down * edit_undo * edit_redo * split_view * comment * jog_continuous * feat: add material icons "add", "delete"





Main changes:
Add button "refresh dir" in open file page
Main window / jog:
G-code editor:
MDI-entry: bigger enter button (touch-friendly)
And the changes from other PRs which are already in master:
@PeterMue Can you please add resp. recreate the new icons to your https://github.com/PeterMue/gmoccapy-icon-themes? For those I get weird colors, but I think you will add them as SVG and then generate the PNGs so this problem will disappear I guess. Only for the Comment-button I haven't created a symbolic one. Thanks!
Sorry @Sigma1912 @BsAtHome @zz912 that I create this in favor of reviewing your PRs, but these changes are mostly from march and I will get this done to avoid conflicts especially when there will be some activity in the LinuxCNC meeting in Oslo this weekend.