summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmpalettevaluememento.h
blob: 75e0cc08f99c341e5de6fe6d299ecf8da9d95768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
**************************************************************************
                                 description
                             --------------------
    copyright            : (C) 2002 by Luis Passos Carvalho
    email                : [email protected]
**************************************************************************

**************************************************************************
*                                                                        *
*  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 <tqvaluelist.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 TQValueList<PMPaletteValue>& v );
   /**
    * Returns the filter palette values
    */
   TQValueList<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 TQValueList<PMPaletteValue>& v );
   /**
    * Returns the transmit palette values
    */
   TQValueList<PMPaletteValue> transmitPaletteValues( ) const;
   /**
    * Returns true if the transmit palette values were saved
    */
   bool transmitPaletteValuesSaved( ) const { return m_bTransmitPaletteValuesSaved; }

private:
   /**
    * The stored values for filter
    */
   TQValueList<PMPaletteValue> m_filterPaletteValues;
   bool m_bFilterPaletteValuesSaved;
   /**
    * The stored values for transmit
    */
   TQValueList<PMPaletteValue> m_transmitPaletteValues;
   bool m_bTransmitPaletteValuesSaved;
};

#endif