00001 #ifndef SIGNALFRAME_HH 00002 #define SIGNALFRAME_HH 00003 00004 #include <gdkmm/types.h> 00005 #include <electro/CSignal.hh> 00006 00007 namespace RLC { 00008 class CNetworksArea; 00009 00014 class CSignalFrame 00015 { 00016 public: 00017 CSignalFrame(); 00018 ~CSignalFrame(){} 00019 00023 void setSignal(CSignal* signal) {m_signal = signal;} 00027 void setCoords(Gdk::Point coords); 00031 void setSize(Gdk::Point size) {m_size = size;} 00035 void setParent(RLC::CNetworksArea* parent) {m_parent = parent;} 00039 void draw(); 00040 00041 protected: 00042 int xF(int x); 00043 int yF(int y); 00044 int xC(int x); 00045 int yC(int y); 00046 void resetChartCoords(); 00047 00048 CSignal* m_signal; 00049 Gdk::Point m_coords; 00050 Gdk::Point m_size; 00051 Gdk::Point m_chartCoords; 00052 RLC::CNetworksArea* m_parent; 00053 }; 00054 00055 } 00056 #endif