Commit graph

441 commits

Author SHA1 Message Date
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
Pino Toscano 2ef46f8d90 simplify a bit the export action creation code
svn path=/trunk/playground/graphics/okular/; revision=641313
2007-03-10 21:32:09 +00:00
Pino Toscano 9ccf6d520d adapt the icon names to the icon naming spec
svn path=/trunk/playground/graphics/okular/; revision=640710
2007-03-08 21:41:46 +00:00
Pino Toscano fd7434c95a Add support for custom generator about data (and potentially for custom configuration).
svn path=/trunk/playground/graphics/okular/; revision=640348
2007-03-07 18:15:00 +00:00
Pino Toscano c8328a6553 Set a title for the KDE Printing Job.
svn path=/trunk/playground/graphics/okular/; revision=639359
2007-03-04 23:19:43 +00:00
Pino Toscano db8a10dc2c Preliminary supports for text and choice form fields.
This includes:
- the interfaces for the generators
- the basic widgets for editing their value
- a top bar for show/hide the forms of a document
- the implementation of the forms for the PDF backend
still nothing that can be done with them, nor the value of the forms can be saved...
... but it's a start! :-)

svn path=/trunk/playground/graphics/okular/; revision=637001
2007-02-25 00:07:59 +00:00
Pino Toscano 252de94b21 improve a bit the PageViewTopMessage api, in preparation of new future usage
svn path=/trunk/playground/graphics/okular/; revision=636493
2007-02-23 10:54:30 +00:00
Pino Toscano 290ae2a264 really new KMainWindow API
svn path=/trunk/playground/graphics/okular/; revision=635975
2007-02-21 15:12:57 +00:00
Tobias Koenig fd73c59b97 Adapt to new KMainWindow API
svn path=/trunk/playground/graphics/okular/; revision=635671
2007-02-20 15:48:18 +00:00
Albert Astals Cid d16343f677 Fordwardport r628869
Fix Keyboard navigation in kpdf in konq only possible after focusing it with the mouse after changing tab
BUGS: 136702

svn path=/trunk/playground/graphics/okular/; revision=628870
2007-01-31 19:23:12 +00:00
Albert Astals Cid 4586139282 Adapt to kdelibs changes
svn path=/trunk/playground/graphics/okular/; revision=628342
2007-01-29 20:18:39 +00:00
Pino Toscano 12a6d7b695 Enable the Previous/Next Bookmark actions only if we have bookmarks.
svn path=/trunk/playground/graphics/okular/; revision=627929
2007-01-28 16:37:13 +00:00
Pino Toscano d6e7010942 Refactor a bit the way we load the generator libraries: hide the hash with the Generator completely into the Document, so the Document have the complete control over them.
Add fillConfigDialog() and supportedMimeTypes() to the Document, so the Part can get all the info it needs with no need to own the generator structure.
This also loads all the generators when asking for their config widget, but that can be improved easily now; furthermore, all the generators used to load documents are kept.

svn path=/trunk/playground/graphics/okular/; revision=627909
2007-01-28 15:46:10 +00:00
Albert Astals Cid 1963e95fe6 Fix 140482 for okular too
svn path=/trunk/playground/graphics/okular/; revision=627479
2007-01-26 18:54:41 +00:00
Tobias Koenig 6541b015e4 Make failing to open a document a bit nicer ;)
svn path=/trunk/playground/graphics/okular/; revision=627477
2007-01-26 18:35:28 +00:00
Leandro Emanuel López 2fe0e8e958 The if is not needed.
svn path=/trunk/playground/graphics/okular/; revision=623040
2007-01-13 21:42:39 +00:00
Pino Toscano 8a7c2ad654 As requested by our usability expert Florian, add a Bookmarks menu with the bookmarks in the current document, if any.
svn path=/trunk/playground/graphics/okular/; revision=622995
2007-01-13 17:28:54 +00:00
Pino Toscano afc18f9d97 Re-add the possibility to toggle a page bookmark quickly (ie with the popup menu).
svn path=/trunk/playground/graphics/okular/; revision=622945
2007-01-13 14:45:51 +00:00
Leandro Emanuel López 12862b7f46 Applied indentation. Four spaces, no tabs
svn path=/trunk/playground/graphics/okular/; revision=622791
2007-01-13 00:33:50 +00:00
Leandro Emanuel López 21c42d89c7 Don't leak memory
svn path=/trunk/playground/graphics/okular/; revision=622789
2007-01-13 00:18:44 +00:00
Leandro Emanuel López 26f4618ae3 Moved the handleCompressed method to part
svn path=/trunk/playground/graphics/okular/; revision=622784
2007-01-12 23:54:26 +00:00
Pino Toscano 91b7675c14 configurationWidget() is too generic -> rename to printConfigurationWidget()
svn path=/trunk/playground/graphics/okular/; revision=622782
2007-01-12 23:48:29 +00:00
Laurent Montel 34edbef72d Port to new api
svn path=/trunk/playground/graphics/okular/; revision=621624
2007-01-09 11:02:04 +00:00
Pino Toscano d156bdf36c give it a parent so it's automatically deleted and not leaked
svn path=/trunk/playground/graphics/okular/; revision=620773
2007-01-07 09:43:58 +00:00
Pino Toscano 439d76c8f8 better icon (and with the RtL version)
svn path=/trunk/playground/graphics/okular/; revision=620355
2007-01-05 19:02:39 +00:00
Pino Toscano 91296b627a SVN_SILENT no more needed
svn path=/trunk/playground/graphics/okular/; revision=620159
2007-01-05 12:54:03 +00:00
Pino Toscano 64769a62ce let the Document forward the BookmarkManager signal
svn path=/trunk/playground/graphics/okular/; revision=620158
2007-01-05 12:51:58 +00:00
Pino Toscano 20661ff61e Add an interface (implemented by the Part) for controlling the really basic document viewer functionalities. This (along with a small refactor in the okular shell) gives the user the possibility to start okular with:
-p, --page <page> : to select the startup page
      --presentation : to start directly in presentation mode
implementing also KPDF wishes #134115 and #137905.

svn path=/trunk/playground/graphics/okular/; revision=619681
2007-01-04 00:20:50 +00:00
Pino Toscano bd14706edb leak a bit less memory
svn path=/trunk/playground/graphics/okular/; revision=619558
2007-01-03 17:57:03 +00:00
Tobias Koenig ea51ee18f5 Do a lot of include cleanups... we install all important
header files now

