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++
1018 B
Raw Blame
/* This file is part of the KDE project
 * SPDX-FileCopyrightText: 2011 Thorsten Zachmann <[email protected]>
 *
 * SPDX-License-Identifier: LGPL-2.0-or-later
 */

#ifndef KOMARKERSELECTOR_H
#define KOMARKERSELECTOR_H

#include "kritawidgets_export.h"

#include <KoFlake.h>
#include <QComboBox>

class KoMarker;


class KRITAWIDGETS_EXPORT KoMarkerSelector : public QComboBox
{
    Q_OBJECT
public:
    explicit KoMarkerSelector(KoFlake::MarkerPosition position, QWidget *parent = 0);
    ~KoMarkerSelector() override;

    // set the current marker style
    void setMarker(KoMarker *marker);
    // return the current marker style
    KoMarker *marker() const;

    /// reimplement
    QVariant itemData(int index, int role = Qt::UserRole) const;

    /**
     * Set the available markers in the document.
     */
    void updateMarkers(const QList<KoMarker*> markers);

protected:
    void paintEvent(QPaintEvent *pe) override;

private:
    class Private;
    Private * const d;
};

#endif /* KOMARKERSELECTOR_H */