krita

kis_custom_image_widget.h

00001 /* This file is part of the KOffice project
00002  * Copyright (C) 2005 Thomas Zander <zander@kde.org>
00003  * Copyright (C) 2005 Casper Boemann <cbr@boemann.dk>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; version 2.
00008 
00009  * This library 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 GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public License
00015  * along with this library; see the file COPYING.LIB.  If not, write to
00016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018  */
00019 #ifndef KIS_CUSTOM_IMAGE_WIDGET_H
00020 #define KIS_CUSTOM_IMAGE_WIDGET_H
00021 
00022 #include <wdgnewimage.h>
00023 #include "kis_global.h"
00024 
00025 class KisDoc;
00026 class KisID;
00027 
00033 class KisCustomImageWidget : public WdgNewImage {
00034     Q_OBJECT
00035 public:
00041     KisCustomImageWidget(QWidget *parent, KisDoc *doc, Q_INT32 defWidth, Q_INT32 defHeight, double resolution, QString defColorSpaceName, QString imageName);
00042 
00043 private slots:
00044     void buttonClicked();
00045     void fillCmbProfiles(const KisID & s);
00046 
00047 signals:
00049     void documentSelected();
00050 
00051 private:
00052     Q_UINT8 backgroundOpacity() const;
00053 
00054     KisDoc *m_doc;
00055 };
00056 
00057 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys