Elvis Stansvik
d066fb0004
Remember collapse state of sidebar when file is auto-reloaded
...
BUGS: 289010
REVIEW: 103517
14 years ago
Albert Astals Cid
6176e29256
Use a queued connection instead of direct call
...
It seems some shells (like konqueror and kile) are too smart and play with the focus and the focus ends up in the wrong place because they "overwrite" our setFocus call, now we workaoround that by using the queuedconnection
BUGS: 214020
BUGS: 240516
FIXED-IN: 4.8.0
14 years ago
Albert Astals Cid
83a052b3ac
Revert 604187b7a3 and 258cd6562a
...
I did not have time to finish the poppler work and even if this will probably be good for using the poppler work, this adds new API and I don't want to commit to this since having a proper look at making it work
Sorry i failed to fulfill my promise
14 years ago
Albert Astals Cid
395d7163f6
Set an empty shortcut to Save copy as
...
Since we are going to use KStandardAction::saveAs again later for the "real" 'Save As...'.
This was working fine since there is no default shortcut for SaveAs but if the user sets one
in the global kde config then he gets duplicate shortcut problems
BUGS: 268551
15 years ago
Michel Ludwig
5db362fb26
Use the correct line number in 'Part::showSourceLocation'
15 years ago
Michel Ludwig
ab436aaaf5
Better move the calls to 'viewport()->update()' relating to the ViewerInterface inside the PageView class.
15 years ago
Michel Ludwig
d02c86fe9b
Also add an update call to 'Part::showSourceLocation'.
...
This handles the case when the source location changes without a need for the
document to be scrolled.
Better call 'viewport()->update()' in 'Part::setShowSourceLocationsGraphically'.
15 years ago
Michel Ludwig
5b7c6b8170
Add two new methods to the viewer interface.
...
Namely, 'areSourceLocationsShownGraphically()' and 'isWatchFileModeEnabled()'.
A corresponding implementation is provided.
15 years ago
Michel Ludwig
1be2696cc3
Allow for more control over when source locations are shown graphically.
...
The method 'showSourceLocation' has been extended with a new parameter which
controls whether the given source location is shown graphically. A new method
'clearLastShownSourceLocation' has been added; and a corresponding implementation
is provided.
15 years ago
Michel Ludwig
00b01aa987
Add method 'setLastSourceLocationViewport( const Okular::DocumentViewport& vp )' to PageView
...
Undo changes to the class 'DocumentViewport'.
15 years ago
Michel Ludwig
a823df5c8f
Some more changes according to the review.
15 years ago
Albert Astals Cid
3b272175ea
Also add the possibility of renaming bookmarks using RMB menu
15 years ago
Albert Astals Cid
880dae2e19
Add a way to rename the current page bookmark from the menu
...
Comes with some api additions to bookmarkmanager
15 years ago
Michel Ludwig
31828b4850
Move the setting of shortcuts for viewer mode to a special method 'setViewerShortcuts()'
15 years ago
Michel Ludwig
2fd4100cbd
Coding style fixes
15 years ago
Michel Ludwig
6494e071d7
Also update the state of the menu 'view_orientation' correctly.
15 years ago
Michel Ludwig
f431e98bb8
Change the action states according to whether a document is shown or not
15 years ago
Michel Ludwig
e8e0237ca0
Add the possibility to show sources location graphically on the rendered pages.
...
Note that currently the rotation of pages is not taken into account as one still has
to find a unique way of handling this.
15 years ago
Michel Ludwig
d29099b39c
Only activate a subset of the available features when the part is launched in viewer mode.
...
In viewer mode the part will now use a different XML GUI file (part-viewermode.rc).
Also, some actions won't be created, e.g. those used for exporting stuff, for
launching presentation mode, or for selecting parts of the document. The captions
of the configuration dialogs also contain the word 'viewer' then.
15 years ago
Jiri Baum
f81a49fafa
table selection tool
...
BUGS: 279859
REVIEW: 102358
FIXED-IN: 4.8.0
15 years ago
Michel Ludwig
b4206819e3
Allow to specify which config file the part uses.
...
This is done through a string "ConfigFileName=<file name>" which can be given to
the constructor in its argument list.
Note that the file ui/fileinterpreterpreview.cpp currently still contains a
reference to "okularrc", which we leave for now (as it just stores the size
of a dialog in that config file).
15 years ago
Michel Ludwig
0e29008150
Initial commit of the 'ViewerInterface' and of a first implementation.
15 years ago
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.
15 years ago
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 )
15 years ago
Albert Astals Cid
604187b7a3
Ui work for Reset Form Action support
...
Heavily inspired in Guillermo Amaral patches
CCMAIL: gamaral@kde.org
15 years ago
Ralf Habacker
a69336517f
use high resolution on windows only for now to avoid problems on other os as suggest by Albert Astals Cid
15 years ago
Ralf Habacker
2f203f063b
avoid non portable resolution setting
15 years ago
Ralf Habacker
6f1a041868
use resolution from printer settings
15 years ago
Albert Astals Cid
b8870e5bb0
Stat the file before switching to it
...
This way if the document does not exist at least we do not loose the current file
FIXED-IN: 4.8.0
BUGS: 267344
15 years ago
David Faure
2c9794071a
Port away from deprecated API + from deprecated lib
15 years ago
Albert Astals Cid
9f99d536dc
Add GUI option to switch off showing the document title
...
Pleasing users is not so bad
BUGS: 158401
15 years ago
Montel Laurent
f9f65979f5
Normalize signals/slots
15 years ago
Kevin Kofler
e001fbab55
Fix landscape documents getting printed in portrait format if "Landscape" is selected in the print dialog (the default).
...
Partly based on a patch by Falk from KDE bug #181290 .
BUG: 181290
REVIEW: 101513
15 years ago
Christopher Reichert
f0bfbb4caa
Remove symlink target from m_watcher if added.
15 years ago
Christopher Reichert
752a59f5b8
Reload Document when contents of symlink target change.
...
If okular loads a symlink, watch the document the symlink
points to using readlink. Reload the symlink when the
actual document changes.
CCBUG: 186118
15 years ago
Christopher Reichert
a9354072ad
View orientation cached in memory.
...
Cache the view orientation in memory to anticipate
a document reload.
CCBUG: 184518
15 years ago
Mohammad Mahfuzur Rahman Mamun
57db9f4c19
textSelection according to the TextList seems to work fine -- tested with some pdfs
15 years ago
Mohammad Mahfuzur Rahman Mamun
3798bd7398
primary text selection for more than one columns -- have problem if start or end is in empty space
15 years ago
Myreal Name
2149fb46ef
Another message
15 years ago
Christopher Reichert
0213afca46
Page up and Page down buttons now work while focus is in the search bar
...
or in the page number line edit in the minibar.
CCBUG: 270524
CCBUG: 274887
15 years ago
David Faure
d473477a5a
Look up kttsd.desktop correctly.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1228495
15 years ago
Albert Astals Cid
50015ed233
kdelibs complains with a kError this is a QAction, move to KAction so users don't get pollution in their shells
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1225385
15 years ago
Albert Astals Cid
0071c788ff
Make 53 users happy by allowing to show or hide the bottom page bar
...
Based on a patch by kde2eran@tromer.org
BUGS: 157284
FIXED-IN: 4.6
svn path=/trunk/KDE/kdegraphics/okular/; revision=1191188
16 years ago
Albert Astals Cid
3675bc6575
restore sidebar visibility correctly
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1171494
16 years ago
Albert Astals Cid
66c5ad47b4
Make Ctrl+End/Ctrl+Home go to end up document/beginning of documents instead of lastpage/firstpage
...
BUGS: 241197
svn path=/trunk/KDE/kdegraphics/okular/; revision=1171437
16 years ago
Pino Toscano
88a6d10888
use a simple char[] for the buffer, instead of a QByteArray, and make it bigger (64K instead of 1K)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1166346
16 years ago
Pino Toscano
578b535877
when the user cancels the loading of a non-local document, just show an info message in the page view instead of an error message box
...
move the generic error for local files to openUrl()
svn path=/trunk/KDE/kdegraphics/okular/; revision=1166044
16 years ago
Pino Toscano
5d884febb0
rename slot: setMimeTypes -> slotJobStarted
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1166032
16 years ago
Pino Toscano
c20db0e025
dynamically check for the availability of the bzip2 filter
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1163613
16 years ago
Pino Toscano
14aec8a8dd
open XZ-compressed documents, if the kde filter supports such type of compression
...
CCBUG: 216635
svn path=/trunk/KDE/kdegraphics/okular/; revision=1163601
16 years ago