krita

kis_dlg_image_properties.h

00001 /*
00002  *  Copyright (c) 2004 Boudewijn Rempt <boud@valdyas.org>
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  */
00018 #ifndef KIS_DLG_IMAGE_PROPERTIES_H_
00019 #define KIS_DLG_IMAGE_PROPERTIES_H_
00020 
00021 #include <kdialogbase.h>
00022 
00023 #include <kis_types.h>
00024 
00025 class WdgNewImage;
00026 class QButtonGroup;
00027 class KisID;
00028 
00029 class KisDlgImageProperties : public KDialogBase {
00030     typedef KDialogBase super;
00031     Q_OBJECT
00032 
00033 public:
00034     KisDlgImageProperties(KisImageSP image,
00035                           QWidget *parent = 0,
00036                           const char *name = 0);
00037     virtual ~KisDlgImageProperties();
00038 
00039     int imageWidth();
00040     int imageHeight();
00041     int opacity();
00042     QString imageName();
00043     double resolution();
00044     QString description();
00045     KisColorSpace * colorSpace();
00046     KisProfile * profile();
00047     
00048 private slots:
00049 
00050     void fillCmbProfiles(const KisID &);
00051 
00052 private:
00053 
00054     WdgNewImage * m_page;
00055     KisImageSP m_image;
00056 };
00057 
00058 
00059 
00060 #endif // KIS_DLG_IMAGE_PROPERTIES_H_
00061 
KDE Home | KDE Accessibility Home | Description of Access Keys