|
|
@ -98,21 +98,21 @@ KBiffSetup::KBiffSetup(const TQString& profile_, bool secure_)
|
|
|
|
profile_groupbox);
|
|
|
|
profile_groupbox);
|
|
|
|
whatsthis = i18n("Create a new profile");
|
|
|
|
whatsthis = i18n("Create a new profile");
|
|
|
|
TQWhatsThis::add(new_profile_button, whatsthis);
|
|
|
|
TQWhatsThis::add(new_profile_button, whatsthis);
|
|
|
|
connect(new_profile_button, SIGNAL(clicked()), SLOT(slotAddNewProfile()));
|
|
|
|
connect(new_profile_button, TQ_SIGNAL(clicked()), TQ_SLOT(slotAddNewProfile()));
|
|
|
|
|
|
|
|
|
|
|
|
// Rename Profile button
|
|
|
|
// Rename Profile button
|
|
|
|
TQPushButton *rename_profile_button = new TQPushButton(i18n("&Rename..."),
|
|
|
|
TQPushButton *rename_profile_button = new TQPushButton(i18n("&Rename..."),
|
|
|
|
profile_groupbox);
|
|
|
|
profile_groupbox);
|
|
|
|
whatsthis = i18n("Rename the current profile");
|
|
|
|
whatsthis = i18n("Rename the current profile");
|
|
|
|
TQWhatsThis::add(rename_profile_button, whatsthis);
|
|
|
|
TQWhatsThis::add(rename_profile_button, whatsthis);
|
|
|
|
connect(rename_profile_button, SIGNAL(clicked()), SLOT(slotRenameProfile()));
|
|
|
|
connect(rename_profile_button, TQ_SIGNAL(clicked()), TQ_SLOT(slotRenameProfile()));
|
|
|
|
|
|
|
|
|
|
|
|
// Delete Profile button
|
|
|
|
// Delete Profile button
|
|
|
|
TQPushButton *delete_profile_button = new TQPushButton(i18n("&Delete"),
|
|
|
|
TQPushButton *delete_profile_button = new TQPushButton(i18n("&Delete"),
|
|
|
|
profile_groupbox);
|
|
|
|
profile_groupbox);
|
|
|
|
whatsthis = i18n("Delete the current profile");
|
|
|
|
whatsthis = i18n("Delete the current profile");
|
|
|
|
TQWhatsThis::add(delete_profile_button, whatsthis);
|
|
|
|
TQWhatsThis::add(delete_profile_button, whatsthis);
|
|
|
|
connect(delete_profile_button, SIGNAL(clicked()), SLOT(slotDeleteProfile()));
|
|
|
|
connect(delete_profile_button, TQ_SIGNAL(clicked()), TQ_SLOT(slotDeleteProfile()));
|
|
|
|
|
|
|
|
|
|
|
|
// setup the tabs
|
|
|
|
// setup the tabs
|
|
|
|
TQTabWidget *tabctl = new TQTabWidget(this);
|
|
|
|
TQTabWidget *tabctl = new TQTabWidget(this);
|
|
|
@ -121,12 +121,12 @@ KBiffSetup::KBiffSetup(const TQString& profile_, bool secure_)
|
|
|
|
mailboxTab = new KBiffMailboxTab(the_profile, tabctl);
|
|
|
|
mailboxTab = new KBiffMailboxTab(the_profile, tabctl);
|
|
|
|
aboutTab = new KBiffAboutTab(tabctl);
|
|
|
|
aboutTab = new KBiffAboutTab(tabctl);
|
|
|
|
|
|
|
|
|
|
|
|
connect(comboProfile, SIGNAL(highlighted(const TQString&)),
|
|
|
|
connect(comboProfile, TQ_SIGNAL(highlighted(const TQString&)),
|
|
|
|
generalTab, SLOT(readConfig(const TQString&)));
|
|
|
|
generalTab, TQ_SLOT(readConfig(const TQString&)));
|
|
|
|
connect(comboProfile, SIGNAL(highlighted(const TQString&)),
|
|
|
|
connect(comboProfile, TQ_SIGNAL(highlighted(const TQString&)),
|
|
|
|
newmailTab, SLOT(readConfig(const TQString&)));
|
|
|
|
newmailTab, TQ_SLOT(readConfig(const TQString&)));
|
|
|
|
connect(comboProfile, SIGNAL(highlighted(const TQString&)),
|
|
|
|
connect(comboProfile, TQ_SIGNAL(highlighted(const TQString&)),
|
|
|
|
mailboxTab, SLOT(readConfig(const TQString&)));
|
|
|
|
mailboxTab, TQ_SLOT(readConfig(const TQString&)));
|
|
|
|
|
|
|
|
|
|
|
|
// add the tabs
|
|
|
|
// add the tabs
|
|
|
|
tabctl->addTab(generalTab, i18n("General"));
|
|
|
|
tabctl->addTab(generalTab, i18n("General"));
|
|
|
@ -136,16 +136,16 @@ KBiffSetup::KBiffSetup(const TQString& profile_, bool secure_)
|
|
|
|
|
|
|
|
|
|
|
|
// help button
|
|
|
|
// help button
|
|
|
|
TQPushButton *help_button = new TQPushButton(i18n("&Help"), this);
|
|
|
|
TQPushButton *help_button = new TQPushButton(i18n("&Help"), this);
|
|
|
|
connect(help_button, SIGNAL(clicked()), SLOT(invokeHelp()));
|
|
|
|
connect(help_button, TQ_SIGNAL(clicked()), TQ_SLOT(invokeHelp()));
|
|
|
|
|
|
|
|
|
|
|
|
// ok button
|
|
|
|
// ok button
|
|
|
|
TQPushButton *ok_button = new TQPushButton(i18n("&OK"), this);
|
|
|
|
TQPushButton *ok_button = new TQPushButton(i18n("&OK"), this);
|
|
|
|
ok_button->setDefault(true);
|
|
|
|
ok_button->setDefault(true);
|
|
|
|
connect(ok_button, SIGNAL(clicked()), SLOT(slotDone()));
|
|
|
|
connect(ok_button, TQ_SIGNAL(clicked()), TQ_SLOT(slotDone()));
|
|
|
|
|
|
|
|
|
|
|
|
// cancel button
|
|
|
|
// cancel button
|
|
|
|
TQPushButton *cancel_button = new TQPushButton(i18n("&Cancel"), this);
|
|
|
|
TQPushButton *cancel_button = new TQPushButton(i18n("&Cancel"), this);
|
|
|
|
connect(cancel_button, SIGNAL(clicked()), SLOT(reject()));
|
|
|
|
connect(cancel_button, TQ_SIGNAL(clicked()), TQ_SLOT(reject()));
|
|
|
|
|
|
|
|
|
|
|
|
// are we secure?
|
|
|
|
// are we secure?
|
|
|
|
isSecure = secure_;
|
|
|
|
isSecure = secure_;
|
|
|
@ -826,13 +826,13 @@ KBiffNewMailTab::KBiffNewMailTab(const TQString& profile_, TQWidget *parent_)
|
|
|
|
checkStatus = new TQCheckBox(i18n("&Floating Status"), this);
|
|
|
|
checkStatus = new TQCheckBox(i18n("&Floating Status"), this);
|
|
|
|
|
|
|
|
|
|
|
|
// connect some slots and signals
|
|
|
|
// connect some slots and signals
|
|
|
|
connect(buttonBrowsePlaySound, SIGNAL(clicked()), SLOT(browsePlaySound()));
|
|
|
|
connect(buttonBrowsePlaySound, TQ_SIGNAL(clicked()), TQ_SLOT(browsePlaySound()));
|
|
|
|
connect(buttonBrowseRunCommand, SIGNAL(clicked()), SLOT(browseRunCommand()));
|
|
|
|
connect(buttonBrowseRunCommand, TQ_SIGNAL(clicked()), TQ_SLOT(browseRunCommand()));
|
|
|
|
connect(buttonBrowseRunResetCommand, SIGNAL(clicked()), SLOT(browseRunResetCommand()));
|
|
|
|
connect(buttonBrowseRunResetCommand, TQ_SIGNAL(clicked()), TQ_SLOT(browseRunResetCommand()));
|
|
|
|
connect(checkPlaySound, SIGNAL(toggled(bool)), SLOT(enablePlaySound(bool)));
|
|
|
|
connect(checkPlaySound, TQ_SIGNAL(toggled(bool)), TQ_SLOT(enablePlaySound(bool)));
|
|
|
|
connect(buttonTestPlaySound, SIGNAL(clicked()), SLOT(testPlaySound()));
|
|
|
|
connect(buttonTestPlaySound, TQ_SIGNAL(clicked()), TQ_SLOT(testPlaySound()));
|
|
|
|
connect(checkRunCommand, SIGNAL(toggled(bool)), SLOT(enableRunCommand(bool)));
|
|
|
|
connect(checkRunCommand, TQ_SIGNAL(toggled(bool)), TQ_SLOT(enableRunCommand(bool)));
|
|
|
|
connect(checkRunResetCommand, SIGNAL(toggled(bool)), SLOT(enableRunResetCommand(bool)));
|
|
|
|
connect(checkRunResetCommand, TQ_SIGNAL(toggled(bool)), TQ_SLOT(enableRunResetCommand(bool)));
|
|
|
|
|
|
|
|
|
|
|
|
// NOW DO THE LAYOUT
|
|
|
|
// NOW DO THE LAYOUT
|
|
|
|
TQHBoxLayout *run_command_layout = new TQHBoxLayout(5);
|
|
|
|
TQHBoxLayout *run_command_layout = new TQHBoxLayout(5);
|
|
|
@ -1106,16 +1106,16 @@ KBiffMailboxAdvanced::KBiffMailboxAdvanced()
|
|
|
|
TQPushButton *cancel = new TQPushButton(i18n("&Cancel"), this);
|
|
|
|
TQPushButton *cancel = new TQPushButton(i18n("&Cancel"), this);
|
|
|
|
|
|
|
|
|
|
|
|
// connect all the slots to signals
|
|
|
|
// connect all the slots to signals
|
|
|
|
connect(preauth, SIGNAL(toggled(bool)), SLOT(preauthModified(bool)));
|
|
|
|
connect(preauth, TQ_SIGNAL(toggled(bool)), TQ_SLOT(preauthModified(bool)));
|
|
|
|
connect(keepalive, SIGNAL(toggled(bool)), SLOT(keepaliveModified(bool)));
|
|
|
|
connect(keepalive, TQ_SIGNAL(toggled(bool)), TQ_SLOT(keepaliveModified(bool)));
|
|
|
|
connect(async, SIGNAL(toggled(bool)), SLOT(asyncModified(bool)));
|
|
|
|
connect(async, TQ_SIGNAL(toggled(bool)), TQ_SLOT(asyncModified(bool)));
|
|
|
|
connect(apop, SIGNAL(toggled(bool)), SLOT(apopModified(bool)));
|
|
|
|
connect(apop, TQ_SIGNAL(toggled(bool)), TQ_SLOT(apopModified(bool)));
|
|
|
|
connect(port, SIGNAL(textChanged(const TQString&)),
|
|
|
|
connect(port, TQ_SIGNAL(textChanged(const TQString&)),
|
|
|
|
SLOT(portModified(const TQString&)));
|
|
|
|
TQ_SLOT(portModified(const TQString&)));
|
|
|
|
connect(ok, SIGNAL(clicked()), SLOT(accept()));
|
|
|
|
connect(ok, TQ_SIGNAL(clicked()), TQ_SLOT(accept()));
|
|
|
|
connect(cancel, SIGNAL(clicked()), SLOT(reject()));
|
|
|
|
connect(cancel, TQ_SIGNAL(clicked()), TQ_SLOT(reject()));
|
|
|
|
connect(timeout, SIGNAL(textChanged(const TQString&)),
|
|
|
|
connect(timeout, TQ_SIGNAL(textChanged(const TQString&)),
|
|
|
|
SLOT(timeoutModified(const TQString&)));
|
|
|
|
TQ_SLOT(timeoutModified(const TQString&)));
|
|
|
|
|
|
|
|
|
|
|
|
// NOW DO THE LAYOUT
|
|
|
|
// NOW DO THE LAYOUT
|
|
|
|
TQGridLayout *top_layout = new TQGridLayout(this, 7, 4, 12);
|
|
|
|
TQGridLayout *top_layout = new TQGridLayout(this, 7, 4, 12);
|
|
|
@ -1331,16 +1331,16 @@ KBiffMailboxTab::KBiffMailboxTab(const TQString& profile_, TQWidget *parent_)
|
|
|
|
enableFetchCommand(false);
|
|
|
|
enableFetchCommand(false);
|
|
|
|
|
|
|
|
|
|
|
|
// connect all the signals
|
|
|
|
// connect all the signals
|
|
|
|
connect(mailboxes, SIGNAL(selectionChanged(TQListViewItem *)),
|
|
|
|
connect(mailboxes, TQ_SIGNAL(selectionChanged(TQListViewItem *)),
|
|
|
|
SLOT(slotMailboxSelected(TQListViewItem *)));
|
|
|
|
TQ_SLOT(slotMailboxSelected(TQListViewItem *)));
|
|
|
|
connect(new_mailbox, SIGNAL(clicked()), SLOT(slotNewMailbox()));
|
|
|
|
connect(new_mailbox, TQ_SIGNAL(clicked()), TQ_SLOT(slotNewMailbox()));
|
|
|
|
connect(delete_mailbox, SIGNAL(clicked()), SLOT(slotDeleteMailbox()));
|
|
|
|
connect(delete_mailbox, TQ_SIGNAL(clicked()), TQ_SLOT(slotDeleteMailbox()));
|
|
|
|
connect(comboProtocol, SIGNAL(highlighted(int)),
|
|
|
|
connect(comboProtocol, TQ_SIGNAL(highlighted(int)),
|
|
|
|
SLOT(protocolSelected(int)));
|
|
|
|
TQ_SLOT(protocolSelected(int)));
|
|
|
|
connect(buttonBrowse, SIGNAL(clicked()), SLOT(browse()));
|
|
|
|
connect(buttonBrowse, TQ_SIGNAL(clicked()), TQ_SLOT(browse()));
|
|
|
|
connect(advanced_button, SIGNAL(clicked()), SLOT(advanced()));
|
|
|
|
connect(advanced_button, TQ_SIGNAL(clicked()), TQ_SLOT(advanced()));
|
|
|
|
connect(buttonBrowseFetchCommand, SIGNAL(clicked()), SLOT(browseFetchCommand()));
|
|
|
|
connect(buttonBrowseFetchCommand, TQ_SIGNAL(clicked()), TQ_SLOT(browseFetchCommand()));
|
|
|
|
connect(checkFetchCommand, SIGNAL(toggled(bool)), SLOT(enableFetchCommand(bool)));
|
|
|
|
connect(checkFetchCommand, TQ_SIGNAL(toggled(bool)), TQ_SLOT(enableFetchCommand(bool)));
|
|
|
|
|
|
|
|
|
|
|
|
// NOW DO THE LAYOUT
|
|
|
|
// NOW DO THE LAYOUT
|
|
|
|
TQHBoxLayout *fetch_command_layout = new TQHBoxLayout(5);
|
|
|
|
TQHBoxLayout *fetch_command_layout = new TQHBoxLayout(5);
|
|
|
@ -1943,8 +1943,8 @@ KBiffAboutTab::KBiffAboutTab(TQWidget *parent_)
|
|
|
|
logo_label->setUnderline(false);
|
|
|
|
logo_label->setUnderline(false);
|
|
|
|
logo_label->setGlow(false);
|
|
|
|
logo_label->setGlow(false);
|
|
|
|
logo_label->setFloat(true);
|
|
|
|
logo_label->setFloat(true);
|
|
|
|
connect(logo_label, SIGNAL(leftClickedURL(const TQString&)),
|
|
|
|
connect(logo_label, TQ_SIGNAL(leftClickedURL(const TQString&)),
|
|
|
|
SLOT(homepage(const TQString&)));
|
|
|
|
TQ_SLOT(homepage(const TQString&)));
|
|
|
|
|
|
|
|
|
|
|
|
TQLabel *version_label = new TQLabel(this);
|
|
|
|
TQLabel *version_label = new TQLabel(this);
|
|
|
|
version_label->setText(TQString("Version %1\n\nCopyright (C) 1998-2008\nKurt Granroth").arg(kbiff_version));
|
|
|
|
version_label->setText(TQString("Version %1\n\nCopyright (C) 1998-2008\nKurt Granroth").arg(kbiff_version));
|
|
|
@ -1955,8 +1955,8 @@ KBiffAboutTab::KBiffAboutTab(TQWidget *parent_)
|
|
|
|
email_label->setUnderline(false);
|
|
|
|
email_label->setUnderline(false);
|
|
|
|
email_label->setGlow(false);
|
|
|
|
email_label->setGlow(false);
|
|
|
|
email_label->setFloat(true);
|
|
|
|
email_label->setFloat(true);
|
|
|
|
connect(email_label, SIGNAL(leftClickedURL(const TQString&)),
|
|
|
|
connect(email_label, TQ_SIGNAL(leftClickedURL(const TQString&)),
|
|
|
|
SLOT(mailTo(const TQString&)));
|
|
|
|
TQ_SLOT(mailTo(const TQString&)));
|
|
|
|
|
|
|
|
|
|
|
|
// about tab text layout
|
|
|
|
// about tab text layout
|
|
|
|
TQVBoxLayout *text_layout = new TQVBoxLayout(0);
|
|
|
|
TQVBoxLayout *text_layout = new TQVBoxLayout(0);
|
|
|
@ -2003,8 +2003,8 @@ KBiffNewDlg::KBiffNewDlg(TQWidget* parent_, const char * name_)
|
|
|
|
// cancel button
|
|
|
|
// cancel button
|
|
|
|
TQPushButton* button_cancel = new TQPushButton(i18n("&Cancel"), this);
|
|
|
|
TQPushButton* button_cancel = new TQPushButton(i18n("&Cancel"), this);
|
|
|
|
|
|
|
|
|
|
|
|
connect(button_ok, SIGNAL(clicked()), SLOT(accept()));
|
|
|
|
connect(button_ok, TQ_SIGNAL(clicked()), TQ_SLOT(accept()));
|
|
|
|
connect(button_cancel, SIGNAL(clicked()), SLOT(reject()));
|
|
|
|
connect(button_cancel, TQ_SIGNAL(clicked()), TQ_SLOT(reject()));
|
|
|
|
|
|
|
|
|
|
|
|
// NOW DO THE LAYOUT
|
|
|
|
// NOW DO THE LAYOUT
|
|
|
|
TQGridLayout *top_layout = new TQGridLayout(this, 2, 3, 12);
|
|
|
|
TQGridLayout *top_layout = new TQGridLayout(this, 2, 3, 12);
|
|
|
|