summaryrefslogtreecommitdiffstats
path: root/knode/articlewidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'knode/articlewidget.h')
-rw-r--r--knode/articlewidget.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/knode/articlewidget.h b/knode/articlewidget.h
index d2292619..66e4106e 100644
--- a/knode/articlewidget.h
+++ b/knode/articlewidget.h
@@ -14,9 +14,9 @@
#ifndef KNODE_ARTICLEWIDGET_H
#define KNODE_ARTICLEWIDGET_H
-#include <qmap.h>
-#include <qvaluelist.h>
-#include <qwidget.h>
+#include <tqmap.h>
+#include <tqvaluelist.h>
+#include <tqwidget.h>
#include <kurl.h>
@@ -50,13 +50,13 @@ class CSSHelper;
/**
Widget to display a news article
*/
-class ArticleWidget : public QWidget, public KNJobConsumer {
+class ArticleWidget : public TQWidget, public KNJobConsumer {
Q_OBJECT
public:
/// Construct a new article widget
- ArticleWidget( QWidget *parent,
+ ArticleWidget( TQWidget *parent,
KXMLGUIClient *guiClient,
KActionCollection *actionCollection,
const char *name = 0 );
@@ -83,7 +83,7 @@ class ArticleWidget : public QWidget, public KNJobConsumer {
/// notify all instances that the given article has changed
static void articleChanged( KNArticle *article );
/// notify all instances about an error during loading the given article
- static void articleLoadError( KNArticle *article, const QString &error );
+ static void articleLoadError( KNArticle *article, const TQString &error );
/// notify all instances that the given collection has been removed
static void collectionRemoved( KNArticleCollection *coll );
/// cleanup all instances
@@ -99,16 +99,16 @@ class ArticleWidget : public QWidget, public KNJobConsumer {
void scrollNext();
signals:
- void focusChanged( QFocusEvent* );
- void focusChangeRequest( QWidget* );
+ void focusChanged( TQFocusEvent* );
+ void focusChangeRequest( TQWidget* );
protected:
/// process download jobs for view source action
void processJob( KNJobData *j );
- virtual void focusInEvent( QFocusEvent *e );
- virtual void focusOutEvent( QFocusEvent *e );
- virtual bool eventFilter( QObject *o, QEvent *e );
+ virtual void focusInEvent( TQFocusEvent *e );
+ virtual void focusOutEvent( TQFocusEvent *e );
+ virtual bool eventFilter( TQObject *o, TQEvent *e );
private:
void initActions();
@@ -123,18 +123,18 @@ class ArticleWidget : public QWidget, public KNJobConsumer {
/// displays the current article or clears the view if no article is set
void displayArticle();
/// displays the given error message in the viewer
- void displayErrorMessage( const QString &msg );
+ void displayErrorMessage( const TQString &msg );
/// display the message header (should be replaced by KMail's HeaderStyle class)
void displayHeader();
/** displays the given text block, including quote and signature handling
* @param lines A list of lines to display.
*/
- void displayBodyBlock( const QStringList &lines );
+ void displayBodyBlock( const TQStringList &lines );
/// displays a signature block header
- QString displaySigHeader( Kpgp::Block* block );
+ TQString displaySigHeader( Kpgp::Block* block );
/// displays a signature footer
- void displaySigFooter( const QString &signClass );
+ void displaySigFooter( const TQString &signClass );
/// displays the given attachment
void displayAttachment( KMime::Content *att, int partNum );
@@ -146,18 +146,18 @@ class ArticleWidget : public QWidget, public KNJobConsumer {
AllowROT13 = 4
};
/// convert the given string into an HTML string
- QString toHtmlString( const QString &line, int flags = ParseURL );
+ TQString toHtmlString( const TQString &line, int flags = ParseURL );
/// convert the given image into a data:/ URL
- static QString imgToDataUrl( const QImage &image, const char* fmt );
+ static TQString imgToDataUrl( const TQImage &image, const char* fmt );
/** calculates the quoting depth of the given line
* @returns -1 if no quoting was found, the quoting level otherwise
*/
- static int quotingDepth( const QString &line, const QString &quoteChars );
+ static int quotingDepth( const TQString &line, const TQString &quoteChars );
/// checks wether the given attachment can be shown inline
bool inlinePossible( KMime::Content *c );
/// checks if the given charset is supported
- bool canDecodeText( const QCString &charset ) const;
+ bool canDecodeText( const TQCString &charset ) const;
/// regenerated viewer content without changing scrollbar position
void updateContents();
@@ -165,7 +165,7 @@ class ArticleWidget : public QWidget, public KNJobConsumer {
/** stores the given attachment into a temporary file
* @returns the filename the attachment has been stored to
*/
- QString writeAttachmentToTempFile( KMime::Content *att, int partNum );
+ TQString writeAttachmentToTempFile( KMime::Content *att, int partNum );
/// removes all temporary files
void removeTempFiles();
@@ -173,7 +173,7 @@ class ArticleWidget : public QWidget, public KNJobConsumer {
/// called if the user clicked on an URL
void slotURLClicked( const KURL &url, bool forceOpen = false );
/// called if the user RMB clicked on an URL
- void slotURLPopup( const QString &url, const QPoint &point );
+ void slotURLPopup( const TQString &url, const TQPoint &point );
/// mark as read timeout
void slotTimeout();
@@ -201,7 +201,7 @@ class ArticleWidget : public QWidget, public KNJobConsumer {
void slotInlineAttachments();
void slotHideAttachments();
- void slotSetCharset( const QString &charset );
+ void slotSetCharset( const TQString &charset );
void slotSetCharsetKeyboard();
void slotOpenURL();
@@ -218,28 +218,28 @@ class ArticleWidget : public QWidget, public KNJobConsumer {
/// attachments of the current article
KMime::Content::List mAttachments;
/// mapping of temporary file names to part numbers
- QMap<QString, int> mAttachementMap;
+ TQMap<TQString, int> mAttachementMap;
KHTMLPart *mViewer;
CSSHelper *mCSSHelper;
- QStringList mTempDirs, mTempFiles;
+ TQStringList mTempDirs, mTempFiles;
- QString mHeaderStyle;
- QString mAttachmentStyle;
+ TQString mHeaderStyle;
+ TQString mAttachmentStyle;
bool mShowHtml;
bool mRot13;
bool mForceCharset;
- QCString mOverrideCharset;
+ TQCString mOverrideCharset;
/// mark as read timer
- QTimer *mTimer;
+ TQTimer *mTimer;
/// the last RMB clicked URL
KURL mCurrentURL;
/// list of all instances of this class
- static QValueList<ArticleWidget*> mInstances;
+ static TQValueList<ArticleWidget*> mInstances;
KXMLGUIClient *mGuiClient;
KActionCollection *mActionCollection;