summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmmapmemento.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpovmodeler/pmmapmemento.cpp')
-rw-r--r--kpovmodeler/pmmapmemento.cpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/kpovmodeler/pmmapmemento.cpp b/kpovmodeler/pmmapmemento.cpp
new file mode 100644
index 00000000..5b4e9aaa
--- /dev/null
+++ b/kpovmodeler/pmmapmemento.cpp
@@ -0,0 +1,51 @@
+/*
+**************************************************************************
+ description
+ --------------------
+ copyright : (C) 2001 by Andreas Zehender
+ email : zehender@kde.org
+**************************************************************************
+
+**************************************************************************
+* *
+* This program is free software; you can redistribute it and/or modify *
+* it under the terms of the GNU General Public License as published by *
+* the Free Software Foundation; either version 2 of the License, or *
+* (at your option) any later version. *
+* *
+**************************************************************************/
+
+#include "pmmapmemento.h"
+
+PMMapMemento::PMMapMemento( PMObject* originator )
+ : PMMemento( originator )
+{
+ m_bMapValuesSaved = false;
+ m_bRemovedValuesSaved = false;
+}
+
+PMMapMemento::~PMMapMemento( )
+{
+}
+
+void PMMapMemento::setMapValues( const QValueList<double>& v )
+{
+ if( !m_bMapValuesSaved )
+ {
+ m_mapValues = v;
+ m_bMapValuesSaved = true;
+ addChange( PMCData );
+ }
+}
+
+void PMMapMemento::setRemovedValues( const QValueList<double>& v )
+{
+ if( !m_bRemovedValuesSaved )
+ {
+ m_removedValues = v;
+ m_bRemovedValuesSaved = true;
+ addChange( PMCData );
+ }
+}
+
+