svn path=/trunk/playground/graphics/okular/; revision=619492
2007-01-03 14:30:48 +00:00
Tobias Koenig 86a1fd3b69 Big cleanup of Document API and documentation:
* add full API docs
 * renamed getMetaData -> metaData
 * removed supportsRotation in Document and Generator
 * moved Permission and SearchDirection enums into separated header core/global.h

svn path=/trunk/playground/graphics/okular/; revision=619183
2007-01-02 22:37:55 +00:00
Pino Toscano 915a48eb4d move the Generator configuration stuff into a new ConfigInterface
svn path=/trunk/playground/graphics/okular/; revision=619061
2007-01-02 17:14:37 +00:00
Pino Toscano d9a844d67c move the GUI stuff out of Generator in an own GuiInterface, and adapt the ghostscript generator to its usage; renamed also some methods to more Qt4-ish names.
svn path=/trunk/playground/graphics/okular/; revision=619044
2007-01-02 16:40:22 +00:00
Pino Toscano 475d000763 Improve the way a Generator can configure a printer: add an interface with the advanced printing stuff.
The print() method remains in Generator, as it's too basic to be moved in an interface.

svn path=/trunk/playground/graphics/okular/; revision=619033
2007-01-02 16:11:40 +00:00
Tobias Koenig 777877f2d2 Refactor the RMB menu for annotations, so we can use the menu for
the PageView and the SideReview.

BUGS: 137722

svn path=/trunk/playground/graphics/okular/; revision=617807
2006-12-30 12:40:54 +00:00
Pino Toscano b6fdedc810 spell checking
svn path=/trunk/playground/graphics/okular/; revision=617287
2006-12-28 16:58:56 +00:00
Pino Toscano 539921bdf6 Improving the bookmark capabilities of okular.
Adding a BookmarkManager class that takes care of handling them in a proper way.
Adding a new tab in the sidebar to manage them:
- shows all the bookmarks in all the documents, or just in the current document
- cliking on a bookmark will bring to that bookmark, loading the document if necessary
- editing a bookmark title is possible either using F2 or right click -> Rename
- right click -> Remove to remove a bookmark
The only way to add new bookmark for the moment is the "old" way, ie right click -> Add bookmark, and it's not possible add more than one bookmark per page (but the system does not limit that).
The whole system should not be too difficult to understand, I will check with our usability master Florian next days.

svn path=/trunk/playground/graphics/okular/; revision=616979
2006-12-27 16:04:49 +00:00
Pino Toscano 112e1237b7 Add support for showing icons in the page view top message.
With simplier words: add an 'attach' icon in the message pane that informs about attachments in the current document.

svn path=/trunk/playground/graphics/okular/; revision=616780
2006-12-26 19:25:11 +00:00
Pino Toscano fd6166e74c update correctly when the option for toggling the page numbers in the toc is changed
svn path=/trunk/playground/graphics/okular/; revision=615815
2006-12-22 20:42:36 +00:00
Pino Toscano 536ebab639 SmallIconSet -> KIcon
DesktopIconSet -> KIcon
fix the #include's accordingly, where possible

svn path=/trunk/playground/graphics/okular/; revision=615251
2006-12-20 20:37:50 +00:00
Laurent Montel 06b79cdf27 Compile++
svn path=/trunk/playground/graphics/okular/; revision=614897
2006-12-19 12:23:43 +00:00
Laurent Montel 5cc19d3fdc Compile++
svn path=/trunk/playground/graphics/okular/; revision=610745
2006-12-05 10:48:27 +00:00
Pino Toscano afa2e5a999 iterator -> const_iterator
svn path=/trunk/playground/graphics/okular/; revision=607842
2006-11-25 22:32:13 +00:00
Pino Toscano 5ce4b0674e Make okular able to copy the text selection to the clipboard (finally!).
svn path=/trunk/playground/graphics/okular/; revision=607496
2006-11-24 21:02:38 +00:00
Tobias Koenig 81fb3a383b Further cleanup of Page API:
* getAnnotations() -> annotations()
  * setBookmark()/hasBookmark() -> setBookmarked()/isBookmarked()
  * moved as much private API of Page as possible to private class

svn path=/trunk/playground/graphics/okular/; revision=607233
2006-11-23 19:25:52 +00:00
Tobias Koenig 14d6515b16 Changed the enum SearchDir to SearchDirection and use less strange
abbreviations for its items.

Replaced the 'bool strictCase' parameter of Page::findText
with 'Qt::CaseSensitivity caseSensitivity' for better readable code.


svn path=/trunk/playground/graphics/okular/; revision=607203
2006-11-23 16:54:28 +00:00
Albert Astals Cid 9099fbecf7 Some krazy fixes
svn path=/trunk/playground/graphics/okular/; revision=605992
2006-11-18 21:36:56 +00:00
Albert Astals Cid a0a387b121 Fordward port kpdf changes about printing margins, a poppler from 1 minute ago is needed
svn path=/trunk/playground/graphics/okular/; revision=605937
2006-11-18 17:09:24 +00:00
Leandro Emanuel López c8db3ae9c4 Set the NewStuffDialog window title and when a item is installed one click open the PDF.
svn path=/trunk/playground/graphics/okular/; revision=604730
2006-11-14 00:22:23 +00:00
Pino Toscano e073834781 change the service type of the text-to-speech service, as per recent changes
svn path=/trunk/playground/graphics/okular/; revision=604486
2006-11-12 23:26:18 +00:00
Pino Toscano 26ea104ae6 Automatically put the bookmarked pages as page pelection in the print dialog.
Implements KPDF wish #117805.

svn path=/trunk/playground/graphics/okular/; revision=603723
2006-11-09 21:39:17 +00:00
Pino Toscano 6cfdf6bed4 regression: show the popup menu also with no active page, as some actions don't need one
svn path=/trunk/playground/graphics/okular/; revision=601520
2006-11-03 14:26:17 +00:00
Albert Astals Cid e113d48bf3 I need this so that print and print preview of a landscape pdf work
wonder why the orientation-request thing does not work anymore

