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
portsymbol.h
Go to the documentation of this file.
1
/***************************************************************************
2
portsymbol.h
3
--------------
4
begin : Sun Sep 5 2004
5
copyright : (C) 2004 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
#ifndef PORTSYMBOL_H
19
#define PORTSYMBOL_H
20
21
#include "
painting.h
"
22
23
24
class
PortSymbol
:
public
Painting
{
25
public
:
26
PortSymbol
(
int
cx_=0,
int
cy_=0,
const
QString& numberStr_=
"1"
,
27
const
QString& nameStr_=
""
);
28
~PortSymbol
();
29
30
void
paintScheme
(QPainter*);
31
void
getCenter
(
int
&,
int
&);
32
void
setCenter
(
int
,
int
,
bool
relative=
false
);
33
34
bool
load
(
const
QString&);
35
QString
save
();
36
QString
saveCpp
();
37
void
paint
(
ViewPainter
*);
38
bool
getSelected
(
float
,
float
,
float
);
39
void
Bounding
(
int
&,
int
&,
int
&,
int
&);
40
41
void
rotate
();
42
void
mirrorX
();
43
void
mirrorY
();
44
45
int
Angel
;
46
QString
numberStr
,
nameStr
;
47
};
48
49
#endif
Generated on Tue Dec 25 2012 14:30:43 for My Project by
1.8.2