Krita Source Code Documentation
Loading...
Searching...
No Matches
KisScreentoneGeneratorConfiguration.cpp File Reference
#include <QStringList>
#include <QMutex>
#include <QMutexLocker>
#include <klocalizedstring.h>
#include "KisScreentoneGeneratorTemplate.h"
#include "KisScreentoneGeneratorConfiguration.h"

Go to the source code of this file.

Classes

class  KisScreentoneGeneratorConfiguration::Private
 

Functions

QStringList screentoneInterpolationNames (int pattern, int shape)
 
QStringList screentonePatternNames ()
 
QStringList screentoneShapeNames (int pattern)
 

Function Documentation

◆ screentoneInterpolationNames()

QStringList screentoneInterpolationNames ( int pattern,
int shape )

Definition at line 46 of file KisScreentoneGeneratorConfiguration.cpp.

47{
48 if (pattern == KisScreentonePatternType_Dots) {
52 return QStringList()
53 << i18nc("Screentone Interpolation Method - Linear", "Linear")
54 << i18nc("Screentone Interpolation Method - Sinusoidal", "Sinusoidal");
55 }
56 } else if (pattern == KisScreentonePatternType_Lines) {
57 return QStringList()
58 << i18nc("Screentone Interpolation Method - Linear", "Linear")
59 << i18nc("Screentone Interpolation Method - Sinusoidal", "Sinusoidal");
60 }
61
62 return QStringList();
63}
QList< QString > QStringList

References KisScreentonePatternType_Dots, KisScreentonePatternType_Lines, KisScreentoneShapeType_EllipseDots, KisScreentoneShapeType_EllipseDotsLegacy, and KisScreentoneShapeType_RoundDots.

◆ screentonePatternNames()

QStringList screentonePatternNames ( )

Definition at line 18 of file KisScreentoneGeneratorConfiguration.cpp.

19{
20 return QStringList()
21 << i18nc("Screentone Pattern Type - Dots", "Dots")
22 << i18nc("Screentone Pattern Type - Lines", "Lines");
23}

◆ screentoneShapeNames()

QStringList screentoneShapeNames ( int pattern)

Definition at line 25 of file KisScreentoneGeneratorConfiguration.cpp.

26{
27 if (pattern == KisScreentonePatternType_Dots) {
28 return QStringList()
29 << i18nc("Screentone Pattern - Round Dots", "Round")
30 << i18nc("Screentone Pattern - Ellipse Dots (Krita 4 legacy version)", "Ellipse (Legacy)")
31 << i18nc("Screentone Pattern - Ellipse Dots", "Ellipse")
32 << i18nc("Screentone Pattern - Diamond Dots", "Diamond")
33 << i18nc("Screentone Pattern - Square Dots", "Square");
34 } else if (pattern == KisScreentonePatternType_Lines) {
35 return QStringList()
36 << i18nc("Screentone Pattern - Straight Lines", "Straight")
37 << i18nc("Screentone Pattern - Sine Wave Lines", "Sine Wave")
38 << i18nc("Screentone Pattern - Triangular Wave Lines", "Triangular Wave")
39 << i18nc("Screentone Pattern - Sawtooth Wave Lines", "Sawtooth Wave")
40 << i18nc("Screentone Pattern - Curtains Lines", "Curtains");
41 }
42
43 return QStringList();
44}

References KisScreentonePatternType_Dots, and KisScreentonePatternType_Lines.