diff options
author | Jonathan Blandford <jrb@redhat.com> | 2005-02-02 13:22:53 (GMT) |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2005-02-02 13:22:53 (GMT) |
commit | bebd9ceae1ec88ddee03bda8c7572c9cb06f6b77 (patch) | |
tree | 473a80dc33f128ab0c24e3322002d2066f0fe293 /NOTES | |
parent | e6bb7c7e25b848008409db982bbac260fa97f73c (diff) |
New file with some random thoughts.
Wed Feb 2 21:13:11 2005 Jonathan Blandford <jrb@redhat.com>
* NOTES: New file with some random thoughts.
* TODO: Update.
* backend/ev-document-misc.c:
(ev_document_misc_get_page_border_size): New function to
canonicalize shadow drawing sizes. Possibly goofy.
* shell/ev-view.c: (ev_view_size_request), (set_document_page),
(ev_view_best_fit), (ev_view_fit_width):
* pdf/xpdf/pdf-document.cc:
* pixbuf/pixbuf-document.c: (pixbuf_document_get_page_size):
* ps/ps-document.c: (ps_document_get_page_size):
* backend/ev-document-misc.h:
* backend/ev-document.c: (ev_document_get_page_size):
* backend/ev-document.h: get_page_size now takes a page number
parameter. Made all the backends/frontends honor it.
* data/evince-ui.xml: Added a multiple-page mode. Uncomment to
see. Doesn't work yet.
* shell/Makefile.am:
* shell/ev-page-view.[ch]: New multi-page view. Really rough.
Doesn't do anything yet.
* shell/ev-sidebar-thumbnails.c:
(ev_sidebar_thumbnails_set_document): [1..n_pages] instead of
[0..n_pages-1]
* shell/ev-window.c: (update_action_sensitivity),
(ev_window_setup_document), (ev_window_set_page_mode),
(ev_window_page_mode_cb), (ev_window_init): Clean up the
view-swapping code a bit so we can have multiple views on a
document. Add the multi-page view, though it can't be turned on
yet.
Diffstat (limited to 'NOTES')
-rw-r--r-- | NOTES | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -0,0 +1,30 @@ + +SOME RANDOM COMMENTS: +===================== + + * We assume that all documents can be broken down into a linear + collection of pages. + + * If a document type doesn't break down in such a way (like web pages) + then it's probably not a good fit for this application. + + * Each page has a natural page size in pixels. This is generally + ignored in favor of a scale-to-fit mode, but is occasionally + important for backends like the image backend. + + * Each page is not necessarily the same size. + + * We refer to pages by page number. This number ranges from 1 to + document->n_pages. A page index of -1 means the current set page, + and a page index of 0 is not used. + + +-- + +Thoughts on threading: + + * The primary thing we are trying to do is minimize switching pages, as + doing so is slow for backends. Additionally, some operations on the + backend are slow, leaving poor interactivity. This + +-- |