svn path=/trunk/playground/graphics/okular/; revision=601061
2006-11-01 22:24:57 +00:00
Pino Toscano 6ac2174811 move the configuration update procedures of the page view into the page view itself
make the pageview update when changing the number of columns in overview mode

svn path=/trunk/playground/graphics/okular/; revision=599878
2006-10-28 22:58:05 +00:00
Pino Toscano 2fdf837546 fix small errors in the kpdf->okular conversion
svn path=/trunk/playground/graphics/okular/; revision=599848
2006-10-28 19:30:00 +00:00
Pino Toscano 8def2109ec change the metaData() function of the Generator to use QVariant as type for the returned value and for the 'option' parameter, this gives more flexibility
svn path=/trunk/playground/graphics/okular/; revision=599847
2006-10-28 19:18:36 +00:00
Pino Toscano 9a2b938431 Add support for the directive to open the table of contents when opening a document, used in PDFs.
svn path=/trunk/playground/graphics/okular/; revision=599835
2006-10-28 18:21:55 +00:00
Pino Toscano 8f633c7c8e fix library loading
svn path=/trunk/playground/graphics/okular/; revision=599132
2006-10-25 22:17:04 +00:00
Tobias Koenig d22b2f1892 A rather big change:
* Hide as much private API as possible in Generator, PixmapRequest and ExportEntry/Format
 * Renamed ExportEntry to ExportFormat and made it value based
 * Removed canExportToText() and exportToText() from Generator API and implemented this
   functionality in exportFormats()/exportTo() in the generators
 * Removed the orientation parameter from PixmapRequest and let the Document handle the rotation
   of the page (pixmap) instead

CCMAIL:okular-devel@kde.org

svn path=/trunk/playground/graphics/okular/; revision=599058
2006-10-25 15:35:53 +00:00
Pino Toscano 4c0808fabf a bit less of #include's
svn path=/trunk/playground/graphics/okular/; revision=598229
2006-10-22 23:00:39 +00:00
Pino Toscano 5f28d1163f make a pair of actions name and label more close to the others
remove unused (duplicated) action

svn path=/trunk/playground/graphics/okular/; revision=598165
2006-10-22 18:19:17 +00:00
Pino Toscano d37a58ec71 show something as caption for the presentation mode; show always the file name instead of the full url when in both the part and presentation mode there is no document title available
svn path=/trunk/playground/graphics/okular/; revision=597895
2006-10-21 23:21:11 +00:00
Pino Toscano ed84916c0d spell checking
svn path=/trunk/playground/graphics/okular/; revision=597875
2006-10-21 22:07:05 +00:00
Pino Toscano e7bbe08957 trying to port to KTemporaryFile where possible, and still rely on K3TempFile where it needs more work
svn path=/trunk/playground/graphics/okular/; revision=596083
2006-10-16 17:57:44 +00:00
Albert Astals Cid 5143cd2512 Report page size
It's only reported in case it makes sense for the format
Only implemented for pdf atm
If all pages have the same size it's reported on document properties
else there's a label shown in the new bottom bar with the size of the current page

svn path=/trunk/playground/graphics/okular/; revision=595822
2006-10-15 19:37:14 +00:00
Pino Toscano f27f44fd79 Detach the progress widget from the minibar, and move the minibar as a small toolbar on the bottom of the page view.
Implements KPDF wish #102788.

svn path=/trunk/playground/graphics/okular/; revision=595764
2006-10-15 15:59:22 +00:00
Albert Astals Cid 0635edb9e4 debug--
svn path=/trunk/playground/graphics/okular/; revision=595691
2006-10-15 12:27:46 +00:00
Albert Astals Cid 0d942a0cce fordward port r595680
*******
When reloading a document because it changed still be in presentation mode after the reload
*******
and while at it make the document reloading work again

svn path=/trunk/playground/graphics/okular/; revision=595690
2006-10-15 12:26:16 +00:00
Pino Toscano 3f06c92940 remove qt3 hack and make the left toolbox collapsible again
svn path=/trunk/playground/graphics/okular/; revision=595267
2006-10-13 19:30:39 +00:00
Albert Astals Cid 934a3562d6 - Qt::ScrollBarAlwaysOn
+        Qt::ScrollBarAsNeeded
Seems to work well and Florian will be happier

svn path=/trunk/playground/graphics/okular/; revision=593727
2006-10-08 20:54:56 +00:00
Albert Astals Cid e6dae78ac3 Port Q3ScrollView to QScrollArea, probably still has some small issues but seems to work quite well
svn path=/trunk/playground/graphics/okular/; revision=593332
2006-10-07 14:40:32 +00:00
Pino Toscano ac87494ce0 As suggested by our usability expert Florian, add a bar above the page view showing in case the document has embedded files, that can be clsed with the X button.
svn path=/trunk/playground/graphics/okular/; revision=591837
2006-10-03 10:11:16 +00:00
Tobias Koenig df7d144c10 Moved all classes in core/ into the 'Okular' namespace and removed
nearly all references to kpdf (knewstuff still missing).

svn path=/trunk/playground/graphics/okular/; revision=586993
2006-09-21 08:45:36 +00:00
Albert Astals Cid 4e04b301f1 Almost foget to fordwardport r582561
Fix bug 133507 that prevented the correct restoring of the document viewport on session restore for remote documents

svn path=/trunk/playground/graphics/okular/; revision=584932
2006-09-15 21:08:48 +00:00
Laurent Montel 8ad07fc5da Compile++
svn path=/trunk/playground/graphics/okular/; revision=584683
2006-09-15 11:57:39 +00:00
Pino Toscano 8418a8c238 re-eanble the dbus registration of the okularpart
svn path=/trunk/playground/graphics/okular/; revision=582130
2006-09-08 11:14:29 +00:00
Tobias Koenig 5bfa5435a8 URL -> url renaming to reimplement the correct KPart::openUrl()...
svn path=/trunk/playground/graphics/okular/; revision=578859
2006-08-30 13:02:48 +00:00
Albert Astals Cid 760fdbcadb makeItBuild
svn path=/trunk/playground/graphics/okular/; revision=578661
2006-08-29 21:09:55 +00:00
Laurent Montel fcac6654b8 Adapt to new qtdbus
svn path=/trunk/playground/graphics/okular/; revision=578226
2006-08-28 18:12:22 +00:00
Laurent Montel ead282936e Compile++
svn path=/trunk/playground/graphics/okular/; revision=569954
2006-08-05 10:35:03 +00:00
Pino Toscano 7ba0c4df3a Show the title of the current document - if available - as title of the main window, as requested in comments of KPDF bug #103362.
Adapted the poppler(pdf) and the chm generators to return the title of the current document.

