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
wirelabel.h
Go to the documentation of this file.
1
/***************************************************************************
2
wirelabel.h
3
-------------
4
begin : Sun Feb 29 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 WIRELABEL_H
19
#define WIRELABEL_H
20
21
#include "
element.h
"
22
#include "
viewpainter.h
"
23
24
#include <qpainter.h>
25
#include <qstring.h>
26
#include <qptrlist.h>
27
28
class
Wire
;
29
class
Node
;
30
31
32
class
WireLabel
:
public
Element
{
33
public
:
34
WireLabel
(
const
QString& _Name=0,
int
_cx=0,
int
_cy=0,
35
int
_x1=0,
int
_y1=0,
int
_Type=
isNodeLabel
);
36
~WireLabel
();
37
38
void
paintScheme
(QPainter *p);
39
void
setCenter
(
int
x
,
int
y,
bool
relative=
false
);
40
bool
getSelected
(
int
,
int
);
41
void
setName
(
const
QString& Name_);
42
43
Conductor
*
pOwner
;
// Wire or Node where label belongs to
44
QString
Name
,
initValue
;
45
46
void
paint
(
ViewPainter
*);
47
void
rotate
();
48
QString
save
();
49
bool
load
(
const
QString&
s
);
50
bool
isHorizontal
();
51
};
52
53
#endif
Generated on Tue Dec 25 2012 14:30:44 for My Project by
1.8.2