[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: PCB milimeter grid is cool!



> I suggest the grid to have one entry called "off", "0", "minimum" or
> "0.01 mil" so that one can turn the grid completely off.

The lesstif HID has this.  Actually, I've been slowly adding grid
settings as I find I need them ;-)

    { "0.01 mil" checked=gridsize,1 SetUnits(mil) SetValue(Grid,1)}
    {  "0.1 mil" checked=gridsize,10 SetUnits(mil) SetValue(Grid,10)}
    {  "1 mil"   checked=gridsize,100 SetUnits(mil) SetValue(Grid,100)}
    {  "5 mil"   checked=gridsize,500 SetUnits(mil) SetValue(Grid,500)}
    { "10 mil"   checked=gridsize,1000 SetUnits(mil) SetValue(Grid,1000)}
    { "25 mil"   checked=gridsize,2500 SetUnits(mil) SetValue(Grid,2500)}
    {"100 mil"   checked=gridsize,10000 SetUnits(mil) SetValue(Grid,10000)}
    {"0.01 mm" checked=gridsize,39 SetUnits(mm) SetValue(Grid,39.37007874)}
    {"0.05 mm" checked=gridsize,197 SetUnits(mm) SetValue(Grid,196.85039370)}
    {"0.1 mm"  checked=gridsize,394 SetUnits(mm) SetValue(Grid,393.70078740)}
    {"0.25 mm" checked=gridsize,984 SetUnits(mm) SetValue(Grid,984.25197)}
    {"0.5 mm"  checked=gridsize,1969 SetUnits(mm) SetValue(Grid,1968.503937)}
    {"1 mm"    checked=gridsize,3937 SetUnits(mm) SetValue(Grid,3937.00787400)}
    {"Grid -5mil" SetValue(Grid,-5,mil) a={"Shift-G" "Shift<Key>g"}}
    {"Grid +5mil" SetValue(Grid,+5,mil) a={"G" "<Key>g"}}
    {"Grid -0.05mm" SetValue(Grid,-0.05,mm) a={"Shift-Ctrl-G" "Shift Ctrl<Key>g"}}
    {"Grid +0.05mm" SetValue(Grid,+0.05,mm) a={"Ctrl-G" "Ctrl<Key>g"}}