Commit graph

440 commits

Author SHA1 Message Date
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
Albert Astals Cid 10ba02cbd5 in case we have a new enough poppler give a better error message when we can't save files with /Encrypt
BUGS: 208119

svn path=/trunk/KDE/kdegraphics/okular/; revision=1037771
2009-10-19 23:00:52 +00:00
Albert Astals Cid 4d36e1d1ad Remove special casing for saving local files where we don't use the temporary file, fixes saving a pdf file over itself
BUGS: 207214

svn path=/trunk/KDE/kdegraphics/okular/; revision=1023085
2009-09-13 21:11:37 +00:00
Pino Toscano 61475abe5d Convert the PageView from a QScrollArea + inner QWidget to a QAbstractScrollArea.
- added few utility functions to compensate the miss of a "central scrolled widget", as now we just fully handle (events & painting) the viewport of the scroll area
- manually scroll the overlay widgets (form widgets and video widgets) when the "area" is scrolled
All the page view functionalities should be working as usual, hopefully I should have ported everything (in case it will be fixed later).
Given that now the size page view is no more constrained by the maximum size of a QWidget (which is two orders of magnitude less than the size of an int), we can handle documents with really many pages (10k+) with hopefully no issues.
BUG: 191859
As a side effect of the QScrollArea -> QAbstractScrollArea porting, it seems that there are no more drawing glitches when in right-to-left mode.
BUG: 192636

svn path=/trunk/KDE/kdegraphics/okular/; revision=989285
2009-06-29 20:55:50 +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 2dcee6883a actually, there's no need to register the bookmark items menu actions to the action collection, as they are transient atm
svn path=/trunk/KDE/kdegraphics/okular/; revision=973699
2009-05-27 17:26:53 +00:00
Pino Toscano 37403a031a Small rework on the system used to pass parameters of the document:
- on command line, properly read the URL ref ('#foobar' at the end), avoiding a KCmdLineArgs behaviour which encodes it as part of the file name
- pass what was specified as ref or the page (as specified with -p/--page) to the kpart
- make the okularpart take out the ref from the URL it opens and then:
  a) if it is a number, assume it is the destination page number
  b) otherwise, use that string as named destination

CCMAIL: okular-devel@kde.org

svn path=/trunk/KDE/kdegraphics/okular/; revision=969227
2009-05-17 18:08:43 +00:00
Pino Toscano a84db251c4 Instead of directly closing the find bar with Esc, check whether a search is running from it.
In case it is, then cancel it, otherwise just close the find bar.
This make it possible to cancel a running search in the find bar without waiting for it to find some match and stop.

svn path=/trunk/KDE/kdegraphics/okular/; revision=965461
2009-05-08 23:19:37 +00:00
Albert Astals Cid 87a00c3fdc use the new kfiledialog:/// variant that let's you both specify a keyword and a filename
ok'ed by pino

svn path=/trunk/KDE/kdegraphics/okular/; revision=951941
2009-04-10 16:27:38 +00:00
André Wöbbeking d99acec0f2 forwardport of rev. 943375 by woebbe:
slotAboutBackend(): use the document's mimetype to get an icon instead of the unknown icon.
this way you don't have to specify redundant icon names yourself.

svn path=/trunk/KDE/kdegraphics/okular/; revision=943494
2009-03-23 22:57:50 +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 055e7b0d66 add the compressed versions of eps
BUG: 177516

svn path=/trunk/KDE/kdegraphics/okular/; revision=896220
2008-12-12 21:44:49 +00:00
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
Pino Toscano 2e26d12531 icon renaming:
- thumbnail-show -> view-preview

