QCAD
Open Source 2D CAD
RLineweight Class Reference

Copyright (c) 2011-2015 by Andrew Mustun. More...

#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)
 
static QList< QPair< QString, RLineweight::Lineweight > > getList (bool onlyFixed)
 
static QString getName (RLineweight::Lineweight lineweight)
 

Private Member Functions

 Q_DECLARE_TR_FUNCTIONS (RLineweight)
 

Static Private Member Functions

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

Static Private Attributes

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

Detailed Description

Copyright (c) 2011-2015 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.

Scriptable:
This class is available in script environments.
Copyable:
Objects are cleaned up automatically by the garbage collector of the script engine.

Member Enumeration Documentation

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 ( )

Member Function Documentation

QIcon RLineweight::getIcon ( RLineweight::Lineweight  color)
static
QList< QPair< QString, RLineweight::Lineweight > > RLineweight::getList ( bool  onlyFixed)
static
QString RLineweight::getName ( RLineweight::Lineweight  lineweight)
static
void RLineweight::init ( )
staticprivate
void RLineweight::init ( const QString &  cn,
RLineweight::Lineweight  lineweight 
)
staticprivate
RLineweight::Q_DECLARE_TR_FUNCTIONS ( RLineweight  )
private

Member Data Documentation

QMap< RLineweight::Lineweight, QIcon > RLineweight::iconMap
staticprivate
bool RLineweight::isInitialized = false
staticprivate
QList< QPair< QString, RLineweight::Lineweight > > RLineweight::list
staticprivate

Copyright (c) 2011-2015 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: