Krita Source Code Documentation
Loading...
Searching...
No Matches
KisMoveBoundsCalculationJob.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISMOVEBOUNDSCALCULATIONJOB_H
8#define KISMOVEBOUNDSCALCULATIONJOB_H
9
10#include <QObject>
11#include "kis_spontaneous_job.h"
12#include "kis_types.h"
13#include "kis_selection.h"
14
15class KisMoveBoundsCalculationJob : public QObject, public KisSpontaneousJob
16{
17 Q_OBJECT
18public:
19 KisMoveBoundsCalculationJob(KisNodeList nodes, KisSelectionSP selection, QObject *requestedBy);
20
21 void run() override;
22 bool overrides(const KisSpontaneousJob *otherJob) override;
23 int levelOfDetail() const override;
24
25 QString debugName() const override;
26
27Q_SIGNALS:
28 void sigCalculationFinished(const QRect &bounds);
29
30private:
33 QObject *m_requestedBy;
34};
35
36#endif // KISMOVEBOUNDSCALCULATIONJOB_H
KisMoveBoundsCalculationJob(KisNodeList nodes, KisSelectionSP selection, QObject *requestedBy)
void sigCalculationFinished(const QRect &bounds)
bool overrides(const KisSpontaneousJob *otherJob) override
#define bounds(x, a, b)