diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-02-15 11:44:14 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-17 10:50:51 -0800 |
commit | 0178f0c7e78d8e61e5794f33e519a87c56039c06 (patch) | |
tree | b038f425803b76431778a712346a61c279e78fb6 /mobile-widgets/qmlmanager.cpp | |
parent | b8c02c9b030da70f5abdd143fcde4a1bf8435a94 (diff) | |
download | subsurface-0178f0c7e78d8e61e5794f33e519a87c56039c06.tar.gz |
mobile/export: remove most of the export options
A tablet or phone is not a computer. What would you do with a CSV or TeX/LaTeX
file on a phone. Yeah, I get it, feature parity.
This should never have been merged.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 8a0a410b5..a877818cb 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -2124,6 +2124,7 @@ void QMLManager::appInitialized() #endif } +#if !defined(Q_OS_ANDROID) void QMLManager::exportToFile(export_types type, QString dir, bool anonymize) { // dir starts with "file://" e.g. "file:///tmp" @@ -2144,40 +2145,12 @@ void QMLManager::exportToFile(export_types type, QString dir, bool anonymize) case EX_UDDF: exportUsingStyleSheet(fileName + ".uddf", true, 0, "uddf-export.xslt", anonymize); break; - case EX_CSV_DIVE_PROFILE: - exportUsingStyleSheet(fileName + ".uddf", true, 0, "xml2csv.xslt", anonymize); - break; - case EX_CSV_DETAILS: - exportUsingStyleSheet(fileName + ".uddf", true, 0, "xml2manualcsv.xslt", anonymize); - break; - case EX_CSV_PROFILE: - save_profiledata(qPrintable(fileName + ".csv"), true); - break; - case EX_PROFILE_PNG: - exportProfile(qPrintable(fileName + ".png"), false); - break; - case EX_WORLD_MAP: - export_worldmap_HTML(qPrintable(fileName + ".html"), true); - break; - case EX_TEX: - export_TeX(qPrintable(fileName + ".tex"), true, true); - break; - case EX_LATEX: - export_TeX(qPrintable(fileName + ".tex"), true, false); - break; - case EX_IMAGE_DEPTHS: - export_depths(qPrintable(fileName), false); - break; default: qDebug() << "export to unknown type " << type << " using " << dir << " remove names " << anonymize; break; } } - -void exportProfile(const struct dive *, const QString) -{ - // TBD -} +#endif void QMLManager::exportToWEB(export_types type, QString userId, QString password, bool anonymize) { |