summaryrefslogtreecommitdiffstats
path: root/ksirc/toplevel.h
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/toplevel.h')
-rw-r--r--ksirc/toplevel.h116
1 files changed, 58 insertions, 58 deletions
diff --git a/ksirc/toplevel.h b/ksirc/toplevel.h
index ef8d4a57..8c64b150 100644
--- a/ksirc/toplevel.h
+++ b/ksirc/toplevel.h
@@ -1,7 +1,7 @@
#ifndef KSIRCTOPLEVEL_H
#define KSIRCTOPLEVEL_H
-#include <qdatetime.h>
+#include <tqdatetime.h>
#include <kmainwindow.h>
#include "ahistlineedit.h"
@@ -54,18 +54,18 @@ public:
* ready processing. This is a single line, and it NOT \n
* terminated.
*/
- virtual void sirc_receive(QString str, bool broadcast = false);
+ virtual void sirc_receive(TQString str, bool broadcast = false);
/**
* Reimplement the ksircmessagereceiver control messages. These
* are parsed and dealt with quickly.
*/
- virtual void control_message(int, QString);
+ virtual void control_message(int, TQString);
- QWidget *lineEdit() const { return linee; }
+ TQWidget *lineEdit() const { return linee; }
- void setTopic( const QString &topic );
- QString topic() const { return m_topic; }
+ void setTopic( const TQString &topic );
+ TQString topic() const { return m_topic; }
/**
* This returns the current channel information for a toplevel
@@ -78,10 +78,10 @@ signals:
* output a new line. The line is correctly
* linefeed terminated, etc.
*/
- void outputLine(QCString);
+ void outputLine(TQCString);
/**
* open a new toplevel widget with for the
- * channel/user QString.
+ * channel/user TQString.
*/
void open_toplevel(const KSircChannel &);
/**
@@ -89,18 +89,18 @@ signals:
* this window is closing. Refrence to outselves
* is include.
*/
- void closing(KSircTopLevel *, QString channel);
+ void closing(KSircTopLevel *, TQString channel);
/**
* emitted when the user typed /quit, will disconnect from this
* server and close all toplevels belonging to it.
*/
- void requestQuit( const QCString& command );
+ void requestQuit( const TQCString& command );
/**
* emitted when we change channel name
* on the fly. old is the old channel name, new
* is the new one.
*/
- void changeChannel(const QString &oldName, const QString &newName);
+ void changeChannel(const TQString &oldName, const TQString &newName);
/**
* emitted to say that KSircTopLevel
* (this) is now the window with focus. Used by
@@ -115,14 +115,14 @@ signals:
/**
* Emitted when a new message appeared in the irc window
*/
- void changed(bool, QString);
+ void changed(bool, TQString);
public slots:
/**
* When enter is pressed, we read the SLE and output the results
* after processing via emitting outputLine.
*/
- virtual void sirc_line_return(const QString &s);
+ virtual void sirc_line_return(const TQString &s);
/**
* Clears the message window
@@ -134,7 +134,7 @@ public slots:
* the widget that just got focus. Used in MDI modes
* where the toplevel doesn't get focus in/out events.
*/
- void focusChange(QWidget *w);
+ void focusChange(TQWidget *w);
protected slots:
/**
@@ -236,30 +236,30 @@ protected slots:
* On a midle mouse button press to the nick list we open
* a query window and paste the text there
*/
- void pasteToNickList(int button, QListBoxItem *item, const QPoint &pos);
+ void pasteToNickList(int button, TQListBoxItem *item, const TQPoint &pos);
/**
* dnd paste to nick list
*/
- void dndTextToNickList(const QListBoxItem *itom, const QString& text);
+ void dndTextToNickList(const TQListBoxItem *itom, const TQString& text);
/**
* open a toplevel on double click
*/
- void openQueryFromNick(const QString &);
+ void openQueryFromNick(const TQString &);
/**
* Some text was dropped on the listbox
*/
- void slotTextDropped(const QString&);
+ void slotTextDropped(const TQString&);
/**
* Calls slotDccURLs with the current nick we're talking to
*/
- void slotDropURLs(const QStringList& urls);
+ void slotDropURLs(const TQStringList& urls);
/**
* Sends the list of urls to nick
*/
- void slotDccURLs(const QStringList& urls, const QString& nick );
+ void slotDccURLs(const TQStringList& urls, const TQString& nick );
/**
* Re-apply color settings.
@@ -275,7 +275,7 @@ protected slots:
* Makes a beep when a change happens (if the user has this on)
* the bool is TRUE if changed line contained user's nick
*/
- void doChange(bool, QString);
+ void doChange(bool, TQString);
/**
* show the ticker window
@@ -298,32 +298,32 @@ protected:
/**
* Make sure to update colors correctly.
*/
- virtual bool event( QEvent *e);
+ virtual bool event( TQEvent *e);
/**
* Redfine closeEvent to emit closing and delete itself.
*/
- virtual void closeEvent(QCloseEvent *);
+ virtual void closeEvent(TQCloseEvent *);
/**
* Searches through the nick list and finds the nick with the best match.
* which, arg2, selects nicks other than the first shouldarg1 match more
* than 1 nick.
*/
- virtual QString findNick(QString, uint which = 0);
+ virtual TQString findNick(TQString, uint which = 0);
/**
* remove a nick from the prefered in nick completion list
*/
- virtual void removeCompleteNick(const QString &);
+ virtual void removeCompleteNick(const TQString &);
/**
* Adds a nick to the list of nicks to prefer in nick completion
* or moves it to the top of the list if it was already there
*/
- virtual void addCompleteNick(const QString &);
+ virtual void addCompleteNick(const TQString &);
/**
* Changes a nick in the completion list if it has been listed,
* otherwise does nothing
*/
- virtual void changeCompleteNick(const QString &, const QString &);
+ virtual void changeCompleteNick(const TQString &, const TQString &);
virtual void setupCommandMenu();
@@ -344,33 +344,33 @@ protected:
bool isSpecialWindow() const;
private slots:
- void setTopicIntern( const QString &topic );
+ void setTopicIntern( const TQString &topic );
void insertText();
- void setMode(QString, int, QString currentNick=0);
+ void setMode(TQString, int, TQString currentNick=0);
void setEncoding();
void returnPressed();
void toggleTopic();
private:
- void outputUnicodeLine( const QString &message );
+ void outputUnicodeLine( const TQString &message );
bool atBottom();
bool continued_line;
charSelector *selector;
chanButtons *channelButtons;
- QSplitter *pan;
- QVBox *nicks_box;
- QVBox *top;
+ TQSplitter *pan;
+ TQVBox *nicks_box;
+ TQVBox *top;
KMenuBar *kmenu;
- QLabel *lag;
+ TQLabel *lag;
enum {PING = 10, TOPIC = 20};
KSircView *mainw;
aHistLineEdit *linee;
aListBox *nicks;
- //QString m_currentNick;
+ //TQString m_currentNick;
//KSircProcess *proc;
@@ -379,44 +379,44 @@ private:
struct BufferedLine
{
BufferedLine() { wasBroadcast = false; }
- BufferedLine( const QString &msg, bool broadc )
+ BufferedLine( const TQString &msg, bool broadc )
{ message = msg; wasBroadcast = broadc; }
bool operator==( const BufferedLine &other )
{ return message == other.message &&
wasBroadcast == other.wasBroadcast; }
- QString message;
+ TQString message;
bool wasBroadcast;
};
bool Buffer;
- QValueList<BufferedLine> LineBuffer;
+ TQValueList<BufferedLine> LineBuffer;
// QPopupMenu's used for the menubar
- QPopupMenu *file, *edit, *command;
+ TQPopupMenu *file, *edit, *command;
- bool parse_input(const QString &string, QString &plainText);
- void sirc_write(const QString &str);
+ bool parse_input(const TQString &string, TQString &plainText);
+ void sirc_write(const TQString &str);
- QPopupMenu *user_controls;
- static QPtrList<UserControlMenu> *user_menu;
+ TQPopupMenu *user_controls;
+ static TQPtrList<UserControlMenu> *user_menu;
int opami;
- QAccel *accel;
+ TQAccel *accel;
/**
* The channel name that we belong too.
*/
- //QString channel_name;
+ //TQString channel_name;
/**
* Caption at the top of the window.
*/
- QString caption;
+ TQString caption;
/**
* Current topic for the channel
*/
- QString m_topic;
+ TQString m_topic;
/**
* Does the window have focus? 1 when yes, 0 when no.
@@ -433,7 +433,7 @@ private:
* tab_nick holds the last nick found so when a blank tab is pressed
* we pop the last niick and ": " up.
*/
- QString tab_saved, tab_nick;
+ TQString tab_saved, tab_nick;
int tab_start, tab_end;
// Ticker specific variables.
@@ -447,20 +447,20 @@ private:
* Size and position of the main window. Main window is returns this
* this position when it reappears.
*/
- QRect myrect;
+ TQRect myrect;
/**
* Position of the main window
*/
- QPoint mypoint;
+ TQPoint mypoint;
/**
* Ticker's size and geometry
*/
- QRect tickerrect;
+ TQRect tickerrect;
/**
* Tickers position
*/
- QPoint tickerpoint;
- QSize tickersize;
+ TQPoint tickerpoint;
+ TQSize tickersize;
/**
* Do we have a kick window open?
* Remember not to open 2
@@ -475,9 +475,9 @@ private:
ChannelParser *ChanParser;
/**
- * QSize maintains size information in case it changes somehow
+ * TQSize maintains size information in case it changes somehow
*/
- QSize current_size;
+ TQSize current_size;
/**
* ID of the timestamp menu item, to use in (un)checking it from slot
@@ -508,13 +508,13 @@ private:
* List of nicks already used in nick completion to give them
* higher priority
*/
- QStringList completeNicks;
+ TQStringList completeNicks;
/**
* The time of the last beep to prevent your soundcard from detonating
* in high traffic channels
*/
- QTime lastBeep;
+ TQTime lastBeep;
KSircTopic *ksTopic;
@@ -522,7 +522,7 @@ private:
KSelectAction *encodingAction;
- static QStringList cmd_menu;
+ static TQStringList cmd_menu;
bool m_gotMsgWithoutFocus;