Commit graph

527 commits

Author SHA1 Message Date
Albert Astals Cid d6d9ff0e5c crop area needs to be just against user rotation, not taking account page orientation since the cropbox is done on page orientation coords
BUGS: 196761

svn path=/trunk/KDE/kdegraphics/okular/; revision=1039155
2009-10-22 20:51:18 +00:00
Armin Berres 555cb3c9a1 add synctex support for pdf files
svn path=/trunk/KDE/kdegraphics/okular/; revision=1003016
2009-07-27 14:15:33 +00:00
Pino Toscano 5c6f9ae185 reimplement scrollContentsBy() to make scrolling just repaint the damaged areas
imho it looks like an hack, i have to verify why it doesn't actually repaint as needed, but sometimes it skips updates

svn path=/trunk/KDE/kdegraphics/okular/; revision=992772
2009-07-07 16:53:33 +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 d9404a544d use the proper "page-zoom" icon for the zoom tool and the zoom selector
BUG: 193770

svn path=/trunk/KDE/kdegraphics/okular/; revision=972330
2009-05-24 16:09:19 +00:00
Pino Toscano 6e6ea57068 check whether normalized values of viewport targets are in the proper [0,1] range, and use a default value if not
svn path=/trunk/KDE/kdegraphics/okular/; revision=969017
2009-05-17 10:17:35 +00:00
Pino Toscano 9190c9224d raise a bit the tolerance
Thomas, what do you think?
CCBUG: 157336

svn path=/trunk/KDE/kdegraphics/okular/; revision=956361
2009-04-19 22:34:29 +00:00
Pino Toscano 212e8a6417 improve the source reference picking by looking for the nearest object in case there's none right under the mouse
svn path=/trunk/KDE/kdegraphics/okular/; revision=943101
2009-03-23 12:10:11 +00:00
Pino Toscano 551145c54f When moving annotations, consider just the rotation of their pages, and not also the page orientation.
BUG: 177598

svn path=/trunk/KDE/kdegraphics/okular/; revision=898291
2008-12-17 21:46:11 +00:00
Albert Astals Cid 522ffd00b6 Try to fix again the inifite scroolbar loop
It's still to be improved because it gives you a uncentered page, but better a bit ugly than unusable
This fix will be in KDE 4.1.4
BUGS: 160628

svn path=/trunk/KDE/kdegraphics/okular/; revision=894427
2008-12-08 16:09:15 +00:00
Pino Toscano 1d91c23432 Add VIM-like navigation (HJKL) in the content view.
Patch by Frederik Gladhorn, thanks!

BUG: 174647

svn path=/trunk/KDE/kdegraphics/okular/; revision=890465
2008-11-29 13:22:32 +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
Laurent Montel c2fc9836e8 Fix iterator
svn path=/trunk/KDE/kdegraphics/okular/; revision=882957
2008-11-11 18:48:40 +00:00
Pino Toscano 5448cfb0c3 oups, accidental typo
svn path=/trunk/KDE/kdegraphics/okular/; revision=872680
2008-10-17 20:19:55 +00:00
Pino Toscano 95b08ff0e6 Switch from a KSelectAction to a KActionMenu+KAction's, so the actions of the "View Mode" submenu can have custom shortcuts (and placed in toolbars, etc).
BUG: 172661

svn path=/trunk/KDE/kdegraphics/okular/; revision=870510
2008-10-12 16:36:14 +00:00
Pino Toscano ba01e51526 convert most of the QAction to KAction, so shortcut change on them works again
yay for compatibility!

svn path=/trunk/KDE/kdegraphics/okular/; revision=870269
2008-10-12 09:00:37 +00:00
Pino Toscano b1f070d6c6 when no extension is set, assume png (fix the previous check)
reported by Fathi Boudra

svn path=/trunk/KDE/kdegraphics/okular/; revision=866614
2008-10-01 13:12:51 +00:00
Pino Toscano fbaeb30f30 Make "fit to width" the default zoom level for new documents.
svn path=/trunk/KDE/kdegraphics/okular/; revision=859445
2008-09-10 11:26:53 +00:00
Pino Toscano bf6c19c108 "borders" -> "margins" in menu entry
svn path=/trunk/KDE/kdegraphics/okular/; revision=851981
2008-08-25 03:32:18 +00:00
Pino Toscano 6993fda364 Load video widgets for the video annotations of the document in the main page view.
Add them as part of the page items, so they can be resized, moved and shown/hidden automatically according to the related pages.

svn path=/trunk/KDE/kdegraphics/okular/; revision=851960
2008-08-25 01:59:23 +00:00
Pino Toscano 723aa28f91 no need to tie the TTS object to the page view stuff, just emit the error messages and let the page view handle them
svn path=/trunk/KDE/kdegraphics/okular/; revision=851245
2008-08-23 11:09:04 +00:00
Albert Astals Cid 6b106c32ca If we are cancelling move, make sure we are where we should be
CCMAIL: 165809

svn path=/trunk/KDE/kdegraphics/okular/; revision=844880
2008-08-10 20:26:33 +00:00
Pino Toscano 8d83f021a8 Enable the text-to-speech actions only when there is a document loaded (other than KTTS being present, of course).
BUG: 168310

svn path=/trunk/KDE/kdegraphics/okular/; revision=841918
2008-08-04 10:16:47 +00:00
Pino Toscano 94a4d5086a do not leave painters open more than necessary
svn path=/trunk/KDE/kdegraphics/okular/; revision=817890
2008-06-06 22:03:30 +00:00
Pino Toscano 48647f1f8f Zoom and ZoomMOdality of the PageView should be serialized
svn path=/trunk/KDE/kdegraphics/okular/; revision=814994
2008-05-31 21:08:45 +00:00
Pino Toscano 356b4618f0 implement the ZoomModality capability (as View),
and stop using the zoom level and mode from the global settings

svn path=/trunk/KDE/kdegraphics/okular/; revision=814984
2008-05-31 20:45:30 +00:00
Pino Toscano c84e2dc144 Store the annotation window associated to the annotation it represent (using an hash);
when there's a change in the annotations of a page, remove the windows of removed annotations and update all the others.
This improval in the page annotation update fixes bug #162822.
BUG: 162822

