summaryrefslogtreecommitdiffstats
path: root/knode/kncomposer.h
diff options
context:
space:
mode:
Diffstat (limited to 'knode/kncomposer.h')
-rw-r--r--knode/kncomposer.h126
1 files changed, 63 insertions, 63 deletions
diff --git a/knode/kncomposer.h b/knode/kncomposer.h
index 12c2150f8..a44397b81 100644
--- a/knode/kncomposer.h
+++ b/knode/kncomposer.h
@@ -20,8 +20,8 @@
#include <kmainwindow.h>
#include <kdialogbase.h>
#include <keditcl.h>
-#include <qlineedit.h>
-#include <qregexp.h>
+#include <tqlineedit.h>
+#include <tqregexp.h>
#include <kdeversion.h>
#include <keditcl.h>
@@ -52,7 +52,7 @@ class KNComposer : public KMainWindow , virtual public KNodeComposerIface {
// unwraped == original, not rewraped text
// firstEdit==true: place the cursor at the end of the article
- KNComposer(KNLocalArticle *a, const QString &text=QString::null, const QString &sig=QString::null, const QString &unwraped=QString::null, bool firstEdit=false, bool dislikesCopies=false, bool createCopy=false);
+ KNComposer(KNLocalArticle *a, const TQString &text=TQString::null, const TQString &sig=TQString::null, const TQString &unwraped=TQString::null, bool firstEdit=false, bool dislikesCopies=false, bool createCopy=false);
~KNComposer();
void setConfig(bool onlyFonts);
void setMessageMode(MessageMode mode);
@@ -63,21 +63,21 @@ class KNComposer : public KMainWindow , virtual public KNodeComposerIface {
KNLocalArticle* article()const { return a_rticle; }
bool applyChanges();
- void closeEvent(QCloseEvent *e);
+ void closeEvent(TQCloseEvent *e);
//set data from the given article
- void initData(const QString &text);
+ void initData(const TQString &text);
// inserts at cursor position if clear is false, replaces content otherwise
// puts the file content into a box if box==true
// "file" is already open for reading
- void insertFile(QFile *file, bool clear=false, bool box=false, QString boxTitle=QString::null);
+ void insertFile(TQFile *file, bool clear=false, bool box=false, TQString boxTitle=TQString::null);
// ask for a filename, handle network urls
void insertFile(bool clear=false, bool box=false);
- QPopupMenu * popupMenu( const QString& name );
- int listOfResultOfCheckWord( const QStringList & lst , const QString & selectWord);
+ TQPopupMenu * popupMenu( const TQString& name );
+ int listOfResultOfCheckWord( const TQStringList & lst , const TQString & selectWord);
//internal classes
class ComposerView;
@@ -88,13 +88,13 @@ class KNComposer : public KMainWindow , virtual public KNodeComposerIface {
//GUI
ComposerView *v_iew;
- QPopupMenu *a_ttPopup;
+ TQPopupMenu *a_ttPopup;
//Data
composerResult r_esult;
KNLocalArticle *a_rticle;
- QString s_ignature, u_nwraped;
- QCString c_harset;
+ TQString s_ignature, u_nwraped;
+ TQCString c_harset;
MessageMode m_ode;
bool n_eeds8Bit, // false: fall back to us-ascii
v_alidated, // hasValidData was run and found no problems, n_eeds8Bit is valid
@@ -108,8 +108,8 @@ class KNComposer : public KMainWindow , virtual public KNodeComposerIface {
SpellingFilter* mSpellingFilter;
//Attachments
- QValueList<KNAttachment*> mDeletedAttachments;
- QPtrList<KAction> m_listAction;
+ TQValueList<KNAttachment*> mDeletedAttachments;
+ TQPtrList<KAction> m_listAction;
bool a_ttChanged;
//------------------------------ <Actions> -----------------------------
@@ -137,7 +137,7 @@ class KNComposer : public KMainWindow , virtual public KNodeComposerIface {
void slotAttachmentProperties();
void slotToggleDoPost();
void slotToggleDoMail();
- void slotSetCharset(const QString &s);
+ void slotSetCharset(const TQString &s);
void slotSetCharsetKeyboard();
void slotToggleWordWrap();
void slotUndoRewrap();
@@ -153,8 +153,8 @@ class KNComposer : public KMainWindow , virtual public KNodeComposerIface {
//------------------------------ </Actions> ----------------------------
// GUI
- void slotSubjectChanged(const QString &t);
- void slotGroupsChanged(const QString &t);
+ void slotSubjectChanged(const TQString &t);
+ void slotGroupsChanged(const TQString &t);
void slotToBtnClicked();
void slotGroupsBtnClicked();
@@ -163,19 +163,19 @@ class KNComposer : public KMainWindow , virtual public KNodeComposerIface {
void slotCancelEditor();
// attachment list
- void slotAttachmentPopup(KListView*, QListViewItem *it, const QPoint &p);
- void slotAttachmentSelected(QListViewItem *it);
- void slotAttachmentEdit(QListViewItem *it);
- void slotAttachmentRemove(QListViewItem *it);
+ void slotAttachmentPopup(KListView*, TQListViewItem *it, const TQPoint &p);
+ void slotAttachmentSelected(TQListViewItem *it);
+ void slotAttachmentEdit(TQListViewItem *it);
+ void slotAttachmentRemove(TQListViewItem *it);
// spellcheck operation
void slotSpellStarted(KSpell *);
- void slotSpellDone(const QString&);
+ void slotSpellDone(const TQString&);
void slotSpellFinished();
// DND handling
- virtual void slotDragEnterEvent(QDragEnterEvent *);
- virtual void slotDropEvent(QDropEvent *);
+ virtual void slotDragEnterEvent(TQDragEnterEvent *);
+ virtual void slotDropEvent(TQDropEvent *);
void slotUndo();
void slotRedo();
@@ -183,15 +183,15 @@ class KNComposer : public KMainWindow , virtual public KNodeComposerIface {
void slotCopy();
void slotPaste();
void slotSelectAll();
- void slotMisspelling(const QString &text, const QStringList &lst, unsigned int pos);
- void slotCorrected (const QString &oldWord, const QString &newWord, unsigned int pos);
+ void slotMisspelling(const TQString &text, const TQStringList &lst, unsigned int pos);
+ void slotCorrected (const TQString &oldWord, const TQString &newWord, unsigned int pos);
void addRecentAddress();
protected:
// DND handling
- virtual void dragEnterEvent(QDragEnterEvent *);
- virtual void dropEvent(QDropEvent *);
+ virtual void dragEnterEvent(TQDragEnterEvent *);
+ virtual void dropEvent(TQDropEvent *);
signals:
void composerDone(KNComposer*);
@@ -206,21 +206,21 @@ class KNComposer : public KMainWindow , virtual public KNodeComposerIface {
class KNLineEditSpell;
class KNLineEdit;
-class KNComposer::ComposerView : public QSplitter {
+class KNComposer::ComposerView : public TQSplitter {
public:
ComposerView(KNComposer *_composer, const char *n=0);
~ComposerView();
- void focusNextPrevEdit(const QWidget* aCur, bool aNext);
+ void focusNextPrevEdit(const TQWidget* aCur, bool aNext);
void setMessageMode(KNComposer::MessageMode mode);
void showAttachmentView();
void hideAttachmentView();
void showExternalNotification();
void hideExternalNotification();
void restartBackgroundSpellCheck();
- QValueList<QWidget*> mEdtList;
+ TQValueList<TQWidget*> mEdtList;
- QLabel *l_to,
+ TQLabel *l_to,
*l_groups,
*l_fup2;
KNLineEditSpell *s_ubject;
@@ -229,16 +229,16 @@ class KNComposer::ComposerView : public QSplitter {
KNLineEdit *t_o;
KComboBox *f_up2;
- QPushButton *g_roupsBtn,
+ TQPushButton *g_roupsBtn,
*t_oBtn;
Editor *e_dit;
- QGroupBox *n_otification;
- QPushButton *c_ancelEditorBtn;
+ TQGroupBox *n_otification;
+ TQPushButton *c_ancelEditorBtn;
- QWidget *a_ttWidget;
+ TQWidget *a_ttWidget;
AttachmentView *a_ttView;
- QPushButton *a_ttAddBtn,
+ TQPushButton *a_ttAddBtn,
*a_ttRemoveBtn,
*a_ttEditBtn;
KDictSpellingHighlighter *mSpellChecker;
@@ -253,9 +253,9 @@ class KNComposer::Editor : public KEdit {
Q_OBJECT
public:
- Editor(KNComposer::ComposerView *_composerView, KNComposer *_composer, QWidget *parent=0, char *name=0);
+ Editor(KNComposer::ComposerView *_composerView, KNComposer *_composer, TQWidget *parent=0, char *name=0);
~Editor();
- QStringList processedText();
+ TQStringList processedText();
public slots:
void slotPasteAsQuotation();
@@ -271,32 +271,32 @@ class KNComposer::Editor : public KEdit {
protected slots:
void slotSpellStarted( KSpell *);
- void slotSpellDone(const QString &);
+ void slotSpellDone(const TQString &);
void slotSpellFinished();
- void slotMisspelling (const QString &, const QStringList &lst, unsigned int);
+ void slotMisspelling (const TQString &, const TQStringList &lst, unsigned int);
virtual void cut();
virtual void clear();
virtual void del();
- void slotAddSuggestion( const QString &, const QStringList &lst, unsigned int );
+ void slotAddSuggestion( const TQString &, const TQStringList &lst, unsigned int );
signals:
- void sigDragEnterEvent(QDragEnterEvent *);
- void sigDropEvent(QDropEvent *);
+ void sigDragEnterEvent(TQDragEnterEvent *);
+ void sigDropEvent(TQDropEvent *);
protected:
// DND handling
- virtual void contentsDragEnterEvent(QDragEnterEvent *);
- virtual void contentsDropEvent(QDropEvent *);
- virtual void contentsContextMenuEvent( QContextMenuEvent *e );
- virtual void keyPressEvent ( QKeyEvent *e);
+ virtual void contentsDragEnterEvent(TQDragEnterEvent *);
+ virtual void contentsDropEvent(TQDropEvent *);
+ virtual void contentsContextMenuEvent( TQContextMenuEvent *e );
+ virtual void keyPressEvent ( TQKeyEvent *e);
- virtual bool eventFilter(QObject*, QEvent*);
+ virtual bool eventFilter(TQObject*, TQEvent*);
private:
KNComposer *m_composer;
KNComposer::ComposerView *m_composerView;
KSpell *spell;
- QMap<QString,QStringList> m_replacements;
- QRegExp m_bound;
+ TQMap<TQString,TQStringList> m_replacements;
+ TQRegExp m_bound;
};
@@ -305,14 +305,14 @@ class KNComposer::AttachmentView : public KListView {
Q_OBJECT
public:
- AttachmentView(QWidget *parent, char *name=0);
+ AttachmentView(TQWidget *parent, char *name=0);
~AttachmentView();
protected:
- void keyPressEvent( QKeyEvent *e );
+ void keyPressEvent( TQKeyEvent *e );
signals:
- void delPressed ( QListViewItem * ); // the user used Key_Delete on a list view item
+ void delPressed ( TQListViewItem * ); // the user used Key_Delete on a list view item
};
@@ -332,7 +332,7 @@ class KNComposer::AttachmentPropertiesDlg : public KDialogBase {
Q_OBJECT
public:
- AttachmentPropertiesDlg( KNAttachment *a, QWidget *p=0, const char *n=0);
+ AttachmentPropertiesDlg( KNAttachment *a, TQWidget *p=0, const char *n=0);
~AttachmentPropertiesDlg();
void apply();
@@ -340,14 +340,14 @@ class KNComposer::AttachmentPropertiesDlg : public KDialogBase {
protected:
KLineEdit *m_imeType,
*d_escription;
- QComboBox *e_ncoding;
+ TQComboBox *e_ncoding;
KNAttachment *a_ttachment;
bool n_onTextAsText;
protected slots:
void accept();
- void slotMimeTypeTextChanged(const QString &text);
+ void slotMimeTypeTextChanged(const TQString &text);
};
//-----------------------------------------------------------------------------
@@ -357,13 +357,13 @@ class KNLineEdit : public KABC::AddressLineEdit
typedef KABC::AddressLineEdit KNLineEditInherited;
public:
- KNLineEdit(KNComposer::ComposerView *_composerView, bool useCompletion, QWidget *parent = 0,
+ KNLineEdit(KNComposer::ComposerView *_composerView, bool useCompletion, TQWidget *parent = 0,
const char *name = 0);
protected:
// Inherited. Always called by the parent when this widget is created.
virtual void loadAddresses();
- void keyPressEvent(QKeyEvent *e);
- virtual QPopupMenu *createPopupMenu();
+ void keyPressEvent(TQKeyEvent *e);
+ virtual TQPopupMenu *createPopupMenu();
private slots:
void editRecentAddresses();
private:
@@ -374,11 +374,11 @@ class KNLineEditSpell : public KNLineEdit
{
Q_OBJECT
public:
- KNLineEditSpell(KNComposer::ComposerView *_composerView, bool useCompletion,QWidget * parent, const char * name = 0);
+ KNLineEditSpell(KNComposer::ComposerView *_composerView, bool useCompletion,TQWidget * parent, const char * name = 0);
void highLightWord( unsigned int length, unsigned int pos );
- void spellCheckDone( const QString &s );
- void spellCheckerMisspelling( const QString &text, const QStringList &, unsigned int pos);
- void spellCheckerCorrected( const QString &old, const QString &corr, unsigned int pos);
+ void spellCheckDone( const TQString &s );
+ void spellCheckerMisspelling( const TQString &text, const TQStringList &, unsigned int pos);
+ void spellCheckerCorrected( const TQString &old, const TQString &corr, unsigned int pos);
};
#endif