diff options
Diffstat (limited to 'konversation/src/chatwindow.h')
-rw-r--r-- | konversation/src/chatwindow.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/konversation/src/chatwindow.h b/konversation/src/chatwindow.h index 55c0efc..b063970 100644 --- a/konversation/src/chatwindow.h +++ b/konversation/src/chatwindow.h @@ -16,8 +16,8 @@ #include "identity.h" #include "common.h" -#include <qvbox.h> -#include <qfile.h> +#include <tqvbox.h> +#include <tqfile.h> class IRCView; @@ -29,7 +29,7 @@ class ChatWindow : public QVBox Q_OBJECT public: - explicit ChatWindow(QWidget* parent); + explicit ChatWindow(TQWidget* parent); ~ChatWindow(); enum WindowType @@ -67,23 +67,23 @@ class ChatWindow : public QVBox IRCView* getTextView() const; void setLog(bool activate); - QString getName(); + TQString getName(); void setType(WindowType newType); WindowType getType(); - virtual void append(const QString& nickname,const QString& message); - virtual void appendRaw(const QString& message, bool suppressTimestamps=false); - virtual void appendQuery(const QString& nickname,const QString& message, bool inChannel = false); - virtual void appendAction(const QString& nickname,const QString& message); - virtual void appendServerMessage(const QString& type,const QString& message, bool parseURL = true); - virtual void appendCommandMessage(const QString& command, const QString& message, bool important = true, + virtual void append(const TQString& nickname,const TQString& message); + virtual void appendRaw(const TQString& message, bool suppressTimestamps=false); + virtual void appendQuery(const TQString& nickname,const TQString& message, bool inChannel = false); + virtual void appendAction(const TQString& nickname,const TQString& message); + virtual void appendServerMessage(const TQString& type,const TQString& message, bool parseURL = true); + virtual void appendCommandMessage(const TQString& command, const TQString& message, bool important = true, bool parseURL = true, bool self = false); - virtual void appendBacklogMessage(const QString& firstColumn,const QString& message); + virtual void appendBacklogMessage(const TQString& firstColumn,const TQString& message); - QWidget* parentWidget; + TQWidget* parentWidget; - virtual QString getTextInLine(); + virtual TQString getTextInLine(); /** Clean up and close this tab. Return false if you want to cancel the close. */ virtual bool closeYourself(bool askForConfirmation = true); /** Reimplement this to return true in all classes that /can/ become front view. @@ -96,13 +96,13 @@ class ChatWindow : public QVBox virtual bool notificationsEnabled() { return m_notificationsEnabled; } - virtual bool eventFilter(QObject* watched, QEvent* e); + virtual bool eventFilter(TQObject* watched, TQEvent* e); - QString logFileName() { return logfile.name(); } + TQString logFileName() { return logfile.name(); } - virtual void setChannelEncoding(const QString& /* encoding */) {} - virtual QString getChannelEncoding() { return QString(); } - virtual QString getChannelEncodingDefaultDesc() { return QString(); } + virtual void setChannelEncoding(const TQString& /* encoding */) {} + virtual TQString getChannelEncoding() { return TQString(); } + virtual TQString getChannelEncodingDefaultDesc() { return TQString(); } bool isChannelEncodingSupported() const; /** Force updateInfo(info) to be emitted. @@ -121,18 +121,18 @@ class ChatWindow : public QVBox virtual bool areIRCColorsSupported() {return false; } Konversation::TabNotifyType currentTabNotification() { return m_currentTabNotify; } - QColor highlightColor(); + TQColor highlightColor(); signals: - void nameChanged(ChatWindow* view, const QString& newName); + void nameChanged(ChatWindow* view, const TQString& newName); //void online(ChatWindow* myself, bool state); /** Emit this signal when you want to change the status bar text for this tab. * It is ignored if this tab isn't focused. */ - void updateInfo(const QString &info); + void updateInfo(const TQString &info); void updateTabNotification(ChatWindow* chatWin, const Konversation::TabNotifyType& type); - void setStatusBarTempText(const QString&); + void setStatusBarTempText(const TQString&); void clearStatusBarTempText(); void closing(ChatWindow* myself); @@ -140,7 +140,7 @@ class ChatWindow : public QVBox public slots: void updateAppearance(); - void logText(const QString& text); + void logText(const TQString& text); /** * This is called when a chat window gains focus. @@ -150,7 +150,7 @@ class ChatWindow : public QVBox */ void adjustFocus(); - virtual void appendInputText(const QString&, bool fromCursor); + virtual void appendInputText(const TQString&, bool fromCursor); virtual void indicateAway(bool away); @@ -169,12 +169,12 @@ class ChatWindow : public QVBox * The name is the string that is shown in the tab. * @param newName The name to show in the tab */ - virtual void setName(const QString& newName); + virtual void setName(const TQString& newName); /** Called from adjustFocus */ virtual void childAdjustFocus() = 0; - void setLogfileName(const QString& name); + void setLogfileName(const TQString& name); void setChannelEncodingSupported(bool enabled); void cdIntoLogPath(); @@ -183,17 +183,17 @@ class ChatWindow : public QVBox bool log; bool firstLog; - QString name; - QString logName; + TQString name; + TQString logName; - QFont font; + TQFont font; IRCView* textView; /** A pointer to the server this chatwindow is part of. * Not always non-null - e.g. for konsolepanel */ Server* m_server; - QFile logfile; + TQFile logfile; WindowType type; bool m_notificationsEnabled; |