[Kst] extragear/graphics/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Mon Dec 19 00:24:27 CET 2005


SVN commit 489514 by netterfield:

Set useful defaults to the plot dialog, in case the first use is to
create a new plot.



 M  +12 -0     kstplotdialog_i.cpp  


--- trunk/extragear/graphics/kst/kst/kstplotdialog_i.cpp #489513:489514
@@ -204,6 +204,18 @@
                       (KstSettings::globalSettings()->foregroundColor.blue() + KstSettings::globalSettings()->backgroundColor.blue())/2);
   _majorGridColor->setColor(defaultColor);
   _minorGridColor->setColor(defaultColor);
+  
+  /* set defaults */
+  plotColors->setBackground(KstSettings::globalSettings()->backgroundColor);
+  plotColors->setForeground(KstSettings::globalSettings()->foregroundColor);
+  legendColors->setBackground(KstSettings::globalSettings()->backgroundColor);
+  legendColors->setForeground(KstSettings::globalSettings()->foregroundColor);
+
+  _xMajorTickSpacing->setCurrentItem(1);
+  _yMajorTickSpacing->setCurrentItem(1);
+
+  _yMarksInsidePlot->setChecked(true);
+  _xMarksInsidePlot->setChecked(true);
 }
 
 


More information about the Kst mailing list