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++
844 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2011 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef __KIS_COMPOSITE_PROGRESS_PROXY_H
#define __KIS_COMPOSITE_PROGRESS_PROXY_H

#include <QList>
#include <KoProgressProxy.h>
#include "kritaimage_export.h"


class KRITAIMAGE_EXPORT KisCompositeProgressProxy : public KoProgressProxy
{
public:
    void addProxy(KoProgressProxy *proxy);
    void removeProxy(KoProgressProxy *proxy);

    int maximum() const override;
    void setValue(int value) override;
    void setRange(int minimum, int maximum) override;
    void setFormat(const QString &format) override;
    void setAutoNestedName(const QString &name) override;

private:
    QList<KoProgressProxy*> m_proxies;
    QList<KoProgressProxy*> m_uniqueProxies;
};

#endif /* __KIS_COMPOSITE_PROGRESS_PROXY_H */