My Project
0.0.16
QUCS Mapping
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
DownLoad
QUCS-src
qucs-0.0.16
qucs
paintings
painting.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
painting.cpp - description
3
-------------------
4
begin : Sat Nov 22 2003
5
copyright : (C) 2003 by Michael Margraf
6
email : michael.margraf@alumni.tu-berlin.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#include "
painting.h
"
19
20
Painting::Painting
()
21
{
22
Type
=
isPainting
;
23
State
= 0;
24
}
25
26
Painting
*
Painting::newOne
()
27
{
28
return
new
Painting
();
29
}
30
31
void
Painting::Bounding
(
int
& _x1,
int
& _y1,
int
& _x2,
int
& _y2)
32
{
33
_x1 =
cx
; _y1 =
cy
;
34
_x2 =
cx
+
x2
; _y2 =
cy
+
y2
;
35
}
36
37
QString
Painting::save
()
38
{
39
return
QString();
40
}
41
42
QString
Painting::saveCpp
()
43
{
44
return
QString();
45
}
46
47
QString
Painting::toPenString
(
int
pen) {
48
switch
(pen) {
49
case
Qt::NoPen:
return
"Qt::NoPen"
;
50
case
Qt::SolidLine:
return
"Qt::SolidLine"
;
51
case
Qt::DashLine:
return
"Qt::DashLine"
;
52
case
Qt::DotLine:
return
"Qt::DotLine"
;
53
case
Qt::DashDotLine:
return
"Qt::DashDotLine"
;
54
case
Qt::DashDotDotLine:
return
"Qt::DashDotDotLine"
;
55
case
Qt::MPenStyle:
return
"Qt::MPenStyle"
;
56
}
57
return
"Qt::NoPen"
;
58
}
59
60
QString
Painting::toBrushString
(
int
brush) {
61
switch
(brush) {
62
case
Qt::NoBrush:
return
"Qt::NoBrush"
;
63
case
Qt::SolidPattern:
return
"Qt::SolidPattern"
;
64
case
Qt::Dense1Pattern:
return
"Qt::Dense1Pattern"
;
65
case
Qt::Dense2Pattern:
return
"Qt::Dense2Pattern"
;
66
case
Qt::Dense3Pattern:
return
"Qt::Dense3Pattern"
;
67
case
Qt::Dense4Pattern:
return
"Qt::Dense4Pattern"
;
68
case
Qt::Dense5Pattern:
return
"Qt::Dense5Pattern"
;
69
case
Qt::Dense6Pattern:
return
"Qt::Dense6Pattern"
;
70
case
Qt::Dense7Pattern:
return
"Qt::Dense7Pattern"
;
71
case
Qt::HorPattern:
return
"Qt::HorPattern"
;
72
case
Qt::VerPattern:
return
"Qt::VerPattern"
;
73
case
Qt::CrossPattern:
return
"Qt::CrossPattern"
;
74
case
Qt::BDiagPattern:
return
"Qt::BDiagPattern"
;
75
case
Qt::FDiagPattern:
return
"Qt::FDiagPattern"
;
76
case
Qt::DiagCrossPattern:
return
"Qt::DiagCrossPattern"
;
77
case
Qt::CustomPattern :
return
"Qt::CustomPattern "
;
78
}
79
return
"Qt::NoBrush"
;
80
}
Generated on Tue Dec 25 2012 14:30:43 for My Project by
1.8.2