summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-06-18 22:30:01 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-09-29 16:13:03 -0700
commit3bfd448b596017be28c4f8af5dbb70b67eb2fc6b (patch)
tree57ead44e07ee84e11c7d53fa22d596b2d41a1c6d /mobile-widgets
parent41cf83583d129edde607654592a52fe7bff57dc7 (diff)
downloadsubsurface-3bfd448b596017be28c4f8af5dbb70b67eb2fc6b.tar.gz
filter: implement saving of filter presets to git repositories
On the mailing list it was decided that users might want to move their filter presets across computers via the cloud. Notably, in the future one might access statistics on mobile and these might by controlled by filter presets. The git save routines use the same string formatting as the XML save routines. The string formatting is found in core/filterconstraint.cpp. Thus, duplication of code and inconsistencies should be minimized. Each filter preset is saved into a file in the "02-Filterpresets" folder in the root of the git repository. Each file consists of one "name" line, zero or one "fulltext" line and zero or more "constraint" lines. The modes, types and the actual payload is controlled via attributes. Thus, a preset file might look like this: name "test" fulltext mode="substring" query="clown" constraint type="location" stringmode="starstwith" data="mafia" constraint type="sac" rangemode="range" negate data="5000,10000" Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets')
0 files changed, 0 insertions, 0 deletions