Debian Codegraph @

src/qled.h

raw symbols SCIP
1 /* LED class adapted from KDE to use under QT
2 *
3 Copyright (C) 1998 Jörg Habenicht ([email protected])
4 Copyright (C) 2010 Christoph Feck <[email protected]>
5 Copyright (C) 2011 Mario Stephan <[email protected]>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21 */
22
23 #ifndef QLed_H
24 #define QLed_Hcxx . . $ `src/qled.h:24:9`!
25
26 #include <QWidget>
27 #include <QPainter>
28
29 class QColorcxx . . $ QColor#;
30 class QLedcxx . . $ QLed# : public QWidgetcxx . . $ QWidget#
31 {
32 Q_OBJECTcxx . . $ QLed#trUtf8(75d9f1c324b4579d).
33 Q_ENUMScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:111:9`!( State Shape Look )
34
35 public:
36
37 enum Statecxx . . $ QLed#State# { Offcxx . . $ QLed#Off., Oncxx . . $ QLed#On. };
38
39 enum Shapecxx . . $ QLed#Shape# { Rectangularcxx . . $ QLed#Rectangular., Circularcxx . . $ QLed#Circular. };
40
41 enum Lookcxx . . $ QLed#Look# { Flatcxx . . $ QLed#Flat., Raisedcxx . . $ QLed#Raised., Sunkencxx . . $ QLed#Sunken. };
42
43 explicit QLedcxx . . $ QLed#QLed(108f35f7aa7f3cf9).( QWidgetcxx . . $ QWidget# *parent = 0 );
44
45 explicit QLedcxx . . $ QLed#QLed(3c3dcce02bc111f4).( const QColorcxx . . $ QColor# &color, QWidgetcxx . . $ QWidget# *parent = 0 );
46
47 QLedcxx . . $ QLed#QLed(e547b56e2f5d3887).( const QColorcxx . . $ QColor#& color, QLedcxx . . $ QLed#::Statecxx . . $ QLed#State# state, QLedcxx . . $ QLed#::Lookcxx . . $ QLed#Look# look, QLedcxx . . $ QLed#::Shapecxx . . $ QLed#Shape# shape,
48 QWidgetcxx . . $ QWidget# *parent = 0 );
49
50 ~cxx . . $ QLed#`~QLed`(ced63f7c635d850d).QLedcxx . . $ QLed#();
51
52 QColorcxx . . $ QColor# colorcxx . . $ QLed#color(6d62b116d5d1b12f).() const;
53
54 Statecxx . . $ QLed#State# statecxx . . $ QLed#state(97a9ec340be2cb70).() const;
55
56 Lookcxx . . $ QLed#Look# lookcxx . . $ QLed#look(5c4af37df4ab5c90).() const;
57
58 Shapecxx . . $ QLed#Shape# shapecxx . . $ QLed#shape(ef43cf604775b195).() const;
59
60 int darkFactorcxx . . $ QLed#darkFactor(455f465bc33b4cdf).() const;
61
62 void setColorcxx . . $ QLed#setColor(129a55e114526ad3).( const QColorcxx . . $ QColor#& color );
63
64 void setStatecxx . . $ QLed#setState(c3814832606d3bfb).( Statecxx . . $ QLed#State# state );
65
66 void setLookcxx . . $ QLed#setLook(fdc459d8768250a7).( Lookcxx . . $ QLed#Look# look );
67
68 void setShapecxx . . $ QLed#setShape(c349c718748204da).( Shapecxx . . $ QLed#Shape# shape );
69
70 void setDarkFactorcxx . . $ QLed#setDarkFactor(d4f767463ce0a6b3).( int darkFactor );
71
72 virtual QSizecxx . . $ QSize# sizeHintcxx . . $ QLed#sizeHint(4b3b776e5ee2b367).() const;
73 virtual QSizecxx . . $ QSize# minimumSizeHintcxx . . $ QLed#minimumSizeHint(4b3b776e5ee2b367).() const;
74
75 public Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!:
76
77 void togglecxx . . $ QLed#toggle(49f6e7a06ebc5aa8).();
78
79 void oncxx . . $ QLed#on(49f6e7a06ebc5aa8).();
80
81 void offcxx . . $ QLed#off(49f6e7a06ebc5aa8).();
82
83 protected:
84 virtual int ledWidthcxx . . $ QLed#ledWidth(455f465bc33b4cdf).() const;
85
86 virtual void paintFlatcxx . . $ QLed#paintFlat(49f6e7a06ebc5aa8).();
87
88 virtual void paintRaisedcxx . . $ QLed#paintRaised(49f6e7a06ebc5aa8).();
89
90 virtual void paintSunkencxx . . $ QLed#paintSunken(49f6e7a06ebc5aa8).();
91
92 virtual void paintRectcxx . . $ QLed#paintRect(49f6e7a06ebc5aa8).();
93
94 virtual void paintRectFramecxx . . $ QLed#paintRectFrame(b45ddcbc8423892c).( bool raised );
95
96 void paintEventcxx . . $ QLed#paintEvent(f239c9e85d61a220).( QPaintEventcxx . . $ QPaintEvent#* );
97 void resizeEventcxx . . $ QLed#resizeEvent(eeeec21cf8dc0387).( QResizeEventcxx . . $ QResizeEvent#* );
98
99 bool paintCachedPixmapcxx . . $ QLed#paintCachedPixmap(c9857a73d68e59ba).();
100
101 void updateCachedPixmapcxx . . $ QLed#updateCachedPixmap(49f6e7a06ebc5aa8).();
102
103 void paintLedcxx . . $ QLed#paintLed(2b1357a7fabc35f1).(Shapecxx . . $ QLed#Shape# shape, Lookcxx . . $ QLed#Look# look);
104
105 private:
106 class Privatecxx . . $ QLed#Private#;
107 Privatecxx . . $ QLed#Private# * const dcxx . . $ QLed#d.;
108 QColorcxx . . $ QColor# overlayColorscxx . . $ QLed#overlayColors(ee3e018a28843076).(const QColorcxx . . $ QColor# &base, const QColorcxx . . $ QColor# &paint,
109 QPaintercxx . . $ QPainter#::CompositionModecxx . . $ QPainter#CompositionMode# comp = QPaintercxx . . $ QPainter#::CompositionMode_SourceOvercxx . . $ QPainter#CompositionMode_SourceOver.);
110 };
111
112 #endif