Krita Source Code Documentation
Loading...
Searching...
No Matches
documenttools.tools.rotatetool.rotatetool.RotateTool Class Reference
+ Inheritance diagram for documenttools.tools.rotatetool.rotatetool.RotateTool:

Public Member Functions

 __init__ (self, mainDialog, parent=None)
 
 adjust (self, documents)
 
 initialize (self)
 

Public Attributes

 degreesSpinBox
 
 layout
 

Detailed Description

Definition at line 10 of file rotatetool.py.

Constructor & Destructor Documentation

◆ __init__()

documenttools.tools.rotatetool.rotatetool.RotateTool.__init__ ( self,
mainDialog,
parent = None )

Definition at line 12 of file rotatetool.py.

12 def __init__(self, mainDialog, parent=None):
13 super(RotateTool, self).__init__(parent)
14
15 self.setObjectName(i18n("Rotate"))
16
17 self.layout = QFormLayout()
18
19 self.degreesSpinBox = QSpinBox()
20
21 self.setLayout(self.layout)
22 self.initialize()
23

References documenttools.tools.rotatetool.rotatetool.RotateTool.__init__(), KisPipeBrushParasite.dim, KisSpinBoxUnitManager.dim, FlattenSpec.dim, and xcfLayer.dim.

Member Function Documentation

◆ adjust()

documenttools.tools.rotatetool.rotatetool.RotateTool.adjust ( self,
documents )

Definition at line 31 of file rotatetool.py.

31 def adjust(self, documents):
32 for document in documents:
33 document.rotateImage(math.radians(self.degreesSpinBox.value()))
float value(const T *src, size_t ch)

References documenttools.tools.rotatetool.rotatetool.RotateTool.degreesSpinBox, and value().

◆ initialize()

Member Data Documentation

◆ degreesSpinBox

documenttools.tools.rotatetool.rotatetool.RotateTool.degreesSpinBox

Definition at line 19 of file rotatetool.py.

◆ layout

documenttools.tools.rotatetool.rotatetool.RotateTool.layout

Definition at line 17 of file rotatetool.py.


The documentation for this class was generated from the following file: