Stuff Michael Meeks is doing
Older items: 2015: ( J F M ), 2014: ( J F M A M J J A S O N D ), 2013, 2012, 2011, 2010, 2009, 2009, 2008, 2007, 2006, 2005, 2004, 2003, 2002, 2001, 2000, 1999, legacy html
single file, containing GUI and code, that can be compiled into .cxx & .h files by a head-less binaryis quite a nice model; why ? because you still have a self-contained binary that doesn't drag XML files with it (across platforms), and it is easy:
fluid -c UI.flis pretty simple to add to a Makefile. We should have done this years ago with glade 1: it would be have been pretty trivial.
void Fl_Widget::label (const char *a);- used to set the label on a widget. As a thing of beauty it stores the raw const pointer value. But - as a bonus there is extra code and lifting for a
Fl_Widget::copy_label (const char *a);that does the sane thing. Don't assume other toolkits share good taste in copying conventions.
sprintfthe C++ way is unutterably lame; at least - as I understand it (perhaps that is the problem). Full of enthusiasm for the C++ way, I wrote this sort of thing using
oss << "You are " << setw(2) << years << " years " << months << " months old\n";
dbg << "data is: " << a << ", " << b << ", " << c << "\n";etc. I guess you have to compile them out. A more discerning va_arg version (in C++) could still do nice, powerful object printing (perhaps) but with less of a footprint. Then again, I guess C++'s hidden pointer adjustment makes var arg functions something of a pain
My content in this blog and associated images / data under
data/ directories are (usually)
created by me and (unless obviously labelled otherwise) are licensed under
the public domain, and/or if that doesn't float your boat a CC0
license. I encourage linking back (of course) to help people decide for
themselves, in context, in the battle for ideas, and I love fixes /
improvements / corrections by private mail.
In case it's not painfully obvious: the reflections reflected here are my own; mine, all mine ! and don't reflect the views of Collabora, SUSE, Novell, The Document Foundation, Spaghetti Hurlers (International), or anyone else. It's also important to realise that I'm not in on the Swedish Conspiracy. Occasionally people ask for formal photos for conferences or fun.Michael Meeks (email@example.com)