krita

kis_image_iface.h

00001 /*
00002  * This file is part of the KDE project
00003  *  Copyright (C) 2002 Laurent Montel <lmontel@mandrakesoft.com>
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00018  */
00019 
00020 #ifndef KIS_IMAGE_IFACE_H
00021 #define KIS_IMAGE_IFACE_H
00022 
00023 #include <dcopref.h>
00024 #include <dcopobject.h>
00025 
00026 
00027 #include <qstring.h>
00028 
00029 class KisImage;
00030 class KisPaintDeviceIface;
00031 
00032 class KisImageIface : virtual public DCOPObject
00033 {
00034     K_DCOP
00035 public:
00036     KisImageIface( KisImage *img_ );
00037 k_dcop:
00038 
00039     int height() const;
00040     int width() const;
00041 
00042     void setName(const QString& name);
00043 
00044     void rotateCCW();
00045     void rotateCW();
00046     void rotate180();
00047     void rotate(double angle);
00048 
00052     DCOPRef activeDevice();
00053 
00057     DCOPRef colorSpace() const;
00058 
00059 
00060 private:
00061 
00062     KisImage *m_img;
00063 };
00064 
00065 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys