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
components
logical_xnor.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
logical_xnor.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_xnor.h
"
19
20
Logical_XNOR::Logical_XNOR
()
21
{
22
Description
= QObject::tr(
"logical XNOR"
);
23
Model
=
"XNOR"
;
24
25
createSymbol
();
26
tx
=
x1
+4;
27
ty
=
y2
+4;
28
}
29
30
Logical_XNOR::~Logical_XNOR
()
31
{
32
}
33
34
Component
*
Logical_XNOR::newOne
()
35
{
36
Logical_XNOR
* p =
new
Logical_XNOR
();
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_XNOR::info
(QString& Name,
char
* &BitmapFile,
bool
getNewOne)
44
{
45
Name = QObject::tr(
"n-port XNOR"
);
46
BitmapFile = (
char
*)
"xnor"
;
47
48
if
(getNewOne)
return
new
Logical_XNOR
();
49
return
0;
50
}
logical_xnor.h
GateComponent::createSymbol
void createSymbol()
Definition:
component.cpp:1437
Logical_XNOR::~Logical_XNOR
~Logical_XNOR()
Definition:
logical_xnor.cpp:30
Component::tx
int tx
Definition:
component.h:78
Element::y2
int y2
Definition:
element.h:153
Element::x1
int x1
Definition:
element.h:153
Logical_XNOR
Definition:
logical_xnor.h:24
Logical_XNOR::newOne
Component * newOne()
Definition:
logical_xnor.cpp:34
Component::ty
int ty
Definition:
component.h:78
Component::Props
Q3PtrList< Property > Props
Definition:
component.h:72
Component
Definition:
component.h:33
Element
Superclass of all schematic drawing elements.
Definition:
element.h:142
MultiViewComponent::recreate
void recreate(Schematic *)
Definition:
component.cpp:1250
Component::Model
QString Model
Definition:
component.h:80
Component::Description
QString Description
Definition:
component.h:81
Logical_XNOR::info
static Element * info(QString &, char *&, bool getNewOne=false)
Definition:
logical_xnor.cpp:43
Logical_XNOR::Logical_XNOR
Logical_XNOR()
Definition:
logical_xnor.cpp:20
Generated on Mon Sep 1 2014 20:05:20 for Qucs-GUI by
1.8.6