kchatbase.cpp
126 painter->drawText(3 + TQFontMetrics(nameFont()).width(name()), fm.ascent() + fm.leading()/2, message());
226 connect(d->mEdit, TQ_SIGNAL(returnPressed(const TQString&)), this, TQ_SLOT(slotReturnPressed(const TQString&)));
277 kdError(11000) << "KChatBase: internal ERROR - local IDs do not match combo box entries!" << endl;
371 message = (TQListBoxItem*)new TQListBoxPixmap(pix, i18n("%1 %2").arg(fromName).arg(text.mid(3)));
402 // connect(d->mEdit, TQ_SIGNAL(returnPressed(const TQString&)), comp, TQ_SLOT(addItem(const TQString&)));
KChatBaseText(const TQString &player, const TQString &text)
Constructs a KChatBaseText object with the player and text part.
Definition: kchatbase.cpp:50
TQFont nameFont() const
You can set the font of the sender name independently of the message itself.
Definition: kchatbase.cpp:92
TQFont messageFont() const
You can set the font of the message independently of the sender name.
Definition: kchatbase.cpp:103
void setMessageFont(const TQFont *font)
Set the font for the message text.
Definition: kchatbase.cpp:117
void setSystemNameFont(const TQFont &font)
Same as setNameFont but applies only to system messages.
Definition: kchatbase.cpp:444
const TQFont & messageFont() const
This font should be used for a message.
Definition: kchatbase.cpp:441
virtual TQListBoxItem * layoutSystemMessage(const TQString &fromName, const TQString &text)
Create a TQListBoxItem for this message.
Definition: kchatbase.cpp:382
void rightButtonClicked(TQListBoxItem *, const TQPoint &)
Emitted when the user right-clicks on a list item.
void setCompletionMode(TDEGlobalSettings::Completion mode)
See KLineEdit::setCompletionMode.
Definition: kchatbase.cpp:417
virtual void addSystemMessage(const TQString &fromName, const TQString &text)
This works just like addMessage but adds a system message.
Definition: kchatbase.cpp:355
void changeSendingEntry(const TQString &text, int id)
This changes a combo box entry.
Definition: kchatbase.cpp:306
void setSystemMessageFont(const TQFont &font)
Same as setMessageFont but applies only to system messages.
Definition: kchatbase.cpp:450
virtual void saveConfig(TDEConfig *conf=0)
Save the configuration of the dialog to a TDEConfig object.
Definition: kchatbase.cpp:468
virtual const TQString & fromName() const =0
const TQFont & systemNameFont() const
Same as systemNameFont but applies only to system messages.
Definition: kchatbase.cpp:462
void setNameFont(const TQFont &font)
Set the font that used used for the name part of a message.
Definition: kchatbase.cpp:420
virtual void readConfig(TDEConfig *conf=0)
Read the configuration from a TDEConfig object.
Definition: kchatbase.cpp:488
virtual TQListBoxItem * layoutMessage(const TQString &fromName, const TQString &text)
Create a TQListBoxItem for this message.
Definition: kchatbase.cpp:360
virtual TQString comboBoxItem(const TQString &name) const
Replace to customise the combo box.
Definition: kchatbase.cpp:407
void setSystemBothFont(const TQFont &font)
Same as setBothFont but applies only to system messages.
Definition: kchatbase.cpp:456
virtual void addMessage(const TQString &fromName, const TQString &text)
Add a text in the listbox.
Definition: kchatbase.cpp:349
bool addSendingEntry(const TQString &text, int id)
Adds a new entry in the combo box.
Definition: kchatbase.cpp:250
void setMessageFont(const TQFont &font)
Set the font that used used for the message part of a message.
Definition: kchatbase.cpp:426
const TQFont & nameFont() const
This font should be used for the name (the "from: " part) of a message.
Definition: kchatbase.cpp:438
bool insertSendingEntry(const TQString &text, int id, int index=-1)
Inserts a new entry in the combo box.
Definition: kchatbase.cpp:259
virtual void returnPressed(const TQString &text)=0
This is called whenever the user pushed return ie wants to send a message.
virtual void addItem(const TQListBoxItem *item)
This member function is mainly internally used to add a message.
Definition: kchatbase.cpp:339
const TQFont & systemMessageFont() const
Same as systemMessageFont but applies only to system messages.
Definition: kchatbase.cpp:465
void removeSendingEntry(int id)
Removes the entry with the ID id from the combo box.
Definition: kchatbase.cpp:296
void setBothFont(const TQFont &font)
This sets both - nameFont and messageFont to font.
Definition: kchatbase.cpp:432
void setMaxItems(int maxItems)
Set the maximum number of items in the list.
Definition: kchatbase.cpp:513