svn path=/trunk/playground/graphics/okular/; revision=568059
2006-07-30 23:37:50 +00:00
Pino Toscano ab0d3dca78 A pair of bugfixes done while working on the other branch, ie:
- really check if the user selected an action from the document popup
- make the HighlightAreaRect constructor an effective copy-ctor

svn path=/trunk/playground/graphics/okular/; revision=567628
2006-07-29 16:12:57 +00:00
Pino Toscano e3825a2870 Forward port SVN commit 561026 by aacid:
finally commit patch by Mary Ellen Foster to implement wish 109078
Incidentally also implements wish 127382
Sorry for having taken so long.

svn path=/trunk/playground/graphics/okular/; revision=561300
2006-07-11 19:57:17 +00:00
Pino Toscano fd03b7e799 the speech of the current selection (via kttsd) is working again
svn path=/trunk/playground/graphics/okular/; revision=560087
2006-07-09 09:00:08 +00:00
Pino Toscano 12edea34f8 adapt to the new snapshot
svn path=/trunk/playground/graphics/okular/; revision=558247
2006-07-04 23:09:39 +00:00
Pino Toscano 87c3e54827 Forwardport of KPDF bug #105211.
svn path=/trunk/playground/graphics/okular/; revision=558208
2006-07-04 21:57:19 +00:00
Pino Toscano 12e7a137d2 Port to the new snapshot.
Quite bad that menus and icons don't work...

svn path=/trunk/playground/graphics/okular/; revision=557452
2006-07-03 10:15:55 +00:00
Pino Toscano b3a4b27956 New skeleton for giving the generators the possibility to export the document they open in some format they support.
The text exporting option is detached from that other options and always visible (disabled if not supported), so it could be easier for the user to find it out.

svn path=/trunk/playground/graphics/okular/; revision=556922
2006-07-01 22:17:53 +00:00
Pino Toscano a9c32d88fc slightly improve
svn path=/trunk/playground/graphics/okular/; revision=555381
2006-06-27 09:15:34 +00:00
Pino Toscano 840a526be7 Use the configured shortcuts for the PrevPage/NextPage/FirstPage/LastPage actions in the presentation mode, and for the FindNext in the find ahead of the main view.
svn path=/trunk/playground/graphics/okular/; revision=554883
2006-06-25 16:34:11 +00:00
Pino Toscano 598280790b New actions Prev/Next Bookmark for navigating back and forth in the bookmarked pages.
svn path=/trunk/playground/graphics/okular/; revision=554556
2006-06-24 10:56:06 +00:00
Pino Toscano 6dd1769fe0 use Configure okular only when using the okular shell, and Configure viewer otherwise
svn path=/trunk/playground/graphics/okular/; revision=553076
2006-06-19 22:10:09 +00:00
Pino Toscano ebe64cc2b7 SVN_SILENT wordings
svn path=/trunk/playground/graphics/okular/; revision=552294
2006-06-17 11:11:48 +00:00
Pino Toscano d2c5882a27 Port to the new KDialog / KPageDialog API
svn path=/branches/work/kde4/playground/graphics/okular/; revision=550944
2006-06-13 08:44:08 +00:00
Albert Astals Cid eabbaeaead oKular is now okular
svn path=/branches/work/kde4/playground/graphics/okular/; revision=550782
2006-06-12 18:25:18 +00:00
Pino Toscano 60eab90248 small API changes to Generator:
- more const'ness in signals
- no need to redeclare the signals in the generators, as they are already in Generator

svn path=/branches/work/kde4/playground/graphics/okular/; revision=549941
2006-06-10 12:59:09 +00:00
Albert Astals Cid 4d41297a82 better, i could call slotNextPage from dbus shell command, the problem that remains is that it
wants to be local.oKular instead of org.kde.oKular

svn path=/branches/work/kde4/playground/graphics/okular/; revision=548445
2006-06-05 15:35:17 +00:00
Albert Astals Cid 703ed15db3 port to dbus, at least compiles, but i'm not sure it'll work
svn path=/branches/work/kde4/playground/graphics/okular/; revision=548432
2006-06-05 14:55:36 +00:00
Pino Toscano 1709204fca SVN_SILENT duplicated stuff
svn path=/branches/work/kde4/playground/graphics/okular/; revision=547812
2006-06-03 13:45:01 +00:00
Albert Astals Cid cb7ca95e94 pages have orientation
document has a rotation to apply over the page's own orientation
text search really works now when rotating (at least all my tests here worked)

svn path=/branches/work/kde4/playground/graphics/okular/; revision=547644
2006-06-02 20:42:57 +00:00
Albert Astals Cid 6f0787a6fd some cleaning
rotation half works on pdf, search is problematic
this makes you need poppler cvs again

svn path=/branches/work/kde4/playground/graphics/okular/; revision=547375
2006-06-01 21:04:04 +00:00
Pino Toscano ed7d1d8abc always create the 'configure backends' menu action and just disable it when there are no backends to configure
svn path=/branches/work/kde4/playground/graphics/okular/; revision=546134
2006-05-29 09:16:00 +00:00
Pino Toscano 639039e791 Now TOC is a simple widget, with the treewiget inside.
Added a search lineedit (and a clear button) to search into the document toc. Implements KPDF's wish #99349.

