libkdegames/libkdegamesprivate
Go to the documentation of this file.
20 #ifndef __KCHATBASE_H__
21 #define __KCHATBASE_H__
23 #include <QtGui/QFrame>
25 #include <kglobalsettings.h>
30 class KChatBasePrivate;
85 bool noComboBox =
false);
103 virtual QString fromName()
const = 0;
116 bool addSendingEntry(
const QString& text,
int id);
129 bool insertSendingEntry(
const QString& text,
int id,
int index = -1);
136 void changeSendingEntry(
const QString& text,
int id);
142 void setSendingEntry(
int id);
150 void removeSendingEntry(
int id);
159 int sendingEntry()
const;
164 int findIndex(
int id)
const;
178 virtual bool acceptMessage()
const;
183 void setCompletionMode(KGlobalSettings::Completion mode);
189 void setNameFont(
const QFont& font);
195 void setMessageFont(
const QFont& font);
203 void setBothFont(
const QFont& font);
209 void setSystemNameFont(
const QFont& font);
215 void setSystemMessageFont(
const QFont& font);
221 void setSystemBothFont(
const QFont& font);
230 QFont nameFont()
const;
239 QFont messageFont()
const;
245 QFont systemNameFont()
const;
251 QFont systemMessageFont()
const;
262 virtual void saveConfig(KConfig* conf = 0);
269 virtual void readConfig(KConfig* conf = 0);
278 void setMaxItems(
int maxItems);
289 int maxItems()
const;
306 virtual void addMessage(
const QString& fromName,
const QString& text);
315 virtual void addSystemMessage(
const QString& fromName,
const QString& text);
327 void setAcceptMessage(
bool a);
341 virtual void returnPressed(
const QString& text) = 0;
365 void slotReturnPressed(
const QString&);
371 virtual void customMenuHandler(
const QPoint &pos);
#define KDEGAMESPRIVATE_EXPORT
The base class for chat widgets.
A delegate (see the Qt Model/View module for details) to paint the lines of the KChatBase list model ...
The model used to store messages displayed in the chat dialog messages list.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:50 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.