00001 #ifndef CABLE_H 00002 #define CABLE_H 00003 00004 #include <netnode.h> 00005 #include "cabledata.h" 00006 #include "cablerun.h" 00007 00008 class CableNetNode; 00009 class CableEdit; 00010 00011 class ACable : public ANetNodeInstance { 00012 00013 public : 00014 00015 ACable( CableNetNode * PNN ); 00016 00017 RuntimeInfo * runtime( void ) 00018 { return 00019 ( RT ) ? RT : ( RT = new CableRun( this, Data ) ); 00020 } 00021 00022 QWidget * edit( QWidget * parent ); 00023 QString acceptable( void ); 00024 void commit( void ); 00025 00026 virtual void * data( void ) 00027 { return (void *)&Data; } 00028 00029 short generateFileEmbedded( SystemFile & Sf, 00030 long DevNr ); 00031 protected : 00032 00033 virtual void setSpecificAttribute( QString & Attr, QString & Value ); 00034 virtual void saveSpecificAttribute( QTextStream & TS ); 00035 00036 private : 00037 00038 CableEdit * GUI; 00039 CableData Data; 00040 CableRun * RT; 00041 00042 }; 00043 00044 #endif
1.4.2