Commit graph

110 commits

Author SHA1 Message Date
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
Pino Toscano d89eb2ae9f Add a "Find Previous" action.
BUG: 184230

svn path=/trunk/KDE/kdegraphics/okular/; revision=926106
2009-02-14 17:11:29 +00:00
Pino Toscano bfa8bd7a5a Expose to the world the document archiving functions:
- loading: slightly edited the loading function to call the right open function of Document in case the file is a document archive (choosen normally in the "open" dialog)
- saving: added an entry in the "export to" formats (and shuffled some code for being more flexible)

probably not much ideal for an usability POV, but we can work on it.

svn path=/trunk/KDE/kdegraphics/okular/; revision=884852
2008-11-16 01:23:31 +00:00
Pino Toscano ba01e51526 convert most of the QAction to KAction, so shortcut change on them works again
yay for compatibility!

svn path=/trunk/KDE/kdegraphics/okular/; revision=870269
2008-10-12 09:00:37 +00:00
Pino Toscano 1080a193b9 - make sure to properly unregister all the observers before the Document gets destroyed
- keep ownership of the "export as" menu, and check before manipulating its child widgets: avoid crashes in case the part widget is destroyed before the pa
rt is
both the problems discovered and debugged with the precious help of Armin Berres, thanks!
CCMAIL: trigger@space-based.de

