Commit graph

3574 commits

Author SHA1 Message Date
Laurent Montel d7193013e2 Adapt to new KWarning/kFatal/kDebug api
svn path=/trunk/KDE/kdegraphics/okular/; revision=695802
2007-08-02 23:54:14 +00:00
Pino Toscano dea213be87 use the proper zero-method with DDJVUAPI_VERSION >= 18
svn path=/trunk/KDE/kdegraphics/okular/; revision=695779
2007-08-02 23:05:45 +00:00
Pino Toscano a9f0d2eb46 Try to extract the text entities (thus the text) from a DjVu document.
At the moment the granularuty of the extracted text is "word", as "char" is quite difficult to find in documents.
Kind of works, let's hope it will like all the documents around.

svn path=/trunk/KDE/kdegraphics/okular/; revision=695740
2007-08-02 20:40:02 +00:00
Script Kiddy b998bc9491 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=695423
2007-08-02 04:55:35 +00:00
Pino Toscano 5150419e81 adapt the debug stuff to the new kdebug way:
- make the output looking more or less like before (using nospace() or removing the spaces)
- remove endl and '\n' at the end of debug outputs
- fixing the QDebug operator<<'s around
- isolate the debug area number of the core into a separate header, and apply it instead of the numbers found in textpage.cpp

svn path=/trunk/KDE/kdegraphics/okular/; revision=694667
2007-07-31 10:19:48 +00:00
Pino Toscano 9b92fa1d41 no need to set the complete viewport of new page bookmarks, the page number is enough
svn path=/trunk/KDE/kdegraphics/okular/; revision=694538
2007-07-31 00:05:44 +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
Thiago Macieira 000dc825e3 Use QDebug instead of kdbgstream
svn path=/trunk/KDE/kdegraphics/okular/; revision=694533
2007-07-30 23:58:04 +00:00
Pino Toscano 6254f609d8 really return an int where we are going to return an int, not a bool
svn path=/trunk/KDE/kdegraphics/okular/; revision=694515
2007-07-30 22:29:41 +00:00
Pino Toscano b59bca3b1b Small reordering into the General preferences tab:
- move the Center first page in row from the Features to the View options group, and state that it works not only in facing mode
- remove the Overview rows, never working

svn path=/trunk/KDE/kdegraphics/okular/; revision=694382
2007-07-30 15:16:44 +00:00
Pino Toscano e862d6beb6 use 3 as default value of the overview columns, so it does not look like single mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=694373
2007-07-30 15:05:42 +00:00
Pino Toscano 9bbcbace43 in the remote case the shell cannot determine the mimetypes the okularpart can read, just filter any file instead of exiting with an error
svn path=/trunk/KDE/kdegraphics/okular/; revision=694038
2007-07-29 21:36:02 +00:00
Pino Toscano 1c9b4bae68 SVN_SILENT fixing the include guard, the revenge
svn path=/trunk/KDE/kdegraphics/okular/; revision=693932
2007-07-29 14:53:31 +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
Laurent Montel fb4fe2c52d Not necessary
svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=693895
2007-07-29 12:35:19 +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 1be1b40dd0 the compressed documents support should be done, more or less
svn path=/trunk/KDE/kdegraphics/okular/; revision=693784
2007-07-29 00:58:43 +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 459192d34f temporarly disable the attachment size detection, as it breaks with poppler 0.6rc1
will be reactivated after the release of poppler 0.6

svn path=/trunk/KDE/kdegraphics/okular/; revision=693750
2007-07-28 22:05:16 +00:00
Pino Toscano e3e439e69c Revert to check the Poppler::Sound, otherwise the most of the Poppler API won't match.
I'll temporary patch okular until Poppler 0.6 final.

CCMAIL: bradh@frogmouth.net

svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=693749
2007-07-28 22:01:54 +00:00
Pino Toscano f96287978b also add the "compressed" versions of the mmetypes for the Application and the KParts services
svn path=/trunk/KDE/kdegraphics/okular/; revision=693741
2007-07-28 21:30:57 +00:00
Brad Hards 8c96f3c05e It looks like Mandriva is shipping 0.5.9 (a 0.6 release candidate) for
Poppler.

So we need to be more selective in what version of Poppler we choose.

CCMAIL: aacid@kde.org

svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=693143
2007-07-27 08:24:26 +00:00
Pino Toscano d92fa39e65 simplier copy
svn path=/trunk/KDE/kdegraphics/okular/; revision=692434
2007-07-25 14:54:12 +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 ec4827fc16 bump version to 0.5.90 for kde 4.0 beta1
svn path=/trunk/KDE/kdegraphics/okular/; revision=692060
2007-07-24 23:31:49 +00:00
Pino Toscano 4611b6ffad svnrevertlast
svn path=/trunk/KDE/kdegraphics/okular/; revision=691707
2007-07-24 08:29:22 +00:00
Aaron J. Seigo a8e576712e kiconloader fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=691642
2007-07-24 05:42:32 +00:00
Aaron J. Seigo a58e671331 build
svn path=/trunk/KDE/kdegraphics/okular/; revision=691639
2007-07-24 05:39:19 +00:00
Thiago Macieira 55f327e0cc Adapt to the new UDSEntry
svn path=/trunk/KDE/kdegraphics/okular/; revision=691624
2007-07-24 04:19:14 +00:00
Pino Toscano 23337e1c71 move the number of maximum and saved history step into a single location for both
svn path=/trunk/KDE/kdegraphics/okular/; revision=691448
2007-07-23 17:12:20 +00:00
Pino Toscano bd462a9a0d "Single" -> "Single Page"
"Facing" -> "Facing Pages"

