author | zecke <zecke> | 2003-05-07 14:45:49 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-05-07 14:45:49 (UTC) |
commit | 9602e59e3baf01465f4b4139715f2196bb01e012 (patch) (unidiff) | |
tree | 2d7f0dbf91e88de3981fcc82d49ba8ddc05cfbd5 /libopie/oticker.h | |
parent | da949558a957ec4817bf610d7c9186585c0d2d92 (diff) | |
download | opie-9602e59e3baf01465f4b4139715f2196bb01e012.zip opie-9602e59e3baf01465f4b4139715f2196bb01e012.tar.gz opie-9602e59e3baf01465f4b4139715f2196bb01e012.tar.bz2 |
Add d ptr
add comments and FIXMEs
three new signals for otodoaccess
-rw-r--r-- | libopie/oticker.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie/oticker.h b/libopie/oticker.h index c848654..c52e317 100644 --- a/libopie/oticker.h +++ b/libopie/oticker.h | |||
@@ -41,96 +41,97 @@ | |||
41 | #include <qframe.h> | 41 | #include <qframe.h> |
42 | #include <qcolor.h> | 42 | #include <qcolor.h> |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * @class OTicker | 45 | * @class OTicker |
46 | * @brief The OTicker class provides a QLabel widget that scroll its contents | 46 | * @brief The OTicker class provides a QLabel widget that scroll its contents |
47 | * | 47 | * |
48 | */ | 48 | */ |
49 | class OTicker : public QLabel { | 49 | class OTicker : public QLabel { |
50 | Q_OBJECT | 50 | Q_OBJECT |
51 | 51 | ||
52 | public: | 52 | public: |
53 | 53 | ||
54 | /*! | 54 | /*! |
55 | * @fn OTicker( QWidget* parent = 0 ) | 55 | * @fn OTicker( QWidget* parent = 0 ) |
56 | * @brief Object constructor. | 56 | * @brief Object constructor. |
57 | * | 57 | * |
58 | * @param parent Pointer to parent of this control. | 58 | * @param parent Pointer to parent of this control. |
59 | 59 | ||
60 | * Constructs a new OTicker control with parent | 60 | * Constructs a new OTicker control with parent |
61 | */ | 61 | */ |
62 | OTicker( QWidget* parent=0 ); | 62 | OTicker( QWidget* parent=0 ); |
63 | /*! | 63 | /*! |
64 | * @fn ~OTicker() | 64 | * @fn ~OTicker() |
65 | * @brief Object destructor. | 65 | * @brief Object destructor. |
66 | */ | 66 | */ |
67 | ~OTicker(); | 67 | ~OTicker(); |
68 | /*! | 68 | /*! |
69 | * @fn setText(const QString& ) | 69 | * @fn setText(const QString& ) |
70 | * @brief sets text to be displayed | 70 | * @brief sets text to be displayed |
71 | * @param text QString text to be displayed. | 71 | * @param text QString text to be displayed. |
72 | * | 72 | * |
73 | */ | 73 | */ |
74 | void setText( const QString& text ) ; | 74 | void setText( const QString& text ) ; |
75 | /*! | 75 | /*! |
76 | * @fn setBackgroundColor(QColor color) | 76 | * @fn setBackgroundColor(QColor color) |
77 | * @brief sets color of the ticker's background | 77 | * @brief sets color of the ticker's background |
78 | * @param color QColor color to be set. | 78 | * @param color QColor color to be set. |
79 | * | 79 | * |
80 | */ | 80 | */ |
81 | //FIXME const QColor& please -zecke | 81 | //FIXME const QColor& please -zecke |
82 | void setBackgroundColor(QColor color); | 82 | void setBackgroundColor(QColor color); |
83 | /*! | 83 | /*! |
84 | * @fn setForegroundColor(QColor color) | 84 | * @fn setForegroundColor(QColor color) |
85 | * @brief sets color of text | 85 | * @brief sets color of text |
86 | * @param color QColor color of text | 86 | * @param color QColor color of text |
87 | * | 87 | * |
88 | */ | 88 | */ |
89 | // FIXME const QColor& please -zecke | ||
89 | void setForegroundColor(QColor color); | 90 | void setForegroundColor(QColor color); |
90 | /*! | 91 | /*! |
91 | * @fn setFrame(int style) | 92 | * @fn setFrame(int style) |
92 | * @brief sets frame style | 93 | * @brief sets frame style |
93 | * @param style int Frame style to be see. See Qt::WidgetFlags. | 94 | * @param style int Frame style to be see. See Qt::WidgetFlags. |
94 | * | 95 | * |
95 | */ | 96 | */ |
96 | void setFrame(int style); | 97 | void setFrame(int style); |
97 | /*! | 98 | /*! |
98 | * @fn setUpdateTime(int timeout) | 99 | * @fn setUpdateTime(int timeout) |
99 | * @brief sets time of update | 100 | * @brief sets time of update |
100 | * @param timeout int time in milliseconds between updates. | 101 | * @param timeout int time in milliseconds between updates. |
101 | * | 102 | * |
102 | */ | 103 | */ |
103 | void setUpdateTime(int timeout); | 104 | void setUpdateTime(int timeout); |
104 | /*! | 105 | /*! |
105 | * @fn setScrollLength(int length) | 106 | * @fn setScrollLength(int length) |
106 | * @brief sets amount of scrolling default is 1 | 107 | * @brief sets amount of scrolling default is 1 |
107 | * @param length int scroll length. | 108 | * @param length int scroll length. |
108 | * | 109 | * |
109 | */ | 110 | */ |
110 | void setScrollLength(int length); | 111 | void setScrollLength(int length); |
111 | signals: | 112 | signals: |
112 | /*! | 113 | /*! |
113 | * @fn mousePressed() | 114 | * @fn mousePressed() |
114 | * @brief signal mouse press event | 115 | * @brief signal mouse press event |
115 | * | 116 | * |
116 | */ | 117 | */ |
117 | void mousePressed(); | 118 | void mousePressed(); |
118 | protected: | 119 | protected: |
119 | /*! | 120 | /*! |
120 | * @fn timerEvent( QTimerEvent * e) | 121 | * @fn timerEvent( QTimerEvent * e) |
121 | * @brief timer timeout event | 122 | * @brief timer timeout event |
122 | * @param e QEvent see QEvent. | 123 | * @param e QEvent see QEvent. |
123 | * | 124 | * |
124 | */ | 125 | */ |
125 | void timerEvent( QTimerEvent * e); | 126 | void timerEvent( QTimerEvent * e); |
126 | /*! | 127 | /*! |
127 | * @fn drawContents( QPainter *p ) | 128 | * @fn drawContents( QPainter *p ) |
128 | * @brief draws widget contents | 129 | * @brief draws widget contents |
129 | * @param p QPainter. see QPainter | 130 | * @param p QPainter. see QPainter |
130 | * | 131 | * |
131 | */ | 132 | */ |
132 | void drawContents( QPainter *p ); | 133 | void drawContents( QPainter *p ); |
133 | /*! | 134 | /*! |
134 | * @fn mouseReleaseEvent( QMouseEvent *e) | 135 | * @fn mouseReleaseEvent( QMouseEvent *e) |
135 | * @brief mouse release event | 136 | * @brief mouse release event |
136 | * @param e QMouseEvent. see QMouseEvent. | 137 | * @param e QMouseEvent. see QMouseEvent. |