[Nepomuk] Review Request 112837: Auto-completed and syntax-highlighted query builder widget

Denis Steckelmacher steckdenis at yahoo.fr
Fri Sep 20 09:24:39 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112837/
-----------------------------------------------------------

Review request for Nepomuk.


Description
-------

This patch adds a new QueryBuilder widget to nepomuk-widgets. This widget syntax-highlights the parts of the user input that are recognized by the Nepomuk query parser. Two types of auto-completions are shown : pattern proposals (if the user entered "tagged", "tagged as [tag]" is proposed) and value proposals (if the user enters "tagged as I", "tagged as Important" is proposed).

The QueryBuilder widget inherits from a GroupedLineEdit widget also added by this patch, and responsible for the drawing of the boxes around highlighted terms. This is done because such a widget can be useful to other applications. A screenshot of the query builder widget can be found at http://steckdenis.be/static/images/dolphin-query-builder.png .

The code added by this patch also lives in the steckdenis-gsoc2013 branch of kde:nepomuk-widgets. The patch depends on the new query parser (GSoC 2013, steckdenis-gsoc2013 of kde:nepomuk-core, review request 112791, https://git.reviewboard.kde.org/r/112791/).


Diffs
-----

  CMakeLists.txt 4c25581 
  test/CMakeLists.txt 5b90f9b 
  test/querybuilderapp.cpp PRE-CREATION 
  ui/groupedlineedit.h PRE-CREATION 
  ui/groupedlineedit.cpp PRE-CREATION 
  ui/querybuilder.h PRE-CREATION 
  ui/querybuilder.cpp PRE-CREATION 
  ui/querybuildercompleter.cpp PRE-CREATION 
  ui/querybuildercompleter_p.h PRE-CREATION 

Diff: http://git.reviewboard.kde.org/r/112837/diff/


Testing
-------

A small querybuilderapp application has been added to the test/ directory of the nepomuk-widgets repository. This application simply shows a query builder widget, and the user can enter queries into it and see them syntax-highlighted. Auto-completion proposals are also shown.

I have also translated the query parser in French in August. You can see this old version of the query builder widget here : http://steckdenis.be/post-2013-07-27-translations-and-better-auto-completion.html .


Thanks,

Denis Steckelmacher

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/nepomuk/attachments/20130920/ef21de35/attachment.html>


More information about the Nepomuk mailing list