Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
node.h
Go to the documentation of this file.
1 /***************************************************************************
2  node.h
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 #ifndef NODE_H
19 #define NODE_H
20 
21 #include "element.h"
22 
23 #include <Q3PtrList>
24 
25 class ViewPainter;
26 class WireLabel;
27 class QPainter;
28 
29 
30 class Node : public Conductor {
31 public:
32  Node(int, int);
33  ~Node();
34 
35  void paint(ViewPainter*);
36  bool getSelected(int, int);
37  void setName(const QString&, const QString&, int x_=0, int y_=0);
38 
39  Q3PtrList<Element> Connections;
40  QString Name; // node name used by creation of netlist
41  QString DType; // type of node (used by digital files)
42  int State; // remember some things during some operations
43 };
44 
45 #endif
Defines drawing elements for schematics.
void setName(const QString &, const QString &, int x_=0, int y_=0)
Definition: node.cpp:71
Definition: node.h:30
QString DType
Definition: node.h:41
label for Node and Wire classes
Definition: element.h:161
void paint(ViewPainter *)
Definition: node.cpp:39
int State
Definition: node.h:42
Q3PtrList< Element > Connections
Definition: node.h:39
bool getSelected(int, int)
Definition: node.cpp:62
QString Name
Definition: node.h:40
~Node()
Definition: node.cpp:34
Node(int, int)
Definition: node.cpp:23