diff options
Diffstat (limited to 'kmail/kmsearchpatternedit.h')
-rw-r--r-- | kmail/kmsearchpatternedit.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kmail/kmsearchpatternedit.h b/kmail/kmsearchpatternedit.h index 7a3c3614e..c8ef9a2f5 100644 --- a/kmail/kmsearchpatternedit.h +++ b/kmail/kmsearchpatternedit.h @@ -8,8 +8,8 @@ #include "kwidgetlister.h" -#include <qgroupbox.h> -#include <qstringlist.h> +#include <tqgroupbox.h> +#include <tqstringlist.h> class KMSearchRule; class KMSearchPattern; @@ -24,9 +24,9 @@ class QLabel; class KMSearchPatternEdit; /** A widget to edit a single KMSearchRule. - It consists of an editable QComboBox for the field, - a read-only QComboBox for the function and - a QLineEdit for the content or the pattern (in case of regexps). + It consists of an editable TQComboBox for the field, + a read-only TQComboBox for the function and + a TQLineEdit for the content or the pattern (in case of regexps). It manages the i18n itself, so field name should be in it's english form. To use, you essentially give it the reference to a KMSearchRule and @@ -43,7 +43,7 @@ class KMSearchRuleWidget : public QWidget public: /** Constructor. You can give a KMSearchRule as parameter, which will be used to initialize the widget. */ - KMSearchRuleWidget( QWidget* parent=0, KMSearchRule* aRule=0, const char* name=0, bool headersOnly = false, bool absoluteDates = false ); + KMSearchRuleWidget( TQWidget* parent=0, KMSearchRule* aRule=0, const char* name=0, bool headersOnly = false, bool absoluteDates = false ); enum { Message, Body, AnyHeader, Recipients, Size, AgeInDays, Status }; @@ -62,7 +62,7 @@ public: /** Resets the rule currently worked on and updates the widget accordingly. */ void reset(); - static int ruleFieldToId( const QString & i18nVal ); + static int ruleFieldToId( const TQString & i18nVal ); public slots: void slotFunctionChanged(); @@ -72,31 +72,31 @@ signals: /** This signal is emitted whenever the user alters the field. The pseudo-headers <...> are returned in their i18n form, but stored in their english form in the rule. */ - void fieldChanged( const QString & ); + void fieldChanged( const TQString & ); /** This signal is emitted whenever the user alters the contents/value of the rule. */ - void contentsChanged( const QString & ); + void contentsChanged( const TQString & ); protected: /** Used internally to translate i18n-ized pseudo-headers back to english. */ - static QCString ruleFieldToEnglish(const QString & i18nVal); + static TQCString ruleFieldToEnglish(const TQString & i18nVal); /** Used internally to find the corresponding index into the field ComboBox. Returns the index if found or -1 if the search failed, */ - int indexOfRuleField( const QCString & aName ) const; + int indexOfRuleField( const TQCString & aName ) const; protected slots: - void slotRuleFieldChanged( const QString & ); + void slotRuleFieldChanged( const TQString & ); private: void initWidget(); void initFieldList( bool headersOnly, bool absoluteDates ); - QStringList mFilterFieldList; - QComboBox *mRuleField; - QWidgetStack *mFunctionStack; - QWidgetStack *mValueStack; + TQStringList mFilterFieldList; + TQComboBox *mRuleField; + TQWidgetStack *mFunctionStack; + TQWidgetStack *mValueStack; bool mAbsoluteDates; }; @@ -108,23 +108,23 @@ class KMSearchRuleWidgetLister : public KWidgetLister friend class ::KMSearchPatternEdit; public: - KMSearchRuleWidgetLister( QWidget *parent=0, const char* name=0, bool headersOnly = false, bool absoluteDates = false ); + KMSearchRuleWidgetLister( TQWidget *parent=0, const char* name=0, bool headersOnly = false, bool absoluteDates = false ); virtual ~KMSearchRuleWidgetLister(); - void setRuleList( QPtrList<KMSearchRule> * aList ); + void setRuleList( TQPtrList<KMSearchRule> * aList ); void setHeadersOnly( bool headersOnly ); public slots: void reset(); protected: - virtual void clearWidget( QWidget *aWidget ); - virtual QWidget* createWidget( QWidget *parent ); + virtual void clearWidget( TQWidget *aWidget ); + virtual TQWidget* createWidget( TQWidget *parent ); private: void regenerateRuleListFromWidgets(); - QPtrList<KMSearchRule> *mRuleList; + TQPtrList<KMSearchRule> *mRuleList; bool mHeadersOnly; bool mAbsoluteDates; }; @@ -162,15 +162,15 @@ private: @author Marc Mutz <Marc@Mutz.com> */ -class KMSearchPatternEdit : public QGroupBox { +class KMSearchPatternEdit : public TQGroupBox { Q_OBJECT public: /** Constructor. The parent and name parameters are passed to the underlying - QGroupBox, as usual. */ - KMSearchPatternEdit(QWidget *parent=0, const char *name=0, bool headersOnly = false, bool absoluteDates = false); + TQGroupBox, as usual. */ + KMSearchPatternEdit(TQWidget *parent=0, const char *name=0, bool headersOnly = false, bool absoluteDates = false); /** Constructor. This one allows you to set a title different from i18n("Search Criteria"). */ - KMSearchPatternEdit(const QString & title, QWidget *parent=0, const char *name=0, bool headersOnly = false, bool absoluteDates = false); + KMSearchPatternEdit(const TQString & title, TQWidget *parent=0, const char *name=0, bool headersOnly = false, bool absoluteDates = false); ~KMSearchPatternEdit(); /** Set the search pattern. Rules are inserted regardless of the @@ -204,7 +204,7 @@ private: void initLayout( bool headersOnly, bool absoluteDates ); KMSearchPattern *mPattern; - QRadioButton *mAllRBtn, *mAnyRBtn; + TQRadioButton *mAllRBtn, *mAnyRBtn; KMSearchRuleWidgetLister *mRuleLister; }; |