summaryrefslogtreecommitdiffstats
path: root/korganizer/koattendeeeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koattendeeeditor.cpp')
-rw-r--r--korganizer/koattendeeeditor.cpp128
1 files changed, 64 insertions, 64 deletions
diff --git a/korganizer/koattendeeeditor.cpp b/korganizer/koattendeeeditor.cpp
index c6a255e9c..370ac3b32 100644
--- a/korganizer/koattendeeeditor.cpp
+++ b/korganizer/koattendeeeditor.cpp
@@ -35,32 +35,32 @@
#include <kiconloader.h>
#include <klocale.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqwhatsthis.h>
using namespace KCal;
-KOAttendeeEditor::KOAttendeeEditor( QWidget * parent, const char *name ) :
- QWidget( parent, name ),
+KOAttendeeEditor::KOAttendeeEditor( TQWidget * parent, const char *name ) :
+ TQWidget( parent, name ),
mDisableItemUpdate( true )
{
}
-void KOAttendeeEditor::initOrganizerWidgets(QWidget * parent, QBoxLayout * layout)
+void KOAttendeeEditor::initOrganizerWidgets(TQWidget * parent, TQBoxLayout * layout)
{
- mOrganizerHBox = new QHBox( parent );
+ mOrganizerHBox = new TQHBox( parent );
layout->addWidget( mOrganizerHBox );
// If creating a new event, then the user is the organizer -> show the
// identity combo
// readEvent will delete it and set another label text instead, if the user
// isn't the organizer.
// Note that the i18n text below is duplicated in readEvent
- QString whatsThis = i18n("Sets the identity corresponding to "
+ TQString whatsThis = i18n("Sets the identity corresponding to "
"the organizer of this to-do or event. "
"Identities can be set in the 'Personal' "
"section of the KOrganizer configuration, or in the "
@@ -72,64 +72,64 @@ void KOAttendeeEditor::initOrganizerWidgets(QWidget * parent, QBoxLayout * layou
"be sure to check 'Use email settings from "
"Control Center' in the 'Personal' section of the "
"KOrganizer configuration.");
- mOrganizerLabel = new QLabel( i18n( "Identity as organizer:" ),
+ mOrganizerLabel = new TQLabel( i18n( "Identity as organizer:" ),
mOrganizerHBox );
- mOrganizerCombo = new QComboBox( mOrganizerHBox );
- QWhatsThis::add( mOrganizerLabel, whatsThis );
- QWhatsThis::add( mOrganizerCombo, whatsThis );
+ mOrganizerCombo = new TQComboBox( mOrganizerHBox );
+ TQWhatsThis::add( mOrganizerLabel, whatsThis );
+ TQWhatsThis::add( mOrganizerCombo, whatsThis );
fillOrganizerCombo();
mOrganizerHBox->setStretchFactor( mOrganizerCombo, 100 );
}
-void KOAttendeeEditor::initEditWidgets(QWidget * parent, QBoxLayout * layout)
+void KOAttendeeEditor::initEditWidgets(TQWidget * parent, TQBoxLayout * layout)
{
- QGridLayout *topLayout = new QGridLayout();
+ TQGridLayout *topLayout = new TQGridLayout();
layout->addLayout( topLayout );
- QString whatsThis = i18n("Edits the name of the attendee selected in the list "
+ TQString whatsThis = i18n("Edits the name of the attendee selected in the list "
"above, or adds a new attendee if there are no attendees"
"in the list.");
- QLabel *attendeeLabel = new QLabel( parent );
- QWhatsThis::add( attendeeLabel, whatsThis );
+ TQLabel *attendeeLabel = new TQLabel( parent );
+ TQWhatsThis::add( attendeeLabel, whatsThis );
attendeeLabel->setText( i18n("Na&me:") );
topLayout->addWidget( attendeeLabel, 0, 0 );
mNameEdit = new KPIM::AddresseeLineEdit( parent );
- QWhatsThis::add( mNameEdit, whatsThis );
+ TQWhatsThis::add( mNameEdit, whatsThis );
mNameEdit->setClickMessage( i18n("Click to add a new attendee") );
attendeeLabel->setBuddy( mNameEdit );
mNameEdit->installEventFilter( this );
- connect( mNameEdit, SIGNAL( textChanged( const QString & ) ),
- SLOT( updateAttendee() ) );
+ connect( mNameEdit, TQT_SIGNAL( textChanged( const TQString & ) ),
+ TQT_SLOT( updateAttendee() ) );
topLayout->addMultiCellWidget( mNameEdit, 0, 0, 1, 2 );
whatsThis = i18n("Edits the role of the attendee selected "
"in the list above.");
- QLabel *attendeeRoleLabel = new QLabel( parent );
- QWhatsThis::add( attendeeRoleLabel, whatsThis );
+ TQLabel *attendeeRoleLabel = new TQLabel( parent );
+ TQWhatsThis::add( attendeeRoleLabel, whatsThis );
attendeeRoleLabel->setText( i18n("Ro&le:") );
topLayout->addWidget( attendeeRoleLabel, 1, 0 );
- mRoleCombo = new QComboBox( false, parent );
- QWhatsThis::add( mRoleCombo, whatsThis );
+ mRoleCombo = new TQComboBox( false, parent );
+ TQWhatsThis::add( mRoleCombo, whatsThis );
mRoleCombo->insertStringList( Attendee::roleList() );
attendeeRoleLabel->setBuddy( mRoleCombo );
- connect( mRoleCombo, SIGNAL( activated( int ) ),
- SLOT( updateAttendee() ) );
+ connect( mRoleCombo, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( updateAttendee() ) );
topLayout->addWidget( mRoleCombo, 1, 1 );
- mDelegateLabel = new QLabel( parent );
+ mDelegateLabel = new TQLabel( parent );
topLayout->addWidget( mDelegateLabel, 1, 2 );
whatsThis = i18n("Edits the current attendance status of the attendee "
"selected in the list above.");
- QLabel *statusLabel = new QLabel( parent );
- QWhatsThis::add( statusLabel, whatsThis );
+ TQLabel *statusLabel = new TQLabel( parent );
+ TQWhatsThis::add( statusLabel, whatsThis );
statusLabel->setText( i18n("Stat&us:") );
topLayout->addWidget( statusLabel, 2, 0 );
- mStatusCombo = new QComboBox( false, parent );
- QWhatsThis::add( mStatusCombo, whatsThis );
+ mStatusCombo = new TQComboBox( false, parent );
+ TQWhatsThis::add( mStatusCombo, whatsThis );
// mStatusCombo->insertStringList( Attendee::statusList() );
mStatusCombo->insertItem( SmallIcon( "help" ), Attendee::statusName( Attendee::NeedsAction ) );
mStatusCombo->insertItem( KOGlobals::self()->smallIcon( "ok" ), Attendee::statusName( Attendee::Accepted ) );
@@ -140,26 +140,26 @@ void KOAttendeeEditor::initEditWidgets(QWidget * parent, QBoxLayout * layout)
mStatusCombo->insertItem( KOGlobals::self()->smallIcon( "help" ), Attendee::statusName( Attendee::InProcess ) );
statusLabel->setBuddy( mStatusCombo );
- connect( mStatusCombo, SIGNAL( activated( int ) ),
- SLOT( updateAttendee() ) );
+ connect( mStatusCombo, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( updateAttendee() ) );
topLayout->addWidget( mStatusCombo, 2, 1 );
topLayout->setColStretch( 2, 1 );
- mRsvpButton = new QCheckBox( parent );
- QWhatsThis::add( mRsvpButton,
+ mRsvpButton = new TQCheckBox( parent );
+ TQWhatsThis::add( mRsvpButton,
i18n("Edits whether to send an email to the attendee "
"selected in the list above to request "
"a response concerning attendance.") );
mRsvpButton->setText( i18n("Re&quest response") );
- connect( mRsvpButton, SIGNAL( clicked() ), SLOT( updateAttendee() ) );
+ connect( mRsvpButton, TQT_SIGNAL( clicked() ), TQT_SLOT( updateAttendee() ) );
topLayout->addWidget( mRsvpButton, 2, 2 );
- QWidget *buttonBox = new QWidget( parent );
- QVBoxLayout *buttonLayout = new QVBoxLayout( buttonBox );
+ TQWidget *buttonBox = new TQWidget( parent );
+ TQVBoxLayout *buttonLayout = new TQVBoxLayout( buttonBox );
- mAddButton = new QPushButton( i18n("&New"), buttonBox );
- QWhatsThis::add( mAddButton,
+ mAddButton = new TQPushButton( i18n("&New"), buttonBox );
+ TQWhatsThis::add( mAddButton,
i18n("Adds a new attendee to the list. Once the "
"attendee is added, you will be able to "
"edit the attendee's name, role, attendance "
@@ -168,21 +168,21 @@ void KOAttendeeEditor::initEditWidgets(QWidget * parent, QBoxLayout * layout)
"from your addressbook, click the 'Select Addressee' "
"button instead.") );
buttonLayout->addWidget( mAddButton );
- connect( mAddButton, SIGNAL( clicked() ), SLOT( addNewAttendee() ) );
+ connect( mAddButton, TQT_SIGNAL( clicked() ), TQT_SLOT( addNewAttendee() ) );
- mRemoveButton = new QPushButton( i18n("&Remove"), buttonBox );
- QWhatsThis::add( mRemoveButton,
+ mRemoveButton = new TQPushButton( i18n("&Remove"), buttonBox );
+ TQWhatsThis::add( mRemoveButton,
i18n("Removes the attendee selected in "
"the list above.") );
buttonLayout->addWidget( mRemoveButton );
- mAddressBookButton = new QPushButton( i18n("Select Addressee..."),
+ mAddressBookButton = new TQPushButton( i18n("Select Addressee..."),
buttonBox );
- QWhatsThis::add( mAddressBookButton,
+ TQWhatsThis::add( mAddressBookButton,
i18n("Opens your address book, allowing you to select "
"new attendees from it.") );
buttonLayout->addWidget( mAddressBookButton );
- connect( mAddressBookButton, SIGNAL( clicked() ), SLOT( openAddressBook() ) );
+ connect( mAddressBookButton, TQT_SIGNAL( clicked() ), TQT_SLOT( openAddressBook() ) );
topLayout->addMultiCellWidget( buttonBox, 0, 3, 3, 3 );
@@ -249,9 +249,9 @@ void KOAttendeeEditor::fillOrganizerCombo()
Q_ASSERT( mOrganizerCombo );
// Get all emails from KOPrefs (coming from various places),
// and insert them - removing duplicates
- const QStringList lst = KOPrefs::instance()->fullEmails();
- QStringList uniqueList;
- for( QStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it ) {
+ const TQStringList lst = KOPrefs::instance()->fullEmails();
+ TQStringList uniqueList;
+ for( TQStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it ) {
if ( uniqueList.find( *it ) == uniqueList.end() )
uniqueList << *it;
}
@@ -268,7 +268,7 @@ void KOAttendeeEditor::addNewAttendee()
// We don't want the hint again
mNameEdit->setClickMessage( "" );
mNameEdit->setFocus();
- QTimer::singleShot( 0, mNameEdit, SLOT( selectAll() ) );
+ TQTimer::singleShot( 0, mNameEdit, TQT_SLOT( selectAll() ) );
}
void KOAttendeeEditor::readEvent(KCal::Incidence * incidence)
@@ -277,13 +277,13 @@ void KOAttendeeEditor::readEvent(KCal::Incidence * incidence)
mnewAttendees.clear();
if ( KOPrefs::instance()->thatIsMe( incidence->organizer().email() ) ) {
if ( !mOrganizerCombo ) {
- mOrganizerCombo = new QComboBox( mOrganizerHBox );
+ mOrganizerCombo = new TQComboBox( mOrganizerHBox );
fillOrganizerCombo();
}
mOrganizerLabel->setText( i18n( "Identity as organizer:" ) );
int found = -1;
- QString fullOrganizer = incidence->organizer().fullName();
+ TQString fullOrganizer = incidence->organizer().fullName();
for ( int i = 0 ; i < mOrganizerCombo->count(); ++i ) {
if ( mOrganizerCombo->text( i ) == fullOrganizer ) {
found = i;
@@ -330,12 +330,12 @@ void KOAttendeeEditor::setEnableAttendeeInput(bool enabled)
void KOAttendeeEditor::clearAttendeeInput()
{
mNameEdit->setText("");
- mUid = QString::null;
+ mUid = TQString::null;
mRoleCombo->setCurrentItem(0);
mStatusCombo->setCurrentItem(0);
mRsvpButton->setChecked(true);
setEnableAttendeeInput( false );
- mDelegateLabel->setText( QString() );
+ mDelegateLabel->setText( TQString() );
}
void KOAttendeeEditor::updateAttendee()
@@ -344,8 +344,8 @@ void KOAttendeeEditor::updateAttendee()
if ( !a || mDisableItemUpdate )
return;
- QString name;
- QString email;
+ TQString name;
+ TQString email;
KPIM::getNameAndMail(mNameEdit->text(), name, email);
bool iAmTheOrganizer = mOrganizerCombo &&
@@ -380,7 +380,7 @@ void KOAttendeeEditor::fillAttendeeInput( KCal::Attendee *a )
{
mDisableItemUpdate = true;
- QString name = a->name();
+ TQString name = a->name();
if (!a->email().isEmpty()) {
name = KPIM::quoteNameIfNecessary( name );
name += " <" + a->email() + ">";
@@ -444,14 +444,14 @@ void KOAttendeeEditor::declineForMe()
changeStatusForMe( Attendee::Declined );
}
-bool KOAttendeeEditor::eventFilter(QObject *watched, QEvent *ev)
+bool KOAttendeeEditor::eventFilter(TQObject *watched, TQEvent *ev)
{
- if ( watched && watched == mNameEdit && ev->type() == QEvent::FocusIn &&
+ if ( watched && watched == mNameEdit && ev->type() == TQEvent::FocusIn &&
currentAttendee() == 0 ) {
addNewAttendee();
}
- return QWidget::eventFilter( watched, ev );
+ return TQWidget::eventFilter( watched, ev );
}
#include "koattendeeeditor.moc"