[TD]Standard Line Styles - App components
This commit is contained in:
86
src/Mod/TechDraw/App/LineNameEnum.cpp
Normal file
86
src/Mod/TechDraw/App/LineNameEnum.cpp
Normal file
@@ -0,0 +1,86 @@
|
||||
/***************************************************************************
|
||||
* Copyright (c) 2023 WandererFan <wandererfan@gmail.com> *
|
||||
* *
|
||||
* This file is part of the FreeCAD CAx development system. *
|
||||
* *
|
||||
* This library is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU Library General Public *
|
||||
* License as published by the Free Software Foundation; either *
|
||||
* version 2 of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This library 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 Library General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU Library General Public *
|
||||
* License along with this library; see the file COPYING.LIB. If not, *
|
||||
* write to the Free Software Foundation, Inc., 59 Temple Place, *
|
||||
* Suite 330, Boston, MA 02111-1307, USA *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "LineNameEnum.h"
|
||||
|
||||
|
||||
namespace TechDraw {
|
||||
|
||||
//! line numbers begin at 1, not 0
|
||||
|
||||
const int ISOLineName::ISOLineNameCount = 15;
|
||||
const char* ISOLineName::ISOLineNameEnums[]= {
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "NoLine"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "Continuous"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "Dashed"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "DashedSpaced"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "LongDashedDotted"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "LongDashedDoubleDotted"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "LongDashedTripleDotted"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "Dotted"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "LongDashShortDash"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "LongDashDoubleShortDash"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "DashedDotted"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "DoubleDashedDotted"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "DashedDoubleDotted"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "DoubleDashedDoubleDotted"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "DashedTripleDotted"),
|
||||
QT_TRANSLATE_NOOP("ISOLineTypeEnum", "DoubleDashedTripleDotted"),
|
||||
nullptr};
|
||||
|
||||
|
||||
const int ANSILineName::ANSILineNameCount = 4;
|
||||
const char* ANSILineName::ANSILineNameEnums[]= {
|
||||
QT_TRANSLATE_NOOP("ANSILineTypeEnum", "NoLine"),
|
||||
QT_TRANSLATE_NOOP("ANSILineTypeEnum", "Continuous"),
|
||||
QT_TRANSLATE_NOOP("ANSILineTypeEnum", "Dashed"),
|
||||
QT_TRANSLATE_NOOP("ANSILineTypeEnum", "LongDashDashed"),
|
||||
QT_TRANSLATE_NOOP("ANSILineTypeEnum", "LongDashDoubleDashed"),
|
||||
nullptr};
|
||||
|
||||
|
||||
const int ASMELineName::ASMELineNameCount = 18;
|
||||
const char* ASMELineName::ASMELineNameEnums[]= {
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "NoLine"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Visible"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Hidden"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Section"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Center"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Symmetry"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Dimension"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Extension"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Leader"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "CuttingPlane"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "ViewingPlane"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "OtherPlane"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Break1"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Break2"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Phantom"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Stitch1"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Stitch2"),
|
||||
QT_TRANSLATE_NOOP("ASMELineTypeEnum", "Chain"),
|
||||
nullptr};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user