svn path=/trunk/KDE/kdegraphics/okular/; revision=735048
2007-11-10 18:49:57 +00:00
Craig Drummond 4863ab4e2d Fix parentless dialogs
svn path=/trunk/KDE/kdegraphics/okular/; revision=734688
2007-11-09 16:16:05 +00:00
Pino Toscano 6ae58b8250 properly pass a directory
svn path=/trunk/KDE/kdegraphics/okular/; revision=732148
2007-11-02 23:00:38 +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
Pino Toscano 6d375af868 Move all the bookmarking stuff into the BookmarkManager, that now updates the Document observers automatically.
svn path=/trunk/KDE/kdegraphics/okular/; revision=730404
2007-10-28 18:31:33 +00:00
Oswald Buddenhagen 77801a028d KConfig* API overhaul. only cosmetics, so don't panic.
KConfigBase:
- remove separator argument from list entry reading/writing functions
- introduce {read,write}XdgListEntry()
- kill readPathListEntry(), add readPathEntry() overload
  instead. the default value is not optional any more, as it defines the
  return type. this is consistent with the readEntry() functions.
- rename clean() => markAsClean(), remove rollback()
- rename ConfigState => AccessMode, getConfigState() => accessMode()
- rename {entry,group}IsImmutable() => is{Entry,Group}Immutable()
- remove NLS alias to Localized

KConfig:
- remove setGroup() & group()
- reshuffle OpenFlag enum, introduce NoCascade for symmetry
- remove setExtraConfigFiles() alias to addConfigSources()

KConfigGroup:
- inherit KConfigBase::deleteGroup() overloads
- make convertToQVariant() private, it will probably change somehow

- KConfig & KConfigGroup: deprecate entryMap()
- remove bogus declarations: KConfigGroup::setReadDefaults(),
  KConfig::readEntryUntranslated()
- apidox
- reshuffle the declarations in the headers


svn path=/trunk/KDE/kdegraphics/okular/; revision=728852
2007-10-24 13:08:37 +00:00
Oswald Buddenhagen a99df4c192 follow path entry changes - auto-port, reviewed, not tested
svn path=/branches/work/kconfig_new_take3/KDE/kdegraphics/okular/; revision=728208
2007-10-22 18:21:51 +00:00
Pino Toscano cd62fb8d6a icon renamings:
- find-next -> edit-find-next
- find-previous -> edit-find-previous

svn path=/trunk/KDE/kdegraphics/okular/; revision=727831
2007-10-21 21:40:12 +00:00
Pino Toscano b975359158 make print preview working again
(of course, just for few document types, as QPrinter sucks and kdeprint is too good)

svn path=/trunk/KDE/kdegraphics/okular/; revision=726764
2007-10-18 20:25:33 +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 8ff3d1d705 more use of standard actions
svn path=/trunk/KDE/kdegraphics/okular/; revision=722702
2007-10-07 23:09:08 +00:00
Pino Toscano 0b26a91f1f use the standard action names
svn path=/trunk/KDE/kdegraphics/okular/; revision=722687
2007-10-07 22:21:13 +00:00
David Faure 1a463cb358 Merged revisions 720689-721023 via svnmerge from
svn+ssh://dfaure@svn.kde.org/home/kde/trunk/KDE
+ resolved conflicts, fixed compilation in a number of places.

svn path=/branches/work/kde4_jobflags/KDE/kdegraphics/okular/; revision=721065
2007-10-04 13:23:29 +00:00
David Faure 56eecebe3f Ported
svn path=/branches/work/kde4_jobflags/KDE/kdegraphics/okular/; revision=720904
2007-10-03 23:53:38 +00:00
Pino Toscano 4a429ecd7b when shutting down, close the current document
svn path=/trunk/KDE/kdegraphics/okular/; revision=720716
2007-10-03 14:59:57 +00:00
Pino Toscano 175cc2bce6 use the same about data for both the part and the shell, so:
- the part uses the same app share for its specific stuff
- no manual need to load another catalog ("okular") in the part

