summaryrefslogtreecommitdiffstats
path: root/libkdegames/kchatbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkdegames/kchatbase.h')
-rw-r--r--libkdegames/kchatbase.h90
1 files changed, 45 insertions, 45 deletions
diff --git a/libkdegames/kchatbase.h b/libkdegames/kchatbase.h
index 07f786f9..e808dd1d 100644
--- a/libkdegames/kchatbase.h
+++ b/libkdegames/kchatbase.h
@@ -19,9 +19,9 @@
#ifndef __KCHATBASE_H__
#define __KCHATBASE_H__
-#include <qframe.h>
-#include <qstring.h>
-#include <qlistbox.h>
+#include <tqframe.h>
+#include <tqstring.h>
+#include <tqlistbox.h>
#include <kglobalsettings.h>
#include <kdemacros.h>
@@ -33,7 +33,7 @@ class KConfig;
class KChatBaseTextPrivate;
/**
- * A QListBoxText implementation for KChatBase.
+ * A TQListBoxText implementation for KChatBase.
*
* It supports different colors, text fonts, ...
*
@@ -53,12 +53,12 @@ public:
/**
* Constructs a KChatBaseText object with the player and text part
**/
- KChatBaseText(const QString& player, const QString& text);
+ KChatBaseText(const TQString& player, const TQString& text);
/**
* Constructs a KChatBaseText object without player part
**/
- KChatBaseText(const QString& text);
+ KChatBaseText(const TQString& text);
/**
* Destruct a KChatBaseText object.
@@ -72,7 +72,7 @@ public:
* @see setMessage
* @param name The name of the sender (e.g. the player)
**/
- void setName(const QString& name);
+ void setName(const TQString& name);
/**
* Set the text part of a message. A message is usually shown like
@@ -81,33 +81,33 @@ public:
* See also setName
* @param message The message that has been sent
**/
- void setMessage(const QString& message);
+ void setMessage(const TQString& message);
/**
* @return The name part of a message.
* @see setName
**/
- const QString& name() const;
+ const TQString& name() const;
/**
* @return The message text.
* @see setMessage
**/
- const QString& message() const;
+ const TQString& message() const;
/**
* You can set the font of the sender name independently of the message
* itself. This font is used as the "name: " part of the message.
* @return The font that is used for the name
**/
- QFont nameFont() const;
+ TQFont nameFont() const;
/**
* You can set the font of the message independently of the sender name.
* This font is used as the text part of the message.
* @return The font thaz is used for message text
**/
- QFont messageFont() const;
+ TQFont messageFont() const;
/**
* Set the font for the name.
@@ -116,7 +116,7 @@ public:
* don't delete the object. This way there is only one object for a lot
* of messages in memory.
**/
- void setNameFont(const QFont* font);
+ void setNameFont(const TQFont* font);
/**
* Set the font for the message text.
@@ -125,20 +125,20 @@ public:
* don't delete the object! This way there is only one object for a lot
* of messages in memory.
**/
- void setMessageFont(const QFont* font);
+ void setMessageFont(const TQFont* font);
/**
**/
- virtual int width(QListBox* ) const;
+ virtual int width(TQListBox* ) const;
/**
**/
- virtual int height(QListBox* ) const;
+ virtual int height(TQListBox* ) const;
protected:
/**
**/
- virtual void paint(QPainter*);
+ virtual void paint(TQPainter*);
private:
void init();
@@ -191,7 +191,7 @@ public:
* choose where to send messages to (either globally or just to some
* players) will not be added.
**/
- KChatBase(QWidget* parent, bool noComboBox = false);
+ KChatBase(TQWidget* parent, bool noComboBox = false);
/**
* Destruct the KChatBase object
@@ -209,7 +209,7 @@ public:
* string that was set by setFromName or the name of the player
* that was set by setFromPlayer
**/
- virtual const QString& fromName() const = 0;
+ virtual const TQString& fromName() const = 0;
/**
* Adds a new entry in the combo box. The default is "send to all
@@ -222,7 +222,7 @@ public:
* combo box. See nextId
* @return True if successful, otherwise false (e.g. if the id is already used)
**/
- bool addSendingEntry(const QString& text, int id);
+ bool addSendingEntry(const TQString& text, int id);
/**
* Inserts a new entry in the combo box.
@@ -235,14 +235,14 @@ public:
* at the bottom
* @return True if successful, otherwise false (e.g. if the id is already used)
**/
- bool insertSendingEntry(const QString& text, int id, int index = -1);
+ bool insertSendingEntry(const TQString& text, int id, int index = -1);
/**
* This changes a combo box entry.
* @param text The new text of the entry
* @param id The ID of the item to be changed
**/
- void changeSendingEntry(const QString& text, int id);
+ void changeSendingEntry(const TQString& text, int id);
/**
* This selects a combo box entry.
@@ -295,13 +295,13 @@ public:
* Set the font that used used for the name part of a message. See also
* nameFont and setBothFont
**/
- void setNameFont(const QFont& font);
+ void setNameFont(const TQFont& font);
/**
* Set the font that used used for the message part of a message.
* @see messageFont, setBothFont
**/
- void setMessageFont(const QFont& font);
+ void setMessageFont(const TQFont& font);
/**
* This sets both - nameFont and messageFont to font. You
@@ -309,25 +309,25 @@ public:
* these parts of a message.
* @param font A font used for both nameFont and messageFont
**/
- void setBothFont(const QFont& font);
+ void setBothFont(const TQFont& font);
/**
* Same as setNameFont but applies only to system messages.
* @see layoutSystemMessage
**/
- void setSystemNameFont(const QFont& font);
+ void setSystemNameFont(const TQFont& font);
/**
* Same as setMessageFont but applies only to system messages.
* @see layoutSystemMessage
**/
- void setSystemMessageFont(const QFont& font);
+ void setSystemMessageFont(const TQFont& font);
/**
* Same as setBothFont but applies only to system messages.
* @see layoutSystemMessage
**/
- void setSystemBothFont(const QFont& font);
+ void setSystemBothFont(const TQFont& font);
/**
* This font should be used for the name (the "from: " part) of a
@@ -336,7 +336,7 @@ public:
* layoutMessage you should do this yourself.
* @return The font that is used for the name part of the message.
**/
- const QFont& nameFont() const;
+ const TQFont& nameFont() const;
/**
* This font should be used for a message. layoutMessage sets the
@@ -345,19 +345,19 @@ public:
* messageFont() yourself.
* @return The font that is used for a message
**/
- const QFont& messageFont() const;
+ const TQFont& messageFont() const;
/**
* Same as systemNameFont but applies only to system messages.
* @see layoutSystemMessage
**/
- const QFont& systemNameFont() const;
+ const TQFont& systemNameFont() const;
/**
* Same as systemMessageFont but applies only to system messages.
* @see layoutSystemMessage
**/
- const QFont& systemMessageFont() const;
+ const TQFont& systemMessageFont() const;
/**
* Save the configuration of the dialog to a KConfig object. If
@@ -410,7 +410,7 @@ public slots:
* @param fromName The player who sent this message
* @param text The text to be added
**/
- virtual void addMessage(const QString& fromName, const QString& text);
+ virtual void addMessage(const TQString& fromName, const TQString& text);
/**
* This works just like addMessage but adds a system message.
@@ -419,7 +419,7 @@ public slots:
*
* You may wish to use this to display status information from your game.
**/
- virtual void addSystemMessage(const QString& fromName, const QString& text);
+ virtual void addSystemMessage(const TQString& fromName, const TQString& text);
/**
* This member function is mainly internally used to add a message. It
@@ -429,9 +429,9 @@ public slots:
*
* But you may want to replace this in a derived class to create a
* non-default (maybe nicer ;-) ) behaviour
- * @param item The QListBoxItem that is being added
+ * @param item The TQListBoxItem that is being added
**/
- virtual void addItem(const QListBoxItem* item);
+ virtual void addItem(const TQListBoxItem* item);
/**
@@ -449,9 +449,9 @@ public slots:
signals:
/**
* Emitted when the user right-clicks on a list item.
- * @see QListBox::rightButtonClicked
+ * @see TQListBox::rightButtonClicked
**/
- void rightButtonClicked(QListBoxItem*, const QPoint&);
+ void rightButtonClicked(TQListBoxItem*, const TQPoint&);
protected:
/**
@@ -465,7 +465,7 @@ protected:
* Must be implemented in derived classes
* @param text The message to be sent
**/
- virtual void returnPressed(const QString& text) = 0;
+ virtual void returnPressed(const TQString& text) = 0;
/**
* Replace to customise the combo box.
@@ -474,24 +474,24 @@ protected:
* @param name The name of the player
* @return The string as it will be shown in the combo box
**/
- virtual QString comboBoxItem(const QString& name) const;
+ virtual TQString comboBoxItem(const TQString& name) const;
/**
- * Create a QListBoxItem for this message. This function is not yet
+ * Create a TQListBoxItem for this message. 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.
**/
- virtual QListBoxItem* layoutMessage(const QString& fromName, const QString& text);
+ virtual TQListBoxItem* layoutMessage(const TQString& fromName, const TQString& text);
/**
- * Create a QListBoxItem for this message. This does the same as
+ * Create a TQListBoxItem for this message. 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.
*
* The default implementation just prepends "--- ".
**/
- virtual QListBoxItem* layoutSystemMessage(const QString& fromName, const QString& text);
+ virtual TQListBoxItem* layoutSystemMessage(const TQString& fromName, const TQString& text);
private slots:
/**
@@ -499,7 +499,7 @@ private slots:
* Then add the message to the KCompletion object of the KLineEdit
* widget and call returnPressed
**/
- void slotReturnPressed(const QString&);
+ void slotReturnPressed(const TQString&);
private:
void init(bool noComboBox);