Commit graph

326 commits

Author SHA1 Message Date
Pino Toscano 3ebce5aaf5 Add hidden configuration for showing the document title (if any) in the title bar. Default is true (as before).
Based on a patch by Alejandro Exojo, thanks!
$ kwriteconfig --file okularpartrc --group General --key DisplayDocumentTitle --type bool false

BUG: 158401

svn path=/trunk/KDE/kdegraphics/okular/; revision=890576
2008-11-29 14:36:14 +00:00
Pino Toscano 5d10ae58c6 Pass the action collection directly in the ctor of the presentation widget, so we can use its actions there too.
As result, move the creation of the drawing actions in the main kpart and just plug them, so their shortcut can be configured.
BUG: 175545

svn path=/trunk/KDE/kdegraphics/okular/; revision=890504
2008-11-29 13:50:37 +00:00
Sebastian Trueg 00f069f873 Reverted part of my patches based on pinotree's wishes. :)
svn path=/trunk/KDE/kdegraphics/okular/; revision=887165
2008-11-21 11:45:00 +00:00
Sebastian Trueg b787abb5d8 Nobody reacted on my email to the devel mailing list, so I suspect that noone has any objections to my patches.
Anyway, this is what happens:
* I replaced the zoom combobox in the toolbar with the fit to width/page buttons. For one they look much cleaner and
  also most users would never use the freezooming anyway.
* Removed the frame from the sidebar, making for a cleaner overall look. After all, nothing else has a frame.
* Let the statusbar stretch over the full width of the window. This again makes the app look cleaner.
* Used the same trick as in Gwenview: let the background shine through -> clean++
* Use QToolButton instead of QPushButton for the minibar buttons to fit the other buttons in all apps.

svn path=/trunk/KDE/kdegraphics/okular/; revision=887160
2008-11-21 10:50:16 +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
Laurent Montel c2fc9836e8 Fix iterator
svn path=/trunk/KDE/kdegraphics/okular/; revision=882957
2008-11-11 18:48:40 +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
Tobias Koenig d34f0bc814 Add blackscreen mode feature to presentation mode.
Now you can switch the screen to black during a presentation
to e.g. write something on the projection wall.

