krita

kis_dlg_new_layer.h

00001 /*
00002  *  Copyright (c) 2000 Michael Koch <koch@kde.org>
00003  *  Copyright (c) 2000 Patrick Julien <freak@codepimps.org>
00004  *  Copyright (c) 2006 Casper Boemann <cbr@boemann.dk>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  */
00020 #ifndef  KIS_DLG_NEW_LAYER_H_
00021 #define KIS_DLG_NEW_LAYER_H_
00022 
00023 #include <kdialogbase.h>
00024 
00025 #include "kis_composite_op.h"
00026 #include <kis_global.h>
00027 
00028 class QWidget;
00029 class KisPaintDevice;
00030 class WdgLayerProperties;
00031 
00032 class NewLayerDialog : public KDialogBase {
00033     typedef KDialogBase super;
00034     Q_OBJECT
00035 
00036 public:
00037     NewLayerDialog(const KisID colorSpace,
00038                const QString & profilename,
00039                const QString & deviceName,
00040                QWidget *parent = 0,
00041                const char *name = 0);
00042 
00043     QString layerName() const;
00044     KisCompositeOp compositeOp() const;
00045     Q_INT32 opacity() const;
00046     KisID colorSpaceID() const;
00047     QString profileName() const;
00048 
00049     void setColorSpaceEnabled(bool enabled);
00050 
00051 private slots:
00052     void fillCmbProfiles(const KisID & s);
00053     void fillCmbComposite(const KisID & s);
00054 
00055 private:
00056     WdgLayerProperties * m_page;
00057 };
00058 
00059 #endif // KIS_DLG_NEW_LAYER_H_
00060 
KDE Home | KDE Accessibility Home | Description of Access Keys