-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Gmoccapy: Move tool table buttons to table frame, add toggle button for calculator use #3509
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: Move tool table buttons to table frame, add toggle button for calculator use #3509
Conversation
Sigma1912
commented
Jul 7, 2025
[Norbert]
|
[Sigma1912]
Sounds good. But if only using that column for deleting - then I don't see in the tool table which tool is actually in the spindle after I changed the selection. If keeping the checkbox, it makes clear that I am changing from tool 6 to 8: Of course I can see the current tool in the Tool information area, but only if that is visible. And I would keep the four buttons left aligned - it looks a bit odd so. |
And For the save button I would suggest the check button like mentioned in #2818 (comment). |
Note that if the loaded tool and the tool to be changed to are far enough apart in you don't actually see the checkbox anymore. |
I want to keep buttons that change the table to the left and buttons that dont to the right. Pulling the ones on left apart gives more room for error when using a touch screen. |
That is true
👍 That's a good solution. But I would move the tool display to the left to be closer to the tool-nr column: |
Maybe we should just replace the yellow arrow on the 'back' button with the green check mark? I'm not overly keen on having another button to leave with accepting unfinished entries. |
Also we need to decide whether we want to keep the checkbox column for deleting multiple tools or remove it as norbert has suggested. |
Hmm you might want to have an abort option, if you accidentally removed some tools.
We can add a warning dialog like when exiting from the G-code editor when having changes? |
As long as the table has not been saved you can just click on the reload button. Even if you clicked on not saving in the proposed popup on leaving the page, |
One question after a very very short look at the code changes: Sorry, if I haven't check the code enaugh and beeping wrong here. Norbert |
I only wonder why you remove the buttons inside the widget's buttonbox and create new ones. Does it not work to change only the labels to icons? |
I'll see what I can do to reuse more of the existing code. |
8d07a42
to
b553a29
Compare
How about adding a settings option to show/hide 'Select' column given that selecting multiple rows with a touchscreen only is inconvenient. If a keyboard is used the CTRL/SHIFT keys could be used to select multiple rows and the 'Select' column is not required. |
Sure we can add a setting to hide the select column. But I don't really get the point why - Is it mostly to avoid confusion? Or space reasons? I agree that this column is now only used in a rare use case - deleting multiple tools by mouse or touch only. What do you think of highlighting the active tool by a blue-ish color like it is done in the offset page widget? |
I mentioned resp. asked recently somewhere (didn't find now where it was) if it's the best strategy to change the buttons of the widgets like this one in the gmoccapy code and not in the widget itself. |
If buttons makes sense for general use, (I didn't read back enough to see what buttons you are referring to) then I would think adding them to the widget would be better. If you must change all the buttons for some reason, then adding a function or property to hide/delete the button box and (possibly) add a new button box with new specified buttons would seem reasonable. |
It's more about changing the existing buttons to have an icon instead of just a label and change the size and maybe the order. |
It's to avoid confusion. The only use case for the Select column is to select multiple tools with a touch screen w/o a keyboard. |
Can that not be controlled with css styles? |
I don't think we can add an icon with CSS... |
This would require a hidden column added to the tool data with the 'foreground' color. At least that is how it is done in the offset table and I don't know of an other way to change the text color. This column would need to be inserted when reading the tool table file and would need to be ignored when writing to the file. |