Category Archives: Programming

Completion of Phase One

When I began working on phase one of my Google Summer of Code project, Inkscape’s unit handling code was scattered between multiple implementations with different files using different, incompatible implementations. I since consolidated this code into one implementation, residing in … Continue reading

Posted in | Tagged , , , | Leave a comment

Removal of SPUnit and SPMetric

As I have never used GTK+/gtkmm before, I spent a few days reading documentation to familiarize myself with the library, after getting stuck on transitioning parts of the UI to Inkscape::Util::Unit. With a better understanding of how the UI worked, … Continue reading

Posted in | Tagged , , , | Leave a comment

Refactoring Progress

Based on suggestions on inkscape-devel, I took a look at Boost Units. At first it looked promising, but then I decided it’s more trouble than it’s worth as it’s aimed at compile time dimensional analysis, and Inkscape only deals with … Continue reading

Posted in | Tagged , , , , | Leave a comment

Length Class and Refactoring

Since my last update, I have implemented a Length class. This allows one to store a length with its unit as well as to perform unit conversions. These conversions include functions similar to those found in helper/units.cpp where a length, … Continue reading

Posted in | Tagged , , , , | Leave a comment

Current State of Units

Inkscape’s main unit handling code is in helper/units.cpp and util/units.cpp. The code in helper is originally from libgnomeprint, and the code in util is the start of a rewrite; I plan on moving everything to util. In addition, there is … Continue reading

Posted in | Tagged , , , | Leave a comment