Michel Ludwig
ee7437eb61
Better let 'ViewerInterface' be part of the 'Okular' name space.
...
Also, use correct includes in 'viewerinterface.h'.
2011-09-10 20:04:44 +01:00
Michel Ludwig
0e29008150
Initial commit of the 'ViewerInterface' and of a first implementation.
2011-09-10 18:15:52 +01:00
Michel Ludwig
b9da827e73
When 'closeUrl()' is complete, also clear the currently set URL.
...
This allows applications to detect whether a document is loaded simply by checking
whether 'url()' returns an empty URL or not.
2011-09-09 21:59:59 +01:00
Albert Astals Cid
9ed86abb6c
More rewording
2011-09-08 01:06:46 +02:00
Albert Astals Cid
48fc40293c
Relayouting and rewording
2011-09-08 01:02:36 +02:00
Albert Astals Cid
bb5eb646e5
fix spacing
2011-09-08 00:46:03 +02:00
Albert Astals Cid
12a3fcf3b4
Add : to the label
2011-09-08 00:45:34 +02:00
Martin Ueding
5fd95a3c92
Allow setting an option so that next/prev page keys do not move really a viewport
...
You can set the amount of overlap in %
FIXED-IN: 4.8.0
BUGS: 152049
2011-09-08 00:43:30 +02:00
Albert Astals Cid
200215bf41
Fix KDirWatchPrivate warnings
...
Need to add everything we remove or otherwise it complains we are trying to remove something we did not add
BUGS: 280123
FIXED-IN: 4.7.2
(cherry picked from commit af4316a938
)
2011-09-06 20:05:00 +02:00
Script Kiddy
369c6a6da0
SVN_SILENT made messages (.desktop file)
2011-09-03 09:38:45 +02:00
Albert Astals Cid
c61bba424c
Force a "/" to be there where matching font name to path
...
Otherwise we were accepting
/usr/share/texmf-dist/fonts/vf/public/yhmath/yhcmex10.vf
to font named cmex10 (since it is a substring) and it was veeeeeery bad since cmex10 was the base font of yhcmex10 and basically instead of going to the base font we ended up in the virtual font itself causing an infinite loop for some characters
Windows guys, not sure if that needs to be a \ in windows, you might want to give it a try
CCMAIL: kde-windows@kde.org
(cherry picked from commit 673eb41393
)
2011-09-02 18:43:38 +02:00
Albert Astals Cid
ee348fa70d
Make sure we show arrows in the form widgets
...
Needed since the main cursor is not an arrow anymore
2011-08-25 23:14:37 +02:00
Albert Astals Cid
604187b7a3
Ui work for Reset Form Action support
...
Heavily inspired in Guillermo Amaral patches
CCMAIL: gamaral@kde.org
2011-08-25 02:25:43 +02:00
Albert Astals Cid
258cd6562a
Core work for Reset Forms Action support
...
Heavily inspired in Guillermo Amaral patches
CCMAIL: gamaral@kde.org
2011-08-25 02:24:38 +02:00
Albert Astals Cid
23cf80a16b
Signal the activation action for checkboxes
...
Needed for bug-poppler19915.pdf
2011-08-25 02:19:18 +02:00
Albert Astals Cid
dfa5e96c46
this are pointers now
2011-08-24 12:42:50 +02:00
Mahfuzur Rahman Mamun
59dddc9d74
Fix for regions with one line
2011-08-24 12:35:47 +02:00
Ralf Habacker
a69336517f
use high resolution on windows only for now to avoid problems on other os as suggest by Albert Astals Cid
2011-08-23 21:47:37 +02:00
Albert Astals Cid
bea2a493f7
There is no need to duplicate and delete here, just use m_words
2011-08-23 17:35:19 +02:00
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 :-)
2011-08-23 17:15:12 +02:00
Albert Astals Cid
1a98e3f3f8
declare when used, makes code easier to read
2011-08-23 16:21:10 +02:00
Albert Astals Cid
9b7e249210
Faster way of adding the elements
2011-08-23 16:16:51 +02:00
Albert Astals Cid
2ff2cd9434
Rename copyFromList to setWordList
...
Also change the behaviour in that it adopts the pointers, saves a few news and deletes
2011-08-23 16:10:43 +02:00
Albert Astals Cid
33f9c203b1
Use a QVarLengthArray as suggested by Pino
2011-08-23 16:02:08 +02:00
Albert Astals Cid
2e1d140d69
define int for "iterators" in the for declaration
2011-08-23 15:58:46 +02:00
Albert Astals Cid
cc8fd5280a
More small fixes
...
Use [] + & instead of at() + replace
Fix memory leak
2011-08-23 15:55:53 +02:00
Albert Astals Cid
792eca9fb5
Use [] and & instead of at() + replace()
2011-08-23 15:47:56 +02:00
Albert Astals Cid
8286aac4db
We never use m_spaces, so kill it
2011-08-23 15:39:06 +02:00
Albert Astals Cid
917482f0b7
Fix memory leak
...
Need to delete these two here too
2011-08-23 15:37:43 +02:00
Albert Astals Cid
e842bcdfed
No need to if the delete
2011-08-23 15:24:44 +02:00
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.
2011-08-23 15:22:47 +02:00
Ralf Habacker
2f203f063b
avoid non portable resolution setting
2011-08-22 22:56:56 +02:00
Ralf Habacker
6f1a041868
use resolution from printer settings
2011-08-22 22:03:02 +02:00
Ralf Habacker
debd7373d5
Optimized windows printing support by using renderToImage
2011-08-22 22:02:56 +02:00
Ralf Habacker
195c51e8f1
Enable print menu items in windows
...
BUGS: 190497
2011-08-22 22:02:48 +02:00
Albert Astals Cid
75cac8a3c6
I am pretty sure we need to delete this
2011-08-22 20:40:52 +02:00
Albert Astals Cid
0e1efa6516
rework the API a bit so we can assign it to const variables
2011-08-22 20:36:49 +02:00
Albert Astals Cid
d0d2b45a11
Fix TextPagePrivate::removeSpace iteration
...
You need to use the iterator returned by erase
2011-08-22 20:29:36 +02:00
Albert Astals Cid
ccc317bc5c
remove toAscii().data() since that is already a QString
2011-08-22 20:20:16 +02:00
Albert Astals Cid
2bec8e3aaa
add some const, will make the code easier to read later on
2011-08-22 20:19:23 +02:00
Albert Astals Cid
7dbc4f48e1
Do not use this->
2011-08-22 19:24:42 +02:00
Albert Astals Cid
a4cb8dcce0
Only create the menu if we are going to use it
2011-08-22 19:22:09 +02:00
Albert Astals Cid
d6b5a70951
Mark file local functions static
2011-08-22 19:20:50 +02:00
Albert Astals Cid
0e825cc599
fix potential memory leak
2011-08-22 19:17:47 +02:00
Albert Astals Cid
be8f9bd9cb
Rename copy* functions to something I like more
2011-08-22 19:12:21 +02:00
Albert Astals Cid
c78a7069b1
fix bad merge
2011-08-22 19:08:04 +02:00
Albert Astals Cid
a9fd44009e
Add some const &
2011-08-22 19:06:29 +02:00
Albert Astals Cid
3f69b491cd
Merge branch 'selection_and_highlighting'
2011-08-22 18:50:49 +02:00
Mohammad Mahfuzur Rahman Mamun
c55ee4b70d
A last moment refactoring of the code ... some const & changes
2011-08-22 22:36:47 +06:00
Mohammad Mahfuzur Rahman Mamun
dca4ee559c
Another Code Refactoring done
2011-08-21 10:44:42 +06:00