aboutsummaryrefslogtreecommitdiff
path: root/afdnotebook.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2021-09-16 10:56:37 +0200
committerJavier <dev.git@javispedro.com>2021-09-16 10:56:37 +0200
commitb78e171537fe8cc227521bb6b12bfb923a248f08 (patch)
tree62dac723ef9fc0647f5667635a4e235dbb625bdd /afdnotebook.h
parent5d87ef1a3500c6e7b003a3a54a38b0ce7ab5abb1 (diff)
downloadscribiu-b78e171537fe8cc227521bb6b12bfb923a248f08.tar.gz
scribiu-b78e171537fe8cc227521bb6b12bfb923a248f08.zip
replace txt export support with specific txyz export
Diffstat (limited to 'afdnotebook.h')
-rw-r--r--afdnotebook.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/afdnotebook.h b/afdnotebook.h
index 645d002..9f8886d 100644
--- a/afdnotebook.h
+++ b/afdnotebook.h
@@ -56,8 +56,6 @@ public:
QStringList strokeFiles(const QString &penSerial, int page) const;
- bool readStrokes(const QString &penSerial, int page, StfReader::StrokeHandler *handler);
-
private:
struct Gfx {
QString basename;
@@ -72,10 +70,15 @@ private:
QString file;
quint64 begin;
quint64 end;
+
+ static bool CompareByBeginTime(const StrokeData &a, const StrokeData &b) {
+ return a.begin < b.begin;
+ }
};
struct PenData {
- QMultiMap<int, StrokeData> strokes;
+ // pageNum -> List of Strokes
+ QMap<int, QList<StrokeData>> strokes;
};
private: