[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: PCB Gtk port
> Backward compatibility of course!
If we hadn't supported floats yet, we could have hacked that in ;-)
Maybe, for zoom, if the value has a percent sign, we do the math for
them? So, SetValue(Zoom,400%) does the right thing?
> One advantage of powers is that you can span large ranges without
> typing a big number and getting confused how many zeros there should
> be.
True, but this came up because someone wanted the zoom menu to reflect
reality, so you'd have to figure out the numbers anyway to fill in the
menu buttons.
Of course, if you wanted to be really flexible, you'd support
generic math operations in values:
SetValue(Zoom, 1<<5);