summaryrefslogtreecommitdiffstats
path: root/libkdepim/kscoringeditor.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkdepim/kscoringeditor.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/kscoringeditor.h')
-rw-r--r--libkdepim/kscoringeditor.h88
1 files changed, 44 insertions, 44 deletions
diff --git a/libkdepim/kscoringeditor.h b/libkdepim/kscoringeditor.h
index 5fc919f86..1f201be95 100644
--- a/libkdepim/kscoringeditor.h
+++ b/libkdepim/kscoringeditor.h
@@ -18,10 +18,10 @@
#ifndef SCOREEDITWIDGET_H
#define SCOREEDITWIDGET_H
-#include <qmap.h>
+#include <tqmap.h>
#include <kdialogbase.h>
-#include <qtable.h>
-#include <qframe.h>
+#include <tqtable.h>
+#include <tqframe.h>
#include "kwidgetlister.h"
@@ -54,7 +54,7 @@ class KDE_EXPORT SingleConditionWidget : public QFrame
Q_OBJECT
friend class ConditionEditWidget;
public:
- SingleConditionWidget(KScoringManager *,QWidget *p =0, const char *n =0);
+ SingleConditionWidget(KScoringManager *,TQWidget *p =0, const char *n =0);
~SingleConditionWidget();
void setCondition(KScoringExpression*);
KScoringExpression *createCondition() const;
@@ -66,7 +66,7 @@ protected slots:
private:
/** marks a condition as negated */
- QCheckBox *neg;
+ TQCheckBox *neg;
/** list of possible headers */
KComboBox *headers;
/** list of match types */
@@ -74,7 +74,7 @@ private:
/** the expression which will be matched */
KLineEdit *expr;
/** the button to open the regexp-editor */
- QPushButton *regExpButton;
+ TQPushButton *regExpButton;
KScoringManager *manager;
};
@@ -85,11 +85,11 @@ class ConditionEditWidget: public KWidgetLister
{
Q_OBJECT
public:
- ConditionEditWidget(KScoringManager *,QWidget *p =0, const char *n =0);
+ ConditionEditWidget(KScoringManager *,TQWidget *p =0, const char *n =0);
~ConditionEditWidget();
- QWidget* createWidget(QWidget*);
+ TQWidget* createWidget(TQWidget*);
void updateRule(KScoringRule*);
- void clearWidget(QWidget*);
+ void clearWidget(TQWidget*);
public slots:
void slotEditRule(KScoringRule*);
private:
@@ -104,7 +104,7 @@ class SingleActionWidget : public QWidget
Q_OBJECT
friend class ActionEditWidget;
public:
- SingleActionWidget(KScoringManager *m,QWidget *p =0, const char *n =0);
+ SingleActionWidget(KScoringManager *m,TQWidget *p =0, const char *n =0);
~SingleActionWidget();
void setAction(ActionBase*);
ActionBase *createAction() const;
@@ -113,7 +113,7 @@ private:
/** the list of available action */
KComboBox *types;
/** the stack of the edit widgets for each action type */
- QWidgetStack *stack;
+ TQWidgetStack *stack;
/** the notify action editor */
KLineEdit *notifyEditor;
/** the score acton editor */
@@ -121,7 +121,7 @@ private:
/** the color action editor */
KColorCombo *colorEditor;
/** the dummy label */
- QLabel *dummyLabel;
+ TQLabel *dummyLabel;
KScoringManager *manager;
};
@@ -132,11 +132,11 @@ class KDE_EXPORT ActionEditWidget : public KWidgetLister
{
Q_OBJECT
public:
- ActionEditWidget(KScoringManager *m,QWidget *p =0, const char *n =0);
+ ActionEditWidget(KScoringManager *m,TQWidget *p =0, const char *n =0);
~ActionEditWidget();
- QWidget* createWidget(QWidget *parent);
+ TQWidget* createWidget(TQWidget *parent);
void updateRule(KScoringRule*);
- void clearWidget(QWidget *);
+ void clearWidget(TQWidget *);
public slots:
void slotEditRule(KScoringRule *);
private:
@@ -149,11 +149,11 @@ class RuleEditWidget : public QWidget
{
Q_OBJECT
public:
- RuleEditWidget(KScoringManager *m,QWidget *p =0, const char *n =0);
+ RuleEditWidget(KScoringManager *m,TQWidget *p =0, const char *n =0);
~RuleEditWidget();
public slots:
void setDirty();
- void slotEditRule(const QString&);
+ void slotEditRule(const TQString&);
void updateRule(KScoringRule*);
void updateRule();
signals:
@@ -174,13 +174,13 @@ private:
/** list of all available groups */
KComboBox *groupsBox;
/** the expire enable */
- QCheckBox *expireCheck;
+ TQCheckBox *expireCheck;
/** the label to the expireCheck */
- QLabel *expireLabel;
+ TQLabel *expireLabel;
/** the expire delay */
KIntSpinBox *expireEdit;
/** the link modes of the conditions */
- QRadioButton *linkModeOr, *linkModeAnd;
+ TQRadioButton *linkModeOr, *linkModeAnd;
/** the actions editor */
ActionEditWidget *actionEditor;
/** the conditions editor */
@@ -189,7 +189,7 @@ private:
KScoringManager *manager;
// the old name of the current rule
- QString oldRuleName;
+ TQString oldRuleName;
};
/** This widget shows a list of rules with buttons for
@@ -199,27 +199,27 @@ class KDE_EXPORT RuleListWidget : public QWidget
{
Q_OBJECT
public:
- RuleListWidget(KScoringManager *m, bool =false, QWidget *p =0, const char *n =0);
+ RuleListWidget(KScoringManager *m, bool =false, TQWidget *p =0, const char *n =0);
~RuleListWidget();
- QString currentRule() const { return ruleList->currentText(); }
+ TQString currentRule() const { return ruleList->currentText(); }
protected:
void updateButton();
signals:
- void ruleSelected(const QString&);
- void ruleEdited(const QString&);
+ void ruleSelected(const TQString&);
+ void ruleEdited(const TQString&);
void leavingRule();
public slots:
- void slotRuleSelected(const QString&);
- void slotRuleSelected(QListBoxItem *);
+ void slotRuleSelected(const TQString&);
+ void slotRuleSelected(TQListBoxItem *);
void slotRuleSelected(int);
void updateRuleList();
void updateRuleList(const KScoringRule*);
- void slotRuleNameChanged(const QString&,const QString&);
+ void slotRuleNameChanged(const TQString&,const TQString&);
protected slots:
- void slotGroupFilter(const QString&);
- void slotEditRule(QListBoxItem*);
- void slotEditRule(const QString&);
+ void slotGroupFilter(const TQString&);
+ void slotEditRule(TQListBoxItem*);
+ void slotEditRule(const TQString&);
void slotEditRule();
void slotDelRule();
void slotNewRule();
@@ -231,18 +231,18 @@ private:
/** the list of rules */
KListBox *ruleList;
/** the current group */
- QString group;
+ TQString group;
/** marks if we're alone or together with the edit widget */
bool alone;
KScoringManager *manager;
- QPushButton *editRule;
- QPushButton *newRule;
- QPushButton *delRule;
- QPushButton *copyRule;
- QPushButton *mRuleUp;
- QPushButton *mRuleDown;
+ TQPushButton *editRule;
+ TQPushButton *newRule;
+ TQPushButton *delRule;
+ TQPushButton *copyRule;
+ TQPushButton *mRuleUp;
+ TQPushButton *mRuleDown;
};
class KDE_EXPORT KScoringEditor : public KDialogBase
@@ -251,11 +251,11 @@ class KDE_EXPORT KScoringEditor : public KDialogBase
public:
~KScoringEditor();
void setRule(KScoringRule*);
- static KScoringEditor *createEditor(KScoringManager* m, QWidget *parent=0, const char *name=0);
+ static KScoringEditor *createEditor(KScoringManager* m, TQWidget *parent=0, const char *name=0);
static KScoringEditor *editor() { return scoreEditor; }
void setDirty();
protected:
- KScoringEditor(KScoringManager* m, QWidget *parent=0, const char *name=0);
+ KScoringEditor(KScoringManager* m, TQWidget *parent=0, const char *name=0);
private:
/** the editor for the current rule */
RuleEditWidget* ruleEditor;
@@ -279,7 +279,7 @@ class KScoringEditorWidgetDialog : public KDialogBase
{
Q_OBJECT
public:
- KScoringEditorWidgetDialog(KScoringManager *m, const QString& rName, QWidget *parent=0, const char *name=0);
+ KScoringEditorWidgetDialog(KScoringManager *m, const TQString& rName, TQWidget *parent=0, const char *name=0);
protected slots:
void slotApply();
void slotOk();
@@ -288,17 +288,17 @@ protected slots:
private:
RuleEditWidget *ruleEditor;
KScoringManager *manager;
- QString ruleName;
+ TQString ruleName;
};
class KDE_EXPORT KScoringEditorWidget : public QWidget
{
Q_OBJECT
public:
- KScoringEditorWidget(KScoringManager *m,QWidget *p =0, const char *n =0);
+ KScoringEditorWidget(KScoringManager *m,TQWidget *p =0, const char *n =0);
~KScoringEditorWidget();
protected slots:
- void slotRuleEdited(const QString&);
+ void slotRuleEdited(const TQString&);
private:
RuleListWidget *ruleLister;
KScoringManager *manager;