svn path=/trunk/KDE/kdegraphics/okular/; revision=859741
2008-09-11 08:40:00 +00:00
Laurent Montel 3d3e63ce0e Fix mem leak
svn path=/trunk/KDE/kdegraphics/okular/; revision=831766
2008-07-13 09:51:04 +00:00
Pino Toscano 5fc4a2cf2f forgot the argument for the error message
svn path=/trunk/KDE/kdegraphics/okular/; revision=823118
2008-06-22 15:35:12 +00:00
Pino Toscano e68ca68e01 show an error message when we want to copy a local document to another place, but the document has vanished in the meanwhile
(yes, i'm looking at you, stupid firefox!)
ok'ed by translators

svn path=/trunk/KDE/kdegraphics/okular/; revision=822752
2008-06-21 10:54:27 +00:00
Pino Toscano 5b5b4cabe1 disable the open handle on the file, it breaks the file watching
CCBUG: 163363

svn path=/trunk/KDE/kdegraphics/okular/; revision=818144
2008-06-07 21:52:11 +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 346d54b061 hide top and form messages when closing a document
svn path=/trunk/KDE/kdegraphics/okular/; revision=817814
2008-06-06 21:19:02 +00:00
Pino Toscano 6772cc1275 it seems the object name of the shell window is sane again, so check for it now
(check for the "mangled"(?) name as well, you never know..)

svn path=/trunk/KDE/kdegraphics/okular/; revision=817701
2008-06-06 17:17:16 +00:00
Pino Toscano 76531028ba Make the page view a View, able to get and set the zoom level, and register it in the document.
svn path=/trunk/KDE/kdegraphics/okular/; revision=801660
2008-04-27 11:17:05 +00:00
Albert Astals Cid e82ba7082a less typos
svn path=/trunk/KDE/kdegraphics/okular/; revision=796366
2008-04-13 13:15:15 +00:00
Malcolm Hunter 2f62610563 More typo fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=795917
2008-04-11 22:09:50 +00:00
Malcolm Hunter b6124a900b Typo fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=795906
2008-04-11 21:16:43 +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 8505a357dd Enable and disable the print action from the right place, so it is handled properly with remote documents.
BUG: 160173

svn path=/trunk/KDE/kdegraphics/okular/; revision=792338
2008-03-31 20:51:05 +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 2e888ef2a1 If a document requests to be launched fullscreen when loaded, ask the user if he really want to start the presentation mode.
Implements the KPDF wish #114648.

svn path=/trunk/KDE/kdegraphics/okular/; revision=785138
2008-03-13 11:42:15 +00:00
Pino Toscano e61d057daf fix spello
svn path=/trunk/KDE/kdegraphics/okular/; revision=785117
2008-03-13 09:59:40 +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
Pino Toscano 822fd2488d Enable again the slider in the "Go to Page" dialog.
svn path=/trunk/KDE/kdegraphics/okular/; revision=782380
2008-03-04 23:32:58 +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
Albert Astals Cid 8916829ff3 compare against correct rotation values (enum)
svn path=/trunk/KDE/kdegraphics/okular/; revision=767370
2008-01-27 21:58:46 +00:00
Pino Toscano a0a3c239e2 Standardize our naming: Okular.
CCMAIL: okular-devel@kde.org

svn path=/trunk/KDE/kdegraphics/okular/; revision=763904
2008-01-20 15:35:19 +00:00
Pino Toscano c6f91f4e51 Use the local file path, so remote URLs are not downloaded again. (For local files there is no change.)
svn path=/trunk/KDE/kdegraphics/okular/; revision=761845
2008-01-15 12:49:36 +00:00
Albert Astals Cid ff20b1ee86 Don't show an ugly popup saying the document could not be loaded when we come from a file changed reload
BUG: 155734

svn path=/trunk/KDE/kdegraphics/okular/; revision=761490
2008-01-14 23:03:53 +00:00
Stephan Binner c06deaf9fc i18n style guide fixes, the capitalization rules are explained on
http://developer.kde.org/documentation/standards/kde/style/basics/labels.html

svn path=/trunk/KDE/kdegraphics/okular/; revision=757596
2008-01-05 13:41:54 +00:00
Pino Toscano 4d047a47b0 rename the "save as" action as "save copy as", as it's what it really does
svn path=/trunk/KDE/kdegraphics/okular/; revision=757449
2008-01-04 23:58:22 +00:00
Pino Toscano a4827e24a5 i18n fix: Postscript -> PostScript
svn path=/trunk/KDE/kdegraphics/okular/; revision=757269
2008-01-04 15:46:44 +00:00
Pino Toscano 9c64d8e720 disable the GHNS implementation, as not really ready, yet
(hoping it's not too late)

svn path=/trunk/KDE/kdegraphics/okular/; revision=757059
2008-01-04 01:14:54 +00:00
Jakob Petsovits 46eaee7f44 Icon renaming (code and icon changes - KDE/):
* bookmark -> bookmarks
* and finally, remove user-2 and konv-message[2] from Oxygen

svn path=/trunk/KDE/kdegraphics/okular/; revision=757019
2008-01-03 23:54:18 +00:00
Jakob Petsovits 0141282203 Icon naming spec compliance (code changes - KDE/):
* zoom-best-fit -> zoom-fit-best
* plasmagik -> tools-wizard
* and some other fixes, many of them in KMobileTools

svn path=/trunk/KDE/kdegraphics/okular/; revision=756800
2008-01-03 19:55:37 +00:00
Pino Toscano 6848a3ec6a no need to watch the locally downloaded files of remote urls
svn path=/trunk/KDE/kdegraphics/okular/; revision=755441
2008-01-01 15:59:18 +00:00
Jakob Petsovits 6164d717d8 Icon naming spec compliance (code changes - KDE/):
* go-{next,previous,first,last}-rtl -> go-{previous,next,last,first}
* document-start-presentation -> view-presentation

svn path=/trunk/KDE/kdegraphics/okular/; revision=753149
2007-12-26 19:31:48 +00:00
Pino Toscano 44aa2d7088 Globally store an icon loader different that the global one (eg the KPart one);
this way we can load our custom icons when embedded in other shells than ours.

svn path=/trunk/KDE/kdegraphics/okular/; revision=752473
2007-12-24 15:02:32 +00:00
Pino Toscano cad5fe4806 use the new document{Back|Forward}() standard actions
svn path=/trunk/KDE/kdegraphics/okular/; revision=752443
2007-12-24 13:11:19 +00:00
Pino Toscano 1022878a5a icon renaming:
- pencil -> draw-freehand

svn path=/trunk/KDE/kdegraphics/okular/; revision=746342
2007-12-08 18:49:02 +00:00
Pino Toscano be088ab698 fix icons
svn path=/trunk/KDE/kdegraphics/okular/; revision=746279
2007-12-08 14:57:24 +00:00
Christian Ehrlicher 690bfc7456 add missing qtimer.h
svn path=/trunk/KDE/kdegraphics/okular/; revision=746030
2007-12-07 15:40:25 +00:00
Jakob Petsovits d9de20dfe7 Masses of icon fixes and adaptions, caused by the original
desire to rename "edit" to "object-edit". I changed my mind
in the middle of the process (but had lots of other changes
lying around already and really need to stop), so many
or all of the newly renamed "object-edit" icons might
vanish again.

But all in all, there are improvements in many places.

svn path=/trunk/KDE/kdegraphics/okular/; revision=744272
2007-12-03 06:27:42 +00:00
Pino Toscano bd294e1de6 move the FilePrinterPreview to the kpart (no need for it to be in the core library)
svn path=/trunk/KDE/kdegraphics/okular/; revision=744225
2007-12-03 00:17:12 +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 76ed5e18e5 enable the "copy" and "select all" actions only when there's a document open
temporary "steal" the usage of the "format-justify-(left|right)" icons as table-of-contents icon in the sidebar

svn path=/trunk/KDE/kdegraphics/okular/; revision=736339
2007-11-14 00:04:07 +00:00