Dear Kuba,
> I've done cleanups and refactoring of color list handling code,
> including color popups/menus. All that now works, and all of the
> related functions fit in a .cpp file 164 lines long. Obviously,
> everything related to twiddling the colormap is gone, with Qt we
> directly use 32 bit RGBA color.
Yes, it's good to know that all those low-level graphics handling
problems that I had to solve myself fifteen years ago have finally
been incorporated into the graphics libraries where they belong.
The Tcl/Tk version has a decent color popup window from the Tk
library.
Another thing I had to struggle with fifteen years ago was the
unavailability of rendered fonts. Thus there is a tremendous amount
of code devoted to the vector-drawn fonts that I would hope could be
replaced by a simple call to a font-rendering engine. The fonts are
the only non-WYSIWYG part of the display view.
Probably the rendering of rotated and scaled images can also be taken
care of easily with Qt. Likewise, I assume that the Qt RGBA color
visual comes with the ability to draw antialiased lines and polygons.
I tried to make an OpenGL version of xcircuit, but OpenGL is horrible
at doing 2-dimensional line drawings. In the end, it was more trouble
than it was worth.
---Tim
+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim) | email: [email protected] |
| Open Circuit Design, Inc. | web: http://opencircuitdesign.com |
| 22815 Timber Creek Lane | phone: (301) 528-5030 |
| Clarksburg, MD 20871-4001 | cell: (240) 401-0616 |
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev