summaryrefslogtreecommitdiffstats
path: root/kalarm/recurrenceeditprivate.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 /kalarm/recurrenceeditprivate.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 'kalarm/recurrenceeditprivate.h')
-rw-r--r--kalarm/recurrenceeditprivate.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/kalarm/recurrenceeditprivate.h b/kalarm/recurrenceeditprivate.h
index 1210f95c6..b9a1fced5 100644
--- a/kalarm/recurrenceeditprivate.h
+++ b/kalarm/recurrenceeditprivate.h
@@ -21,9 +21,9 @@
#ifndef RECURRENCEEDITPRIVATE_H
#define RECURRENCEEDITPRIVATE_H
-#include <qframe.h>
-#include <qvaluelist.h>
-#include <qbitarray.h>
+#include <tqframe.h>
+#include <tqvaluelist.h>
+#include <tqbitarray.h>
class QWidget;
class QVBoxLayout;
@@ -39,8 +39,8 @@ class QString;
class NoRule : public QFrame
{
public:
- NoRule(QWidget* parent, const char* name = 0) : QFrame(parent, name)
- { setFrameStyle(QFrame::NoFrame); }
+ NoRule(TQWidget* parent, const char* name = 0) : TQFrame(parent, name)
+ { setFrameStyle(TQFrame::NoFrame); }
virtual int frequency() const { return 0; }
};
@@ -48,22 +48,22 @@ class Rule : public NoRule
{
Q_OBJECT
public:
- Rule(const QString& freqText, const QString& freqWhatsThis, bool time, bool readOnly,
- QWidget* parent, const char* name = 0);
+ Rule(const TQString& freqText, const TQString& freqWhatsThis, bool time, bool readOnly,
+ TQWidget* parent, const char* name = 0);
int frequency() const;
void setFrequency(int);
virtual void setFrequencyFocus() { mSpinBox->setFocus(); }
- QVBoxLayout* layout() const { return mLayout; }
- virtual QWidget* validate(QString&) { return 0; }
+ TQVBoxLayout* layout() const { return mLayout; }
+ virtual TQWidget* validate(TQString&) { return 0; }
virtual void saveState();
virtual bool stateChanged() const;
signals:
void frequencyChanged();
private:
- QWidget* mSpinBox;
+ TQWidget* mSpinBox;
SpinBox* mIntSpinBox;
TimeSpinBox* mTimeSpinBox;
- QVBoxLayout* mLayout;
+ TQVBoxLayout* mLayout;
// Saved state of all controls
int mSavedFrequency; // frequency for the selected rule
};
@@ -73,7 +73,7 @@ class SubDailyRule : public Rule
{
Q_OBJECT
public:
- SubDailyRule(bool readOnly, QWidget* parent, const char* name = 0);
+ SubDailyRule(bool readOnly, TQWidget* parent, const char* name = 0);
};
// Daily/weekly rule choices base class
@@ -81,33 +81,33 @@ class DayWeekRule : public Rule
{
Q_OBJECT
public:
- DayWeekRule(const QString& freqText, const QString& freqWhatsThis, const QString& daysWhatsThis,
- bool readOnly, QWidget* parent, const char* name = 0);
- QBitArray days() const;
+ DayWeekRule(const TQString& freqText, const TQString& freqWhatsThis, const TQString& daysWhatsThis,
+ bool readOnly, TQWidget* parent, const char* name = 0);
+ TQBitArray days() const;
void setDays(bool);
- void setDays(const QBitArray& days);
+ void setDays(const TQBitArray& days);
void setDay(int dayOfWeek);
- virtual QWidget* validate(QString& errorMessage);
+ virtual TQWidget* validate(TQString& errorMessage);
virtual void saveState();
virtual bool stateChanged() const;
private:
CheckBox* mDayBox[7];
// Saved state of all controls
- QBitArray mSavedDays; // ticked days for weekly rule
+ TQBitArray mSavedDays; // ticked days for weekly rule
};
// Daily rule choices
class DailyRule : public DayWeekRule
{
public:
- DailyRule(bool readOnly, QWidget* parent, const char* name = 0);
+ DailyRule(bool readOnly, TQWidget* parent, const char* name = 0);
};
// Weekly rule choices
class WeeklyRule : public DayWeekRule
{
public:
- WeeklyRule(bool readOnly, QWidget* parent, const char* name = 0);
+ WeeklyRule(bool readOnly, TQWidget* parent, const char* name = 0);
};
// Monthly/yearly rule choices base class
@@ -117,8 +117,8 @@ class MonthYearRule : public Rule
public:
enum DayPosType { DATE, POS };
- MonthYearRule(const QString& freqText, const QString& freqWhatsThis, bool allowEveryWeek,
- bool readOnly, QWidget* parent, const char* name = 0);
+ MonthYearRule(const TQString& freqText, const TQString& freqWhatsThis, bool allowEveryWeek,
+ bool readOnly, TQWidget* parent, const char* name = 0);
DayPosType type() const;
int date() const; // if date in month is selected
int week() const; // if position is selected
@@ -161,7 +161,7 @@ class MonthYearRule : public Rule
class MonthlyRule : public MonthYearRule
{
public:
- MonthlyRule(bool readOnly, QWidget* parent, const char* name = 0);
+ MonthlyRule(bool readOnly, TQWidget* parent, const char* name = 0);
};
// Yearly rule choices
@@ -169,13 +169,13 @@ class YearlyRule : public MonthYearRule
{
Q_OBJECT
public:
- YearlyRule(bool readOnly, QWidget* parent, const char* name = 0);
- QValueList<int> months() const;
- void setMonths(const QValueList<int>& months);
+ YearlyRule(bool readOnly, TQWidget* parent, const char* name = 0);
+ TQValueList<int> months() const;
+ void setMonths(const TQValueList<int>& months);
void setDefaultValues(int dayOfMonth, int dayOfWeek, int month);
KARecurrence::Feb29Type feb29Type() const;
void setFeb29Type(KARecurrence::Feb29Type);
- virtual QWidget* validate(QString& errorMessage);
+ virtual TQWidget* validate(TQString& errorMessage);
virtual void saveState();
virtual bool stateChanged() const;
protected:
@@ -186,10 +186,10 @@ class YearlyRule : public MonthYearRule
void enableFeb29();
private:
CheckBox* mMonthBox[12];
- QLabel* mFeb29Label;
+ TQLabel* mFeb29Label;
ComboBox* mFeb29Combo;
// Saved state of all controls
- QValueList<int> mSavedMonths; // ticked months for yearly rule
+ TQValueList<int> mSavedMonths; // ticked months for yearly rule
int mSavedFeb29Type; // February 29th recurrence type
};