[Kst] extragear/graphics/kst/src/libkstapp
Andrew Walker
arwalker at sumusltd.com
Fri Jun 23 18:32:16 CEST 2006
SVN commit 554308 by arwalker:
BUG:129699 Remember the major tick spacing when saving and loading files
M +8 -0 kst2dplot.cpp
--- trunk/extragear/graphics/kst/src/libkstapp/kst2dplot.cpp #554307:554308
@@ -325,6 +325,10 @@
_majorGridColorDefault = el.text() != "0";
} else if (el.tagName() == "minorgridcolordefault") {
_minorGridColorDefault = el.text() != "0";
+ } else if (el.tagName() == "ymajorticks") {
+ _yMajorTicks = el.text().toInt();
+ } else if (el.tagName() == "xmajorticks") {
+ _xMajorTicks = el.text().toInt();
} else if (el.tagName() == "xinterpret") {
_isXAxisInterpreted = el.text() != "0";
} else if (el.tagName() == "xinterpretas") {
@@ -2837,6 +2841,10 @@
ts << indent << "<xminorticks>" << _reqXMinorTicks << "</xminorticks>" << endl;
ts << indent << "<yminorticks>" << _reqYMinorTicks << "</yminorticks>" << endl;
+ // major ticks
+ ts << indent << "<xmajorticks>" << _xMajorTicks << "</xmajorticks>" << endl;
+ ts << indent << "<ymajorticks>" << _yMajorTicks << "</ymajorticks>" << endl;
+
// tick placement
ts << indent << "<xticksinplot>" << _xTicksInPlot << "</xticksinplot>" << endl;
ts << indent << "<xticksoutplot>" << _xTicksOutPlot << "</xticksoutplot>" << endl;
More information about the Kst
mailing list