← Back to team overview

kicad-developers team mailing list archive

Need help with menus and dialog modifications

 


I'm trying to add some stuff to the 3D viewer that were removed when version 5 came out. One of these is an "Apply" button to the 3D viewer "3D Display Options" dialog box. I also want to add a sub-menu to the Preferences menu that contains checkboxes for everything in the dialog.

My first problem is that although I've created the "Apply" button, I can't figure out how to get it to work correctly. The best I've been able to come up with is that it first appears to do nothing, but then changes the behavior of "Cancel" to act just like the "OK" button. If I just press "Cancel" without first pressing "Apply", the "Cancel" button works as it should.

The second problem is that I'm at a loss to figure out how to get the new checkboxes to change or affect anything. I did manage to get the "Use Touchpad to Pan" checkbox to toggle realistic mode. But I can't get the realistic mode checkbox to do this.

Please take a look at https://github.com/DavidGriffith/kicad-source-mirror in the 3d-viewer-mods branch.


--
David Griffith
dave@xxxxxxx

A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


Follow ups