mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Hook up LaTeX export to UI
Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
ba0c6d24d4
commit
d85877eb67
2 changed files with 15 additions and 3 deletions
|
@ -94,6 +94,8 @@ void DiveLogExportDialog::showExplanation()
|
|||
ui->description->setText(tr("Write depths of images to file."));
|
||||
} else if (ui->exportTeX->isChecked()) {
|
||||
ui->description->setText(tr("Write dive as TeX macros to file."));
|
||||
} else if (ui->exportLaTeX->isChecked()) {
|
||||
ui->description->setText(tr("Write dive as LaTeX macros to file."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -163,10 +165,10 @@ void DiveLogExportDialog::on_buttonBox_accepted()
|
|||
filename = QFileDialog::getSaveFileName(this, tr("Save image depths"), lastDir);
|
||||
if (!filename.isNull() && !filename.isEmpty())
|
||||
export_depths(qPrintable(filename), ui->exportSelected->isChecked());
|
||||
} else if (ui->exportTeX->isChecked()) {
|
||||
} else if (ui->exportTeX->isChecked() || ui->exportLaTeX->isChecked()) {
|
||||
filename = QFileDialog::getSaveFileName(this, tr("Export to TeX file"), lastDir, tr("TeX files") + " (*.tex)");
|
||||
if (!filename.isNull() && !filename.isEmpty())
|
||||
export_TeX(qPrintable(filename), ui->exportSelected->isChecked(), true);
|
||||
export_TeX(qPrintable(filename), ui->exportSelected->isChecked(), ui->exportTeX->isChecked());
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue