<?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>libkdegames: KGameProgress Class Reference (libkdegames)</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=".">libkdegames</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.5.5 --> <div class="contents"> <h1>KGameProgress Class Reference</h1><!-- doxytag: class="KGameProgress" --><!-- doxytag: inherits="QFrame,QRangeControl" --><code>#include <<a class="el" href="kgameprogress_8h-source.html">kgameprogress.h</a>></code> <p> Inherits QFrame, and QRangeControl. <p> <p> <a href="classKGameProgress-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> A progress indicator widget. <p> <a class="el" href="classKGameProgress.html" title="A progress indicator widget.">KGameProgress</a> is derived from QFrame and QRangeControl, so you can use all the methods from those classes. The only difference is that <a class="el" href="classKGameProgress.html#55a136c9c825d758c78ba3e8b50cdda1" title="Set the current value of the progress bar to value.">setValue()</a> is now made a slot, so you can connect stuff to it.<p> None of the constructors take line step and page step as arguments, so by default they're set to 1 and 10 respectively.<p> The Blocked style ignores the textEnabled() setting and displays no text, since it looks truly ugly (and for other reasons). Signal <a class="el" href="classKGameProgress.html#10c3b93db47ec64c8e20c44fa8f5cb71" title="Emitted when the state of the progress bar changes.">percentageChanged()</a> is emitted whenever the value changes so you can set up a different widget to display the current percentage complete and connect the signal to it.<p> <dl class="author" compact><dt><b>Author:</b></dt><dd>Martynas Kunigelis </dd></dl> <dl class="version" compact><dt><b>Version:</b></dt><dd></dd></dl> <dl class="rcs" compact><dt><b>Id</b></dt><dd><a class="el" href="kgameprogress_8h-source.html">kgameprogress.h</a> 465369 2005-09-29 14:33:08Z mueller </dd></dl> <p>Definition at line <a class="el" href="kgameprogress_8h-source.html#l00050">50</a> of file <a class="el" href="kgameprogress_8h-source.html">kgameprogress.h</a>.</p> <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">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#65bc10f41f06adf65a8b3fc0e51cd0e5">BarStyle</a> { <b>Solid</b>, <b>Blocked</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="classKGameProgress.html#94e6f56e8da93f40d9b86cd66ce35c7e">setFormat</a> (const QString &format)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#55a136c9c825d758c78ba3e8b50cdda1">setValue</a> (int value)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#3e19e4a092a7a58a124eddd71869f384">advance</a> (int prog)</td></tr> <tr><td colspan="2"><br><h2>Signals</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#10c3b93db47ec64c8e20c44fa8f5cb71">percentageChanged</a> (int)</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="classKGameProgress.html#bd7aeb002c2f304b936494d1cdd95898">KGameProgress</a> (QWidget *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="classKGameProgress.html#d04c7321ddb7cffb27fba352349c8972">KGameProgress</a> (Orientation orient, QWidget *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="classKGameProgress.html#659a7424da9b01c1981b6e68a313bcaf">KGameProgress</a> (int minValue, int maxValue, int value, Orientation, QWidget *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="classKGameProgress.html#0c1d7fdc1d99b19c148e1ef7531ba12d">~KGameProgress</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#02dbcd5430143e09c1eb88de31b7fc53">setBarStyle</a> (<a class="el" href="classKGameProgress.html#65bc10f41f06adf65a8b3fc0e51cd0e5">BarStyle</a> style)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#53a7b1c6f445a08974b1456086b3c125">setBarColor</a> (const QColor &)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#6b96c1991600c5f4c68da832a0046c2b">setBarPixmap</a> (const QPixmap &)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#c77c278d29092495f87ec56f10e585c5">setOrientation</a> (Orientation)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#68f7641354bed2cae325164f40800a7e">setTextEnabled</a> (bool)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classKGameProgress.html#65bc10f41f06adf65a8b3fc0e51cd0e5">BarStyle</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#1299af7b3913b4776edc9524fb59879c">barStyle</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const QColor & </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#7b96912c7e9365a2673e00a66a9cab07">barColor</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const QPixmap * </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#4e79c085e30768ea2fe1079f4e9cac7b">barPixmap</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#6b3ca6dee91c3b785b51f575205d82e0">value</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">Orientation </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#aea83fc152d31b7c849da1d7e8afabfc">orientation</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#98259d56da66add89df3958abd73a127">textEnabled</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6b9eb7d4d71c6491a7edcb5a2cdaa74a"></a><!-- doxytag: member="KGameProgress::sizeHint" ref="6b9eb7d4d71c6491a7edcb5a2cdaa74a" args="() const " --> virtual QSize </td><td class="memItemRight" valign="bottom"><b>sizeHint</b> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2c6f1a21e212cbc6e26d9ca23b9994b4"></a><!-- doxytag: member="KGameProgress::minimumSizeHint" ref="2c6f1a21e212cbc6e26d9ca23b9994b4" args="() const " --> virtual QSize </td><td class="memItemRight" valign="bottom"><b>minimumSizeHint</b> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="afa1ee6f2a7413b22c1f85a839e84b46"></a><!-- doxytag: member="KGameProgress::sizePolicy" ref="afa1ee6f2a7413b22c1f85a839e84b46" args="() const " --> virtual QSizePolicy </td><td class="memItemRight" valign="bottom"><b>sizePolicy</b> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classKGameProgress.html#fc82efda209b6bfc6d2a2c3fdf700190">format</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"><a class="anchor" name="043503f3049d7c64998ea8ea7723a33b"></a><!-- doxytag: member="KGameProgress::valueChange" ref="043503f3049d7c64998ea8ea7723a33b" args="()" --> void </td><td class="memItemRight" valign="bottom"><b>valueChange</b> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e755f48f9451ce83d14ebb87a1076eba"></a><!-- doxytag: member="KGameProgress::rangeChange" ref="e755f48f9451ce83d14ebb87a1076eba" args="()" --> void </td><td class="memItemRight" valign="bottom"><b>rangeChange</b> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9b74a84835e721d8244c04eb73c04c77"></a><!-- doxytag: member="KGameProgress::styleChange" ref="9b74a84835e721d8244c04eb73c04c77" args="(QStyle &)" --> void </td><td class="memItemRight" valign="bottom"><b>styleChange</b> (QStyle &)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4fafa85db8f73eae3b59f4e754b26abf"></a><!-- doxytag: member="KGameProgress::paletteChange" ref="4fafa85db8f73eae3b59f4e754b26abf" args="(const QPalette &)" --> void </td><td class="memItemRight" valign="bottom"><b>paletteChange</b> (const QPalette &)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e72015da1555b0b0f62c8a467d3535a4"></a><!-- doxytag: member="KGameProgress::drawContents" ref="e72015da1555b0b0f62c8a467d3535a4" args="(QPainter *)" --> void </td><td class="memItemRight" valign="bottom"><b>drawContents</b> (QPainter *)</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="322e58dc6b5a2ae9636b8bae91e11498"></a><!-- doxytag: member="KGameProgress::value" ref="322e58dc6b5a2ae9636b8bae91e11498" args="" --> int </td><td class="memItemRight" valign="bottom"><b>value</b></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="08b075be71f60b1e7f32347b8953fd62"></a><!-- doxytag: member="KGameProgress::barStyle" ref="08b075be71f60b1e7f32347b8953fd62" args="" --> <a class="el" href="classKGameProgress.html#65bc10f41f06adf65a8b3fc0e51cd0e5">BarStyle</a> </td><td class="memItemRight" valign="bottom"><b>barStyle</b></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8b6684321ec0190aaad16d8a25c12c31"></a><!-- doxytag: member="KGameProgress::barColor" ref="8b6684321ec0190aaad16d8a25c12c31" args="" --> QColor </td><td class="memItemRight" valign="bottom"><b>barColor</b></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3652621a5ef292826d505cc525399a9f"></a><!-- doxytag: member="KGameProgress::barPixmap" ref="3652621a5ef292826d505cc525399a9f" args="" --> QPixmap </td><td class="memItemRight" valign="bottom"><b>barPixmap</b></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1588dcc9b64e5034e443e32f21640b75"></a><!-- doxytag: member="KGameProgress::orientation" ref="1588dcc9b64e5034e443e32f21640b75" args="" --> Orientation </td><td class="memItemRight" valign="bottom"><b>orientation</b></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af49662919afc9b05369b96bbef4ddc9"></a><!-- doxytag: member="KGameProgress::textEnabled" ref="af49662919afc9b05369b96bbef4ddc9" args="" --> bool </td><td class="memItemRight" valign="bottom"><b>textEnabled</b></td></tr> </table> <hr><h2>Member Enumeration Documentation</h2> <a class="anchor" name="65bc10f41f06adf65a8b3fc0e51cd0e5"></a><!-- doxytag: member="KGameProgress::BarStyle" ref="65bc10f41f06adf65a8b3fc0e51cd0e5" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classKGameProgress.html#65bc10f41f06adf65a8b3fc0e51cd0e5">KGameProgress::BarStyle</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Possible values for bar style. <p> <code>Solid</code> means one continuous progress bar, <code>Blocked</code> means a progress bar made up of several blocks. <p>Definition at line <a class="el" href="kgameprogress_8h-source.html#l00068">68</a> of file <a class="el" href="kgameprogress_8h-source.html">kgameprogress.h</a>.</p> </div> </div><p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="bd7aeb002c2f304b936494d1cdd95898"></a><!-- doxytag: member="KGameProgress::KGameProgress" ref="bd7aeb002c2f304b936494d1cdd95898" args="(QWidget *parent=0, const char *name=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KGameProgress::KGameProgress </td> <td>(</td> <td class="paramtype">QWidget * </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> Construct a horizontal progress bar. <p> <a class="el" href="classKGameProgress.html" title="A progress indicator widget.">KGameProgress</a> -- a progress indicator widget for KDE. <p>Definition at line <a class="el" href="kgameprogress_8cpp-source.html#l00032">32</a> of file <a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a>.</p> </div> </div><p> <a class="anchor" name="d04c7321ddb7cffb27fba352349c8972"></a><!-- doxytag: member="KGameProgress::KGameProgress" ref="d04c7321ddb7cffb27fba352349c8972" args="(Orientation orient, QWidget *parent=0, const char *name=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KGameProgress::KGameProgress </td> <td>(</td> <td class="paramtype">Orientation </td> <td class="paramname"> <em>orient</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QWidget * </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> Construct a progress bar with orientation <code>orient</code>. <p> <p>Definition at line <a class="el" href="kgameprogress_8cpp-source.html#l00040">40</a> of file <a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a>.</p> </div> </div><p> <a class="anchor" name="659a7424da9b01c1981b6e68a313bcaf"></a><!-- doxytag: member="KGameProgress::KGameProgress" ref="659a7424da9b01c1981b6e68a313bcaf" args="(int minValue, int maxValue, int value, Orientation, QWidget *parent=0, const char *name=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KGameProgress::KGameProgress </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>minValue</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>maxValue</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">Orientation </td> <td class="paramname"> <em>orientation</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QWidget * </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> Construct a progress bar with minimum, maximum and initial values. <p> <p>Definition at line <a class="el" href="kgameprogress_8cpp-source.html#l00048">48</a> of file <a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a>.</p> </div> </div><p> <a class="anchor" name="0c1d7fdc1d99b19c148e1ef7531ba12d"></a><!-- doxytag: member="KGameProgress::~KGameProgress" ref="0c1d7fdc1d99b19c148e1ef7531ba12d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KGameProgress::~KGameProgress </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Destruct the progress bar. <p> <p>Definition at line <a class="el" href="kgameprogress_8cpp-source.html#l00057">57</a> of file <a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="02dbcd5430143e09c1eb88de31b7fc53"></a><!-- doxytag: member="KGameProgress::setBarStyle" ref="02dbcd5430143e09c1eb88de31b7fc53" args="(BarStyle style)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KGameProgress::setBarStyle </td> <td>(</td> <td class="paramtype"><a class="el" href="classKGameProgress.html#65bc10f41f06adf65a8b3fc0e51cd0e5">BarStyle</a> </td> <td class="paramname"> <em>style</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Set the progress bar style. <p> Allowed values are <code>Solid</code> and <code>Blocked</code>. <p>Definition at line <a class="el" href="kgameprogress_8cpp-source.html#l00113">113</a> of file <a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a>.</p> </div> </div><p> <a class="anchor" name="53a7b1c6f445a08974b1456086b3c125"></a><!-- doxytag: member="KGameProgress::setBarColor" ref="53a7b1c6f445a08974b1456086b3c125" args="(const QColor &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KGameProgress::setBarColor </td> <td>(</td> <td class="paramtype">const QColor & </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 progress bar. <p> <p>Definition at line <a class="el" href="kgameprogress_8cpp-source.html#l00103">103</a> of file <a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a>.</p> </div> </div><p> <a class="anchor" name="6b96c1991600c5f4c68da832a0046c2b"></a><!-- doxytag: member="KGameProgress::setBarPixmap" ref="6b96c1991600c5f4c68da832a0046c2b" args="(const QPixmap &)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KGameProgress::setBarPixmap </td> <td>(</td> <td class="paramtype">const QPixmap & </td> <td class="paramname"> <em>pixmap</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Set a pixmap to be shown in the progress bar. <p> <p>Definition at line <a class="el" href="kgameprogress_8cpp-source.html#l00093">93</a> of file <a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a>.</p> </div> </div><p> <a class="anchor" name="c77c278d29092495f87ec56f10e585c5"></a><!-- doxytag: member="KGameProgress::setOrientation" ref="c77c278d29092495f87ec56f10e585c5" args="(Orientation)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KGameProgress::setOrientation </td> <td>(</td> <td class="paramtype">Orientation </td> <td class="paramname"> <em>orientation</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Set the orientation of the progress bar. <p> Allowed values are <code>Horizontal</code> and <code>Vertical</code>. <p>Definition at line <a class="el" href="kgameprogress_8cpp-source.html#l00121">121</a> of file <a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a>.</p> </div> </div><p> <a class="anchor" name="68f7641354bed2cae325164f40800a7e"></a><!-- doxytag: member="KGameProgress::setTextEnabled" ref="68f7641354bed2cae325164f40800a7e" args="(bool)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KGameProgress::setTextEnabled </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>enable</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> If this is set to <code>true</code>, the progress text will be displayed. <p> <p>Definition at line <a class="el" href="kgameprogress_8cpp-source.html#l00134">134</a> of file <a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a>.</p> </div> </div><p> <a class="anchor" name="1299af7b3913b4776edc9524fb59879c"></a><!-- doxytag: member="KGameProgress::barStyle" ref="1299af7b3913b4776edc9524fb59879c" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classKGameProgress.html#65bc10f41f06adf65a8b3fc0e51cd0e5">BarStyle</a> KGameProgress::barStyle </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Retrieve the bar style. <p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKGameProgress.html#02dbcd5430143e09c1eb88de31b7fc53" title="Set the progress bar style.">setBarStyle()</a> </dd></dl> </div> </div><p> <a class="anchor" name="7b96912c7e9365a2673e00a66a9cab07"></a><!-- doxytag: member="KGameProgress::barColor" ref="7b96912c7e9365a2673e00a66a9cab07" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const QColor& KGameProgress::barColor </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Retrieve the bar color. <p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKGameProgress.html#53a7b1c6f445a08974b1456086b3c125" title="Set the color of the progress bar.">setBarColor()</a> </dd></dl> </div> </div><p> <a class="anchor" name="4e79c085e30768ea2fe1079f4e9cac7b"></a><!-- doxytag: member="KGameProgress::barPixmap" ref="4e79c085e30768ea2fe1079f4e9cac7b" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const QPixmap* KGameProgress::barPixmap </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Retrieve the bar pixmap. <p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKGameProgress.html#6b96c1991600c5f4c68da832a0046c2b" title="Set a pixmap to be shown in the progress bar.">setBarPixmap()</a> </dd></dl> </div> </div><p> <a class="anchor" name="6b3ca6dee91c3b785b51f575205d82e0"></a><!-- doxytag: member="KGameProgress::value" ref="6b3ca6dee91c3b785b51f575205d82e0" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int KGameProgress::value </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Retrive the current status. <p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKGameProgress.html#55a136c9c825d758c78ba3e8b50cdda1" title="Set the current value of the progress bar to value.">setValue()</a> </dd></dl> <p>Definition at line <a class="el" href="kgameprogress_8h-source.html#l00146">146</a> of file <a class="el" href="kgameprogress_8h-source.html">kgameprogress.h</a>.</p> </div> </div><p> <a class="anchor" name="aea83fc152d31b7c849da1d7e8afabfc"></a><!-- doxytag: member="KGameProgress::orientation" ref="aea83fc152d31b7c849da1d7e8afabfc" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Orientation KGameProgress::orientation </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Retrive the orientation of the progress bar. <p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKGameProgress.html#c77c278d29092495f87ec56f10e585c5" title="Set the orientation of the progress bar.">setOrientation()</a> </dd></dl> </div> </div><p> <a class="anchor" name="98259d56da66add89df3958abd73a127"></a><!-- doxytag: member="KGameProgress::textEnabled" ref="98259d56da66add89df3958abd73a127" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool KGameProgress::textEnabled </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Returns <code>true</code> if progress text will be displayed, <code>false</code> otherwise. <p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKGameProgress.html#94e6f56e8da93f40d9b86cd66ce35c7e" title="Set the format of the text to use to display status.">setFormat()</a> </dd></dl> </div> </div><p> <a class="anchor" name="fc82efda209b6bfc6d2a2c3fdf700190"></a><!-- doxytag: member="KGameProgress::format" ref="fc82efda209b6bfc6d2a2c3fdf700190" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString KGameProgress::format </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Retrieve the current format for printing status text. <p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKGameProgress.html#94e6f56e8da93f40d9b86cd66ce35c7e" title="Set the format of the text to use to display status.">setFormat()</a> </dd></dl> <p>Definition at line <a class="el" href="kgameprogress_8cpp-source.html#l00340">340</a> of file <a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a>.</p> </div> </div><p> <a class="anchor" name="94e6f56e8da93f40d9b86cd66ce35c7e"></a><!-- doxytag: member="KGameProgress::setFormat" ref="94e6f56e8da93f40d9b86cd66ce35c7e" args="(const QString &format)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KGameProgress::setFormat </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"> <em>format</em> </td> <td> ) </td> <td width="100%"><code> [slot]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set the format of the text to use to display status. <p> The default format is "%p%" (which looks like "42%".)<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>format</em> </td><td>p is replaced by percentage done, v is replaced by actual value, m is replaced by the maximum value. </td></tr> </table> </dl> <p>Definition at line <a class="el" href="kgameprogress_8cpp-source.html#l00335">335</a> of file <a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a>.</p> </div> </div><p> <a class="anchor" name="55a136c9c825d758c78ba3e8b50cdda1"></a><!-- doxytag: member="KGameProgress::setValue" ref="55a136c9c825d758c78ba3e8b50cdda1" args="(int value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KGameProgress::setValue </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>value</em> </td> <td> ) </td> <td width="100%"><code> [slot]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set the current value of the progress bar to <code>value</code>. <p> This must be a number in the range 0..100. <p>Definition at line <a class="el" href="kgameprogress_8cpp-source.html#l00129">129</a> of file <a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a>.</p> </div> </div><p> <a class="anchor" name="3e19e4a092a7a58a124eddd71869f384"></a><!-- doxytag: member="KGameProgress::advance" ref="3e19e4a092a7a58a124eddd71869f384" args="(int prog)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KGameProgress::advance </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>prog</em> </td> <td> ) </td> <td width="100%"><code> [slot]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Advance the progress bar by <code>prog</code>. <p> This method is provided for convenience and is equivalent with setValue(value()+prog). <p>Definition at line <a class="el" href="kgameprogress_8cpp-source.html#l00062">62</a> of file <a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a>.</p> </div> </div><p> <a class="anchor" name="10c3b93db47ec64c8e20c44fa8f5cb71"></a><!-- doxytag: member="KGameProgress::percentageChanged" ref="10c3b93db47ec64c8e20c44fa8f5cb71" args="(int)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KGameProgress::percentageChanged </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [signal]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Emitted when the state of the progress bar changes. <p> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="kgameprogress_8h-source.html">kgameprogress.h</a><li><a class="el" href="kgameprogress_8cpp-source.html">kgameprogress.cpp</a></ul> </div> </div></div> </td> </tr> <tr> <td valign="top" id="leftmenu" width="25%"> <a name="navigation"></a> <div class="menu_box"><h2>libkdegames</h2> <div class="nav_list"> <ul><li><a href="index.html">Main Page</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="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="classKCanvasRootPixmap.html">kcanvasrootpixmap</option>, <option value="classKCardDialog.html">kcarddialog</option>, <option value="classKChat.html">kchat</option>, <option value="classKChatBase.html">kchatbase</option>, <option value="classKChatBaseText.html">kchatbasetext</option>, <option value="classKExtHighscore_1_1Item.html">kexthighscore::item</option>, <option value="classKExtHighscore_1_1ItemArray.html">kexthighscore::itemarray</option>, <option value="classKExtHighscore_1_1Manager.html">kexthighscore::manager</option>, <option value="classKExtHighscore_1_1MultiplayerScores.html">kexthighscore::multiplayerscores</option>, <option value="classKExtHighscore_1_1Score.html">kexthighscore::score</option>, <option value="classKGame.html">kgame</option>, <option value="classKGameChat.html">kgamechat</option>, <option value="classKGameComputerIO.html">kgamecomputerio</option>, <option value="classKGameConnectDialog.html">kgameconnectdialog</option>, <option value="classKGameDialog.html">kgamedialog</option>, <option value="classKGameDialogChatConfig.html">kgamedialogchatconfig</option>, <option value="classKGameDialogConfig.html">kgamedialogconfig</option>, <option value="classKGameErrorDialog.html">kgameerrordialog</option>, <option value="classKGameErrorMessageDialog.html">kgameerrormessagedialog</option>, <option value="classKGameIO.html">kgameio</option>, <option value="classKGameKeyIO.html">kgamekeyio</option>, <option value="classKGameLCD.html">kgamelcd</option>, <option value="classKGameLCDClock.html">kgamelcdclock</option>, <option value="classKGameLCDList.html">kgamelcdlist</option>, <option value="classKGameMisc.html">kgamemisc</option>, <option value="classKGameMouseIO.html">kgamemouseio</option>, <option value="classKGameNetwork.html">kgamenetwork</option>, <option value="classKGameProcess.html">kgameprocess</option>, <option value="classKGameProcessIO.html">kgameprocessio</option>, <option value="classKGameProgress.html">kgameprogress</option>, <option value="classKGameProperty.html">kgameproperty</option>, <option value="classKGamePropertyBase.html">kgamepropertybase</option>, <option value="classKGamePropertyHandler.html">kgamepropertyhandler</option>, <option value="classKGameSequence.html">kgamesequence</option>, <option value="classKGrid2D_1_1Generic.html">kgrid2d::generic</option>, <option value="classKGrid2D_1_1Hexagonal.html">kgrid2d::hexagonal</option>, <option value="classKGrid2D_1_1HexagonalBase.html">kgrid2d::hexagonalbase</option>, <option value="classKGrid2D_1_1Square.html">kgrid2d::square</option>, <option value="classKGrid2D_1_1SquareBase.html">kgrid2d::squarebase</option>, <option value="classKHighscore.html">khighscore</option>, <option value="classKMessageClient.html">kmessageclient</option>, <option value="classKMessageDirect.html">kmessagedirect</option>, <option value="classKMessageIO.html">kmessageio</option>, <option value="classKMessageServer.html">kmessageserver</option>, <option value="classKMessageServerSocket.html">kmessageserversocket</option>, <option value="classKMessageSocket.html">kmessagesocket</option>, <option value="classKPlayer.html">kplayer</option>, <option value="classKScoreDialog.html">kscoredialog</option>, <option value="classKStdGameAction.html">kstdgameaction</option>, </select> </form> </div> --> </div></div> <div class="menu_box"><h2>API Dox</h2> <div class="nav_list"> <ul> <li><a href="../../libkdegames/html/index.html">libkdegames</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:winter@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>