chalk

kis_image_iface.h
1/*
2 * This file is part of the KDE project
3 * Copyright (C) 2002 Laurent Montel <lmontel@mandrakesoft.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_IFACE_H
21#define KIS_IMAGE_IFACE_H
22
23#include <dcopref.h>
24#include <dcopobject.h>
25
26
27#include <tqstring.h>
28
29class KisImage;
30class KisPaintDeviceIface;
31
32class KisImageIface : virtual public DCOPObject
33{
34 K_DCOP
35public:
36 KisImageIface( KisImage *img_ );
37k_dcop:
38
39 int height() const;
40 int width() const;
41
42 void setName(const TQString& name);
43
44 void rotateCCW();
45 void rotateCW();
46 void rotate180();
47 void rotate(double angle);
48
52 DCOPRef activeDevice();
53
57 DCOPRef colorSpace() const;
58
59
60private:
61
62 KisImage *m_img;
63};
64
65#endif