|
Krita Source Code Documentation
|
#include <View.h>
Inheritance diagram for View:Classes | |
| struct | Private |
Public Slots | |
| void | activateResource (Resource *resource) |
| activateResource activates the given resource. | |
| ManagedColor * | backgroundColor () const |
| backgroundColor allows access to the currently active background color. This is nominally per canvas/view, but in practice per mainwindow. | |
| qreal | brushRotation () const |
| return the current rotation for brush tip | |
| qreal | brushSize () const |
| return the current size for brush | |
| Canvas * | canvas () const |
| QString | currentBlendingMode () const |
| return the current blending mode for brush | |
| Resource * | currentBrushPreset () const |
| return the current selected preset | |
| Resource * | currentGradient () const |
| return the current selected gradient | |
| Resource * | currentPattern () const |
| return the current selected pattern | |
| bool | disablePressure () const |
| return current disabled pressure status | |
| Document * | document () const |
| bool | eraserMode () const |
| return current eraser mode status (active/inactive) | |
| QTransform | flakeToCanvasTransform () const |
| flakeToCanvasTransform The transformation of the canvas relative to the view without rotation and mirroring | |
| QTransform | flakeToDocumentTransform () const |
| flakeToDocumentTransform The transformation of the document relative to the view without rotation and mirroring | |
| QTransform | flakeToImageTransform () const |
| flakeToImageTransform The transformation of the image relative to the view without rotation and mirroring | |
| ManagedColor * | foregroundColor () const |
| bool | globalAlphaLock () const |
| return current global alpha lock mode (active/inactive) | |
| float | HDRExposure () const |
| float | HDRGamma () const |
| qreal | paintingFlow () const |
| return the current flow for brush | |
| qreal | paintingOpacity () const |
| return the current opacity for brush | |
| qreal | patternSize () const |
| return the current pattern size for brush | |
| QList< Node * > | selectedNodes () const |
| void | setBackGroundColor (ManagedColor *color) |
| void | setBrushRotation (qreal brushRotation) |
| set the current rotation for brush tip | |
| void | setBrushSize (qreal brushSize) |
| set the current size for brush | |
| void | setCurrentBlendingMode (const QString &blendingMode) |
| set the current blending mode for brush | |
| void | setCurrentBrushPreset (Resource *resource) |
| set the current selected preset | |
| void | setCurrentGradient (Resource *resource) |
| set the current selected gradient | |
| void | setCurrentPattern (Resource *resource) |
| set the current selected pattern | |
| void | setDisablePressure (bool value) |
| set current disabled pressure status | |
| void | setDocument (Document *document) |
| void | setEraserMode (bool value) |
| set current eraser active/inactive | |
| void | setForeGroundColor (ManagedColor *color) |
| void | setGlobalAlphaLock (bool value) |
| set current global alpha lock mode active/inactive | |
| void | setHDRExposure (float exposure) |
| set the current HDR Exposure value | |
| void | setHDRGamma (float gamma) |
| set the current HDR Gamma value | |
| void | setPaintingFlow (qreal flow) |
| set the current flow value for brush | |
| void | setPaintingOpacity (qreal opacity) |
| set the current opacity for brush | |
| void | setPatternSize (qreal size) |
| set the current pattern size value for brush | |
| void | setVisible () |
| void | showFloatingMessage (const QString &message, const QIcon &icon, int timeout, int priority) |
| showFloatingMessage displays a floating message box on the top-left corner of the canvas | |
| bool | visible () const |
| Window * | window () const |
Public Member Functions | |
| bool | operator!= (const View &other) const |
| bool | operator== (const View &other) const |
| View (KisView *view, QObject *parent=0) | |
| ~View () override | |
Private Member Functions | |
| KisView * | view () |
Private Attributes | |
| Private *const | d |
Friends | |
| class | Scratchpad |
| class | Window |
View represents one view on a document. A document can be shown in more than one view at a time.
|
explicit |
Definition at line 38 of file View.cpp.
References d, View::Private::view, and view().
activateResource activates the given resource.
| resource | a pattern, gradient or paintop preset |
Definition at line 108 of file View.cpp.
References KoCanvasResource::CurrentGradient, KoCanvasResource::CurrentPattern, d, Resource::resource(), value(), and View::Private::view.
|
slot |
backgroundColor allows access to the currently active background color. This is nominally per canvas/view, but in practice per mainwindow.
Definition at line 140 of file View.cpp.
References d, and View::Private::view.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
return the current selected preset
Definition at line 152 of file View.cpp.
References d, ResourceType::PaintOpPresets, and View::Private::view.
|
slot |
return the current selected gradient
Definition at line 174 of file View.cpp.
References d, ResourceType::Gradients, and View::Private::view.
|
slot |
return the current selected pattern
Definition at line 163 of file View.cpp.
References d, ResourceType::Patterns, and View::Private::view.
|
slot |
|
slot |
|
slot |
|
slot |
flakeToCanvasTransform The transformation of the canvas relative to the view without rotation and mirroring
Definition at line 360 of file View.cpp.
References d, and View::Private::view.
|
slot |
flakeToDocumentTransform The transformation of the document relative to the view without rotation and mirroring
Definition at line 354 of file View.cpp.
References d, and View::Private::view.
|
slot |
flakeToImageTransform The transformation of the image relative to the view without rotation and mirroring
Definition at line 366 of file View.cpp.
References d, KisCoordinatesConverter::documentToFlakeTransform(), KisCoordinatesConverter::imageToDocumentTransform(), and View::Private::view.
|
slot |
@brief foregroundColor allows access to the currently active foreground color. This is nominally per canvas/view, but in practice per mainwindow. @code
color = Application.activeWindow().activeView().foregroundColor() components = color.components() components[0] = 1.0 components[1] = 0.6 components[2] = 0.7 color.setComponents(components) Application.activeWindow().activeView().setForeGroundColor(color)
Definition at line 128 of file View.cpp.
References d, and View::Private::view.
|
slot |
|
slot |
Definition at line 197 of file View.cpp.
References KisExposureGammaCorrectionInterface::currentExposure(), d, and View::Private::view.
|
slot |
Definition at line 211 of file View.cpp.
References KisExposureGammaCorrectionInterface::currentGamma(), d, and View::Private::view.
| bool View::operator!= | ( | const View & | other | ) | const |
| bool View::operator== | ( | const View & | other | ) | const |
|
slot |
|
slot |
|
slot |
@brief selectedNodes returns a list of Nodes that are selected in this view.
Definition at line 334 of file View.cpp.
References LibKisUtils::createNodeList(), d, selectedNodes(), and View::Private::view.
|
slot |
Definition at line 146 of file View.cpp.
References ManagedColor::color(), d, and View::Private::view.
|
slot |
set the current rotation for brush tip
| brushRotation | the brush tip rotation (in degrees) |
Definition at line 255 of file View.cpp.
References brushRotation(), d, and View::Private::view.
|
slot |
set the current size for brush
| brushSize | the brush size (in pixels) |
Definition at line 243 of file View.cpp.
References brushSize(), d, and View::Private::view.
|
slot |
set the current selected preset
| resource | the current preset to set (Resource type = 'preset') |
Definition at line 158 of file View.cpp.
References activateResource().
set the current selected gradient
| resource | the current gradient to set (Resource type = 'gradient') |
Definition at line 180 of file View.cpp.
References activateResource().
set the current selected pattern
| resource | the current pattern to set (Resource type = 'pattern') |
Definition at line 169 of file View.cpp.
References activateResource().
|
slot |
set current disabled pressure status
| value | Set to True to disable pressure, False to enabled pressure |
Definition at line 325 of file View.cpp.
References d, value(), and View::Private::view.
|
slot |
|
slot |
Definition at line 134 of file View.cpp.
References ManagedColor::color(), d, and View::Private::view.
|
slot |
set current global alpha lock mode active/inactive
| value | Set to True to lock global alpha mode, False to unlock |
Definition at line 309 of file View.cpp.
References d, value(), and View::Private::view.
|
slot |
set the current HDR Exposure value
| exposure | the HDR Exposure to set |
Definition at line 204 of file View.cpp.
References d, KisExposureGammaCorrectionInterface::setCurrentExposure(), and View::Private::view.
|
slot |
set the current HDR Gamma value
Definition at line 218 of file View.cpp.
References d, KisExposureGammaCorrectionInterface::setCurrentGamma(), and View::Private::view.
|
slot |
|
slot |
|
slot |
|
slot |
Make the current view visible.
Definition at line 88 of file View.cpp.
References d, KisMainWindow::setActiveView(), KisMainWindow::subWindowActivated(), and View::Private::view.
|
slot |
showFloatingMessage displays a floating message box on the top-left corner of the canvas
| message | Message to be displayed inside the floating message box |
| icon | Icon to be displayed inside the message box next to the message string |
| timeout | Milliseconds until the message box disappears |
| priority | 0 = High, 1 = Medium, 2 = Low. Higher priority messages will be displayed in place of lower priority messages |
Definition at line 344 of file View.cpp.
References d, p, and View::Private::view.
|
private |
|
slot |
|
slot |
Definition at line 60 of file View.cpp.
References d, View::Private::view, and Window.
|
friend |