void KOEventEditor::setupGeneral() { mGeneral = new KOEditorGeneralEvent( mCalendar, this ); if( KOPrefs::instance()->mCompactDialogs ) { QFrame *topFrame = new QFrame(); addPage( topFrame, i18nc( "@title:tab general event settings", "General" ) ); topFrame->setWhatsThis( i18nc( "@info:whatsthis", "The General tab allows you to set the most " "common options for the event." ) ); QBoxLayout *topLayout = new QVBoxLayout( topFrame ); topLayout->setSpacing( spacingHint() ); mGeneral->initHeader( topFrame, topLayout ); mGeneral->initTime( topFrame, topLayout ); mGeneral->initAlarm( topFrame, topLayout ); mGeneral->enableAlarm( false ); topLayout->addStretch( 1 ); QFrame *topFrame2 = new QFrame(); addPage( topFrame2, i18nc( "@title:tab", "Details" ) ); QBoxLayout *topLayout2 = new QVBoxLayout( topFrame2 ); topLayout2->setSpacing( spacingHint() ); mGeneral->initClass( topFrame2, topLayout2 ); mGeneral->initSecrecy( topFrame2, topLayout2 ); mGeneral->initDescription( topFrame2, topLayout2 ); } else { QFrame *topFrame = new QFrame(); addPage( topFrame, i18nc( "@title:tab general event settings", "&General" ) ); topFrame->setWhatsThis( i18nc( "@info:whatsthis", "The General tab allows you to set the most " "common options for the event." ) ); QBoxLayout *topLayout = new QVBoxLayout( topFrame ); topLayout->setSpacing( spacingHint() ); mGeneral->initInvitationBar( topFrame, topLayout ); mGeneral->initHeader( topFrame, topLayout ); 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)) ); } mGeneral->finishSetup(); }
void KOEventEditor::setupFreeBusy() { QFrame *freeBusyPage = new QFrame(); addPage( freeBusyPage, i18nc( "@title:tab", "&Attendees" ) ); freeBusyPage->setWhatsThis( i18nc( "@info:whatsthis", "The Free/Busy tab allows you to see " "whether other attendees are free or busy " "during your event." ) ); QBoxLayout *topLayout = new QVBoxLayout( freeBusyPage ); mAttendeeEditor = mFreeBusy = new KOEditorFreeBusy( spacingHint(), freeBusyPage ); topLayout->addWidget( mFreeBusy ); }
void KOEventEditor::setupRecurrence() { #if 0 QFrame *topFrame = new QFrame(); addPage( topFrame, i18nc( "@title:tab", "Rec&urrence" ) ); topFrame->setWhatsThis( i18nc( "@info:whatsthis", "The Recurrence tab allows you to set options " "on how often this event recurs." ) ); QBoxLayout *topLayout = new QVBoxLayout( topFrame ); mRecurrence = new KOEditorRecurrence( topFrame ); topLayout->addWidget( mRecurrence ); #endif mRecurrenceDialog = new KOEditorRecurrenceDialog( this ); mRecurrenceDialog->hide(); mRecurrence = mRecurrenceDialog->editor(); }