svn path=/branches/work/kde4/playground/graphics/okular/; revision=545972
2006-05-28 17:27:24 +00:00
Albert Astals Cid 13dde4096f use the nice code brad wrote for poppler that allows you to extract embedded files from a pdf document.
svn path=/branches/work/kde4/playground/graphics/okular/; revision=545966
2006-05-28 16:54:54 +00:00
Pino Toscano 91dc3ef06c move the searchIDs in document.h, like it's done for the observerIDs
svn path=/branches/work/kde4/playground/graphics/okular/; revision=545944
2006-05-28 15:54:48 +00:00
Dirk Mueller 4e825fc8f8 fix crash (CID 2269)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=545363
2006-05-27 11:56:08 +00:00
Dirk Mueller 51e9717dc3 fix possible crash (CID 2213)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=544256
2006-05-24 08:59:43 +00:00
Dirk Mueller 3bdd0c0c6f excellent way to crash (CID 2214)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=544254
2006-05-24 08:58:52 +00:00
Pino Toscano 7049feb8de port to the new kdelibs api; mainly ktrader usage and URL -> Url
svn path=/branches/work/kde4/playground/graphics/okular/; revision=543576
2006-05-22 14:02:24 +00:00
Albert Astals Cid ca1ad7938e port r540804
svn path=/branches/work/kde4/playground/graphics/okular/; revision=540806
2006-05-14 16:28:53 +00:00
Pino Toscano 8de7705b0c port the quest for the show_menubar and fullscreen actions
svn path=/branches/work/kde4/playground/graphics/okular/; revision=540473
2006-05-13 14:59:50 +00:00
Pino Toscano 844bc80c00 plug -> addAction
svn path=/branches/work/kde4/playground/graphics/okular/; revision=540461
2006-05-13 14:18:06 +00:00
Albert Astals Cid 5ce4a40e29 some deprecation--
svn path=/branches/work/kde4/playground/graphics/okular/; revision=540408
2006-05-13 11:33:36 +00:00
Albert Astals Cid 3a9c4de7c8 compile
svn path=/branches/work/kde4/playground/graphics/okular/; revision=538745
2006-05-08 18:57:49 +00:00
Pino Toscano 064ec3b7a8 const++
svn path=/branches/work/kde4/playground/graphics/okular/; revision=538063
2006-05-06 17:11:24 +00:00
Pino Toscano cb56631674 first attempt to convert the thumbnail scrollview to the qscrollarea of qt4
svn path=/branches/work/kde4/playground/graphics/okular/; revision=537803
2006-05-05 21:12:04 +00:00
Albert Astals Cid 4e1c6cfbb8 fordwardport r535156
svn path=/branches/work/kde4/playground/graphics/okular/; revision=535163
2006-04-28 18:08:04 +00:00
Pino Toscano 2911abaa71 fix the popup title and use kicon
svn path=/branches/work/kde4/playground/graphics/okular/; revision=529485
2006-04-13 15:04:26 +00:00
Pino Toscano bd8ddf8536 Instead of showing the convertPS action only in case of ps2pdf found, always create it and give an error message saying that it isn't installed.
TODO: improve the message shown to the user.
Thanks to holean for the hint.

svn path=/branches/work/kde4/playground/graphics/okular/; revision=529424
2006-04-13 11:57:16 +00:00
Pino Toscano d44888e314 less deprecated constructors and fix the shortcuts
svn path=/branches/work/kde4/playground/graphics/okular/; revision=529416
2006-04-13 11:41:36 +00:00
Pino Toscano 8402c3fd13 somw more work on porting the kaction's to the new api and to make them work properly
svn path=/branches/work/kde4/playground/graphics/okular/; revision=529414
2006-04-13 11:24:57 +00:00
Pino Toscano e3994658b6 make it compile with the new snapshot
port to the new i18n api

svn path=/branches/work/kde4/playground/graphics/okular/; revision=528345
2006-04-10 19:50:00 +00:00
Albert Astals Cid e1a52ccdd9 adapt to new snapshot
svn path=/branches/work/kde4/playground/graphics/okular/; revision=528321
2006-04-10 18:50:27 +00:00
Pino Toscano a27212eee9 - less qt3_support
- reactivating the review tab
- use the sizepolicy instead of stretchfactor

svn path=/branches/work/kde4/playground/graphics/okular/; revision=526095
2006-04-03 20:48:26 +00:00
Pino Toscano 383c18eaef Some graphical improvements, most in the sidebar.
Ported the ThumbnailController to QAction.

svn path=/branches/work/kde4/playground/graphics/okular/; revision=525158
2006-04-01 00:01:07 +00:00
Pino Toscano b265f47efb SVN_SILENT some headers less
svn path=/branches/work/kde4/playground/graphics/okular/; revision=525157
2006-03-31 23:29:45 +00:00
Pino Toscano 8e696508ad Reactivate the SearchWidget (still not working yet).
Make use of some new Qt4 functions for QActions.

svn path=/branches/work/kde4/playground/graphics/okular/; revision=525154
2006-03-31 23:08:20 +00:00
Pino Toscano 58a391e7a2 improve a bit
svn path=/branches/work/kde4/playground/graphics/okular/; revision=524837
2006-03-31 11:22:29 +00:00
Pino Toscano 11d5e77ff4 less qt3/kde3 support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=524525
2006-03-30 15:27:27 +00:00
Pino Toscano 8683df0416 Ported the General and Presentation config pages to Qt4.
Small other touches.

svn path=/branches/work/kde4/playground/graphics/okular/; revision=524391
2006-03-30 13:23:38 +00:00
Pino Toscano 22c45feb7e less qt3_support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=524154
2006-03-29 20:43:48 +00:00
Pino Toscano 25e194b435 less qt3_support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=524069
2006-03-29 16:46:09 +00:00
Pino Toscano 80f7e6b596 a bit of qt3/kde3 support less
svn path=/branches/work/kde4/playground/graphics/okular/; revision=523922
2006-03-29 13:52:17 +00:00
Pino Toscano 63c18ab06e Make the oKular part and its shell compile and link.
Created a oKularcore lib, so the generators ca link to it, and made the oKularpart link to it too, of course.
Adapted the sources of the Okularpart to the new location for the generated settings.h.

svn path=/branches/work/kde4/playground/graphics/okular/; revision=523729
2006-03-28 22:22:10 +00:00
Albert Astals Cid b92b394596 commented some code that made it crash on startup
svn path=/branches/work/kde4/playground/graphics/okular/; revision=522362
2006-03-25 10:10:31 +00:00
Albert Astals Cid 7ae1f13b3f when i said all linked i lied because i still had to commit that ;-)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=522271
2006-03-24 22:57:41 +00:00
Pino Toscano 8b41489e2f porting
svn path=/branches/work/kde4/playground/graphics/okular/; revision=522251
2006-03-24 21:31:46 +00:00
Albert Astals Cid 6c6a1ac522 branchport r510876
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=510882
2006-02-18 12:06:52 +00:00
Piotr Szymanski 5e0e973e12 - add supported mimetype caching to the kpdf part properly
- begin work on ghostscript backend port to libqgs
- minor tweak in configure.in.bot 

