Skip to content

Conversation

@Sigma1912
Copy link
Contributor

@Sigma1912 Sigma1912 commented Jan 7, 2026

  • calculator_use state (on/off) can be changed in tooltable and offsetpage but applies to both those tables
  • calculator_use state is retained in the preferences file (initial state is OFF)

Resolves #3513

@Sigma1912 Sigma1912 force-pushed the Gmoccapy_Add_buttons_to_offsetpage_frame branch 2 times, most recently from 11d5f44 to 6d77f68 Compare January 7, 2026 15:24
@Sigma1912
Copy link
Contributor Author

Sigma1912 commented Jan 7, 2026

4 Axis with 'Block Height'
4axis_block
9 Axis with 'Block Height'
9axis_block
9 Axis without 'Block Height'
9axis_noblock

@hansu
Copy link
Member

hansu commented Jan 7, 2026

I am fine with this. Very handy :)
But we should style the scroll bar so that it is always shown. Currently it looks as if there is no G59.3 in the list.
And I wonder if we should keep the position of touch off buttons, so with one empty button space to the left.
But probably not. @gmoccapy ?

Before:
grafik

After:
grafik

@hansu hansu requested a review from gmoccapy January 7, 2026 18:10
@hansu hansu changed the base branch from master to gmoccapy-3-5-2 January 7, 2026 18:10
@hansu
Copy link
Member

hansu commented Jan 7, 2026

And you have been a bit too quick. Now with Gmoccapy 3.5.1 in master, you have some conflicts to solve :/.

@hansu
Copy link
Member

hansu commented Jan 7, 2026

[Gmoccapy][ERROR]  Found an error!
The following information may be useful in troubleshooting:

Traceback (most recent call last):
  File "/home/cnc/linuxcnc-master/bin/gmoccapy", line 6394, in <module>
    app = gmoccapy(sys.argv)
          ^^^^^^^^^^^^^^^^^^
  File "/home/cnc/linuxcnc-master/bin/gmoccapy", line 193, in __init__
    self.builder.add_from_file(XMLNAME)
gi.repository.GLib.GError: gtk-builder-error-quark: /home/cnc/linuxcnc-master/share/gmoccapy/gmoccapy.glade:766:1 Duplicate object ID 'img_tool_delete' (previously on line 631) (8)

@Sigma1912
Copy link
Contributor Author

Now I'm confused. With which branch are you getting that error?

@Sigma1912
Copy link
Contributor Author

Seems I have rebased it on gmoccapy-3-5-2 which wasn't my intention. I'll have to sync my repo and fix this tomorrow.

@hansu
Copy link
Member

hansu commented Jan 7, 2026

Now I'm confused. With which branch are you getting that error?

Your branch, Sigma1912:Gmoccapy_Add_buttons_to_offsetpage_frame

Seems I have rebased it on gmoccapy-3-5-2 which wasn't my intention. I'll have to sync my repo and fix this tomorrow.

That's correct, I have targeted your branch to that. But it's the same as master right now.

The glade file should only contain this change:

  <object class="GtkImage" id="img_offset_calculator">
    <property name="visible">True</property>
    <property name="can-focus">False</property>
  </object>

@Sigma1912
Copy link
Contributor Author

Yes, that is the only change to the glade file. Looks like I made a mistake there while resolving the conflict.

@Sigma1912 Sigma1912 force-pushed the Gmoccapy_Add_buttons_to_offsetpage_frame branch from e17a4e9 to 73fc220 Compare January 7, 2026 19:28
…or calculator use

- calculator_use state (on/off) can be changed in tooltable and offsetpage but applies to both those tables
- calculator_use state is retained in the preferences file (initial state is OFF)
@Sigma1912 Sigma1912 force-pushed the Gmoccapy_Add_buttons_to_offsetpage_frame branch from 73fc220 to a3fe384 Compare January 7, 2026 19:32
@Sigma1912
Copy link
Contributor Author

Should be fixed now.

@hansu
Copy link
Member

hansu commented Jan 21, 2026

Got Norbert's Ok :)

@hansu hansu merged commit 7008464 into LinuxCNC:gmoccapy-3-5-2 Jan 21, 2026
14 checks passed
@gmoccapy
Copy link
Collaborator

I am sure, this has to be reopened!
We / You moved the buttons, resulting in new Hal-pin order for the hardware buttons.
First hardware button in bottom bar was edit offsets, now with new placement it must activate "set X to value"

That change need to be changed also in the documentation!
And I did not see the code changes for the hardware button Hal pins to react to other buttons now!

Am I right, or are the changes in an other push?

Norbert

@Sigma1912 Sigma1912 deleted the Gmoccapy_Add_buttons_to_offsetpage_frame branch January 22, 2026 07:39
@Sigma1912
Copy link
Contributor Author

Thanks.
I indeed forgot the halpins.
I'll create a new PR for this.

@hansu
Copy link
Member

hansu commented Jan 22, 2026

We / You moved the buttons, resulting in new Hal-pin order for the hardware buttons.

I also thought about leaving the first button empty to keep the old positions.
But actually it doesn't matter which hardware button you press - this has the advantage that there is space for one more touch-off button without need to "scroll".

The screenshots in the documentation I usually update when I release the version.

Am I right, or are the changes in an other push?

Currently it's in a feature branch linuxcnc/gmoccapy-3-5-2

@Sigma1912
Copy link
Contributor Author

Sigma1912 commented Jan 22, 2026

The bug I introduced is that the 'back' button (ie the last one) in the offsetpage is now connected to 'gmoccapy.h-button.button-8' instead of ..button-9.
I'm working on this.

The screenshots in the documentation I usually update when I release the version.

So, should I only update the table entries for the halpin functions here?
https://linuxcnc.org/docs/html/gui/gmoccapy.html#_right_and_bottom_button_lists

@hansu
Copy link
Member

hansu commented Jan 22, 2026

So, should I only update the table entries for the halpin functions here?

Yes, please

@Sigma1912
Copy link
Contributor Author

see #3728

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants