summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoAutoFormatDia.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/KoAutoFormatDia.h')
-rw-r--r--lib/kotext/KoAutoFormatDia.h77
1 files changed, 40 insertions, 37 deletions
diff --git a/lib/kotext/KoAutoFormatDia.h b/lib/kotext/KoAutoFormatDia.h
index 9b1f92c5..38a9ecb3 100644
--- a/lib/kotext/KoAutoFormatDia.h
+++ b/lib/kotext/KoAutoFormatDia.h
@@ -22,24 +22,25 @@
#define koautoformatdia_h
#include <kdialogbase.h>
-#include <qlineedit.h>
+#include <tqlineedit.h>
#include <KoAutoFormat.h>
-class QCheckBox;
+class TQCheckBox;
class KCharSelect;
-class QComboBox;
+class TQComboBox;
/**
*
*/
-class KoAutoFormatLineEdit : public QLineEdit
+class KoAutoFormatLineEdit : public TQLineEdit
{
Q_OBJECT
+ TQ_OBJECT
public:
- KoAutoFormatLineEdit ( QWidget * parent, const char * name=0 );
+ KoAutoFormatLineEdit ( TQWidget * tqparent, const char * name=0 );
protected:
- virtual void keyPressEvent ( QKeyEvent * );
+ virtual void keyPressEvent ( TQKeyEvent * );
signals:
void keyReturnPressed();
};
@@ -48,28 +49,29 @@ protected:
/* Class: KoAutoFormatExceptionWidget */
/******************************************************************/
-class KoAutoFormatExceptionWidget : public QWidget
+class KoAutoFormatExceptionWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- KoAutoFormatExceptionWidget(QWidget *_parent, const QString &name,const QStringList &_list, bool _autoInclude, bool _abbreviation=false);
+ KoAutoFormatExceptionWidget(TQWidget *_parent, const TQString &name,const TQStringList &_list, bool _autoInclude, bool _abbreviation=false);
- void setListException( const QStringList &list);
- QStringList getListException(){return m_listException;}
+ void setListException( const TQStringList &list);
+ TQStringList getListException(){return m_listException;}
bool autoInclude();
void setAutoInclude( bool b );
protected slots:
void slotAddException();
void slotRemoveException();
- void textChanged ( const QString & );
+ void textChanged ( const TQString & );
void slotExceptionListSelected();
private:
- QListBox *exceptionList;
+ TQListBox *exceptionList;
KoAutoFormatLineEdit *exceptionLine;
- QPushButton *pbAddException,*pbRemoveException;
- QCheckBox *cbAutoInclude;
- QStringList m_listException;
+ TQPushButton *pbAddException,*pbRemoveException;
+ TQCheckBox *cbAutoInclude;
+ TQStringList m_listException;
bool m_bAbbreviation;
};
@@ -80,12 +82,13 @@ protected slots:
class KOTEXT_EXPORT KoAutoFormatDia : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- KoAutoFormatDia( QWidget *parent, const char *name, KoAutoFormat * autoFormat );
+ KoAutoFormatDia( TQWidget *tqparent, const char *name, KoAutoFormat * autoFormat );
~KoAutoFormatDia();
- void addEntryList(const QString &key, KoAutoFormatEntry *_autoEntry);
- void editEntryList(const QString &key,const QString &newFindString, KoAutoFormatEntry *_autoEntry);
+ void addEntryList(const TQString &key, KoAutoFormatEntry *_autoEntry);
+ void editEntryList(const TQString &key,const TQString &newFindString, KoAutoFormatEntry *_autoEntry);
protected:
bool applyConfig();
void setupTab1();
@@ -100,31 +103,31 @@ protected:
void initTab3();
void initTab4();
- typedef QMap<QString, QString> KoExceptionLanguageName;
+ typedef TQMap<TQString, TQString> KoExceptionLanguageName;
KoExceptionLanguageName exceptionLanguageName;
- QWidget *tab1;
- QWidget *tab2;
- QWidget *tab3;
- QWidget *tab4;
+ TQWidget *tab1;
+ TQWidget *tab2;
+ TQWidget *tab3;
+ TQWidget *tab4;
- QComboBox *autoFormatLanguage;
+ TQComboBox *autoFormatLanguage;
- QCheckBox *cbTypographicSimpleQuotes, *cbTypographicDoubleQuotes,*cbUpperCase, *cbUpperUpper, *cbDetectUrl,
+ TQCheckBox *cbTypographicSimpleQuotes, *cbTypographicDoubleQuotes,*cbUpperCase, *cbUpperUpper, *cbDetectUrl,
*cbBackgroundSpellCheck, *cbAdvancedAutoCorrection,*cbIgnoreDoubleSpace , *cbRemoveSpaceBeginEndLine, *cbUseBulletStyle, *cbAutoChangeFormat, *cbAutoReplaceNumber, *cbUseNumberStyle, *cbAutoSuperScript, *cbAutoCorrectionWithFormat, *cbCapitalizeDaysName;
- QPushButton *pbDoubleQuote1, *pbDoubleQuote2, /**pbEdit,*/ *pbRemove, *pbAdd, *pbDoubleDefault,
+ TQPushButton *pbDoubleQuote1, *pbDoubleQuote2, /**pbEdit,*/ *pbRemove, *pbAdd, *pbDoubleDefault,
*pbSpecialChar1, *pbSpecialChar2, *pbBulletStyle, *pbDefaultBulletStyle;
- QPushButton *pbSimpleQuote1, *pbSimpleQuote2, *pbSimpleDefault;
- QPushButton *pbChangeFormat, *pbClearFormat;
+ TQPushButton *pbSimpleQuote1, *pbSimpleQuote2, *pbSimpleDefault;
+ TQPushButton *pbChangeFormat, *pbClearFormat;
KCharSelect *charselect;
- KoAutoFormatLineEdit *m_find, *m_replace;
+ KoAutoFormatLineEdit *m_tqfind, *m_tqreplace;
KListView *m_pListView;
- QChar oSimpleBegin, oSimpleEnd;
- QChar oDoubleBegin, oDoubleEnd;
+ TQChar oSimpleBegin, oSimpleEnd;
+ TQChar oDoubleBegin, oDoubleEnd;
- QChar bulletStyle;
+ TQChar bulletStyle;
KoAutoFormat m_autoFormat; // The copy we're working on
KoAutoFormat * m_docAutoFormat; // Pointer to the real one (in KWDocument)
@@ -133,7 +136,7 @@ protected:
KoAutoFormatEntry *newEntry;
- QString initialLanguage;
+ TQString initialLanguage;
bool noSignal;
bool changeLanguage;
@@ -143,11 +146,11 @@ protected slots:
virtual void slotCancel();
void slotBulletStyleToggled( bool );
- void slotItemRenamed(QListViewItem * item, const QString & newText, int column);
+ void slotItemRenamed(TQListViewItem * item, const TQString & newText, int column);
void slotRemoveEntry();
void slotEditEntry();
- void slotfind( const QString & );
- void slotfind2( const QString & );
+ void slottqfind( const TQString & );
+ void slottqfind2( const TQString & );
void chooseSpecialChar1();
void chooseSpecialChar2();
void chooseDoubleQuote1();
@@ -166,7 +169,7 @@ protected slots:
void defaultBulletStyle();
void slotChangeTextFormatEntry();
void slotResetConf();
- void changeAutoformatLanguage(const QString & );
+ void changeAutoformatLanguage(const TQString & );
void slotClearTextFormatEntry();
void slotChangeAdvancedAutoCorrection();
};