Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/components/logical_nor.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002                                logical_nor.cpp
00003                               -----------------
00004     begin                : Sun Sep 25 2005
00005     copyright            : (C) 2005 by Michael Margraf
00006     email                : michael.margraf@alumni.tu-berlin.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include "logical_nor.h"
00019 
00020 Logical_NOR::Logical_NOR()
00021 {
00022   Description = QObject::tr("logical NOR");
00023   Model = "NOR";
00024 
00025   createSymbol();
00026   tx = x1+4;
00027   ty = y2+4;
00028 }
00029 
00030 Logical_NOR::~Logical_NOR()
00031 {
00032 }
00033 
00034 Component* Logical_NOR::newOne()
00035 {
00036   Logical_NOR* p = new Logical_NOR();
00037   p->Props.getFirst()->Value = Props.getFirst()->Value;
00038   p->Props.getLast()->Value = Props.getLast()->Value;
00039   p->recreate(0);
00040   return p;
00041 }
00042 
00043 Element* Logical_NOR::info(QString& Name, char* &BitmapFile, bool getNewOne)
00044 {
00045   Name = QObject::tr("n-port NOR");
00046   BitmapFile = (char *) "nor";
00047 
00048   if(getNewOne)  return new Logical_NOR();
00049   return 0;
00050 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines