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 --- kalarm/editdlg.h | 140 +++++++++++++++++++++++++++---------------------------- 1 file changed, 70 insertions(+), 70 deletions(-) (limited to 'kalarm/editdlg.h') diff --git a/kalarm/editdlg.h b/kalarm/editdlg.h index 8a8f40ce9..069e873f4 100644 --- a/kalarm/editdlg.h +++ b/kalarm/editdlg.h @@ -21,8 +21,8 @@ #ifndef EDITDLG_H #define EDITDLG_H -#include -#include +#include +#include #include @@ -62,37 +62,37 @@ class EditAlarmDlg : public KDialogBase enum MessageType { MESSAGE, FILE }; enum CmdLogType { DISCARD_OUTPUT, LOG_TO_FILE, EXEC_IN_TERMINAL }; - EditAlarmDlg(bool Template, const QString& caption, QWidget* parent = 0, const char* name = 0, + EditAlarmDlg(bool Template, const TQString& caption, TQWidget* parent = 0, const char* name = 0, const KAEvent* = 0, bool readOnly = false); virtual ~EditAlarmDlg(); bool getEvent(KAEvent&); void setAction(KAEvent::Action, const AlarmText& = AlarmText()); - static CheckBox* createConfirmAckCheckbox(QWidget* parent, const char* name = 0); + static CheckBox* createConfirmAckCheckbox(TQWidget* parent, const char* name = 0); - static QString i18n_ConfirmAck(); // plain text of 'Confirm acknowledgement' checkbox - static QString i18n_k_ConfirmAck(); // text of 'Confirm acknowledgement' checkbox, with 'k' shortcut - static QString i18n_SpecialActions(); // plain text of 'Special Actions...' button - static QString i18n_ShowInKOrganizer(); // plain text of 'Show in KOrganizer' checkbox - static QString i18n_g_ShowInKOrganizer(); // text of 'Show in KOrganizer' checkbox, with 'G' shortcut - static QString i18n_EnterScript(); // plain text of 'Enter a script' checkbox - static QString i18n_p_EnterScript(); // text of 'Enter a script' checkbox, with 'P' shortcut - static QString i18n_ExecInTermWindow(); // plain text of 'Execute in terminal window' checkbox - static QString i18n_w_ExecInTermWindow(); // text of 'Execute in terminal window' radio button, with 'W' shortcut - static QString i18n_u_ExecInTermWindow(); // text of 'Execute in terminal window' radio button, with 'U' shortcut - static QString i18n_g_LogToFile(); // text of 'Log to file' radio button, with 'G' shortcut - static QString i18n_CopyEmailToSelf(); // plain text of 'Copy email to self' checkbox - static QString i18n_e_CopyEmailToSelf(); // text of 'Copy email to self' checkbox, with 'E' shortcut - static QString i18n_s_CopyEmailToSelf(); // text of 'Copy email to self' checkbox, with 'S' shortcut - static QString i18n_EmailFrom(); // plain text of 'From:' (email address) - static QString i18n_f_EmailFrom(); // text of 'From:' (email address), with 'F' shortcut - static QString i18n_EmailTo(); // plain text of 'To:' (email addressee) - static QString i18n_EmailSubject(); // plain text of 'Subject:' (email) - static QString i18n_j_EmailSubject(); // text of 'Subject:' (email), with 'J' shortcut + static TQString i18n_ConfirmAck(); // plain text of 'Confirm acknowledgement' checkbox + static TQString i18n_k_ConfirmAck(); // text of 'Confirm acknowledgement' checkbox, with 'k' shortcut + static TQString i18n_SpecialActions(); // plain text of 'Special Actions...' button + static TQString i18n_ShowInKOrganizer(); // plain text of 'Show in KOrganizer' checkbox + static TQString i18n_g_ShowInKOrganizer(); // text of 'Show in KOrganizer' checkbox, with 'G' shortcut + static TQString i18n_EnterScript(); // plain text of 'Enter a script' checkbox + static TQString i18n_p_EnterScript(); // text of 'Enter a script' checkbox, with 'P' shortcut + static TQString i18n_ExecInTermWindow(); // plain text of 'Execute in terminal window' checkbox + static TQString i18n_w_ExecInTermWindow(); // text of 'Execute in terminal window' radio button, with 'W' shortcut + static TQString i18n_u_ExecInTermWindow(); // text of 'Execute in terminal window' radio button, with 'U' shortcut + static TQString i18n_g_LogToFile(); // text of 'Log to file' radio button, with 'G' shortcut + static TQString i18n_CopyEmailToSelf(); // plain text of 'Copy email to self' checkbox + static TQString i18n_e_CopyEmailToSelf(); // text of 'Copy email to self' checkbox, with 'E' shortcut + static TQString i18n_s_CopyEmailToSelf(); // text of 'Copy email to self' checkbox, with 'S' shortcut + static TQString i18n_EmailFrom(); // plain text of 'From:' (email address) + static TQString i18n_f_EmailFrom(); // text of 'From:' (email address), with 'F' shortcut + static TQString i18n_EmailTo(); // plain text of 'To:' (email addressee) + static TQString i18n_EmailSubject(); // plain text of 'Subject:' (email) + static TQString i18n_j_EmailSubject(); // text of 'Subject:' (email), with 'J' shortcut protected: - virtual void resizeEvent(QResizeEvent*); - virtual void showEvent(QShowEvent*); + virtual void resizeEvent(TQResizeEvent*); + virtual void showEvent(TQShowEvent*); protected slots: virtual void slotOk(); virtual void slotCancel(); @@ -116,22 +116,22 @@ class EditAlarmDlg : public KDialogBase private: void initialise(const KAEvent*); void setReadOnly(); - void setEvent(KAEvent&, const QString& text, bool trial); + void setEvent(KAEvent&, const TQString& text, bool trial); KAEvent::Action getAlarmType() const; int getAlarmFlags() const; - bool checkText(QString& result, bool showErrorMessage = true) const; + bool checkText(TQString& result, bool showErrorMessage = true) const; void setSoundPicker(); void setRecurTabTitle(const KAEvent* = 0); bool checkCommandData(); bool checkEmailData(); - void initDisplayAlarms(QWidget* parent); - void initCommand(QWidget* parent); - void initEmail(QWidget* parent); + void initDisplayAlarms(TQWidget* parent); + void initCommand(TQWidget* parent); + void initEmail(TQWidget* parent); void saveState(const KAEvent*); bool stateChanged() const; - QTabWidget* mTabs; // the tabs in the dialog + TQTabWidget* mTabs; // the tabs in the dialog int mMainPageIndex; int mRecurPageIndex; bool mMainPageShown; // true once the main tab has been displayed @@ -143,10 +143,10 @@ class EditAlarmDlg : public KDialogBase RadioButton* mCommandRadio; PickAlarmFileRadio* mFileRadio; RadioButton* mEmailRadio; - QWidgetStack* mAlarmTypeStack; + TQWidgetStack* mAlarmTypeStack; // Templates - QLineEdit* mTemplateName; + TQLineEdit* mTemplateName; ButtonGroup* mTemplateTimeGroup; RadioButton* mTemplateDefaultTime; // no alarm time is specified RadioButton* mTemplateUseTimeAfter;// alarm time is specified as an offset from current @@ -156,14 +156,14 @@ class EditAlarmDlg : public KDialogBase TimeEdit* mTemplateTime; // the alarm time which is specified // Display alarm options widgets - QFrame* mDisplayAlarmsFrame; - QHBox* mFileBox; - QHBox* mFilePadding; + TQFrame* mDisplayAlarmsFrame; + TQHBox* mFileBox; + TQHBox* mFilePadding; SoundPicker* mSoundPicker; CheckBox* mConfirmAck; FontColourButton* mFontColourButton; // for text display option ColourCombo* mBgColourButton; // for file display option - QHBox* mBgColourBox; + TQHBox* mBgColourBox; SpecialActionsButton* mSpecialActionsButton; Reminder* mReminder; bool mReminderDeferral; @@ -172,32 +172,32 @@ class EditAlarmDlg : public KDialogBase TextEdit* mTextMessageEdit; // text message edit box // Text file alarm widgets LineEdit* mFileMessageEdit; // text file URL edit box - QPushButton* mFileBrowseButton; // text file browse button - QString mFileDefaultDir; // default directory for browse button + TQPushButton* mFileBrowseButton; // text file browse button + TQString mFileDefaultDir; // default directory for browse button // Command alarm widgets - QFrame* mCommandFrame; + TQFrame* mCommandFrame; CheckBox* mCmdTypeScript; // entering a script LineEdit* mCmdCommandEdit; // command line edit box TextEdit* mCmdScriptEdit; // script edit box ButtonGroup* mCmdOutputGroup; // what to do with command output LineEdit* mCmdLogFileEdit; // log file URL edit box - QWidget* mCmdPadding; + TQWidget* mCmdPadding; // Email alarm widgets - QFrame* mEmailFrame; + TQFrame* mEmailFrame; EmailIdCombo* mEmailFromList; LineEdit* mEmailToEdit; - QPushButton* mEmailAddressButton; // email open address book button - QLineEdit* mEmailSubjectEdit; + TQPushButton* mEmailAddressButton; // email open address book button + TQLineEdit* mEmailSubjectEdit; TextEdit* mEmailMessageEdit; // email body edit box - QComboBox* mEmailAttachList; - QPushButton* mEmailAddAttachButton; - QPushButton* mEmailRemoveButton; + TQComboBox* mEmailAttachList; + TQPushButton* mEmailAddAttachButton; + TQPushButton* mEmailRemoveButton; CheckBox* mEmailBcc; - QString mAttachDefaultDir; + TQString mAttachDefaultDir; - QGroupBox* mDeferGroup; - QLabel* mDeferTimeLabel; - QPushButton* mDeferChangeButton; + TQGroupBox* mDeferGroup; + TQLabel* mDeferTimeLabel; + TQPushButton* mDeferChangeButton; AlarmTimeWidget* mTimeWidget; LateCancelSelector* mLateCancel; @@ -205,11 +205,11 @@ class EditAlarmDlg : public KDialogBase RecurrenceEdit* mRecurrenceEdit; - QString mAlarmMessage; // message text/file name/command/email message + TQString mAlarmMessage; // message text/file name/command/email message DateTime mAlarmDateTime; DateTime mDeferDateTime; EmailAddressList mEmailAddresses; // list of addresses to send email to - QStringList mEmailAttachments; // list of email attachment file names + TQStringList mEmailAttachments; // list of email attachment file names unsigned long mKMailSerialNumber; // if email text, message's KMail serial number, else 0 int mDeferGroupHeight; // height added by deferred time widget int mDesktop; // desktop to display the dialog in @@ -222,34 +222,34 @@ class EditAlarmDlg : public KDialogBase // Initial state of all controls KAEvent* mSavedEvent; - QString mSavedTemplateName; // mTemplateName value - QButton* mSavedTemplateTimeType; // selected button in mTemplateTimeGroup - QTime mSavedTemplateTime; // mTemplateTime value + TQString mSavedTemplateName; // mTemplateName value + TQButton* mSavedTemplateTimeType; // selected button in mTemplateTimeGroup + TQTime mSavedTemplateTime; // mTemplateTime value int mSavedTemplateAfterTime; // mTemplateAfterTime value - QButton* mSavedTypeRadio; // mMessageRadio, etc + TQButton* mSavedTypeRadio; // mMessageRadio, etc SoundPicker::Type mSavedSoundType; // mSoundPicker sound type bool mSavedRepeatSound; // mSoundPicker repeat status - QString mSavedSoundFile; // mSoundPicker sound file + TQString mSavedSoundFile; // mSoundPicker sound file float mSavedSoundVolume; // mSoundPicker volume float mSavedSoundFadeVolume;// mSoundPicker fade volume int mSavedSoundFadeSeconds;// mSoundPicker fade time bool mSavedConfirmAck; // mConfirmAck status - QFont mSavedFont; // mFontColourButton font - QColor mSavedBgColour; // mFontColourButton background colour - QColor mSavedFgColour; // mFontColourButton foreground colour - QString mSavedPreAction; // mSpecialActionsButton pre-alarm action - QString mSavedPostAction; // mSpecialActionsButton post-alarm action + TQFont mSavedFont; // mFontColourButton font + TQColor mSavedBgColour; // mFontColourButton background colour + TQColor mSavedFgColour; // mFontColourButton foreground colour + TQString mSavedPreAction; // mSpecialActionsButton pre-alarm action + TQString mSavedPostAction; // mSpecialActionsButton post-alarm action int mSavedReminder; // mReminder value bool mSavedOnceOnly; // mReminder once-only status - QString mSavedTextFileCommandMessage; // mTextMessageEdit/mFileMessageEdit/mCmdCommandEdit/mEmailMessageEdit value - QString mSavedEmailFrom; // mEmailFromList current value - QString mSavedEmailTo; // mEmailToEdit value - QString mSavedEmailSubject; // mEmailSubjectEdit value - QStringList mSavedEmailAttach; // mEmailAttachList values + TQString mSavedTextFileCommandMessage; // mTextMessageEdit/mFileMessageEdit/mCmdCommandEdit/mEmailMessageEdit value + TQString mSavedEmailFrom; // mEmailFromList current value + TQString mSavedEmailTo; // mEmailToEdit value + TQString mSavedEmailSubject; // mEmailSubjectEdit value + TQStringList mSavedEmailAttach; // mEmailAttachList values bool mSavedEmailBcc; // mEmailBcc status bool mSavedCmdScript; // mCmdTypeScript status - QButton* mSavedCmdOutputRadio; // selected button in mCmdOutputGroup - QString mSavedCmdLogFile; // mCmdLogFileEdit value + TQButton* mSavedCmdOutputRadio; // selected button in mCmdOutputGroup + TQString mSavedCmdLogFile; // mCmdLogFileEdit value DateTime mSavedDateTime; // mTimeWidget value int mSavedRecurrenceType; // RecurrenceEdit::RepeatType value int mSavedLateCancel; // mLateCancel value -- cgit v1.2.1