svn path=/trunk/KDE/kdegraphics/okular/; revision=814256
2008-05-29 19:12:56 +00:00
Pino Toscano f75e92de5f borders -> margins, except in UI (todo added for kde 4.2)
svn path=/trunk/KDE/kdegraphics/okular/; revision=813364
2008-05-27 14:00:59 +00:00
Pino Toscano 2b971b07b2 Make it possible to draw just sections (crops within bounding boxes) of pages.
Separated normal & cropped geometries in page items;
made the page painter able to draw based on a crop section;
add a config + menu option for turning the white borders removal.

Based on a patch by the Mr. anonymous kde2eran@tromer.org, thanks.

BUG: 161599

svn path=/trunk/KDE/kdegraphics/okular/; revision=809496
2008-05-19 00:37:14 +00:00
Pino Toscano c16505079a Do not consider hidden pages when getting the text within the selected rectangle.
BUG: 157927

svn path=/trunk/KDE/kdegraphics/okular/; revision=808374
2008-05-16 13:15:23 +00:00
James Richard Tyrer 1bc88dcb4a Changing icon name from "view-fit-*" to "zoom-fit-*"
svn path=/trunk/KDE/kdegraphics/okular/; revision=807653
2008-05-14 09:41:12 +00:00
James Richard Tyrer be5022cede Correcting name for view-fit-* icons
svn path=/trunk/KDE/kdegraphics/okular/; revision=806166
2008-05-10 10:42:23 +00:00
Pino Toscano d1305c265b Implement the canBeMoved() check for an annotation in the Annotation class itself.
Use this new version and remove the one in GuiUtils.

svn path=/trunk/KDE/kdegraphics/okular/; revision=803073
2008-05-01 20:59:51 +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
Pino Toscano ada6be8c58 properly detect when the visible pixmap request is called as result of scollbar event
svn path=/trunk/KDE/kdegraphics/okular/; revision=797549
2008-04-16 11:04:59 +00:00
Malcolm Hunter b6124a900b Typo fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=795906
2008-04-11 21:16:43 +00:00
Albert Astals Cid 83912893ed Save us from infinite resizing loops, we can afford to lose 1 pixel precision to fix that
BUGS: 160628

svn path=/trunk/KDE/kdegraphics/okular/; revision=795883
2008-04-11 18:50:26 +00:00
Pino Toscano 961b27e99c Properly apply, and reload when changed, the annotation info in the annotation window (color, modication date, etc).
svn path=/trunk/KDE/kdegraphics/okular/; revision=789344
2008-03-24 00:08:08 +00:00
Pino Toscano 082c385295 Make the push buttons of forms trigger their activation action, if present.
svn path=/trunk/KDE/kdegraphics/okular/; revision=788108
2008-03-20 17:45:37 +00:00
Pino Toscano 5eec89ead0 When the user changes the value of a form field, wait 1s and then refresh the interface.
svn path=/trunk/KDE/kdegraphics/okular/; revision=783268
2008-03-07 16:09:08 +00:00
Pino Toscano d6c581e383 stop the talks when quitting
svn path=/trunk/KDE/kdegraphics/okular/; revision=782641
2008-03-05 15:40:36 +00:00
Pino Toscano f65c9225a9 Add an action to stop all the text speechs.
svn path=/trunk/KDE/kdegraphics/okular/; revision=782505
2008-03-05 12:05:48 +00:00
Pino Toscano 69179e2505 More interaction between Okular and the KDE Text To Speech system:
a) "Speak While Document" action to speak the content of the whole document
b) "Speak Current Page" to just speak the content of the currently shown page
c) "Speak Text" action in the right click menu of the editor-like text selection

(a) also implements KPDF's bug #118872.

svn path=/trunk/KDE/kdegraphics/okular/; revision=782497
2008-03-05 11:06:55 +00:00
Pino Toscano f407f84d8a move in an own class (out of the page view) all the TTS related code
svn path=/trunk/KDE/kdegraphics/okular/; revision=782420
2008-03-05 02:13:09 +00:00
Pino Toscano 21001e7dd0 Check the DRM limitations as well when copying the selection.
CCBUG: 157364

svn path=/trunk/KDE/kdegraphics/okular/; revision=781952
2008-03-04 00:01:46 +00:00
Pino Toscano 39c2d29ac2 Do not copy to the selection the text when selecting "Copy text" in the RMB menu, but after releasing the LMB when "visually" selecting text.
BUG: 157364

svn path=/trunk/KDE/kdegraphics/okular/; revision=779710
2008-02-26 20:54:31 +00:00
Pino Toscano 03ea6ff54d Add the support in the core library and in the user interface for button form fields (ie, push button, check boxes and radio buttons).
svn path=/trunk/KDE/kdegraphics/okular/; revision=773548
2008-02-11 10:41:04 +00:00
Pino Toscano 7eac68815b Use the id of the form fields as id, not the name!
svn path=/trunk/KDE/kdegraphics/okular/; revision=773440
2008-02-11 01:37:02 +00:00
Pino Toscano 4333d4b0b5 Manually set the scrollbars range, so they are correct when the viewport is resized and the content widget has the same size.
BUG: 155652

svn path=/trunk/KDE/kdegraphics/okular/; revision=761348
2008-01-14 16:29:12 +00:00
Pino Toscano 51f34f3f9f support more than one annotation in the annotation popup
svn path=/trunk/KDE/kdegraphics/okular/; revision=761316
2008-01-14 13:39:23 +00:00
Jakob Petsovits 11dcfffce7 Icon renaming (code changes - KDE/):
frame-edit -> select-rectangular

svn path=/trunk/KDE/kdegraphics/okular/; revision=756813
2008-01-03 20:05:17 +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
Jakob Petsovits 0da4f3ebb8 Icon naming spec (code changes - KDE/):
* view-left-right -> view-split-left-right
* view-top-bottom -> view-split-top-bottom

