diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/koeventeditor.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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 'korganizer/koeventeditor.cpp')
-rw-r--r-- | korganizer/koeventeditor.cpp | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/korganizer/koeventeditor.cpp b/korganizer/koeventeditor.cpp index 31a909717..5cc7041ee 100644 --- a/korganizer/koeventeditor.cpp +++ b/korganizer/koeventeditor.cpp @@ -23,12 +23,12 @@ without including the source code for Qt in the source distribution. */ -#include <qtooltip.h> -#include <qframe.h> -#include <qpixmap.h> -#include <qlayout.h> -#include <qwidgetstack.h> -#include <qwhatsthis.h> +#include <tqtooltip.h> +#include <tqframe.h> +#include <tqpixmap.h> +#include <tqlayout.h> +#include <tqwidgetstack.h> +#include <tqwhatsthis.h> #include <kiconloader.h> #include <kdebug.h> @@ -51,8 +51,8 @@ #include "koeventeditor.h" -KOEventEditor::KOEventEditor( Calendar *calendar, QWidget *parent ) - : KOIncidenceEditor( QString::null, calendar, parent ), +KOEventEditor::KOEventEditor( Calendar *calendar, TQWidget *parent ) + : KOIncidenceEditor( TQString::null, calendar, parent ), mEvent( 0 ), mCalendar( 0 ), mGeneral( 0 ), mRecurrence( 0 ), mFreeBusy( 0 ) { } @@ -72,39 +72,39 @@ void KOEventEditor::init() setupDesignerTabs( "event" ); // Propagate date time settings to recurrence tab - connect( mGeneral, SIGNAL( dateTimesChanged( const QDateTime &, const QDateTime & ) ), - mRecurrence, SLOT( setDateTimes( const QDateTime &, const QDateTime &) ) ); - connect( mGeneral, SIGNAL( dateTimeStrChanged( const QString & ) ), - mRecurrence, SLOT( setDateTimeStr( const QString & ) ) ); - connect( mFreeBusy, SIGNAL( dateTimesChanged( const QDateTime &, const QDateTime & ) ), - mRecurrence, SLOT( setDateTimes( const QDateTime &, const QDateTime & ) ) ); + connect( mGeneral, TQT_SIGNAL( dateTimesChanged( const TQDateTime &, const TQDateTime & ) ), + mRecurrence, TQT_SLOT( setDateTimes( const TQDateTime &, const TQDateTime &) ) ); + connect( mGeneral, TQT_SIGNAL( dateTimeStrChanged( const TQString & ) ), + mRecurrence, TQT_SLOT( setDateTimeStr( const TQString & ) ) ); + connect( mFreeBusy, TQT_SIGNAL( dateTimesChanged( const TQDateTime &, const TQDateTime & ) ), + mRecurrence, TQT_SLOT( setDateTimes( const TQDateTime &, const TQDateTime & ) ) ); // Propagate date time settings to gantt tab and back - connect( mGeneral, SIGNAL( dateTimesChanged( const QDateTime &, const QDateTime & ) ), - mFreeBusy, SLOT( slotUpdateGanttView( const QDateTime &, const QDateTime & ) ) ); - connect( mFreeBusy, SIGNAL( dateTimesChanged( const QDateTime &, const QDateTime & ) ), - mGeneral, SLOT( setDateTimes( const QDateTime &, const QDateTime & ) ) ); - - connect( mGeneral, SIGNAL( focusReceivedSignal() ), - SIGNAL( focusReceivedSignal() ) ); - - connect( mGeneral, SIGNAL( openCategoryDialog() ), - SIGNAL( editCategories() ) ); - connect( this, SIGNAL( updateCategoryConfig() ), - mGeneral, SIGNAL( updateCategoryConfig() ) ); - - connect( mFreeBusy, SIGNAL(updateAttendeeSummary(int)), - mGeneral, SLOT(updateAttendeeSummary(int)) ); - - connect( mGeneral, SIGNAL(editRecurrence()), - mRecurrenceDialog, SLOT(show()) ); - connect( mRecurrenceDialog, SIGNAL(okClicked()), - SLOT(updateRecurrenceSummary()) ); - - connect( mGeneral, SIGNAL(acceptInvitation()), - mFreeBusy, SLOT(acceptForMe()) ); - connect( mGeneral, SIGNAL(declineInvitation()), - mFreeBusy, SLOT(declineForMe()) ); + connect( mGeneral, TQT_SIGNAL( dateTimesChanged( const TQDateTime &, const TQDateTime & ) ), + mFreeBusy, TQT_SLOT( slotUpdateGanttView( const TQDateTime &, const TQDateTime & ) ) ); + connect( mFreeBusy, TQT_SIGNAL( dateTimesChanged( const TQDateTime &, const TQDateTime & ) ), + mGeneral, TQT_SLOT( setDateTimes( const TQDateTime &, const TQDateTime & ) ) ); + + connect( mGeneral, TQT_SIGNAL( focusReceivedSignal() ), + TQT_SIGNAL( focusReceivedSignal() ) ); + + connect( mGeneral, TQT_SIGNAL( openCategoryDialog() ), + TQT_SIGNAL( editCategories() ) ); + connect( this, TQT_SIGNAL( updateCategoryConfig() ), + mGeneral, TQT_SIGNAL( updateCategoryConfig() ) ); + + connect( mFreeBusy, TQT_SIGNAL(updateAttendeeSummary(int)), + mGeneral, TQT_SLOT(updateAttendeeSummary(int)) ); + + connect( mGeneral, TQT_SIGNAL(editRecurrence()), + mRecurrenceDialog, TQT_SLOT(show()) ); + connect( mRecurrenceDialog, TQT_SIGNAL(okClicked()), + TQT_SLOT(updateRecurrenceSummary()) ); + + connect( mGeneral, TQT_SIGNAL(acceptInvitation()), + mFreeBusy, TQT_SLOT(acceptForMe()) ); + connect( mGeneral, TQT_SIGNAL(declineInvitation()), + mFreeBusy, TQT_SLOT(declineForMe()) ); } void KOEventEditor::reload() @@ -119,37 +119,37 @@ void KOEventEditor::setupGeneral() mGeneral = new KOEditorGeneralEvent( this ); if( KOPrefs::instance()->mCompactDialogs ) { - QFrame *topFrame = addPage(i18n("General")); - QWhatsThis::add( topFrame, + TQFrame *topFrame = addPage(i18n("General")); + TQWhatsThis::add( topFrame, i18n("The General tab allows you to set the most common " "options for the event.") ); - QBoxLayout *topLayout = new QVBoxLayout(topFrame); + TQBoxLayout *topLayout = new TQVBoxLayout(topFrame); topLayout->setSpacing(spacingHint()); mGeneral->initHeader( topFrame, topLayout ); mGeneral->initTime(topFrame,topLayout); -// QBoxLayout *alarmLineLayout = new QHBoxLayout(topLayout); +// TQBoxLayout *alarmLineLayout = new TQHBoxLayout(topLayout); mGeneral->initAlarm(topFrame,topLayout); mGeneral->enableAlarm( false ); topLayout->addStretch( 1 ); - QFrame *topFrame2 = addPage(i18n("Details")); + TQFrame *topFrame2 = addPage(i18n("Details")); - QBoxLayout *topLayout2 = new QVBoxLayout(topFrame2); + TQBoxLayout *topLayout2 = new TQVBoxLayout(topFrame2); topLayout2->setSpacing(spacingHint()); mGeneral->initClass(topFrame2,topLayout2); mGeneral->initSecrecy( topFrame2, topLayout2 ); mGeneral->initDescription(topFrame2,topLayout2); } else { - QFrame *topFrame = addPage(i18n("&General")); - QWhatsThis::add( topFrame, + TQFrame *topFrame = addPage(i18n("&General")); + TQWhatsThis::add( topFrame, i18n("The General tab allows you to set the most common " "options for the event.") ); - QBoxLayout *topLayout = new QVBoxLayout(topFrame); + TQBoxLayout *topLayout = new TQVBoxLayout(topFrame); topLayout->setSpacing(spacingHint()); mGeneral->initInvitationBar( topFrame, topLayout ); @@ -157,10 +157,10 @@ void KOEventEditor::setupGeneral() mGeneral->initTime(topFrame,topLayout); mGeneral->initDescription(topFrame,topLayout); mGeneral->initAttachments(topFrame,topLayout); - connect( mGeneral, SIGNAL( openURL( const KURL& ) ), - this, SLOT( openURL( const KURL& ) ) ); - connect( this, SIGNAL( signalAddAttachments( const QStringList&, const QStringList&, bool ) ), - mGeneral, SLOT( addAttachments( const QStringList&, const QStringList&, bool ) ) ); + connect( mGeneral, TQT_SIGNAL( openURL( const KURL& ) ), + this, TQT_SLOT( openURL( const KURL& ) ) ); + connect( this, TQT_SIGNAL( signalAddAttachments( const TQStringList&, const TQStringList&, bool ) ), + mGeneral, TQT_SLOT( addAttachments( const TQStringList&, const TQStringList&, bool ) ) ); } mGeneral->finishSetup(); @@ -176,13 +176,13 @@ void KOEventEditor::modified (int /*modification*/) void KOEventEditor::setupRecurrence() { #if 0 - QFrame *topFrame = addPage( i18n("Rec&urrence") ); + TQFrame *topFrame = addPage( i18n("Rec&urrence") ); - QWhatsThis::add( topFrame, + TQWhatsThis::add( topFrame, i18n("The Recurrence tab allows you to set options on " "how often this event recurs.") ); - QBoxLayout *topLayout = new QVBoxLayout( topFrame ); + TQBoxLayout *topLayout = new TQVBoxLayout( topFrame ); mRecurrence = new KOEditorRecurrence( topFrame ); topLayout->addWidget( mRecurrence ); @@ -194,12 +194,12 @@ void KOEventEditor::setupRecurrence() void KOEventEditor::setupFreeBusy() { - QFrame *freeBusyPage = addPage( i18n("&Attendees") ); - QWhatsThis::add( freeBusyPage, + TQFrame *freeBusyPage = addPage( i18n("&Attendees") ); + TQWhatsThis::add( freeBusyPage, i18n("The Free/Busy tab allows you to see whether " "other attendees are free or busy during your event.") ); - QBoxLayout *topLayout = new QVBoxLayout( freeBusyPage ); + TQBoxLayout *topLayout = new TQVBoxLayout( freeBusyPage ); mAttendeeEditor = mFreeBusy = new KOEditorFreeBusy( spacingHint(), freeBusyPage ); topLayout->addWidget( mFreeBusy ); @@ -227,7 +227,7 @@ void KOEventEditor::newEvent() setCaption( i18n("New Event") ); } -void KOEventEditor::setDates( const QDateTime &from, const QDateTime &to, bool allDay ) +void KOEventEditor::setDates( const TQDateTime &from, const TQDateTime &to, bool allDay ) { mGeneral->setDefaults( from, to, allDay ); mRecurrence->setDefaults( from, to, allDay ); @@ -239,7 +239,7 @@ void KOEventEditor::setDates( const QDateTime &from, const QDateTime &to, bool a } } -void KOEventEditor::setTexts( const QString &summary, const QString &description ) +void KOEventEditor::setTexts( const TQString &summary, const TQString &description ) { if ( description.isEmpty() && summary.contains("\n") ) { mGeneral->setDescription( summary ); @@ -253,10 +253,10 @@ void KOEventEditor::setTexts( const QString &summary, const QString &description void KOEventEditor::loadDefaults() { - QDateTime from( QDate::currentDate(), KOPrefs::instance()->mStartTime.time() ); + TQDateTime from( TQDate::currentDate(), KOPrefs::instance()->mStartTime.time() ); int addSecs = ( KOPrefs::instance()->mDefaultDuration.time().hour()*3600 ) + ( KOPrefs::instance()->mDefaultDuration.time().minute()*60 ); - QDateTime to( from.addSecs( addSecs ) ); + TQDateTime to( from.addSecs( addSecs ) ); setDates( from, to, false ); } @@ -267,7 +267,7 @@ bool KOEventEditor::processInput() if ( !validateInput() || !mChanger ) return false; - QGuardedPtr<KOEditorFreeBusy> freeBusy( mFreeBusy ); + TQGuardedPtr<KOEditorFreeBusy> freeBusy( mFreeBusy ); if ( mEvent ) { bool rc = true; @@ -394,12 +394,12 @@ void KOEventEditor::loadTemplate( /*const*/ CalendarLocal& cal ) } } -QStringList& KOEventEditor::templates() const +TQStringList& KOEventEditor::templates() const { return KOPrefs::instance()->mEventTemplates; } -void KOEventEditor::slotSaveTemplate( const QString &templateName ) +void KOEventEditor::slotSaveTemplate( const TQString &templateName ) { kdDebug(5006) << "SlotSaveTemplate" << endl; Event *event = new Event; @@ -407,7 +407,7 @@ void KOEventEditor::slotSaveTemplate( const QString &templateName ) saveAsTemplate( event, templateName ); } -QObject *KOEventEditor::typeAheadReceiver() const +TQObject *KOEventEditor::typeAheadReceiver() const { return mGeneral->typeAheadReceiver(); } |