/*************************************************************************** * Copyright (C) 2005-2006 Nicolas Hadacek * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #include "pic_prog_group_ui.h" #include "progs/gui/prog_config_widget.h" #include "progs/base/prog_group.h" Programmer::PicAdvancedDialog::PicAdvancedDialog(PicBase &base, TQWidget *parent, const char *name) : AdvancedDialog(base, parent, name) { if (_voltagesContainer) { uint k = _voltagesContainer->numRows(); for (uint i=0; iaddWidget(label, k,k, 0,0); _voltages[i] = new TQLabel(_voltagesContainer); _voltagesContainer->addWidget(_voltages[i], k,k, 1,1); k++; } } } } void Programmer::PicAdvancedDialog::updateDisplay() { ::Programmer::AdvancedDialog::updateDisplay(); for (uint i=0; isetText("---"); else _voltages[i]->setText(TQString("%1 V").arg(v)); } } #include "pic_prog_group_ui.moc"