Commit graph

322 commits

Author SHA1 Message Date
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
Pino Toscano
c178ed6392 if we're constructing a polygon (closed), then really set that it is closed instead of closign manually adding the first point to the path
svn path=/trunk/playground/graphics/okular/; revision=583633
2006-09-12 20:47:36 +00:00
Pino Toscano
c3a4b37301 Annotations:
start a basic system for the annotation properties editing. Add a base class that will act as "interface", and a factory to create the right subclass depending on the annotation type.
Adapt the Annotation Properties dialog to interact with the annotation widget.
Add the editing support for Stamp Annotation (but the artwork are missing, grrr)

svn path=/trunk/playground/graphics/okular/; revision=583620
2006-09-12 20:21:34 +00:00
Pino Toscano
aabe548eac when we have no color set for a Linked TextAnnotation, don't try to colorize the icon with a valid color, but leave it gray instead
svn path=/trunk/playground/graphics/okular/; revision=583618
2006-09-12 20:15:28 +00:00
Pino Toscano
05d97ede77 Annotations:
- make the PagePainter draw all the points specified in a LineAnnotation, as it can represent also a Polygon or Polyline annotation
- automatically read the annotation dom element in the base AnnotatorEngine class, so every engine won't need to read it on its own
- properly reset some vars in the engines
- when constructing a Stamp annotation, use the right 'icon' attribute of the annotation element (and not the icon of the engine)
- renamed the TwoPointsEngine into PolyLineEngine, and abstracted to construct a polygon/polyline with a specified number of sides
- added a polygon button on the annotation toolbar
- check better if the annotator has to paint something

svn path=/trunk/playground/graphics/okular/; revision=583102
2006-09-11 11:51:10 +00:00
Pino Toscano
3578b4b9e8 Annotations:
- improve the calculation of the bounding rect for freetext annotations
- fix the drawing of the pixmap associated with the PickPointEngine
- implement the creation of stamp annotations

svn path=/trunk/playground/graphics/okular/; revision=582808
2006-09-10 16:10:40 +00:00
Pino Toscano
0395938c7a move the drawing of the TextAnnotation::InPlace from the unbuffered annotations to the buffered ones: this allow us to draw using the specified opacity, and later we could easily draw the callout
svn path=/trunk/playground/graphics/okular/; revision=582624
2006-09-09 22:25:33 +00:00
Albert Astals Cid
5d7dd80086 fordwardport r582532
svn path=/trunk/playground/graphics/okular/; revision=582534
2006-09-09 17:31:36 +00:00
Pino Toscano
53fa802939 now the PickPointEngine can draw the pixmap either in the center or in the bottom-right part of the cursor
svn path=/trunk/playground/graphics/okular/; revision=582293
2006-09-08 23:06:22 +00:00
Pino Toscano
ecf3fec2d1 the standard icon names as specified in the PDF Reference are CamelCase, so better lowering them when loading their icons
svn path=/trunk/playground/graphics/okular/; revision=582292
2006-09-08 23:02:55 +00:00
Pino Toscano
b66b54a9c9 very small fixes about annotations
svn path=/trunk/playground/graphics/okular/; revision=582276
2006-09-08 21:08:51 +00:00
Pino Toscano
d77701bc61 visible texts need to be i18n'ed
svn path=/trunk/playground/graphics/okular/; revision=581267
2006-09-05 20:40:39 +00:00
Pino Toscano
08e3a7de21 improve a bit the annotation dialog:
- use two standard kde widgets for the color selection and for the opacity slider
- clean up the code by storing only what we need to store, and by #include'ing most of the stuff in the cpp only

svn path=/trunk/playground/graphics/okular/; revision=581263
2006-09-05 20:22:19 +00:00
Dirk Mueller
3c092edf3f if tmp can be null then m_current can be as well (CID 2644)
svn path=/trunk/playground/graphics/okular/; revision=580808
2006-09-04 14:57:39 +00:00
Tobias Koenig
90140c1479 warnings--
svn path=/trunk/playground/graphics/okular/; revision=578892
2006-08-30 14:17:22 +00:00
Tobias Koenig
69a72ebbe8 We have to use setFixedSize() here, otherwise the layout will set a height
of 0 for the ThumbnailWidget => ThumbnailWidget::region() is empty => QWidget::repaint
won't paint the content of the widget.