svn path=/trunk/KDE/kdegraphics/okular/; revision=755418
2008-01-01 14:52:38 +00:00
Jakob Petsovits 1ae1545a4a Icon renaming (code changes - KDE/):
consolidate the fileview-* icons to view-*

svn path=/trunk/KDE/kdegraphics/okular/; revision=755384
2008-01-01 12:25:48 +00:00
Pino Toscano 327ec1cc34 correctly reacts when the "center first page" option is changed, and we need to apply it (more than 1 column)
svn path=/trunk/KDE/kdegraphics/okular/; revision=755279
2007-12-31 22:41:32 +00:00
Pino Toscano 39fb1ef5b6 correctly show/hide the form widgets in each page correctly even when not in Continuous mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=755275
2007-12-31 22:22:38 +00:00
Pino Toscano d54e2515ae clear the list of pages with text selection when the document changes
svn path=/trunk/KDE/kdegraphics/okular/; revision=755228
2007-12-31 18:28:02 +00:00
Pino Toscano 3c52fd1456 Change the page layouting procedure so:
- pages not in the view (wth no Continuous mode active) are just "hidden", but they now have a valid size;
  this way, we can preload "hidden" pages even when in Continouos mode
- merge the layouting methods (simplify a bit)

CCBUG: 153675

svn path=/trunk/KDE/kdegraphics/okular/; revision=755216
2007-12-31 17:35:22 +00:00
Pino Toscano 288fce0b82 AnnotationGuiUtils -> GuiUtils
svn path=/trunk/KDE/kdegraphics/okular/; revision=752259
2007-12-24 00:54:21 +00:00
Pino Toscano 76d061b443 draw correctly the border of the rectangular selection
svn path=/trunk/KDE/kdegraphics/okular/; revision=746592
2007-12-09 16:14:24 +00:00
Pino Toscano cd5b0a9d7f fix icons
svn path=/trunk/KDE/kdegraphics/okular/; revision=746590
2007-12-09 16:12:08 +00:00
Pino Toscano 761276e938 correctly enable/disable tools and text tools when switching document
svn path=/trunk/KDE/kdegraphics/okular/; revision=746447
2007-12-09 01:35:42 +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 995972052d Review toolbar:
- enable/disable (instead of hide/show) the tools that cannot be constructed (eg due to the document not extracting text)
- disable the tools when there is no document open

svn path=/trunk/KDE/kdegraphics/okular/; revision=746293
2007-12-08 15:59:04 +00:00
Pino Toscano cb50789290 slightly better wording
svn path=/trunk/KDE/kdegraphics/okular/; revision=736320
2007-11-13 22:46:44 +00:00
Pino Toscano 0fc6641cca 'Copy link location' -> 'Copy link address', like konqueror
svn path=/trunk/KDE/kdegraphics/okular/; revision=735046
2007-11-10 18:45:48 +00:00
Albert Astals Cid 9033cfdec8 aZoomFitText is not created atm, so don't try to update it
svn path=/trunk/KDE/kdegraphics/okular/; revision=732304
2007-11-03 12:58:46 +00:00
Pino Toscano 02e7c0abfb disable the "fit to text" zoom option, not yet implemented
svn path=/trunk/KDE/kdegraphics/okular/; revision=732156
2007-11-02 23:23:06 +00:00
Pino Toscano 36958659a5 Add very short descriptions for the "Rotate left" and "Rotate right" actions, so they take less space when added in the toolbar.
svn path=/trunk/KDE/kdegraphics/okular/; revision=731834
2007-11-02 00:07:32 +00:00
Pino Toscano fb825ff1d4 add a form widget controller to prepare the pageview to possible changes when the content in a form widget changes
svn path=/trunk/KDE/kdegraphics/okular/; revision=726788
2007-10-18 22:09:49 +00:00
Pino Toscano 7f44aafa94 correctly hide the form widgets when a widget is focused
svn path=/trunk/KDE/kdegraphics/okular/; revision=726769
2007-10-18 20:35:34 +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
Pino Toscano e461f0c113 don't include kpixmapeffect.h
svn path=/trunk/KDE/kdegraphics/okular/; revision=720047
2007-10-02 08:05:52 +00:00
Pino Toscano 746074cfcb Make use of the Esc key in the content area:
- when the document is auto-scrolling, stop the scrolling
- when building an annotation, stop its construction

svn path=/trunk/KDE/kdegraphics/okular/; revision=716000
2007-09-23 17:45:36 +00:00
Pino Toscano 1b02168dce force an update of the cursor when changing mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=712509
2007-09-14 16:02:02 +00:00
Pino Toscano 7eb8659d4f Add a tool button in the toolbar with the "select" actions.
Preparing a bit for separating rectangular text selection and rectangular image selection.

svn path=/trunk/KDE/kdegraphics/okular/; revision=712381
2007-09-14 10:02:33 +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 815ac3867e move the annotation tooltip creation procedure in a single place
svn path=/trunk/KDE/kdegraphics/okular/; revision=709910
2007-09-08 14:41:40 +00:00
Pino Toscano 2498bea799 update the cursor correctly in text selection mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=709558
2007-09-07 19:57:46 +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
Troy Unrau 6b6e0a8dc4 Fixed zoom factor issue. When zooming out at 100%, you would end up at 80%,
but zooming in from 80% would give you 90%.  Zoom levels are now 
symmetrical when using toolbar zoom or CTRL+scrollmouse.

Thanks to pinotree to pointing out the appropriate code for me to fix.

svn path=/trunk/KDE/kdegraphics/okular/; revision=708122
2007-09-03 21:29:09 +00:00
Pino Toscano 490cf6fc67 Add a new text selection algo that should be a bit more reliable than the current one (just commented out), especially if the backend does not provide text areas in the logical order. Drawback: slightly slower.
Adapt both the algo's to work on untransformed text areas, but to return transformed areas.

