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.
For one's amusement: the color-related API is reduced to 4 functions and two global variables: extern QVector<QRgb> colorlist; extern int *appcolors; QRgb getnamedcolor(const char *); /// Add a new color entry to colorlist, update GUI accordingly /// menu is specified only during GUI_init when the menus aren't fully set up yet int addnewcolorentry(QRgb, QMenu* menu = NULL); /// Mark given color as current color in the GUI void setcolormark(QRgb); /// Finds the action for the current color mark QAction *colormarkaction(); Updated snapshot of the SVN repository to be had at <http://home.wowway.com/~mandasoft/xcircuit-5.tar.gz>. Cheers, Kuba _______________________________________________ Xcircuit-dev mailing list [email protected] http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev
