Commit graph

253 commits

Author SHA1 Message Date
Pino Toscano f72692799e look for the old kpdf stuff only if the "new okular" stuff is not found
svn path=/trunk/KDE/kdegraphics/okular/; revision=710703
2007-09-10 17:20:58 +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 eb27c7f823 use the new icon Nuno kindly made for the presentation mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=709542
2007-09-07 19:14:03 +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 0cf7f95f3a Disable the minibar for now, let's see how okular looks like w/o it.
svn path=/trunk/KDE/kdegraphics/okular/; revision=709374
2007-09-07 10:59:28 +00:00
Pino Toscano 0517d30bfc Remove the "Show Search Bar" option, mostly unuseful.
svn path=/trunk/KDE/kdegraphics/okular/; revision=709361
2007-09-07 10:31:33 +00:00
Pino Toscano 962a134d2b Properly enable/disable the whole "Export As" menu, not just the "Export to Text" action.
svn path=/trunk/KDE/kdegraphics/okular/; revision=709336
2007-09-07 09:09:39 +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 37870961b7 disable by default the "review" and "bookmarks" sidebar items, and re-enable them only if we're not in dummy mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=708029
2007-09-03 17:25:52 +00:00
Pino Toscano d96bb9e9a4 find the print preview "placeholder" correctly
svn path=/trunk/KDE/kdegraphics/okular/; revision=706138
2007-08-29 14:25:44 +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 cb8d37821c properly disable the "about backend" action at empty window startup
(and remove some unused includes)

svn path=/trunk/KDE/kdegraphics/okular/; revision=706086
2007-08-29 11:24:01 +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 dac41f84ad give the thumbnail list, the toc and the bookmark list a coherent look
svn path=/trunk/KDE/kdegraphics/okular/; revision=704267
2007-08-24 14:20:03 +00:00
Pino Toscano 223c0ba6a0 fix the TOC icon in RtL mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=704022
2007-08-23 23:01:46 +00:00
Pino Toscano 1b0d81fbd4 (finally!) rename the okular configuration to okularpartrc, and make okular copy the old kpdf config if found (to preserve all the user settings)
svn path=/trunk/KDE/kdegraphics/okular/; revision=703108
2007-08-21 23:18:17 +00:00
Pino Toscano 7e4b15542d Usability work on the toolbar:
- shorten the toolbar labels of the Previous/Next Page actions, and put them into the toolbar by default instead of the Back/Forward [history control]
- shorten the toolbar labels of the tool buttons
- remove the Open/Open recent button from the shell toolbar

svn path=/trunk/KDE/kdegraphics/okular/; revision=702549
2007-08-20 20:25:22 +00:00
Pino Toscano b704eefcc8 don't use the deprecated version of KIO::NetAccess::exists()
svn path=/trunk/KDE/kdegraphics/okular/; revision=701293
2007-08-17 23:16:55 +00:00
Arto Hytönen e8ad05552b kdegraphics QString::null clean-up.
svn path=/trunk/KDE/kdegraphics/okular/; revision=701202
2007-08-17 15:52:06 +00:00
Arto Hytönen 6f00373e1b QString::null fixes and hiding from Krazy.
svn path=/trunk/KDE/kdegraphics/okular/; revision=700833
2007-08-16 15:28:21 +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 23016eacd4 Change/set the efault shortcuts for some actions:
- the tools now have Ctrl+1/2/3/4 for Normal, Zoom, Select, TextSelect modes resp.
- the Show/hide navigation panel has F7 now, Ctrl+L conflicts with Konqueror

svn path=/trunk/KDE/kdegraphics/okular/; revision=696405
2007-08-04 17:42:06 +00:00
Pino Toscano 09bae8bbc7 set the right position for the new viewport when requesting to open a page from command line
svn path=/trunk/KDE/kdegraphics/okular/; revision=694537
2007-07-31 00:04:09 +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 d393001982 properly delete the temporary file when closing a document
svn path=/trunk/KDE/kdegraphics/okular/; revision=693871
2007-07-29 10:38:48 +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 be0023b02a recognize correctly the compressed mimetypes for pdf, ps and dvi
svn path=/trunk/KDE/kdegraphics/okular/; revision=692295
2007-07-25 09:44:48 +00:00
Pino Toscano 301ab93196 Riactivate the very very very, and I underline very, experimental newstuff support we had before the KNS1 -> KNS2 switch:
- install a newstuff rc config, pointing to the NS1 stuff on okular.kde.org
- show the download dialog for newstuff, properly (hopefully) initialized
- proper linking for the okularpart

svn path=/trunk/KDE/kdegraphics/okular/; revision=690047
2007-07-19 22:27:45 +00:00
Pino Toscano f2ef436a56 when in embedded mode, create only the base actions for the view (zoom combo/in/out)
svn path=/trunk/KDE/kdegraphics/okular/; revision=687811
2007-07-14 12:31:26 +00:00
Pino Toscano 2f8a8f8f44 fix integration with the shell
svn path=/trunk/KDE/kdegraphics/okular/; revision=687581
2007-07-13 22:52:32 +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
Pino Toscano 43f83cb967 move the calculation of the number of configurable generators to the Document, and start to store the information about the configurability of a generator
svn path=/trunk/KDE/kdegraphics/okular/; revision=687014
2007-07-12 17:52:14 +00:00
Albert Astals Cid 55d3e7f353 deprecated--
svn path=/trunk/KDE/kdegraphics/okular/; revision=683148
2007-07-04 09:35:08 +00:00
Chusslove Illich 968760cb6c Auto-conversion to new KCmdLineArgs/KAboutData/KComponentData API (trunk/KDE). Watch for the few remaining QString to QByteArray assignments that will not compile without extra specification (typically needs .toLocal8Bit() or .toUtf8()).
svn path=/trunk/KDE/kdegraphics/okular/; revision=682260
2007-07-02 08:52:55 +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
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 b4b3ebdded Okular::Settings::writeConfig() -> Okular::Settings::self()->writeConfig()
svn path=/trunk/KDE/kdegraphics/okular/; revision=667772
2007-05-23 21:59:12 +00:00
Pino Toscano e83f58d78d instead of emitting a signal, just use a simple action
svn path=/trunk/KDE/kdegraphics/okular/; revision=667074
2007-05-21 19:53:13 +00:00
Pino Toscano ca47d541f1 SVN_SILENT indent
svn path=/trunk/KDE/kdegraphics/okular/; revision=666258
2007-05-19 10:11:04 +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 5cd9ce1019 Master Albert is right, no need to enable the search widget over the thumbnails if the document does not support search (mainly because its backend does not support text extraction).
svn path=/trunk/KDE/kdegraphics/okular/; revision=659315
2007-04-29 22:50:32 +00:00
Pino Toscano 2e024d6d96 generalize a bit more the way for constructing "standard" ExportFormat's
svn path=/trunk/KDE/kdegraphics/okular/; revision=656426
2007-04-21 11:09:41 +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