svn path=/trunk/KDE/kdegraphics/okular/; revision=708078
2007-09-03 19:35:55 +00:00
Pino Toscano 0416e07a37 make some view actions disabled by default, so they are not enabled when opening a new empty window
(and little fix for my yesterday's commit, so the preview mode should work again...)

svn path=/trunk/KDE/kdegraphics/okular/; revision=705713
2007-08-28 12:04:18 +00:00
Pino Toscano 8b0a80ba4b Start making the annotation system DRM-aware. In case the document does not want changes to its annotations (and okular is set to obey),
- disable the review toolbar
- make the annotation prioerties dialog read-only
- disable the removal

svn path=/trunk/KDE/kdegraphics/okular/; revision=705415
2007-08-27 22:11:18 +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 ee200d286c adapt to the new naming of the 'mouse' device icon
svn path=/trunk/KDE/kdegraphics/okular/; revision=696589
2007-08-05 10:24:21 +00:00
Pino Toscano 9610c6a9c5 SVN_SILENT dead code
svn path=/trunk/KDE/kdegraphics/okular/; revision=696457
2007-08-04 21:47:48 +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 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 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 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 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 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 8a31e6f3f0 Allow the user to change the visible part(s) of the document by dragging the visible areas in the thumbnails, and to change the zoom of the document by Ctrl+wheel on them.
Patch by Diego R. Brogna, thanks a lot!

BUG: 135521

svn path=/trunk/KDE/kdegraphics/okular/; revision=685273
2007-07-08 14:25:08 +00:00
Albert Astals Cid d511adfd84 fordwardport r678167
svn path=/trunk/KDE/kdegraphics/okular/; revision=678169
2007-06-20 20:31:07 +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
Robert Knight 99d4342ae8 Remove frame around the page view.
svn path=/trunk/KDE/kdegraphics/okular/; revision=669129
2007-05-28 15:29:29 +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 0e9b82be96 get rid of the Xrender-related stuff
svn path=/trunk/KDE/kdegraphics/okular/; revision=666266
2007-05-19 10:51:16 +00:00
Pino Toscano 223d0fc421 remove the special code for painting the blended selection with XRender, Qt can do that nicely (and for free, heh)
svn path=/trunk/KDE/kdegraphics/okular/; revision=666265
2007-05-19 10:42:10 +00:00
Pino Toscano 6735089e77 SVN_SILENT follow the render -> view renaming for the columns as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=666260
2007-05-19 10:19:25 +00:00
Pino Toscano faeaa3ec01 Sharing the same option for the accessibility render mode and for the view mode is not a good idea, really.
So, create a new ViewMode setting for the single/facing/columns view mode (leaving the RenderMode for compatibility with KPDF).
Rename [Rr]enderMode into [Vv]iewMode in the page view, following the new name of the setting.
Remove the "padding" enums from the settings, as it seems they have no real use beside giving issues.

svn path=/trunk/KDE/kdegraphics/okular/; revision=665773
2007-05-17 20:46:16 +00:00
Pino Toscano 8ccb38b9fe very small cleanup among the #include part
svn path=/trunk/KDE/kdegraphics/okular/; revision=661773
2007-05-06 15:10:16 +00:00
Pino Toscano 6aaefb7f68 "pdf"/"pdf file" -> "document"
svn path=/trunk/KDE/kdegraphics/okular/; revision=660526
2007-05-02 23:06:38 +00:00
Pino Toscano 106e96240c rename (almost) every ActionFoo class to FooAction
exception to this is the ActionDocumentAction, renamed to DocumentAction and whose id is DocAction

svn path=/trunk/KDE/kdegraphics/okular/; revision=660523
2007-05-02 22:50:27 +00:00
Pino Toscano 7cfa67ecf4 improve a bit the Document::setPageSize API -- better pass the size, and not an index
svn path=/trunk/KDE/kdegraphics/okular/; revision=660208
2007-05-01 23:21:29 +00:00
Pino Toscano 0f4cd40e26 slotRotation -> setRotation
svn path=/trunk/KDE/kdegraphics/okular/; revision=660207
2007-05-01 23:09:45 +00:00
Pino Toscano 2c1d5aa44e Refactor a bit the annotating toolbar, so it can handle better its items and cha
nges to its status. This brings us:
- less item reloading (previously done every time the toolbar is shown, now only when needed)
- the toolbar is redrawn correctly if it's shown and a new document is open
- as Albert pointed me yesterday, no need to show the annotating tools that act on text if the document does not support the extraction of text

svn path=/trunk/KDE/kdegraphics/okular/; revision=659722
2007-04-30 17:40:53 +00:00
Pino Toscano dde7280d55 respect the DRM permissions for form filling
svn path=/trunk/KDE/kdegraphics/okular/; revision=658944
2007-04-28 23:22:20 +00:00
Pino Toscano 0e12746a92 Link -> Action renaming.
TextDocumentConverter::addLink -> addAction
Document::processLink -> processAction

svn path=/trunk/KDE/kdegraphics/okular/; revision=656145
2007-04-20 12:49:17 +00:00
Pino Toscano 5f21b15d99 Link -> Action renaming.
Step #2: Link -> Action for the action hierarchy, and for the ObjectRect type.

svn path=/trunk/KDE/kdegraphics/okular/; revision=656140
2007-04-20 12:37:12 +00:00
Pino Toscano f3e484082d Link -> Action renaming.
Step #1: link.(cpp|h) -> action.(cpp|h)

svn path=/trunk/KDE/kdegraphics/okular/; revision=656123
2007-04-20 11:26:05 +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
Urs Wolfer 989ed1ac23 fix icon names
svn path=/trunk/KDE/kdegraphics/okular/; revision=654591
2007-04-16 15:47:46 +00:00
Pino Toscano a02c0785fe use the right icons for the rotation
svn path=/trunk/playground/graphics/okular/; revision=646383
2007-03-25 15:15:50 +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
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 a5f6538d43 avoid the jumping of the pageview to the next (hidden) focus form widget when hiding them
svn path=/trunk/playground/graphics/okular/; revision=637148
2007-02-25 14:59:26 +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 1161debb9c i18n change: the plural forms are with %1, %2, etc now, %n is no more
svn path=/trunk/playground/graphics/okular/; revision=633277
2007-02-13 17:45:54 +00:00
Albert Astals Cid 1587b9605a unnecessary but fun small optimizations, basically avoid unnecessary detach() calls by ensuring the const method is called
also remove a double search on a qmap

svn path=/trunk/playground/graphics/okular/; revision=629869
2007-02-03 23:09:40 +00:00
Pino Toscano b4821c5f07 Disable the Zoom In/Zoom Out actions when resp. the maximum/minimum zoom is reached.
svn path=/trunk/playground/graphics/okular/; revision=627927
2007-01-28 16:29:48 +00:00
Pino Toscano 5b3606eb50 Copy -> Copy Text
svn path=/trunk/playground/graphics/okular/; revision=625577
2007-01-20 13:49:59 +00:00
Pino Toscano 1041866493 Improve the Orientation menu, as suggested by our usability export Florian:
instead of choosing the orientation degrees (eg 0, 90, etc), use two Rotate Left/Right actions to rotate the whole document 90 degrees resp. on the left or on the right.
Also add an 'Original orientation' action to restore to the orientation of the document.

svn path=/trunk/playground/graphics/okular/; revision=625297
2007-01-19 21:43:53 +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 18fab3d130 Improve the way we deal with generators that give the possibility to change the size of the pages: instead of let them destroy and recreate the pages (bad), ask them the sizes they support, then do the work ourselves and notify the generator when the work is done.
While I was at it, I changed from "paper size" to "page size", it should be better.

svn path=/trunk/playground/graphics/okular/; revision=620411
2007-01-05 23:12:06 +00:00
Pino Toscano 46632f1f6f As now the requests are done in the right order, request first the next and then the previous page.
svn path=/trunk/playground/graphics/okular/; revision=619959
2007-01-04 21:47:54 +00:00
Pino Toscano 652787611d make it build with the new kdelibs
svn path=/trunk/playground/graphics/okular/; revision=619217
2007-01-03 00:17:31 +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
Tobias Koenig 14ea3ab2ef Further documentation and API cleanups
svn path=/trunk/playground/graphics/okular/; revision=619054
2007-01-02 17:05:49 +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 ea071caf9d Improve the way we get the contents of an annotation; dynamically change the tooltip of the annotation item in the side review pane.
svn path=/trunk/playground/graphics/okular/; revision=617106
2006-12-28 00:40:09 +00:00
André Wöbbeking 6e7d98b829 adapt to Aaron's kdelibs changes
svn path=/trunk/playground/graphics/okular/; revision=616901
2006-12-27 10:03:34 +00:00
Pino Toscano dff36b98f8 simplify RegularAreaRect by avoiding the usage of pointers, as they don't give benefits anyway.
Fixing also the text extraction when using the rectangular selection across two or more pages.

svn path=/trunk/playground/graphics/okular/; revision=616264
2006-12-24 18:19:18 +00:00
Pino Toscano 41cba45a4b clarify a debug statement, and silence others
svn path=/trunk/playground/graphics/okular/; revision=616100
2006-12-23 16:36:08 +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
Tobias Koenig 6f9d0df5cd Further annotation API cleanup
svn path=/trunk/playground/graphics/okular/; revision=612395
2006-12-11 07:59:02 +00:00
Pino Toscano 9343b5e54c temporarily disable the 'find next' shortcut from kactioncollection
svn path=/trunk/playground/graphics/okular/; revision=611143
2006-12-06 21:59:37 +00:00
Tobias Koenig a9f58440df First large commit for the Annotation API cleanup
* Moved all public member variables of Annotation to private
    and add accessors
  * Renamed RevScope and RevType to RevisionScope and RevisionType
  * Add API documentation (@pino, please review)

svn path=/trunk/playground/graphics/okular/; revision=610749
2006-12-05 11:05:50 +00:00
Tobias Koenig 327334c194 Show newlines in annotation popup correctly
svn path=/trunk/playground/graphics/okular/; revision=609166
2006-11-29 16:41:12 +00:00
Tobias Koenig c7aba89080 Bugfix: Show content of AnnotWindow in popup
svn path=/trunk/playground/graphics/okular/; revision=608233
2006-11-27 08:09:27 +00:00
Albert Astals Cid da3cd5c2fd put this inside the ifdef, makes too much noise if you don't want to see that much debug
svn path=/trunk/playground/graphics/okular/; revision=607508
2006-11-24 21:44:25 +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
Pino Toscano f070c5cd32 When in aggressive mode, for the viewer area keep also the page previous and the one next to the pages currently visible.
svn path=/trunk/playground/graphics/okular/; revision=607468
2006-11-24 19:29:52 +00:00
Tobias Koenig 4848631daf Renamed all the Page::getXyz() methods to Page::xyz() to be konsistent
with the rest of KDE and ... we are no Java developers ;)

