<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US"> <head> <title>kdeui: KLed Class Reference (kdeui)</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org" r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org" r (n 0 s 0 v 0 l 0))' /> <meta name="trademark" content="KDE e.V." /> <meta name="description" content="K Desktop Environment Homepage, KDE.org" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="all" /> <link rel="shortcut icon" href="../../favicon.ico" /> <link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" /> </head> <body> <div id="nav_header_top" align="right"> <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a> <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a> <span class="doNotDisplay">::</span> <div id="nav_header_title" align="left">KDE API Reference</div> </div> <div id="nav_header_bottom" align="right"> <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span> <div id="nav_header_bottom_right" style="text-align: left;"> / <a href="../..">API Reference</a> / <a href=".">kdeui</a> </div> </div> <table id="main" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" class="menuheader" height="0"></td> <td id="contentcolumn" valign="top" rowspan="2" > <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;"> <a name="content"></a> <!-- Generated by Doxygen 1.4.7 --> <h1>KLed Class Reference</h1><!-- doxytag: class="KLed" --><!-- doxytag: inherits="QWidget" --><code>#include <<a class="el" href="kled_8h-source.html">kled.h</a>></code> <p> <p>Inheritance diagram for KLed: <p><center><img src="classKLed.png" usemap="#KLed_map" border="0" alt=""></center> <map name="KLed_map"> <area doxygen="qt.tag:" href="qwidget.html" alt="QWidget" shape="rect" coords="0,0,60,24"> </map> <a href="classKLed-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> An LED widget. <p> Displays a round or rectangular light emitting diode.<p> It is configurable to five colors, the two on/off states and three styles (or "looks");<p> It may display itself in a performant flat view, a round view with light spot or a round view sunken in the screen.<p> <div align="center"> <img src="kled.png" alt="kled.png"> <p><strong>KDE LED Widget</strong></p></div> <dl compact><dt><b>Author:</b></dt><dd>Joerg Habenicht, Richard J. Moore (<a href="mailto:rich@kde.org">rich@kde.org</a>) 1998, 1999 </dd></dl> <p> <p> Definition at line <a class="el" href="kled_8h-source.html#l00045">45</a> of file <a class="el" href="kled_8h-source.html">kled.h</a>.<table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="14ea238119f6332b71c1ac4ec9ac0d0c133c86551c18ae1d0def10cbceac747c"></a><!-- doxytag: member="KLed::Off" ref="14ea238119f6332b71c1ac4ec9ac0d0c133c86551c18ae1d0def10cbceac747c" args="" --> </td><td class="memItemRight" valign="bottom"><b>Off</b></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="14ea238119f6332b71c1ac4ec9ac0d0c6d00e86716c2d0bc30d59d3698b4deea"></a><!-- doxytag: member="KLed::On" ref="14ea238119f6332b71c1ac4ec9ac0d0c6d00e86716c2d0bc30d59d3698b4deea" args="" --> </td><td class="memItemRight" valign="bottom"><b>On</b></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="22a9c2354515733cd4aa2c6efabc147fde9f208a5109db537f0c7f59503d7244"></a><!-- doxytag: member="KLed::Rectangular" ref="22a9c2354515733cd4aa2c6efabc147fde9f208a5109db537f0c7f59503d7244" args="" --> </td><td class="memItemRight" valign="bottom"><b>Rectangular</b></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="22a9c2354515733cd4aa2c6efabc147f732f474000173d879261c1d62e908fdd"></a><!-- doxytag: member="KLed::Circular" ref="22a9c2354515733cd4aa2c6efabc147f732f474000173d879261c1d62e908fdd" args="" --> </td><td class="memItemRight" valign="bottom"><b>Circular</b></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="92553d6cca9c224b0aaaeafee0d9a8d6e78600f8e10e52e5f4749e1dba8a01dd"></a><!-- doxytag: member="KLed::Flat" ref="92553d6cca9c224b0aaaeafee0d9a8d6e78600f8e10e52e5f4749e1dba8a01dd" args="" --> </td><td class="memItemRight" valign="bottom"><b>Flat</b></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="92553d6cca9c224b0aaaeafee0d9a8d61c95118b4329ec5021383d57094f67d0"></a><!-- doxytag: member="KLed::Raised" ref="92553d6cca9c224b0aaaeafee0d9a8d61c95118b4329ec5021383d57094f67d0" args="" --> </td><td class="memItemRight" valign="bottom"><b>Raised</b></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="92553d6cca9c224b0aaaeafee0d9a8d68ccc9504f04ba9fd3a0e8e5e8561b7ac"></a><!-- doxytag: member="KLed::Sunken" ref="92553d6cca9c224b0aaaeafee0d9a8d68ccc9504f04ba9fd3a0e8e5e8561b7ac" args="" --> </td><td class="memItemRight" valign="bottom"><b>Sunken</b></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#14ea238119f6332b71c1ac4ec9ac0d0c">State</a> { <b>Off</b>, <b>On</b> }</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#22a9c2354515733cd4aa2c6efabc147f">Shape</a> { <b>Rectangular</b>, <b>Circular</b> }</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#92553d6cca9c224b0aaaeafee0d9a8d6">Look</a> { <b>Flat</b>, <b>Raised</b>, <b>Sunken</b> }</td></tr> <tr><td colspan="2"><br><h2>Public Slots</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#bd1dc18cd0e3b34f120d1a1ad9d9b338">toggle</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#0a4a6589bf59312552edabdeef61f2aa">on</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a789f647307cdfdb95a91811ad82afde">off</a> ()</td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a4d64ff7cfd1489f8e4299b03017af3f">KLed</a> (<a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#c0314b5effbffc23f66a3e28572df6c6">KLed</a> (const <a class="elRef" doxygen="qt.tag:" href="qcolor.html">QColor</a> &col, <a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#6ccdfe01d393fc0e4c124d3bf4d9cb4e">KLed</a> (const <a class="elRef" doxygen="qt.tag:" href="qcolor.html">QColor</a> &col, <a class="el" href="classKLed.html#14ea238119f6332b71c1ac4ec9ac0d0c">KLed::State</a> state, <a class="el" href="classKLed.html#92553d6cca9c224b0aaaeafee0d9a8d6">KLed::Look</a> look, <a class="el" href="classKLed.html#22a9c2354515733cd4aa2c6efabc147f">KLed::Shape</a> shape, <a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#5bfea352cb40b0a357e8eedb75b3e454">~KLed</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classKLed.html#14ea238119f6332b71c1ac4ec9ac0d0c">State</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#4e47155baec3f3b273be74abcd00b87b">state</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="974a44e7f2acc9423ec726c5647b2fb9"></a><!-- doxytag: member="KLed::shape" ref="974a44e7f2acc9423ec726c5647b2fb9" args="() const " --> <a class="el" href="classKLed.html#22a9c2354515733cd4aa2c6efabc147f">Shape</a> </td><td class="memItemRight" valign="bottom"><b>shape</b> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qcolor.html">QColor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#5175e6360a05a6f80c346b7f7aa10ca9">color</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classKLed.html#92553d6cca9c224b0aaaeafee0d9a8d6">Look</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#b55c2fa488b7ac8198c300a3e6914fb3">look</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#ddcc357b678c2b93dc8ff39e33bb7127">darkFactor</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#ad596242e5b38ec7844e0950527c9749">setState</a> (<a class="el" href="classKLed.html#14ea238119f6332b71c1ac4ec9ac0d0c">State</a> state)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#d1e35ba9d0c0cd489df18abb356b0e71">setShape</a> (<a class="el" href="classKLed.html#22a9c2354515733cd4aa2c6efabc147f">Shape</a> s)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#cf690d7e5ac98df6fb00ecaef611f754">toggleState</a> () KDE_DEPRECATED</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#0d3b459618ad0b544dd3568ba26f3b73">setColor</a> (const <a class="elRef" doxygen="qt.tag:" href="qcolor.html">QColor</a> &color)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#4eb630fa27022acc7069734af855b26c">setDarkFactor</a> (int darkfactor)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#c9ac9d738e8e78ca263f4397bd75cde1">setLook</a> (<a class="el" href="classKLed.html#92553d6cca9c224b0aaaeafee0d9a8d6">Look</a> look)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d03199b9c1d80f5097de2e887ab1f983"></a><!-- doxytag: member="KLed::sizeHint" ref="d03199b9c1d80f5097de2e887ab1f983" args="() const " --> virtual <a class="elRef" doxygen="qt.tag:" href="qsize.html">QSize</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#d03199b9c1d80f5097de2e887ab1f983">sizeHint</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4e13e9edd8a7c000cee600ab8f6a6f80"></a><!-- doxytag: member="KLed::minimumSizeHint" ref="4e13e9edd8a7c000cee600ab8f6a6f80" args="() const " --> virtual <a class="elRef" doxygen="qt.tag:" href="qsize.html">QSize</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#4e13e9edd8a7c000cee600ab8f6a6f80">minimumSizeHint</a> () const </td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#b08c0b53a31d0a82762aa562fe2b3daa">paintFlat</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a40d4ab649743b0dbf7728582670a812">paintRound</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#b751779a22df119cce5f1a43936fa8f8">paintSunken</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#556f27e6d6dda8d8bbe0abc54fab0d5b">paintRect</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#2aaed6689d668e34ce35c11c2bd8cfc2">paintRectFrame</a> (bool raised)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6d0756398ada7875f0efd92917382115"></a><!-- doxytag: member="KLed::paintEvent" ref="6d0756398ada7875f0efd92917382115" args="(QPaintEvent *)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#6d0756398ada7875f0efd92917382115">paintEvent</a> (<a class="elRef" doxygen="qt.tag:" href="qpaintevent.html">QPaintEvent</a> *)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#8aa64dd030cb6a79c2e353b1cd1de3b5">ensureRoundLed</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#e51eb5329ed7d531ccf4d6ff54f95e30">paintCachedPixmap</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ffb972bbae0ad69b4cc954ba96bae6de"></a><!-- doxytag: member="KLed::virtual_hook" ref="ffb972bbae0ad69b4cc954ba96bae6de" args="(int id, void *data)" --> virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#ffb972bbae0ad69b4cc954ba96bae6de">virtual_hook</a> (int id, void *data)</td></tr> <tr><td colspan="2"><br><h2>Properties</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b63d3adf358377b0b8d43cba7f15384f"></a><!-- doxytag: member="KLed::state" ref="b63d3adf358377b0b8d43cba7f15384f" args="" --> <a class="el" href="classKLed.html#14ea238119f6332b71c1ac4ec9ac0d0c">State</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#b63d3adf358377b0b8d43cba7f15384f">state</a><code> []</code></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bdfb293a7ebab8567a7eb6b9840a11b"></a><!-- doxytag: member="KLed::shape" ref="9bdfb293a7ebab8567a7eb6b9840a11b" args="" --> <a class="el" href="classKLed.html#22a9c2354515733cd4aa2c6efabc147f">Shape</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#9bdfb293a7ebab8567a7eb6b9840a11b">shape</a><code> []</code></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fc4dee308f8477afadf828159735d80c"></a><!-- doxytag: member="KLed::look" ref="fc4dee308f8477afadf828159735d80c" args="" --> <a class="el" href="classKLed.html#92553d6cca9c224b0aaaeafee0d9a8d6">Look</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#fc4dee308f8477afadf828159735d80c">look</a><code> []</code></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="839b20399215cdd2f7a358a7da4de39b"></a><!-- doxytag: member="KLed::color" ref="839b20399215cdd2f7a358a7da4de39b" args="" --> <a class="elRef" doxygen="qt.tag:" href="qcolor.html">QColor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#839b20399215cdd2f7a358a7da4de39b">color</a><code> []</code></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="091fdecd863aa637d8c66da18f039820"></a><!-- doxytag: member="KLed::darkFactor" ref="091fdecd863aa637d8c66da18f039820" args="" --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#091fdecd863aa637d8c66da18f039820">darkFactor</a><code> []</code></td></tr> </table> <hr><h2>Member Enumeration Documentation</h2> <a class="anchor" name="92553d6cca9c224b0aaaeafee0d9a8d6"></a><!-- doxytag: member="KLed::Look" ref="92553d6cca9c224b0aaaeafee0d9a8d6" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classKLed.html#92553d6cca9c224b0aaaeafee0d9a8d6">KLed::Look</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Displays a flat, round or sunken LED.LED look. <p> Displaying the LED flat is less time and color consuming, but not so nice to see.<p> The sunken LED itself is (certainly) smaller than the round LED because of the 3 shading circles and is most time consuming. Makes sense for LED > 15x15 pixels.<p> <b>Timings:</b> <br> ( AMD K5/133, Diamond Stealth 64 PCI Graphics, widgetsize 29x29 ) <ul> <li>flat Approximately 0.7 msec per paint </li> <li>round Approximately 2.9 msec per paint </li> <li>sunken Approximately 3.3 msec per paint</li> </ul> The widget will be updated on the next repaining event. <p> Definition at line <a class="el" href="kled_8h-source.html#l00089">89</a> of file <a class="el" href="kled_8h-source.html">kled.h</a>. </div> </div><p> <a class="anchor" name="22a9c2354515733cd4aa2c6efabc147f"></a><!-- doxytag: member="KLed::Shape" ref="22a9c2354515733cd4aa2c6efabc147f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classKLed.html#22a9c2354515733cd4aa2c6efabc147f">KLed::Shape</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Shades of the lamp.LED shape. <p> <p> Definition at line <a class="el" href="kled_8h-source.html#l00067">67</a> of file <a class="el" href="kled_8h-source.html">kled.h</a>. </div> </div><p> <a class="anchor" name="14ea238119f6332b71c1ac4ec9ac0d0c"></a><!-- doxytag: member="KLed::State" ref="14ea238119f6332b71c1ac4ec9ac0d0c" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classKLed.html#14ea238119f6332b71c1ac4ec9ac0d0c">KLed::State</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Status of the light is on/off.LED on/off. <p> <p> Definition at line <a class="el" href="kled_8h-source.html#l00061">61</a> of file <a class="el" href="kled_8h-source.html">kled.h</a>. </div> </div><p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="a4d64ff7cfd1489f8e4299b03017af3f"></a><!-- doxytag: member="KLed::KLed" ref="a4d64ff7cfd1489f8e4299b03017af3f" args="(QWidget *parent=0, const char *name=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KLed::KLed </td> <td>(</td> <td class="paramtype"><a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a> * </td> <td class="paramname"> <em>parent</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Constructs a green, round LED widget which will initially be turned on. <p> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00050">50</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="c0314b5effbffc23f66a3e28572df6c6"></a><!-- doxytag: member="KLed::KLed" ref="c0314b5effbffc23f66a3e28572df6c6" args="(const QColor &col, QWidget *parent=0, const char *name=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KLed::KLed </td> <td>(</td> <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qcolor.html">QColor</a> & </td> <td class="paramname"> <em>col</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a> * </td> <td class="paramname"> <em>parent</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor with the ledcolor, the parent widget, and the name.Constructor. <p> The State will be defaulted On and the Look round.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>col</em> </td><td>Initial color of the LED. </td></tr> <tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td>Will be handed over to <a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a>. </td></tr> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>Will be handed over to <a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a>. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00067">67</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="6ccdfe01d393fc0e4c124d3bf4d9cb4e"></a><!-- doxytag: member="KLed::KLed" ref="6ccdfe01d393fc0e4c124d3bf4d9cb4e" args="(const QColor &col, KLed::State state, KLed::Look look, KLed::Shape shape, QWidget *parent=0, const char *name=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KLed::KLed </td> <td>(</td> <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qcolor.html">QColor</a> & </td> <td class="paramname"> <em>col</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classKLed.html#14ea238119f6332b71c1ac4ec9ac0d0c">KLed::State</a> </td> <td class="paramname"> <em>state</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classKLed.html#92553d6cca9c224b0aaaeafee0d9a8d6">KLed::Look</a> </td> <td class="paramname"> <em>look</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classKLed.html#22a9c2354515733cd4aa2c6efabc147f">KLed::Shape</a> </td> <td class="paramname"> <em>shape</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a> * </td> <td class="paramname"> <em>parent</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor with the ledcolor, ledstate, ledlook, the parent widget, and the name.Constructor. <p> Differs from above only in the parameters, which configure all settings.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>col</em> </td><td>Initial color of the LED. </td></tr> <tr><td valign="top"></td><td valign="top"><em>state</em> </td><td>Sets the State. </td></tr> <tr><td valign="top"></td><td valign="top"><em>look</em> </td><td>Sets the Look. </td></tr> <tr><td valign="top"></td><td valign="top"><em>shape</em> </td><td>Sets the Shape (rectangular or circular) </td></tr> <tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td>Will be handed over to <a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a>. </td></tr> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>Will be handed over to <a class="elRef" doxygen="qt.tag:" href="qwidget.html">QWidget</a>. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00083">83</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="5bfea352cb40b0a357e8eedb75b3e454"></a><!-- doxytag: member="KLed::~KLed" ref="5bfea352cb40b0a357e8eedb75b3e454" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KLed::~KLed </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor Destructor. <p> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00101">101</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="5175e6360a05a6f80c346b7f7aa10ca9"></a><!-- doxytag: member="KLed::color" ref="5175e6360a05a6f80c346b7f7aa10ca9" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qcolor.html">QColor</a> KLed::color </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Returns the color of the widgetReturns LED color. <p> <dl compact><dt><b>See also:</b></dt><dd>Color </dd></dl> </div> </div><p> <a class="anchor" name="ddcc357b678c2b93dc8ff39e33bb7127"></a><!-- doxytag: member="KLed::darkFactor" ref="ddcc357b678c2b93dc8ff39e33bb7127" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int KLed::darkFactor </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Returns the factor to darken the LED.Returns dark factor. <p> <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#4eb630fa27022acc7069734af855b26c">setDarkFactor()</a> </dd></dl> </div> </div><p> <a class="anchor" name="8aa64dd030cb6a79c2e353b1cd1de3b5"></a><!-- doxytag: member="KLed::ensureRoundLed" ref="8aa64dd030cb6a79c2e353b1cd1de3b5" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int KLed::ensureRoundLed </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Compute LED width. <p> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00163">163</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="b55c2fa488b7ac8198c300a3e6914fb3"></a><!-- doxytag: member="KLed::look" ref="b55c2fa488b7ac8198c300a3e6914fb3" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classKLed.html#92553d6cca9c224b0aaaeafee0d9a8d6">Look</a> KLed::look </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Returns the look of the widget.Returns LED look. <p> <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#92553d6cca9c224b0aaaeafee0d9a8d6">Look</a> </dd></dl> </div> </div><p> <a class="anchor" name="a789f647307cdfdb95a91811ad82afde"></a><!-- doxytag: member="KLed::off" ref="a789f647307cdfdb95a91811ad82afde" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::off </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [slot]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Sets the state of the widget to Off. <p> The widget will be painted immediately. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#0a4a6589bf59312552edabdeef61f2aa">on()</a> <a class="el" href="classKLed.html#bd1dc18cd0e3b34f120d1a1ad9d9b338">toggle()</a> <a class="el" href="classKLed.html#cf690d7e5ac98df6fb00ecaef611f754">toggleState()</a> <a class="el" href="classKLed.html#ad596242e5b38ec7844e0950527c9749">setState()</a> </dd></dl> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00624">624</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="0a4a6589bf59312552edabdeef61f2aa"></a><!-- doxytag: member="KLed::on" ref="0a4a6589bf59312552edabdeef61f2aa" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::on </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [slot]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Sets the state of the widget to On. <p> The widget will be painted immediately. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#a789f647307cdfdb95a91811ad82afde">off()</a> <a class="el" href="classKLed.html#bd1dc18cd0e3b34f120d1a1ad9d9b338">toggle()</a> <a class="el" href="classKLed.html#cf690d7e5ac98df6fb00ecaef611f754">toggleState()</a> <a class="el" href="classKLed.html#ad596242e5b38ec7844e0950527c9749">setState()</a> </dd></dl> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00618">618</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="e51eb5329ed7d531ccf4d6ff54f95e30"></a><!-- doxytag: member="KLed::paintCachedPixmap" ref="e51eb5329ed7d531ccf4d6ff54f95e30" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool KLed::paintCachedPixmap </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Paint the cached antialiased pixmap corresponding to the state if any. <p> <dl compact><dt><b>Returns:</b></dt><dd>true if the pixmap was painted, false if it hasn't been created yet </dd></dl> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00179">179</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="b08c0b53a31d0a82762aa562fe2b3daa"></a><!-- doxytag: member="KLed::paintFlat" ref="b08c0b53a31d0a82762aa562fe2b3daa" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::paintFlat </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Paints a circular, flat LED. <p> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00199">199</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="556f27e6d6dda8d8bbe0abc54fab0d5b"></a><!-- doxytag: member="KLed::paintRect" ref="556f27e6d6dda8d8bbe0abc54fab0d5b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::paintRect </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Paints a rectangular, flat LED. <p> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00459">459</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="2aaed6689d668e34ce35c11c2bd8cfc2"></a><!-- doxytag: member="KLed::paintRectFrame" ref="2aaed6689d668e34ce35c11c2bd8cfc2" args="(bool raised)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::paintRectFrame </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>raised</em> </td> <td> ) </td> <td width="100%"><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Paints a rectangular LED, either raised or sunken, depending on its argument. <p> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00490">490</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="a40d4ab649743b0dbf7728582670a812"></a><!-- doxytag: member="KLed::paintRound" ref="a40d4ab649743b0dbf7728582670a812" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::paintRound </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Paints a circular, raised LED. <p> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00257">257</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="b751779a22df119cce5f1a43936fa8f8"></a><!-- doxytag: member="KLed::paintSunken" ref="b751779a22df119cce5f1a43936fa8f8" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::paintSunken </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Paints a circular, sunken LED. <p> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00352">352</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="0d3b459618ad0b544dd3568ba26f3b73"></a><!-- doxytag: member="KLed::setColor" ref="0d3b459618ad0b544dd3568ba26f3b73" args="(const QColor &color)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::setColor </td> <td>(</td> <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qcolor.html">QColor</a> & </td> <td class="paramname"> <em>color</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Set the color of the widget.Sets the LED color. <p> The Color is shown with the KLed::On state. The KLed::Off state is shown with <a class="elRef" doxygen="qt.tag:" href="qcolor.html#dark">QColor.dark()</a> method<p> The widget calls the <a class="elRef" doxygen="qt.tag:" href="qwidget.html#update">update()</a> method, so it will be updated when entering the main event loop.<p> <dl compact><dt><b>See also:</b></dt><dd>Color</dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>color</em> </td><td>New color of the LED. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00572">572</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="4eb630fa27022acc7069734af855b26c"></a><!-- doxytag: member="KLed::setDarkFactor" ref="4eb630fa27022acc7069734af855b26c" args="(int darkfactor)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::setDarkFactor </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>darkfactor</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Sets the factor to darken the LED in OFF state.sets the factor to darken the LED. <p> Same as <a class="elRef" doxygen="qt.tag:" href="qcolor.html#dark">QColor::dark()</a>. "darkfactor should be greater than 100, else the LED gets lighter in OFF state. Defaults to 300.<p> <dl compact><dt><b>See also:</b></dt><dd><a class="elRef" doxygen="qt.tag:" href="qcolor.html">QColor</a></dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>darkfactor</em> </td><td>sets the factor to darken the LED. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00584">584</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="c9ac9d738e8e78ca263f4397bd75cde1"></a><!-- doxytag: member="KLed::setLook" ref="c9ac9d738e8e78ca263f4397bd75cde1" args="(Look look)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::setLook </td> <td>(</td> <td class="paramtype"><a class="el" href="classKLed.html#92553d6cca9c224b0aaaeafee0d9a8d6">Look</a> </td> <td class="paramname"> <em>look</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Sets the look of the widget.Sets LED look. <p> The look may be flat, round or sunken. The widget calls the <a class="elRef" doxygen="qt.tag:" href="qwidget.html#update">update()</a> method, so it will be updated when entering the main event loop.<p> <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#92553d6cca9c224b0aaaeafee0d9a8d6">Look</a></dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>look</em> </td><td>New look of the LED. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00600">600</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="d1e35ba9d0c0cd489df18abb356b0e71"></a><!-- doxytag: member="KLed::setShape" ref="d1e35ba9d0c0cd489df18abb356b0e71" args="(Shape s)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::setShape </td> <td>(</td> <td class="paramtype"><a class="el" href="classKLed.html#22a9c2354515733cd4aa2c6efabc147f">Shape</a> </td> <td class="paramname"> <em>s</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Set the shape of the LED to <code>s</code>. <p> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00562">562</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="ad596242e5b38ec7844e0950527c9749"></a><!-- doxytag: member="KLed::setState" ref="ad596242e5b38ec7844e0950527c9749" args="(State state)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::setState </td> <td>(</td> <td class="paramtype"><a class="el" href="classKLed.html#14ea238119f6332b71c1ac4ec9ac0d0c">State</a> </td> <td class="paramname"> <em>state</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Sets the state of the widget to On or Off.Set LED state. <p> The widget will be painted immediately. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#0a4a6589bf59312552edabdeef61f2aa">on()</a> <a class="el" href="classKLed.html#a789f647307cdfdb95a91811ad82afde">off()</a> <a class="el" href="classKLed.html#bd1dc18cd0e3b34f120d1a1ad9d9b338">toggle()</a> <a class="el" href="classKLed.html#cf690d7e5ac98df6fb00ecaef611f754">toggleState()</a></dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>state</em> </td><td>The LED state: on or off. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00546">546</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="4e47155baec3f3b273be74abcd00b87b"></a><!-- doxytag: member="KLed::state" ref="4e47155baec3f3b273be74abcd00b87b" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classKLed.html#14ea238119f6332b71c1ac4ec9ac0d0c">State</a> KLed::state </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Returns the current state of the widget (on/off).Returns LED state. <p> <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#14ea238119f6332b71c1ac4ec9ac0d0c">State</a> </dd></dl> </div> </div><p> <a class="anchor" name="bd1dc18cd0e3b34f120d1a1ad9d9b338"></a><!-- doxytag: member="KLed::toggle" ref="bd1dc18cd0e3b34f120d1a1ad9d9b338" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::toggle </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [slot]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Toggles the state of the led from Off to On or vice versa. <p> The widget repaints itself immediately. <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00610">610</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <a class="anchor" name="cf690d7e5ac98df6fb00ecaef611f754"></a><!-- doxytag: member="KLed::toggleState" ref="cf690d7e5ac98df6fb00ecaef611f754" args="() KDE_DEPRECATED" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KLed::toggleState </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Toggle the state of the LED from Off to On and vice versa.Toggles LED on->off / off->on. <p> The widget will be repainted when returning to the main event loop. <dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000043">Deprecated:</a></b></dt><dd>, use <a class="el" href="classKLed.html#bd1dc18cd0e3b34f120d1a1ad9d9b338">toggle()</a> instead. </dd></dl> <p> Definition at line <a class="el" href="kled_8cpp-source.html#l00556">556</a> of file <a class="el" href="kled_8cpp-source.html">kled.cpp</a>. </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="kled_8h-source.html">kled.h</a><li><a class="el" href="kled_8cpp-source.html">kled.cpp</a></ul> </div></div> </td> </tr> <tr> <td valign="top" id="leftmenu" width="25%"> <a name="navigation"></a> <div class="menu_box"><h2>kdeui</h2> <div class="nav_list"> <ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul> <!-- <h2>Class Picker</h2> <div style="text-align: center;"> <form name="guideform"> <select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value"> <option value="annotated.html">-- Choose --</option> <option value="classKAboutApplication.html">kaboutapplication</option>, <option value="classKAboutContainer.html">kaboutcontainer</option>, <option value="classKAboutContainerBase.html">kaboutcontainerbase</option>, <option value="classKAboutContributor.html">kaboutcontributor</option>, <option value="classKAboutDialog.html">kaboutdialog</option>, <option value="classKAboutKDE.html">kaboutkde</option>, <option value="classKAboutWidget.html">kaboutwidget</option>, <option value="classKAccelGen_1_1Deref.html">kaccelgen::deref</option>, <option value="classKAccelGen_1_1Deref__Key.html">kaccelgen::deref__key</option>, <option value="classKAction.html">kaction</option>, <option value="classKActionCollection.html">kactioncollection</option>, <option value="classKActionMenu.html">kactionmenu</option>, <option value="classKActionPtrShortcutList.html">kactionptrshortcutlist</option>, <option value="classKActionSelector.html">kactionselector</option>, <option value="classKActionSeparator.html">kactionseparator</option>, <option value="classKActionShortcutList.html">kactionshortcutlist</option>, <option value="classKActiveLabel.html">kactivelabel</option>, <option value="classKAnimWidget.html">kanimwidget</option>, <option value="classKArrowButton.html">karrowbutton</option>, <option value="classKAuthIcon.html">kauthicon</option>, <option value="classKBugReport.html">kbugreport</option>, <option value="classKButtonBox.html">kbuttonbox</option>, <option value="classKCharSelect.html">kcharselect</option>, <option value="classKCharSelectTable.html">kcharselecttable</option>, <option value="classKCModule.html">kcmodule</option>, <option value="classKColor.html">kcolor</option>, <option value="classKColorButton.html">kcolorbutton</option>, <option value="classKColorCells.html">kcolorcells</option>, <option value="classKColorCombo.html">kcolorcombo</option>, <option value="classKColorDialog.html">kcolordialog</option>, <option value="classKColorDrag.html">kcolordrag</option>, <option value="classKColorPatch.html">kcolorpatch</option>, <option value="classKComboBox.html">kcombobox</option>, <option value="classKCommand.html">kcommand</option>, <option value="classKCommandHistory.html">kcommandhistory</option>, <option value="classKCompletionBox.html">kcompletionbox</option>, <option value="classKConfigDialog.html">kconfigdialog</option>, <option value="classKContextMenuManager.html">kcontextmenumanager</option>, <option value="classKCursor.html">kcursor</option>, <option value="classKCursorPrivate.html">kcursorprivate</option>, <option value="classKCursorPrivateAutoHideEventFilter.html">kcursorprivateautohideeventfilter</option>, <option value="classKDateInternalMonthPicker.html">kdateinternalmonthpicker</option>, <option value="classKDateInternalWeekSelector.html">kdateinternalweekselector</option>, <option value="classKDateInternalYearSelector.html">kdateinternalyearselector</option>, <option value="classKDatePicker.html">kdatepicker</option>, <option value="classKDateTable.html">kdatetable</option>, <option value="classKDateTimeWidget.html">kdatetimewidget</option>, <option value="classKDateValidator.html">kdatevalidator</option>, <option value="classKDateWidget.html">kdatewidget</option>, <option value="classKDCOPActionProxy.html">kdcopactionproxy</option>, <option value="classKDEPrivate_1_1ToolBarHandler.html">kdeprivate::toolbarhandler</option>, <option value="classKDETrayModule.html">kdetraymodule</option>, <option value="classKDETrayProxy.html">kdetrayproxy</option>, <option value="classKDialog.html">kdialog</option>, <option value="classKDialogBase.html">kdialogbase</option>, <option value="classKDialogBaseButton.html">kdialogbasebutton</option>, <option value="classKDialogBaseTile.html">kdialogbasetile</option>, <option value="classKDialogQueue.html">kdialogqueue</option>, <option value="classKDictSpellingHighlighter.html">kdictspellinghighlighter</option>, <option value="classKDockArea.html">kdockarea</option>, <option value="classKDockButton__Private.html">kdockbutton__private</option>, <option value="classKDockMainWindow.html">kdockmainwindow</option>, <option value="classKDockManager.html">kdockmanager</option>, <option value="classKDockSplitter.html">kdocksplitter</option>, <option value="classKDockTabGroup.html">kdocktabgroup</option>, <option value="classKDockWidget.html">kdockwidget</option>, <option value="classKDockWidgetAbstractHeader.html">kdockwidgetabstractheader</option>, <option value="classKDockWidgetAbstractHeaderDrag.html">kdockwidgetabstractheaderdrag</option>, <option value="classKDockWidgetHeader.html">kdockwidgetheader</option>, <option value="classKDockWidgetHeaderDrag.html">kdockwidgetheaderdrag</option>, <option value="classKDockWidgetHeaderPrivate.html">kdockwidgetheaderprivate</option>, <option value="classKDockWidgetPrivate.html">kdockwidgetprivate</option>, <option value="classKDockWindow.html">kdockwindow</option>, <option value="classKDoubleNumInput.html">kdoublenuminput</option>, <option value="classKDoubleSpinBox.html">kdoublespinbox</option>, <option value="classKDoubleValidator.html">kdoublevalidator</option>, <option value="classKDualColorButton.html">kdualcolorbutton</option>, <option value="classKEdFind.html">kedfind</option>, <option value="classKEdGotoLine.html">kedgotoline</option>, <option value="classKEdit.html">kedit</option>, <option value="classKEditListBox.html">keditlistbox</option>, <option value="classKEditListBox_1_1CustomEditor.html">keditlistbox::customeditor</option>, <option value="classKEditToolbar.html">kedittoolbar</option>, <option value="classKEditToolbarWidget.html">kedittoolbarwidget</option>, <option value="classKEdReplace.html">kedreplace</option>, <option value="classKFloatValidator.html">kfloatvalidator</option>, <option value="classKFontAction.html">kfontaction</option>, <option value="classKFontChooser.html">kfontchooser</option>, <option value="classKFontCombo.html">kfontcombo</option>, <option value="classKFontDialog.html">kfontdialog</option>, <option value="classKFontRequester.html">kfontrequester</option>, <option value="classKFontSizeAction.html">kfontsizeaction</option>, <option value="classKGradientSelector.html">kgradientselector</option>, <option value="classKGuiItem.html">kguiitem</option>, <option value="classKHelpMenu.html">khelpmenu</option>, <option value="classKHistoryCombo.html">khistorycombo</option>, <option value="classKHSSelector.html">khsselector</option>, <option value="classKIconView.html">kiconview</option>, <option value="classKIconViewItem.html">kiconviewitem</option>, <option value="classKIconViewSearchLine.html">kiconviewsearchline</option>, <option value="classKImageTrackLabel.html">kimagetracklabel</option>, <option value="classKInputDialog.html">kinputdialog</option>, <option value="classKIntNumInput.html">kintnuminput</option>, <option value="classKIntSpinBox.html">kintspinbox</option>, <option value="classKIntValidator.html">kintvalidator</option>, <option value="classKJanusWidget.html">kjanuswidget</option>, <option value="classKKeyButton.html">kkeybutton</option>, <option value="classKKeyChooser.html">kkeychooser</option>, <option value="classKKeyDialog.html">kkeydialog</option>, <option value="classKLanguageButton.html">klanguagebutton</option>, <option value="classKLed.html">kled</option>, <option value="classKLineEdit.html">klineedit</option>, <option value="classKLineEditDlg.html">klineeditdlg</option>, <option value="classKListAction.html">klistaction</option>, <option value="classKListBox.html">klistbox</option>, <option value="classKListView.html">klistview</option>, <option value="classKListViewItem.html">klistviewitem</option>, <option value="classKListViewLineEdit.html">klistviewlineedit</option>, <option value="classKListViewSearchLine.html">klistviewsearchline</option>, <option value="classKListViewSearchLineWidget.html">klistviewsearchlinewidget</option>, <option value="classKMacroCommand.html">kmacrocommand</option>, <option value="classKMainWindow.html">kmainwindow</option>, <option value="classKMainWindowInterface.html">kmainwindowinterface</option>, <option value="classKMenuBar.html">kmenubar</option>, <option value="classKMessageBox.html">kmessagebox</option>, <option value="classKMimeTypeValidator.html">kmimetypevalidator</option>, <option value="classKNamedCommand.html">knamedcommand</option>, <option value="classKNumInput.html">knuminput</option>, <option value="classKPaletteTable.html">kpalettetable</option>, <option value="classKPanelApplet.html">kpanelapplet</option>, <option value="classKPanelAppMenu.html">kpanelappmenu</option>, <option value="classKPanelExtension.html">kpanelextension</option>, <option value="classKPanelMenu.html">kpanelmenu</option>, <option value="classKPassivePopup.html">kpassivepopup</option>, <option value="classKPasswordDialog.html">kpassworddialog</option>, <option value="classKPasswordEdit.html">kpasswordedit</option>, <option value="classKPasteTextAction.html">kpastetextaction</option>, <option value="classKPixmapIO.html">kpixmapio</option>, <option value="classKPixmapRegionSelectorDialog.html">kpixmapregionselectordialog</option>, <option value="classKPixmapRegionSelectorWidget.html">kpixmapregionselectorwidget</option>, <option value="classKPopupFrame.html">kpopupframe</option>, <option value="classKPopupMenu.html">kpopupmenu</option>, <option value="classKPopupTitle.html">kpopuptitle</option>, <option value="classKProgress.html">kprogress</option>, <option value="classKProgressDialog.html">kprogressdialog</option>, <option value="classKPushButton.html">kpushbutton</option>, <option value="classKRadioAction.html">kradioaction</option>, <option value="classKRecentFilesAction.html">krecentfilesaction</option>, <option value="classKRestrictedLine.html">krestrictedline</option>, <option value="classKRootPermsIcon.html">krootpermsicon</option>, <option value="classKRootPixmap.html">krootpixmap</option>, <option value="classKRuler.html">kruler</option>, <option value="classKScrollView.html">kscrollview</option>, <option value="classKSelectAction.html">kselectaction</option>, <option value="classKSelector.html">kselector</option>, <option value="classKSeparator.html">kseparator</option>, <option value="classKShortcutDialog.html">kshortcutdialog</option>, <option value="classKShortcutDialogAdvanced.html">kshortcutdialogadvanced</option>, <option value="classKShortcutDialogSimple.html">kshortcutdialogsimple</option>, <option value="classKSpell.html">kspell</option>, <option value="classKSpellConfig.html">kspellconfig</option>, <option value="classKSpellDlg.html">kspelldlg</option>, <option value="classKSpellingHighlighter.html">kspellinghighlighter</option>, <option value="classKSpellUI.html">kspellui</option>, <option value="classKSplashScreen.html">ksplashscreen</option>, <option value="classKSqueezedTextLabel.html">ksqueezedtextlabel</option>, <option value="classKStatusBar.html">kstatusbar</option>, <option value="classKStatusBarLabel.html">kstatusbarlabel</option>, <option value="classKStdGuiItem.html">kstdguiitem</option>, <option value="classKStringListValidator.html">kstringlistvalidator</option>, <option value="classKSyntaxHighlighter.html">ksyntaxhighlighter</option>, <option value="classKSystemTray.html">ksystemtray</option>, <option value="classKTabBar.html">ktabbar</option>, <option value="classKTabCtl.html">ktabctl</option>, <option value="classKTabWidget.html">ktabwidget</option>, <option value="classKTextBrowser.html">ktextbrowser</option>, <option value="classKTextEdit.html">ktextedit</option>, <option value="classKTimeWidget.html">ktimewidget</option>, <option value="classKTimezoneWidget.html">ktimezonewidget</option>, <option value="classKTipDatabase.html">ktipdatabase</option>, <option value="classKTipDialog.html">ktipdialog</option>, <option value="classKToggleAction.html">ktoggleaction</option>, <option value="classKToggleFullScreenAction.html">ktogglefullscreenaction</option>, <option value="classKToggleToolBarAction.html">ktoggletoolbaraction</option>, <option value="classKToolBar.html">ktoolbar</option>, <option value="classKToolBarButton.html">ktoolbarbutton</option>, <option value="classKToolBarButtonList.html">ktoolbarbuttonlist</option>, <option value="classKToolBarLabelAction.html">ktoolbarlabelaction</option>, <option value="classKToolBarPopupAction.html">ktoolbarpopupaction</option>, <option value="classKToolBarRadioGroup.html">ktoolbarradiogroup</option>, <option value="classKToolBarSeparator.html">ktoolbarseparator</option>, <option value="classKURLLabel.html">kurllabel</option>, <option value="classKValueSelector.html">kvalueselector</option>, <option value="classKWidgetAction.html">kwidgetaction</option>, <option value="classKWindowInfo.html">kwindowinfo</option>, <option value="classKWizard.html">kwizard</option>, <option value="classKWordWrap.html">kwordwrap</option>, <option value="classKWritePermsIcon.html">kwritepermsicon</option>, <option value="classKXMLGUIBuilder.html">kxmlguibuilder</option>, <option value="classKXMLGUIClient.html">kxmlguiclient</option>, <option value="classKXMLGUIFactory.html">kxmlguifactory</option>, <option value="classKXYSelector.html">kxyselector</option>, </select> </form> </div> --> </div></div> <div class="menu_box"><h2>API Dox</h2> <div class="nav_list"> <ul> <li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li> <a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li> <a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li> <a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li> <a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li> <a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li> <a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li> <a href="../../kio/kfile/html/index.html">kfile</a></li><li> <a href="../../kio/kio/html/index.html">kio</a></li><li> <a href="../../kio/kioexec/html/index.html">kioexec</a></li><li> <a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li> <a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li> <a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li> <a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li> </ul></div></div> </td> </tr> </table> <span class="doNotDisplay"> <a href="http://www.kde.org/" accesskey="8">KDE Home</a> | <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> | <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a> </span> <div style="height: 8px"></div> <div id="footer"> <div id="footer_left"> Maintained by <a href="mailto:groot@kde.org">Adriaan de Groot</a> and <a href="mailto:wintert@kde.org">Allen Winter</a>. <br/> KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> | <a href="http://www.kde.org/contact/impressum.php">Legal</a> </div> <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div> </div> <!-- WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL BE BLOCKED INSTANTLY AND PERMANENTLY! <a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a> WARNING END --> </body> </html>