| 222 | } |
| 223 | |
| 224 | void ExportSpreadsheetDialog::setMatrixMode(bool b) { |
| 225 | if (b) { |
| 226 | setWindowTitle(i18nc("@title:window", "Export Matrix")); |
| 227 | ui->lExportHeader->hide(); |
| 228 | ui->chkExportHeader->hide(); |
| 229 | ui->lEmptyRows->hide(); |
| 230 | ui->chkEmptyRows->hide(); |
| 231 | if (ui->cbFormat->currentIndex() != 3) { |
| 232 | ui->chkMatrixHHeader->show(); |
| 233 | ui->chkMatrixVHeader->show(); |
| 234 | ui->lMatrixHHeader->show(); |
| 235 | ui->lMatrixVHeader->show(); |
| 236 | } |
| 237 | |
| 238 | ui->lHeader->hide(); |
| 239 | ui->chkHeaders->hide(); |
| 240 | ui->cbLaTeXExport->setItemText(0, i18n("Export matrix")); |
| 241 | ui->cbExportToFITS->setCurrentIndex(0); |
| 242 | |
| 243 | ui->lColumnAsUnits->hide(); |
| 244 | ui->chkColumnsAsUnits->hide(); |
| 245 | |
| 246 | m_matrixMode = b; |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | QString ExportSpreadsheetDialog::path() const { |
| 251 | return ui->leFileName->text(); |
no test coverage detected