svn path=/trunk/playground/graphics/oKular/kpdf/; revision=486447
2005-12-07 21:25:25 +00:00
Stephan Binner dd43125621 i18n style guide fixes
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=481809
2005-11-20 17:32:53 +00:00
Piotr Szymanski d09fd28b89 - MERGE KPDF 3.5 CHANGES
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=477586
2005-11-04 11:59:51 +00:00
Albert Astals Cid 3a09624824 some more kpdf -> oKular
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=471466
2005-10-17 19:16:31 +00:00
Piotr Szymanski 34b8e28322 - Page/Link: tooltips for links backported
- Page: rotation does not switch height and width
- Document/Part/Generator:
  1. Add API for attaching stuff to the interface: ActionCollection and the Navigation Panel
     also add possibility to merge an XML .rc file with menu layout. Relevant functions are:

     QString Generator::getXMLFile(), returns a QString with your .rc file name.
     void  Generator::setupGUI (KActionCollection* , QToolbox* ), add your components to the user interface

  2. Supporting backend settings:
     If during startup, backends which provide a configuration ([X-KDE-oKularHasInternalSettings]
     set to true) are found, a menu item: configure backends is created, clicking on it results in
     loading all the generators that have settings, but not those that dont. the Generator::addPages(KConfigDialog *dlg)
     function should be overloaded by a generator and dlg->addPage should be used to add pages.

     If a user opens a file that needs an already loaded generator, the already loaded one is used instead of loading another.

  3. Error/Warning/Notice sending support, to send a notice/error/warning, add a relevant notice/error/warning(QString& txt ,int duration)
     to the generator class, and sending a message to the user is as simple as emitting a signal!

  4. Intercepting of events generated by the PageView is done by Generator::handleEvent(QEvent*), subclass it, do a switch on QEvent::type(), handle your
     event and return true if pageview is to proceed with its handling or false if not.

  5. Support configuring the KPrinter on the generator side, use Generator::canConfigurePrinter(), return true there, and you get a nonconfigured KPrinter in your
     Generator::print()

  6. PixmapRequest handling update:
     a.) Generator::canGeneratePixmap is now Generator::canGeneratePixmap(bool async)
     b.) Document::sendGeneratorRequests is a slot now
     c.) Old way of sending pixmaps (Document::requestPixmaps(QValueList<PixmapRequest*> checking if we can generate pixmap if not, waiting for receiving)
         is replaced with: requestPixmaps only queues the pixmap all checking if w can generate is done in sendGeneratorReqest, the sendGeneratorRequest is
         run in three places:
         1.  in requestPixmaps when we receive a request
         2.  in requestDone if pixmapStack is not empty
         3.  sendGeneratorRequest, apart from removing invalid requests, takes the current request and if generator canGeratePixmap(request->async)
        it removes the pixmap from stack and sends to generator if not, QTimer::singleshots to itself after 20ms, it ends when stack has no valid pixmap request

  7. Added a commented out zoom field to PixmapGenerator, mightcome in handy sometime

- TextPage: add instructions that handle simplyfing the RegularAreaRect, no more double painted borders in selection rectangles, this rocks.


svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445196
2005-08-10 16:14:39 +00:00
Piotr Szymanski 81bb03b454 - added suport for changing rotation of the current document, looked at ghostview code, on how to do it
still i implemented all of this myself, damn ghostview is making me lose all the joy i had in working
  on okular, working with such a badlyu document API like libgs has i just killing me...

svn path=/trunk/playground/graphics/oKular/kpdf/; revision=437094
2005-07-20 22:28:23 +00:00
Piotr Szymanski 36ab5c8965 - make generators plugins by:
* moving all xpdf stuff from core and part to inside generator_pdf
   * adding abstract KPDFText class and KPDFTextEntity to hold either
     glyph, or word or textline
- support for importing PS files as pdf like on annots branch
- synced with annots branch
- abstract text layer with search for words in different lines
- added RegularArea<NormalizedShape,Shape> template class
  which inherits QValueList<NormalizedShape*> and is used
  to hold regular areas of given shape (finite collections of the shape)
- loading of relevant generators via ktrader for given mimetype
- the deliverables 1 and 2 of my SoC proposition are delivered
  next: 1. fix one spotted regression and 2. code ghostview backend


svn path=/trunk/playground/graphics/oKular/kpdf/; revision=434883
2005-07-15 18:20:57 +00:00
Piotr Szymanski 6e8a08f692 - make the Page column in TOC configurable with secret config option instead of compile time switch
- mark one function to remove later
- add one more category to desktop file to be more vfolders compliant

svn path=/trunk/playground/graphics/oKular/kpdf/; revision=431970
2005-07-05 19:10:48 +00:00
Enrico Ros bd81ccaed7 merged patch_064,065,066,068,075,091,092 (tinyurl.com/8t5ec)
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=428594
2005-06-24 16:45:25 +00:00
Enrico Ros 60463481c5 applying patch_113 (tinyurl.com/8t5ec)
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=428591
2005-06-24 16:42:44 +00:00
Enrico Ros 027d040c6c applying patch_040,041 (of: tinyurl.com/8t5ec)
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=428587
2005-06-24 16:39:57 +00:00
Albert Astals Cid f8f17e75f9 Even more Style Guide fixes on the same sentence, do you know how much i suck?
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=427194
2005-06-19 22:18:41 +00:00
Albert Astals Cid 1aedb3855d Style guide fixes
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=427186
2005-06-19 22:01:32 +00:00
Albert Astals Cid daf99824ee Change "Get new stuff" to something more meaningfull
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=427164
2005-06-19 21:01:28 +00:00
Enrico Ros 1bf56ad49a merged patch_090
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=425043
2005-06-13 17:54:20 +00:00
Enrico Ros 5fa94e1643 merging patch_080,085
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=425031
2005-06-13 17:39:58 +00:00
Enrico Ros d65e147ffb applying patch_078
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=425029
2005-06-13 17:30:58 +00:00
Enrico Ros 9c207ace30 applying patch_070,071
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=425017
2005-06-13 16:55:57 +00:00
Enrico Ros ff85858c98 applied patch_059
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=425000
2005-06-13 16:08:31 +00:00
Enrico Ros 86bf1b3d96 applying patch_045,046
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=424907
2005-06-13 12:06:45 +00:00
Enrico Ros 560934974a merged patch_007
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=424840
2005-06-13 10:22:37 +00:00
Enrico Ros 7b6b7a359d KPDF HotNewStuff Browser!
It's not yet complete (file dowload and internal notifies are missing) but
the new stuff browser is running. The ui is modeled on an Aaron's mockup.

NewStuff:
  Fetches the providers list (kpdf.kde.org/newstuff/providers.xml), lets
  the user select a provider and displays provider's contents in a KHMTL
  part (for flexibility and eye candy).
  Internally we use KNS' Entry and Provider structures only, doing all the
  transfer operations by hand via KIO::get jobs. Download will be done
  internally too (to give better consistancy in the interface).
  Network timeouts, problems or info messages are notified in a statusbar-
  like widget and we try to keep all information in the dialog, without
  using messageBoxes

Part:
  Added the action and the dialog invocation

Makefiles:
  Link the KNEWSTUFF and KHTML libraries.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=405828
2005-04-16 00:25:26 +00:00
Enrico Ros 659ae73bc8 Fixed crash when exiting with kapp->quit(). Usually the Settings singleton
is deleted after all classes, but when kpdf is run stand-alone and quit()
is used (currently only by clicking on Quit links) the app could crash.
-> Best practice: don't use KConfigXT settings classes for storing values
on destructors (do it when a parameter is updated).
CCMAIL: Mikolaj Machowski <mikmach@wp.pl>

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403765
2005-04-07 12:47:24 +00:00
Enrico Ros e5ed6251a6 Implemented PDF:FullScreen and Close action to KPDF 'Presentation' and
'EndPresentation' actions. Based on testcase by Mikolaj.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=403726
2005-04-07 09:53:15 +00:00
Enrico Ros 4d0a1ed6e1 Added a new experimental 'Reviews' widget to the toolbox. This shows
all the reviews on the document (pretty unuseful now, but that will
change ;-). Another step to good kpdf annotations.

Part:
  Added Reviews toolbox pane. Added (commented out while doing it right)
  searchline for toc; just works.
Misc:
  Observer: added id for Reviews pane (as document observer it monitors
  document/annotations changes). Page: added 2 temporary accessors for
  annotations (will change soon). Makefile: added side_reviews.cpp to
  compilation. Searchwidget: slight better spacing to look consistant with
  the review panel.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=400307
2005-03-24 19:50:28 +00:00
Enrico Ros 9023b05e16 Document, Page:
Changed loadDocumentInfo/saveDocumentInfo semantics. Document settings
  are saved by Document, but page related stuff (bookmark state,
  annotations, ...) are loaded/saved by the KPDFPage itself.
Annotation:
  Better usage of dom entities (QDomElement(s) -> QDomNode(s)). Added const
  modifier to 'saveSettings' methods.
Part:
  Use setCheckedState for the show/hide left panel menu entry. Use icon
  too. Bumped .rc revision.

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=397236
2005-03-13 13:14:44 +00:00
Jakub Stachowski 664d441534 Added action for showing/hiding left panel and removed it from settings.
"Watch file" moved to settings dialog.
BUG: 99316

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=396976
2005-03-12 15:39:04 +00:00
Albert Astals Cid 99a10e1841 All fixes done in HEAD come to annotations branch
svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=395067
2005-03-05 15:59:15 +00:00
Enrico Ros c4ecddd149 Fixing the "can't hide left panel" bug.
svn path=/trunk/kdegraphics/kpdf/; revision=388679
2005-02-12 14:34:12 +00:00
Enrico Ros 5b0c32e43f Misc fixes and cleanups and tidy up the code (KPDFPageRect -> ObjectRect).
svn path=/trunk/kdegraphics/kpdf/; revision=387779
2005-02-09 17:45:16 +00:00
Albert Astals Cid bc1806e218 - Do not reattach the dcop client
- Keep the original url on the document so we can open relative file names
 - Add Enrico and my copyright

svn path=/trunk/kdegraphics/kpdf/; revision=386244
2005-02-04 22:35:44 +00:00
Enrico Ros 519892521f Fix the last CRASH (on search) and fix a memleak before BETA2 tagging.
Removed old code, reworked bad code.
I have no more reported crashes now.
No plans for additions or code changes till 3.4 release.
Thank you all kpdf users, Have Fun!

svn path=/trunk/kdegraphics/kpdf/; revision=385897
2005-02-03 17:09:33 +00:00
Enrico Ros 9e73b4235e Fixed type-ahead searches. Reworked search code. Found alternative way to
setRasterOp. Cleaned up RenningSearch class. Performance fix on actions.

svn path=/trunk/kdegraphics/kpdf/; revision=385447
2005-02-02 18:18:26 +00:00
Enrico Ros f4b94c016d SEARCH CHANGES: absolutely want to get in those fixes before freeze.
fixed multiple selections on page bugs.
next commits will come tomorrow.

svn path=/trunk/kdegraphics/kpdf/; revision=385045
2005-02-01 18:26:56 +00:00
Enrico Ros 3e1834c261 smoothscroll
svn path=/trunk/kdegraphics/kpdf/; revision=385041
2005-02-01 18:24:16 +00:00
Enrico Ros d1e074058b cleanups and scroll api
svn path=/trunk/kdegraphics/kpdf/; revision=385040
2005-02-01 18:23:55 +00:00
Enrico Ros c4c09c7c04 Added KTTSD support (only for selections). This is done via pure dcop and
without including any 3.4 header (like kspeech.h) to keep compatibility
 with 3.3 and older releases (reported to work on these).
Cleanups in PageView's mouse handling. Supports selections of different
 colors now.

svn path=/trunk/kdegraphics/kpdf/; revision=383651
2005-01-29 12:32:59 +00:00
Tobias Koenig 0cc0b192cd Don't open multiple presentation widgets when slotShowPresentation() is called
multiple times (e.g. when the watched PDF has changed)

svn path=/trunk/kdegraphics/kpdf/; revision=383178
2005-01-28 11:04:03 +00:00
Enrico Ros 93c1d3845d Implemented history (implementation is inside Document. actions (2) are in
Part). Implemented 'history (xpdf's LinkAction) links'. History depth is
 100 steps by default (this is enough for sure, clicking 100 times on a
 button is not an easy task :-).

