Ejemplo n.º 1
0
KolabWizard::KolabWizard() : KConfigWizard( new KolabPropagator )
{
  QFrame *page = createWizardPage( i18n("Kolab Server") );

  QGridLayout *topLayout = new QGridLayout( page );
  topLayout->setSpacing( spacingHint() );

  QLabel *label = new QLabel( i18n("Server name:"), page );
  topLayout->addWidget( label, 0, 0 );
  mServerEdit = new KLineEdit( page );
  topLayout->addWidget( mServerEdit, 0, 1 );

  label = new QLabel( i18n("Email address:"), page );
  topLayout->addWidget( label, 1, 0 );
  mUserEdit = new KLineEdit( page );
  topLayout->addWidget( mUserEdit, 1, 1 );
  QWhatsThis::add(mUserEdit, i18n("Your email address on the Kolab Server. "
                        "Format: <i>[email protected]</i>"));

  label = new QLabel( i18n("Real name:"), page );
  topLayout->addWidget( label, 2, 0 );
  mRealNameEdit = new KLineEdit( page );
  topLayout->addWidget( mRealNameEdit, 2, 1 );

  label = new QLabel( i18n("Password:"******"Save password"), page );
  topLayout->addMultiCellWidget( mSavePasswordCheck, 4, 4, 0, 1 );

  topLayout->setRowStretch( 4, 1 );

  mUseOnlineForNonGroupwareCheck = new QCheckBox( i18n("Use an online IMAP account for non-groupware folders"), page );
  topLayout->addMultiCellWidget( mUseOnlineForNonGroupwareCheck, 5, 5, 0, 1 );
  topLayout->setRowStretch( 5, 1 );

  QButtonGroup *bg = new QHButtonGroup(i18n("Server Version"), page );
  QWhatsThis::add( bg, i18n("Choose the version of the Kolab Server you are using.") );
  mKolab1 = new QRadioButton( i18n ( "Kolab 1" ), bg );
  mKolab2 = new QRadioButton( i18n ( "Kolab 2" ), bg );
  topLayout->addMultiCellWidget( bg, 6, 6, 0, 1 );

  setInitialSize( QSize( 600, 300 ) );
}
Ejemplo n.º 2
0
ExchangeWizard::ExchangeWizard() : KConfigWizard( new ExchangePropagator )
{
    QFrame *page = createWizardPage( i18n("Microsoft Exchange Server") );
    QGridLayout *topLayout = new QGridLayout( page );
    topLayout->setSpacing( spacingHint() );

    QLabel *label = new QLabel( i18n("Server name:"), page );
    topLayout->addWidget( label, 0, 0 );
    mServerEdit = new KLineEdit( page );
    topLayout->addWidget( mServerEdit, 0, 1 );

    label = new QLabel( i18n("Port:"), page );
    topLayout->addWidget( label, 1, 0 );
    mPortEdit = new QSpinBox( 1, 65536, 1, page );
    topLayout->addWidget( mPortEdit, 1, 1 );

    label = new QLabel( i18n("User name:"), page );
    topLayout->addWidget( label, 2, 0 );
    mUserEdit = new KLineEdit( page );
    topLayout->addWidget( mUserEdit, 2, 1 );

    label = new QLabel( i18n("Password:"******"Save password"), page );
    topLayout->addMultiCellWidget( mSavePasswordCheck, 4, 4, 0, 1 );

    mSecureCheck = new QCheckBox( i18n("Encrypt communication with server"),
                                  page );
    topLayout->addMultiCellWidget( mSecureCheck, 5, 5, 0, 1 );

#if 0
    KPIM::FolderConfig *fcfg = new KPIM::FolderConfig( page );
    topLayout->addMultiCellWidget( fcfg , 5, 5, 0, 1 );
#endif

    topLayout->setRowStretch( 5, 1 );

    setupRulesPage();
    setupChangesPage();

    resize( 400, 300 );
}