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
components
logical_and.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
logical_and.cpp
3
-----------------
4
begin : Sun Sep 25 2005
5
copyright : (C) 2005 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 "
logical_and.h
"
19
20
Logical_AND::Logical_AND
()
21
{
22
Description
= QObject::tr(
"logical AND"
);
23
Model
=
"AND"
;
24
25
createSymbol
();
26
tx
=
x1
+4;
27
ty
=
y2
+4;
28
}
29
30
Logical_AND::~Logical_AND
()
31
{
32
}
33
34
Component
*
Logical_AND::newOne
()
35
{
36
Logical_AND
* p =
new
Logical_AND
();
37
p->
Props
.getFirst()->Value =
Props
.getFirst()->Value;
38
p->
Props
.getLast()->Value =
Props
.getLast()->Value;
39
p->
recreate
(0);
40
return
p;
41
}
42
43
Element
*
Logical_AND::info
(QString& Name,
char
* &BitmapFile,
bool
getNewOne)
44
{
45
Name = QObject::tr(
"n-port AND"
);
46
BitmapFile = (
char
*)
"and"
;
47
48
if
(getNewOne)
return
new
Logical_AND
();
49
return
0;
50
}
Generated on Tue Dec 25 2012 14:30:39 for My Project by
1.8.2