summaryrefslogtreecommitdiffstats
path: root/kalarm/prefdlg.cpp
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/prefdlg.cpp
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/prefdlg.cpp')
-rw-r--r--kalarm/prefdlg.cpp480
1 files changed, 240 insertions, 240 deletions
diff --git a/kalarm/prefdlg.cpp b/kalarm/prefdlg.cpp
index 2b07c4995..ff312416d 100644
--- a/kalarm/prefdlg.cpp
+++ b/kalarm/prefdlg.cpp
@@ -20,18 +20,18 @@
#include "kalarm.h"
-#include <qobjectlist.h>
-#include <qlayout.h>
-#include <qbuttongroup.h>
-#include <qvbox.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qpushbutton.h>
-#include <qcombobox.h>
-#include <qwhatsthis.h>
-#include <qtooltip.h>
-#include <qstyle.h>
+#include <tqobjectlist.h>
+#include <tqlayout.h>
+#include <tqbuttongroup.h>
+#include <tqvbox.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqpushbutton.h>
+#include <tqcombobox.h>
+#include <tqwhatsthis.h>
+#include <tqtooltip.h>
+#include <tqstyle.h>
#include <kglobal.h>
#include <klocale.h>
@@ -80,14 +80,14 @@
// %w = command to execute in terminal, with 'sleep 86400' appended
// %C = temporary command file to execute in terminal
// %W = temporary command file to execute in terminal, with 'sleep 86400' appended
-static QString xtermCommands[] = {
- QString::fromLatin1("xterm -sb -hold -title %t -e %c"),
- QString::fromLatin1("konsole --noclose -T %t -e ${SHELL:-sh} -c %c"),
- QString::fromLatin1("gnome-terminal -t %t -e %W"),
- QString::fromLatin1("eterm --pause -T %t -e %C"), // some systems use eterm...
- QString::fromLatin1("Eterm --pause -T %t -e %C"), // while some use Eterm
- QString::fromLatin1("rxvt -title %t -e ${SHELL:-sh} -c %w"),
- QString::null // end of list indicator - don't change!
+static TQString xtermCommands[] = {
+ TQString::fromLatin1("xterm -sb -hold -title %t -e %c"),
+ TQString::fromLatin1("konsole --noclose -T %t -e ${SHELL:-sh} -c %c"),
+ TQString::fromLatin1("gnome-terminal -t %t -e %W"),
+ TQString::fromLatin1("eterm --pause -T %t -e %C"), // some systems use eterm...
+ TQString::fromLatin1("Eterm --pause -T %t -e %C"), // while some use Eterm
+ TQString::fromLatin1("rxvt -title %t -e ${SHELL:-sh} -c %w"),
+ TQString::null // end of list indicator - don't change!
};
@@ -122,7 +122,7 @@ KAlarmPrefDlg::KAlarmPrefDlg()
setWFlags(Qt::WDestructiveClose);
setIconListAllVisible(true);
- QVBox* frame = addVBoxPage(i18n("General"), i18n("General"), DesktopIcon("misc"));
+ TQVBox* frame = addVBoxPage(i18n("General"), i18n("General"), DesktopIcon("misc"));
mMiscPage = new MiscPrefTab(frame);
frame = addVBoxPage(i18n("Email"), i18n("Email Alarm Settings"), DesktopIcon("mail_generic"));
@@ -166,7 +166,7 @@ void KAlarmPrefDlg::slotHelp()
void KAlarmPrefDlg::slotApply()
{
kdDebug(5950) << "KAlarmPrefDlg::slotApply()" << endl;
- QString errmsg = mEmailPage->validate();
+ TQString errmsg = mEmailPage->validate();
if (!errmsg.isEmpty())
{
showPage(pageIndex(mEmailPage->parentWidget()));
@@ -228,12 +228,12 @@ void KAlarmPrefDlg::restore()
=============================================================================*/
int PrefsTabBase::mIndentWidth = 0;
-PrefsTabBase::PrefsTabBase(QVBox* frame)
- : QWidget(frame),
+PrefsTabBase::PrefsTabBase(TQVBox* frame)
+ : TQWidget(frame),
mPage(frame)
{
if (!mIndentWidth)
- mIndentWidth = style().subRect(QStyle::SR_RadioButtonIndicator, this).width();
+ mIndentWidth = style().subRect(TQStyle::SR_RadioButtonIndicator, this).width();
}
void PrefsTabBase::apply(bool syncToDisc)
@@ -247,24 +247,24 @@ void PrefsTabBase::apply(bool syncToDisc)
= Class MiscPrefTab
=============================================================================*/
-MiscPrefTab::MiscPrefTab(QVBox* frame)
+MiscPrefTab::MiscPrefTab(TQVBox* frame)
: PrefsTabBase(frame)
{
- // Get alignment to use in QGridLayout (AlignAuto doesn't work correctly there)
- int alignment = QApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft;
+ // Get alignment to use in TQGridLayout (AlignAuto doesn't work correctly there)
+ int alignment = TQApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft;
- QGroupBox* group = new QButtonGroup(i18n("Run Mode"), mPage, "modeGroup");
- QGridLayout* grid = new QGridLayout(group, 6, 2, KDialog::marginHint(), KDialog::spacingHint());
+ TQGroupBox* group = new TQButtonGroup(i18n("Run Mode"), mPage, "modeGroup");
+ TQGridLayout* grid = new TQGridLayout(group, 6, 2, KDialog::marginHint(), KDialog::spacingHint());
grid->setColStretch(2, 1);
grid->addColSpacing(0, indentWidth());
grid->addColSpacing(1, indentWidth());
grid->addRowSpacing(0, fontMetrics().lineSpacing()/2);
// Run-on-demand radio button
- mRunOnDemand = new QRadioButton(i18n("&Run only on demand"), group, "runDemand");
+ mRunOnDemand = new TQRadioButton(i18n("&Run only on demand"), group, "runDemand");
mRunOnDemand->setFixedSize(mRunOnDemand->sizeHint());
- connect(mRunOnDemand, SIGNAL(toggled(bool)), SLOT(slotRunModeToggled(bool)));
- QWhatsThis::add(mRunOnDemand,
+ connect(mRunOnDemand, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotRunModeToggled(bool)));
+ TQWhatsThis::add(mRunOnDemand,
i18n("Check to run KAlarm only when required.\n\n"
"Notes:\n"
"1. Alarms are displayed even when KAlarm is not running, since alarm monitoring is done by the alarm daemon.\n"
@@ -272,10 +272,10 @@ MiscPrefTab::MiscPrefTab(QVBox* frame)
grid->addMultiCellWidget(mRunOnDemand, 1, 1, 0, 2, alignment);
// Run-in-system-tray radio button
- mRunInSystemTray = new QRadioButton(i18n("Run continuously in system &tray"), group, "runTray");
+ mRunInSystemTray = new TQRadioButton(i18n("Run continuously in system &tray"), group, "runTray");
mRunInSystemTray->setFixedSize(mRunInSystemTray->sizeHint());
- connect(mRunInSystemTray, SIGNAL(toggled(bool)), SLOT(slotRunModeToggled(bool)));
- QWhatsThis::add(mRunInSystemTray,
+ connect(mRunInSystemTray, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotRunModeToggled(bool)));
+ TQWhatsThis::add(mRunInSystemTray,
i18n("Check to run KAlarm continuously in the KDE system tray.\n\n"
"Notes:\n"
"1. With this option selected, closing the system tray icon will quit KAlarm.\n"
@@ -284,117 +284,117 @@ MiscPrefTab::MiscPrefTab(QVBox* frame)
grid->addMultiCellWidget(mRunInSystemTray, 2, 2, 0, 2, alignment);
// Run continuously options
- mDisableAlarmsIfStopped = new QCheckBox(i18n("Disa&ble alarms while not running"), group, "disableAl");
+ mDisableAlarmsIfStopped = new TQCheckBox(i18n("Disa&ble alarms while not running"), group, "disableAl");
mDisableAlarmsIfStopped->setFixedSize(mDisableAlarmsIfStopped->sizeHint());
- connect(mDisableAlarmsIfStopped, SIGNAL(toggled(bool)), SLOT(slotDisableIfStoppedToggled(bool)));
- QWhatsThis::add(mDisableAlarmsIfStopped,
+ connect(mDisableAlarmsIfStopped, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotDisableIfStoppedToggled(bool)));
+ TQWhatsThis::add(mDisableAlarmsIfStopped,
i18n("Check to disable alarms whenever KAlarm is not running. Alarms will only appear while the system tray icon is visible."));
grid->addMultiCellWidget(mDisableAlarmsIfStopped, 3, 3, 1, 2, alignment);
- mQuitWarn = new QCheckBox(i18n("Warn before &quitting"), group, "disableAl");
+ mQuitWarn = new TQCheckBox(i18n("Warn before &quitting"), group, "disableAl");
mQuitWarn->setFixedSize(mQuitWarn->sizeHint());
- QWhatsThis::add(mQuitWarn,
+ TQWhatsThis::add(mQuitWarn,
i18n("Check to display a warning prompt before quitting KAlarm."));
grid->addWidget(mQuitWarn, 4, 2, alignment);
- mAutostartTrayIcon = new QCheckBox(i18n("Autostart at &login"), group, "autoTray");
+ mAutostartTrayIcon = new TQCheckBox(i18n("Autostart at &login"), group, "autoTray");
#ifdef AUTOSTART_BY_KALARMD
- connect(mAutostartTrayIcon, SIGNAL(toggled(bool)), SLOT(slotAutostartToggled(bool)));
+ connect(mAutostartTrayIcon, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotAutostartToggled(bool)));
#endif
grid->addMultiCellWidget(mAutostartTrayIcon, 5, 5, 0, 2, alignment);
// Autostart alarm daemon
- mAutostartDaemon = new QCheckBox(i18n("Start alarm monitoring at lo&gin"), group, "startDaemon");
+ mAutostartDaemon = new TQCheckBox(i18n("Start alarm monitoring at lo&gin"), group, "startDaemon");
mAutostartDaemon->setFixedSize(mAutostartDaemon->sizeHint());
- connect(mAutostartDaemon, SIGNAL(clicked()), SLOT(slotAutostartDaemonClicked()));
- QWhatsThis::add(mAutostartDaemon,
+ connect(mAutostartDaemon, TQT_SIGNAL(clicked()), TQT_SLOT(slotAutostartDaemonClicked()));
+ TQWhatsThis::add(mAutostartDaemon,
i18n("Automatically start alarm monitoring whenever you start KDE, by running the alarm daemon (%1).\n\n"
"This option should always be checked unless you intend to discontinue use of KAlarm.")
- .arg(QString::fromLatin1(DAEMON_APP_NAME)));
+ .arg(TQString::fromLatin1(DAEMON_APP_NAME)));
grid->addMultiCellWidget(mAutostartDaemon, 6, 6, 0, 2, alignment);
group->setFixedHeight(group->sizeHint().height());
// Start-of-day time
- QHBox* itemBox = new QHBox(mPage);
- QHBox* box = new QHBox(itemBox); // this is to control the QWhatsThis text display area
+ TQHBox* itemBox = new TQHBox(mPage);
+ TQHBox* box = new TQHBox(itemBox); // this is to control the TQWhatsThis text display area
box->setSpacing(KDialog::spacingHint());
- QLabel* label = new QLabel(i18n("&Start of day for date-only alarms:"), box);
+ TQLabel* label = new TQLabel(i18n("&Start of day for date-only alarms:"), box);
mStartOfDay = new TimeEdit(box);
mStartOfDay->setFixedSize(mStartOfDay->sizeHint());
label->setBuddy(mStartOfDay);
- static const QString startOfDayText = i18n("The earliest time of day at which a date-only alarm (i.e. "
+ static const TQString startOfDayText = i18n("The earliest time of day at which a date-only alarm (i.e. "
"an alarm with \"any time\" specified) will be triggered.");
- QWhatsThis::add(box, QString("%1\n\n%2").arg(startOfDayText).arg(TimeSpinBox::shiftWhatsThis()));
- itemBox->setStretchFactor(new QWidget(itemBox), 1); // left adjust the controls
+ TQWhatsThis::add(box, TQString("%1\n\n%2").arg(startOfDayText).arg(TimeSpinBox::shiftWhatsThis()));
+ itemBox->setStretchFactor(new TQWidget(itemBox), 1); // left adjust the controls
itemBox->setFixedHeight(box->sizeHint().height());
// Confirm alarm deletion?
- itemBox = new QHBox(mPage); // this is to allow left adjustment
- mConfirmAlarmDeletion = new QCheckBox(i18n("Con&firm alarm deletions"), itemBox, "confirmDeletion");
+ itemBox = new TQHBox(mPage); // this is to allow left adjustment
+ mConfirmAlarmDeletion = new TQCheckBox(i18n("Con&firm alarm deletions"), itemBox, "confirmDeletion");
mConfirmAlarmDeletion->setMinimumSize(mConfirmAlarmDeletion->sizeHint());
- QWhatsThis::add(mConfirmAlarmDeletion,
+ TQWhatsThis::add(mConfirmAlarmDeletion,
i18n("Check to be prompted for confirmation each time you delete an alarm."));
- itemBox->setStretchFactor(new QWidget(itemBox), 1); // left adjust the controls
+ itemBox->setStretchFactor(new TQWidget(itemBox), 1); // left adjust the controls
itemBox->setFixedHeight(itemBox->sizeHint().height());
// Expired alarms
- group = new QGroupBox(i18n("Expired Alarms"), mPage);
- grid = new QGridLayout(group, 2, 2, KDialog::marginHint(), KDialog::spacingHint());
+ group = new TQGroupBox(i18n("Expired Alarms"), mPage);
+ grid = new TQGridLayout(group, 2, 2, KDialog::marginHint(), KDialog::spacingHint());
grid->setColStretch(1, 1);
grid->addColSpacing(0, indentWidth());
grid->addRowSpacing(0, fontMetrics().lineSpacing()/2);
- mKeepExpired = new QCheckBox(i18n("Keep alarms after e&xpiry"), group, "keepExpired");
+ mKeepExpired = new TQCheckBox(i18n("Keep alarms after e&xpiry"), group, "keepExpired");
mKeepExpired->setFixedSize(mKeepExpired->sizeHint());
- connect(mKeepExpired, SIGNAL(toggled(bool)), SLOT(slotExpiredToggled(bool)));
- QWhatsThis::add(mKeepExpired,
+ connect(mKeepExpired, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotExpiredToggled(bool)));
+ TQWhatsThis::add(mKeepExpired,
i18n("Check to store alarms after expiry or deletion (except deleted alarms which were never triggered)."));
grid->addMultiCellWidget(mKeepExpired, 1, 1, 0, 1, alignment);
- box = new QHBox(group);
+ box = new TQHBox(group);
box->setSpacing(KDialog::spacingHint());
- mPurgeExpired = new QCheckBox(i18n("Discard ex&pired alarms after:"), box, "purgeExpired");
+ mPurgeExpired = new TQCheckBox(i18n("Discard ex&pired alarms after:"), box, "purgeExpired");
mPurgeExpired->setMinimumSize(mPurgeExpired->sizeHint());
- connect(mPurgeExpired, SIGNAL(toggled(bool)), SLOT(slotExpiredToggled(bool)));
+ connect(mPurgeExpired, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotExpiredToggled(bool)));
mPurgeAfter = new SpinBox(box);
mPurgeAfter->setMinValue(1);
mPurgeAfter->setLineShiftStep(10);
mPurgeAfter->setMinimumSize(mPurgeAfter->sizeHint());
- mPurgeAfterLabel = new QLabel(i18n("da&ys"), box);
+ mPurgeAfterLabel = new TQLabel(i18n("da&ys"), box);
mPurgeAfterLabel->setMinimumSize(mPurgeAfterLabel->sizeHint());
mPurgeAfterLabel->setBuddy(mPurgeAfter);
- QWhatsThis::add(box,
+ TQWhatsThis::add(box,
i18n("Uncheck to store expired alarms indefinitely. Check to enter how long expired alarms should be stored."));
grid->addWidget(box, 2, 1, alignment);
- mClearExpired = new QPushButton(i18n("Clear Expired Alar&ms"), group);
+ mClearExpired = new TQPushButton(i18n("Clear Expired Alar&ms"), group);
mClearExpired->setFixedSize(mClearExpired->sizeHint());
- connect(mClearExpired, SIGNAL(clicked()), SLOT(slotClearExpired()));
- QWhatsThis::add(mClearExpired,
+ connect(mClearExpired, TQT_SIGNAL(clicked()), TQT_SLOT(slotClearExpired()));
+ TQWhatsThis::add(mClearExpired,
i18n("Delete all existing expired alarms."));
grid->addWidget(mClearExpired, 3, 1, alignment);
group->setFixedHeight(group->sizeHint().height());
// Terminal window to use for command alarms
- group = new QGroupBox(i18n("Terminal for Command Alarms"), mPage);
- QWhatsThis::add(group,
+ group = new TQGroupBox(i18n("Terminal for Command Alarms"), mPage);
+ TQWhatsThis::add(group,
i18n("Choose which application to use when a command alarm is executed in a terminal window"));
- grid = new QGridLayout(group, 1, 3, KDialog::marginHint(), KDialog::spacingHint());
+ grid = new TQGridLayout(group, 1, 3, KDialog::marginHint(), KDialog::spacingHint());
grid->addRowSpacing(0, fontMetrics().lineSpacing()/2);
int row = 0;
- mXtermType = new QButtonGroup(group);
+ mXtermType = new TQButtonGroup(group);
mXtermType->hide();
- QString whatsThis = i18n("The parameter is a command line, e.g. 'xterm -e'", "Check to execute command alarms in a terminal window by '%1'");
+ TQString whatsThis = i18n("The parameter is a command line, e.g. 'xterm -e'", "Check to execute command alarms in a terminal window by '%1'");
int index = 0;
mXtermFirst = -1;
for (mXtermCount = 0; !xtermCommands[mXtermCount].isNull(); ++mXtermCount)
{
- QString cmd = xtermCommands[mXtermCount];
- QStringList args = KShell::splitArgs(cmd);
+ TQString cmd = xtermCommands[mXtermCount];
+ TQStringList args = KShell::splitArgs(cmd);
if (args.isEmpty() || KStandardDirs::findExe(args[0]).isEmpty())
continue;
- QRadioButton* radio = new QRadioButton(args[0], group);
+ TQRadioButton* radio = new TQRadioButton(args[0], group);
radio->setMinimumSize(radio->sizeHint());
mXtermType->insert(radio, mXtermCount);
if (mXtermFirst < 0)
@@ -404,26 +404,26 @@ MiscPrefTab::MiscPrefTab(QVBox* frame)
cmd.replace("%w", "<command; sleep>");
cmd.replace("%C", "[command]");
cmd.replace("%W", "[command; sleep]");
- QWhatsThis::add(radio, whatsThis.arg(cmd));
+ TQWhatsThis::add(radio, whatsThis.arg(cmd));
grid->addWidget(radio, (row = index/3 + 1), index % 3, Qt::AlignAuto);
++index;
}
- box = new QHBox(group);
+ box = new TQHBox(group);
grid->addMultiCellWidget(box, row + 1, row + 1, 0, 2, Qt::AlignAuto);
- QRadioButton* radio = new QRadioButton(i18n("Other:"), box);
+ TQRadioButton* radio = new TQRadioButton(i18n("Other:"), box);
radio->setFixedSize(radio->sizeHint());
- connect(radio, SIGNAL(toggled(bool)), SLOT(slotOtherTerminalToggled(bool)));
+ connect(radio, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotOtherTerminalToggled(bool)));
mXtermType->insert(radio, mXtermCount);
if (mXtermFirst < 0)
mXtermFirst = mXtermCount; // note the id of the first button
- mXtermCommand = new QLineEdit(box);
- QWhatsThis::add(box,
+ mXtermCommand = new TQLineEdit(box);
+ TQWhatsThis::add(box,
i18n("Enter the full command line needed to execute a command in your chosen terminal window. "
"By default the alarm's command string will be appended to what you enter here. "
"See the KAlarm Handbook for details of special codes to tailor the command line."));
- mPage->setStretchFactor(new QWidget(mPage), 1); // top adjust the widgets
+ mPage->setStretchFactor(new TQWidget(mPage), 1); // top adjust the widgets
}
void MiscPrefTab::restore()
@@ -438,7 +438,7 @@ void MiscPrefTab::restore()
mConfirmAlarmDeletion->setChecked(Preferences::confirmAlarmDeletion());
mStartOfDay->setValue(Preferences::mStartOfDay);
setExpiredControls(Preferences::mExpiredKeepDays);
- QString xtermCmd = Preferences::cmdXTermCommand();
+ TQString xtermCmd = Preferences::cmdXTermCommand();
int id = mXtermFirst;
if (!xtermCmd.isEmpty())
{
@@ -460,13 +460,13 @@ void MiscPrefTab::apply(bool syncToDisc)
int xtermID = mXtermType->selectedId();
if (xtermID >= mXtermCount)
{
- QString cmd = mXtermCommand->text();
+ TQString cmd = mXtermCommand->text();
if (cmd.isEmpty())
xtermID = -1; // 'Other' is only acceptable if it's non-blank
else
{
- QStringList args = KShell::splitArgs(cmd);
- cmd = args.isEmpty() ? QString::null : args[0];
+ TQStringList args = KShell::splitArgs(cmd);
+ cmd = args.isEmpty() ? TQString::null : args[0];
if (KStandardDirs::findExe(cmd).isEmpty())
{
mXtermCommand->setFocus();
@@ -526,7 +526,7 @@ void MiscPrefTab::slotAutostartDaemonClicked()
if (!mAutostartDaemon->isChecked()
&& KMessageBox::warningYesNo(this,
i18n("You should not uncheck this option unless you intend to discontinue use of KAlarm"),
- QString::null, KStdGuiItem::cont(), KStdGuiItem::cancel()
+ TQString::null, KStdGuiItem::cont(), KStdGuiItem::cancel()
) != KMessageBox::Yes)
mAutostartDaemon->setChecked(true);
}
@@ -535,7 +535,7 @@ void MiscPrefTab::slotRunModeToggled(bool)
{
bool systray = mRunInSystemTray->isOn();
mAutostartTrayIcon->setText(systray ? i18n("Autostart at &login") : i18n("Autostart system tray &icon at login"));
- QWhatsThis::add(mAutostartTrayIcon, (systray ? i18n("Check to run KAlarm whenever you start KDE.")
+ TQWhatsThis::add(mAutostartTrayIcon, (systray ? i18n("Check to run KAlarm whenever you start KDE.")
: i18n("Check to display the system tray icon whenever you start KDE.")));
mDisableAlarmsIfStopped->setEnabled(systray);
slotDisableIfStoppedToggled(true);
@@ -593,14 +593,14 @@ void MiscPrefTab::slotOtherTerminalToggled(bool on)
= Class EmailPrefTab
=============================================================================*/
-EmailPrefTab::EmailPrefTab(QVBox* frame)
+EmailPrefTab::EmailPrefTab(TQVBox* frame)
: PrefsTabBase(frame),
mAddressChanged(false),
mBccAddressChanged(false)
{
- QHBox* box = new QHBox(mPage);
+ TQHBox* box = new TQHBox(mPage);
box->setSpacing(2*KDialog::spacingHint());
- QLabel* label = new QLabel(i18n("Email client:"), box);
+ TQLabel* label = new TQLabel(i18n("Email client:"), box);
mEmailClient = new ButtonGroup(box);
mEmailClient->hide();
RadioButton* radio = new RadioButton(i18n("&KMail"), box, "kmail");
@@ -609,25 +609,25 @@ EmailPrefTab::EmailPrefTab(QVBox* frame)
radio = new RadioButton(i18n("&Sendmail"), box, "sendmail");
radio->setMinimumSize(radio->sizeHint());
mEmailClient->insert(radio, Preferences::SENDMAIL);
- connect(mEmailClient, SIGNAL(buttonSet(int)), SLOT(slotEmailClientChanged(int)));
+ connect(mEmailClient, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(slotEmailClientChanged(int)));
box->setFixedHeight(box->sizeHint().height());
- QWhatsThis::add(box,
+ TQWhatsThis::add(box,
i18n("Choose how to send email when an email alarm is triggered.\n"
"KMail: The email is sent automatically via KMail. KMail is started first if necessary.\n"
"Sendmail: The email is sent automatically. This option will only work if "
"your system is configured to use sendmail or a sendmail compatible mail transport agent."));
- box = new QHBox(mPage); // this is to allow left adjustment
- mEmailCopyToKMail = new QCheckBox(i18n("Co&py sent emails into KMail's %1 folder").arg(KAMail::i18n_sent_mail()), box);
+ box = new TQHBox(mPage); // this is to allow left adjustment
+ mEmailCopyToKMail = new TQCheckBox(i18n("Co&py sent emails into KMail's %1 folder").arg(KAMail::i18n_sent_mail()), box);
mEmailCopyToKMail->setFixedSize(mEmailCopyToKMail->sizeHint());
- QWhatsThis::add(mEmailCopyToKMail,
+ TQWhatsThis::add(mEmailCopyToKMail,
i18n("After sending an email, store a copy in KMail's %1 folder").arg(KAMail::i18n_sent_mail()));
- box->setStretchFactor(new QWidget(box), 1); // left adjust the controls
+ box->setStretchFactor(new TQWidget(box), 1); // left adjust the controls
box->setFixedHeight(box->sizeHint().height());
// Your Email Address group box
- QGroupBox* group = new QGroupBox(i18n("Your Email Address"), mPage);
- QGridLayout* grid = new QGridLayout(group, 6, 3, KDialog::marginHint(), KDialog::spacingHint());
+ TQGroupBox* group = new TQGroupBox(i18n("Your Email Address"), mPage);
+ TQGridLayout* grid = new TQGridLayout(group, 6, 3, KDialog::marginHint(), KDialog::spacingHint());
grid->addRowSpacing(0, fontMetrics().lineSpacing()/2);
grid->setColStretch(1, 1);
@@ -637,7 +637,7 @@ EmailPrefTab::EmailPrefTab(QVBox* frame)
grid->addWidget(label, 1, 0);
mFromAddressGroup = new ButtonGroup(group);
mFromAddressGroup->hide();
- connect(mFromAddressGroup, SIGNAL(buttonSet(int)), SLOT(slotFromAddrChanged(int)));
+ connect(mFromAddressGroup, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(slotFromAddrChanged(int)));
// Line edit to enter a 'From' email address
radio = new RadioButton(group);
@@ -645,11 +645,11 @@ EmailPrefTab::EmailPrefTab(QVBox* frame)
radio->setFixedSize(radio->sizeHint());
label->setBuddy(radio);
grid->addWidget(radio, 1, 1);
- mEmailAddress = new QLineEdit(group);
- connect(mEmailAddress, SIGNAL(textChanged(const QString&)), SLOT(slotAddressChanged()));
- QString whatsThis = i18n("Your email address, used to identify you as the sender when sending email alarms.");
- QWhatsThis::add(radio, whatsThis);
- QWhatsThis::add(mEmailAddress, whatsThis);
+ mEmailAddress = new TQLineEdit(group);
+ connect(mEmailAddress, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotAddressChanged()));
+ TQString whatsThis = i18n("Your email address, used to identify you as the sender when sending email alarms.");
+ TQWhatsThis::add(radio, whatsThis);
+ TQWhatsThis::add(mEmailAddress, whatsThis);
radio->setFocusWidget(mEmailAddress);
grid->addWidget(mEmailAddress, 1, 2);
@@ -657,7 +657,7 @@ EmailPrefTab::EmailPrefTab(QVBox* frame)
radio = new RadioButton(i18n("&Use address from Control Center"), group);
radio->setFixedSize(radio->sizeHint());
mFromAddressGroup->insert(radio, Preferences::MAIL_FROM_CONTROL_CENTRE);
- QWhatsThis::add(radio,
+ TQWhatsThis::add(radio,
i18n("Check to use the email address set in the KDE Control Center, to identify you as the sender when sending email alarms."));
grid->addMultiCellWidget(radio, 2, 2, 1, 2, Qt::AlignAuto);
@@ -665,7 +665,7 @@ EmailPrefTab::EmailPrefTab(QVBox* frame)
radio = new RadioButton(i18n("Use KMail &identities"), group);
radio->setFixedSize(radio->sizeHint());
mFromAddressGroup->insert(radio, Preferences::MAIL_FROM_KMAIL);
- QWhatsThis::add(radio,
+ TQWhatsThis::add(radio,
i18n("Check to use KMail's email identities to identify you as the sender when sending email alarms. "
"For existing email alarms, KMail's default identity will be used. "
"For new email alarms, you will be able to pick which of KMail's identities to use."));
@@ -678,7 +678,7 @@ EmailPrefTab::EmailPrefTab(QVBox* frame)
grid->addWidget(label, 5, 0);
mBccAddressGroup = new ButtonGroup(group);
mBccAddressGroup->hide();
- connect(mBccAddressGroup, SIGNAL(buttonSet(int)), SLOT(slotBccAddrChanged(int)));
+ connect(mBccAddressGroup, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(slotBccAddrChanged(int)));
// Line edit to enter a 'Bcc' email address
radio = new RadioButton(group);
@@ -686,11 +686,11 @@ EmailPrefTab::EmailPrefTab(QVBox* frame)
mBccAddressGroup->insert(radio, Preferences::MAIL_FROM_ADDR);
label->setBuddy(radio);
grid->addWidget(radio, 5, 1);
- mEmailBccAddress = new QLineEdit(group);
+ mEmailBccAddress = new TQLineEdit(group);
whatsThis = i18n("Your email address, used for blind copying email alarms to yourself. "
"If you want blind copies to be sent to your account on the computer which KAlarm runs on, you can simply enter your user login name.");
- QWhatsThis::add(radio, whatsThis);
- QWhatsThis::add(mEmailBccAddress, whatsThis);
+ TQWhatsThis::add(radio, whatsThis);
+ TQWhatsThis::add(mEmailBccAddress, whatsThis);
radio->setFocusWidget(mEmailBccAddress);
grid->addWidget(mEmailBccAddress, 5, 2);
@@ -698,22 +698,22 @@ EmailPrefTab::EmailPrefTab(QVBox* frame)
radio = new RadioButton(i18n("Us&e address from Control Center"), group);
radio->setFixedSize(radio->sizeHint());
mBccAddressGroup->insert(radio, Preferences::MAIL_FROM_CONTROL_CENTRE);
- QWhatsThis::add(radio,
+ TQWhatsThis::add(radio,
i18n("Check to use the email address set in the KDE Control Center, for blind copying email alarms to yourself."));
grid->addMultiCellWidget(radio, 6, 6, 1, 2, Qt::AlignAuto);
group->setFixedHeight(group->sizeHint().height());
- box = new QHBox(mPage); // this is to allow left adjustment
- mEmailQueuedNotify = new QCheckBox(i18n("&Notify when remote emails are queued"), box);
+ box = new TQHBox(mPage); // this is to allow left adjustment
+ mEmailQueuedNotify = new TQCheckBox(i18n("&Notify when remote emails are queued"), box);
mEmailQueuedNotify->setFixedSize(mEmailQueuedNotify->sizeHint());
- QWhatsThis::add(mEmailQueuedNotify,
+ TQWhatsThis::add(mEmailQueuedNotify,
i18n("Display a notification message whenever an email alarm has queued an email for sending to a remote system. "
"This could be useful if, for example, you have a dial-up connection, so that you can then ensure that the email is actually transmitted."));
- box->setStretchFactor(new QWidget(box), 1); // left adjust the controls
+ box->setStretchFactor(new TQWidget(box), 1); // left adjust the controls
box->setFixedHeight(box->sizeHint().height());
- mPage->setStretchFactor(new QWidget(mPage), 1); // top adjust the widgets
+ mPage->setStretchFactor(new TQWidget(mPage), 1); // top adjust the widgets
}
void EmailPrefTab::restore()
@@ -745,16 +745,16 @@ void EmailPrefTab::setDefaults()
mEmailQueuedNotify->setChecked(Preferences::default_emailQueuedNotify);
}
-void EmailPrefTab::setEmailAddress(Preferences::MailFrom from, const QString& address)
+void EmailPrefTab::setEmailAddress(Preferences::MailFrom from, const TQString& address)
{
mFromAddressGroup->setButton(from);
- mEmailAddress->setText(from == Preferences::MAIL_FROM_ADDR ? address.stripWhiteSpace() : QString());
+ mEmailAddress->setText(from == Preferences::MAIL_FROM_ADDR ? address.stripWhiteSpace() : TQString());
}
-void EmailPrefTab::setEmailBccAddress(bool useControlCentre, const QString& address)
+void EmailPrefTab::setEmailBccAddress(bool useControlCentre, const TQString& address)
{
mBccAddressGroup->setButton(useControlCentre ? Preferences::MAIL_FROM_CONTROL_CENTRE : Preferences::MAIL_FROM_ADDR);
- mEmailBccAddress->setText(useControlCentre ? QString() : address.stripWhiteSpace());
+ mEmailBccAddress->setText(useControlCentre ? TQString() : address.stripWhiteSpace());
}
void EmailPrefTab::slotEmailClientChanged(int id)
@@ -774,12 +774,12 @@ void EmailPrefTab::slotBccAddrChanged(int id)
mBccAddressChanged = true;
}
-QString EmailPrefTab::validate()
+TQString EmailPrefTab::validate()
{
if (mAddressChanged)
{
mAddressChanged = false;
- QString errmsg = validateAddr(mFromAddressGroup, mEmailAddress, KAMail::i18n_NeedFromEmailAddress());
+ TQString errmsg = validateAddr(mFromAddressGroup, mEmailAddress, KAMail::i18n_NeedFromEmailAddress());
if (!errmsg.isEmpty())
return errmsg;
}
@@ -788,27 +788,27 @@ QString EmailPrefTab::validate()
mBccAddressChanged = false;
return validateAddr(mBccAddressGroup, mEmailBccAddress, i18n("No valid 'Bcc' email address is specified."));
}
- return QString::null;
+ return TQString::null;
}
-QString EmailPrefTab::validateAddr(ButtonGroup* group, QLineEdit* addr, const QString& msg)
+TQString EmailPrefTab::validateAddr(ButtonGroup* group, TQLineEdit* addr, const TQString& msg)
{
- QString errmsg = i18n("%1\nAre you sure you want to save your changes?").arg(msg);
+ TQString errmsg = i18n("%1\nAre you sure you want to save your changes?").arg(msg);
switch (group->selectedId())
{
case Preferences::MAIL_FROM_CONTROL_CENTRE:
if (!KAMail::controlCentreAddress().isEmpty())
- return QString::null;
+ return TQString::null;
errmsg = i18n("No email address is currently set in the KDE Control Center. %1").arg(errmsg);
break;
case Preferences::MAIL_FROM_KMAIL:
if (KAMail::identitiesExist())
- return QString::null;
+ return TQString::null;
errmsg = i18n("No KMail identities currently exist. %1").arg(errmsg);
break;
case Preferences::MAIL_FROM_ADDR:
if (!addr->text().stripWhiteSpace().isEmpty())
- return QString::null;
+ return TQString::null;
break;
}
return errmsg;
@@ -819,35 +819,35 @@ QString EmailPrefTab::validateAddr(ButtonGroup* group, QLineEdit* addr, const QS
= Class FontColourPrefTab
=============================================================================*/
-FontColourPrefTab::FontColourPrefTab(QVBox* frame)
+FontColourPrefTab::FontColourPrefTab(TQVBox* frame)
: PrefsTabBase(frame)
{
- mFontChooser = new FontColourChooser(mPage, 0, false, QStringList(), i18n("Message Font && Color"), true, false);
+ mFontChooser = new FontColourChooser(mPage, 0, false, TQStringList(), i18n("Message Font && Color"), true, false);
mPage->setStretchFactor(mFontChooser, 1);
- QFrame* layoutBox = new QFrame(mPage);
- QHBoxLayout* hlayout = new QHBoxLayout(layoutBox);
- QVBoxLayout* colourLayout = new QVBoxLayout(hlayout, KDialog::spacingHint());
+ TQFrame* layoutBox = new TQFrame(mPage);
+ TQHBoxLayout* hlayout = new TQHBoxLayout(layoutBox);
+ TQVBoxLayout* colourLayout = new TQVBoxLayout(hlayout, KDialog::spacingHint());
hlayout->addStretch();
- QHBox* box = new QHBox(layoutBox); // to group widgets for QWhatsThis text
+ TQHBox* box = new TQHBox(layoutBox); // to group widgets for TQWhatsThis text
box->setSpacing(KDialog::spacingHint()/2);
colourLayout->addWidget(box);
- QLabel* label1 = new QLabel(i18n("Di&sabled alarm color:"), box);
- box->setStretchFactor(new QWidget(box), 1);
+ TQLabel* label1 = new TQLabel(i18n("Di&sabled alarm color:"), box);
+ box->setStretchFactor(new TQWidget(box), 1);
mDisabledColour = new KColorCombo(box);
label1->setBuddy(mDisabledColour);
- QWhatsThis::add(box,
+ TQWhatsThis::add(box,
i18n("Choose the text color in the alarm list for disabled alarms."));
- box = new QHBox(layoutBox); // to group widgets for QWhatsThis text
+ box = new TQHBox(layoutBox); // to group widgets for TQWhatsThis text
box->setSpacing(KDialog::spacingHint()/2);
colourLayout->addWidget(box);
- QLabel* label2 = new QLabel(i18n("E&xpired alarm color:"), box);
- box->setStretchFactor(new QWidget(box), 1);
+ TQLabel* label2 = new TQLabel(i18n("E&xpired alarm color:"), box);
+ box->setStretchFactor(new TQWidget(box), 1);
mExpiredColour = new KColorCombo(box);
label2->setBuddy(mExpiredColour);
- QWhatsThis::add(box,
+ TQWhatsThis::add(box,
i18n("Choose the text color in the alarm list for expired alarms."));
}
@@ -884,140 +884,140 @@ void FontColourPrefTab::setDefaults()
= Class EditPrefTab
=============================================================================*/
-EditPrefTab::EditPrefTab(QVBox* frame)
+EditPrefTab::EditPrefTab(TQVBox* frame)
: PrefsTabBase(frame)
{
- // Get alignment to use in QLabel::setAlignment(alignment | Qt::WordBreak)
+ // Get alignment to use in TQLabel::setAlignment(alignment | Qt::WordBreak)
// (AlignAuto doesn't work correctly there)
- int alignment = QApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft;
+ int alignment = TQApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft;
int groupTopMargin = fontMetrics().lineSpacing()/2;
- QString defsetting = i18n("The default setting for \"%1\" in the alarm edit dialog.");
- QString soundSetting = i18n("Check to select %1 as the default setting for \"%2\" in the alarm edit dialog.");
+ TQString defsetting = i18n("The default setting for \"%1\" in the alarm edit dialog.");
+ TQString soundSetting = i18n("Check to select %1 as the default setting for \"%2\" in the alarm edit dialog.");
// DISPLAY ALARMS
- QGroupBox* group = new QGroupBox(i18n("Display Alarms"), mPage);
- QBoxLayout* layout = new QVBoxLayout(group, KDialog::marginHint(), KDialog::spacingHint());
+ TQGroupBox* group = new TQGroupBox(i18n("Display Alarms"), mPage);
+ TQBoxLayout* layout = new TQVBoxLayout(group, KDialog::marginHint(), KDialog::spacingHint());
layout->addSpacing(groupTopMargin);
- mConfirmAck = new QCheckBox(EditAlarmDlg::i18n_k_ConfirmAck(), group, "defConfAck");
+ mConfirmAck = new TQCheckBox(EditAlarmDlg::i18n_k_ConfirmAck(), group, "defConfAck");
mConfirmAck->setMinimumSize(mConfirmAck->sizeHint());
- QWhatsThis::add(mConfirmAck, defsetting.arg(EditAlarmDlg::i18n_ConfirmAck()));
+ TQWhatsThis::add(mConfirmAck, defsetting.arg(EditAlarmDlg::i18n_ConfirmAck()));
layout->addWidget(mConfirmAck, 0, Qt::AlignAuto);
- mAutoClose = new QCheckBox(LateCancelSelector::i18n_i_AutoCloseWinLC(), group, "defAutoClose");
+ mAutoClose = new TQCheckBox(LateCancelSelector::i18n_i_AutoCloseWinLC(), group, "defAutoClose");
mAutoClose->setMinimumSize(mAutoClose->sizeHint());
- QWhatsThis::add(mAutoClose, defsetting.arg(LateCancelSelector::i18n_AutoCloseWin()));
+ TQWhatsThis::add(mAutoClose, defsetting.arg(LateCancelSelector::i18n_AutoCloseWin()));
layout->addWidget(mAutoClose, 0, Qt::AlignAuto);
- QHBox* box = new QHBox(group);
+ TQHBox* box = new TQHBox(group);
box->setSpacing(KDialog::spacingHint());
layout->addWidget(box);
- QLabel* label = new QLabel(i18n("Reminder &units:"), box);
+ TQLabel* label = new TQLabel(i18n("Reminder &units:"), box);
label->setFixedSize(label->sizeHint());
- mReminderUnits = new QComboBox(box, "defWarnUnits");
+ mReminderUnits = new TQComboBox(box, "defWarnUnits");
mReminderUnits->insertItem(TimePeriod::i18n_Minutes(), TimePeriod::MINUTES);
mReminderUnits->insertItem(TimePeriod::i18n_Hours_Mins(), TimePeriod::HOURS_MINUTES);
mReminderUnits->insertItem(TimePeriod::i18n_Days(), TimePeriod::DAYS);
mReminderUnits->insertItem(TimePeriod::i18n_Weeks(), TimePeriod::WEEKS);
mReminderUnits->setFixedSize(mReminderUnits->sizeHint());
label->setBuddy(mReminderUnits);
- QWhatsThis::add(box,
+ TQWhatsThis::add(box,
i18n("The default units for the reminder in the alarm edit dialog."));
- box->setStretchFactor(new QWidget(box), 1); // left adjust the control
+ box->setStretchFactor(new TQWidget(box), 1); // left adjust the control
mSpecialActionsButton = new SpecialActionsButton(EditAlarmDlg::i18n_SpecialActions(), box);
mSpecialActionsButton->setFixedSize(mSpecialActionsButton->sizeHint());
// SOUND
- QButtonGroup* bgroup = new QButtonGroup(SoundPicker::i18n_Sound(), mPage, "soundGroup");
- layout = new QVBoxLayout(bgroup, KDialog::marginHint(), KDialog::spacingHint());
+ TQButtonGroup* bgroup = new TQButtonGroup(SoundPicker::i18n_Sound(), mPage, "soundGroup");
+ layout = new TQVBoxLayout(bgroup, KDialog::marginHint(), KDialog::spacingHint());
layout->addSpacing(groupTopMargin);
- QBoxLayout* hlayout = new QHBoxLayout(layout, KDialog::spacingHint());
- mSound = new QComboBox(false, bgroup, "defSound");
+ TQBoxLayout* hlayout = new TQHBoxLayout(layout, KDialog::spacingHint());
+ mSound = new TQComboBox(false, bgroup, "defSound");
mSound->insertItem(SoundPicker::i18n_None()); // index 0
mSound->insertItem(SoundPicker::i18n_Beep()); // index 1
mSound->insertItem(SoundPicker::i18n_File()); // index 2
if (theApp()->speechEnabled())
mSound->insertItem(SoundPicker::i18n_Speak()); // index 3
mSound->setMinimumSize(mSound->sizeHint());
- QWhatsThis::add(mSound, defsetting.arg(SoundPicker::i18n_Sound()));
+ TQWhatsThis::add(mSound, defsetting.arg(SoundPicker::i18n_Sound()));
hlayout->addWidget(mSound);
hlayout->addStretch(1);
#ifndef WITHOUT_ARTS
- mSoundRepeat = new QCheckBox(i18n("Repea&t sound file"), bgroup, "defRepeatSound");
+ mSoundRepeat = new TQCheckBox(i18n("Repea&t sound file"), bgroup, "defRepeatSound");
mSoundRepeat->setMinimumSize(mSoundRepeat->sizeHint());
- QWhatsThis::add(mSoundRepeat, i18n("sound file \"Repeat\" checkbox", "The default setting for sound file \"%1\" in the alarm edit dialog.").arg(SoundDlg::i18n_Repeat()));
+ TQWhatsThis::add(mSoundRepeat, i18n("sound file \"Repeat\" checkbox", "The default setting for sound file \"%1\" in the alarm edit dialog.").arg(SoundDlg::i18n_Repeat()));
hlayout->addWidget(mSoundRepeat);
#endif
- box = new QHBox(bgroup); // this is to control the QWhatsThis text display area
+ box = new TQHBox(bgroup); // this is to control the TQWhatsThis text display area
box->setSpacing(KDialog::spacingHint());
- mSoundFileLabel = new QLabel(i18n("Sound &file:"), box);
+ mSoundFileLabel = new TQLabel(i18n("Sound &file:"), box);
mSoundFileLabel->setFixedSize(mSoundFileLabel->sizeHint());
- mSoundFile = new QLineEdit(box);
+ mSoundFile = new TQLineEdit(box);
mSoundFileLabel->setBuddy(mSoundFile);
- mSoundFileBrowse = new QPushButton(box);
+ mSoundFileBrowse = new TQPushButton(box);
mSoundFileBrowse->setPixmap(SmallIcon("fileopen"));
mSoundFileBrowse->setFixedSize(mSoundFileBrowse->sizeHint());
- connect(mSoundFileBrowse, SIGNAL(clicked()), SLOT(slotBrowseSoundFile()));
- QToolTip::add(mSoundFileBrowse, i18n("Choose a sound file"));
- QWhatsThis::add(box,
+ connect(mSoundFileBrowse, TQT_SIGNAL(clicked()), TQT_SLOT(slotBrowseSoundFile()));
+ TQToolTip::add(mSoundFileBrowse, i18n("Choose a sound file"));
+ TQWhatsThis::add(box,
i18n("Enter the default sound file to use in the alarm edit dialog."));
box->setFixedHeight(box->sizeHint().height());
layout->addWidget(box);
bgroup->setFixedHeight(bgroup->sizeHint().height());
// COMMAND ALARMS
- group = new QGroupBox(i18n("Command Alarms"), mPage);
- layout = new QVBoxLayout(group, KDialog::marginHint(), KDialog::spacingHint());
+ group = new TQGroupBox(i18n("Command Alarms"), mPage);
+ layout = new TQVBoxLayout(group, KDialog::marginHint(), KDialog::spacingHint());
layout->addSpacing(groupTopMargin);
- layout = new QHBoxLayout(layout, KDialog::spacingHint());
+ layout = new TQHBoxLayout(layout, KDialog::spacingHint());
- mCmdScript = new QCheckBox(EditAlarmDlg::i18n_p_EnterScript(), group, "defCmdScript");
+ mCmdScript = new TQCheckBox(EditAlarmDlg::i18n_p_EnterScript(), group, "defCmdScript");
mCmdScript->setMinimumSize(mCmdScript->sizeHint());
- QWhatsThis::add(mCmdScript, defsetting.arg(EditAlarmDlg::i18n_EnterScript()));
+ TQWhatsThis::add(mCmdScript, defsetting.arg(EditAlarmDlg::i18n_EnterScript()));
layout->addWidget(mCmdScript);
layout->addStretch();
- mCmdXterm = new QCheckBox(EditAlarmDlg::i18n_w_ExecInTermWindow(), group, "defCmdXterm");
+ mCmdXterm = new TQCheckBox(EditAlarmDlg::i18n_w_ExecInTermWindow(), group, "defCmdXterm");
mCmdXterm->setMinimumSize(mCmdXterm->sizeHint());
- QWhatsThis::add(mCmdXterm, defsetting.arg(EditAlarmDlg::i18n_ExecInTermWindow()));
+ TQWhatsThis::add(mCmdXterm, defsetting.arg(EditAlarmDlg::i18n_ExecInTermWindow()));
layout->addWidget(mCmdXterm);
// EMAIL ALARMS
- group = new QGroupBox(i18n("Email Alarms"), mPage);
- layout = new QVBoxLayout(group, KDialog::marginHint(), KDialog::spacingHint());
+ group = new TQGroupBox(i18n("Email Alarms"), mPage);
+ layout = new TQVBoxLayout(group, KDialog::marginHint(), KDialog::spacingHint());
layout->addSpacing(groupTopMargin);
// BCC email to sender
- mEmailBcc = new QCheckBox(EditAlarmDlg::i18n_e_CopyEmailToSelf(), group, "defEmailBcc");
+ mEmailBcc = new TQCheckBox(EditAlarmDlg::i18n_e_CopyEmailToSelf(), group, "defEmailBcc");
mEmailBcc->setMinimumSize(mEmailBcc->sizeHint());
- QWhatsThis::add(mEmailBcc, defsetting.arg(EditAlarmDlg::i18n_CopyEmailToSelf()));
+ TQWhatsThis::add(mEmailBcc, defsetting.arg(EditAlarmDlg::i18n_CopyEmailToSelf()));
layout->addWidget(mEmailBcc, 0, Qt::AlignAuto);
// MISCELLANEOUS
// Show in KOrganizer
- mCopyToKOrganizer = new QCheckBox(EditAlarmDlg::i18n_g_ShowInKOrganizer(), mPage, "defShowKorg");
+ mCopyToKOrganizer = new TQCheckBox(EditAlarmDlg::i18n_g_ShowInKOrganizer(), mPage, "defShowKorg");
mCopyToKOrganizer->setMinimumSize(mCopyToKOrganizer->sizeHint());
- QWhatsThis::add(mCopyToKOrganizer, defsetting.arg(EditAlarmDlg::i18n_ShowInKOrganizer()));
+ TQWhatsThis::add(mCopyToKOrganizer, defsetting.arg(EditAlarmDlg::i18n_ShowInKOrganizer()));
// Late cancellation
- box = new QHBox(mPage);
+ box = new TQHBox(mPage);
box->setSpacing(KDialog::spacingHint());
- mLateCancel = new QCheckBox(LateCancelSelector::i18n_n_CancelIfLate(), box, "defCancelLate");
+ mLateCancel = new TQCheckBox(LateCancelSelector::i18n_n_CancelIfLate(), box, "defCancelLate");
mLateCancel->setMinimumSize(mLateCancel->sizeHint());
- QWhatsThis::add(mLateCancel, defsetting.arg(LateCancelSelector::i18n_CancelIfLate()));
- box->setStretchFactor(new QWidget(box), 1); // left adjust the control
+ TQWhatsThis::add(mLateCancel, defsetting.arg(LateCancelSelector::i18n_CancelIfLate()));
+ box->setStretchFactor(new TQWidget(box), 1); // left adjust the control
// Recurrence
- QHBox* itemBox = new QHBox(box); // this is to control the QWhatsThis text display area
+ TQHBox* itemBox = new TQHBox(box); // this is to control the TQWhatsThis text display area
itemBox->setSpacing(KDialog::spacingHint());
- label = new QLabel(i18n("&Recurrence:"), itemBox);
+ label = new TQLabel(i18n("&Recurrence:"), itemBox);
label->setFixedSize(label->sizeHint());
- mRecurPeriod = new QComboBox(itemBox, "defRecur");
+ mRecurPeriod = new TQComboBox(itemBox, "defRecur");
mRecurPeriod->insertItem(RecurrenceEdit::i18n_NoRecur());
mRecurPeriod->insertItem(RecurrenceEdit::i18n_AtLogin());
mRecurPeriod->insertItem(RecurrenceEdit::i18n_HourlyMinutely());
@@ -1027,36 +1027,36 @@ EditPrefTab::EditPrefTab(QVBox* frame)
mRecurPeriod->insertItem(RecurrenceEdit::i18n_Yearly());
mRecurPeriod->setFixedSize(mRecurPeriod->sizeHint());
label->setBuddy(mRecurPeriod);
- QWhatsThis::add(itemBox,
+ TQWhatsThis::add(itemBox,
i18n("The default setting for the recurrence rule in the alarm edit dialog."));
box->setFixedHeight(itemBox->sizeHint().height());
// How to handle February 29th in yearly recurrences
- QVBox* vbox = new QVBox(mPage); // this is to control the QWhatsThis text display area
+ TQVBox* vbox = new TQVBox(mPage); // this is to control the TQWhatsThis text display area
vbox->setSpacing(KDialog::spacingHint());
- label = new QLabel(i18n("In non-leap years, repeat yearly February 29th alarms on:"), vbox);
+ label = new TQLabel(i18n("In non-leap years, repeat yearly February 29th alarms on:"), vbox);
label->setAlignment(alignment | Qt::WordBreak);
- itemBox = new QHBox(vbox);
+ itemBox = new TQHBox(vbox);
itemBox->setSpacing(2*KDialog::spacingHint());
- mFeb29 = new QButtonGroup(itemBox);
+ mFeb29 = new TQButtonGroup(itemBox);
mFeb29->hide();
- QWidget* widget = new QWidget(itemBox);
+ TQWidget* widget = new TQWidget(itemBox);
widget->setFixedWidth(3*KDialog::spacingHint());
- QRadioButton* radio = new QRadioButton(i18n("February 2&8th"), itemBox);
+ TQRadioButton* radio = new TQRadioButton(i18n("February 2&8th"), itemBox);
radio->setMinimumSize(radio->sizeHint());
mFeb29->insert(radio, KARecurrence::FEB29_FEB28);
- radio = new QRadioButton(i18n("March &1st"), itemBox);
+ radio = new TQRadioButton(i18n("March &1st"), itemBox);
radio->setMinimumSize(radio->sizeHint());
mFeb29->insert(radio, KARecurrence::FEB29_MAR1);
- radio = new QRadioButton(i18n("Do &not repeat"), itemBox);
+ radio = new TQRadioButton(i18n("Do &not repeat"), itemBox);
radio->setMinimumSize(radio->sizeHint());
mFeb29->insert(radio, KARecurrence::FEB29_FEB29);
itemBox->setFixedHeight(itemBox->sizeHint().height());
- QWhatsThis::add(vbox,
+ TQWhatsThis::add(vbox,
i18n("For yearly recurrences, choose what date, if any, alarms due on February 29th should occur in non-leap years.\n"
"Note that the next scheduled occurrence of existing alarms is not re-evaluated when you change this setting."));
- mPage->setStretchFactor(new QWidget(mPage), 1); // top adjust the widgets
+ mPage->setStretchFactor(new TQWidget(mPage), 1); // top adjust the widgets
}
void EditPrefTab::restore()
@@ -1141,8 +1141,8 @@ void EditPrefTab::setDefaults()
void EditPrefTab::slotBrowseSoundFile()
{
- QString defaultDir;
- QString url = SoundPicker::browseFile(defaultDir, mSoundFile->text());
+ TQString defaultDir;
+ TQString url = SoundPicker::browseFile(defaultDir, mSoundFile->text());
if (!url.isEmpty())
mSoundFile->setText(url);
}
@@ -1174,14 +1174,14 @@ int EditPrefTab::recurIndex(RecurrenceEdit::RepeatType type)
}
}
-QString EditPrefTab::validate()
+TQString EditPrefTab::validate()
{
if (mSound->currentItem() == SoundPicker::PLAY_FILE && mSoundFile->text().isEmpty())
{
mSoundFile->setFocus();
return i18n("You must enter a sound file when %1 is selected as the default sound type").arg(SoundPicker::i18n_File());;
}
- return QString::null;
+ return TQString::null;
}
@@ -1189,85 +1189,85 @@ QString EditPrefTab::validate()
= Class ViewPrefTab
=============================================================================*/
-ViewPrefTab::ViewPrefTab(QVBox* frame)
+ViewPrefTab::ViewPrefTab(TQVBox* frame)
: PrefsTabBase(frame)
{
- QGroupBox* group = new QGroupBox(i18n("System Tray Tooltip"), mPage);
- QGridLayout* grid = new QGridLayout(group, 5, 3, KDialog::marginHint(), KDialog::spacingHint());
+ TQGroupBox* group = new TQGroupBox(i18n("System Tray Tooltip"), mPage);
+ TQGridLayout* grid = new TQGridLayout(group, 5, 3, KDialog::marginHint(), KDialog::spacingHint());
grid->setColStretch(2, 1);
grid->addColSpacing(0, indentWidth());
grid->addColSpacing(1, indentWidth());
grid->addRowSpacing(0, fontMetrics().lineSpacing()/2);
- mTooltipShowAlarms = new QCheckBox(i18n("Show next &24 hours' alarms"), group, "tooltipShow");
+ mTooltipShowAlarms = new TQCheckBox(i18n("Show next &24 hours' alarms"), group, "tooltipShow");
mTooltipShowAlarms->setMinimumSize(mTooltipShowAlarms->sizeHint());
- connect(mTooltipShowAlarms, SIGNAL(toggled(bool)), SLOT(slotTooltipAlarmsToggled(bool)));
- QWhatsThis::add(mTooltipShowAlarms,
+ connect(mTooltipShowAlarms, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotTooltipAlarmsToggled(bool)));
+ TQWhatsThis::add(mTooltipShowAlarms,
i18n("Specify whether to include in the system tray tooltip, a summary of alarms due in the next 24 hours"));
grid->addMultiCellWidget(mTooltipShowAlarms, 1, 1, 0, 2, Qt::AlignAuto);
- QHBox* box = new QHBox(group);
+ TQHBox* box = new TQHBox(group);
box->setSpacing(KDialog::spacingHint());
- mTooltipMaxAlarms = new QCheckBox(i18n("Ma&ximum number of alarms to show:"), box, "tooltipMax");
+ mTooltipMaxAlarms = new TQCheckBox(i18n("Ma&ximum number of alarms to show:"), box, "tooltipMax");
mTooltipMaxAlarms->setMinimumSize(mTooltipMaxAlarms->sizeHint());
- connect(mTooltipMaxAlarms, SIGNAL(toggled(bool)), SLOT(slotTooltipMaxToggled(bool)));
+ connect(mTooltipMaxAlarms, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotTooltipMaxToggled(bool)));
mTooltipMaxAlarmCount = new SpinBox(1, 99, 1, box);
mTooltipMaxAlarmCount->setLineShiftStep(5);
mTooltipMaxAlarmCount->setMinimumSize(mTooltipMaxAlarmCount->sizeHint());
- QWhatsThis::add(box,
+ TQWhatsThis::add(box,
i18n("Uncheck to display all of the next 24 hours' alarms in the system tray tooltip. "
"Check to enter an upper limit on the number to be displayed."));
grid->addMultiCellWidget(box, 2, 2, 1, 2, Qt::AlignAuto);
- mTooltipShowTime = new QCheckBox(MainWindow::i18n_m_ShowAlarmTime(), group, "tooltipTime");
+ mTooltipShowTime = new TQCheckBox(MainWindow::i18n_m_ShowAlarmTime(), group, "tooltipTime");
mTooltipShowTime->setMinimumSize(mTooltipShowTime->sizeHint());
- connect(mTooltipShowTime, SIGNAL(toggled(bool)), SLOT(slotTooltipTimeToggled(bool)));
- QWhatsThis::add(mTooltipShowTime,
+ connect(mTooltipShowTime, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotTooltipTimeToggled(bool)));
+ TQWhatsThis::add(mTooltipShowTime,
i18n("Specify whether to show in the system tray tooltip, the time at which each alarm is due"));
grid->addMultiCellWidget(mTooltipShowTime, 3, 3, 1, 2, Qt::AlignAuto);
- mTooltipShowTimeTo = new QCheckBox(MainWindow::i18n_l_ShowTimeToAlarm(), group, "tooltipTimeTo");
+ mTooltipShowTimeTo = new TQCheckBox(MainWindow::i18n_l_ShowTimeToAlarm(), group, "tooltipTimeTo");
mTooltipShowTimeTo->setMinimumSize(mTooltipShowTimeTo->sizeHint());
- connect(mTooltipShowTimeTo, SIGNAL(toggled(bool)), SLOT(slotTooltipTimeToToggled(bool)));
- QWhatsThis::add(mTooltipShowTimeTo,
+ connect(mTooltipShowTimeTo, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotTooltipTimeToToggled(bool)));
+ TQWhatsThis::add(mTooltipShowTimeTo,
i18n("Specify whether to show in the system tray tooltip, how long until each alarm is due"));
grid->addMultiCellWidget(mTooltipShowTimeTo, 4, 4, 1, 2, Qt::AlignAuto);
- box = new QHBox(group); // this is to control the QWhatsThis text display area
+ box = new TQHBox(group); // this is to control the TQWhatsThis text display area
box->setSpacing(KDialog::spacingHint());
- mTooltipTimeToPrefixLabel = new QLabel(i18n("&Prefix:"), box);
+ mTooltipTimeToPrefixLabel = new TQLabel(i18n("&Prefix:"), box);
mTooltipTimeToPrefixLabel->setFixedSize(mTooltipTimeToPrefixLabel->sizeHint());
- mTooltipTimeToPrefix = new QLineEdit(box);
+ mTooltipTimeToPrefix = new TQLineEdit(box);
mTooltipTimeToPrefixLabel->setBuddy(mTooltipTimeToPrefix);
- QWhatsThis::add(box,
+ TQWhatsThis::add(box,
i18n("Enter the text to be displayed in front of the time until the alarm, in the system tray tooltip"));
box->setFixedHeight(box->sizeHint().height());
grid->addWidget(box, 5, 2, Qt::AlignAuto);
group->setMaximumHeight(group->sizeHint().height());
- mModalMessages = new QCheckBox(i18n("Message &windows have a title bar and take keyboard focus"), mPage, "modalMsg");
+ mModalMessages = new TQCheckBox(i18n("Message &windows have a title bar and take keyboard focus"), mPage, "modalMsg");
mModalMessages->setMinimumSize(mModalMessages->sizeHint());
- QWhatsThis::add(mModalMessages,
+ TQWhatsThis::add(mModalMessages,
i18n("Specify the characteristics of alarm message windows:\n"
"- If checked, the window is a normal window with a title bar, which grabs keyboard input when it is displayed.\n"
"- If unchecked, the window does not interfere with your typing when "
"it is displayed, but it has no title bar and cannot be moved or resized."));
- QHBox* itemBox = new QHBox(mPage); // this is to control the QWhatsThis text display area
- box = new QHBox(itemBox);
+ TQHBox* itemBox = new TQHBox(mPage); // this is to control the TQWhatsThis text display area
+ box = new TQHBox(itemBox);
box->setSpacing(KDialog::spacingHint());
- QLabel* label = new QLabel(i18n("System tray icon &update interval:"), box);
+ TQLabel* label = new TQLabel(i18n("System tray icon &update interval:"), box);
mDaemonTrayCheckInterval = new SpinBox(1, 9999, 1, box, "daemonCheck");
mDaemonTrayCheckInterval->setLineShiftStep(10);
mDaemonTrayCheckInterval->setMinimumSize(mDaemonTrayCheckInterval->sizeHint());
label->setBuddy(mDaemonTrayCheckInterval);
- label = new QLabel(i18n("seconds"), box);
- QWhatsThis::add(box,
+ label = new TQLabel(i18n("seconds"), box);
+ TQWhatsThis::add(box,
i18n("How often to update the system tray icon to indicate whether or not the Alarm Daemon is monitoring alarms."));
- itemBox->setStretchFactor(new QWidget(itemBox), 1); // left adjust the controls
+ itemBox->setStretchFactor(new TQWidget(itemBox), 1); // left adjust the controls
itemBox->setFixedHeight(box->sizeHint().height());
- mPage->setStretchFactor(new QWidget(mPage), 1); // top adjust the widgets
+ mPage->setStretchFactor(new TQWidget(mPage), 1); // top adjust the widgets
}
void ViewPrefTab::restore()
@@ -1304,7 +1304,7 @@ void ViewPrefTab::setDefaults()
mDaemonTrayCheckInterval->setValue(Preferences::default_daemonTrayCheckInterval);
}
-void ViewPrefTab::setTooltip(int maxAlarms, bool time, bool timeTo, const QString& prefix)
+void ViewPrefTab::setTooltip(int maxAlarms, bool time, bool timeTo, const TQString& prefix)
{
if (!timeTo)
time = true; // ensure that at least one time option is ticked