Krita Source Code Documentation
Loading...
Searching...
No Matches
KisAsyncAnimationFramesSaveDialog.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISASYNCANIMATIONFRAMESSAVEDIALOG_H
8#define KISASYNCANIMATIONFRAMESSAVEDIALOG_H
9
11#include "kis_types.h"
12
13
15{
16public:
18 const KisTimeSpan &range,
19 const QString &baseFilename,
20 int startNumberingAt,
21 bool onlyNeedsUniqueFrames,
22 KisPropertiesConfigurationSP exportConfiguration);
23
25
26 Result regenerateRange(KisViewManager *viewManager) override;
27
28 QString savedFilesMask() const;
29 QString savedFilesMaskWildcard() const;
30 QStringList savedFiles() const;
31 QStringList savedUniqueFiles() const;
32
33 QList<int> getUniqueFrames() const;
34
35protected:
36 QList<int> calcDirtyFrames() const override;
39 KisImageSP image, int frame) override;
40
41private:
42 struct Private;
43 const QScopedPointer<Private> m_d;
44};
45
46#endif // KISASYNCANIMATIONFRAMESSAVEDIALOG_H
KisAsyncAnimationRenderDialogBase is a special class for rendering multiple frames of the image and p...
virtual KisAsyncAnimationRendererBase * createRenderer(KisImageSP image)=0
create a renderer object linked to image
virtual Result regenerateRange(KisViewManager *viewManager)
start generation of frames and (if not in batch mode) show the dialog
virtual void initializeRendererForFrame(KisAsyncAnimationRendererBase *renderer, KisImageSP image, int frame)=0
virtual QList< int > calcDirtyFrames() const =0
returns a list of frames that should be regenerated by the dialog