svn path=/trunk/KDE/kdegraphics/okular/; revision=863716
2008-09-22 22:58:32 +00:00
Pino Toscano 4eae142459 Add a D-Bus call for reloading the current document.
svn path=/trunk/KDE/kdegraphics/okular/; revision=863704
2008-09-22 22:18:07 +00:00
Pino Toscano 6531398b91 Keep an open file handle on the local file currently open: this way, we can get it back from it,
in case for some reason (read: Firefox blindly removing temporary files) it gets "deleted".
Of course, this works (and thus it is activated) only on UNIX systems (as the file is not deleted for real until there are open handles on it).
BUG: 163363
(If not wanted, this behavior can be disabled by export'ing OKULAR_NO_KEEP_FILE_OPEN to 1.)

Also, in case the local file gets deleted but the real document is remote, use its (remote) URL for the copy.

svn path=/trunk/KDE/kdegraphics/okular/; revision=818136
2008-06-07 21:08:41 +00:00
Pino Toscano 1d159f6bb8 SVN_SILENT remove unuseful include
svn path=/trunk/KDE/kdegraphics/okular/; revision=792474
2008-04-01 09:14:21 +00:00
Pino Toscano cf1b9ea728 split the KParts extensions in an own file
svn path=/trunk/KDE/kdegraphics/okular/; revision=792473
2008-04-01 09:10:46 +00:00
Pino Toscano d3e7460947 Add a Live Connect extension to be able to react to the very tiny bit of exposed JavaScript API for host containers.
The current implementation is very very very simple and minimal, and misses a bit of stuff (eg the queue'ing for messages, errors, etc), but for now seems working.
Many thanks to Maksim for his precious help with the extension working :)

svn path=/trunk/KDE/kdegraphics/okular/; revision=792030
2008-03-30 23:36:15 +00:00
Albert Astals Cid f93ccd7923 Implement watching for apps that first remove the file and then create it again
svn path=/trunk/KDE/kdegraphics/okular/; revision=786796
2008-03-17 23:02:33 +00:00
Pino Toscano c9089f3160 Add the possibility to save a copy of the document with the changes to it (only for form fields at the moment).
On the Document/Generator side, introduce a proper interface for the purpouse.

On the GUI side, add a new "Save As" function that save the changed document to a location.
The action is enabled only if the current backend can provide the functionality.

svn path=/trunk/KDE/kdegraphics/okular/; revision=784661
2008-03-11 23:40:59 +00:00
Tobias Koenig 34099483fb Update the bookmark menu whenever bookmarks have been renamed
in the sidebar

BUG: 157189

svn path=/trunk/KDE/kdegraphics/okular/; revision=771286
2008-02-05 17:36:04 +00:00
John Layt 1b1ed9451b Enable Okular printing features:
* Add FilePrinter class to enable printing via postscript files
* DJVU, PDF, and PS backends print FilePrinter
* All backends enable printing of bookmarked pages
* Print and Print Preview actions enabled/disabled depending on backends
  printing ability

Note that FilePrinter only works on *NIX platforms with Cups, lpr, or lp.



svn path=/trunk/KDE/kdegraphics/okular/; revision=741990
2007-11-26 21:43:54 +00:00
Pino Toscano 1cd4ae0a3e When reloading, properly remember the state of the sidebar.
CCBUG: 151130

svn path=/trunk/KDE/kdegraphics/okular/; revision=731721
2007-11-01 17:52:47 +00:00
John Layt 070285e039 Port from KPrinter to QPrinter, remove dependency on KDE4_KDEPRINT_LIBS.
*** Note this is not a complete port, most of the generators use the 
printFiles method which Qt 4.3 does not support, these have simply
been commented out until we find a solution.  At least it removes
the dependency so we can remove from kdelibs.

svn path=/trunk/KDE/kdegraphics/okular/; revision=725660
2007-10-15 23:01:27 +00:00
Pino Toscano 211ab15c2e use KAboutData by value, and remove an old static method of the part
svn path=/trunk/KDE/kdegraphics/okular/; revision=719241
2007-09-30 16:52:27 +00:00
Pino Toscano b56ad8c3ae Change the DocumentObserver::notifySetup() to allow a better tuning of the different setup options (different layout for the pages, or different document).
svn path=/trunk/KDE/kdegraphics/okular/; revision=710227
2007-09-09 10:50:36 +00:00
Pino Toscano a2b2db70eb SVN_SILENT old code
svn path=/trunk/KDE/kdegraphics/okular/; revision=709398
2007-09-07 12:46:16 +00:00
Pino Toscano 969bc7b908 Ctrl+A to select all the text in the document.
Implements KPDF bug #109346.

svn path=/trunk/KDE/kdegraphics/okular/; revision=708124
2007-09-03 21:35:05 +00:00
Pino Toscano 218b630460 port to the new library loading stuff
svn path=/trunk/KDE/kdegraphics/okular/; revision=706132
2007-08-29 14:16:06 +00:00
Pino Toscano a8d747745f Cleanup a bit the GuiInterface, and making it work.
Instead of manually requestion actions and other stuff, we just make the interface as gui client, requesting and integrating it in the part gui.
Also, rename the Generator's componentData() to ownComponentData() to avoid clashing with KXMLGUIClient.

svn path=/trunk/KDE/kdegraphics/okular/; revision=705933
2007-08-28 23:17:00 +00:00
Albert Astals Cid e147022703 fordwardport fix for 148026
svn path=/trunk/KDE/kdegraphics/okular/; revision=704883
2007-08-26 14:40:29 +00:00
Pino Toscano 4fa5e016c6 port to the new kpart api:
- first use the mimetype from the OpenUrlArguments, or fallback on a manual mimetype detection
- get rid of the manual discover of the mimetype using the signal from the file transfer job - this is done in the base readOnlyPart, now

svn path=/branches/work/kparts_urlargs_split/kdegraphics/okular/; revision=698689
2007-08-10 18:10:44 +00:00
Pino Toscano 17ad0df66c New sidebar for okular.
The old sidebar had many problems and limitations, usability issues as well.
This new sidebar tries to simplify and solve many of these issues (like the navigability with the keyboard), with a better looking.
Of course, some glitches are still there, but easily solvable.

svn path=/trunk/KDE/kdegraphics/okular/; revision=697060
2007-08-06 17:24:10 +00:00
Pino Toscano b43e10e788 KUrl can not be used in the D-Bus API, so change openDocument and currentDocument to use QString, making them work again.
svn path=/trunk/KDE/kdegraphics/okular/; revision=693927
2007-07-29 14:36:49 +00:00
Pino Toscano 456e98ae21 Move the compressed files handling from openUrl() to openFile(), this way we can really handle remove compressed files.
Tested with local files only, remove files should work but their download seems to give broken files at the moment (kdelibs bug, I think).

This should hopefully complete the support for compressed files (eg .pdf.gz, .ps.bz2, etc).

svn path=/trunk/KDE/kdegraphics/okular/; revision=693782
2007-07-29 00:55:17 +00:00
Pino Toscano 67dff3b363 show the correct file name in the title when the document is compressed (that is, we're opening the temporary extracted file) and it has no title
svn path=/trunk/KDE/kdegraphics/okular/; revision=692303
2007-07-25 10:08:38 +00:00
Pino Toscano 5387c50960 Make the Configure backends dialog working, of course if the generators have the proper support for "mutable" configuration.
svn path=/trunk/KDE/kdegraphics/okular/; revision=687065
2007-07-12 20:04:56 +00:00
Albert Astals Cid 7c92c4a497 Adapt to r676616
Start the part in dummy mode if one of the args we get passed is "Print/Preview"

svn path=/trunk/KDE/kdegraphics/okular/; revision=676617
2007-06-17 09:45:59 +00:00
Albert Astals Cid c5b23318ca Error notyfing when not able to open a file
WindowTitle settign for remote files

svn path=/trunk/KDE/kdegraphics/okular/; revision=671944
2007-06-05 21:25:41 +00:00
Albert Astals Cid b883cbcfa6 The part starts in dummy mode (very few ui) by default
Can be deactivated using unsetDummyMode(), that is the first thing the okular shell does
that's useful because for example for print preview you don't want to embed all the okular ui to do the preview, you just want to see the ps

svn path=/trunk/KDE/kdegraphics/okular/; revision=671928
2007-06-05 20:49:00 +00:00
Laurent Montel e31f9ada54 Remove not necessary "class classname;"
svn path=/trunk/KDE/kdegraphics/okular/; revision=671220
2007-06-04 07:44:15 +00:00
Pino Toscano 04548385ba add a method to the document interface to get the supported mimetypes
svn path=/trunk/KDE/kdegraphics/okular/; revision=668028
2007-05-24 20:39:35 +00:00
Pino Toscano 7c8cc68a8c Add a Reload menu item to manually reload a document.
Useful for example when not using the watching file features.
Implements KPDF bug #136820.

svn path=/trunk/KDE/kdegraphics/okular/; revision=661681
2007-05-06 11:23:26 +00:00
Pino Toscano 1e68ded6c9 Florian is right, change also the icon of the add/remove bookmark action
svn path=/trunk/KDE/kdegraphics/okular/; revision=660124
2007-05-01 16:38:35 +00:00
Pino Toscano 8eca279375 Add an Add/Remove Bookmark to add/remove a bookmark for the current page.
svn path=/trunk/KDE/kdegraphics/okular/; revision=660097
2007-05-01 14:43:30 +00:00
Pino Toscano bf9f5c6fa8 Forwardport of SVN commit 656308 by pino:
Restore the previously open pane in the side toolbox after reloading a watched document.

(closed KPDF #116771)

svn path=/trunk/KDE/kdegraphics/okular/; revision=656309
2007-04-20 23:22:56 +00:00
Pino Toscano 6501e93423 convert the ps2pdf process to QProcess, albeit not working (almost clueless about why it does not work...)
svn path=/trunk/playground/graphics/okular/; revision=646969
2007-03-27 00:00:41 +00:00
Pino Toscano f55c401b20 Refactor the document search interfaces, as discussed on the mailing list.
Merge the search in normal mode and the type-ahead in a search bar that appears on the bottom of the page view. This should work nicely.
In presentation mode, add a small floating search toolbar that takes care of searching during the presentation mode, on document request. This is not working yet, but basically most of the work is done.

Please test and report any problems you find.

CCMAIL: okular-devel@kde.org

svn path=/trunk/playground/graphics/okular/; revision=643607
2007-03-17 22:58:41 +00:00