Commit graph

149 commits

Author SHA1 Message Date
Luigi Toscano 69459e742a Redirect error and warning signals to a KMessageWidget
Those two categories are usually longer messages and more
important, so more fit for a (new) KMessageWidget; simple
notice signals still go to PageViewMessage into PageView.

A more general review of all the messages should be probably
performed in order to assign proper categories to them.

Reviewed by: Albert Astal Cid
2014-05-10 10:27:21 +02:00
Luigi Toscano 56c101833f Remove PageViewTopMessage, use KMessageWidget instead
Acked by Albert Astal Cid
2014-05-09 17:19:50 +02:00
Jonathan Doman 89fd56c23b Launch documents from external sources in new tabs
FIXED-IN: 4.13.0
BUGS: 331872
BUGS: 332238
REVIEW: 116700
2014-04-09 23:29:58 +02:00
Montel Laurent 7b79ca1b36 Pedentic-- 2014-03-02 13:59:49 +01:00
Albert Astals Cid 7681cdf004 Move the open new files in tabs setting to configure dialog
Also make it non enabled by default for now

GUI
BUGS: 155515
2014-02-08 12:15:15 +01:00
Jonathan Doman 0a982319f4 Tabbed interface
GUI
BUGS: 155515
REVIEW: 110914
2014-02-08 11:44:26 +01:00
Albert Astals Cid ea8316960e Revert the test, it's broken 2013-10-29 00:49:35 +01:00
Jaydeep Solanki b070de5600 autotest for epub internal links 2013-10-27 17:20:53 +01:00
Fabio D'Urso 889c942909 Test that we don't crash if we open the Configure backends dialog twice
This would have caught the issue fixed in 3dd3a000db
2013-06-08 16:54:56 +02:00
Fabio D'Urso 5860fc89c5 Added shortcut to annotation config panel as review toolbar's context menu 2013-05-28 23:55:10 +02:00
Fabio D'Urso 4526dd2fd0 Make all parts receive config change notifications
Instead of listening on KConfigDialog's signals, this patch makes parts
listen on Okular::Settings::self()'s configChanged() signal.

Unlike KConfigDialogs, Okular::Settings::self() is unique and never
changes during the process lifetime, and therefore:
 - A part can connect during initialization and receive notifications,
   without depeding on KConfigDialog objects (which might be instanced
   or deleted by a different part).
 - The connection now survives deletion of the KConfigDialog.
2013-05-28 23:44:55 +02:00
Tomáš Poledný 5ab30aae15 Open print dialog from command line
BUGS: 252462
REVIEW: 109096
FIXED-IN: 4.11.0
GUI
2013-03-11 22:52:25 +01:00
Albert Astals Cid 541650a4f4 Remove the concept of observer/view id
Just use the pointer as id :-)

This is BIC and SIC, increase the soversion now to makes sure we don't forget in the future

Patch based in an earlier patch by Bogdan Cristea <cristeab@gmail.com>
REVIEW: 109115
2013-02-24 23:01:02 +01:00
Albert Astals Cid 5261272e45 test to make sure the toc reload feature works 2013-01-19 15:05:39 +01:00
Fabio D'Urso a0135a3c8e Fix reload of modified documents that take longer to be ready
SlotDoFileDirty tries to reload the file at regular intervals.
This patch fixes it so that it can actually reopen the file even if
it is not ready at the first timer shot.

BUG: 310531
2012-12-01 00:04:34 +01:00
Jaydeep Solanki b115232966 D-Bus access to non-first Okular::Part
REVIEW: 106531
BUGS: 306313
FIXED-IN: 4.10.0
2012-09-25 21:30:23 +02:00
Jaydeep Solanki 6d6a3bfce5 Open a new Shell when opening a new file
BUGS: 166645
FIXED-IN: 4.10.0
REVIEW: 105965
GUI
2012-09-04 20:04:01 +02:00
Fabio D'Urso a6922a4430 Don't produce unusable file if user presses "Save As" on a .okular archive
Make "Save As" behave like "Export as Document Archive" if we are
saving a .okular file.
BUG: 258475
2012-06-05 00:48:58 +02:00
Fabio D'Urso e3f1c388de Ask "Save annotation changes?" if there are unsaved annotations that cannot be saved locally
This patch turns Okular into a ReadWritePart. Annotation editing is always
disabled if we're loaded as ReadOnlyPart, no matter the document type.

