|
Krita Source Code Documentation
|
#include <Notifier.h>
Inheritance diagram for Notifier:Classes | |
| struct | Private |
Signals | |
| void | applicationClosing () |
| applicationClosing is emitted when the application is about to close. This happens after any documents and windows are closed. | |
| void | configurationChanged () |
| configurationChanged is emitted every time Krita's configuration has changed. | |
| void | imageClosed (const QString &filename) |
| imageClosed is emitted whenever the last view on an image is closed. The image does not exist anymore in Krita | |
| void | imageCreated (Document *image) |
| imageCreated is emitted whenever a new image is created and registered with the application. | |
| void | imageSaved (const QString &filename) |
| imageSaved is emitted whenever a document is saved. | |
| void | viewClosed (View *view) |
| viewClosed is emitted whenever a view is closed | |
| void | viewCreated (View *view) |
| viewCreated is emitted whenever a new view is created. | |
| void | windowCreated () |
| windowIsCreated is emitted after main window is completely created | |
| void | windowIsBeingCreated (Window *window) |
| windowCreated is emitted whenever a window is being created | |
Public Member Functions | |
| bool | active () const |
| Notifier (QObject *parent=0) | |
| void | setActive (bool value) |
| ~Notifier () override | |
Properties | |
| bool | Active |
Private Slots | |
| void | imageCreated (KisDocument *document) |
| void | viewClosed (KisView *view) |
| void | viewCreated (KisView *view) |
| void | windowIsBeingCreated (KisMainWindow *window) |
Private Attributes | |
| Private *const | d |
The Notifier can be used to be informed of state changes in the Krita application.
Definition at line 22 of file Notifier.h.
|
explicit |
Definition at line 19 of file Notifier.cpp.
References applicationClosing(), configurationChanged(), connect(), imageClosed(), imageCreated(), imageSaved(), KisConfigNotifier::instance(), KisPart::instance(), viewClosed(), viewCreated(), windowCreated(), and windowIsBeingCreated().
|
override |
| bool Notifier::active | ( | ) | const |
Definition at line 47 of file Notifier.cpp.
References Notifier::Private::active, and d.
|
signal |
applicationClosing is emitted when the application is about to close. This happens after any documents and windows are closed.
|
signal |
configurationChanged is emitted every time Krita's configuration has changed.
|
signal |
imageClosed is emitted whenever the last view on an image is closed. The image does not exist anymore in Krita
| filename | the filename of the image. |
imageCreated is emitted whenever a new image is created and registered with the application.
|
privateslot |
Definition at line 58 of file Notifier.cpp.
References imageCreated().
|
signal |
imageSaved is emitted whenever a document is saved.
| filename | the filename of the document that has been saved. |
| void Notifier::setActive | ( | bool | value | ) |
Enable or disable the Notifier
Definition at line 52 of file Notifier.cpp.
References Notifier::Private::active, d, and value().
viewClosed is emitted whenever a view is closed
| view | the view |
Definition at line 65 of file Notifier.cpp.
References v, and viewCreated().
viewCreated is emitted whenever a new view is created.
| view | the view |
|
signal |
windowIsCreated is emitted after main window is completely created
|
privateslot |
Definition at line 79 of file Notifier.cpp.
References windowIsBeingCreated().
windowCreated is emitted whenever a window is being created
| window | the window; this is called from the constructor of the window, before the xmlgui file is loaded |
|
private |
Definition at line 111 of file Notifier.h.
|
readwrite |
Definition at line 27 of file Notifier.h.