~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to krita/image/commands/kis_image_props_command.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Copyright (c) 2002 Patrick Julien <freak@codepimps.org>
3
 
 *  Copyright (c) 2007 Sven Langkamp <sven.langkamp@gmail.com>
4
 
 *
5
 
 *  This program is free software; you can redistribute it and/or modify
6
 
 *  it under the terms of the GNU General Public License as published by
7
 
 *  the Free Software Foundation; either version 2 of the License, or
8
 
 *  (at your option) any later version.
9
 
 *
10
 
 *  This program is distributed in the hope that it will be useful,
11
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 *  GNU General Public License for more details.
14
 
 *
15
 
 *  You should have received a copy of the GNU General Public License
16
 
 *  along with this program; if not, write to the Free Software
17
 
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
 
 */
19
 
 
20
 
#ifndef KIS_IMAGE_PROPS_COMMAND_H_
21
 
#define KIS_IMAGE_PROPS_COMMAND_H_
22
 
 
23
 
#include <krita_export.h>
24
 
 
25
 
#include <QUndoCommand>
26
 
#include <QSize>
27
 
#include <QBitArray>
28
 
#include "kis_types.h"
29
 
#include "kis_image_command.h"
30
 
 
31
 
class KoCompositeOp;
32
 
class KoColorSpace;
33
 
class KoColorProfile;
34
 
/// The command for image property changes
35
 
class KRITAIMAGE_EXPORT KisImagePropsCommand : public KisImageCommand
36
 
{
37
 
 
38
 
public:
39
 
    /**
40
 
     * Command for image property changes
41
 
     *
42
 
     * This command stores the current image properties and set the new propertys.
43
 
     *
44
 
     * @param image the image
45
 
     * @param newColorSpace the new image color space
46
 
     * @param newResolution the new image resolution which will be used for xRes and yRes
47
 
     */
48
 
    KisImagePropsCommand(KisImageWSP image, const KoColorSpace* newColorSpace);
49
 
 
50
 
    virtual void redo();
51
 
    virtual void undo();
52
 
 
53
 
private:
54
 
    const KoColorSpace * m_newColorSpace;
55
 
    const KoColorSpace * m_oldColorSpace;
56
 
    const KoColorProfile* m_newProfile;
57
 
    const KoColorProfile* m_oldProfile;
58
 
};
59
 
#endif