From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmail/kmfilterdlg.h | 84 ++++++++++++++++++++++++++--------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'kmail/kmfilterdlg.h') diff --git a/kmail/kmfilterdlg.h b/kmail/kmfilterdlg.h index 9a12b6be4..ab71bc5f5 100644 --- a/kmail/kmfilterdlg.h +++ b/kmail/kmfilterdlg.h @@ -13,14 +13,14 @@ #include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include class KMSearchPatternEdit; class QListBox; @@ -35,7 +35,7 @@ class KListView; /** This is a complex widget that is used to manipulate KMail's filter list. It consists of an internal list of filters, which is a deep - copy of the list KMFilterMgr manages, a QListBox displaying that list, + copy of the list KMFilterMgr manages, a TQListBox displaying that list, and a few buttons used to create new filters, delete them, rename them and change the order of filters. @@ -62,7 +62,7 @@ class KMFilterListBox : public QGroupBox Q_OBJECT public: /** Constuctor. */ - KMFilterListBox( const QString & title, QWidget* parent=0, const char* name=0, bool popFilter = false); + KMFilterListBox( const TQString & title, TQWidget* parent=0, const char* name=0, bool popFilter = false); /** Called from KMFilterDlg. Creates a new filter and presets the first rule with "field equals value". It's there mainly to @@ -70,7 +70,7 @@ public: instead call KMFilterMgr::createFilter. @see KMFilterMgr::createFilter KMFilterDlg::createFilter */ - void createFilter( const QCString & field, const QString & value ); + void createFilter( const TQCString & field, const TQString & value ); /** Loads the filter list and selects the first filter. Should be called when all signals are connected properly. If createDummyFilter @@ -88,7 +88,7 @@ public: /** Returns a list of _copies_ of the current list of filters. * The list owns the contents and thus the caller needs to clean them * up. */ - QValueList filtersForSaving() const; + TQValueList filtersForSaving() const; signals: /** Emitted when a new filter has been selected by the user or if @@ -151,12 +151,12 @@ protected slots: protected: /** The deep copy of the filter list. */ - QPtrList mFilterList; + TQPtrList mFilterList; /** The listbox displaying the filter list. */ - QListBox *mListBox; + TQListBox *mListBox; /** The various action buttons. */ - QPushButton *mBtnNew, *mBtnCopy, *mBtnDelete, *mBtnRename; - QPushButton *mBtnTop, *mBtnUp, *mBtnDown, *mBtnBot; + TQPushButton *mBtnNew, *mBtnCopy, *mBtnDelete, *mBtnRename; + TQPushButton *mBtnTop, *mBtnUp, *mBtnDown, *mBtnBot; /** The index of the currently selected item. */ int mIdxSelItem; bool mShowLater; @@ -173,7 +173,7 @@ private: any derived class that is registered in KMFilterActionDict). It consists of a combo box which allows to select the type of actions this widget should act upon and a - QWidgetStack, which holds the parameter widgets for the different + TQWidgetStack, which holds the parameter widgets for the different rule types. You can load a KMFilterAction into this widget with setAction, @@ -196,7 +196,7 @@ class KMFilterActionWidget : public QHBox public: /** Constructor. Creates a filter action widget with no type selected. */ - KMFilterActionWidget( QWidget* parent=0, const char* name=0 ); + KMFilterActionWidget( TQWidget* parent=0, const char* name=0 ); /** Set an action. The action's type is determined and the corresponding widget it loaded with @p aAction's parameters and @@ -213,21 +213,21 @@ private: subclass. The only reason that these 'slave' actions exist is that they are 'forced' to create parameter widgets for the widget stack and to clear them on setAction. */ - QPtrList mActionList; + TQPtrList mActionList; /** The combo box that contains the labels of all KMFilterActions. It's @p activated(int) signal is internally connected to the @p raiseWidget(int) slot of @p mWidgetStack. */ - QComboBox *mComboBox; + TQComboBox *mComboBox; /** The widget stack that holds all the parameter widgets for the filter actions. */ - QWidgetStack *mWidgetStack; + TQWidgetStack *mWidgetStack; }; class KMPopFilterActionWidget : public QVButtonGroup { Q_OBJECT public: - KMPopFilterActionWidget( const QString &title, QWidget* parent=0, const char* name=0 ); + KMPopFilterActionWidget( const TQString &title, TQWidget* parent=0, const char* name=0 ); void setAction( KMPopFilterAction aAction ); KMPopFilterAction action(); @@ -240,8 +240,8 @@ private slots: private: KMPopFilterAction mAction; KMFilter mFilter; - QMap mActionMap; - QMap mIdMap; + TQMap mActionMap; + TQMap mIdMap; signals: // Signals void actionChanged(const KMPopFilterAction aAction); @@ -251,11 +251,11 @@ class KMFilterActionWidgetLister : public KWidgetLister { Q_OBJECT public: - KMFilterActionWidgetLister( QWidget *parent=0, const char* name=0 ); + KMFilterActionWidgetLister( TQWidget *parent=0, const char* name=0 ); virtual ~KMFilterActionWidgetLister(); - void setActionList( QPtrList * aList ); + void setActionList( TQPtrList * aList ); /** Updates the action list according to the current widget values */ void updateActionList() { regenerateActionListFromWidgets(); } @@ -264,12 +264,12 @@ 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 regenerateActionListFromWidgets(); - QPtrList *mActionList; + TQPtrList *mActionList; }; @@ -321,7 +321,7 @@ private: turn delivers it to the KMFilterListBox. If you change the (DocBook) anchor for the filter dialog help, - make sure to change @p const @p QString @p KMFilterDlgHelpAnchor + make sure to change @p const @p TQString @p KMFilterDlgHelpAnchor in kmfilterdlg.cpp accordingly. @short The filter dialog. @@ -337,14 +337,14 @@ public: /** Create the filter dialog. The only class which should be able to do this is KMFilterMgr. This ensures that there is only a single filter dialog */ - KMFilterDlg( QWidget* parent=0, const char* name=0, bool popFilter=false, + KMFilterDlg( TQWidget* parent=0, const char* name=0, bool popFilter=false, bool createDummyFilter=true ); /** Called from KMFilterMgr. Creates a new filter and presets the first rule with "field equals value". Internally forwarded to KMFilterListBox::createFilter. You should instead call KMFilterMgr::createFilter. */ - void createFilter( const QCString & field, const QString & value ) + void createFilter( const TQCString & field, const TQString & value ) { mFilterList->createFilter( field, value ); } public slots: @@ -363,7 +363,7 @@ protected slots: void slotConfigureShortcutButtonToggled( bool aChecked ); void slotCapturedShortcutChanged( const KShortcut& ); void slotConfigureToolbarButtonToggled( bool aChecked ); - void slotFilterActionIconChanged( QString icon ); + void slotFilterActionIconChanged( TQString icon ); void slotReset(); void slotUpdateFilter(); void slotSaveSize(); @@ -396,22 +396,22 @@ protected: KMPopFilterActionWidget *mActionGroup; /** Lets the user select whether to apply this filter on inbound/outbound messages, both, or only on explicit CTRL-J. */ - QCheckBox *mApplyOnIn, *mApplyOnOut, *mApplyOnCtrlJ; + TQCheckBox *mApplyOnIn, *mApplyOnOut, *mApplyOnCtrlJ; /** For a filter applied to inbound messages selects whether to apply this filter to all accounts or to selected accounts only. */ - QRadioButton *mApplyOnForAll, *mApplyOnForTraditional, *mApplyOnForChecked; + TQRadioButton *mApplyOnForAll, *mApplyOnForTraditional, *mApplyOnForChecked; /** ListView that shows the accounts in the advanced tab */ KListView *mAccountList; - QCheckBox *mStopProcessingHere; - QCheckBox *mConfigureShortcut; - QCheckBox *mConfigureToolbar; - QLabel *mFilterActionLabel; + TQCheckBox *mStopProcessingHere; + TQCheckBox *mConfigureShortcut; + TQCheckBox *mConfigureToolbar; + TQLabel *mFilterActionLabel; KIconButton *mFilterActionIconButton; KKeyButton *mKeyButton; - QGroupBox *mAdvOptsGroup; - QVGroupBox *mGlobalsBox; - QCheckBox *mShowLaterBtn; + TQGroupBox *mAdvOptsGroup; + TQVGroupBox *mGlobalsBox; + TQCheckBox *mShowLaterBtn; KMFilter *mFilter; bool bPopFilter; -- cgit v1.2.1