Minor issues (removed half TODOs in code, all FIXMEs are already removed):
Invoke mailer on 'mailto:' links inst instead of konqueror.
Actions cleanup: disable actions like 'print', 'preview', 'save to..', etc
 when there isn't an active document. Added history actions to the toolbar
 in place of the 'prev_page' and 'next_page' ones. Fixed open+open_recent
 action tooltip and behavior.
Move definition and implementation of PagePainter class to ui/pagepainter
 from core/page.
Valgrinded and leakchecked (2 memory leaks spotted and fixed (missing
 contents deletion in KPDFGeneratorThread and missing deletion of
 PixmapRequests on cancel in Document::requestPixmaps())).

svn path=/trunk/kdegraphics/kpdf/; revision=382960
2005-01-27 17:31:07 +00:00
Enrico Ros e65c7058c3 Added the MiniBar class, a layouted widget that displays current page
number, the total number of pages and a little grahical 'progress'
 indicator. Moved 'next page' and 'prev page' buttons from the main toolbar
 to the MiniBar. Minibar lets you edit the page number, click or wheel on
 progress, go to next/prev page, show the gotoPage dialog.
Added rmb popup when clicking on thumbnails. When clicking, the
 ThumbnailList only emits the same signal emitted by PageView so the same
 context menu is displayed.
