summaryrefslogtreecommitdiff
path: root/libqtaux/oticker.h
Unidiff
Diffstat (limited to 'libqtaux/oticker.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libqtaux/oticker.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libqtaux/oticker.h b/libqtaux/oticker.h
index 4026eb5..a89d334 100644
--- a/libqtaux/oticker.h
+++ b/libqtaux/oticker.h
@@ -20,48 +20,51 @@
20++=   -.     .`     .: details. 20++=   -.     .`     .: details.
21 :     =  ...= . :.=- 21 :     =  ...= . :.=-
22 -.   .:....=;==+<; You should have received a copy of the GNU 22 -.   .:....=;==+<; You should have received a copy of the GNU
23  -_. . .   )=.  = Library General Public License along with 23  -_. . .   )=.  = Library General Public License along with
24    --        :-=` this library; see the file COPYING.LIB. 24    --        :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation, 25 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, 26 Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA. 27 Boston, MA 02111-1307, USA.
28 28
29*/ 29*/
30 30
31#ifndef OTICKER_H 31#ifndef OTICKER_H
32#define OTICKER_H 32#define OTICKER_H
33 33
34#include <qwidget.h> 34#include <qwidget.h>
35#include <qpainter.h> 35#include <qpainter.h>
36#include <qdrawutil.h> 36#include <qdrawutil.h>
37#include <qpixmap.h> 37#include <qpixmap.h>
38#include <qstring.h> 38#include <qstring.h>
39#include <qslider.h> 39#include <qslider.h>
40#include <qlabel.h> 40#include <qlabel.h>
41#include <qframe.h> 41#include <qframe.h>
42#include <qcolor.h> 42#include <qcolor.h>
43 43
44
45namespace Opie {
46namespace Ui {
44/** 47/**
45 * @class OTicker 48 * @class OTicker
46 * @brief The OTicker class provides a QLabel widget that scroll its contents 49 * @brief The OTicker class provides a QLabel widget that scroll its contents
47 * 50 *
48 */ 51 */
49class OTicker : public QLabel { 52class OTicker : public QLabel {
50 Q_OBJECT 53 Q_OBJECT
51 54
52public: 55public:
53 56
54/*! 57/*!
55 * @fn OTicker( QWidget* parent = 0 ) 58 * @fn OTicker( QWidget* parent = 0 )
56 * @brief Object constructor. 59 * @brief Object constructor.
57 * 60 *
58 * @param parent Pointer to parent of this control. 61 * @param parent Pointer to parent of this control.
59 62
60 * Constructs a new OTicker control with parent 63 * Constructs a new OTicker control with parent
61 */ 64 */
62 OTicker( QWidget* parent=0 ); 65 OTicker( QWidget* parent=0 );
63/*! 66/*!
64 * @fn ~OTicker() 67 * @fn ~OTicker()
65 * @brief Object destructor. 68 * @brief Object destructor.
66 */ 69 */
67 ~OTicker(); 70 ~OTicker();
@@ -122,25 +125,27 @@ protected:
122 * 125 *
123 */ 126 */
124 void timerEvent( QTimerEvent * e); 127 void timerEvent( QTimerEvent * e);
125/*! 128/*!
126 * @fn drawContents( QPainter *p ) 129 * @fn drawContents( QPainter *p )
127 * @brief draws widget contents 130 * @brief draws widget contents
128 * @param p QPainter. see QPainter 131 * @param p QPainter. see QPainter
129 * 132 *
130 */ 133 */
131 void drawContents( QPainter *p ); 134 void drawContents( QPainter *p );
132/*! 135/*!
133 * @fn mouseReleaseEvent( QMouseEvent *e) 136 * @fn mouseReleaseEvent( QMouseEvent *e)
134 * @brief mouse release event 137 * @brief mouse release event
135 * @param e QMouseEvent. see QMouseEvent. 138 * @param e QMouseEvent. see QMouseEvent.
136 * 139 *
137 */ 140 */
138 void mouseReleaseEvent( QMouseEvent *e); 141 void mouseReleaseEvent( QMouseEvent *e);
139private: 142private:
140 QColor backgroundcolor, foregroundcolor; 143 QColor backgroundcolor, foregroundcolor;
141 QString scrollText; 144 QString scrollText;
142 QPixmap scrollTextPixmap; 145 QPixmap scrollTextPixmap;
143 int pos, updateTimerTime, scrollLength; 146 int pos, updateTimerTime, scrollLength;
144}; 147};
145 148
149}
150}
146#endif 151#endif