[Kst] [Bug 120325] Default curve width in kst settings
Andrew Walker
arwalker at sumusltd.com
Wed Mar 22 21:16:19 CET 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=120325
------- Additional Comments From arwalker sumusltd com 2006-03-22 21:16 -------
SVN commit 521550 by arwalker:
CCBUG:120325 Add setting for default line weight.
M +15 -2 kstsettings.cpp
M +3 -0 kstsettings.h
--- trunk/extragear/graphics/kst/src/libkstmath/kstsettings.cpp #521549:521550
@ -20,9 +20,8 @
#include <kemailsettings.h>
#include <kprinter.h>
#include <kstaticdeleter.h>
+#include "ksttimezones.h"
-#include <ksttimezones.h>
-
// application specific includes
#include "kstsettings.h"
@ -33,6 +32,7 @
foregroundColor = QColor(0,0,0); // black
promptWindowClose = true;
showQuickStart = true;
+ tiedZoomGlobal = false;
curveColorSequencePalette = "Kst Colors";
xMajor = false;
@ -51,6 +51,8 @
yAxisInterpretation = AXIS_INTERP_CTIME;
yAxisDisplay = AXIS_DISPLAY_QTLOCALDATEHHMMSS_SS;
+ defaultLineWeight = 0;
+
emailSMTPPort = 25;
emailRequiresAuthentication = false;
emailEncryption = EMailEncryptionNone;
@ -75,6 +77,7 @
foregroundColor = x.foregroundColor;
promptWindowClose = x.promptWindowClose;
showQuickStart = x.showQuickStart;
+ tiedZoomGlobal = x.tiedZoomGlobal;
curveColorSequencePalette = x.curveColorSequencePalette;
timezone = x.timezone;
@ -96,6 +99,8 @
yAxisInterpretation = x.yAxisInterpretation;
yAxisDisplay = x.yAxisDisplay;
+ defaultLineWeight = x.defaultLineWeight;
+
emailSender = x.emailSender;
emailSMTPServer = x.emailSMTPServer;
emailSMTPPort = x.emailSMTPPort;
@ -158,6 +163,7 @
cfg.writeEntry("Foreground Color", foregroundColor);
cfg.writeEntry("Prompt on Window Close", promptWindowClose);
cfg.writeEntry("Show QuickStart", showQuickStart);
+ cfg.writeEntry("Tied-zoom Global", tiedZoomGlobal);
cfg.writeEntry("Curve Color Sequence", curveColorSequencePalette);
cfg.writeEntry("Timezone", timezone);
@ -182,6 +188,9 @
cfg.writeEntry("Interpretation", yAxisInterpretation);
cfg.writeEntry("Display", yAxisDisplay);
+ cfg.setGroup("Curve");
+ cfg.writeEntry("DefaultLineWeight", defaultLineWeight);
+
cfg.setGroup("EMail");
cfg.writeEntry("Sender", emailSender);
cfg.writeEntry("Server", emailSMTPServer);
@ -227,6 +236,7 @
foregroundColor = cfg.readColorEntry("Foreground Color", &foregroundColor);
promptWindowClose = cfg.readBoolEntry("Prompt on Window Close", true);
showQuickStart = cfg.readBoolEntry("Show QuickStart", true);
+ tiedZoomGlobal = cfg.readBoolEntry("Tied-zoom Global", true);
curveColorSequencePalette = cfg.readEntry("Curve Color Sequence", "Kst Colors");
timezone = cfg.readEntry("Timezone", "UTC");
@ -251,6 +261,9 @
yAxisInterpretation = (KstAxisInterpretation)cfg.readNumEntry("Interpretation", AXIS_INTERP_CTIME);
yAxisDisplay = (KstAxisDisplay)cfg.readNumEntry("Display", AXIS_DISPLAY_QTLOCALDATEHHMMSS_SS);
+ cfg.setGroup("Curve");
+ defaultLineWeight = cfg.readNumEntry("DefaultLineWeight", 0);
+
cfg.setGroup("EMail");
KEMailSettings es;
emailSender = cfg.readEntry("Sender", es.getSetting(KEMailSettings::EmailAddress));
--- trunk/extragear/graphics/kst/src/libkstmath/kstsettings.h #521549:521550
@ -61,6 +61,7 @
bool promptWindowClose : 1;
bool showQuickStart : 1;
+ bool tiedZoomGlobal : 1;
bool xMajor : 1;
bool yMajor : 1;
bool xMinor : 1;
@ -78,6 +79,8 @
KstAxisInterpretation yAxisInterpretation;
KstAxisDisplay yAxisDisplay;
+ int defaultLineWeight;
+
QString emailSender;
QString emailSMTPServer;
QString emailUsername;
More information about the Kst
mailing list