36 * where each line's expiry is checked for. Lines begin to fade out when nearing |
36 * where each line's expiry is checked for. Lines begin to fade out when nearing |
37 * their expiry. If the message manager's lines change, the renderer undergoes |
37 * their expiry. If the message manager's lines change, the renderer undergoes |
38 * repainting. |
38 * repainting. |
39 */ |
39 */ |
40 class MessageManager : public QObject |
40 class MessageManager : public QObject |
41 { Q_OBJECT |
41 { |
|
42 Q_OBJECT |
42 PROPERTY (public, GLRenderer*, Renderer, NO_OPS, STOCK_WRITE) |
43 PROPERTY (public, GLRenderer*, Renderer, NO_OPS, STOCK_WRITE) |
43 |
44 |
44 public: |
45 public: |
45 // Single line of the message log. |
46 // Single line of the message log. |
46 class Line |
47 class Line |
47 { public: |
48 { |
|
49 public: |
48 Line (str text); |
50 Line (str text); |
49 bool update (bool& changed); |
51 bool update (bool& changed); |
50 |
52 |
51 str text; |
53 str text; |
52 float alpha; |
54 float alpha; |