Jon Cruz has added an XML parser to the inkscape_gtkmm codebase, along with functions to use it for loading/saving units.
I think Jon's new code could make doing the Preferences XML load/save outlined below quite straightforward.
Bryce
On Fri, 31 Dec 2004, Bryce Harrington wrote:
Here is a task needed for the gtkmm codebase.
Requires good knowledge of C++, ok knowledge of XML, and at least passing knowledge of the Inkscape codebase.
Preferences
Design an Inkscape::Preferences class that wrappers an SPRepr. It must provide the following public interface as a minimum:
gboolean save(const gchar *filename); gboolean load(const gchar *filename); SPRepr* getRepr(const gchar *key);
Look in inkscape.* for the C-versions of the above routines.
- Hook up the preferences functions in ui/dialog/dialog.cpp
To learn more, check out the gtkmm codebase like this:
$ cvs -d:pserver:anonymous@...54...:/cvsroot/inkscape login (hit enter for password) $ cvs -z3 -d:pserver:anonymous@...54...:/cvsroot/inkscape co experimental/bryce/inkscape_gtkmm $ cd experimental/bryce/inkscape_gtkmm $ make $ ./inkscape
Also look in the PLAN file for more todo's and projects' in the gtkmm codebase.
Bryce
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel