summaryrefslogtreecommitdiffstats
path: root/korganizer/koeditorrecurrence.h
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koeditorrecurrence.h')
-rw-r--r--korganizer/koeditorrecurrence.h162
1 files changed, 81 insertions, 81 deletions
diff --git a/korganizer/koeditorrecurrence.h b/korganizer/koeditorrecurrence.h
index 2a0532a6e..5b900330d 100644
--- a/korganizer/koeditorrecurrence.h
+++ b/korganizer/koeditorrecurrence.h
@@ -24,9 +24,9 @@
#ifndef _KOEDITORRECURRENCE_H
#define _KOEDITORRECURRENCE_H
-#include <qdatetime.h>
-#include <qwidget.h>
-#include <qbitarray.h>
+#include <tqdatetime.h>
+#include <tqwidget.h>
+#include <tqbitarray.h>
#include <kdialogbase.h>
@@ -47,49 +47,49 @@ using namespace KCal;
class RecurBase : public QWidget
{
public:
- RecurBase( QWidget *parent = 0, const char *name = 0 );
+ RecurBase( TQWidget *parent = 0, const char *name = 0 );
void setFrequency( int );
int frequency();
// FIXME: If we want to adjust the recurrence when the start/due date change,
// we need to reimplement this method in the derived classes!
- void setDateTimes( const QDateTime &/*start*/, const QDateTime &/*end*/ ) {}
+ void setDateTimes( const TQDateTime &/*start*/, const TQDateTime &/*end*/ ) {}
- QWidget *frequencyEdit();
+ TQWidget *frequencyEdit();
protected:
- static QComboBox *createWeekCountCombo( QWidget *parent=0, const char *name=0 );
- static QComboBox *createWeekdayCombo( QWidget *parent=0, const char *name=0 );
- static QComboBox *createMonthNameCombo( QWidget *parent=0, const char *name=0 );
- QBoxLayout *createFrequencySpinBar( QWidget *parent, QLayout *layout,
- QString everyText, QString unitText );
+ static TQComboBox *createWeekCountCombo( TQWidget *parent=0, const char *name=0 );
+ static TQComboBox *createWeekdayCombo( TQWidget *parent=0, const char *name=0 );
+ static TQComboBox *createMonthNameCombo( TQWidget *parent=0, const char *name=0 );
+ TQBoxLayout *createFrequencySpinBar( TQWidget *parent, TQLayout *layout,
+ TQString everyText, TQString unitText );
private:
- QSpinBox *mFrequencyEdit;
+ TQSpinBox *mFrequencyEdit;
};
class RecurDaily : public RecurBase
{
public:
- RecurDaily( QWidget *parent = 0, const char *name = 0 );
+ RecurDaily( TQWidget *parent = 0, const char *name = 0 );
};
class RecurWeekly : public RecurBase
{
public:
- RecurWeekly( QWidget *parent = 0, const char *name = 0 );
+ RecurWeekly( TQWidget *parent = 0, const char *name = 0 );
- void setDays( const QBitArray & );
- QBitArray days();
+ void setDays( const TQBitArray & );
+ TQBitArray days();
private:
- QCheckBox *mDayBoxes[7];
+ TQCheckBox *mDayBoxes[7];
};
class RecurMonthly : public RecurBase
{
public:
- RecurMonthly( QWidget *parent = 0, const char *name = 0 );
+ RecurMonthly( TQWidget *parent = 0, const char *name = 0 );
void setByDay( int day );
void setByPos( int count, int weekday );
@@ -103,12 +103,12 @@ class RecurMonthly : public RecurBase
int weekday();
private:
- QRadioButton *mByDayRadio;
- QComboBox *mByDayCombo;
+ TQRadioButton *mByDayRadio;
+ TQComboBox *mByDayCombo;
- QRadioButton *mByPosRadio;
- QComboBox *mByPosCountCombo;
- QComboBox *mByPosWeekdayCombo;
+ TQRadioButton *mByPosRadio;
+ TQComboBox *mByPosCountCombo;
+ TQComboBox *mByPosWeekdayCombo;
};
class RecurYearly : public RecurBase
@@ -116,7 +116,7 @@ class RecurYearly : public RecurBase
public:
enum YearlyType { byDay, byPos, byMonth };
- RecurYearly( QWidget *parent = 0, const char *name = 0 );
+ RecurYearly( TQWidget *parent = 0, const char *name = 0 );
void setByDay( int day );
void setByPos( int count, int weekday, int month );
@@ -132,25 +132,25 @@ class RecurYearly : public RecurBase
int month();
private:
- QRadioButton *mByMonthRadio;
- QRadioButton *mByPosRadio;
- QRadioButton *mByDayRadio;
+ TQRadioButton *mByMonthRadio;
+ TQRadioButton *mByPosRadio;
+ TQRadioButton *mByDayRadio;
- QSpinBox *mByMonthSpin;
- QComboBox *mByMonthCombo;
+ TQSpinBox *mByMonthSpin;
+ TQComboBox *mByMonthCombo;
- QComboBox *mByPosDayCombo;
- QComboBox *mByPosWeekdayCombo;
- QComboBox *mByPosMonthCombo;
+ TQComboBox *mByPosDayCombo;
+ TQComboBox *mByPosWeekdayCombo;
+ TQComboBox *mByPosMonthCombo;
- QSpinBox *mByDaySpin;
+ TQSpinBox *mByDaySpin;
};
class RecurrenceChooser : public QWidget
{
Q_OBJECT
public:
- RecurrenceChooser( QWidget *parent = 0, const char *name = 0 );
+ RecurrenceChooser( TQWidget *parent = 0, const char *name = 0 );
enum { Daily, Weekly, Monthly, Yearly };
@@ -164,12 +164,12 @@ class RecurrenceChooser : public QWidget
void emitChoice();
private:
- QComboBox *mTypeCombo;
+ TQComboBox *mTypeCombo;
- QRadioButton *mDailyButton;
- QRadioButton *mWeeklyButton;
- QRadioButton *mMonthlyButton;
- QRadioButton *mYearlyButton;
+ TQRadioButton *mDailyButton;
+ TQRadioButton *mWeeklyButton;
+ TQRadioButton *mMonthlyButton;
+ TQRadioButton *mYearlyButton;
};
class ExceptionsBase
@@ -179,11 +179,11 @@ class ExceptionsBase
virtual DateList dates() = 0;
};
-class ExceptionsWidget : public QWidget, public ExceptionsBase
+class ExceptionsWidget : public TQWidget, public ExceptionsBase
{
Q_OBJECT
public:
- ExceptionsWidget( QWidget *parent = 0, const char *name = 0 );
+ ExceptionsWidget( TQWidget *parent = 0, const char *name = 0 );
void setDates( const DateList & );
DateList dates();
@@ -195,14 +195,14 @@ class ExceptionsWidget : public QWidget, public ExceptionsBase
private:
KDateEdit *mExceptionDateEdit;
- QListBox *mExceptionList;
+ TQListBox *mExceptionList;
DateList mExceptionDates;
};
class ExceptionsDialog : public KDialogBase, public ExceptionsBase
{
public:
- ExceptionsDialog( QWidget *parent, const char *name = 0 );
+ ExceptionsDialog( TQWidget *parent, const char *name = 0 );
void setDates( const DateList & );
DateList dates();
@@ -214,63 +214,63 @@ class ExceptionsDialog : public KDialogBase, public ExceptionsBase
class RecurrenceRangeBase
{
public:
- virtual void setDefaults( const QDateTime &from ) = 0;
+ virtual void setDefaults( const TQDateTime &from ) = 0;
virtual void setDuration( int ) = 0;
virtual int duration() = 0;
- virtual void setEndDate( const QDate & ) = 0;
- virtual QDate endDate() = 0;
+ virtual void setEndDate( const TQDate & ) = 0;
+ virtual TQDate endDate() = 0;
- virtual void setDateTimes( const QDateTime &start,
- const QDateTime &end = QDateTime() ) = 0;
+ virtual void setDateTimes( const TQDateTime &start,
+ const TQDateTime &end = TQDateTime() ) = 0;
};
-class RecurrenceRangeWidget : public QWidget, public RecurrenceRangeBase
+class RecurrenceRangeWidget : public TQWidget, public RecurrenceRangeBase
{
Q_OBJECT
public:
- RecurrenceRangeWidget( QWidget *parent = 0, const char *name = 0 );
+ RecurrenceRangeWidget( TQWidget *parent = 0, const char *name = 0 );
- void setDefaults( const QDateTime &from );
+ void setDefaults( const TQDateTime &from );
void setDuration( int );
int duration();
- void setEndDate( const QDate & );
- QDate endDate();
+ void setEndDate( const TQDate & );
+ TQDate endDate();
- void setDateTimes( const QDateTime &start,
- const QDateTime &end = QDateTime() );
+ void setDateTimes( const TQDateTime &start,
+ const TQDateTime &end = TQDateTime() );
protected slots:
void showCurrentRange();
private:
- QGroupBox *mRangeGroupBox;
- QLabel *mStartDateLabel;
- QRadioButton *mNoEndDateButton;
- QRadioButton *mEndDurationButton;
- QSpinBox *mEndDurationEdit;
- QRadioButton *mEndDateButton;
+ TQGroupBox *mRangeGroupBox;
+ TQLabel *mStartDateLabel;
+ TQRadioButton *mNoEndDateButton;
+ TQRadioButton *mEndDurationButton;
+ TQSpinBox *mEndDurationEdit;
+ TQRadioButton *mEndDateButton;
KDateEdit *mEndDateEdit;
};
class RecurrenceRangeDialog : public KDialogBase, public RecurrenceRangeBase
{
public:
- RecurrenceRangeDialog( QWidget *parent = 0, const char *name = 0 );
+ RecurrenceRangeDialog( TQWidget *parent = 0, const char *name = 0 );
- void setDefaults( const QDateTime &from );
+ void setDefaults( const TQDateTime &from );
void setDuration( int );
int duration();
- void setEndDate( const QDate & );
- QDate endDate();
+ void setEndDate( const TQDate & );
+ TQDate endDate();
- void setDateTimes( const QDateTime &start,
- const QDateTime &end = QDateTime() );
+ void setDateTimes( const TQDateTime &start,
+ const TQDateTime &end = TQDateTime() );
private:
RecurrenceRangeWidget *mRecurrenceRangeWidget;
@@ -280,13 +280,13 @@ class KOEditorRecurrence : public QWidget
{
Q_OBJECT
public:
- KOEditorRecurrence ( QWidget *parent = 0, const char *name = 0 );
+ KOEditorRecurrence ( TQWidget *parent = 0, const char *name = 0 );
virtual ~KOEditorRecurrence();
enum { Daily, Weekly, Monthly, Yearly };
/** Set widgets to default values */
- void setDefaults( const QDateTime &from, const QDateTime &to, bool allday );
+ void setDefaults( const TQDateTime &from, const TQDateTime &to, bool allday );
/** Read event object and setup widgets accordingly */
void readIncidence( Incidence * );
/** Write event settings to event object */
@@ -299,11 +299,11 @@ class KOEditorRecurrence : public QWidget
public slots:
void setRecurrenceEnabled( bool );
- void setDateTimes( const QDateTime &start, const QDateTime &end );
- void setDateTimeStr( const QString & );
+ void setDateTimes( const TQDateTime &start, const TQDateTime &end );
+ void setDateTimeStr( const TQString & );
signals:
- void dateTimesChanged( const QDateTime &start, const QDateTime &end );
+ void dateTimesChanged( const TQDateTime &start, const TQDateTime &end );
protected slots:
void showCurrentRule( int );
@@ -311,13 +311,13 @@ class KOEditorRecurrence : public QWidget
void showRecurrenceRangeDialog();
private:
- QCheckBox *mEnabledCheck;
+ TQCheckBox *mEnabledCheck;
- QGroupBox *mTimeGroupBox;
- QLabel *mDateTimeLabel;
+ TQGroupBox *mTimeGroupBox;
+ TQLabel *mDateTimeLabel;
- QGroupBox *mRuleBox;
- QWidgetStack *mRuleStack;
+ TQGroupBox *mRuleBox;
+ TQWidgetStack *mRuleStack;
RecurrenceChooser *mRecurrenceChooser;
RecurDaily *mDaily;
@@ -328,21 +328,21 @@ class KOEditorRecurrence : public QWidget
RecurrenceRangeBase *mRecurrenceRange;
RecurrenceRangeWidget *mRecurrenceRangeWidget;
RecurrenceRangeDialog *mRecurrenceRangeDialog;
- QPushButton *mRecurrenceRangeButton;
+ TQPushButton *mRecurrenceRangeButton;
ExceptionsBase *mExceptions;
ExceptionsDialog *mExceptionsDialog;
ExceptionsWidget *mExceptionsWidget;
- QPushButton *mExceptionsButton;
+ TQPushButton *mExceptionsButton;
- QDateTime mEventStartDt;
+ TQDateTime mEventStartDt;
};
class KOEditorRecurrenceDialog : public KDialogBase
{
Q_OBJECT
public:
- KOEditorRecurrenceDialog( QWidget *parent );
+ KOEditorRecurrenceDialog( TQWidget *parent );
KOEditorRecurrence* editor() const { return mRecurrence; }
private: