RS
Class in Core Module
Header: #include <src/core/RS.h>
Description
Section titled “Description”Class namespace for various global enums.
Most enums fit in a class, but some are truly global, others cannot be declared in a class because this would result in problems with include files that depend on each other (note that there is no way to forward-declare nested classes or enums).
Scriptable: This class is available in script environments.
Public Types
Section titled “Public Types”| enum | AngleFormat { DegreesDecimal, DegreesMinutesSeconds, Gradians, Radians, Surveyors }Angle format for printing angles. |
| enum | AngleUnit { Deg, Rad, Gra }Angle Units. |
| enum | BooleanOperation { Intersection, Union, Difference, Xor } |
| enum | Easing { Linear, InQuad, OutQuad, InOutQuad, OutInQuad, InCubic, OutCubic, InOutCubic, OutInCubic, InQuart, OutQuart, InOutQuart, OutInQuart, InQuint, OutQuint, InOutQuint, OutInQuint, InSine, OutSine, InOutSine, OutInSine, InExpo, OutExpo, InOutExpo, OutInExpo, InCirc, OutCirc, InOutCirc, OutInCirc, InElastic, OutElastic, InOutElastic, OutInElastic, InBack, OutBack, InOutBack, OutInBack, InBounce, OutBounce, InOutBounce, OutInBounce } |
| enum | Ending { EndingStart, EndingEnd, EndingNone }Entity ending. |
| enum | EndType { EndClosedPolygon, EndClosedLine, EndOpenButt, EndOpenSquare, EndOpenRound, EndOpenSingle } |
| enum | EntityType { ObjectAll, ObjectUnknown, ObjectLinetype, ObjectLayer, ObjectBlock, ObjectLayout, ObjectLayerState, ObjectView, ObjectUcs, ObjectDocumentVariable, ObjectDimStyle, ObjectConstraint, EntityAll, EntityUnknown, EntityAttribute, EntityAttributeDefinition, EntityBlockRef, EntityBlockRefAttr, EntityPoint, EntityLine, EntityXLine, EntityRay, EntityPolyline, EntityArc, EntityCircle, EntityEllipse, EntitySolid, Entity3dFace, EntityTextBased, EntityText, EntityTrace, EntityFace, EntityDimension, EntityDimLinear, EntityDimAligned, EntityDimRotated, EntityDimRadial, EntityDimDiametric, EntityDimAngular, EntityDimAngular2L, EntityDimAngular3P, EntityDimArcLength, EntityDimOrdinate, EntityHatch, EntityImage, EntityLeader, EntitySpline, EntityViewport, EntityTolerance, EntityWipeout, EntityXRef, EntityPolyMesh, EntityCustom, EntityUser }Entity types used for property handling / filtering. |
| enum | FillType { EvenOdd, NonZero, Positive, Negative } |
| enum | From { FromStart, FromEnd, FromAny, AlongPolyline }End used to specify from which end of a shape to measure a distance. |
| enum | HAlign { HAlignLeft, HAlignCenter, HAlignRight, HAlignAlign, HAlignMid, HAlignFit }Horizontal alignments. |
| enum | IsoProjectionType { NoProjection, Top, Bottom, Left, LeftBack, Right, RightBack, Isometric, IsometricTrue, Planometric, Dimetric, Cabinet, Cabinet30, Cavalier, User1, User2, User3, User4, IsoTop, IsoBottom, IsoLeft, IsoLeftBack, IsoRight, IsoRightBack }Projection type for isometric projections. |
| enum | JoinType { JoinBevel, JoinRound, JoinMiter } |
| enum | KnownVariable { ANGBASE, ANGDIR, ATTMODE, AUNITS, AUPREC, CECOLOR, CELTSCALE, CHAMFERA, CHAMFERB, CHAMFERC, CHAMFERD, CLAYER, CMLJUST, CMLSCALE, DIMADEC, DIMALT, DIMALTD, DIMALTF, DIMALTRND, DIMALTTD, DIMALTTZ, DIMALTU, DIMALTZ, DIMAPOST, DIMASZ, DIMATFIT, DIMAUNIT, DIMAZIN, DIMBLK, DIMBLK1, DIMBLK2, DIMCEN, DIMCLRD, DIMCLRE, DIMCLRT, DIMDEC, DIMDLE, DIMDLI, DIMDSEP, DIMEXE, DIMEXO, DIMFRAC, DIMGAP, DIMJUST, DIMLDRBLK, DIMLFAC, DIMLIM, DIMLUNIT, DIMLWD, DIMLWE, DIMPOST, DIMRND, DIMSAH, DIMSCALE, DIMSD1, DIMSD2, DIMSE1, DIMSE2, DIMSOXD, DIMTAD, DIMTDEC, DIMTFAC, DIMTIH, DIMTIX, DIMTM, DIMTOFL, DIMTOH, DIMTOL, DIMTOLJ, DIMTP, DIMTSZ, DIMTVP, DIMTXSTY, DIMTXT, DIMTZIN, DIMUPT, DIMZIN, DISPSILH, DWGCODEPAGE, DRAWORDERCTL, ELEVATION, EXTMAX, EXTMIN, FACETRES, FILLETRAD, FILLMODE, IMAGEFRAME, INSBASE, INSUNITS, ISOLINES, LIMCHECK, LIMMAX, LIMMIN, LTSCALE, LUNITS, LUPREC, MAXACTVP, MEASUREMENT, MIRRTEXT, ORTHOMODE, PDMODE, PDSIZE, PELEVATION, PELLIPSE, PEXTMAX, PEXTMIN, PINSBASE, PLIMCHECK, PLIMMAX, PLIMMIN, PLINEGEN, PLINEWID, PROXYGRAPHICS, PSLTSCALE, PUCSNAME, PUCSORG, PUCSXDIR, PUCSYDIR, QTEXTMODE, REGENMODE, SHADEDGE, SHADEDIF, SKETCHINC, SKPOLY, SPLFRAME, SPLINESEGS, SPLINETYPE, SURFTAB1, SURFTAB2, SURFTYPE, SURFU, SURFV, TEXTQLTY, TEXTSIZE, TEXTSTYLE, THICKNESS, TILEMODE, TRACEWID, TREEDEPTH, UCSNAME, UCSORG, UCSXDIR, UCSYDIR, UNITMODE, USERI1, USERI2, USERI3, USERI4, USERI5, USERR1, USERR2, USERR3, USERR4, USERR5, USRTIMER, VISRETAIN, WORLDVIEW, MaxKnownVariable, INVALID }Well established document variables. |
| enum | KnownVariableType { VarTypeBool, VarTypeInt, VarTypeDouble, VarTypeColor, VarTypeUnknown } |
| enum | LinearFormat { Scientific, Decimal, Engineering, ArchitecturalStacked, FractionalStacked, Architectural, Fractional, WindowsDesktop }Format for length values. |
| enum | Measurement { UnknownMeasurement, Imperial, Metric }Enum of supported measurement systems. |
| enum | MessageType { Print, Debug, Warning, Critical, Command }Message type for debugging and displaying user messages. |
| enum | MetaType { Bool, Char, Double, Int, UnknownType, LongLong, BitArray, Bitmap, Brush, ByteArray, Color, Cursor, Date, DateTime, EasingCurve, Font, Hash, Icon, Image, KeySequence, Line, LineF, List, Locale, Map, Matrix4x4, Palette, Pen, Pixmap, Point, PointF, Polygon, Rect, RectF, Region, Size, SizeF, SizePolicy, String, StringList, TextFormat, TextLength, Time, Transform, Url, Vector2D, Vector3D, Vector4D, Quaternion, UInt, ULongLong, UserType } |
| enum | Orientation { UnknownOrientation, Any, CW, CCW } |
| enum | OrthoMode { OrthoVertical, OrthoHorizonal, Orthogonal }Orthogonal mode, used for snap restrictions. |
| enum | ProjectionRenderingHint { RenderTop, RenderSide, RenderFront, RenderThreeD }Sets the current rendering hint for exports. |
| enum | Side { NoSide, LeftHand, RightHand, BothSides }Side used for side of a point relative to an entity (right hand or left hand side). |
| enum | TextDrawingDirection { LeftToRight, TopToBottom, ByStyle }Text drawing direction. |
| enum | TextLineSpacingStyle { AtLeast, Exact }Line spacing style for texts. |
| enum | Unit { None, Inch, Foot, Mile, Millimeter, Centimeter, Meter, Kilometer, Microinch, Mil, Yard, Angstrom, Nanometer, Micron, Decimeter, Decameter, Hectometer, Gigameter, Astro, Lightyear, Parsec, MaxUnit }Enum of supported units (values correspond to DXF spec). |
| enum | VAlign { VAlignTop, VAlignMiddle, VAlignBase, VAlignBottom }Vertical alignments. |
Static Public Functions
Section titled “Static Public Functions”| static QString | captured(const QRegularExpression &rx, const QRegularExpressionMatch &match, int nth=0) |
| static bool | compare(const QPair< QVariant, RPropertyAttributes > &p1, const QPair< QVariant, RPropertyAttributes > &p2, bool noTolerance=false) |
| static bool | compare(const QVariant &v1, const QVariant &v2, bool noTolerance=false) |
| static int | compareAlphanumerical(const QString &s1, const QString &s2)Alphanumerical, locale aware, case insensitive comparison. |
| static QStringList | compareChunkify(const QString &s) |
| static QString | convert(const QByteArray &str, const QString &codecName) |
| static QRegularExpression | createRegEpCI(const QString &str, bool regExp2=false) |
| static QString | escape(const QString &plain) |
| static bool | exactMatch(const QRegularExpression &rx, const QString &string) |
| static bool | exactMatch(const QRegularExpression &rx, QRegularExpressionMatch &match, const QString &string) |
| static bool | exactMatch(const QString &rxStr, const QString &string) |
| static QSize | getAvailableGeometry(int screen) |
| static QString | getBuildCpuArchitecture() |
| static QString | getCpuArchitecture() |
| static int | getCpuCores() |
| static QStringList | getDirectoryList(const QString &subDirectory) |
| static QStringList | getFileList(const QString &subDirectory, const QString &fileExtension)Searches for files in various directories under the given subdirectory which match the given file extension. |
| static QString | getFontFamily(const QTextCharFormat &format) |
| static QString | getFontFamilyFromFileName(const QString &fileName) |
| static QStringList | getFontList() |
| static QString | getHostId() |
| static int | getIdealThreadCount() |
| static QString | getImageFilePath(const QString &docFileName, const QString &importedFileName, const QByteArray &imageData) |
| static QStringList | getLinetypeList(bool metric) |
| static int | getMetaType(const QVariant &v) |
| static QSizeF | getPageSize(const QString &name) |
| static int | getPageSizeId(const QString &name) |
| static QStringList | getPatternList(bool metric) |
| static int | getScreenCount() |
| static QString | getSystemId() |
| static QString | getWindowManagerId() |
| static int | indexIn(const QRegularExpression &rx, QRegularExpressionMatch &match, const QString &string, int from=0) |
| static bool | lessThanAlphanumerical(const QString &s1, const QString &s2) |
| static bool | mapContainsCaseInsensitive(const QMap< QString, T > &map, const QString &key) |
| static T | mapValueCaseInsensitive(const QMap< QString, T > &map, const QString &key) |
| static int | matchedLength(const QRegularExpression &rx, const QRegularExpressionMatch &match) |
| static void | setUtf8Codec(QTextStream &ts) |
| static bool | showInFileManager(const QString &filePaths) |
| static QStringList | sortAlphanumerical(const QStringList &list)Alphanumerical sorting. |
| static QList< T > | toList(const QSet< T > &set) |
| static QSet< T > | toSet(const QList< T > &list) |
| static QList< T > | unique(const QList< T > &list) |
Static Public Attributes
Section titled “Static Public Attributes”| static const double | AngleTolerance |
| static const QPrinter::Orientation | Landscape |
| static const Qt::MouseButton | MiddleButton |
| static const double | PointTolerance |
| static const QPrinter::Orientation | Portrait |
Member Documentation
Section titled “Member Documentation”AngleFormat
Section titled “AngleFormat”enum AngleFormatAngle format for printing angles.
AngleUnit
Section titled “AngleUnit”enum AngleUnitAngle Units.
| Value | Description |
|---|---|
Deg |
Degrees. |
Rad |
Radians. |
Gra |
Gradians. |
BooleanOperation
Section titled “BooleanOperation”enum BooleanOperation| Value | Description |
|---|---|
Intersection |
|
Union |
|
Difference |
|
Xor |
Easing
Section titled “Easing”enum EasingEnding
Section titled “Ending”enum EndingEntity ending.
Used for returning which end of an entity is meant.
| Value | Description |
|---|---|
EndingStart |
Start point. |
EndingEnd |
End point. |
EndingNone |
Neither. |
EndType
Section titled “EndType”enum EndType| Value | Description |
|---|---|
EndClosedPolygon |
|
EndClosedLine |
|
EndOpenButt |
|
EndOpenSquare |
|
EndOpenRound |
|
EndOpenSingle |
EntityType
Section titled “EntityType”enum EntityTypeEntity types used for property handling / filtering.
| Value | Description |
|---|---|
ObjectAll |
|
ObjectUnknown |
Unknown object. |
ObjectLinetype |
|
ObjectLayer |
|
ObjectBlock |
|
ObjectLayout |
|
ObjectLayerState |
|
ObjectView |
|
ObjectUcs |
|
ObjectDocumentVariable |
|
ObjectDimStyle |
|
ObjectConstraint |
Constraint. |
EntityAll |
All entities (for filters). |
EntityUnknown |
Unknown entity. |
EntityAttribute |
Block attribute. |
EntityAttributeDefinition |
Block attribute definition. |
EntityBlockRef |
Block reference. |
EntityBlockRefAttr |
Block reference with attributes. |
EntityPoint |
Point. |
EntityLine |
Line. |
EntityXLine |
XLine. |
EntityRay |
Ray. |
EntityPolyline |
Polyline. |
EntityArc |
Arc. |
EntityCircle |
Circle. |
EntityEllipse |
Ellipse. |
EntitySolid |
Solid. |
Entity3dFace |
3d Face |
EntityTextBased |
Any text based entity (text, attribute def, attribute). |
EntityText |
Text. |
EntityTrace |
Trace. |
EntityFace |
Face. |
EntityDimension |
Any Dimension. |
EntityDimLinear |
Any linear dimension. |
EntityDimAligned |
Linear aligned Dimension. |
EntityDimRotated |
Linear rotated Dimension. |
EntityDimRadial |
Radial Dimension. |
EntityDimDiametric |
Diametric Dimension. |
EntityDimAngular |
Angular Dimension. |
EntityDimAngular2L |
Angular Dimension from 2 lines. |
EntityDimAngular3P |
Angular Dimension from 3 points. |
EntityDimArcLength |
Arc Length Dimension. |
EntityDimOrdinate |
Ordinate Dimension. |
EntityHatch |
Hatch. |
EntityImage |
Image. |
EntityLeader |
Leader. |
EntitySpline |
Spline. |
EntityViewport |
Viewport. |
EntityTolerance |
Tolerance. |
EntityWipeout |
Wipeout. |
EntityXRef |
XRef. |
EntityPolyMesh |
Polygon mesh (indexed faces, see RPolyMeshEntity). |
EntityCustom = 1000 |
Custom entity with custom renderer. |
EntityUser = 2000 |
User defined entity. Use this to identify entities that are added in a separate library and resort to C++ RTTI for RTTI. |
FillType
Section titled “FillType”enum FillType| Value | Description |
|---|---|
EvenOdd |
|
NonZero |
|
Positive |
|
Negative |
enum FromEnd used to specify from which end of a shape to measure a distance.
| Value | Description |
|---|---|
FromStart = 0x1 |
|
FromEnd = 0x2 |
|
FromAny = FromStart |
FromEnd |
AlongPolyline = 0x4 |
HAlign
Section titled “HAlign”enum HAlignHorizontal alignments.
| Value | Description |
|---|---|
HAlignLeft |
Left. |
HAlignCenter |
Centered. |
HAlignRight |
Right. |
HAlignAlign |
Aligned. |
HAlignMid |
Middle (?). |
HAlignFit |
Fit. |
IsoProjectionType
Section titled “IsoProjectionType”enum IsoProjectionTypeProjection type for isometric projections.
JoinType
Section titled “JoinType”enum JoinType| Value | Description |
|---|---|
JoinBevel |
|
JoinRound |
|
JoinMiter |
KnownVariable
Section titled “KnownVariable”enum KnownVariableWell established document variables.
KnownVariableType
Section titled “KnownVariableType”enum KnownVariableType| Value | Description |
|---|---|
VarTypeBool = 1 |
|
VarTypeInt = 2 |
|
VarTypeDouble = 3 |
|
VarTypeColor = 4 |
|
VarTypeUnknown = -1 |
LinearFormat
Section titled “LinearFormat”enum LinearFormatFormat for length values.
Measurement
Section titled “Measurement”enum MeasurementEnum of supported measurement systems.
| Value | Description |
|---|---|
UnknownMeasurement = -1 |
|
Imperial = 0 |
Imperial. |
Metric = 1 |
Metric. |
MessageType
Section titled “MessageType”enum MessageTypeMessage type for debugging and displaying user messages.
| Value | Description |
|---|---|
Print |
|
Debug |
|
Warning |
|
Critical |
|
Command |
MetaType
Section titled “MetaType”enum MetaTypeOrientation
Section titled “Orientation”enum Orientation| Value | Description |
|---|---|
UnknownOrientation = -1 |
|
Any = 0 |
|
CW = 1 |
|
CCW = 2 |
OrthoMode
Section titled “OrthoMode”enum OrthoModeOrthogonal mode, used for snap restrictions.
| Value | Description |
|---|---|
OrthoVertical |
|
OrthoHorizonal |
|
Orthogonal |
ProjectionRenderingHint
Section titled “ProjectionRenderingHint”enum ProjectionRenderingHintSets the current rendering hint for exports.
See also: RExporter::setProjectionRenderingHint
| Value | Description |
|---|---|
RenderTop |
|
RenderSide |
|
RenderFront |
|
RenderThreeD |
enum SideSide used for side of a point relative to an entity (right hand or left hand side).
| Value | Description |
|---|---|
NoSide = 0 |
|
LeftHand = 1 |
|
RightHand = 2 |
|
BothSides = 3 |
TextDrawingDirection
Section titled “TextDrawingDirection”enum TextDrawingDirectionText drawing direction.
| Value | Description |
|---|---|
LeftToRight = 1 |
Left to right. |
TopToBottom = 3 |
Top to bottom. |
ByStyle = 5 |
Inherited from associated text style. |
TextLineSpacingStyle
Section titled “TextLineSpacingStyle”enum TextLineSpacingStyleLine spacing style for texts.
| Value | Description |
|---|---|
AtLeast = 1 |
Taller characters will override. |
Exact = 2 |
Taller characters will not override. |
enum UnitEnum of supported units (values correspond to DXF spec).
VAlign
Section titled “VAlign”enum VAlignVertical alignments.
| Value | Description |
|---|---|
VAlignTop |
Top. |
VAlignMiddle |
Middle. |
VAlignBase |
Base line. |
VAlignBottom |
Bottom. |
captured
Section titled “captured”static QString RS::captured(const QRegularExpression &rx, const QRegularExpressionMatch &match, int nth=0)static
Non-Scriptable: This function is not available in script environments.
compare
Section titled “compare”static bool RS::compare(const QPair< QVariant, RPropertyAttributes > &p1, const QPair< QVariant, RPropertyAttributes > &p2, bool noTolerance=false)static
compare
Section titled “compare”static bool RS::compare(const QVariant &v1, const QVariant &v2, bool noTolerance=false)static
Returns: True if the two values are considered to be equal.
Parameters:
noTolerance: True strict comparison of doubles.
compareAlphanumerical
Section titled “compareAlphanumerical”static int RS::compareAlphanumerical(const QString &s1, const QString &s2)static
Alphanumerical, locale aware, case insensitive comparison.
compareChunkify
Section titled “compareChunkify”static QStringList RS::compareChunkify(const QString &s)static
Returns: List of strings containing either only numbers or non-numbers. E.g. “abc123” -> “abc”, “123”
convert
Section titled “convert”static QString RS::convert(const QByteArray &str, const QString &codecName)static
Non-Scriptable: This function is not available in script environments.
createRegEpCI
Section titled “createRegEpCI”static QRegularExpression RS::createRegEpCI(const QString &str, bool regExp2=false)static
Non-Scriptable: This function is not available in script environments.
escape
Section titled “escape”static QString RS::escape(const QString &plain)static
exactMatch
Section titled “exactMatch”static bool RS::exactMatch(const QRegularExpression &rx, const QString &string)static
Non-Scriptable: This function is not available in script environments.
exactMatch
Section titled “exactMatch”static bool RS::exactMatch(const QRegularExpression &rx, QRegularExpressionMatch &match, const QString &string)static
Non-Scriptable: This function is not available in script environments.
exactMatch
Section titled “exactMatch”static bool RS::exactMatch(const QString &rxStr, const QString &string)static
Non-Scriptable: This function is not available in script environments.
getAvailableGeometry
Section titled “getAvailableGeometry”static QSize RS::getAvailableGeometry(int screen)static
getBuildCpuArchitecture
Section titled “getBuildCpuArchitecture”static QString RS::getBuildCpuArchitecture()static
Returns: x32 or x64, depending on the architecture the binary was built for.
getCpuArchitecture
Section titled “getCpuArchitecture”static QString RS::getCpuArchitecture()static
getCpuCores
Section titled “getCpuCores”static int RS::getCpuCores()static
Returns: Number of CPU cores available.
getDirectoryList
Section titled “getDirectoryList”static QStringList RS::getDirectoryList(const QString &subDirectory)static
Returns: List of all directories in subdirectory ‘subDirectory’ in all possible QCAD directories.
getFileList
Section titled “getFileList”static QStringList RS::getFileList(const QString &subDirectory, const QString &fileExtension)static
Searches for files in various directories under the given subdirectory which match the given file extension.
Returns: List of the absolute paths of the files found.
getFontFamily
Section titled “getFontFamily”static QString RS::getFontFamily(const QTextCharFormat &format)static inline
getFontFamilyFromFileName
Section titled “getFontFamilyFromFileName”static QString RS::getFontFamilyFromFileName(const QString &fileName)static
Returns: Font family name from the given font file name. This only works for Windows and might not even be possible on all systems.
getFontList
Section titled “getFontList”static QStringList RS::getFontList()static
Returns: A list of absolute paths to all font files found.
getHostId
Section titled “getHostId”static QString RS::getHostId()static
All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD.
Returns: Unique combination of system ID (linux, freebsd, netbsd, openbsd, solaris, osx, win) and host name. E.g. “linux_vertigo”. Used for test data that may differ on different machines.
getIdealThreadCount
Section titled “getIdealThreadCount”static int RS::getIdealThreadCount()static
Returns: Ideal thread count for multithreading.
getImageFilePath
Section titled “getImageFilePath”static QString RS::getImageFilePath(const QString &docFileName, const QString &importedFileName, const QByteArray &imageData)static
Returns: a unique image file path for an image from an imported file based on the base name of the imported file and an MD5 hash of the image data.
Parameters:
docFileName: the name of the document file the image is imported into, used to determine the path for the image (same path) or empty if the imported file is opened not imported.importedFileName: the name of the file the image was imported from, used to determine the base name of the image file name (e.g. an SVG, EPS or PDF file)imageData: the data of the image, used to calculate an MD5 hash that is added to the base name
getLinetypeList
Section titled “getLinetypeList”static QStringList RS::getLinetypeList(bool metric)static
Returns: A list of absolute paths to all pattern files found.
getMetaType
Section titled “getMetaType”static int RS::getMetaType(const QVariant &v)static inline
getPageSize
Section titled “getPageSize”static QSizeF RS::getPageSize(const QString &name)static
getPageSizeId
Section titled “getPageSizeId”static int RS::getPageSizeId(const QString &name)static
getPatternList
Section titled “getPatternList”static QStringList RS::getPatternList(bool metric)static
Returns: A list of absolute paths to all pattern files found.
getScreenCount
Section titled “getScreenCount”static int RS::getScreenCount()static
getSystemId
Section titled “getSystemId”static QString RS::getSystemId()static
Returns: Unique system ID (“linux”, “freebsd”, “netbsd”, “openbsd”, “solaris”, “osx”, “win”).
getWindowManagerId
Section titled “getWindowManagerId”static QString RS::getWindowManagerId()static
indexIn
Section titled “indexIn”static int RS::indexIn(const QRegularExpression &rx, QRegularExpressionMatch &match, const QString &string, int from=0)static
Non-Scriptable: This function is not available in script environments.
lessThanAlphanumerical
Section titled “lessThanAlphanumerical”static bool RS::lessThanAlphanumerical(const QString &s1, const QString &s2)static
mapContainsCaseInsensitive
Section titled “mapContainsCaseInsensitive”template <class T>static bool RS::mapContainsCaseInsensitive(const QMap< QString, T > &map, const QString &key)static inline
mapValueCaseInsensitive
Section titled “mapValueCaseInsensitive”template <class T>static T RS::mapValueCaseInsensitive(const QMap< QString, T > &map, const QString &key)static inline
matchedLength
Section titled “matchedLength”static int RS::matchedLength(const QRegularExpression &rx, const QRegularExpressionMatch &match)static
Non-Scriptable: This function is not available in script environments.
setUtf8Codec
Section titled “setUtf8Codec”static void RS::setUtf8Codec(QTextStream &ts)static
showInFileManager
Section titled “showInFileManager”static bool RS::showInFileManager(const QString &filePaths)static
sortAlphanumerical
Section titled “sortAlphanumerical”static QStringList RS::sortAlphanumerical(const QStringList &list)static
Alphanumerical sorting.
toList
Section titled “toList”template <class T>static QList< T > RS::toList(const QSet< T > &set)static inline
template <class T>static QSet< T > RS::toSet(const QList< T > &list)static inline
unique
Section titled “unique”template <class T>static QList< T > RS::unique(const QList< T > &list)static inline
AngleTolerance
Section titled “AngleTolerance”static const double RS::AngleTolerance = 1.0e-9static
Landscape
Section titled “Landscape”static const QPrinter::Orientation RS::Landscape = QPrinter::Landscapestatic
MiddleButton
Section titled “MiddleButton”static const Qt::MouseButton RS::MiddleButton = Qt::MidButtonstatic
PointTolerance
Section titled “PointTolerance”static const double RS::PointTolerance = 1.0e-9static
All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD.
Portrait
Section titled “Portrait”static const QPrinter::Orientation RS::Portrait = QPrinter::Portraitstatic