QCAD
Open Source 2D CAD
RLineweight Class Reference

#include <RLineweight.h>

Public Types

enum  Lineweight {
  Weight000 = 0, Weight005 = 5, Weight009 = 9, Weight013 = 13,
  Weight015 = 15, Weight018 = 18, Weight020 = 20, Weight025 = 25,
  Weight030 = 30, Weight035 = 35, Weight040 = 40, Weight050 = 50,
  Weight053 = 53, Weight060 = 60, Weight070 = 70, Weight080 = 80,
  Weight090 = 90, Weight100 = 100, Weight106 = 106, Weight120 = 120,
  Weight140 = 140, Weight158 = 158, Weight200 = 200, Weight211 = 211,
  WeightByLayer = -1, WeightByBlock = -2, WeightByLwDefault = -3, WeightInvalid = -4
}
 

Public Member Functions

 RLineweight ()
 

Static Public Member Functions

static QIcon getIcon (RLineweight::Lineweight color, const QSize &size=RDEFAULT_QSIZE_ICON)
 
static QList< QPair< QString, RLineweight::Lineweight > > getList (bool onlyFixed, bool noDefault=false)
 
static QString getName (RLineweight::Lineweight lineweight)
 

Static Private Member Functions

static void init ()
 
static void init (const QString &cn, RLineweight::Lineweight lineweight)
 

Static Private Attributes

static QMap< QPair< RLineweight::Lineweight, QPair< int, int > >, QIcon > iconMap
 
static bool isInitialized = false
 
static QList< QPair< QString, RLineweight::Lineweight > > list
 Copyright (c) 2011-2018 by Andrew Mustun. More...
 

Detailed Description

Scriptable:\nThis class is available in script environments.\n
Copyable:\nObjects are cleaned up automatically by the garbage collector of the script engine.\n

Member Enumeration Documentation

◆ Lineweight

Enumerator
Weight000 
Weight005 
Weight009 
Weight013 
Weight015 
Weight018 
Weight020 
Weight025 
Weight030 
Weight035 
Weight040 
Weight050 
Weight053 
Weight060 
Weight070 
Weight080 
Weight090 
Weight100 
Weight106 
Weight120 
Weight140 
Weight158 
Weight200 
Weight211 
WeightByLayer 
WeightByBlock 
WeightByLwDefault 
WeightInvalid 

Constructor & Destructor Documentation

◆ RLineweight()

RLineweight::RLineweight ( )

Member Function Documentation

◆ getIcon()

QIcon RLineweight::getIcon ( RLineweight::Lineweight  color,
const QSize &  size = RDEFAULT_QSIZE_ICON 
)
static

◆ getList()

QList< QPair< QString, RLineweight::Lineweight > > RLineweight::getList ( bool  onlyFixed,
bool  noDefault = false 
)
static

◆ getName()

QString RLineweight::getName ( RLineweight::Lineweight  lineweight)
static

◆ init() [1/2]

void RLineweight::init ( )
staticprivate

◆ init() [2/2]

void RLineweight::init ( const QString &  cn,
RLineweight::Lineweight  lineweight 
)
staticprivate

Member Data Documentation

◆ iconMap

QMap< QPair< RLineweight::Lineweight, QPair< int, int > >, QIcon > RLineweight::iconMap
staticprivate

◆ isInitialized

bool RLineweight::isInitialized = false
staticprivate

◆ list

QList< QPair< QString, RLineweight::Lineweight > > RLineweight::list
staticprivate

Copyright (c) 2011-2018 by Andrew Mustun.

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.


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