Krita Source Code Documentation
Loading...
Searching...
No Matches
Notifier.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6#ifndef LIBKIS_NOTIFIER_H
7#define LIBKIS_NOTIFIER_H
8
9#include <QObject>
10
11#include "kritalibkis_export.h"
12#include <kis_types.h>
13#include "libkis.h"
14#include <KisView.h>
15
16class KisMainWindow;
17class KisDocument;
18
22class KRITALIBKIS_EXPORT Notifier : public QObject
23{
24 Q_OBJECT
25 Q_DISABLE_COPY(Notifier)
26
27 Q_PROPERTY(bool Active READ active WRITE setActive)
28
29public:
30 explicit Notifier(QObject *parent = 0);
31 ~Notifier() override;
32
36 bool active() const;
37
41 void setActive(bool value);
42
43Q_SIGNALS:
44
49 void applicationClosing();
50
55 void imageCreated(Document *image);
56
61 void imageSaved(const QString &filename);
62
68 void imageClosed(const QString &filename);
69
74 void viewCreated(View *view);
75
80 void viewClosed(View *view);
81
86 void windowIsBeingCreated(Window *window);
87
91 void windowCreated();
92
97 void configurationChanged();
98
99private Q_SLOTS:
100
101 void imageCreated(KisDocument *document);
102
103 void viewCreated(KisView *view);
104 void viewClosed(KisView *view);
105
106 void windowIsBeingCreated(KisMainWindow *window);
107
108
109private:
110 struct Private;
111 Private *const d;
112
113};
114
115#endif // LIBKIS_NOTIFIER_H
float value(const T *src, size_t ch)
Main window for Krita.
Definition View.h:25