Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
1.5 KB
Raw Blame
/* This file is part of the KDE project
   SPDX-FileCopyrightText: 2007, 2012 C. Boemann <[email protected]>
   SPDX-FileCopyrightText: 2007-2008 Fredy Yanardi <[email protected]>

   SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KoColorSetWidget_p_h
#define KoColorSetWidget_p_h

#include "KoColorSetWidget.h"

#include <QApplication>
#include <QSize>
#include <QToolButton>
#include <QHBoxLayout>
#include <QCheckBox>
#include <QMouseEvent>
#include <QWidgetAction>
#include <QDir>
#include <QScrollArea>

#include <klocalizedstring.h>
#include <WidgetsDebug.h>
#include <KoResourceServer.h>
#include <KisPopupButton.h>
#include <KisPaletteChooser.h>
#include <KisPaletteComboBox.h>

#include <resources/KoColorSet.h>
#include <KoColorDisplayRendererInterface.h>

class KoColorPatch;
class KisPaletteView;

class Q_DECL_HIDDEN KoColorSetWidget::KoColorSetWidgetPrivate {
public:
    KoColorSetWidget *thePublic;
    KoColorSetSP colorSet;

    KisPaletteView *paletteView;
    KisPaletteChooser *paletteChooser;
    KisPopupButton *paletteChooserButton;

    QVBoxLayout *mainLayout;
    QVBoxLayout *colorSetLayout;
    QHBoxLayout *recentsLayout;
    QHBoxLayout *bottomLayout;

    KoColorPatch *recentPatches[6];
    QToolButton *addRemoveButton;
    KisPaletteComboBox *colorNameCmb;
    int numRecents;

    const KoColorDisplayRendererInterface *displayRenderer;
    KoResourceServer<KoColorSet> *rServer;

    void addRecent(const KoColor &);
    void activateRecent(int i);
    void addRemoveColors();
};

#endif