diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 47d455dd55be855e4cc691c32f687f723d9247ee (patch) | |
tree | 52e236aaa2576bdb3840ebede26619692fed6d7d /kpovmodeler/pmpalettevaluememento.h | |
download | tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmpalettevaluememento.h')
-rw-r--r-- | kpovmodeler/pmpalettevaluememento.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/kpovmodeler/pmpalettevaluememento.h b/kpovmodeler/pmpalettevaluememento.h new file mode 100644 index 00000000..0ac1242e --- /dev/null +++ b/kpovmodeler/pmpalettevaluememento.h @@ -0,0 +1,85 @@ +//-*-C++-*- +/* +************************************************************************** + description + -------------------- + copyright : (C) 2002 by Luis Passos Carvalho + email : lpassos@mail.telepac.pt +************************************************************************** + +************************************************************************** +* * +* 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. * +* * +**************************************************************************/ + + +#ifndef PMPALETTEVALUEMEMENTO_H +#define PMPALETTEVALUEMEMENTO_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include "pmmemento.h" +#include "pmpalettevalue.h" +#include <qvaluelist.h> + + +/** + * Memento for @ref PMImageMap + */ +class PMPaletteValueMemento : public PMMemento +{ +public: + /** + * Creates a memento for the object originator + */ + PMPaletteValueMemento( PMObject* originator ); + /** + * Deletes the memento + */ + virtual ~PMPaletteValueMemento( ); + + /** + * Saves the filter palette values + */ + void setFilterPaletteValues( const QValueList<PMPaletteValue>& v ); + /** + * Returns the filter palette values + */ + QValueList<PMPaletteValue> filterPaletteValues( ) const; + /** + * Returns true if the filter palette values were saved + */ + bool filterPaletteValuesSaved( ) const { return m_bFilterPaletteValuesSaved; } + /** + * Saves the transmit palette values + */ + void setTransmitPaletteValues( const QValueList<PMPaletteValue>& v ); + /** + * Returns the transmit palette values + */ + QValueList<PMPaletteValue> transmitPaletteValues( ) const; + /** + * Returns true if the transmit palette values were saved + */ + bool transmitPaletteValuesSaved( ) const { return m_bTransmitPaletteValuesSaved; } + +private: + /** + * The stored values for filter + */ + QValueList<PMPaletteValue> m_filterPaletteValues; + bool m_bFilterPaletteValuesSaved; + /** + * The stored values for transmit + */ + QValueList<PMPaletteValue> m_transmitPaletteValues; + bool m_bTransmitPaletteValuesSaved; +}; + +#endif |