kis_dlg_image_properties.h 1.84 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
 *  Copyright (c) 2004 Boudewijn Rempt <boud@valdyas.org>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
16
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 18 19 20
 */
#ifndef KIS_DLG_IMAGE_PROPERTIES_H_
#define KIS_DLG_IMAGE_PROPERTIES_H_

Boudewijn Rempt's avatar
Boudewijn Rempt committed
21
#include <KoDialog.h>
22
#include "KisProofingConfiguration.h"
23
#include <kis_types.h>
24
#include "ui_wdgimageproperties.h"
25

26
class KoColorSpace;
27
class KoColorPopupAction;
28

29
class WdgImageProperties : public QWidget, public Ui::WdgImageProperties
Adrian Page's avatar
Adrian Page committed
30 31 32
{
    Q_OBJECT

Boudewijn Rempt's avatar
Boudewijn Rempt committed
33 34 35 36
public:
    WdgImageProperties(QWidget *parent) : QWidget(parent) {
        setupUi(this);
    }
Adrian Page's avatar
Adrian Page committed
37 38
};

Boudewijn Rempt's avatar
Boudewijn Rempt committed
39
class KisDlgImageProperties : public KoDialog
Boudewijn Rempt's avatar
Boudewijn Rempt committed
40
{
Boudewijn Rempt's avatar
Boudewijn Rempt committed
41

42
    Q_OBJECT
43 44

public:
45
    KisDlgImageProperties(KisImageWSP image,
46
                          QWidget *parent = 0,
47
                          const char *name = 0);
48
    virtual ~KisDlgImageProperties();
49

50
    const KoColorSpace * colorSpace();
51

52
private Q_SLOTS:
53 54

    void setAnnotation(const QString& type);
55
    void setCurrentColor();
56
    void setProofingConfig();
57
private:
58

59
    WdgImageProperties * m_page;
60
    KisImageWSP m_image;
61
    KoColorPopupAction *m_defaultColorAction;
62 63
    KoColorPopupAction *m_gamutWarning;
    KisProofingConfiguration *m_proofingConfig;
64 65 66 67 68 69
};



#endif // KIS_DLG_IMAGE_PROPERTIES_H_