You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.6 KiB
64 lines
1.6 KiB
// kmacctseldlg.cpp |
|
|
|
#include <qpushbt.h> |
|
#include <qradiobt.h> |
|
#include <qbttngrp.h> |
|
#include <qradiobt.h> |
|
#include <kapp.h> |
|
#include <qlayout.h> |
|
|
|
#include "kmacctseldlg.h" |
|
#include "kmglobal.h" |
|
|
|
//----------------------------------------------------------------------------- |
|
KMAcctSelDlg::KMAcctSelDlg(QWidget* parent, const char* name): |
|
KMAcctSelDlgInherited(parent, name, TRUE) |
|
{ |
|
QPushButton *cancel; |
|
QRadioButton *rbtn; |
|
|
|
initMetaObject(); |
|
|
|
setFixedSize(230,150); |
|
setCaption(name); |
|
mSelBtn = 0; |
|
|
|
grp = new QButtonGroup(i18n("Account Type"), this); |
|
grp->resize(230, 110); |
|
connect(grp, SIGNAL(clicked(int)), SLOT(buttonClicked(int))); |
|
|
|
ok = new QPushButton(i18n("Ok"), this); |
|
ok->adjustSize(); |
|
ok->setMinimumSize(ok->sizeHint()); |
|
ok->resize(100, ok->size().height()); |
|
ok->move(10, 145-ok->size().height()); |
|
ok->setEnabled(FALSE); |
|
connect(ok, SIGNAL(clicked()), SLOT(accept())); |
|
|
|
cancel = new QPushButton(i18n("Cancel"), this); |
|
cancel->adjustSize(); |
|
cancel->setMinimumSize(cancel->sizeHint()); |
|
cancel->resize(100, cancel->size().height()); |
|
cancel->move(120, 145-cancel->size().height()); |
|
connect(cancel, SIGNAL(clicked()), SLOT(reject())); |
|
|
|
rbtn = new QRadioButton(i18n("Local Mailbox"), grp); |
|
rbtn->adjustSize(); |
|
rbtn->move(30,30); |
|
|
|
rbtn = new QRadioButton(i18n("Pop3"), grp); |
|
rbtn->adjustSize(); |
|
rbtn->move(30,60); |
|
} |
|
|
|
|
|
//----------------------------------------------------------------------------- |
|
void KMAcctSelDlg::buttonClicked(int id) |
|
{ |
|
mSelBtn = id; |
|
ok->setEnabled(TRUE); |
|
} |
|
|
|
|
|
//----------------------------------------------------------------------------- |
|
#include "kmacctseldlg.moc"
|
|
|