summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-08-05 10:00:11 (UTC)
committer llornkcor <llornkcor>2004-08-05 10:00:11 (UTC)
commitde7547111c8ee5b2424a405ba9d4454d753f465e (patch) (unidiff)
tree8d72d8c209072bce07e8a4ecb14772e1d4cf3fd4
parentcc6e3dc07d3e4baeba76b2651a2cfe118bba433c (diff)
downloadopie-de7547111c8ee5b2424a405ba9d4454d753f465e.zip
opie-de7547111c8ee5b2424a405ba9d4454d753f465e.tar.gz
opie-de7547111c8ee5b2424a405ba9d4454d753f465e.tar.bz2
proper copyright header
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libqtaux/oticker.cpp4
-rw-r--r--libqtaux/oticker.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/libqtaux/oticker.cpp b/libqtaux/oticker.cpp
index 29478fd..aa6aa9b 100644
--- a/libqtaux/oticker.cpp
+++ b/libqtaux/oticker.cpp
@@ -1,71 +1,73 @@
1/* 1/*
2                This file is part of the Opie Project 2                This file is part of the Opie Project
3 Copyright (c) 2002 L. Potter <ljp@llornkcor.com> 3 Copyright (c) 2002 L. Potter <ljp@llornkcor.com>
4 and Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
5
4 =. 6 =.
5 .=l. 7 .=l.
6           .>+-= 8           .>+-=
7 _;:,     .>    :=|. This program is free software; you can 9 _;:,     .>    :=|. This program is free software; you can
8.> <`_,   >  .   <= redistribute it and/or modify it under 10.> <`_,   >  .   <= redistribute it and/or modify it under
9:`=1 )Y*s>-.--   : the terms of the GNU General Public 11:`=1 )Y*s>-.--   : the terms of the GNU General Public
10.="- .-=="i,     .._ License as published by the Free Software 12.="- .-=="i,     .._ License as published by the Free Software
11 - .   .-<_>     .<> Foundation; either version 2 of the License, 13 - .   .-<_>     .<> Foundation; either version 2 of the License,
12     ._= =}       : or (at your option) any later version. 14     ._= =}       : or (at your option) any later version.
13    .%`+i>       _;_. 15    .%`+i>       _;_.
14    .i_,=:_.      -<s. This program is distributed in the hope that 16    .i_,=:_.      -<s. This program is distributed in the hope that
15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 17     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
16    : ..    .:,     . . . without even the implied warranty of 18    : ..    .:,     . . . without even the implied warranty of
17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 19    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 20  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
19..}^=.=       =       ; Library General Public License for more 21..}^=.=       =       ; Library General Public License for more
20++=   -.     .`     .: details. 22++=   -.     .`     .: details.
21 :     =  ...= . :.=- 23 :     =  ...= . :.=-
22 -.   .:....=;==+<; You should have received a copy of the GNU 24 -.   .:....=;==+<; You should have received a copy of the GNU
23  -_. . .   )=.  = Library General Public License along with 25  -_. . .   )=.  = General Public License along with
24    --        :-=` this library; see the file COPYING.LIB. 26    --        :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation, 27 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, 28 Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA. 29 Boston, MA 02111-1307, USA.
28 30
29*/ 31*/
30 32
31#include "oticker.h" 33#include "oticker.h"
32 34
33/* OPIE */ 35/* OPIE */
34#include <opie2/odebug.h> 36#include <opie2/odebug.h>
35 37
36#include <qpe/config.h> 38#include <qpe/config.h>
37 39
38using namespace Opie::Ui; 40using namespace Opie::Ui;
39 41
40OTicker::OTicker( QWidget* parent ) 42OTicker::OTicker( QWidget* parent )
41 : QLabel( parent ) 43 : QLabel( parent )
42{ 44{
43 setTextFormat( Qt::RichText ); 45 setTextFormat( Qt::RichText );
44 Config cfg( "qpe" ); 46 Config cfg( "qpe" );
45 cfg.setGroup( "Appearance" ); 47 cfg.setGroup( "Appearance" );
46 backgroundcolor = QColor( cfg.readEntry( "Background", "#E5E1D5" ) ); 48 backgroundcolor = QColor( cfg.readEntry( "Background", "#E5E1D5" ) );
47 foregroundcolor = Qt::black; 49 foregroundcolor = Qt::black;
48 updateTimerTime = 50; 50 updateTimerTime = 50;
49 scrollLength = 1; 51 scrollLength = 1;
50} 52}
51 53
52OTicker::~OTicker() 54OTicker::~OTicker()
53{} 55{}
54 56
55void OTicker::setBackgroundColor( const QColor& backcolor ) 57void OTicker::setBackgroundColor( const QColor& backcolor )
56{ 58{
57 backgroundcolor = backcolor; 59 backgroundcolor = backcolor;
58 update(); 60 update();
59} 61}
60 62
61void OTicker::setForegroundColor( const QColor& backcolor ) 63void OTicker::setForegroundColor( const QColor& backcolor )
62{ 64{
63 foregroundcolor = backcolor; 65 foregroundcolor = backcolor;
64 update(); 66 update();
65} 67}
66 68
67void OTicker::setFrame( int frameStyle ) 69void OTicker::setFrame( int frameStyle )
68{ 70{
69 setFrameStyle( frameStyle /*WinPanel | Sunken */ ); 71 setFrameStyle( frameStyle /*WinPanel | Sunken */ );
70 update(); 72 update();
71} 73}
diff --git a/libqtaux/oticker.h b/libqtaux/oticker.h
index a89d334..655c469 100644
--- a/libqtaux/oticker.h
+++ b/libqtaux/oticker.h
@@ -1,71 +1,72 @@
1/* 1/*
2                This file is part of the Opie Project 2                This file is part of the Opie Project
3 Copyright (c) 2002 L. Potter <ljp@llornkcor.com> 3 Copyright (c) 2002 L. Potter <ljp@llornkcor.com>
4 and Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
4 =. 5 =.
5 .=l. 6 .=l.
6           .>+-= 7           .>+-=
7 _;:,     .>    :=|. This program is free software; you can 8 _;:,     .>    :=|. This program is free software; you can
8.> <`_,   >  .   <= redistribute it and/or modify it under 9.> <`_,   >  .   <= redistribute it and/or modify it under
9:`=1 )Y*s>-.--   : the terms of the GNU General Public 10:`=1 )Y*s>-.--   : the terms of the GNU General Public
10.="- .-=="i,     .._ License as published by the Free Software 11.="- .-=="i,     .._ License as published by the Free Software
11 - .   .-<_>     .<> Foundation; either version 2 of the License, 12 - .   .-<_>     .<> Foundation; either version 2 of the License,
12     ._= =}       : or (at your option) any later version. 13     ._= =}       : or (at your option) any later version.
13    .%`+i>       _;_. 14    .%`+i>       _;_.
14    .i_,=:_.      -<s. This program is distributed in the hope that 15    .i_,=:_.      -<s. This program is distributed in the hope that
15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
16    : ..    .:,     . . . without even the implied warranty of 17    : ..    .:,     . . . without even the implied warranty of
17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
19..}^=.=       =       ; Library General Public License for more 20..}^=.=       =       ; Library General Public License for more
20++=   -.     .`     .: details. 21++=   -.     .`     .: details.
21 :     =  ...= . :.=- 22 :     =  ...= . :.=-
22 -.   .:....=;==+<; You should have received a copy of the GNU 23 -.   .:....=;==+<; You should have received a copy of the GNU
23  -_. . .   )=.  = Library General Public License along with 24  -_. . .   )=.  = General Public License along with
24    --        :-=` this library; see the file COPYING.LIB. 25    --        :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation, 26 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, 27 Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
28 29
29*/ 30*/
30 31
31#ifndef OTICKER_H 32#ifndef OTICKER_H
32#define OTICKER_H 33#define OTICKER_H
33 34
34#include <qwidget.h> 35#include <qwidget.h>
35#include <qpainter.h> 36#include <qpainter.h>
36#include <qdrawutil.h> 37#include <qdrawutil.h>
37#include <qpixmap.h> 38#include <qpixmap.h>
38#include <qstring.h> 39#include <qstring.h>
39#include <qslider.h> 40#include <qslider.h>
40#include <qlabel.h> 41#include <qlabel.h>
41#include <qframe.h> 42#include <qframe.h>
42#include <qcolor.h> 43#include <qcolor.h>
43 44
44 45
45namespace Opie { 46namespace Opie {
46namespace Ui { 47namespace Ui {
47/** 48/**
48 * @class OTicker 49 * @class OTicker
49 * @brief The OTicker class provides a QLabel widget that scroll its contents 50 * @brief The OTicker class provides a QLabel widget that scroll its contents
50 * 51 *
51 */ 52 */
52class OTicker : public QLabel { 53class OTicker : public QLabel {
53 Q_OBJECT 54 Q_OBJECT
54 55
55public: 56public:
56 57
57/*! 58/*!
58 * @fn OTicker( QWidget* parent = 0 ) 59 * @fn OTicker( QWidget* parent = 0 )
59 * @brief Object constructor. 60 * @brief Object constructor.
60 * 61 *
61 * @param parent Pointer to parent of this control. 62 * @param parent Pointer to parent of this control.
62 63
63 * Constructs a new OTicker control with parent 64 * Constructs a new OTicker control with parent
64 */ 65 */
65 OTicker( QWidget* parent=0 ); 66 OTicker( QWidget* parent=0 );
66/*! 67/*!
67 * @fn ~OTicker() 68 * @fn ~OTicker()
68 * @brief Object destructor. 69 * @brief Object destructor.
69 */ 70 */
70 ~OTicker(); 71 ~OTicker();
71/*! 72/*!