Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > ea24284f03fd4a8a4b64047514d93f64 > files > 99

lib64kdegames1-devel-3.5.9-2mdv2008.1.x86_64.rpm

<?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: KChatBase 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>KChatBase Class Reference</h1><!-- doxytag: class="KChatBase" --><!-- doxytag: inherits="QFrame" --><code>#include &lt;<a class="el" href="kchatbase_8h-source.html">kchatbase.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for KChatBase:</div>
<div class="dynsection">

<p><center><img src="classKChatBase.png" usemap="#KChatBase_map" border="0" alt=""></center>
<map name="KChatBase_map">
<area href="classKChat.html" alt="KChat" shape="rect" coords="0,56,78,80">
<area href="classKGameChat.html" alt="KGameChat" shape="rect" coords="88,56,166,80">
</map>
</div>

<p>
<a href="classKChatBase-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
The base class for chat widgets. 
<p>
This is the base class for both <a class="el" href="classKChat.html" title="A chat widget for non-KGame games.">KChat</a> and <a class="el" href="classKGameChat.html" title="A Chat widget for KGame-based games.">KGameChat</a>. <a class="el" href="classKGameChat.html" title="A Chat widget for KGame-based games.">KGameChat</a> is the class you want to use if you write a <a class="el" href="classKGame.html" title="The main KDE game object.">KGame</a> based game as it will do most things for you. <a class="el" href="classKChat.html" title="A chat widget for non-KGame games.">KChat</a> is more or less the same but not <a class="el" href="classKGame.html" title="The main KDE game object.">KGame</a> dependant<p>
<a class="el" href="classKChatBase.html" title="The base class for chat widgets.">KChatBase</a> provides a complete chat widget, featuring different sending means (e.g. "send to all", "send to player1", "send to group2" and so on - see addSendingEntry). It also provides full auto-completion capabilities (see KCompletion and KLineEdit) which defaults to disabled. The user can change this by right-clicking on the KLineEdit widget and selecting the desired behaviour. You can also change this manually by calling setCompletionMode.<p>
To make <a class="el" href="classKChatBase.html" title="The base class for chat widgets.">KChatBase</a> useful you have to overwrite at least returnPressed. Here you should send the message to all of your clients (or just some of them, depending on sendingEntry).<p>
To add a message just call addMessage with the nickname of the player who sent the message and the message itself. If you don't want to use layoutMessage by any reason you can also call addItem directly. But you should better replace layoutMessage instead.<p>
You probably don't want to use the abstract class <a class="el" href="classKChatBase.html" title="The base class for chat widgets.">KChatBase</a> directly but use one of the derived classess <a class="el" href="classKChat.html" title="A chat widget for non-KGame games.">KChat</a> or <a class="el" href="classKGameChat.html" title="A Chat widget for KGame-based games.">KGameChat</a>. The latter is the widget of choice if you develop a <a class="el" href="classKGame.html" title="The main KDE game object.">KGame</a> application as you don't have to do anything but providing a <a class="el" href="classKGame.html" title="The main KDE game object.">KGame</a> object.<p>
<dl class="author" compact><dt><b>Author:</b></dt><dd>Andreas Beckermann &lt;<a href="mailto:b_mann@gmx.de">b_mann@gmx.de</a>&gt; </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8h-source.html#l00184">184</a> of file <a class="el" href="kchatbase_8h-source.html">kchatbase.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 &nbsp;</td><td class="memItemRight" valign="bottom"><b>SendingIds</b> { <b>SendToAll</b> =  0
 }</td></tr>

<tr><td colspan="2"><br><h2>Public Slots</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#87230262c5a40c360fddc4df22bd396c">addMessage</a> (const QString &amp;fromName, const QString &amp;text)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#228a7f5d7accac8c71bce23e76e68878">addSystemMessage</a> (const QString &amp;fromName, const QString &amp;text)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#3432f2b359a43df83fdf69870a245b6a">addItem</a> (const QListBoxItem *item)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#0474a55d602a8831bac9a6a297b68013">slotClear</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#39ac0cdb3d270e7ff638806c24e6dda3">setAcceptMessage</a> (bool a)</td></tr>

