2
* Copyright (c) 2002 Patrick Julien <freak@codepimps.org>
3
* Copyright (c) 2007 Sven Langkamp <sven.langkamp@gmail.com>
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.
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.
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.
20
#ifndef KIS_IMAGE_PROPS_COMMAND_H_
21
#define KIS_IMAGE_PROPS_COMMAND_H_
23
#include <krita_export.h>
25
#include <QUndoCommand>
28
#include "kis_types.h"
29
#include "kis_image_command.h"
34
/// The command for image property changes
35
class KRITAIMAGE_EXPORT KisImagePropsCommand : public KisImageCommand
40
* Command for image property changes
42
* This command stores the current image properties and set the new propertys.
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
48
KisImagePropsCommand(KisImageWSP image, const KoColorSpace* newColorSpace);
54
const KoColorSpace * m_newColorSpace;
55
const KoColorSpace * m_oldColorSpace;
56
const KoColorProfile* m_newProfile;
57
const KoColorProfile* m_oldProfile;