|
QAction * | action (const QString &name) const |
|
QList< QAction * > | actions () const |
|
Document * | activeDocument () const |
|
Window * | activeWindow () const |
|
void | addDockWidgetFactory (DockWidgetFactoryBase *factory) |
|
void | addExtension (Extension *extension) |
|
bool | addProfile (const QString &profilePath) |
|
bool | batchmode () const |
|
QStringList | colorDepths (const QString &colorModel) const |
|
QStringList | colorModels () const |
|
Document * | createDocument (int width, int height, const QString &name, const QString &colorModel, const QString &colorDepth, const QString &profile, double resolution) |
|
QList< QDockWidget * > | dockers () const |
|
QList< Document * > | documents () const |
|
QList< Extension * > | extensions () |
|
Filter * | filter (const QString &name) const |
|
QStringList | filters () const |
|
QStringList | filterStrategies () const |
|
static QObject * | fromVariant (const QVariant &v) |
|
static QString | getAppDataLocation () |
|
QIcon | icon (QString &iconName) const |
|
static Krita * | instance () |
|
static QString | krita_i18n (const QString &text) |
|
static QString | krita_i18nc (const QString &context, const QString &text) |
|
Notifier * | notifier () const |
|
Document * | openDocument (const QString &filename) |
|
Window * | openWindow () |
|
QStringList | profiles (const QString &colorModel, const QString &colorDepth) const |
|
QString | readSetting (const QString &group, const QString &name, const QString &defaultValue) |
|
QStringList | recentDocuments () const |
|
QMap< QString, Resource * > | resources (QString &type) const |
|
void | setActiveDocument (Document *value) |
|
void | setBatchmode (bool value) |
|
QString | version () const |
|
QList< View * > | views () const |
|
QList< Window * > | windows () const |
|
void | writeSetting (const QString &group, const QString &name, const QString &value) |
|
|
| Krita (QObject *parent=0) |
|
| QObject (QObject *parent) |
|
QBindable< QString > | bindableObjectName () |
|
bool | blockSignals (bool block) |
|
const QObjectList & | children () const const |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
|
void | deleteLater () |
|
void | destroyed (QObject *obj) |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
|
bool | disconnect (const QObject *receiver, const char *method) const const |
|
void | dumpObjectInfo () const const |
|
void | dumpObjectTree () const const |
|
QList< QByteArray > | dynamicPropertyNames () const const |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (Qt::FindChildOptions options) const const |
|
bool | inherits (const char *className) const const |
|
void | installEventFilter (QObject *filterObj) |
|
bool | isQuickItemType () const const |
|
bool | isWidgetType () const const |
|
bool | isWindowType () const const |
|
void | killTimer (int id) |
|
virtual const QMetaObject * | metaObject () const const |
|
void | moveToThread (QThread *targetThread) |
|
QString | objectName () const const |
|
void | objectNameChanged (const QString &objectName) |
|
QObject * | parent () const const |
|
QVariant | property (const char *name) const const |
|
| Q_CLASSINFO (Name, Value) |
|
| Q_EMIT Q_EMIT |
|
| Q_ENUM (...) |
|
| Q_ENUM_NS (...) |
|
| Q_ENUMS (...) |
|
| Q_FLAG (...) |
|
| Q_FLAG_NS (...) |
|
| Q_FLAGS (...) |
|
| Q_GADGET Q_GADGET |
|
| Q_GADGET_EXPORT (EXPORT_MACRO) |
|
| Q_INTERFACES (...) |
|
| Q_INVOKABLE Q_INVOKABLE |
|
| Q_MOC_INCLUDE Q_MOC_INCLUDE |
|
| Q_NAMESPACE Q_NAMESPACE |
|
| Q_NAMESPACE_EXPORT (EXPORT_MACRO) |
|
| Q_OBJECT Q_OBJECT |
|
| Q_PROPERTY (...) |
|
| Q_REVISION Q_REVISION |
|
| Q_SET_OBJECT_NAME (Object) |
|
| Q_SIGNAL Q_SIGNAL |
|
| Q_SIGNALS Q_SIGNALS |
|
| Q_SLOT Q_SLOT |
|
| Q_SLOTS Q_SLOTS |
|
T | qobject_cast (const QObject *object) |
|
T | qobject_cast (QObject *object) |
|
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT |
|
void | removeEventFilter (QObject *obj) |
|
void | setObjectName (const QString &name) |
|
void | setObjectName (QAnyStringView name) |
|
void | setParent (QObject *parent) |
|
bool | setProperty (const char *name, const QVariant &value) |
|
bool | setProperty (const char *name, QVariant &&value) |
|
bool | signalsBlocked () const const |
|
int | startTimer (int interval, Qt::TimerType timerType) |
|
int | startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType) |
|
QThread * | thread () const const |
|
|
typedef | QObjectList |
|
| objectName |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
|
bool | disconnect (const QMetaObject::Connection &connection) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
virtual void | childEvent (QChildEvent *event) |
|
virtual void | connectNotify (const QMetaMethod &signal) |
|
virtual void | customEvent (QEvent *event) |
|
virtual void | disconnectNotify (const QMetaMethod &signal) |
|
bool | isSignalConnected (const QMetaMethod &signal) const const |
|
int | receivers (const char *signal) const const |
|
QObject * | sender () const const |
|
int | senderSignalIndex () const const |
|
virtual void | timerEvent (QTimerEvent *event) |
|
Krita is a singleton class that offers the root access to the Krita object hierarchy.
The Krita.instance() is aliased as two builtins: Scripter and Application.
Definition at line 27 of file Krita.h.
bool Krita::batchmode |
( |
| ) |
const |
|
slot |
batchmode determines whether the script is run in batch mode.
If batchmode is true, scripts should now show messageboxes or dialog boxes.
Note that this separate from Document.setBatchmode(), which determines whether export/save option dialogs are shown.
- Returns
- true if the script is run in batchmode
Definition at line 129 of file Krita.cpp.
Document * Krita::createDocument |
( |
int | width, |
|
|
int | height, |
|
|
const QString & | name, |
|
|
const QString & | colorModel, |
|
|
const QString & | colorDepth, |
|
|
const QString & | profile, |
|
|
double | resolution ) |
|
slot |
@brief createDocument creates a new document and image and registers
the document with the Krita application.
Unless you explicitly call Document::close() the document will remain
known to the Krita document registry. The document and its image will
only be deleted when Krita exits.
The document will have one transparent layer.
To create a new document and show it, do something like:
def add_document_to_window():
d = Application.createDocument(100, 100, "Test", "RGBA", "U8", "", 120.0)
add_document_to_window()
Krita is a singleton class that offers the root access to the Krita object hierarchy.
Window * activeWindow() const
View * addView(Document *document)
Open a new view on the given document in this window.
@param width the width in pixels
@param height the height in pixels
@param name the name of the image (not the filename of the document)
@param colorModel A string describing the color model of the image:
<ul>
<li>A: Alpha mask</li>
<li>RGBA: RGB with alpha channel (The actual order of channels is most often BGR!)</li>
<li>XYZA: XYZ with alpha channel</li>
<li>LABA: LAB with alpha channel</li>
<li>CMYKA: CMYK with alpha channel</li>
<li>GRAYA: Gray with alpha channel</li>
<li>YCbCrA: YCbCr with alpha channel</li>
</ul>
@param colorDepth A string describing the color depth of the image:
<ul>
<li>U8: unsigned 8 bits integer, the most common type</li>
<li>U16: unsigned 16 bits integer</li>
<li>F16: half, 16 bits floating point. Only available if Krita was built with OpenEXR</li>
<li>F32: 32 bits floating point</li>
</ul>
@param profile The name of an icc profile that is known to Krita. If an empty string is passed, the default is
taken.
@param resolution the resolution in points per inch.
@return the created document.
Definition at line 329 of file Krita.cpp.