Commit Graph

64 Commits

Author SHA1 Message Date
Sebastian Ramacher
b3fdb8c05e Document return value if an error occurs
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-11-04 15:38:13 +01:00
Abdo Roig-Maranges
bca5bcc571 let the document know about the current adjustments
The document object now has functions to set and get the position and
the viewport size.

The position is a relative position with respect to the size of the
entire document, i.e. position_y=0 means top of the document and
position_y=1 bottom.

The viewport size is stored in screen coordinates, in pixels.
2013-10-26 16:02:27 +02:00
Abdo Roig-Maranges
a0a64832d9 move zathura_get_document_size to document.c
It makes more sense, plus now the document knows about the page layout
and can do the computation.
2013-10-26 16:02:23 +02:00
Abdo Roig-Maranges
25998f8320 make the document object aware of page layout
Now the document object knows about pages_per_row, first_page_column and
page_padding, so we will be able to compute sizes and positions of the
document view without querying the GTK widgets.
2013-10-26 15:58:26 +02:00
Abdo Roig-Maranges
f617ee61e5 faster zathura_document_get_cell_size
We precompute the maximum width and maximum height when opening the
document. Then, when someone calls zathura_document_get_cell_size we use
page_calc_width_height to apply the rotation and scale the precomputed
values.
2013-10-26 15:58:26 +02:00
Guillaume Duranceau
12f7b393a6 new window-title-page option
When set to 'true', this option displays the page number in the title of
a zathura window.
2013-07-27 01:18:46 +02:00
Moritz Lipp
87f10baffc Allow negative offsets 2013-05-08 18:28:32 +02:00
Benoît Knecht
cdf1428050 Wrap long comment introduced in 27d7973
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-14 00:39:12 +01:00
Benoît Knecht
27d7973586 Add document method to compute the size of a cell
A document is laid out on a homogeneous gtk table/grid. This new method,
zathura_document_get_cell_size, computes the size of the cells in that
table/grid, at the current scale.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-12-13 18:18:03 +01:00
Abdó Roig-Maranges
eb67d97180 Implemented jumplist bound to ^o ^i
zathura records jumps through searches, index, links, etc. and enables to go
back and forth via ^o ^i.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2012-09-02 00:31:47 +02:00
Sebastian Ramacher
f7c119b244 There is no need to include zathura.h anymore. 2012-04-03 18:39:00 +02:00
Moritz Lipp
97247f41ca Unhitch zathura_t from document_t/page_t/plugin_manager_t 2012-04-03 09:02:45 +02:00
Moritz Lipp
ab4c364e56 Update document information plugin api 2012-03-30 18:24:00 +02:00
Moritz Lipp
334b4fbb95 Introduce and use zathura_document wrapper functions 2012-03-27 21:59:35 +02:00
Moritz Lipp
647f26a77f Implemented some zathura_document wrapper functions 2012-03-27 14:44:09 +02:00
Moritz Lipp
2f4076ccca Use internal.h for internal types 2012-03-27 13:34:31 +02:00
Moritz Lipp
4ade2c1472 Introduced plugin.h and plugin-api.h 2012-03-27 13:30:04 +02:00
Moritz Lipp
fa40facc71 Begin to introduce types.h 2012-03-27 11:19:39 +02:00
Moritz Lipp
1133207a48 Update zathura_page plugin functions 2012-03-26 15:17:01 +02:00
Moritz Lipp
efc108fbe2 Introduced page.h 2012-03-26 14:44:56 +02:00
Moritz Lipp
90796b5b5c Added :offset command and some style updates 2012-03-24 18:27:10 +01:00
Sebastian Ramacher
9c334cc6a6 Add ABI versioning. 2012-03-21 16:23:29 +01:00
Moritz Lipp
c61c74870f Add PLUGIN_MIMETYPES macro 2012-03-09 09:53:03 +01:00
Sebastian Ramacher
18b9694f9b Add API versioning and add macro to register plugins.
If the plugin interface changes ZATHURA_API_VERSION has to be bumped before a
release.
2012-02-25 15:21:00 +01:00
Moritz Lipp
b6f1868e7f Fix automatic file reloading 2012-02-20 20:07:24 +01:00
Moritz Lipp
3facd5beb0 Replace image_save with image_get_cairo 2012-02-11 17:53:28 +01:00
Moritz Lipp
900516d1f1 Update documentation 2012-02-09 02:58:53 +01:00
Moritz Lipp
851ef7cd7b Adjust on resize / Adjust on open 2012-02-09 01:46:51 +01:00
Moritz Lipp
70dbf39184 Merge branch 'develop' of pwmt.org:zathura into develop
Conflicts:
	document.c
2012-02-08 23:23:42 +01:00
Moritz Lipp
1d606ef027 Ask for password if file is encrypted 2012-02-08 23:21:27 +01:00
Sebastian Ramacher
7003df76a4 add method to get text from selection 2012-02-08 23:20:22 +01:00
Moritz Lipp
34b6fffc33 Update documentation 2012-02-08 15:30:13 +01:00
Sebastian Ramacher
21aff5c251 Merge branch 'develop' of pwmt.org:zathura into develop 2012-02-07 21:45:36 +01:00
Sebastian Ramacher
6045e46069 fix the coordinate system 2012-02-07 21:45:32 +01:00
Moritz Lipp
626fd50e32 Introduced zathura_plugin_error_t 2012-02-07 21:10:59 +01:00
Moritz Lipp
42307d4e65 Added documentation 2012-02-07 20:13:39 +01:00
Moritz Lipp
30f62a1f3a Implemented auto reload basics 2012-02-07 19:25:47 +01:00
Sebastian Ramacher
495c59f86e add zathura_link_free 2012-02-07 17:44:19 +01:00
Sebastian Ramacher
aea5024ce3 add argument printing to zathura_page_render 2012-02-07 15:10:58 +01:00
Sebastian Ramacher
a1cdb48921 Create a page view widget (Closes: #90).
Add a widget derived from GtkDrawingArea that handles the drawing. It
automaticaly requests rerendering of the page if necessary (i.e on a scroll and
rotate).

This should solve all the rendering issues.
2012-02-05 11:24:34 +01:00
Moritz Lipp
419376f761 Add images_get and image_save functions 2012-01-22 22:15:13 +01:00
Moritz Lipp
f8f4345540 Update documentation 2012-01-22 21:57:18 +01:00
Sebastian Ramacher
82501190af add _attachment_save 2012-01-13 18:25:17 +01:00
Sebastian Ramacher
58e25e8733 sort files in :open 2012-01-13 18:00:12 +01:00
Sebastian Ramacher
911d84c908 update includes due to girara restructuring 2011-10-23 17:01:15 +02:00
Sebastian Ramacher
37189ece79 remove zathura_list_t 2011-10-22 00:11:42 +02:00
Sebastian Ramacher
719557ff9e always close the plugin handle 2011-10-21 23:33:18 +02:00
Moritz Lipp
8bf7587baf Show document information 2011-10-01 23:29:40 +02:00
Sebastian Ramacher
b34d21afaf implement content type support 2011-09-29 15:23:13 +02:00
Moritz Lipp
c3ad7faf1a Use cairo to render page 2011-09-29 12:35:52 +02:00