Commit graph

136 commits

Author SHA1 Message Date
neldoreth
30dad59fab Fixed redrawing search result 2010-05-18 22:24:15 +02:00
neldoreth
6f8ffb1141 Merge branch 'mouse' of 93.90.177.129:zathura into mouse
Conflicts:
	config.def.h
	zathura.c
2010-05-18 01:09:59 +02:00
neldoreth
aa5edd68e5 Rebase from master 2010-05-18 01:01:52 +02:00
neldoreth
257d8a6279 Custom selection style 2010-05-18 00:59:50 +02:00
neldoreth
3a32832c97 Select right text in rectangle
With this commit zathura selects the text in the selected
rectangle and copies it to the clipboard.
2010-05-18 00:59:23 +02:00
neldoreth
9e7fd1bc1e Calculate drawing rectangle and copy text to cb
This commit calculates the rectangle that will be drawn
correctly. Now the mapped rectangle is calculated wrong,
but it gets the text of the document and copies it to
the clipboard.
2010-05-18 00:59:23 +02:00
neldoreth
2491f4d644 Draw marked area
This commit draws an rectangle in the marked area.
2010-05-18 00:58:25 +02:00
neldoreth
431dcbb190 Added GtkEventBox to catch mouse events
This commited introduces a GtkEventBox called document
that is responsible for catching all mouse events like
"released" or "motion".
2010-05-18 00:58:12 +02:00
neldoreth
51d0b60ce4 Implemented scrolling 2010-05-18 00:57:37 +02:00
neldoreth
cfc8f35aa7 Scroll and click event callbacks defined
Two callbacks for "scroll" and "click" events
has been defined and connected to the view.
2010-05-18 00:57:37 +02:00
neldoreth
179c46b490 Custom selection style 2010-05-18 00:48:46 +02:00
neldoreth
603060b729 Select right text in rectangle
With this commit zathura selects the text in the selected
rectangle and copies it to the clipboard.
2010-05-18 00:22:42 +02:00
int3
e78d9dfb76 Fix leak in State.pages 2010-05-14 17:30:00 +08:00
neldoreth
1b248a56da Do not redraw search results 2010-05-13 11:39:20 +02:00
neldoreth
e03ea9e645 Fixed sc_follow 2010-05-13 11:36:05 +02:00
neldoreth
faaedbb392 Merge branch 'master' of 93.90.177.129:zathura 2010-05-13 11:31:45 +02:00
neldoreth
2bca399145 Highlight results: Wrong coordinates
This patch fixes the wrong re-recalculation of the
search item - rectangles.
2010-05-13 11:31:02 +02:00
int3
9c988cf9b5 Fix some locking issues
Replaced document_lock with a more general pdf_obj_lock
2010-05-12 18:27:15 +08:00
neldoreth
a45999f748 Removed unnecessary check 2010-05-11 22:06:07 +02:00
neldoreth
b08f26cdf1 Fixed typo on mutex 2010-05-11 20:55:21 +02:00
neldoreth
16b90a45ac Highlight search results again
This commit is a incomplete patch to highlight the search
results again.
2010-05-11 20:45:47 +02:00
neldoreth
4b5e6b766c Escape filenames 2010-05-11 20:09:20 +02:00
neldoreth
f62240eb27 Fix document update feature 2010-05-09 22:28:25 +02:00
neldoreth
0aca43978e Activate label mode only when reasonable
This patch checks while opening the pdf document
if it is reasonable to activate the goto label mode:
Sometimes all labels match their page number and then
the label goto mode will slow the navigation down.
2010-05-06 20:31:53 +02:00
neldoreth
218deb6457 Optional page offset mode
This commit is build on the idea of Renato Florentino to be able to
correct the page offset that some documents have. His patch, where
most of the code has been adapted to this commit ( thanks! ), made
it able to correct the current page and automatically calculate the
correct page offset. Now this patch will introduce a third mode to
the bcmd_goto command: You are now able to set the page directly,
calculate it over the offset or search the labels for it.
2010-05-05 20:05:06 +02:00
neldoreth
fc590f756c Use labels in buffered goto command
The page labels are now used in the buffered command bcmd_goto, so
if this option is enabled and you try to reach page number 20, zathura
first seraches for a label named like that and moves to that page instead
of moving to page 20 in the document.
2010-05-05 12:51:18 +02:00
neldoreth
9c0eea2d2a Added page labels
With this commit it is possible to show and use the labels of a page,
which makes it possible to use a page offset. E.g.: Sometimes the page
numbers written on the page in the document differ from the order in the
file, which can be annoying by e.g. trying to go to the page number >20<
that is instead page number >24< in the document.
2010-05-05 12:36:14 +02:00
neldoreth
4aad8d8720 Keyboard navigation for the index
This patch provides the functionality to browse through the index
via the keyboard hence the mouse is not needed anymore. The original
author of this patch is int3 <jezreel@gmail.com>, in addition there
has been introduced a fix solving problems with named destinations.
2010-04-27 16:07:49 +02:00
neldoreth
f76659eb29 Updated key bindings
This commit fixes a typo concerning the scrolling command and adds
additional bindings for the spacebar, the arrow keys and two keys
you find on thinkpad keyboards.
2010-04-27 11:28:17 +02:00
neldoreth
ff4ffa312e Calculate drawing rectangle and copy text to cb
This commit calculates the rectangle that will be drawn
correctly. Now the mapped rectangle is calculated wrong,
but it gets the text of the document and copies it to
the clipboard.
2010-04-13 09:47:47 +02:00
neldoreth
21174a84da Draw marked area
This commit draws an rectangle in the marked area.
2010-04-13 00:22:56 +02:00
neldoreth
8722365ee2 Added GtkEventBox to catch mouse events
This commited introduces a GtkEventBox called document
that is responsible for catching all mouse events like
"released" or "motion".
2010-04-12 23:55:14 +02:00
neldoreth
f1e3f69e41 Activate incremental search
This commit reactivates the incremental search and defines
that special commands that are set get called all the time
an input occurs are not evaluated in the activate section.
2010-04-12 19:59:55 +02:00
neldoreth
79cf3dc9b7 Implemented scrolling 2010-04-12 19:38:07 +02:00
neldoreth
9f52c6c6cf Fixed zoom function
This commit repairs the zoom function that did not work through the
automatic adjust patch.
2010-04-12 19:30:48 +02:00
neldoreth
af12a7e665 Scroll and click event callbacks defined
Two callbacks for "scroll" and "click" events
has been defined and connected to the view.
2010-04-12 19:22:47 +02:00
neldoreth
b2451c4d09 Check for opened document in cb_draw 2010-04-12 17:36:58 +02:00
neldoreth
2c40d80395 Automatically recolor document on startup
This commit adds an additional setting that is used
to control the recoloring of the document on startup.
2010-04-12 09:36:14 +02:00
neldoreth
282f47b1b0 Auto-adjustment when opening a document
This commit fixes the automatic adjustment of the view
when opening a document.
2010-04-12 09:31:56 +02:00
neldoreth
e8e581eac0 version 0.0.3 2010-04-11 21:29:43 +02:00
neldoreth
0e20f8cbe1 Implemented the save function
The document gets saved to the given path.
2010-04-11 21:12:30 +02:00
neldoreth
b595682927 Fix toggle_index: WIDGET_REALIZED_FOR_EVENT error
Clicking on an arrow in the index tree view caused an
"changed" event that was liable to crash zathura. This
commit cleans up the sc_toggle_index command and fixes
the described error by pre-selecting the first item in
the tree.
2010-04-11 20:56:16 +02:00
neldoreth
cb2a17de98 Follow internal links or upen URI in browser
This commit finishes the follow command by adding the functionality
of follow links / or open them with a web browser.
2010-04-11 14:18:49 +02:00
neldoreth
eeefacb5fd Parse hint token and validate it
The entered token is parsed for an integer and
validated for a correct hint id.
2010-04-11 12:53:45 +02:00
neldoreth
662a0434d4 Update inputbar handler
If the follow command has been activated, zathura changes the
"activate" handler of the inputbar to parse the link zathura should
follow.
2010-04-11 12:31:18 +02:00
neldoreth
e59f0f2f12 Introduced sc_follow command
This command scans the current page for links, highlightes and
numerates them.
2010-04-11 12:00:27 +02:00
neldoreth
6ffa286376 Show/hide the document information
This patch fixes the document information feature, now it is
possible to open up the document information and hide it again.
2010-04-11 11:18:33 +02:00
neldoreth
023866c58b Recolor the page instead of inverting the colors
This patch makes it possible to define two colors
that are used for recoloring the document pages instead
of the classic color reverting.

For the old behaviour set recolor_darkcolor to "#FFFFFF"
and recolor_lightcolor to "#000000".

All credit of this commit belongs to fedcer (fedcer@gmail.com).
2010-04-11 10:47:09 +02:00
neldoreth
1cab6c69c9 Search function and some memory leaks
This patch fixes the search function and resolves
some memory leaks and includes following commits of
int3's repository:

  * Fix up some mutexes
  * Cleaned up some memory leaks
  * Escape filenames
  * Remove all threading operations
  * Make search thread properly without crashes and deadlocks
  * Re-enabled inotify auto-update
  * Clean up unused lock

All credit of this commit belong to int3 (jezreel@gmail.com)
for his effort and work for this project. Thank you.
2010-04-10 14:45:48 +02:00
neldoreth
a6715266f0 Highlight search results 2010-03-28 20:59:25 +02:00