<tr><td colspan="2"><br><h2>Signals</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#643e49619b129fcbfffd297bf320c52d">rightButtonClicked</a> (QListBoxItem *, const QPoint &amp;)</td></tr>

<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#34b074951a40e4dea7f51666c09dc379">KChatBase</a> (QWidget *parent, bool noComboBox=false)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#1c08ad8495491a42e654f9bedc26cf40">~KChatBase</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const QString &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#bcbc2a1c411c4c352ea22dbe7325645d">fromName</a> () const =0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#d86a506bd30b229d77a6643cf63f3140">addSendingEntry</a> (const QString &amp;text, int id)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#1d4b3ecaf55e833cdaa2d21f26cc0b8d">insertSendingEntry</a> (const QString &amp;text, int id, int index=-1)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#336dcd96d5ea1e1913e676481f9e7278">changeSendingEntry</a> (const QString &amp;text, int id)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#1a213361ee41714548233f695978bf88">setSendingEntry</a> (int id)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#e346a006e004c0bc94f68b65fd06fb56">removeSendingEntry</a> (int id)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#1847d424028059dbf73c95eacf3be977">sendingEntry</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#33820910302d6df6f1c39ed429df7906">findIndex</a> (int id) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#e21c4af4ab72b7d8880b7e9ac615c45a">nextId</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#1931017a0a696ab9797c848b72f61e6c">acceptMessage</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#79119584247e280b45ff19f329ed896a">setCompletionMode</a> (KGlobalSettings::Completion mode)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#1fb0604a30685ff35eb0c4dc9c67ee72">setNameFont</a> (const QFont &amp;font)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#8247cf4db2da92cfbea8239ed50e3f13">setMessageFont</a> (const QFont &amp;font)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#0317422d8bd14a5f38ee57666587d71c">setBothFont</a> (const QFont &amp;font)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#462382c8a3aa1bac04b93275b08ff1ae">setSystemNameFont</a> (const QFont &amp;font)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#7802497435b319cc7ff0a84897411773">setSystemMessageFont</a> (const QFont &amp;font)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#56180fb8853d28a05d8bb31bd9ccc473">setSystemBothFont</a> (const QFont &amp;font)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const QFont &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#85f8a7b772c81dfad60a57d313c66acb">nameFont</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const QFont &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#84d64953870abacd0b3d5fc580b474e3">messageFont</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const QFont &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#47aa2edca1c29f5adacf744820eab4b7">systemNameFont</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const QFont &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#5f780dc058418febf113fc0fc7d2ee81">systemMessageFont</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#d2f4855df42c431116f65da6741997b2">saveConfig</a> (KConfig *conf=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#a0f471424d712734bf6a101becd4e238">readConfig</a> (KConfig *conf=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#f51fada611ee3da3048bebc436294b73">setMaxItems</a> (int maxItems)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#c5235e88eb5dac20545a001daa9cf118">clear</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#c54c161e68ad83fe9d734c189ed3e63a">maxItems</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#a5094584b796d548536a6fdaa36e1364">returnPressed</a> (const QString &amp;text)=0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#7819bcbe55a1eaf8695ed128bb54b185">comboBoxItem</a> (const QString &amp;name) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QListBoxItem *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#67cd8c0b75d8b833affe947247c6e89a">layoutMessage</a> (const QString &amp;fromName, const QString &amp;text)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QListBoxItem *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKChatBase.html#de8b61ac8cf004d1f520587afec51cb1">layoutSystemMessage</a> (const QString &amp;fromName, const QString &amp;text)</td></tr>

