CalibrationWnd::CalibrationWnd( QWidget * parent ) : QWidget( parent ) { ui.setupUi( this ); ui.panel->setEnabled( false ); connect( ui.mode, SIGNAL(clicked()), this, SLOT(slotEnable()) ); connect( ui.addVolt, SIGNAL(clicked()), this, SLOT(slotAddVolt()) ); connect( ui.addCurr, SIGNAL(clicked()), this, SLOT(slotAddCurr()) ); connect( ui.clearFileBtn, SIGNAL(clicked()), this, SLOT(slotClearFiles()) ); // DEBUG /* adcAux.append( 2000 ); volt.append( -10.0 ); adcAux.append( 4000 ); volt.append( 10.0 ); adcAux.append( 3000 ); volt.append( 0.0 ); calcAdcAux2Volt(); */ }
FedgeConfigAccounts::FedgeConfigAccounts(QWidget *parent, const char *name, QPtrList<Account> *accounts) : ConfigAccounts(parent, name) { m_changed = false; m_config = new KConfig("fedgerc"); int i = 0; Account *account; for (account = accounts->first(); account; account = accounts->next()) { m_config->setGroup("Account " + QString::number(i)); addAccount(account); i++; } kmailButton->setIconSet(KIconLoader().loadIcon("kmail", KIcon::Desktop)); connect(kmailButton, SIGNAL(clicked()), SLOT(slotKmail())); connect(removeButton, SIGNAL(clicked()), SLOT(slotRemove())); connect(enableButton, SIGNAL(clicked()), SLOT(slotEnable())); connect(accountsBox, SIGNAL(selectionChanged()), SLOT(slotSelectionChanged())); }