Albert Astals Cid
2002e0a4b0
Do not ignore spaces on backwards search
...
This ports a change we made to the forward search 4 years ago...
7183c172c2 for more reference
BUGS: 311232
FIXED-IN: 4.9.5
13 years ago
Albert Astals Cid
d59ffb4a7a
Fix crash when searching backwards
...
When searching backwards end is not actually words.end but words.begin (since the loop goes backwards) hence we can't pass end to stringLengthAdaptedWithHyphen
I've now renamed end to loop_end to make it a bit more clear.
BUGS: 309030
FIXED-IN: 4.9.4
14 years ago
Jan Binder
aa6ed8afc0
Replace deprecated QMatrix by QTransform
...
REVIEW: 105737
14 years ago
Albert Astals Cid
9ce6c55559
Don't be so noisy!
14 years ago
Albert Astals Cid
ea8ec188c9
Don't be so noisy!
14 years ago
Albert Astals Cid
9d805df013
Double click selects words
...
BUGS: 187347
FIXED-IN: 4.9,0
14 years ago
Albert Astals Cid
d34bc7f263
Do not cache end() of a QList you are removing stuff from...
...
...makes it crash :D
BUGS: 294633
FIXED-IN: 4.8.1
14 years ago
Albert Astals Cid
04716f9fd1
Do not cache end() of a QList you are removing stuff from...
...
...makes it crash :D
BUGS: 294633
FIXED-IN: 4.8.1
14 years ago
Albert Astals Cid
12ab23e631
Add a note why we can't use rightRef
14 years ago
Albert Astals Cid
d6c1ead1b0
More small adaptations
14 years ago
Albert Astals Cid
e74894ce94
Put duplicate code in a function
14 years ago
Albert Astals Cid
7825e4c545
Fix stuff for a better merge
14 years ago
Mohammad Mahfuzur Rahman Mamun
92e3c16066
all len-1 are replaced with str.endsWith
14 years ago
Mohammad Mahfuzur Rahman Mamun
0c02a163ea
Some minor changes and cleanup of Backward textfind
14 years ago
Mohammad Mahfuzur Rahman Mamun
9afba5c75d
Some textfind change
14 years ago
Mohammad Mahfuzur Rahman Mamun
1dd139736f
both forward and backward find implemented and tested a bit
14 years ago
Mohammad Mahfuzur Rahman Mamun
f6a3ccf8b5
some printinfo and unnecessary comments has been removed
14 years ago
Mohammad Mahfuzur Rahman Mamun
7062308214
textfind with hyphenation working - simple test with pdf and djvu done
14 years ago
Albert Astals Cid
428d2412bd
Remove the need for the hash so we can map back from words to characters
...
This is needed because sometimes the hash had collissions and make it impossible to know which character we had to put back
Now we just keep the word and the characters together in the same class and it is much easier to correlate them
Also the code gets much more simplified and less new/delete are needed
This fixes the crash in 287138
I am still concerted that we use the page width and height in TextPagePrivate::correctTextOrder, but that should not cause crashes, at most some misplacements of very small text
14 years ago
Albert Astals Cid
972b514c21
Rework makeAndSortLines to return a list of qpairs instead of two lists
14 years ago
Albert Astals Cid
ad79f60045
entRect is const
14 years ago
Albert Astals Cid
2776b11276
Move the invocation of makeAndSortLines inside calculateStatisticalInformation
14 years ago
Albert Astals Cid
476e21e440
declare j and k in the for loop definition
14 years ago
Albert Astals Cid
b055d659b0
Simplify the code
...
TextPagePrivate::correctTextOrder was running makeAndSortLines + calculateStatisticalInformation to calculate the tcx, tcy
to pass it to XYCutForBoundingBoxes and then in XYCutForBoundingBoxes we were doing the same but just for when countLoop was not 0, thus
if we remove the first code and remove the check for countLoop being not 0 we end up with the same behaviour
14 years ago
Albert Astals Cid
d49894b9d2
the list does not change -> const
14 years ago
Albert Astals Cid
d704dd1ecd
const + spacing fixes
14 years ago
Albert Astals Cid
8d7c2b2ce1
Make the function const to signal it does not change anything in the object
14 years ago
Albert Astals Cid
e8c7e8aa13
Do what the comment says
14 years ago
Albert Astals Cid
446838c080
< > -> !=
...
I can read it better
14 years ago
Albert Astals Cid
7a4c56dda5
Improve spacing/style
14 years ago
Mohammad Mahfuzur Rahman Mamun
aa5128630c
Little Experiment for pdf
15 years ago
Albert Astals Cid
689f6507d3
Avoid searching three times in the hash
15 years ago
Albert Astals Cid
99b3906560
Move the calculation of the key to a single place
...
Removes the problem of changing it in one placea and not in the other
15 years ago
Albert Astals Cid
5a48a4aab9
Fix crash due to new text algorithm
...
When there are two entities with the same key, do not only check for
are but also for text to be matching
15 years ago
Jiri Baum
412e3e739e
table selection tool - semi-automatic dividers
...
BUGS: 283440
REVIEW: 102788
15 years ago
Albert Astals Cid
d41f230123
Move correctTextOrder to TextPagePrivate
15 years ago
Albert Astals Cid
dfa5e96c46
this are pointers now
15 years ago
Mahfuzur Rahman Mamun
59dddc9d74
Fix for regions with one line
15 years ago
Albert Astals Cid
bea2a493f7
There is no need to duplicate and delete here, just use m_words
15 years ago
Albert Astals Cid
dec4733603
Rework the internals a bit
...
* Remove m_word_chars_map, m_XY_cut_tree, m_lines and m_line_rects: They are not really member
variables and where used only to pass info from one method to another, we use variables and parameters
for that now
* Make output parameters be * instead of & following Qt guidelines
* Fix all memory leaks, valgrind is happy now :-)
15 years ago
Albert Astals Cid
1a98e3f3f8
declare when used, makes code easier to read
15 years ago
Albert Astals Cid
9b7e249210
Faster way of adding the elements
15 years ago
Albert Astals Cid
2ff2cd9434
Rename copyFromList to setWordList
...
Also change the behaviour in that it adopts the pointers, saves a few news and deletes
15 years ago
Albert Astals Cid
33f9c203b1
Use a QVarLengthArray as suggested by Pino
15 years ago
Albert Astals Cid
2e1d140d69
define int for "iterators" in the for declaration
15 years ago
Albert Astals Cid
cc8fd5280a
More small fixes
...
Use [] + & instead of at() + replace
Fix memory leak
15 years ago
Albert Astals Cid
792eca9fb5
Use [] and & instead of at() + replace()
15 years ago
Albert Astals Cid
8286aac4db
We never use m_spaces, so kill it
15 years ago
Albert Astals Cid
917482f0b7
Fix memory leak
...
Need to delete these two here too
15 years ago
Albert Astals Cid
e842bcdfed
No need to if the delete
15 years ago