Now the thumbnails are showed on startup again and when the orientation is
changed the layout of the thumbnails is adapted as well...

svn path=/trunk/playground/graphics/okular/; revision=578852
2006-08-30 12:32:58 +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
e207d0d6f4 Note&TextBox annotation remove operation enabled
svn path=/trunk/playground/graphics/okular/; revision=571630
2006-08-10 06:32:03 +00:00
Pino Toscano
6e53be7386 fix crash when the TwoPointsEngine successfully creates an annotation
CCMAIL: Chu Xiaodong <xiaodongchu@gmail.com>

svn path=/trunk/playground/graphics/okular/; revision=571434
2006-08-09 15:28:29 +00:00
Pino Toscano
f26c31409a less qt3_support
svn path=/trunk/playground/graphics/okular/; revision=571390
2006-08-09 15:12:10 +00:00
Pino Toscano
9531690655 source files don't need to be executable
svn path=/trunk/playground/graphics/okular/; revision=571247
2006-08-08 21:59:29 +00:00
Chu Xiaodong
521cec3577 added missing file, sorry :-P
svn path=/trunk/playground/graphics/okular/; revision=571135
2006-08-08 15:42:12 +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
Pino Toscano
61565f3f1b KIO::Job -> KJob
svn path=/trunk/playground/graphics/okular/; revision=565146
2006-07-22 14:38:11 +00:00
Albert Astals Cid
50cef946b2 qt4 port
svn path=/trunk/playground/graphics/okular/; revision=564985
2006-07-21 23:03:31 +00:00
Pino Toscano
de91a0e587 SVN_SILENT spell check
svn path=/trunk/playground/graphics/okular/; revision=564873
2006-07-21 15:57:26 +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
25eb77c1de some fixes according to EBN:
- fix single char addition to QString's
- some spell checking

svn path=/trunk/playground/graphics/okular/; revision=563891
2006-07-18 19:06:01 +00:00
Pino Toscano
14b1e51907 assign shortcuts and icons to the tabs
svn path=/trunk/playground/graphics/okular/; revision=563360
2006-07-17 11:52:41 +00:00
Pino Toscano
aafa09c535 for some strange reason the QSortFilterProxyModel seems crashy - so #ifdef it for the moment
svn path=/trunk/playground/graphics/okular/; revision=563356
2006-07-17 11:30:58 +00:00
Pino Toscano
e5b044eb3c SVN_SILENT reindent to four-spaces
svn path=/trunk/playground/graphics/okular/; revision=562589
2006-07-15 10:23:43 +00:00
Pino Toscano
1ba01ac6f1 Refactor a bit how ObjectRect works: now it's an independent class, that keeps the shape of the "kept" object using a QPainterPath [the qreal version to QRegion].
Modified the constructors to specify if a rect represents a rectangular region or an elliptic one; added a new one to create a region defined using a polygon.
Adapted to the new API the generators that support links (all but the DjVu one - will be adapted and improved soon).

svn path=/trunk/playground/graphics/okular/; revision=561890
2006-07-13 15:03:18 +00:00
Pino Toscano
bfc6133c9c update a thumbnail only if its visible area rect is changed
svn path=/trunk/playground/graphics/okular/; revision=561676
2006-07-12 22:00:46 +00:00
Pino Toscano
0b3a61356b use the own layout direction, no warning
svn path=/trunk/playground/graphics/okular/; revision=561531
2006-07-12 12:00:40 +00:00
Pino Toscano
cc447bd3dc use the layout direction of the parent treewidget
svn path=/trunk/playground/graphics/okular/; revision=561525
2006-07-12 11:16:20 +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
Chu Xiaodong
88b724dbf1 Text annotation and Straight line annotation added
svn path=/trunk/playground/graphics/okular/; revision=559954
2006-07-08 17:52:42 +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
2d41c4459b clean up the CMakeLists.txt files from the auto* stuff
svn path=/trunk/playground/graphics/okular/; revision=559521
2006-07-07 15:08:46 +00:00
Albert Astals Cid
3e620c0918 the very slight gain in looks is not worth the porting cost
svn path=/trunk/playground/graphics/okular/; revision=559181
2006-07-06 18:21:35 +00:00