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
wire.h
Go to the documentation of this file.
1
/***************************************************************************
2
wire.h
3
--------
4
begin : Wed Sep 3 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
#ifndef WIRE_H
19
#define WIRE_H
20
21
#include "
viewpainter.h
"
22
#include "
element.h
"
23
#include "components/component.h"
// because of struct Port
24
#include "
wirelabel.h
"
25
26
#include <qpainter.h>
27
#include <qstring.h>
28
#include <qptrlist.h>
29
30
31
class
Wire
:
public
Conductor
{
32
public
:
33
Wire
(
int
_x1=0,
int
_y1=0,
int
_x2=0,
int
_y2=0,
Node
*
n1
=0,
Node
*
n2
=0);
34
~Wire
();
35
36
void
paint
(
ViewPainter
*);
37
void
paintScheme
(QPainter*);
38
void
setCenter
(
int
,
int
,
bool
relative=
false
);
39
void
getCenter
(
int
&,
int
&);
40
bool
getSelected
(
int
,
int
);
41
void
setName
(
const
QString&,
const
QString&,
int
delta_=0,
int
x_=0,
int
y_
=0);
42
43
Node
*
Port1
, *
Port2
;
44
45
void
rotate
();
46
QString
save
();
47
bool
load
(
const
QString&);
48
bool
isHorizontal
();
49
};
50
51
#endif
Generated on Tue Dec 25 2012 14:30:44 for My Project by
1.8.2