00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef ECCELL_H
00012 #define ECCELL_H
00013
00014 #include "component.h"
00015
00021 class ECCell : public Component
00022 {
00023 public:
00024 ECCell( ICNDocument *icnDocument, bool newItem, const char *id = 0 );
00025 ~ECCell();
00026
00027 static Item* construct( ItemDocument *itemDocument, bool newItem, const char *id );
00028 static LibraryItem *libraryItem();
00029
00030 private:
00031 void dataChanged();
00032 virtual void drawShape( QPainter &p );
00033 VoltageSource *m_voltageSource;
00034 double voltage;
00035 };
00036
00037 #endif