[Kst] branches/work/kst/portto4/kst
Barth Netterfield
netterfield at astro.utoronto.ca
Wed Sep 30 14:53:06 CEST 2009
SVN commit 1029651 by netterfield:
'Improve' some defaults.
M +0 -2 devel-docs/Kst2Specs/Bugs
M +10 -0 devel-docs/Kst2Specs/FixedBugs
M +0 -10 devel-docs/Kst2Specs/Wishlist
M +7 -7 src/libkstapp/applicationsettings.cpp
--- branches/work/kst/portto4/kst/devel-docs/Kst2Specs/Bugs #1029650:1029651
@@ -12,5 +12,3 @@
--------------------
Datasources that are browsed are created, remembered, and saved/loaded.
-
-
--- branches/work/kst/portto4/kst/devel-docs/Kst2Specs/FixedBugs #1029650:1029651
@@ -1105,3 +1105,13 @@
--------------------
ASCII settings are ignored unless they are the global defaults.
+
+--------
+
+Reasonable/sticky defaults for plotDefaults
+See View::configurePlotFontDefaults for a place to do this...
+Currently, new plots follow any existing plots, but there is no
+sensibly set 1st plot default.
+Probably need to set defaults in the plot dialog *Changed fields (?).
+But need to figure out order - we want to also save the viewItemDialog
+set fields.
--- branches/work/kst/portto4/kst/devel-docs/Kst2Specs/Wishlist #1029650:1029651
@@ -48,16 +48,6 @@
Export eps to vector format.
kst 1.x did this by printing to file a .ps file, and then modifying it by adding the bounding box.
---------
-
-Reasonable/sticky defaults for plotDefaults
-See View::configurePlotFontDefaults for a place to do this...
-Currently, new plots follow any existing plots, but there is no
-sensibly set 1st plot default.
-Probably need to set defaults in the plot dialog *Changed fields (?).
-But need to figure out order - we want to also save the viewItemDialog
-set fields.
-
------------
data source text box doesn't recognise initial ~ as a euphemism for
--- branches/work/kst/portto4/kst/src/libkstapp/applicationsettings.cpp #1029650:1029651
@@ -52,11 +52,11 @@
_refViewWidth = _settings->value("general/referenceviewwidth", QVariant(16)).toDouble();
_refViewHeight = _settings->value("general/referenceviewheight", QVariant(12)).toDouble();
- _refFontSize = _settings->value("general/referencefontsize", QVariant(12)).toInt();
+ _refFontSize = _settings->value("general/referencefontsize", QVariant(16)).toInt();
_minFontSize = _settings->value("general/minimumfontsize", QVariant(5)).toInt();
- _maxUpdate = _settings->value("general/minimumupdateperiod", QVariant(2000)).toInt();
+ _maxUpdate = _settings->value("general/minimumupdateperiod", QVariant(200)).toInt();
- _showGrid = _settings->value("grid/showgrid", QVariant(true)).toBool();
+ _showGrid = _settings->value("grid/showgrid", QVariant(false)).toBool();
_snapToGrid = _settings->value("grid/snaptogrid", QVariant(false)).toBool();
_gridHorSpacing = _settings->value("grid/horizontalspacing", 20.0).toDouble();
_gridVerSpacing = _settings->value("grid/verticalspacing", 20.0).toDouble();
@@ -67,7 +67,7 @@
_backgroundBrush.setStyle(style);
}
- QString stopList = _settings->value("fill/gradient", "0,#cccccc,1,#ffffff").toString();
+ QString stopList = _settings->value("fill/gradient", QString()).toString();
if (!stopList.isEmpty()) {
QStringList stopInfo = stopList.split(',', QString::SkipEmptyParts);
QLinearGradient gradient(0.0, 0.0, 0.0, 1.0);
@@ -78,15 +78,15 @@
_backgroundBrush = QBrush(gradient);
}
- QString fontString = _settings->value("defaultlabelproperties/defaultfont", QFont("Albany AMT")).toString();
+ QString fontString = _settings->value("defaultlabelproperties/defaultfont", QFont()).toString();
_defaultFont.fromString(fontString);
_defaultFontScale = _settings->value("defaultlabelproperties/defaultfontscale", QVariant(0)).toDouble();
_defaultFontColor = QColor(_settings->value("defaultlabelproperties/defaultfontcolor", "black").toString());
_shareAxis = _settings->value("childviewoptions/shareaxis", QVariant(true)).toBool();
- _layoutMargins.setHeight(_settings->value("layout/marginheight", QVariant(5.0)).toDouble());
- _layoutMargins.setWidth(_settings->value("layout/marginwidth", QVariant(5.0)).toDouble());
+ _layoutMargins.setHeight(_settings->value("layout/marginheight", QVariant(3.0)).toDouble());
+ _layoutMargins.setWidth(_settings->value("layout/marginwidth", QVariant(3.0)).toDouble());
_layoutSpacing.setHeight(_settings->value("layout/spacingheight", QVariant(0.0)).toDouble());
_layoutSpacing.setWidth(_settings->value("layout/spacingwidth", QVariant(0.0)).toDouble());
}
More information about the Kst
mailing list