diff options
Diffstat (limited to 'kalarm/recurrenceedit.h')
-rw-r--r-- | kalarm/recurrenceedit.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/kalarm/recurrenceedit.h b/kalarm/recurrenceedit.h index f366978db..7700877aa 100644 --- a/kalarm/recurrenceedit.h +++ b/kalarm/recurrenceedit.h @@ -24,9 +24,9 @@ #ifndef RECURRENCEEDIT_H #define RECURRENCEEDIT_H -#include <qframe.h> -#include <qdatetime.h> -#include <qvaluelist.h> +#include <tqframe.h> +#include <tqdatetime.h> +#include <tqvaluelist.h> #include "datetime.h" class QWidgetStack; @@ -60,44 +60,44 @@ class RecurrenceEdit : public QFrame // Don't alter the order of these recurrence types enum RepeatType { INVALID_RECUR = -1, NO_RECUR, AT_LOGIN, SUBDAILY, DAILY, WEEKLY, MONTHLY, ANNUAL }; - RecurrenceEdit(bool readOnly, QWidget* parent, const char* name = 0); + RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name = 0); virtual ~RecurrenceEdit() { } /** Set widgets to default values */ - void setDefaults(const QDateTime& from); + void setDefaults(const TQDateTime& from); /** Initialise according to a specified event */ void set(const KAEvent&, bool keepDuration); /** Write recurrence settings into an event */ void updateEvent(KAEvent&, bool adjustStart); - QWidget* checkData(const QDateTime& startDateTime, QString& errorMessage) const; + TQWidget* checkData(const TQDateTime& startDateTime, TQString& errorMessage) const; RepeatType repeatType() const { return mRuleButtonType; } bool isTimedRepeatType() const { return mRuleButtonType >= SUBDAILY; } int subRepeatCount(int* subRepeatInterval = 0) const; void setSubRepetition(int reminderMinutes, bool dateOnly); - void setStartDate(const QDate&, const QDate& today); - void setDefaultEndDate(const QDate&); + void setStartDate(const TQDate&, const TQDate& today); + void setDefaultEndDate(const TQDate&); void setEndDateTime(const DateTime&); DateTime endDateTime() const; bool stateChanged() const; void activateSubRepetition(); - static QString i18n_Norecur(); // text of 'No recurrence' selection, lower case - static QString i18n_NoRecur(); // text of 'No Recurrence' selection, initial capitals - static QString i18n_AtLogin(); // text of 'At Login' selection - static QString i18n_l_Atlogin(); // text of 'At &login' selection, with 'L' shortcut - static QString i18n_HourlyMinutely(); // text of 'Hourly/Minutely' - static QString i18n_u_HourlyMinutely(); // text of 'Ho&urly/Minutely' selection, with 'U' shortcut - static QString i18n_Daily(); // text of 'Daily' selection - static QString i18n_d_Daily(); // text of '&Daily' selection, with 'D' shortcut - static QString i18n_Weekly(); // text of 'Weekly' selection - static QString i18n_w_Weekly(); // text of '&Weekly' selection, with 'W' shortcut - static QString i18n_Monthly(); // text of 'Monthly' selection - static QString i18n_m_Monthly(); // text of '&Monthly' selection, with 'M' shortcut - static QString i18n_Yearly(); // text of 'Yearly' selection - static QString i18n_y_Yearly(); // text of '&Yearly' selection, with 'Y' shortcut + static TQString i18n_Norecur(); // text of 'No recurrence' selection, lower case + static TQString i18n_NoRecur(); // text of 'No Recurrence' selection, initial capitals + static TQString i18n_AtLogin(); // text of 'At Login' selection + static TQString i18n_l_Atlogin(); // text of 'At &login' selection, with 'L' shortcut + static TQString i18n_HourlyMinutely(); // text of 'Hourly/Minutely' + static TQString i18n_u_HourlyMinutely(); // text of 'Ho&urly/Minutely' selection, with 'U' shortcut + static TQString i18n_Daily(); // text of 'Daily' selection + static TQString i18n_d_Daily(); // text of '&Daily' selection, with 'D' shortcut + static TQString i18n_Weekly(); // text of 'Weekly' selection + static TQString i18n_w_Weekly(); // text of '&Weekly' selection, with 'W' shortcut + static TQString i18n_Monthly(); // text of 'Monthly' selection + static TQString i18n_m_Monthly(); // text of '&Monthly' selection, with 'M' shortcut + static TQString i18n_Yearly(); // text of 'Yearly' selection + static TQString i18n_y_Yearly(); // text of '&Yearly' selection, with 'Y' shortcut public slots: - void setDateTime(const QDateTime& start) { mCurrStartDateTime = start; } + void setDateTime(const TQDateTime& start) { mCurrStartDateTime = start; } signals: void shown(); @@ -106,7 +106,7 @@ class RecurrenceEdit : public QFrame void repeatNeedsInitialisation(); protected: - virtual void showEvent(QShowEvent*); + virtual void showEvent(TQShowEvent*); private slots: void periodClicked(int); @@ -119,11 +119,11 @@ class RecurrenceEdit : public QFrame void enableExceptionButtons(); private: - void setRuleDefaults(const QDate& start); + void setRuleDefaults(const TQDate& start); void saveState(); // Main rule box and choices - QWidgetStack* mRuleStack; + TQWidgetStack* mRuleStack; Rule* mRule; // current rule widget, or 0 if NoRule NoRule* mNoRule; SubDailyRule* mSubDailyRule; @@ -158,32 +158,32 @@ class RecurrenceEdit : public QFrame RadioButton* mNoEndDateButton; RadioButton* mRepeatCountButton; SpinBox* mRepeatCountEntry; - QLabel* mRepeatCountLabel; + TQLabel* mRepeatCountLabel; RadioButton* mEndDateButton; DateEdit* mEndDateEdit; TimeEdit* mEndTimeEdit; CheckBox* mEndAnyTimeCheckBox; // Exceptions - QGroupBox* mExceptionGroup; - QListBox* mExceptionDateList; + TQGroupBox* mExceptionGroup; + TQListBox* mExceptionDateList; DateEdit* mExceptionDateEdit; - QPushButton* mChangeExceptionButton; - QPushButton* mDeleteExceptionButton; - QValueList<QDate> mExceptionDates; + TQPushButton* mChangeExceptionButton; + TQPushButton* mDeleteExceptionButton; + TQValueList<TQDate> mExceptionDates; // Current start date and time - QDateTime mCurrStartDateTime; + TQDateTime mCurrStartDateTime; RepetitionButton* mSubRepetition; bool mNoEmitTypeChanged; // suppress typeChanged() signal bool mReadOnly; // Initial state of non-rule controls - QButton* mSavedRuleButton; // which rule button was selected - QButton* mSavedRangeButton; // which range button was selected + TQButton* mSavedRuleButton; // which rule button was selected + TQButton* mSavedRangeButton; // which range button was selected int mSavedRecurCount; // recurrence repeat count DateTime mSavedEndDateTime; // end date/time - QValueList<QDate> mSavedExceptionDates; // exception dates + TQValueList<TQDate> mSavedExceptionDates; // exception dates int mSavedRepeatInterval; // sub-repetition interval (via mSubRepetition button) int mSavedRepeatCount; // sub-repetition count (via mSubRepetition button) }; |