svn path=/trunk/KDE/kdegraphics/okular/; revision=691430
2007-07-23 16:38:14 +00:00
Pino Toscano 5556af3210 get rid of the hand made resize grip and use QSizeGrip - the trick about it was making the widget to be resized a Qt::SubWindow
this makes the annotation window working in RtL mode as well

svn path=/trunk/KDE/kdegraphics/okular/; revision=691341
2007-07-23 13:05:26 +00:00
Laurent Montel 2e59ada023 change XDG_APPS_DIR -> XDG_APPS_INSTALL_DIR, XDG_DIRECTORY_DIR->XDG_DIRECTORY_INSTALL_DIR, DBUS_INTERFACES_DIR->DBUS_INTERFACES_INSTALL_ DIR, DBUS_SERVICES_DIR->DBUS_SERVICES_INSTALL_DIR to have same naming convention as discussed with Alex.
svn path=/trunk/KDE/kdegraphics/okular/; revision=691222
2007-07-23 07:05:28 +00:00
Pino Toscano a6c0f7d46d it makes no sense having a returned type for the base Annotation class (that can not be instanced directly)
svn path=/trunk/KDE/kdegraphics/okular/; revision=691107
2007-07-22 22:52:47 +00:00
Pino Toscano aa8155f8ed decouple the transformation applying and resetting methods, and reset the transformation when setting a new bonding rect or translating
svn path=/trunk/KDE/kdegraphics/okular/; revision=691056
2007-07-22 20:49:27 +00:00
Pino Toscano 857d423c46 Correctly (hopefully) translate the text annotations now.
svn path=/trunk/KDE/kdegraphics/okular/; revision=691048
2007-07-22 20:20:24 +00:00
Pino Toscano 7c7c673845 Instead of hardcoding Qt::gray, use the Dark color of the widget palette.
Let's see how it looks...

svn path=/trunk/KDE/kdegraphics/okular/; revision=690972
2007-07-22 16:12:30 +00:00
Pino Toscano ff3cf049ce Shift + Space is one screen back, says the HIG.
BUG: 148054

svn path=/trunk/KDE/kdegraphics/okular/; revision=690227
2007-07-20 12:18:55 +00:00
Pino Toscano b8a458dcdc old stuff no more used, and no need to waste i18n strings
svn path=/trunk/KDE/kdegraphics/okular/; revision=690057
2007-07-19 23:40:11 +00:00
Pino Toscano ca481df309 SVN_SILENT old stuff
svn path=/trunk/KDE/kdegraphics/okular/; revision=690056
2007-07-19 23:34:47 +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 d57dc437b5 Give a "better" subtitle for the Accessibility configuration page so it's more "compliant" (but it was also before, IMHO) to the new HIG.
BUG: 145368

svn path=/trunk/KDE/kdegraphics/okular/; revision=689887
2007-07-19 11:23:09 +00:00
Script Kiddy 0fc32d6b18 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=689368
2007-07-18 05:47:51 +00:00
Pino Toscano 536b632536 Correctly translate the ink annotations now.
svn path=/trunk/KDE/kdegraphics/okular/; revision=689204
2007-07-17 21:52:22 +00:00
Pino Toscano 668dcad8da Now the annotations can be dragged and moved after being placed on a page, even if the page is rotated.
Ctrl+right mouse button is what is needed to do that.
At the moment, only line, stamp and geometric annotations can be moved with mouse dragging.

svn path=/trunk/KDE/kdegraphics/okular/; revision=689185
2007-07-17 20:58:38 +00:00
Pino Toscano ba765a3b69 give the right parent page to the annotations also when restoring them from xml
svn path=/trunk/KDE/kdegraphics/okular/; revision=689162
2007-07-17 20:04:30 +00:00
Pino Toscano 0e7aeb2ba8 no need to set a new rotation if it's equal to the currently set
svn path=/trunk/KDE/kdegraphics/okular/; revision=689135
2007-07-17 18:13:50 +00:00
Pino Toscano b41dcfeddc - store a pointer of the owning page in each annotation
- preliminary API for translating an annotation

svn path=/trunk/KDE/kdegraphics/okular/; revision=689133
2007-07-17 18:10:25 +00:00
Aaron J. Seigo 425252e04a add about data to this generator. also makes a pot file possible again. everyone wins. ;)
svn path=/trunk/KDE/kdegraphics/okular/; revision=688746
2007-07-16 18:54:48 +00:00