sp-metrics.cpp revision 6b15695578f07a3f72c4c9475c1a261a3021472a
#include "sp-metrics.h"
#include "unit-constants.h"
/*
* SPMetric handling and stuff
* I hope this will be usefull :-)
*/
sp_absolute_metric_to_metric (gdouble length_src, const SPMetric metric_src, const SPMetric metric_dst)
{
switch (metric_src) {
case SP_M:
break;
case SP_MM:
break;
case SP_CM:
break;
case SP_IN:
break;
case SP_PT:
break;
case SP_PX:
break;
case NONE:
src = 1;
break;
}
switch (metric_dst) {
case SP_M:
break;
case SP_MM:
break;
case SP_CM:
break;
case SP_IN:
break;
case SP_PT:
break;
case SP_PX:
break;
case NONE:
dst = 1;
break;
}
}
/**
* Create a human-readable string suitable for status-bar display.
*/
GString *
gboolean const m)
{
/* We need a fixed number of fractional digits, because otherwise the live statusbar display of
* lengths will be too jerky */
if (m) {
char const *unit_str;
switch (metric_dst) {
}
if (unit_str) {
}
}
return str;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :