00001 /*************************************************************************** 00002 * Copyright (C) 2003-2005 by David Saxton * 00003 * david@bluehaze.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 ***************************************************************************/ 00010 00011 #ifndef ECBJT_H 00012 #define ECBJT_H 00013 00014 #include "component.h" 00015 00016 class BJT; 00017 00022 class ECBJT : public Component 00023 { 00024 public: 00025 ECBJT( bool isNPN, ICNDocument *icnDocument, bool newItem, const char * id = 0 ); 00026 ~ECBJT(); 00027 virtual bool canFlip() const { return true; } 00028 00029 static Item * constructNPN( ItemDocument * itemDocument, bool newItem, const char * id ); 00030 static Item * constructPNP( ItemDocument * itemDocument, bool newItem, const char * id ); 00031 static LibraryItem * libraryItemNPN(); 00032 static LibraryItem * libraryItemPNP(); 00033 00034 protected: 00035 virtual void dataChanged(); 00036 virtual void drawShape( QPainter &p ); 00037 00038 bool m_bIsNPN; 00039 BJT * m_pBJT; 00040 }; 00041 00042 #endif
1.5.1