REVIEW: 105020
2012-05-23 23:43:44 +02:00
Mailson Menezes bd9087f20a Remember position on the page in bookmark
IOW accept more than one bookmark per page
BUGS: 157198
REVIEW: 104365
2012-03-26 20:01:01 +02:00
Albert Astals Cid 56e356df61 Fix crash on close 2012-02-02 19:55:40 +01:00
Jonathan Marten 06326f7311 Allow the page number selector to be added to the toolbar
Ok, this is not really the review Jonathan did, i did rewrite the code partially because i did not really
want to have a new observer, but the code is heavily inspired in his patch.

Also the page number selector is not in the toolbar as the review had, it'd be silly to have it in both places
by default, so if you want to have it you have to go, edit the toolbar and add the "Page Number" action to it.

REVIEW: 103427
BUGS: 279128
FIXED-IN: 4.9.0
2012-01-31 19:54:15 +01:00
Elvis Stansvik d066fb0004 Remember collapse state of sidebar when file is auto-reloaded
BUGS: 289010
REVIEW: 103517
2011-12-28 00:49:44 +01:00
Michel Ludwig 5b7c6b8170 Add two new methods to the viewer interface.
Namely, 'areSourceLocationsShownGraphically()' and 'isWatchFileModeEnabled()'.
A corresponding implementation is provided.
2011-11-05 09:40:12 +00:00
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.
2011-11-05 09:18:08 +00:00
Michel Ludwig d7e116f2d7 Move the definition of the 'EmbedMode' enum to 'part.h' 2011-11-02 20:29:31 +00:00
Michel Ludwig 872c537f44 Merge branch 'master' into viewerinterface 2011-11-01 21:12:40 +00:00
Michel Ludwig a823df5c8f Some more changes according to the review. 2011-10-31 21:44:21 +00:00
Albert Astals Cid 3b272175ea Also add the possibility of renaming bookmarks using RMB menu 2011-10-26 00:19:58 +02:00
Albert Astals Cid 880dae2e19 Add a way to rename the current page bookmark from the menu
Comes with some api additions to bookmarkmanager
2011-10-25 22:21:22 +02:00
Michel Ludwig 31828b4850 Move the setting of shortcuts for viewer mode to a special method 'setViewerShortcuts()' 2011-10-24 21:30:05 +01:00
Michel Ludwig 2fd4100cbd Coding style fixes 2011-10-23 14:22:58 +01:00
Michel Ludwig 6494e071d7 Also update the state of the menu 'view_orientation' correctly. 2011-10-23 11:07:38 +01:00
Michel Ludwig f431e98bb8 Change the action states according to whether a document is shown or not 2011-10-23 10:17:04 +01:00
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.
2011-10-17 20:56:45 +01:00
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.
2011-10-12 20:36:01 +01:00
Michel Ludwig 1a5f2be05c Merge branch 'master' into viewerinterface 2011-10-12 20:16:46 +01:00
Jiri Baum f81a49fafa table selection tool
BUGS: 279859
REVIEW: 102358
FIXED-IN: 4.8.0
2011-10-12 15:52:24 +02:00
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).
2011-10-05 21:50:12 +01:00
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
Christopher Reichert a9354072ad View orientation cached in memory.
Cache the view orientation in memory to anticipate
a document reload.

CCBUG: 184518
2011-06-25 17:14:04 -05:00
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
2010-10-29 21:47:17 +00:00
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
2010-09-03 21:30:30 +00:00
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
2010-08-20 16:20:17 +00:00
Pino Toscano 5d884febb0 rename slot: setMimeTypes -> slotJobStarted
svn path=/trunk/KDE/kdegraphics/okular/; revision=1166032
2010-08-20 16:07:36 +00:00
Albert Astals Cid 45c8faee16 using Part as class name makes it very easy to collide with other Parts out there and very ugly things will happen, add a namespace
svn path=/trunk/KDE/kdegraphics/okular/; revision=1040789
2009-10-26 20:59:24 +00:00
Pino Toscano 01001d2c61 Add a D-Bus function 'documentMetaData(QString)' to get a metadata of the open document, if available.
svn path=/trunk/KDE/kdegraphics/okular/; revision=975670
2009-05-30 17:00:16 +00:00
Pino Toscano bb73bf347c detect when we are embedded in KHTML
svn path=/trunk/KDE/kdegraphics/okular/; revision=943271
2009-03-23 15:40:09 +00:00
Pino Toscano 9822fae845 centralize the idea of knowing where are we embedded into
apply it to the print preview mode (effectively replacing the "dummy mode"), and to the "native shell" case

svn path=/trunk/KDE/kdegraphics/okular/; revision=942873
2009-03-22 18:38:38 +00:00