Misc fixes: [MEM] enabled allocated pages raising in queue when displayed
 again, [ThumbnailList] enabled PageUp/PageDown.

svn path=/trunk/kdegraphics/kpdf/; revision=382597
2005-01-26 10:42:07 +00:00
Albert Astals Cid b579d04532 Show translations when embedded in Konq
svn path=/trunk/kdegraphics/kpdf/; revision=381500
2005-01-23 12:00:16 +00:00
Albert Astals Cid 5a41fd805e Presentation mode is now Ctrl+Shift+p instead of F9 because it was colliding with Konqueror's toggle sidebar
svn path=/trunk/kdegraphics/kpdf/; revision=380993
2005-01-21 23:09:00 +00:00
Stephan Binner 73bdb5751d CVS_SILENT i18n style guide fixes
svn path=/trunk/kdegraphics/kpdf/; revision=379147
2005-01-16 17:04:31 +00:00
Albert Astals Cid 0ff32c4da9 Add a slotRequestVisiblePixmaps() that fixes the problem of pixmap not updating when going/returning from full screen mode with fit to page and non continuos mode. Enrico please check is not a VERY BAD THING to do it there
Add some accelerators
Plug the actions that change the mouse behaviour into a menu as everything should be menu accesible
Put the F9 in the KACtion creator

svn path=/trunk/kdegraphics/kpdf/; revision=377533
2005-01-11 17:35:07 +00:00
André Wöbbeking 198fb52ff7 shortcut F9 for "Presentation".
BTW, do you mix indention (2 spaces, 4 spaces and tabs) intentionally ;-)

svn path=/trunk/kdegraphics/kpdf/; revision=377498
2005-01-11 15:15:37 +00:00
Enrico Ros 3bf154b57d Viewport: fixes, setViewport( vp, id ) excludes id from the notified
bodies. Optimized fit width and a saved a couple of pixmap requests. Busy
cursor on load and searches.

svn path=/trunk/kdegraphics/kpdf/; revision=377152
2005-01-10 13:43:44 +00:00
Enrico Ros 6dd95c9e06 Viewport MOD 1. Implemented the DocumentViewport class, owned by Document.
A const reference may be asked. When set all DocumentObservers will be
notified so they can update their gfx if needed. Converted TOC, Links
to the new usage. DocumentViewport can be saved/restored to/from QString
so it can be asked as metadata and saved on document's XML. When loading
a document the viewport is restored exactly where it was when the document
was closed. More fixes with Viewport class. Swapped groupboxes in Perform
dialog. Changed members naming in DocumentObservers and inherited classes.
PageView and ThumbnailsList now linked.

Still regressions / TODOs about the Viewport thing.

svn path=/trunk/kdegraphics/kpdf/; revision=377066
2005-01-09 23:37:07 +00:00
Enrico Ros 208b6a5cf3 Added a bottom toolbar to the thumbnailsList to enable/disable thumbnails
filtering and similar options (toolbar is not created now). Changed
Document::openDocument(..) functions order. Restore last active page when
opening an already viewed pdf. Fix margins around pages in all modes.
Presentation: page change by clicking on the round 'wheel' indicator too.
Updated TODO.

svn path=/trunk/kdegraphics/kpdf/; revision=375229
2005-01-03 15:51:05 +00:00
Tobias Koenig b10d10a2bd Convert 'struct DocumentInfo' into a QDomDocument for more flexible information
passing.

svn path=/trunk/kdegraphics/kpdf/; revision=375065
2005-01-02 22:37:52 +00:00
Albert Astals Cid 256dade018 Annotatuions won't make it for 3.4
svn path=/trunk/kdegraphics/kpdf/; revision=374965
2005-01-02 16:23:49 +00:00
Enrico Ros d983cfdd76 Copying kpdf_experiments into branch and reordering directories. Look there
for the file naming map and file  versioning. Please wait until the commit
storm ends to report any bug. Albert and Enrico
Moved KPDFDocumentObserver in its own include file. Updated dependancies.

svn path=/trunk/kdegraphics/kpdf/; revision=374928
2005-01-02 14:55:14 +00:00
Enrico Ros c25efeb7c4 Copying kpdf_experiments into branch and reordering directories. Look there
for the file naming map and file  versioning. Please wait until the commit
storm ends to report any bug. Albert and Enrico
Includes change.

svn path=/trunk/kdegraphics/kpdf/; revision=374922
2005-01-02 14:29:37 +00:00
Enrico Ros ffe8ddaf9d Copying kpdf_experiments into branch and reordering directories. Look there
for the file naming map and file  versioning. Please wait until the commit
storm ends to report any bug. Albert and Enrico

svn path=/trunk/kdegraphics/kpdf/; revision=374920
2005-01-02 14:19:33 +00:00