Hi there,

Alex (who I think is in this list) took the pdf search code I
implemented and was able to get it to display. That was a great help,
because I had no idea how that needed to be done.

I looked at his code, and was trying to complete it, but discovered that
the model I had in mind when I started the search module was going to
fail. So I decided to restart again.

The current model is:

- a Page has a searchLayer (where the results are displayed). 

- It currently only makes sense in a document with a pdf background).

- By default it is empty,

- As one searches, this search layer highlights the results (and
  contains them as rectangles)

- An entire document is searched at once. This could be slow
  in long documents, but it is the cost of complexity--think evince that
  uses different threats to do it-- versus the simplicity of
  xournal. The current model, however, could allow to load "one" page at
  a time.
  
So far, we can:

* Find matches
* Attach the results to the search layer of the pages
* Display the results when the page is refreshed

It needs some work to get the details working:

* Refresh current page when matches found
* Fine tune user interface
* Remove current results before the new results are displayed
* Jump to next/previous match. 
* Highlight current match

If anybody is interested in hacking it:

https://github.com/dmgerman/xournal

Sorry Alex, for the huge diversion from your branch.

--dmg







-- 
--
Daniel M. German                  
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Xournal-devel mailing list
Xournal-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xournal-devel

Reply via email to