svn path=/trunk/playground/graphics/okular/; revision=607204
2006-11-23 17:11:04 +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
Tobias Koenig a7b04cb92b Replaced
Page::setSearchPage( TextPage* );
  Page::hasSearchPage();

with

  Page::setTextPage( TextPage* );
  Page::hasTextPage();

to make the API clearer. The TextPage is not only used for
searching but also for extracting selected text, so the term
'search' is confusing...


svn path=/trunk/playground/graphics/okular/; revision=607195
2006-11-23 16:09:26 +00:00
Albert Astals Cid ee046a1ad6 fordward port Revision 606296
********
 Fix "No scrolling when selection reaches border"

svn path=/trunk/playground/graphics/okular/; revision=607042
2006-11-22 21:32:21 +00:00
Albert Astals Cid ac1c0b75bc const_iterator is your friend :-)
svn path=/trunk/playground/graphics/okular/; revision=606558
2006-11-20 20:10:42 +00:00
Tobias Koenig a490cc0cd7 Add the following functionality:
* Bring QPixmap* back to make Albert happy ;)
 * Store only one QPixmap per page/size and rotate it directly
 * Rotate ObjectRects (boundary)
 * Rotate Annotations (point coordinates)
 * Don't reload pixmaps, ObjectRects and annotations on rotation

