Qucs-GUI
0.0.19
|
00001 /*************************************************************************** 00002 node.h 00003 -------- 00004 begin : Sat Sep 20 2003 00005 copyright : (C) 2003 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 #ifndef NODE_H 00019 #define NODE_H 00020 00021 #include "element.h" 00022 00023 #include <Q3PtrList> 00024 00025 class ViewPainter; 00026 00027 00028 class Node : public Conductor { 00029 public: 00030 Node(int, int); 00031 ~Node(); 00032 00033 void paint(ViewPainter*); 00034 bool getSelected(int, int); 00035 void setName(const QString&, const QString&, int x_=0, int y_=0); 00036 00037 Q3PtrList<Element> Connections; 00038 QString Name; // node name used by creation of netlist 00039 QString DType; // type of node (used by digital files) 00040 int State; // remember some things during some operations 00041 }; 00042 00043 #endif