MCPcopy Create free account
hub / github.com/KDE/labplot / setMatrixMode

Method setMatrixMode

src/frontend/spreadsheet/ExportSpreadsheetDialog.cpp:224–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void 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
250QString ExportSpreadsheetDialog::path() const {
251 return ui->leFileName->text();

Callers 1

exportViewMethod · 0.80

Calls 3

showMethod · 0.80
currentIndexMethod · 0.45
setCurrentIndexMethod · 0.45

Tested by

no test coverage detected