HELP ME!!! I AM GOING CRAZY! THIS IS KILLING ME!!! can you please help me take a look at the code:????? PLEASE PLEASE PLEASE!!!

this is the .h

Qt Code:
  1. #include <QGraphicsItem>
  2. #include <QList>
  3. #include <QTime>
  4. #include <QFont>
  5. #include <QPixmap>
  6. #include <QBrush>
  7. #include <QSound>
  8.  
  9. #include <qlcdnumber.h>
  10.  
  11. #include "edge.h"
  12. #include "settingswindow.h"
  13.  
  14.  
  15.  
  16. class Edge;
  17. class NetworkView;
  18. class NodeDb;
  19.  
  20.  
  21.  
  22. class Node : public QGraphicsItem, public QObject
  23. {
  24. public:
  25. typedef enum{ACCESS_POINT, END_DEVICE}NODE_TYPE;
  26. typedef struct
  27. {
  28. NODE_TYPE type;
  29. int addr;
  30. int xPos;
  31. int yPos;
  32. int strength;
  33. float temp;
  34. float voltage;
  35. int re;
  36.  
  37. int t_time_on;
  38. int fadeNumber;
  39. int fadeTime;
  40. int newNode;
  41. int deletedNode;
  42. }NODE_DATA;
  43.  
  44. QBrush fill[40];
  45. Node(NetworkView *networkView);
  46. NODE_DATA nodeData;
  47. void addEdge(Edge *edge);
  48. QList<Edge *> edges() const;
  49.  
  50. enum { Type = UserType + 1 };
  51. int type() const { return Type; }
  52.  
  53. bool advance();
  54.  
  55. QRectF boundingRect() const;
  56. QPainterPath shape() const;
  57. void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
  58. public slots:
  59. void setLoops() const;
  60.  
  61.  
  62. void setNodeData(int index);
  63. void updateData(int index);
  64. int getElapsedTime();
  65. void removeEdge(int childAddr = 0);
  66. int getAddr() { return nodeData.addr; }
  67. float getTemp() { return nodeData.temp; }
  68. int getType() { return nodeData.type; }
  69. void setTempUnit();
  70. void setColor(const NODE_TYPE type);
  71. int Node::find_active_node();
  72. void Node::current_updateData(int index);
  73. int timerId () const;
  74.  
  75. /*struct colors{
  76. int alpha;
  77. int r;
  78. int g;
  79. int b;
  80. int newnodeflag;
  81. int delnodeflag;
  82. };
  83. struct colors node_colors[100];*/
  84.  
  85.  
  86. protected:
  87. QVariant itemChange(GraphicsItemChange change, const QVariant &value);
  88.  
  89. void timerEvent(QTimerEvent *);
  90.  
  91. // NODE_DATA nodeData;
  92.  
  93. private:
  94. QList<Edge *> edgeList;
  95. QPointF newPos;
  96. NetworkView *graph;
  97. QPixmap pixmap,alpha_pix,back_pix,pixmap2,pix;
  98.  
  99. QColor nodeColor;
  100. QColor nodeColorDark;
  101. QColor nodeAlertColor;
  102. QColor nodeAlertColorDark;
  103.  
  104. QFont modeFont;
  105. QFont addrFont;
  106. QFont tempFont;
  107. QFont battFont;
  108. QFont strengthFont;
  109. QFont timeFont;
  110. QFont end_deviceFont;
  111. QFont keyFont;
  112. QFont smallFont;
  113. QFont txFont;
  114.  
  115. QTime timeStamp;
  116. QDate dateStamp;
  117.  
  118. QLineEdit *nameLine;
  119. NodeDb *pNodeDb;
  120.  
  121. // Flag used to highlight node.
  122. bool updated;
  123. int updateTimerId,fade_speed,updateTimerId2,updateTimerId3;
  124.  
  125. bool celsius;
  126. qreal arrowSize;
  127. double nodeAlertTemp;
  128.  
  129. };
  130.  
  131. #endif
To copy to clipboard, switch view to plain text mode