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
Mahfuzur Rahman Mamun
d7576a6a2b
Fix crashes
...
1. I replaced the previous fixed memory array with dynamic memory allocation
(line 18-20).
2. Put some extra check so that we do not access under or over the boundary
of arrays (line 29-30,37-38)
3. Removed some unnecessary parts(line 46-48,56-58)
4. Instead of appending already existing element, I have created new
TinyTextEntity elements and removed them after usage(72-73,79)
5. Restored the deletion of words(78). Deletion of word will crash the
program, as all the TinyTextEntity in the nodes of the tree has reference to
words. This memory will be deallocated at line 105.
6. Another change like 4 is done in line 96-97.
15 years ago
Albert Astals Cid
75cac8a3c6
I am pretty sure we need to delete this
15 years ago
Albert Astals Cid
0e1efa6516
rework the API a bit so we can assign it to const variables
15 years ago
Albert Astals Cid
d0d2b45a11
Fix TextPagePrivate::removeSpace iteration
...
You need to use the iterator returned by erase
15 years ago
Albert Astals Cid
ccc317bc5c
remove toAscii().data() since that is already a QString
15 years ago
Albert Astals Cid
2bec8e3aaa
add some const, will make the code easier to read later on
15 years ago
Albert Astals Cid
7dbc4f48e1
Do not use this->
15 years ago
Albert Astals Cid
d6b5a70951
Mark file local functions static
15 years ago
Albert Astals Cid
0e825cc599
fix potential memory leak
15 years ago
Albert Astals Cid
be8f9bd9cb
Rename copy* functions to something I like more
15 years ago
Albert Astals Cid
c78a7069b1
fix bad merge
15 years ago
Albert Astals Cid
a9fd44009e
Add some const &
15 years ago
Mohammad Mahfuzur Rahman Mamun
c55ee4b70d
A last moment refactoring of the code ... some const & changes
15 years ago
Mohammad Mahfuzur Rahman Mamun
dca4ee559c
Another Code Refactoring done
15 years ago
Mohammad Mahfuzur Rahman Mamun
88ec0951fe
Some code restructure changes in textpage.cpp
15 years ago
Mohammad Mahfuzur Rahman Mamun
73d4a31350
code recommenting done in textpage.cpp
15 years ago
Mohammad Mahfuzur Rahman Mamun
5a8b984f14
debugging and printing removed from textpage.cpp ... need code recomment now
15 years ago
Mohammad Mahfuzur Rahman Mamun
10b11903c2
Removal of black selection for epub or odt is working with some problem
15 years ago
Mohammad Mahfuzur Rahman Mamun
929e4b6a0e
Removed some double selection Problem
15 years ago
Mohammad Mahfuzur Rahman Mamun
b50b622a25
A Little change in the makeandsort lines
15 years ago
Mohammad Mahfuzur Rahman Mamun
1ef68e3301
text selection for both selection type 01 and 02 seems to be working correctly
15 years ago
Mohammad Mahfuzur Rahman Mamun
9a07e04fe3
another try for second type selection
15 years ago
Mohammad Mahfuzur Rahman Mamun
ff289f819c
selection 02 implemented but not working perfectly
15 years ago
Mohammad Mahfuzur Rahman Mamun
9168932079
trying to solve the second kind of selecction
15 years ago
Mohammad Mahfuzur Rahman Mamun
b599f02205
second type selection crashing
15 years ago
Mohammad Mahfuzur Rahman Mamun
c598b7749d
removal of some crashes
15 years ago
Mohammad Mahfuzur Rahman Mamun
fe20bcf157
an small but important change in XYCut and possible memory leak protection for m_spaces
15 years ago
Mohammad Mahfuzur Rahman Mamun
6623014fc5
some change in makeWord
15 years ago
Mohammad Mahfuzur Rahman Mamun
b69d9e0262
implementation of parameter tuning of XYcut using local information
15 years ago
Mohammad Mahfuzur Rahman Mamun
2809c3c747
makeAndSortLines changed to remove some similar code redundancy
15 years ago
Mohammad Mahfuzur Rahman Mamun
9343babe43
some issues regarding selection (TextPage::textArea) solved
15 years ago