On Sat, 27 May 2006 22:59:50 -0400 DJ Delorie <[EMAIL PROTECTED]> wrote:
> > Been working on my "max layers" project, got to the point where I have > a preliminary patch to share. > > http://www.delorie.com/pcb/max-layers-patch.txt > > This is against CVS. The GTK hid builds, but doesn't actually support > layer changes yet (Bill? help? ;) Here's a patch to apply after the above patch to get gtk layer changes support: http://members.dslextreme.com/users/billw/test/pcb-gtk-layers-patch But there's a few bugs with colors and the MoveLayer action: 1) With 1st layer selected, move layer up deletes 1st layer. 2) With last layer selected (the one above Silk), moving down does something strange and deleting it leaves no layer selected. Actually, the deleted layer is still selected. 3) Now MAX_LAYER is 16 but there are only 8 LAYERCOLOR and LAYERSELCOLOR attributes set in the main_attribute_list. 4) In the Lesstif version, if you move a layer, it's color is not changed on the layout. But if you save the file and reload (revert), the color will be changed. So for now, the gtk version goes ahead and changes the color when a layer is moved. Also, shouldn't DEF_LAYER be a setting instead of hardwired to 8? With it hardwired I can't let the user have the option of setting his layer groups preference for new layouts. Or I think better, why not derive the DEF_LAYER value from the default groups string?