[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed Mar 30 19:10:24 CEST 2005
CVS commit by staikos:
- fix missing base-class init
- add accessor for the vector
M +7 -1 kstmatrix.cpp 1.18
M +3 -0 kstmatrix.h 1.13
--- kdeextragear-2/kst/kst/kstmatrix.cpp #1.17:1.18
@@ -35,5 +35,6 @@ KstMatrix::KstMatrix(const QString &in_t
-KstMatrix::KstMatrix(const QDomElement &e) {
+KstMatrix::KstMatrix(const QDomElement &e)
+: KstDataObject(e) {
QString in_tag, zVectorName, in_nX, in_nY, in_minX, in_minY, in_stepX, in_stepY;
bool in_useMaxX = false;
@@ -222,4 +223,9 @@ KstObject::UpdateType KstMatrix::update(
+KstVectorPtr KstMatrix::vector() const {
+ return _zVector;
+}
+
+
QString KstMatrix::propertyString() const {
return i18n("Using vector %1").arg(_zVector->tagName());
--- kdeextragear-2/kst/kst/kstmatrix.h #1.12:1.13
@@ -59,4 +59,6 @@ class KstMatrix: public KstDataObject {
virtual QString zVectorTag() const { return _zVector->tagName(); }
+ KstVectorPtr vector() const;
+
protected:
int NS;
@@ -78,4 +80,5 @@ class KstMatrix: public KstDataObject {
typedef KstSharedPtr<KstMatrix> KstMatrixPtr;
typedef KstObjectList<KstMatrixPtr> KstMatrixList;
+typedef KstObjectMap<KstMatrixPtr> KstMatrixMap;
#endif
More information about the Kst
mailing list