| 142 | } |
| 143 | |
| 144 | void |
| 145 | TLESourceTab::populateTLESourceTable(void) |
| 146 | { |
| 147 | auto sus = Suscan::Singleton::get_instance(); |
| 148 | for (auto src : sus->getTLESourceMap()) { |
| 149 | int index = this->ui->tleSourceTable->rowCount(); |
| 150 | this->ui->tleSourceTable->insertRow(index); |
| 151 | this->ui->tleSourceTable->setItem( |
| 152 | index, |
| 153 | 0, |
| 154 | new QTableWidgetItem(QString::fromStdString(src.name))); |
| 155 | |
| 156 | this->ui->tleSourceTable->setItem( |
| 157 | index, |
| 158 | 1, |
| 159 | new QTableWidgetItem(QString::fromStdString(src.url))); |
| 160 | } |
| 161 | this->ui->tleSourceTable->resizeColumnsToContents(); |
| 162 | } |
| 163 | |
| 164 | void |
| 165 | TLESourceTab::triggerDownloadTLEs(void) |