Added icons for Text annotations (ake the 'page sybols'). Changed naming to

existing ones, updated 'tools.xml' with new names and made generator_pdf
parse pdf icon names as lowercase. Added SVG sources too for the icons.

- note that I suck as icon maker, so plz make good looking icons and don't
complain about these - :-))

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=405395
remotes/origin/kpdf-annotations
Enrico Ros 21 years ago
parent 96a28d59ac
commit 0beedebe01
  1. 5
      core/generator_pdf/generator_pdf.cpp
  2. 17
      ui/data/Makefile.am
  3. BIN
      ui/data/checkmark.png
  4. BIN
      ui/data/circle.png
  5. BIN
      ui/data/comment.png
  6. BIN
      ui/data/cross.png
  7. BIN
      ui/data/help.png
  8. BIN
      ui/data/highlight_green.png
  9. BIN
      ui/data/insert.png
  10. BIN
      ui/data/key.png
  11. BIN
      ui/data/newparagraph.png
  12. BIN
      ui/data/note.png
  13. BIN
      ui/data/paragraph.png
  14. BIN
      ui/data/rightarrow.png
  15. BIN
      ui/data/rightpointer.png
  16. BIN
      ui/data/sources/checkmark.svgz
  17. BIN
      ui/data/sources/circle.svgz
  18. BIN
      ui/data/sources/comment.svgz
  19. BIN
      ui/data/sources/cross.svgz
  20. BIN
      ui/data/sources/help.svgz
  21. BIN
      ui/data/sources/insert.svgz
  22. BIN
      ui/data/sources/key.svgz
  23. BIN
      ui/data/sources/newparagraph.svgz
  24. BIN
      ui/data/sources/note.svgz
  25. BIN
      ui/data/sources/paragraph.svgz
  26. BIN
      ui/data/sources/rightarrow.svgz
  27. BIN
      ui/data/sources/rightpointer.svgz
  28. BIN
      ui/data/sources/star.svgz
  29. BIN
      ui/data/sources/uparrow.svgz
  30. BIN
      ui/data/sources/upleftarrow.svgz
  31. BIN
      ui/data/star.png
  32. 0
      ui/data/tool_eraser.png
  33. 0
      ui/data/tool_hl_orange.png
  34. 0
      ui/data/tool_hl_pink.png
  35. 0
      ui/data/tool_hl_yellow.png
  36. 0
      ui/data/tool_ink_green.png
  37. 0
      ui/data/tool_note.png
  38. 21
      ui/data/tools.xml
  39. BIN
      ui/data/uparrow.png
  40. BIN
      ui/data/upleftarrow.png

@ -893,6 +893,11 @@ void PDFGenerator::addAnnotations( Page * pdfPage, KPDFPage * page )
t->textType = TextAnnotation::Linked;
// -> textIcon
XPDFReader::lookupName( annotDict, "Name", t->textIcon );
if ( !t->textIcon.isEmpty() )
{
t->textIcon = t->textIcon.lower();
t->textIcon.remove( ' ' );
}
// request for postprocessing window geometry
PostProcessText request;
request.textAnnotation = t;

@ -1,6 +1,15 @@
pics_DATA = highlight_green.png highlight_orange.png highlight_pink.png \
highlight_yellow.png pencil.png pinnote.png coprex-white.png
picsdir = $(kde_datadir)/kpdf/pics
# install annotation tool images
toolpicsdir = $(kde_datadir)/kpdf/pics
toolpics_DATA = tool_eraser.png tool_hl_orange.png tool_hl_pink.png \
tool_hl_yellow.png tool_ink_green.png tool_note.png
xml_DATA = tools.xml
# install annotation page images
annpicsdir = $(kde_datadir)/kpdf/pics
annpics_DATA = checkmark.png circle.png comment.png cross.png help.png \
insert.png key.png newparagraph.png note.png paragraph.png \
rightarrow.png rightpointer.png star.png uparrow.png \
upleftarrow.png
# install annotator xml tools description
xmldir = $(kde_datadir)/kpdf
xml_DATA = tools.xml

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

@ -17,47 +17,40 @@ Engine/Annotation Types [specific attributes]:
Geom
-->
<annotatingTools>
<tool id="1" name="Yellow Highlighter" pixmap="highlight_yellow">
<tool id="1" name="Yellow Highlighter" pixmap="tool_hl_yellow">
<tooltip>this ..</tooltip>
<engine type="SmoothLine" color="#FFFF00">
<annotation type="Highlight" color="#FFFF00" />
</engine>
<shortcut>1</shortcut>
</tool>
<tool id="2" name="Pink Highlighter" pixmap="highlight_pink">
<tool id="2" name="Pink Highlighter" pixmap="tool_hl_pink">
<tooltip>.. is ..</tooltip>
<engine type="SmoothLine" color="#FF0080">
<annotation type="Ink" color="#FF0080" />
</engine>
<shortcut>2</shortcut>
</tool>
<tool id="3" name="Yellow Highlighter" pixmap="highlight_yellow">
<tooltip>.. a ..</tooltip>
<engine type="TwoPoints" color="#F8FF00" block="true">
<annotation type="Highlight" color="#F8FF00" />
</engine>
<shortcut>3</shortcut>
</tool>
<tool id="4" name="note" pixmap="pinnote">
<tool id="3" name="note" pixmap="pinnote">
<tooltip>.. tooltip ..</tooltip>
<engine type="PickPoint" color="#FF00FF" hoverIcon="pinnote">
<engine type="PickPoint" color="#FF00FF" hoverIcon="too_note">
<annotation type="Text" color="#FF00FF" />
</engine>
</tool>
<tool id="5" name="Straight Yellow Line" pixmap="color_line">
<tool id="4" name="Straight Yellow Line" pixmap="tool_ink_green">
<tooltip>.. test</tooltip>
<engine type="TwoPoints" color="#FFE000">
<annotation type="Line" width="4" color="#FFE000" />
</engine>
<shortcut>5</shortcut>
</tool>
<tool id="6" name="Arrowed Black Line" pixmap="color_line">
<tool id="5" name="Arrowed Black Line" pixmap="color_line">
<engine type="TwoPoints">
<annotation type="Line" />
</engine>
<shortcut>6</shortcut>
</tool>
<tool id="7" name="Warning Stamp" pixmap="messagebox_warning">
<tool id="6" name="Warning Stamp" pixmap="messagebox_warning">
<engine type="PickPoint" hoverIcon="messagebox_warning">
<annotation type="Stamp" icon="messagebox_warning" />
</engine>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Loading…
Cancel
Save