[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Thu Mar 3 05:47:48 CET 2005
CVS commit by staikos:
cleanup KstScalar for future work
M +31 -0 kstscalar.cpp 1.34
M +7 -7 kstscalar.h 1.27
--- kdeextragear-2/kst/kst/kstscalar.cpp #1.33:1.34
@@ -119,4 +119,35 @@ void KstScalar::setValue(double inV) {
}
+
+QString KstScalar::label() const {
+ return QString::number(_value);
+}
+
+
+double KstScalar::value() const {
+ return _value;
+}
+
+
+bool KstScalar::orphan() const {
+ return _orphan;
+}
+
+
+void KstScalar::setOrphan(bool orphan) {
+ _orphan = orphan;
+}
+
+
+bool KstScalar::displayable() const {
+ return _displayable;
+}
+
+
+void KstScalar::setDisplayable(bool displayable) {
+ _displayable = displayable;
+}
+
+
#include "kstscalar.moc"
// vim: et ts=2 sw=2
--- kdeextragear-2/kst/kst/kstscalar.h #1.26:1.27
@@ -37,10 +37,10 @@ class KST_EXPORT KstScalar : public KstO
/* return a string representation of the scalar */
- QString label() const { return QString::number(_value); }
+ QString label() const;
/** Save vector information */
virtual void save(QTextStream &ts, const QString& indent = QString::null);
- /** Update the vector. Return true if there was new data. */
+ /** Update the scalar. Return true if there was new data. */
virtual UpdateType update(int updateCounter = -1);
@@ -51,14 +51,14 @@ class KST_EXPORT KstScalar : public KstO
public slots:
/* return the value of the scalar */
- double value() const { return _value; }
+ double value() const;
/** Set the value of the scalar - ignored for some types */
void setValue(double inV);
- bool orphan() const { return _orphan; }
- void setOrphan(bool orphan) { _orphan = orphan; }
+ bool orphan() const;
+ void setOrphan(bool orphan);
- bool displayable() const { return _displayable; }
- void setDisplayable(bool displayable) { _displayable = displayable; }
+ bool displayable() const;
+ void setDisplayable(bool displayable);
signals:
More information about the Kst
mailing list