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.7 KiB

// kmacctseldlg.cpp
#include <qpushbt.h>
#include <qradiobt.h>
#include <qbttngrp.h>
#include <qradiobt.h>
#include <klocale.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(nls->translate("Account Type"), this);
grp->resize(230, 110);
connect(grp, SIGNAL(clicked(int)), SLOT(buttonClicked(int)));
ok = new QPushButton(nls->translate("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(nls->translate("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(nls->translate("Local Mailbox"), grp);
rbtn->adjustSize();
rbtn->move(30,30);
rbtn = new QRadioButton(nls->translate("Pop3"), grp);
rbtn->adjustSize();
rbtn->move(30,60);
}
//-----------------------------------------------------------------------------
void KMAcctSelDlg::buttonClicked(int id)
{
mSelBtn = id;
ok->setEnabled(TRUE);
}
//-----------------------------------------------------------------------------
#include "kmacctseldlg.moc"