svn path=/trunk/KDE/kdegraphics/okular/; revision=720296
2007-10-02 22:42:59 +00:00
Pino Toscano 02d6dab204 adapt to the new icon names
svn path=/trunk/KDE/kdegraphics/okular/; revision=720180
2007-10-02 16:23:28 +00:00
Pino Toscano 424ebb655d use better icons for a couple of sections in the preferences dialog, and in the File menu
svn path=/trunk/KDE/kdegraphics/okular/; revision=719820
2007-10-01 22:49:47 +00:00
Pino Toscano 49166c17aa simplify a bit, and assign the temporary file name only if the whole extraction procedure succeeded
svn path=/trunk/KDE/kdegraphics/okular/; revision=719677
2007-10-01 17:06:42 +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 cee21b54b2 no need for a "checked state" for the show navigation panel menu action
svn path=/trunk/KDE/kdegraphics/okular/; revision=715110
2007-09-21 08:47:58 +00:00
Pino Toscano 81f852094b use the 'attach' icon for the embedded files menu action
svn path=/trunk/KDE/kdegraphics/okular/; revision=712981
2007-09-15 22:17:34 +00:00
Pino Toscano 54c2e91df6 fix logic
svn path=/trunk/KDE/kdegraphics/okular/; revision=712857
2007-09-15 14:14:33 +00:00
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
Pino Toscano 6cf46e9160 make the D-Bus call for the search have effect also when in presentation mode;
give focus to the presentation search toolbar when showing it

svn path=/trunk/KDE/kdegraphics/okular/; revision=656256
2007-04-20 19:45:33 +00:00
Albert Astals Cid 0d47b62715 krazy include order issues
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
2007-04-19 18:30:20 +00:00
Pino Toscano 4a166a0d70 SVN_SILENT fix copy-paste error
svn path=/trunk/KDE/kdegraphics/okular/; revision=654331
2007-04-15 20:00:43 +00:00
Albert Astals Cid b0339a4e40 fix some easy krazy issues
svn path=/trunk/KDE/kdegraphics/okular/; revision=654317
2007-04-15 19:11:10 +00:00
Pino Toscano 8f443fc5fd disable the old newstuff system, waiting for the porting to the new one
svn path=/trunk/playground/graphics/okular/; revision=649662
2007-04-02 23:36:00 +00:00
Albert Astals Cid 5365f79d6d fordwardport r648173 kpdf/branches/KDE/3.5/kdegraphics/kpdf/ (4 files in 3 dirs):
Give KMessageBoxes a parent widget.
DVI plugin is missing 4 messageboxes, some work has to be done to get them know the document() so they can call widget()

svn path=/trunk/playground/graphics/okular/; revision=648175
2007-03-30 17:46:50 +00:00
Albert Astals Cid 233c5c6e0f make ps transform work again. It was not working because openurl called closeurl that deleted the temporary file. I added a new check not to delete the temporary file if that's the file we are opening :-D
svn path=/trunk/playground/graphics/okular/; revision=647619
2007-03-28 22:01:38 +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
David Faure 0c1b5314e9 Use standard mimetype names from shared-mime-info
svn path=/trunk/playground/graphics/okular/; revision=644959
2007-03-21 11:39:20 +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
David Faure 2bfc410d5b Fix compilation. The mimetype handling should be rewritten though; maybe with some code in KParts itself...
Next problem (on amd64):
/d/kde/src/4/playground/graphics/okular/generators/plucker/unpluck/unpluck.cpp:901: error: cast from ‘void*’ to ‘int’ loses precision

svn path=/trunk/playground/graphics/okular/; revision=642273
2007-03-13 20:01:56 +00:00
Pino Toscano 9a10418505 move the about data in an own file, so it can be used from both the shell and the part
svn path=/trunk/playground/graphics/okular/; revision=641337
2007-03-10 23:45:12 +00:00
Pino Toscano f1fd2750e4 save a pointer to save some casts
svn path=/trunk/playground/graphics/okular/; revision=641327
2007-03-10 22:50:40 +00:00