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.2 KB
Raw Blame
/* This file is part of the KDE project
 * SPDX-FileCopyrightText: 2010 Sven Langkamp <[email protected]>
 * SPDX-FileCopyrightText: 2011 Srikanth Tiyyagura <[email protected]>
 *
 * SPDX-License-Identifier: LGPL-2.0-or-later
 */

#ifndef KIS_PAINTOP_PRESETS_CHOOSER_POPUP_H
#define KIS_PAINTOP_PRESETS_CHOOSER_POPUP_H

#include <QWidget>
#include <KoID.h>
#include <kritaui_export.h>
#include <brushengine/kis_paintop_preset.h>

class KoResource;

class KRITAUI_EXPORT KisPaintOpPresetsChooserPopup : public QWidget
{
    Q_OBJECT
public:
    KisPaintOpPresetsChooserPopup(QWidget * parent = nullptr);
    ~KisPaintOpPresetsChooserPopup() override;
    
    void updateViewSettings();
    void setResponsiveness(bool value);
public Q_SLOTS:
    void canvasResourceChanged(KisPaintOpPresetSP  preset);
    void slotThemeChanged();

Q_SIGNALS:
    void resourceSelected(KoResourceSP resource);
    void resourceClicked(KoResourceSP resource);
    
private Q_SLOTS:
    void slotThumbnailMode();
    void slotStrokeMode();
    void slotStrokeThumbnailMode();
    void slotUpdateMenu();
    void paintEvent(QPaintEvent *) override;
   
private:

    struct Private;
    Private * const m_d;
};

#endif // KIS_PAINTOP_PRESETS_CHOOSER_POPUP_H