qucs_s/qucs/node.h
2024-07-16 19:01:00 +02:00

42 lines
1.5 KiB
C++

/***************************************************************************
node.h
--------
begin : Sat Sep 20 2003
copyright : (C) 2003 by Michael Margraf
email : michael.margraf@alumni.tu-berlin.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef NODE_H
#define NODE_H
#include "conductor.h"
#include "qt3_compat/qt_compat.h"
class Node : public Conductor {
public:
Node(int, int);
~Node();
void paint(QPainter* painter) const;
bool getSelected(int, int);
void setName(const QString&, const QString&, int x_=0, int y_=0);
Q3PtrList<Element> Connections;
QString Name; // node name used by creation of netlist
QString DType; // type of node (used by digital files)
int State; // remember some things during some operations
};
#endif