40 ~SnsrBigClockContainer(); |
40 ~SnsrBigClockContainer(); |
41 |
41 |
42 public slots: |
42 public slots: |
43 |
43 |
44 virtual void update() = 0; |
44 virtual void update() = 0; |
45 virtual void changeLayout(Qt::Orientation orientation) = 0; |
45 virtual void changeLayout(Qt::Orientation orientation); |
46 |
46 |
47 public: |
47 public: |
48 |
48 |
|
49 void setIndicatorModel(SnsrIndicatorModel &model); |
|
50 virtual void getActiveScreenRows(int *firstActiveRow, int *lastActiveRow); |
|
51 virtual bool isOrientationLocked(); |
49 virtual int updateIntervalInMilliseconds() = 0; |
52 virtual int updateIntervalInMilliseconds() = 0; |
50 void initIndicators(SnsrIndicatorModel &model); |
|
51 |
53 |
52 protected: |
54 protected: |
53 |
55 |
|
56 virtual void loadWidgets() = 0; |
54 virtual void changeEvent(QEvent * event); |
57 virtual void changeEvent(QEvent * event); |
55 QPointF randomPosition(const QRectF &rect); |
58 QPointF randomPosition(const QRectF &rect); |
56 QPointF nextRandomPosition(const QPointF &curPos, QPointF &destPos, const QRectF &containerRect); |
59 QPointF nextRandomPosition(const QPointF &curPos, QPointF &destPos, const QRectF &containerRect); |
57 |
60 void initIndicatorWidget(); |
|
61 void resetIndicatorConnections(); |
|
62 |
58 private: |
63 private: |
59 |
64 |
60 void resetIndicatorConnections(); |
|
61 void setBackgroundColor(); |
65 void setBackgroundColor(); |
62 void paint( |
66 void paint( |
63 QPainter *painter, |
67 QPainter *painter, |
64 const QStyleOptionGraphicsItem *option, |
68 const QStyleOptionGraphicsItem *option, |
65 QWidget *widget = 0 |
69 QWidget *widget = 0 |
66 ); |
70 ); |
67 |
71 |
68 signals: |
72 signals: |
69 |
73 |
70 void unlockRequested(); |
74 void unlockRequested(); |
|
75 void activeAreaMoved(); |
71 |
76 |
72 protected: |
77 protected: |
73 |
78 |
74 SnsrDocumentLoader mDocumentLoader; |
79 SnsrDocumentLoader mDocumentLoader; |
75 QObjectList mDocumentObjects; |
80 QObjectList mDocumentObjects; |