5 * We assume that all documents can be broken down into a linear
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.
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.
15 * Each page is not necessarily the same size.
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.
22 THOUGHTS ON THREADING:
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.
29 THOUGHTS ON SELECTION:
32 * On button_press, we record selection_start, and set in_selection.
34 * selection_list must be ordered!!!
36 * On motion_notify, we update selection_end and call compute_selection,
37 that keeps an ordered list of the selections.
39 * If any of the selection changes, we notify the pixbuf_cache right
42 * On button_release, we unset in_selection, and trim all the current
45 * If a resize (somehow) occurs, during a selection, we clear
46 in_selection and abort.
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.
53 * click-drag, dbl click, triple click, shift-click, search, shift-cursor move
59 * We need single history button, back/forward will complicate things.
61 * When we jump on dest link we should add current page and link to the history.
63 * When we jump on external link we should just add external link.
65 * It's enough to have 7 entries in history, too many entries complicates things.
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.