diff options
Diffstat (limited to 'afdnotebook.h')
-rw-r--r-- | afdnotebook.h | 9 |
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: |