Commit graph

194 commits

Author SHA1 Message Date
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