27 #include <tqbuttongroup.h>
29 #include <tqradiobutton.h>
31 #include <tdelocale.h>
33 #include "kmacctseldlg.moc"
35 KMAcctSelDlg::KMAcctSelDlg( TQWidget *parent, const char *name, bool modal )
36 : KDialogBase( parent, name, modal, i18n( "Add Account"), Ok|Cancel, Ok )
38 TQFrame *page = makeMainWidget();
39 TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() );
41 TQButtonGroup *group = new TQButtonGroup( i18n( "Account Type"), page );
42 connect(group, TQ_SIGNAL(clicked( int)), TQ_SLOT(buttonClicked( int)) );
44 topLayout->addWidget( group, 10 );
45 TQVBoxLayout *vlay = new TQVBoxLayout( group, spacingHint()*2, spacingHint() );
46 vlay->addSpacing( fontMetrics().lineSpacing() );
48 TQRadioButton *radioButton1 = new TQRadioButton( i18n( "&Local mailbox"), group );
49 vlay->addWidget( radioButton1 );
50 TQRadioButton *radioButton2 = new TQRadioButton( i18n( "&POP3"), group );
51 vlay->addWidget( radioButton2 );
52 TQRadioButton *radioButton3 = new TQRadioButton( i18n( "&IMAP"), group );
53 vlay->addWidget( radioButton3 );
54 TQRadioButton *radioButton4 = new TQRadioButton( i18n( "&Disconnected IMAP"), group );
55 vlay->addWidget( radioButton4 );
56 TQRadioButton *radioButton5 = new TQRadioButton( i18n( "&Maildir mailbox"), group );
57 vlay->addWidget( radioButton5 );
59 vlay->addStretch( 10 );
61 radioButton2->setChecked( true);
66 void KMAcctSelDlg::buttonClicked( int id )
74 return mSelectedButton;
@ Ok The user rights/ACL have been fetched from the server sucessfully.
int selected(void) const Returns selected button from the account selection group: 0=local mail, 1=pop3.
|