| 22 | using namespace SigDigger; |
| 23 | |
| 24 | void |
| 25 | DeviceTweaks::connectAll(void) |
| 26 | { |
| 27 | QPushButton *resetButton = this->ui->buttonBox->button( |
| 28 | QDialogButtonBox::Reset); |
| 29 | |
| 30 | connect( |
| 31 | this->ui->addButton, |
| 32 | SIGNAL(clicked(void)), |
| 33 | this, |
| 34 | SLOT(onAddEntry(void))); |
| 35 | |
| 36 | connect( |
| 37 | this->ui->removeButton, |
| 38 | SIGNAL(clicked(void)), |
| 39 | this, |
| 40 | SLOT(onRemoveEntry(void))); |
| 41 | |
| 42 | connect( |
| 43 | this->ui->tableWidget->selectionModel(), |
| 44 | SIGNAL(selectionChanged(const QItemSelection &, const QItemSelection &)), |
| 45 | this, |
| 46 | SLOT(onSelectionChanged(const QItemSelection &, const QItemSelection &))); |
| 47 | |
| 48 | connect( |
| 49 | this->ui->tableWidget, |
| 50 | SIGNAL(itemChanged(QTableWidgetItem *)), |
| 51 | this, |
| 52 | SLOT(onChanged())); |
| 53 | |
| 54 | |
| 55 | connect( |
| 56 | resetButton, |
| 57 | SIGNAL(clicked(void)), |
| 58 | this, |
| 59 | SLOT(onReset())); |
| 60 | } |
| 61 | |
| 62 | void |
| 63 | DeviceTweaks::refreshUi(void) |