TechDraw: hard type enums, part 3 (#19418)
* Remove magic number and hard type enums in LineNameEnum.h - Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers. * Remove magic number and hard type enums in QGIFace.h - Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers. * Remove magic number and hard type enums in Enums.h - Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers. * Remove magic number and hard type enums in QGVPage.h - Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers. * Remove magic number and hard type enums in TaskSurfaceFinishSymbols.h - Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers. * Remove magic number and hard type enums in QGTracker.h - Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.
This commit is contained in:
committed by
GitHub
parent
38797d1fa4
commit
bf1f99c070
@@ -49,7 +49,8 @@ class TechDrawExport ISOLineName {
|
||||
Q_DECLARE_TR_FUNCTIONS(TechDraw::ISOLineName)
|
||||
|
||||
public:
|
||||
enum ISOLineType { NOLINE = 0,
|
||||
enum class ISOLine {
|
||||
NOLINE = 0,
|
||||
Continuous,
|
||||
Dashed,
|
||||
DashedSpaced,
|
||||
@@ -64,7 +65,8 @@ public:
|
||||
DashedDoubleDotted,
|
||||
DoubleDashedDoubleDotted,
|
||||
DashedTripleDotted,
|
||||
DoubleDashedTripleDotted };
|
||||
DoubleDashedTripleDotted
|
||||
};
|
||||
|
||||
static const char* ISOLineNameEnums[];
|
||||
static const int ISOLineNameCount;
|
||||
@@ -77,11 +79,13 @@ class TechDrawExport ANSILineName {
|
||||
Q_DECLARE_TR_FUNCTIONS(TechDraw::ANSILineName)
|
||||
|
||||
public:
|
||||
enum ANSILineType { NOLINE = 0,
|
||||
enum class ANSILineType {
|
||||
NOLINE = 0,
|
||||
Continuous,
|
||||
Dashed,
|
||||
LongDashedDashed,
|
||||
LongDashedDoubleDashed };
|
||||
LongDashedDoubleDashed
|
||||
};
|
||||
|
||||
static const char* ANSILineNameEnums[];
|
||||
static const int ANSILineNameCount;
|
||||
@@ -94,25 +98,26 @@ class TechDrawExport ASMELineName {
|
||||
Q_DECLARE_TR_FUNCTIONS(TechDraw::ASMELineName)
|
||||
|
||||
public:
|
||||
enum ASMELineType { NOLINE = 0,
|
||||
Visible,
|
||||
Hidden,
|
||||
Section,
|
||||
Center,
|
||||
Symmetry,
|
||||
Dimension,
|
||||
Extension,
|
||||
Leader,
|
||||
CuttingPlane,
|
||||
ViewingPlane,
|
||||
OtherPlane,
|
||||
Break1,
|
||||
Break2,
|
||||
Phantom,
|
||||
Stitch1,
|
||||
Stitch2,
|
||||
Chain
|
||||
};
|
||||
enum class ASMELineType {
|
||||
NOLINE = 0,
|
||||
Visible,
|
||||
Hidden,
|
||||
Section,
|
||||
Center,
|
||||
Symmetry,
|
||||
Dimension,
|
||||
Extension,
|
||||
Leader,
|
||||
CuttingPlane,
|
||||
ViewingPlane,
|
||||
OtherPlane,
|
||||
Break1,
|
||||
Break2,
|
||||
Phantom,
|
||||
Stitch1,
|
||||
Stitch2,
|
||||
Chain
|
||||
};
|
||||
|
||||
static const char* ASMELineNameEnums[];
|
||||
static const int ASMELineNameCount;
|
||||
|
||||
Reference in New Issue
Block a user