Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_image_manager.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KIS_IMAGE_MANAGER
7#define KIS_IMAGE_MANAGER
8
9#include <QObject>
10#include <QPointer>
11
12#include <QUrl>
13#include <kritaui_export.h>
14
15class KisViewManager;
18class KisView;
19
20class KRITAUI_EXPORT KisImageManager : public QObject
21{
22
23 Q_OBJECT
24
25public:
26
27
29 ~KisImageManager() override {}
30
31 void setView(QPointer<KisView>imageView);
32 void setup(KisActionManager *actionManager);
33
34public Q_SLOTS:
35
36 void slotImportLayerFromFile();
37 void slotImportLayerAsTransparencyMask();
38 void slotImportLayerAsFilterMask();
39 void slotImportLayerAsSelectionMask();
40
50 qint32 importImage(const QUrl &url, const QString &layerType = "KisPaintLayer");
51
52 void resizeCurrentImage(qint32 w, qint32 h, qint32 xOffset, qint32 yOffset);
53 void scaleCurrentImage(const QSize &size, qreal xres, qreal yres, KisFilterStrategy *filterStrategy);
54
55 void rotateCurrentImage(double radians);
56 void shearCurrentImage(double angleX, double angleY);
57 void slotImageProperties();
58 void slotImageColor();
59
60private:
62};
63
64#endif // KIS_IMAGE_MANAGER
A KisActionManager class keeps track of KisActions. These actions are always associated with the GUI....
~KisImageManager() override
KisViewManager * m_view