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++
/*
* SPDX-FileCopyrightText: 2019 Dmitry Kazakov <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KISMOVEBOUNDSCALCULATIONJOB_H
#define KISMOVEBOUNDSCALCULATIONJOB_H
#include <QObject>
#include "kis_spontaneous_job.h"
#include "kis_types.h"
#include "kis_selection.h"
class KisMoveBoundsCalculationJob : public QObject, public KisSpontaneousJob
{
Q_OBJECT
public:
KisMoveBoundsCalculationJob(KisNodeList nodes, KisSelectionSP selection, QObject *requestedBy);
void run() override;
bool overrides(const KisSpontaneousJob *otherJob) override;
int levelOfDetail() const override;
QString debugName() const override;
Q_SIGNALS:
void sigCalculationFinished(const QRect &bounds);
private:
KisNodeList m_nodes;
KisSelectionSP m_selection;
QObject *m_requestedBy;
};
#endif // KISMOVEBOUNDSCALCULATIONJOB_H