svn path=/trunk/playground/graphics/okular/; revision=606371
2006-11-20 07:53:32 +00:00
Pino Toscano 45fe1103c4 SVN_SILENT const
svn path=/trunk/playground/graphics/okular/; revision=606150
2006-11-19 13:50:41 +00:00
Pino Toscano 69e9777ad2 delete the page items when destroying the page view
svn path=/trunk/playground/graphics/okular/; revision=606143
2006-11-19 13:20:22 +00:00
Pino Toscano 6fe91bae4d usability: as the annotation tools can be used only in normal mode, switch to normal mode when the user choose to use them
svn path=/trunk/playground/graphics/okular/; revision=606026
2006-11-19 01:23:06 +00:00
Albert Astals Cid 73f0a7269d resize the pageview widget when no doc is opened so the "gray" area expands
svn path=/trunk/playground/graphics/okular/; revision=606019
2006-11-19 00:04:16 +00:00
Pino Toscano 274469dae8 Almost complete support for inverse search within okular.
THe system generally works; what is missing is a good activating strategy (added in TODO - our usability expert is working on that), and a GUI to configure the editor.
The DVI backend was adapted to use this new feature.
(The PDF backend will use it soon.)

svn path=/trunk/playground/graphics/okular/; revision=605708
2006-11-17 22:15:15 +00:00
Aaron J. Seigo 77932c92dd two small changes, passed by pintoree on irc:
- render the viewed rect area in the thumbnail a bit more elegantly
- Render Mode -> View Mode ... "render" is geekanese, "view" is proper luserian

svn path=/trunk/playground/graphics/okular/; revision=604731
2006-11-14 00:27:30 +00:00
Pino Toscano d50a458de4 fix regression: behave correctly when putting the mouse out of a link area
svn path=/trunk/playground/graphics/okular/; revision=604067
2006-11-11 13:45:44 +00:00
Albert Astals Cid ea831f2214 following popular aclamation we use whole numbers as default zoom values
svn path=/trunk/playground/graphics/okular/; revision=603082
2006-11-07 19:29:48 +00:00
Pino Toscano a23fab8291 display eg '66.7%' instead of '66.70%' in zoom combobox
svn path=/trunk/playground/graphics/okular/; revision=601624
2006-11-03 22:09:16 +00:00
Tobias Koenig bea71df6e0 * Made image rotation asynchronous
* Changed Page API and PagePainter to work only with QImage

