| 1 |
|
| 2 |
SOME RANDOM COMMENTS: |
| 3 |
===================== |
| 4 |
|
| 5 |
* We assume that all documents can be broken down into a linear |
| 6 |
collection of pages. |
| 7 |
|
| 8 |
* If a document type doesn't break down in such a way (like web pages) |
| 9 |
then it's probably not a good fit for this application. |
| 10 |
|
| 11 |
* Each page has a natural page size in pixels. This is generally |
| 12 |
ignored in favor of a scale-to-fit mode, but is occasionally |
| 13 |
important for backends like the image backend. |
| 14 |
|
| 15 |
* Each page is not necessarily the same size. |
| 16 |
|
| 17 |
* We refer to pages by page number. This number ranges from 1 to |
| 18 |
document->n_pages. A page index of -1 means the current set page, |
| 19 |
and a page index of 0 is not used. |
| 20 |
|
| 21 |
|
| 22 |
THOUGHTS ON THREADING: |
| 23 |
===================== |
| 24 |
|
| 25 |
* The primary thing we are trying to do is minimize switching pages, as |
| 26 |
doing so is slow for backends. Additionally, some operations on the |
| 27 |
backend are slow, leaving poor interactivity. |
| 28 |
|
| 29 |
THOUGHTS ON SELECTION: |
| 30 |
===================== |
| 31 |
|
| 32 |
* On button_press, we record selection_start, and set in_selection. |
| 33 |
|
| 34 |
* selection_list must be ordered!!! |
| 35 |
|
| 36 |
* On motion_notify, we update selection_end and call compute_selection, |
| 37 |
that keeps an ordered list of the selections. |
| 38 |
|
| 39 |
* If any of the selection changes, we notify the pixbuf_cache right |
| 40 |
away. |
| 41 |
|
| 42 |
* On button_release, we unset in_selection, and trim all the current |
| 43 |
pixbufs. |
| 44 |
|
| 45 |
* If a resize (somehow) occurs, during a selection, we clear |
| 46 |
in_selection and abort. |
| 47 |
|
| 48 |
* I'd like to support shift-click to handle extending the selection, |
| 49 |
but for that to survive resizing, I might need to store the points as |
| 50 |
doubles, etc. It should be possible to reconstruct it from the |
| 51 |
existing EvViewSelection structs, so maybe I don't need it. |
| 52 |
|
| 53 |
* click-drag, dbl click, triple click, shift-click, search, shift-cursor move |
| 54 |
|
| 55 |
|
| 56 |
THOUGHTS ON HISTORY: |
| 57 |
==================== |
| 58 |
|
| 59 |
* We need single history button, back/forward will complicate things. |
| 60 |
|
| 61 |
* When we jump on dest link we should add current page and link to the history. |
| 62 |
|
| 63 |
* When we jump on external link we should just add external link. |
| 64 |
|
| 65 |
* It's enough to have 7 entries in history, too many entries complicates things. |
| 66 |
|
| 67 |
* We should avoid duplicate entries in history. If we'll activate entry |
| 68 |
that already exists (have the same title) we can just move it to the top. |