summaryrefslogtreecommitdiffstats
path: root/kmail/kmreaderwin.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/kmreaderwin.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmreaderwin.h')
-rw-r--r--kmail/kmreaderwin.h102
1 files changed, 51 insertions, 51 deletions
diff --git a/kmail/kmreaderwin.h b/kmail/kmreaderwin.h
index 2942d77c5..40c4f3a82 100644
--- a/kmail/kmreaderwin.h
+++ b/kmail/kmreaderwin.h
@@ -5,9 +5,9 @@
#ifndef KMREADERWIN_H
#define KMREADERWIN_H
-#include <qwidget.h>
-#include <qtimer.h>
-#include <qstringlist.h>
+#include <tqwidget.h>
+#include <tqtimer.h>
+#include <tqstringlist.h>
#include <kurl.h>
#include <kservice.h>
#include "kmmsgbase.h"
@@ -59,7 +59,7 @@ namespace KMail {
class partNode; // might be removed when KMime is used instead of mimelib
// (khz, 29.11.2001)
-class NewByteArray; // providing operator+ on a QByteArray (khz, 21.06.2002)
+class NewByteArray; // providing operator+ on a TQByteArray (khz, 21.06.2002)
namespace KParts {
struct URLArgs;
@@ -70,11 +70,11 @@ namespace KParts {
used for reading or viewing messages.
*/
-class KMReaderWin: public QWidget, public KMail::Interface::Observer {
+class KMReaderWin: public TQWidget, public KMail::Interface::Observer {
Q_OBJECT
- friend void KMMimePartTree::itemClicked( QListViewItem* item );
- friend void KMMimePartTree::itemRightClicked( QListViewItem* item, const QPoint & );
+ friend void KMMimePartTree::itemClicked( TQListViewItem* item );
+ friend void KMMimePartTree::itemRightClicked( TQListViewItem* item, const TQPoint & );
friend void KMMimePartTree::slotSaveAs();
friend void KMMimePartTree::startDrag();
@@ -82,8 +82,8 @@ class KMReaderWin: public QWidget, public KMail::Interface::Observer {
friend class KMail::KHtmlPartHtmlWriter;
public:
- KMReaderWin( QWidget *parent,
- QWidget *mainWindow,
+ KMReaderWin( TQWidget *parent,
+ TQWidget *mainWindow,
KActionCollection *actionCollection,
const char *name=0,
int f=0 );
@@ -123,16 +123,16 @@ public:
/** Get selected override character encoding.
@return The encoding selected by the user or an empty string if auto-detection
is selected. */
- QString overrideEncoding() const { return mOverrideEncoding; }
+ TQString overrideEncoding() const { return mOverrideEncoding; }
/** Set the override character encoding. */
- void setOverrideEncoding( const QString & encoding );
+ void setOverrideEncoding( const TQString & encoding );
- void setPrintFont( const QFont& font );
+ void setPrintFont( const TQFont& font );
/** Get codec corresponding to the currently selected override character encoding.
@return The override codec or 0 if auto-detection is selected. */
- const QTextCodec * overrideCodec() const;
+ const TQTextCodec * overrideCodec() const;
/** Set printing mode */
virtual void setPrinting(bool enable) { mPrinting = enable; }
@@ -144,7 +144,7 @@ public:
/** Instead of settings a message to be shown sets a message part
to be shown */
void setMsgPart( KMMessagePart* aMsgPart, bool aHTML,
- const QString& aFileName, const QString& pname );
+ const TQString& aFileName, const TQString& pname );
void setMsgPart( partNode * node );
@@ -156,7 +156,7 @@ public:
normally no need to call this function directly,
since correct value is set automatically in
parseMsg(KMMessage* aMsg, bool onlyProcessHeaders). */
- void setIdOfLastViewedMessage( const QString & msgId )
+ void setIdOfLastViewedMessage( const TQString & msgId )
{ mIdOfLastViewedMessage = msgId; }
/** Clear the reader and discard the current message. */
@@ -173,7 +173,7 @@ public:
virtual void printMsg(void);
/** Return selected text */
- QString copyText();
+ TQString copyText();
/** Get/set auto-delete msg flag. */
bool autoDelete(void) const { return mAutoDelete; }
@@ -194,10 +194,10 @@ public:
bool htmlLoadExternal();
/** Returns the MD5 hash for the list of new features */
- static QString newFeaturesMD5();
+ static TQString newFeaturesMD5();
/** Display a generic HTML splash page instead of a message */
- void displaySplashPage( const QString &info );
+ void displaySplashPage( const TQString &info );
/** Display the about page instead of a message */
void displayAboutPage();
@@ -265,24 +265,24 @@ public:
/** Returns the current message or 0 if none. */
KMMessage* message(KMFolder** folder=0) const;
- void openAttachment( int id, const QString & name );
+ void openAttachment( int id, const TQString & name );
void emitUrlClicked( const KURL & url, int button ) {
emit urlClicked( url, button );
}
- void emitPopupMenu( const KURL & url, const QPoint & p ) {
+ void emitPopupMenu( const KURL & url, const TQPoint & p ) {
if ( message() )
emit popupMenu( *message(), url, p );
}
- void showAttachmentPopup( int id, const QString & name, const QPoint & p );
+ void showAttachmentPopup( int id, const TQString & name, const TQPoint & p );
/** Set the serial number of the message this reader window is currently
* waiting for. Used to discard updates for already deselected messages. */
void setWaitingForSerNum( unsigned long serNum ) { mWaitingForSerNum = serNum; }
- QWidget* mainWindow() { return mMainWindow; }
+ TQWidget* mainWindow() { return mMainWindow; }
/** Returns wether the message should be decryted. */
bool decryptMessage() const;
@@ -308,7 +308,7 @@ signals:
void replaceMsgByUnencryptedVersion();
/** The user presses the right mouse button. 'url' may be 0. */
- void popupMenu(KMMessage &msg, const KURL &url, const QPoint& mousePos);
+ void popupMenu(KMMessage &msg, const KURL &url, const TQPoint& mousePos);
/** The user has clicked onto an URL that is no attachment. */
void urlClicked(const KURL &url, int button);
@@ -341,10 +341,10 @@ public slots:
void slotUrlOpen(const KURL &url, const KParts::URLArgs &args);
/** The mouse has moved on or off an URL. */
- void slotUrlOn(const QString &url);
+ void slotUrlOn(const TQString &url);
/** The user presses the right mouse button on an URL. */
- void slotUrlPopup(const QString &, const QPoint& mousePos);
+ void slotUrlPopup(const TQString &, const TQPoint& mousePos);
/** The user selected "Find" from the menu. */
void slotFind();
@@ -378,7 +378,7 @@ public slots:
void slotMessageArrived( KMMessage *msg );
/** start IM Chat with addressee */
void slotIMChat();
- void contactStatusChanged( const QString &uid);
+ void contactStatusChanged( const TQString &uid);
void slotLevelQuote( int l );
void slotTouchMessage();
@@ -404,21 +404,21 @@ protected slots:
void slotHideAttachments();
/** Some attachment operations. */
- void slotAtmView( int id, const QString& name );
+ void slotAtmView( int id, const TQString& name );
void slotDelayedResize();
void slotHandleAttachment( int );
protected:
/** reimplemented in order to update the frame width in case of a changed
GUI style */
- void styleChange( QStyle& oldStyle );
+ void styleChange( TQStyle& oldStyle );
/** Set the width of the frame to a reasonable value for the current GUI
style */
void setStyleDependantFrameWidth();
/** Watch for palette changes */
- virtual bool event(QEvent *e);
+ virtual bool event(TQEvent *e);
/** Calculate the pixel size */
int pointsToPixel(int pointSize) const;
@@ -432,19 +432,19 @@ protected:
/** Creates a nice mail header depending on the current selected
header style. */
- QString writeMsgHeader(KMMessage* aMsg, bool hasVCard=false, bool topLevel=false);
+ TQString writeMsgHeader(KMMessage* aMsg, bool hasVCard=false, bool topLevel=false);
/** Writes the given message part to a temporary file and returns the
- name of this file or QString::null if writing failed.
+ name of this file or TQString::null if writing failed.
*/
- QString writeMessagePartToTempFile( KMMessagePart* msgPart, int partNumber );
+ TQString writeMessagePartToTempFile( KMMessagePart* msgPart, int partNumber );
/**
Creates a temporary dir for saving attachments, etc.
Will be automatically deleted when another message is viewed.
@param param Optional part of the directory name.
*/
- QString createTempDir( const QString &param = QString() );
+ TQString createTempDir( const TQString &param = TQString() );
/** show window containing infos about a vCard. */
void showVCard(KMMessagePart *msgPart);
@@ -453,14 +453,14 @@ protected:
virtual void initHtmlWidget(void);
/** Some necessary event handling. */
- virtual void closeEvent(QCloseEvent *);
- virtual void resizeEvent(QResizeEvent *);
+ virtual void closeEvent(TQCloseEvent *);
+ virtual void resizeEvent(TQResizeEvent *);
/** Cleanup the attachment temp files */
virtual void removeTempFiles();
/** Event filter */
- bool eventFilter( QObject *obj, QEvent *ev );
+ bool eventFilter( TQObject *obj, TQEvent *ev );
private slots:
void slotSetEncoding();
@@ -478,16 +478,16 @@ private:
/** Read override codec from configuration */
void readGlobalOverrideCodec();
- QString renderAttachments( partNode *node, const QColor &bgColor );
+ TQString renderAttachments( partNode *node, const TQColor &bgColor );
private:
bool mHtmlMail, mHtmlLoadExternal, mHtmlOverride, mHtmlLoadExtOverride;
int mAtmCurrent;
- QString mAtmCurrentName;
+ TQString mAtmCurrentName;
KMMessage *mMessage;
// widgets:
- QSplitter * mSplitter;
- QHBox *mBox;
+ TQSplitter * mSplitter;
+ TQHBox *mBox;
KMail::HtmlStatusBar *mColorBar;
KMMimePartTree* mMimePartTree;
KHTMLPart *mViewer;
@@ -497,13 +497,13 @@ private:
const KMail::HeaderStyle * mHeaderStyle;
bool mAutoDelete;
/** where did the user save the attachment last time */
- QString mSaveAttachDir;
+ TQString mSaveAttachDir;
static const int delay;
- QTimer mUpdateReaderWinTimer;
- QTimer mResizeTimer;
- QTimer mDelayedMarkTimer;
- QString mOverrideEncoding;
- QString mOldGlobalOverrideEncoding; // used to detect changes of the global override character encoding
+ TQTimer mUpdateReaderWinTimer;
+ TQTimer mResizeTimer;
+ TQTimer mDelayedMarkTimer;
+ TQString mOverrideEncoding;
+ TQString mOldGlobalOverrideEncoding; // used to detect changes of the global override character encoding
bool mMsgDisplay;
bool mNoMDNsWhenEncrypted;
unsigned long mLastSerNum;
@@ -514,14 +514,14 @@ private:
bool mPrinting;
bool mShowColorbar;
//bool mShowCompleteMessage;
- QStringList mTempFiles;
- QStringList mTempDirs;
+ TQStringList mTempFiles;
+ TQStringList mTempDirs;
int mMimeTreeMode;
bool mMimeTreeAtBottom;
- QValueList<int> mSplitterSizes;
+ TQValueList<int> mSplitterSizes;
partNode* mRootNode;
- QString mIdOfLastViewedMessage;
- QWidget *mMainWindow;
+ TQString mIdOfLastViewedMessage;
+ TQWidget *mMainWindow;
KActionCollection *mActionCollection;
KAction *mMailToComposeAction, *mMailToReplyAction, *mMailToForwardAction,
*mAddAddrBookAction, *mOpenAddrBookAction, *mCopyAction, *mCopyURLAction,