svn path=/trunk/playground/graphics/okular/; revision=601581
2006-11-03 17:57:32 +00:00
Pino Toscano 49074ea305 improve these strings, as our usability master suggested
svn path=/trunk/playground/graphics/okular/; revision=601511
2006-11-03 13:59:44 +00:00
Pino Toscano 3336a73429 fix regression (related to kpdf's #99315)
svn path=/trunk/playground/graphics/okular/; revision=601363
2006-11-03 00:12:23 +00:00
Albert Astals Cid 511e6f32a1 fix porting bug
Thanks Pino for noticing

svn path=/trunk/playground/graphics/okular/; revision=600483
2006-10-30 18:17:11 +00:00
Pino Toscano e7f46c265e i like icons
svn path=/trunk/playground/graphics/okular/; revision=600478
2006-10-30 18:03:56 +00:00
Pino Toscano 2bd05e79d5 a generator can not block the gui events of the main page view, otherwise bad things will happen - it's also not really logic to allow such a thing, better think about something else if a generator wants to interact with the gui somehow
svn path=/trunk/playground/graphics/okular/; revision=600225
2006-10-29 22:33:24 +00:00
Pino Toscano e5f7314c65 hand-written ROUND -> qRound
svn path=/trunk/playground/graphics/okular/; revision=600081
2006-10-29 13:42:07 +00:00
Holger Freyther d8e92f5ff8 okular/ui/pageview.cpp: Make it compile with QtMac
I have XRender available on my system but I use QtMac
    so only check for XRender if we use Qt/X11.

svn path=/trunk/playground/graphics/okular/; revision=600075
2006-10-29 13:17:19 +00:00
Pino Toscano f387bb2b0a Cancel selecting when Esc is pressed.
Implements KPDF wish #126359.

svn path=/trunk/playground/graphics/okular/; revision=599881
2006-10-28 23:27:44 +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 0be674f981 Forwardport SVN commit 599376 by pino:
Don't try querying the document if it's closed.

svn path=/trunk/playground/graphics/okular/; revision=599385
2006-10-26 20:59:07 +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 7d6f5be0e5 less verbose
svn path=/trunk/playground/graphics/okular/; revision=598093
2006-10-22 13:49:11 +00:00
Pino Toscano ed84916c0d spell checking
svn path=/trunk/playground/graphics/okular/; revision=597875
2006-10-21 22:07:05 +00:00
Albert Astals Cid d3f03d2144 Change slotRequestVisiblePixmaps that is called due to a rotation change to a queued petition, this makes rotation changing from 0º to 180º work as previously pixmaps where not reasked because the page items relayouting was done after (in a queded petition) and so they did not intersect at this stage, now as we use a queued petition too for slotRequestVisiblePixmaps, the order is correct and works
Transform QTimer::singleShot to QMetaObject::invokeMethod as thiago said it is better

svn path=/trunk/playground/graphics/okular/; revision=597307
2006-10-19 21:18:39 +00:00
Pino Toscano 85bf380d7d this seems a little bit faster...
svn path=/trunk/playground/graphics/okular/; revision=596608
2006-10-17 22:56:49 +00:00
Pino Toscano a5d7d31d33 isolate the Xrender dependant code, so okular can be compile and work even without it
svn path=/trunk/playground/graphics/okular/; revision=596572
2006-10-17 21:26:43 +00:00
Pino Toscano ef1fb7e8d5 const
svn path=/trunk/playground/graphics/okular/; revision=596146
2006-10-16 19:47:20 +00:00
Pino Toscano 87904adec4 change a bit how we look for objects in a page: first look for annotations, then links (acrobat reader does this way too, so it should be the "right" thing to do)
svn path=/trunk/playground/graphics/okular/; revision=596127
2006-10-16 19:19:42 +00:00
Pino Toscano c8ba6d8c15 be sure to remove also the pointer to the old annotation window when deleting the window itself
svn path=/trunk/playground/graphics/okular/; revision=595393
2006-10-14 10:55:10 +00:00
Pino Toscano c9346d8331 tooltip for annotation on the pageview
svn path=/trunk/playground/graphics/okular/; revision=595377
2006-10-14 10:07:42 +00:00
Albert Astals Cid 7ae910d0b8 fix rendering when at very high zoom levels
svn path=/trunk/playground/graphics/okular/; revision=594633
2006-10-11 20:26:09 +00:00
Pino Toscano 6bd498e8e3 draw the page outline rect correctly again
svn path=/trunk/playground/graphics/okular/; revision=594614
2006-10-11 18:26:23 +00:00
Albert Astals Cid 4458c20075 viewport() -> widget()
well spotted pino! 

svn path=/trunk/playground/graphics/okular/; revision=593718
2006-10-08 20:12:02 +00:00
Albert Astals Cid d767c84a30 Fix painting when at very few pages and zoom level alst pages where not beign painted
svn path=/trunk/playground/graphics/okular/; revision=593692
2006-10-08 18:20:04 +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 858a6bf783 factor out the text selections ruotines, so they can be used also from other places
svn path=/trunk/playground/graphics/okular/; revision=592041
2006-10-03 17:13:42 +00:00
Albert Astals Cid 0ecf1ba8da Fix autoscroll
svn path=/trunk/playground/graphics/okular/; revision=590053
2006-09-29 09:02:07 +00:00
Albert Astals Cid de8d4bad59 reinstantiate the fact that right pressing and dragging in select mode moves you to the selection mode
svn path=/trunk/playground/graphics/okular/; revision=589908
2006-09-28 22:19:31 +00:00
Albert Astals Cid 6bf2d5947f fix my own breakage
svn path=/trunk/playground/graphics/okular/; revision=589890
2006-09-28 21:41:50 +00:00
Albert Astals Cid a1a3c9c559 IMadeItWorkSoRemoveTheTODO
svn path=/trunk/playground/graphics/okular/; revision=588911
2006-09-27 10:52:27 +00:00
Albert Astals Cid 7f63a0128c makeItWork
svn path=/trunk/playground/graphics/okular/; revision=588909
2006-09-27 10:52:02 +00:00
Pino Toscano 853d6c70a7 Give a tooltip in the page view for every kind of lnk we support.
Also improve a bit the one in the presentation mode, and give a message when the link is a "go to the page x" link.
Implements KPDF wish #131361.

svn path=/trunk/playground/graphics/okular/; revision=588899
2006-09-27 10:28:03 +00:00
Pino Toscano 42310e184c Restructuring a bit how the text-editor-like selection works:
* putting it in an own view mode
* associating the selection to every page
* using a better algorithm to calculate the selection, even in a page range
* moving its drawing from the page view to the page painter, so it's possibile to draw it just like it's done with eg annotations

Other changes (more or less related):
* moved the annotation popup to a better place, so it won't interfere with annotation drawing
* commented some debug code in TextPage

svn path=/trunk/playground/graphics/okular/; revision=588795
2006-09-26 22:22:01 +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
Pino Toscano 9bbabc1f64 Forward port to okular of KPDF commit 586747:
Make okular a bit more friendly for users of RtL languages:
- correctly place the message pane (top-left corner of page view for LtR, top-right for RtL)
- make the mini-progressbar fully usable for both the writing directions
(the icons of the previous/next page buttons were already fixed by me)

svn path=/trunk/playground/graphics/okular/; revision=586751
2006-09-20 13:58:28 +00:00
Pino Toscano b1d70d87a8 icon change for the annotation property action
svn path=/trunk/playground/graphics/okular/; revision=586559
2006-09-19 23:12:49 +00:00
Pino Toscano 45615e5289 Reworked a bit the ObjectRect API, by allowing subclassing for easiness wrt Annotation's. The brand new AnnotationObjectRect is responsible for providing the annotation bounding rect (that may vary for the various annotation types).
Adapted also to receive the X and Y scale, so the bounding rect for every kind of ObjectRect can depend on a specific page size.
As a consequence, we can add also the annotations among the rects of a Page, and use the standard getObjectRect to find them.

svn path=/trunk/playground/graphics/okular/; revision=586457
2006-09-19 17:17:29 +00:00
Pino Toscano 8357b47a8c Annotations:
support the Hidden and DenyDelete flags

svn path=/trunk/playground/graphics/okular/; revision=584409
2006-09-14 18:42:28 +00:00
Pino Toscano 58610481d8 Annotations:
- really activate the Apply button of the Properties dialog only when something is changed
- apply the changed in real-time, so they cna be seen directly with Apply and no need to close the dialog
- add a small fix (last, I hope) for the PixmapPreviewSelector about the pixmap loading 

svn path=/trunk/playground/graphics/okular/; revision=583922
2006-09-13 19:52:46 +00:00
Tobias Koenig 2f0946e831 Make selection tool working again
svn path=/trunk/playground/graphics/okular/; revision=583789
2006-09-13 12:49:12 +00:00
Tobias Koenig c3c79fa216 SVN_SILENT code cleanup
svn path=/trunk/playground/graphics/okular/; revision=583782
2006-09-13 12:11:42 +00:00
Tobias Koenig 90140c1479 warnings--
svn path=/trunk/playground/graphics/okular/; revision=578892
2006-08-30 14:17:22 +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
Albert Astals Cid 5ce0f2a634 branchport r573007
svn path=/trunk/playground/graphics/okular/; revision=573009
2006-08-14 15:03:12 +00:00
Chu Xiaodong 9c575a91d3 replace embedded annotation dialog with annot window, child of PageView
svn path=/trunk/playground/graphics/okular/; revision=572243
2006-08-11 23:53:48 +00:00
Chu Xiaodong a6516a74ef Fix annotation size difference when added in diff scales
svn path=/trunk/playground/graphics/okular/; revision=571739
2006-08-10 15:12:37 +00:00
Chu Xiaodong e6078e98c3 call Annotation context menu any time(implemented in pageview.cpp)
svn path=/trunk/playground/graphics/okular/; revision=571653
2006-08-10 08:59:58 +00:00
Chu Xiaodong 3f81e3788f Free TextAnnotation,pop-up window and annotation properties dialog added.
svn path=/trunk/playground/graphics/okular/; revision=571124
2006-08-08 15:31:13 +00:00
Laurent Montel ead282936e Compile++
svn path=/trunk/playground/graphics/okular/; revision=569954
2006-08-05 10:35:03 +00:00
Clarence Dang 2561c5f879 remove probably unwanted debug from previous commit
svn path=/trunk/playground/graphics/okular/; revision=567576
2006-07-29 12:54:01 +00:00
Clarence Dang 8ecc533c70 Allow entering of "123" zoom instead of only "123%". Previously, if it couldn't find a % to chop, it would kill the last digit (the '3' in "123", giving an incorrect, 12%).
Add hack to get around "10&0%" action text which sometimes happens with kdelibs4.

okular developers: after updating kdelibs, zooming should work perfectly - please let me know if it doesn't.


svn path=/trunk/playground/graphics/okular/; revision=567575
2006-07-29 12:52:35 +00:00
Clarence Dang 8fa041d06f make zoom combobox work; editing the text directly is not supported yet
svn path=/trunk/playground/graphics/okular/; revision=564799
2006-07-21 11:26:45 +00:00
Pino Toscano 250cca6cb5 no need to recalc the flags every time we paint
svn path=/trunk/playground/graphics/okular/; revision=560135
2006-07-09 11:10:24 +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 5ce5a5f062 no need to opaque paint event for the whole pageview, the viewport has it already
svn path=/trunk/playground/graphics/okular/; revision=559644
2006-07-07 21:56:33 +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 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 cd81b54d63 Show the current viewport in the thumbnail view, with a read contour.
svn path=/trunk/playground/graphics/okular/; revision=554363
2006-06-23 21:11:52 +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 6b240f9166 fix the saving of the selection as image
svn path=/branches/work/kde4/playground/graphics/okular/; revision=550584
2006-06-12 10:51:07 +00:00
Pino Toscano 1e97eb77c4 - give the right handle to XRenderFillRectangle
- properly update the rects

svn path=/branches/work/kde4/playground/graphics/okular/; revision=550489
2006-06-11 23:38:12 +00:00
Pino Toscano 15130d0454 EXPERIMENTALLY reactivate Piotr's code for text-selection
not working, of course

svn path=/branches/work/kde4/playground/graphics/okular/; revision=550022
2006-06-10 17:06:03 +00:00
Pino Toscano f41e458e7e recover well after zooming with mouse
svn path=/branches/work/kde4/playground/graphics/okular/; revision=549223
2006-06-07 20:24:32 +00:00
Pino Toscano 87b4f81c14 less deprecated
svn path=/branches/work/kde4/playground/graphics/okular/; revision=549206
2006-06-07 18:33:25 +00:00
Albert Astals Cid 68efb45a62 compile
svn path=/branches/work/kde4/playground/graphics/okular/; revision=548450
2006-06-05 15:47:35 +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 dceb1211ca less qt3_support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=547800
2006-06-03 13:01:15 +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
Pino Toscano b270842be1 SVN_SILENT fix comments
svn path=/branches/work/kde4/playground/graphics/okular/; revision=547486
2006-06-02 10:32:29 +00:00
Pino Toscano 3309ac8c7b two checks more
svn path=/branches/work/kde4/playground/graphics/okular/; revision=547485
2006-06-02 10:30:32 +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 8790d1d39c less deprecated (QString and QTimer)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=546056
2006-05-28 21:52:36 +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
Pino Toscano 59b267386c avoid using QString*, just use QString
svn path=/branches/work/kde4/playground/graphics/okular/; revision=544974
2006-05-26 14:32:35 +00:00
Albert Astals Cid cc33f5c01b that's what dirk really wanted to do
svn path=/branches/work/kde4/playground/graphics/okular/; revision=544695
2006-05-25 20:00:56 +00:00
Pino Toscano 924455d74c Sorry Dirk, but the fix you did makes okular not compilable for me
svn path=/branches/work/kde4/playground/graphics/okular/; revision=544446
2006-05-24 21:06:58 +00:00
Dirk Mueller b0e8f0bdca some crash prevention (CID 2216)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=544252
2006-05-24 08:52:16 +00:00
Albert Astals Cid e8fbf554c1 change text to reflect why copying is grayed out
Fix will be on oKular for KDE4
BUG: 124040

svn path=/branches/work/kde4/playground/graphics/okular/; revision=542596
2006-05-19 18:22:54 +00:00
Albert Astals Cid 33848a3ee8 The big poppler commit, we now don't use poppler but poppler-qt4 frontend, and that is GOOD
You need poppler from cvs as of today, i'll change the check to a bigger version number once a new poppler gets released
There are still some problems i think but i'm commiting to see if someone wants to help ;-)
Includes some EBN fixes by Christian Mueller

svn path=/branches/work/kde4/playground/graphics/okular/; revision=540404
2006-05-13 11:17:24 +00:00
Albert Astals Cid 057736fc40 fix a warning and two pixmap request that where missing the orientation parameter
svn path=/branches/work/kde4/playground/graphics/okular/; revision=539489
2006-05-10 19:33:15 +00:00
Albert Astals Cid 482355570d compile
svn path=/branches/work/kde4/playground/graphics/okular/; revision=538748
2006-05-08 19:00:23 +00:00
Albert Astals Cid 348b8683c0 fall thoigh commetn
svn path=/branches/work/kde4/playground/graphics/okular/; revision=533077
2006-04-23 15:49:14 +00:00
Pino Toscano f378bfa9ab Use a better way to invalidate the rects of the hidden PageViewItem's.
svn path=/branches/work/kde4/playground/graphics/okular/; revision=532961
2006-04-23 12:44:10 +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