</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="34b074951a40e4dea7f51666c09dc379"></a><!-- doxytag: member="KChatBase::KChatBase" ref="34b074951a40e4dea7f51666c09dc379" args="(QWidget *parent, bool noComboBox=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KChatBase::KChatBase           </td>
          <td>(</td>
          <td class="paramtype">QWidget *&nbsp;</td>
          <td class="paramname"> <em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>noComboBox</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<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>parent</em>&nbsp;</td><td>The parent widget for this widget. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>noComboBox</em>&nbsp;</td><td>If true then the combo box where the player can choose where to send messages to (either globally or just to some players) will not be added. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00185">185</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="1c08ad8495491a42e654f9bedc26cf40"></a><!-- doxytag: member="KChatBase::~KChatBase" ref="1c08ad8495491a42e654f9bedc26cf40" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KChatBase::~KChatBase           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destruct the <a class="el" href="classKChatBase.html" title="The base class for chat widgets.">KChatBase</a> object. 
<p>
Also calls saveConfig 
<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00190">190</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="bcbc2a1c411c4c352ea22dbe7325645d"></a><!-- doxytag: member="KChatBase::fromName" ref="bcbc2a1c411c4c352ea22dbe7325645d" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const QString&amp; KChatBase::fromName           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The name that will be shown for messages from this widget. Either the string that was set by setFromName or the name of the player that was set by setFromPlayer </dd></dl>

<p>Implemented in <a class="el" href="classKChat.html#5f1f380711c8394245c147ca78adc172">KChat</a>, and <a class="el" href="classKGameChat.html#7c9c444f7d085998e8462bc39ba6e5d4">KGameChat</a>.</p>

</div>
</div><p>
<a class="anchor" name="d86a506bd30b229d77a6643cf63f3140"></a><!-- doxytag: member="KChatBase::addSendingEntry" ref="d86a506bd30b229d77a6643cf63f3140" args="(const QString &amp;text, int id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KChatBase::addSendingEntry           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>id</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds a new entry in the combo box. 
<p>
The default is "send to all players" only. This function is provided for convenience. You can also call inserSendingEntry with index = -1. See also nextId! <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>The text of the new entry </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>An ID for this entry. This must be unique for this entry. It has nothing to do with the position of the entry in the combo box. See nextId </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True if successful, otherwise false (e.g. if the id is already used) </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00250">250</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="1d4b3ecaf55e833cdaa2d21f26cc0b8d"></a><!-- doxytag: member="KChatBase::insertSendingEntry" ref="1d4b3ecaf55e833cdaa2d21f26cc0b8d" args="(const QString &amp;text, int id, int index=-1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KChatBase::insertSendingEntry           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>index</em> = <code>-1</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Inserts a new entry in the combo box. 
<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>text</em>&nbsp;</td><td>The entry </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>An ID for this entry. This must be unique for this entry. It has nothing to do with the position of the entry in the combo box! </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKChatBase.html#e21c4af4ab72b7d8880b7e9ac615c45a">nextId</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>index</em>&nbsp;</td><td>The position of the entry. If -1 the entry will be added at the bottom </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True if successful, otherwise false (e.g. if the id is already used) </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00259">259</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="336dcd96d5ea1e1913e676481f9e7278"></a><!-- doxytag: member="KChatBase::changeSendingEntry" ref="336dcd96d5ea1e1913e676481f9e7278" args="(const QString &amp;text, int id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::changeSendingEntry           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>id</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This changes a combo box entry. 
<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>text</em>&nbsp;</td><td>The new text of the entry </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>The ID of the item to be changed </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00306">306</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="1a213361ee41714548233f695978bf88"></a><!-- doxytag: member="KChatBase::setSendingEntry" ref="1a213361ee41714548233f695978bf88" args="(int id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::setSendingEntry           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>id</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This selects a combo box entry. 
<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>id</em>&nbsp;</td><td>The ID of the item to be selected </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00316">316</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="e346a006e004c0bc94f68b65fd06fb56"></a><!-- doxytag: member="KChatBase::removeSendingEntry" ref="e346a006e004c0bc94f68b65fd06fb56" args="(int id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::removeSendingEntry           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>id</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Removes the entry with the ID id from the combo box. 
<p>
Note that id is _not_ the index of the entry! <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKChatBase.html#d86a506bd30b229d77a6643cf63f3140" title="Adds a new entry in the combo box.">addSendingEntry</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>id</em>&nbsp;</td><td>The unique id of the entry </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00296">296</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="1847d424028059dbf73c95eacf3be977"></a><!-- doxytag: member="KChatBase::sendingEntry" ref="1847d424028059dbf73c95eacf3be977" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KChatBase::sendingEntry           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The _unique ID_ of the sending entry that has been selected. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKChatBase.html#d86a506bd30b229d77a6643cf63f3140" title="Adds a new entry in the combo box.">addSendingEntry</a></dd></dl>
Note that the entry "send to all" _always_ uses KChatBase::SendToAll, i.e. 0 as id! 
<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00282">282</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="33820910302d6df6f1c39ed429df7906"></a><!-- doxytag: member="KChatBase::findIndex" ref="33820910302d6df6f1c39ed429df7906" args="(int id) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KChatBase::findIndex           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>id</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The index of the combo box entry with the given id </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00325">325</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="e21c4af4ab72b7d8880b7e9ac615c45a"></a><!-- doxytag: member="KChatBase::nextId" ref="e21c4af4ab72b7d8880b7e9ac615c45a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KChatBase::nextId           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>An ID that has not yet been used in the combo box. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKChatBase.html#d86a506bd30b229d77a6643cf63f3140" title="Adds a new entry in the combo box.">addSendingEntry</a> </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00330">330</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="1931017a0a696ab9797c848b72f61e6c"></a><!-- doxytag: member="KChatBase::acceptMessage" ref="1931017a0a696ab9797c848b72f61e6c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KChatBase::acceptMessage           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True if this widget is able to send messages (see returnPressed) and false if not. The default implementation returns the value which has been set by setAcceptMessage (true by default) </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00244">244</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="79119584247e280b45ff19f329ed896a"></a><!-- doxytag: member="KChatBase::setCompletionMode" ref="79119584247e280b45ff19f329ed896a" args="(KGlobalSettings::Completion mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::setCompletionMode           </td>
          <td>(</td>
          <td class="paramtype">KGlobalSettings::Completion&nbsp;</td>
          <td class="paramname"> <em>mode</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
See KLineEdit::setCompletionMode. 
<p>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00417">417</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="1fb0604a30685ff35eb0c4dc9c67ee72"></a><!-- doxytag: member="KChatBase::setNameFont" ref="1fb0604a30685ff35eb0c4dc9c67ee72" args="(const QFont &amp;font)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::setNameFont           </td>
          <td>(</td>
          <td class="paramtype">const QFont &amp;&nbsp;</td>
          <td class="paramname"> <em>font</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the font that used used for the name part of a message. 
<p>
See also nameFont and setBothFont 
<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00420">420</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="8247cf4db2da92cfbea8239ed50e3f13"></a><!-- doxytag: member="KChatBase::setMessageFont" ref="8247cf4db2da92cfbea8239ed50e3f13" args="(const QFont &amp;font)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::setMessageFont           </td>
          <td>(</td>
          <td class="paramtype">const QFont &amp;&nbsp;</td>
          <td class="paramname"> <em>font</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the font that used used for the message part of a message. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKChatBase.html#84d64953870abacd0b3d5fc580b474e3" title="This font should be used for a message.">messageFont</a>, <a class="el" href="classKChatBase.html#0317422d8bd14a5f38ee57666587d71c" title="This sets both - nameFont and messageFont to font.">setBothFont</a> </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00426">426</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="0317422d8bd14a5f38ee57666587d71c"></a><!-- doxytag: member="KChatBase::setBothFont" ref="0317422d8bd14a5f38ee57666587d71c" args="(const QFont &amp;font)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::setBothFont           </td>
          <td>(</td>
          <td class="paramtype">const QFont &amp;&nbsp;</td>
          <td class="paramname"> <em>font</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This sets both - nameFont and messageFont to font. 
<p>
You probably want to use this if you don't wish to distinguish between these parts of a message. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>font</em>&nbsp;</td><td>A font used for both nameFont and messageFont </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00432">432</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="462382c8a3aa1bac04b93275b08ff1ae"></a><!-- doxytag: member="KChatBase::setSystemNameFont" ref="462382c8a3aa1bac04b93275b08ff1ae" args="(const QFont &amp;font)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::setSystemNameFont           </td>
          <td>(</td>
          <td class="paramtype">const QFont &amp;&nbsp;</td>
          <td class="paramname"> <em>font</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Same as setNameFont but applies only to system messages. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKChatBase.html#de8b61ac8cf004d1f520587afec51cb1" title="Create a QListBoxItem for this message.">layoutSystemMessage</a> </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00444">444</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="7802497435b319cc7ff0a84897411773"></a><!-- doxytag: member="KChatBase::setSystemMessageFont" ref="7802497435b319cc7ff0a84897411773" args="(const QFont &amp;font)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::setSystemMessageFont           </td>
          <td>(</td>
          <td class="paramtype">const QFont &amp;&nbsp;</td>
          <td class="paramname"> <em>font</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Same as setMessageFont but applies only to system messages. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKChatBase.html#de8b61ac8cf004d1f520587afec51cb1" title="Create a QListBoxItem for this message.">layoutSystemMessage</a> </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00450">450</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="56180fb8853d28a05d8bb31bd9ccc473"></a><!-- doxytag: member="KChatBase::setSystemBothFont" ref="56180fb8853d28a05d8bb31bd9ccc473" args="(const QFont &amp;font)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::setSystemBothFont           </td>
          <td>(</td>
          <td class="paramtype">const QFont &amp;&nbsp;</td>
          <td class="paramname"> <em>font</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Same as setBothFont but applies only to system messages. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKChatBase.html#de8b61ac8cf004d1f520587afec51cb1" title="Create a QListBoxItem for this message.">layoutSystemMessage</a> </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00456">456</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="85f8a7b772c81dfad60a57d313c66acb"></a><!-- doxytag: member="KChatBase::nameFont" ref="85f8a7b772c81dfad60a57d313c66acb" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const QFont &amp; KChatBase::nameFont           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This font should be used for the name (the "from: " part) of a message. 
<p>
layoutMessage uses this to set the font using <a class="el" href="classKChatBaseText.html#d17ea04616417e48697f5841a415378c" title="Set the font for the name.">KChatBaseText::setNameFont</a> but if you want to overwrite layoutMessage you should do this yourself. <dl class="return" compact><dt><b>Returns:</b></dt><dd>The font that is used for the name part of the message. </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00438">438</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="84d64953870abacd0b3d5fc580b474e3"></a><!-- doxytag: member="KChatBase::messageFont" ref="84d64953870abacd0b3d5fc580b474e3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const QFont &amp; KChatBase::messageFont           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This font should be used for a message. 
<p>
layoutMessage sets the font of a message using <a class="el" href="classKChatBaseText.html#5331fbd5f458abc22f55cfba0498d5fa" title="Set the font for the message text.">KChatBaseText::setMessageFont</a> but if ypu replace layoutMessage with your own function you should use <a class="el" href="classKChatBase.html#84d64953870abacd0b3d5fc580b474e3" title="This font should be used for a message.">messageFont()</a> yourself. <dl class="return" compact><dt><b>Returns:</b></dt><dd>The font that is used for a message </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00441">441</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="47aa2edca1c29f5adacf744820eab4b7"></a><!-- doxytag: member="KChatBase::systemNameFont" ref="47aa2edca1c29f5adacf744820eab4b7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const QFont &amp; KChatBase::systemNameFont           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Same as systemNameFont but applies only to system messages. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKChatBase.html#de8b61ac8cf004d1f520587afec51cb1" title="Create a QListBoxItem for this message.">layoutSystemMessage</a> </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00462">462</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="5f780dc058418febf113fc0fc7d2ee81"></a><!-- doxytag: member="KChatBase::systemMessageFont" ref="5f780dc058418febf113fc0fc7d2ee81" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const QFont &amp; KChatBase::systemMessageFont           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Same as systemMessageFont but applies only to system messages. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classKChatBase.html#de8b61ac8cf004d1f520587afec51cb1" title="Create a QListBoxItem for this message.">layoutSystemMessage</a> </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00465">465</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="d2f4855df42c431116f65da6741997b2"></a><!-- doxytag: member="KChatBase::saveConfig" ref="d2f4855df42c431116f65da6741997b2" args="(KConfig *conf=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::saveConfig           </td>
          <td>(</td>
          <td class="paramtype">KConfig *&nbsp;</td>
          <td class="paramname"> <em>conf</em> = <code>0</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Save the configuration of the dialog to a KConfig object. 
<p>
If the supplied KConfig pointer is NULL then kapp-&gt;config() is used instead (and the group is changed to "KChatBase") butr the current group is restored at the end. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>conf</em>&nbsp;</td><td>A pointer to the KConfig object to save the config to. If you use 0 then kapp-&gt;config() is used and the group is changed to "KChatBase" (the current group is restored at the end). </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00468">468</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="a0f471424d712734bf6a101becd4e238"></a><!-- doxytag: member="KChatBase::readConfig" ref="a0f471424d712734bf6a101becd4e238" args="(KConfig *conf=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::readConfig           </td>
          <td>(</td>
          <td class="paramtype">KConfig *&nbsp;</td>
          <td class="paramname"> <em>conf</em> = <code>0</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Read the configuration from a KConfig object. 
<p>
If the pointer is NULL kapp-&gt;config() is used and the group is changed to "KChatBase". The current KConfig::group is restored after this call. 
<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00488">488</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="f51fada611ee3da3048bebc436294b73"></a><!-- doxytag: member="KChatBase::setMaxItems" ref="f51fada611ee3da3048bebc436294b73" args="(int maxItems)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::setMaxItems           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>maxItems</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the maximum number of items in the list. 
<p>
If the number of item exceeds the maximum as many items are deleted (oldest first) as necessary. The number of items will never exceed this value. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>maxItems</em>&nbsp;</td><td>the maximum number of items. -1 (default) for unlimited. </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00513">513</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="c5235e88eb5dac20545a001daa9cf118"></a><!-- doxytag: member="KChatBase::clear" ref="c5235e88eb5dac20545a001daa9cf118" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::clear           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Clear all messages in the list. 
<p>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00508">508</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="c54c161e68ad83fe9d734c189ed3e63a"></a><!-- doxytag: member="KChatBase::maxItems" ref="c54c161e68ad83fe9d734c189ed3e63a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KChatBase::maxItems           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The maximum number of messages in the list. -1 is unlimited. See also setMaxItems </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00526">526</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="87230262c5a40c360fddc4df22bd396c"></a><!-- doxytag: member="KChatBase::addMessage" ref="87230262c5a40c360fddc4df22bd396c" args="(const QString &amp;fromName, const QString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::addMessage           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>fromName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add a text in the listbox. 
<p>
See also signalSendMessage()<p>
Maybe you want to replace this with a function that creates a nicer text than "fromName: text"<p>
Update: the function layoutMessage is called by this now. This means that you will get user defined outlook on the messages :-) <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>fromName</em>&nbsp;</td><td>The player who sent this message </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>The text to be added </td></tr>
  </table>
</dl>

<p>Reimplemented in <a class="el" href="classKGameChat.html#aeb15c81209b7df7e110b07d3431e187">KGameChat</a>.</p>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00349">349</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="228a7f5d7accac8c71bce23e76e68878"></a><!-- doxytag: member="KChatBase::addSystemMessage" ref="228a7f5d7accac8c71bce23e76e68878" args="(const QString &amp;fromName, const QString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::addSystemMessage           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>fromName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This works just like addMessage but adds a system message. 
<p>
layoutSystemMessage is used to generate the displayed item. System messages will have a different look than player messages.<p>
You may wish to use this to display status information from your game. 
<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00355">355</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="3432f2b359a43df83fdf69870a245b6a"></a><!-- doxytag: member="KChatBase::addItem" ref="3432f2b359a43df83fdf69870a245b6a" args="(const QListBoxItem *item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::addItem           </td>
          <td>(</td>
          <td class="paramtype">const QListBoxItem *&nbsp;</td>
          <td class="paramname"> <em>item</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This member function is mainly internally used to add a message. 
<p>
It is called by addMessage which creates a single text from a player name and a text. You will hardly ever use this - but if you need it it will be here ;-)<p>
But you may want to replace this in a derived class to create a non-default (maybe nicer ;-) ) behaviour <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>item</em>&nbsp;</td><td>The QListBoxItem that is being added </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00339">339</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="0474a55d602a8831bac9a6a297b68013"></a><!-- doxytag: member="KChatBase::slotClear" ref="0474a55d602a8831bac9a6a297b68013" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::slotClear           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This clears all messages in the view. 
<p>
Note that only the messages are cleared, not the sender names in the combo box! 
<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00412">412</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="39ac0cdb3d270e7ff638806c24e6dda3"></a><!-- doxytag: member="KChatBase::setAcceptMessage" ref="39ac0cdb3d270e7ff638806c24e6dda3" args="(bool a)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::setAcceptMessage           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>a</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<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>a</em>&nbsp;</td><td>If false this widget cannot send a message until setAcceptMessage(true) is called </td></tr>
  </table>
</dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00247">247</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="643e49619b129fcbfffd297bf320c52d"></a><!-- doxytag: member="KChatBase::rightButtonClicked" ref="643e49619b129fcbfffd297bf320c52d" args="(QListBoxItem *, const QPoint &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KChatBase::rightButtonClicked           </td>
          <td>(</td>
          <td class="paramtype">QListBoxItem *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QPoint &amp;&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Emitted when the user right-clicks on a list item. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd>QListBox::rightButtonClicked </dd></dl>

</div>
</div><p>
<a class="anchor" name="a5094584b796d548536a6fdaa36e1364"></a><!-- doxytag: member="KChatBase::returnPressed" ref="a5094584b796d548536a6fdaa36e1364" args="(const QString &amp;text)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void KChatBase::returnPressed           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected, pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This is called whenever the user pushed return ie wants to send a message. 
<p>
Note that you MUST add the message to the widget when this function is called as it has already been added to the KCompletion object of the KLineEdit widget!<p>
Must be implemented in derived classes <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>The message to be sent </td></tr>
  </table>
</dl>

<p>Implemented in <a class="el" href="classKChat.html#6dc30cf6411661ec17a733cacaf24c1b">KChat</a>, and <a class="el" href="classKGameChat.html#bdbd8f2335fae5ba98d3360b2b16bb55">KGameChat</a>.</p>

</div>
</div><p>
<a class="anchor" name="7819bcbe55a1eaf8695ed128bb54b185"></a><!-- doxytag: member="KChatBase::comboBoxItem" ref="7819bcbe55a1eaf8695ed128bb54b185" args="(const QString &amp;name) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString KChatBase::comboBoxItem           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Replace to customise the combo box. 
<p>
Default: i18n("Send to 1).arg(name) <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The name of the player </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The string as it will be shown in the combo box </dd></dl>

<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00407">407</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="67cd8c0b75d8b833affe947247c6e89a"></a><!-- doxytag: member="KChatBase::layoutMessage" ref="67cd8c0b75d8b833affe947247c6e89a" args="(const QString &amp;fromName, const QString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QListBoxItem * KChatBase::layoutMessage           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>fromName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create a QListBoxItem for this message. 
<p>
This function is not yet written usefully - currently just a QListBoxTex object is created which shows the message in this format: "fromName: text". This should fit most peoples needs but needs further improvements. 
<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00360">360</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="de8b61ac8cf004d1f520587afec51cb1"></a><!-- doxytag: member="KChatBase::layoutSystemMessage" ref="de8b61ac8cf004d1f520587afec51cb1" args="(const QString &amp;fromName, const QString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QListBoxItem * KChatBase::layoutSystemMessage           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>fromName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create a QListBoxItem for this message. 
<p>
This does the same as layoutMessage but generates a system message. You might want to use such a message to display e.g. status information from your game.<p>
The default implementation just prepends "--- ". 
<p>Definition at line <a class="el" href="kchatbase_8cpp-source.html#l00382">382</a> of file <a class="el" href="kchatbase_8cpp-source.html">kchatbase.cpp</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="kchatbase_8h-source.html">kchatbase.h</a><li><a class="el" href="kchatbase_8cpp-source.html">kchatbase.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="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">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>