summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2005-01-04 23:02:52 (UTC)
committer mickeyl <mickeyl>2005-01-04 23:02:52 (UTC)
commitb41e4499d41fc92cc1ed4ed487e57d0a002c1a02 (patch) (unidiff)
tree828e8b126797d6c317194569ea80eb4421914803
parent9826b609736b73068b534ee67183de620b4a5ccf (diff)
downloadopie-b41e4499d41fc92cc1ed4ed487e57d0a002c1a02.zip
opie-b41e4499d41fc92cc1ed4ed487e57d0a002c1a02.tar.gz
opie-b41e4499d41fc92cc1ed4ed487e57d0a002c1a02.tar.bz2
- use proper file headers
- use namespaces - sort alphabetically in .pro file
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opieui/oledbox.cpp50
-rw-r--r--libopie2/opieui/oledbox.h53
-rw-r--r--libopie2/opieui/opieui.pro6
3 files changed, 81 insertions, 28 deletions
diff --git a/libopie2/opieui/oledbox.cpp b/libopie2/opieui/oledbox.cpp
index 52826f1..d18d4b6 100644
--- a/libopie2/opieui/oledbox.cpp
+++ b/libopie2/opieui/oledbox.cpp
@@ -1,4 +1,29 @@
1 1/*
2#include <qbitmap.h> 2                 This file is part of the Opie Project
3#include <qpainter.h> 3 =. (C) 2002-2005 the Opie Team <opie-devel@handhelds.org>
4 .=l.
5           .>+-=
6 _;:,     .>    :=|. This program is free software; you can
7.> <`_,   >  .   <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
9.="- .-=="i,     .._ License as published by the Free Software
10 - .   .-<_>     .<> Foundation; either version 2 of the License,
11     ._= =}       : or (at your option) any later version.
12    .%`+i>       _;_.
13    .i_,=:_.      -<s. This program is distributed in the hope that
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
15    : ..    .:,     . . . without even the implied warranty of
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
18..}^=.=       =       ; Library General Public License for more
19++=   -.     .`     .: details.
20 :     =  ...= . :.=-
21 -.   .:....=;==+<; You should have received a copy of the GNU
22  -_. . .   )=.  = Library General Public License along with
23    --        :-=` this library; see the file COPYING.LIB.
24 If not, write to the Free Software Foundation,
25 Inc., 59 Temple Place - Suite 330,
26 Boston, MA 02111-1307, USA.
27
28*/
4 29
@@ -6,4 +31,8 @@
6 31
32/* QT */
33#include <qbitmap.h>
34#include <qpainter.h>
7 35
8#ifdef _QTE_IS_TOO_DUMB_TO_DRAW_AN_ARC 36namespace Opie {
37namespace Ui {
9 38
@@ -43,5 +72,2 @@ QPixmap *OLedBox::s_border_pix = 0;
43 72
44#endif
45
46
47OLedBox::OLedBox ( const QColor &col, QWidget *parent, const char *name ) : QWidget ( parent, name ) 73OLedBox::OLedBox ( const QColor &col, QWidget *parent, const char *name ) : QWidget ( parent, name )
@@ -56,6 +82,4 @@ OLedBox::OLedBox ( const QColor &col, QWidget *parent, const char *name ) : QWid
56 82
57#ifdef _QTE_IS_TOO_DUMB_TO_DRAW_AN_ARC
58 if ( !s_border_pix ) 83 if ( !s_border_pix )
59 s_border_pix = new QPixmap ( ledborder_xpm ); 84 s_border_pix = new QPixmap ( ledborder_xpm );
60#endif
61} 85}
@@ -144,5 +168,3 @@ void OLedBox::paintEvent ( QPaintEvent *e )
144 168
145// From KDE libkdeui / led.cpp 169void OLedBox::drawLed ( QPixmap *pix, const QColor &col )
146
147void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNKEN led lamp
148{ 170{
@@ -223,3 +245,3 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK
223 245
224#ifdef _QTE_IS_TOO_DUMB_TO_DRAW_AN_ARC 246#ifndef QT_CAN_DRAW_ARCS
225 paint. drawPixmap ( 0, 0, *s_border_pix ); 247 paint. drawPixmap ( 0, 0, *s_border_pix );
@@ -277 +299,3 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK
277 299
300};
301};
diff --git a/libopie2/opieui/oledbox.h b/libopie2/opieui/oledbox.h
index dd930bd..c02cc77 100644
--- a/libopie2/opieui/oledbox.h
+++ b/libopie2/opieui/oledbox.h
@@ -1,4 +1,34 @@
1#ifndef __OPIE_OLED_H__ 1/*
2#define __OPIE_OLED_H__ 2                 This file is part of the Opie Project
3 3 =. (C) 2002-2005 the Opie Team <opie-devel@handhelds.org>
4 .=l.
5           .>+-=
6 _;:,     .>    :=|. This program is free software; you can
7.> <`_,   >  .   <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
9.="- .-=="i,     .._ License as published by the Free Software
10 - .   .-<_>     .<> Foundation; either version 2 of the License,
11     ._= =}       : or (at your option) any later version.
12    .%`+i>       _;_.
13    .i_,=:_.      -<s. This program is distributed in the hope that
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
15    : ..    .:,     . . . without even the implied warranty of
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
18..}^=.=       =       ; Library General Public License for more
19++=   -.     .`     .: details.
20 :     =  ...= . :.=-
21 -.   .:....=;==+<; You should have received a copy of the GNU
22  -_. . .   )=.  = Library General Public License along with
23    --        :-=` this library; see the file COPYING.LIB.
24 If not, write to the Free Software Foundation,
25 Inc., 59 Temple Place - Suite 330,
26 Boston, MA 02111-1307, USA.
27
28*/
29
30#ifndef OLEDBOX_H
31#define OLEDBOX_H
32
33/* QT */
4#include <qwidget.h> 34#include <qwidget.h>
@@ -8,5 +38,7 @@ class QPixmap;
8 38
9#define _QTE_IS_TOO_DUMB_TO_DRAW_AN_ARC 39namespace Opie {
40namespace Ui {
10 41
11class OLedBox : public QWidget { 42class OLedBox : public QWidget
43{
12 Q_OBJECT 44 Q_OBJECT
@@ -19,6 +51,4 @@ public:
19 bool isOn ( ) const; 51 bool isOn ( ) const;
20 void setReadOnly( bool R ) 52 void setReadOnly( bool R ) { m_readonly = R; }
21 { m_readonly = R; } 53 bool readOnly( void ) const { return m_readonly; }
22 inline bool readOnly( void ) const
23 { return m_readonly; }
24 54
@@ -50,7 +80,6 @@ private:
50 80
51 #ifdef _QTE_IS_TOO_DUMB_TO_DRAW_AN_ARC
52 static QPixmap *s_border_pix; 81 static QPixmap *s_border_pix;
53#endif
54}; 82};
55 83};
84};
56#endif 85#endif
diff --git a/libopie2/opieui/opieui.pro b/libopie2/opieui/opieui.pro
index 24157a1..ffa8b83 100644
--- a/libopie2/opieui/opieui.pro
+++ b/libopie2/opieui/opieui.pro
@@ -8,2 +8,3 @@ HEADERS = oclickablelabel.h \
8 okeyconfigwidget.h \ 8 okeyconfigwidget.h \
9 oledbox.h \
9 olistview.h \ 10 olistview.h \
@@ -17,3 +18,2 @@ HEADERS = oclickablelabel.h \
17 otabwidget.h \ 18 otabwidget.h \
18 oledbox.h \
19 otaskbarapplet.h \ 19 otaskbarapplet.h \
@@ -29,2 +29,3 @@ SOURCES = oclickablelabel.cpp \
29 okeyconfigwidget.cpp \ 29 okeyconfigwidget.cpp \
30 oledbox.cpp \
30 olistview.cpp \ 31 olistview.cpp \
@@ -37,3 +38,2 @@ SOURCES = oclickablelabel.cpp \
37 otabwidget.cpp \ 38 otabwidget.cpp \
38 oledbox.cpp \
39 otaskbarapplet.cpp \ 39 otaskbarapplet.cpp \
@@ -50,3 +50,3 @@ INTERFACES = otimepickerbase.ui
50TARGET = opieui2 50TARGET = opieui2
51VERSION = 1.8.5 51VERSION = 1.9.0
52 52