QCAD Application Framework
CAD Application Development and Automation.
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
RLineweight.h
Go to the documentation of this file.
1
#ifndef RLINEWEIGHT_H_
2
#define RLINEWEIGHT_H_
3
4
#include <QCoreApplication>
5
#include <QMetaType>
6
#include <QString>
7
#include <QIcon>
8
#include <QPair>
9
#include <QMap>
10
#include <QList>
11
16
class
RLineweight
{
17
18
Q_DECLARE_TR_FUNCTIONS
(
RLineweight
);
19
20
public
:
21
enum
Lineweight
{
22
Weight000
= 0,
23
Weight005
= 5,
24
Weight009
= 9,
25
Weight013
= 13,
26
Weight015
= 15,
27
Weight018
= 18,
28
Weight020
= 20,
29
Weight025
= 25,
30
Weight030
= 30,
31
Weight035
= 35,
32
Weight040
= 40,
33
Weight050
= 50,
34
Weight053
= 53,
35
Weight060
= 60,
36
Weight070
= 70,
37
Weight080
= 80,
38
Weight090
= 90,
39
Weight100
= 100,
40
Weight106
= 106,
41
Weight120
= 120,
42
Weight140
= 140,
43
Weight158
= 158,
44
Weight200
= 200,
45
Weight211
= 211,
46
WeightByLayer
= -1,
47
WeightByBlock
= -2,
48
WeightByLwDefault
= -3,
49
WeightInvalid
= -4
50
};
51
52
public
:
53
RLineweight
();
54
static
QList<QPair<QString, RLineweight::Lineweight> >
getList
(
bool
onlyFixed);
55
static
QIcon
getIcon
(
RLineweight::Lineweight
color);
56
static
QString
getName
(
RLineweight::Lineweight
lineweight);
57
58
private
:
59
static
void
init
();
60
static
void
init
(
const
QString& cn,
RLineweight::Lineweight
lineweight);
61
62
private
:
63
static
bool
isInitialized
;
64
static
QList<QPair<QString, RLineweight::Lineweight> >
list
;
65
static
QMap<RLineweight::Lineweight, QIcon>
iconMap
;
66
67
};
68
69
Q_DECLARE_METATYPE
(
RLineweight
)
70
Q_DECLARE_METATYPE
(
RLineweight
*)
71
Q_DECLARE_METATYPE
(
RLineweight
::Lineweight)
72
typedef QPair<QString,
RLineweight
::Lineweight>
_RPairStringRLineweight
;
73
Q_DECLARE_METATYPE
(_RPairStringRLineweight)
74
Q_DECLARE_METATYPE
(QList< _RPairStringRLineweight >)
75
76
#endif
/* RLINEWEIGHT_H_ */
src
core
RLineweight.h
Generated on Tue Jun 26 2012 18:41:07 for QCAD Application Framework by
1.8.1.1