Qucs-GUI
0.0.18
Main Page
Related Pages
Data Structures
Files
File List
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
qucs
element.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
element.cpp - description
3
-------------------
4
begin : Sat Sep 20 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 "
element.h
"
19
//#include "schematic.h"
20
Element::Element
()
21
{
22
Type
=
isDummyElement
;
23
isSelected
=
false
;
24
cx
=
cy
=
x1
=
y1
=
x2
=
y2
= 0;
25
}
26
27
Element::~Element
()
28
{
29
}
30
31
void
Element::paintScheme
(
Schematic
*)
32
{
33
}
34
35
void
Element::setCenter
(
int
,
int
,
bool
)
36
{
37
}
38
39
void
Element::getCenter
(
int
&,
int
&)
40
{
41
}
element.h
Defines drawing elements for schematics.
Element::Type
int Type
Definition:
element.h:152
Element::y1
int y1
Definition:
element.h:153
Element::y2
int y2
Definition:
element.h:153
Element::x1
int x1
Definition:
element.h:153
Element::Element
Element()
Definition:
element.cpp:20
Element::cx
int cx
Definition:
element.h:153
Element::isSelected
bool isSelected
Definition:
element.h:151
Element::~Element
virtual ~Element()
Definition:
element.cpp:27
Element::getCenter
virtual void getCenter(int &, int &)
Definition:
element.cpp:39
isDummyElement
#define isDummyElement
Definition:
element.h:107
Element::cy
int cy
Definition:
element.h:153
Schematic
Definition:
schematic.h:69
Element::paintScheme
virtual void paintScheme(Schematic *)
Definition:
element.cpp:31
Element::x2
int x2
Definition:
element.h:153
Element::setCenter
virtual void setCenter(int, int, bool relative=false)
Definition:
element.cpp:35
Generated on Mon Sep 1 2014 20:05:21 for Qucs-GUI by
1.8.6