Import sample fragbuts.xml if user file does not exist

This commit is contained in:
Jean-Francois Dockes
2015-03-28 08:43:45 +01:00
parent 4da2e34b2f
commit e2e7d3d6d0
4 changed files with 58 additions and 13 deletions
+19 -4
View File
@@ -1,8 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Example file for configuring the "Query fragments" window.
Each <buttons> or <radiobuttons> element defines a lines of buttons
Each active button adds a query language fragment to the current query
before execution.
-->
<fragbuts version="1.0">
<radiobuttons>
<!-- Actually useful: toggle WEB queue results inclusion -->
<fragbut>
<label>Include Web Results</label>
<frag></frag>
@@ -23,20 +29,29 @@
<buttons>
<fragbut>
<label>Year 2010</label>
<label>Example: Year 2010</label>
<frag>date:2010-01-01/2010-12-31</frag>
</fragbut>
<fragbut>
<label>c++ files</label>
<label>Example: c++ files</label>
<frag>ext:cpp OR ext:cxx</frag>
</fragbut>
<fragbut>
<label>My Great Directory</label>
<label>Example: My Great Directory</label>
<frag>dir:/my/great/directory</frag>
</fragbut>
</buttons>
<buttons>
<fragbut>
<label>Check the manual (Query Fragments Window section) for explanations</label>
<frag></frag>
</fragbut>
</buttons>
</fragbuts>