diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-10 01:02:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-10 01:02:50 +0000 |
commit | c66249b79aa9bfa0924494adcd5345b5b1244b0c (patch) | |
tree | 19a77c57cc41d8b522554fbde0c36d6f20d7dc7b /src/gvdirpart | |
download | gwenview-c66249b79aa9bfa0924494adcd5345b5b1244b0c.tar.gz gwenview-c66249b79aa9bfa0924494adcd5345b5b1244b0c.zip |
Added old abandoned KDE3 version of gwenview
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1088034 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvdirpart')
-rw-r--r-- | src/gvdirpart/Makefile.am | 23 | ||||
-rw-r--r-- | src/gvdirpart/cr16-app-gvdirpart.png | bin | 0 -> 768 bytes | |||
-rw-r--r-- | src/gvdirpart/cr22-app-gvdirpart.png | bin | 0 -> 1111 bytes | |||
-rw-r--r-- | src/gvdirpart/cr32-app-gvdirpart.png | bin | 0 -> 1823 bytes | |||
-rw-r--r-- | src/gvdirpart/crsc-app-gvdirpart.svg | 587 | ||||
-rw-r--r-- | src/gvdirpart/gvdirpart.cpp | 288 | ||||
-rw-r--r-- | src/gvdirpart/gvdirpart.desktop | 44 | ||||
-rw-r--r-- | src/gvdirpart/gvdirpart.h | 174 | ||||
-rw-r--r-- | src/gvdirpart/gvdirpart.rc | 46 | ||||
-rw-r--r-- | src/gvdirpart/gvdirpartconfig.kcfg | 10 | ||||
-rw-r--r-- | src/gvdirpart/gvdirpartconfig.kcfgc | 4 | ||||
-rw-r--r-- | src/gvdirpart/hi16-app-gvdirpart.png | bin | 0 -> 828 bytes | |||
-rw-r--r-- | src/gvdirpart/hi22-app-gvdirpart.png | bin | 0 -> 1259 bytes | |||
-rw-r--r-- | src/gvdirpart/hi32-app-gvdirpart.png | bin | 0 -> 1839 bytes | |||
-rw-r--r-- | src/gvdirpart/hisc-app-gvdirpart.svg | 226 |
15 files changed, 1402 insertions, 0 deletions
diff --git a/src/gvdirpart/Makefile.am b/src/gvdirpart/Makefile.am new file mode 100644 index 0000000..039267d --- /dev/null +++ b/src/gvdirpart/Makefile.am @@ -0,0 +1,23 @@ +INCLUDES = -I$(srcdir)/.. $(all_includes) + +# These are not really libraries, but modules dynamically opened. +# So they should be installed in kde_module_dir, which is usually $kde_prefix/lib/kde3 +kde_module_LTLIBRARIES = libgvdirpart.la + +libgvdirpart_la_SOURCES = gvdirpart.cpp gvdirpartconfig.kcfgc +libgvdirpart_la_LIBADD = $(LIB_KPARTS) ../gvcore/libgwenviewcore.la +libgvdirpart_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) + +# Automatically generate moc files +METASOURCES = AUTO + +# Install the XML-GUI file to its correct location +gvdir = $(kde_datadir)/gvdirpart +gv_DATA = gvdirpart.rc + +# Install the .desktop file into the kde_services directory +kde_services_DATA = gvdirpart.desktop + +KDE_ICON = AUTO + +kde_kcfg_DATA = gvdirpartconfig.kcfg diff --git a/src/gvdirpart/cr16-app-gvdirpart.png b/src/gvdirpart/cr16-app-gvdirpart.png Binary files differnew file mode 100644 index 0000000..d49bc5b --- /dev/null +++ b/src/gvdirpart/cr16-app-gvdirpart.png diff --git a/src/gvdirpart/cr22-app-gvdirpart.png b/src/gvdirpart/cr22-app-gvdirpart.png Binary files differnew file mode 100644 index 0000000..00eaab2 --- /dev/null +++ b/src/gvdirpart/cr22-app-gvdirpart.png diff --git a/src/gvdirpart/cr32-app-gvdirpart.png b/src/gvdirpart/cr32-app-gvdirpart.png Binary files differnew file mode 100644 index 0000000..1a68bf4 --- /dev/null +++ b/src/gvdirpart/cr32-app-gvdirpart.png diff --git a/src/gvdirpart/crsc-app-gvdirpart.svg b/src/gvdirpart/crsc-app-gvdirpart.svg new file mode 100644 index 0000000..c470051 --- /dev/null +++ b/src/gvdirpart/crsc-app-gvdirpart.svg @@ -0,0 +1,587 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" +"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> +<!-- Created with Sodipodi ("http://www.sodipodi.com/") --> +<svg + id="svg602" + sodipodi:version="0.34" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="580pt" + height="580pt" + xml:space="preserve" + sodipodi:docbase="/home/aurelien/kde/trunk/extragear/graphics/gwenview/gvdirpart" + sodipodi:docname="/home/aurelien/kde/trunk/extragear/graphics/gwenview/gvdirpart/hisc-app-gvdirpart.svg"><defs + id="defs604"><linearGradient + id="linearGradient917"><stop + style="stop-color:#4ea4eb;stop-opacity:1;" + offset="0" + id="stop918" /><stop + style="stop-color:#0032a4;stop-opacity:1;" + offset="1" + id="stop919" /></linearGradient><linearGradient + id="linearGradient913"><stop + style="stop-color:#ffffff;stop-opacity:1;" + offset="0" + id="stop914" /><stop + style="stop-color:#cdcbd8;stop-opacity:1;" + offset="1" + id="stop915" /></linearGradient><linearGradient + id="linearGradient611"><stop + style="stop-color:#8aceff;stop-opacity:1;" + offset="0" + id="stop612" /><stop + style="stop-color:#0349ff;stop-opacity:1;" + offset="1" + id="stop613" /></linearGradient><linearGradient + xlink:href="#linearGradient611" + id="linearGradient614" /><linearGradient + xlink:href="#linearGradient913" + id="linearGradient912" + x1="0.42857143" + y1="0.4296875" + x2="1.21428573" + y2="1.1171875" /><linearGradient + xlink:href="#linearGradient917" + id="linearGradient916" + x1="4.06976789e-2" + y1="0.4193548" + x2="0.98837221" + y2="0.4258064" /><radialGradient + xlink:href="#linearGradient913" + id="radialGradient920" + cx="0.13736264" + cy="0.1328125" + r="2.06871057" + fx="0.13736264" + fy="0.1328125" /></defs><sodipodi:namedview + id="base" /><path + style="font-size:12;fill:#6a6a6a;fill-rule:evenodd;stroke:none;stroke-opacity:1;stroke-width:20;stroke-dasharray:none;fill-opacity:0.1722;" + d="M 132.3919 95.53742 C 87.65671 95.53742 51.69955 132.1676 51.69955 177.6573 L 51.69955 678.0391 L 713.1688 678.0391 L 713.1688 177.6573 C 713.1688 132.1676 677.1466 95.53742 632.4115 95.53742 L 132.3919 95.53742 z " + id="path617" + sodipodi:nodetypes="ccccccc" /><path + style="font-size:12;fill:#000000;fill-rule:evenodd;stroke:none;stroke-opacity:1;stroke-width:20;stroke-dasharray:none;fill-opacity:0.1833;" + d="M 112.5356 70.68678 C 67.80041 70.68678 31.84324 107.3168 31.84324 152.8065 L 31.84324 653.1883 L 693.3126 653.1883 L 693.3126 152.8065 C 693.3126 107.3168 657.2903 70.68678 612.5552 70.68678 L 112.5356 70.68678 z " + id="path616" + sodipodi:nodetypes="ccccccc" /><path + style="font-size:12;fill:url(#linearGradient614);fill-rule:evenodd;stroke:url(#linearGradient916);stroke-width:20.49727;" + d="M 74.43997 57.87444 C 30.25117 57.87444 9.820701 81.25965 9.820701 125.2094 L 11.32945 620.6578 L 664.7194 620.6578 L 664.7194 125.2094 C 664.7194 81.25965 641.2072 57.87444 597.0184 57.87444 L 74.43997 57.87444 z " + id="path610" + sodipodi:nodetypes="ccccccc" /><rect + style="font-size:12;fill:url(#radialGradient920);fill-rule:evenodd;stroke-width:1;fill-opacity:1;" + id="rect615" + width="634.247192" + height="459.997193" + x="20.5543118" + y="156.400013" /><g + id="g766" + transform="matrix(3.950886,0,0,3.950887,85.53951,222.098)"><g + id="Layer_1_2_"><g + id="g768"><linearGradient + id="XMLID_1_" + gradientUnits="userSpaceOnUse" + x1="20.8491" + y1="8.8062" + x2="20.8491" + y2="1.6043"><stop + offset="0" + style="stop-color:rgb(158,158,158)" + id="stop770" /><stop + offset="1" + style="stop-color:rgb(97,97,97)" + id="stop771" /></linearGradient><path + d="M20.849 8.063 C15.178 8.063 10.58 6.374 10.58 4.292 C10.58 2.209 15.178 0.521 20.849 0.521 C26.522 0.521 31.119 2.209 31.119 4.292 C31.119 6.375 26.521 8.063 20.849 8.063 z" + style="fill:url(#XMLID_1_)" + id="path772" /><linearGradient + id="XMLID_2_" + gradientUnits="userSpaceOnUse" + x1="30.7832" + y1="6.0205" + x2="121.325" + y2="105.692"><stop + offset="0.0337" + style="stop-color:rgb(255,255,255)" + id="stop774" /><stop + offset="1" + style="stop-color:rgb(171,171,171)" + id="stop775" /></linearGradient><path + d="M118.408 0.548 L67.143 0.548 C64.399 0.548 62.108 2.368 61.337 4.857 L6.655 4.857 C3.281 4.857 0.548 7.592 0.548 10.965 L0.548 75.284 C0.548 78.658 3.282 81.391 6.655 81.391 L118.408 81.391 C121.783 81.391 124.516 78.658 124.516 75.284 L124.516 6.656 C124.517 3.284 121.783 0.548 118.408 0.548 z" + style="fill:url(#XMLID_2_)" + id="path776" /><g + id="g777"><linearGradient + id="XMLID_3_" + gradientUnits="userSpaceOnUse" + x1="116.971" + y1="16.1201" + x2="103.088" + y2="3.4219"><stop + offset="0.0337" + style="stop-color:rgb(255,255,255)" + id="stop779" /><stop + offset="1" + style="stop-color:rgb(171,171,171)" + id="stop780" /></linearGradient><path + d="M118.078 14.981 C118.078 15.489 117.698 15.902 117.228 15.902 L105.329 15.902 C104.859 15.902 104.479 15.489 104.479 14.981 L104.479 6.846 C104.479 6.337 104.859 5.925 105.329 5.925 L117.228 5.925 C117.698 5.925 118.078 6.337 118.078 6.846 z" + style="fill:url(#XMLID_3_)" + id="path781" /><radialGradient + id="XMLID_4_" + cx="110.838" + cy="84.8354" + r="8.3752" + fx="110.838" + fy="84.8354" + gradientTransform="matrix(1 0 0 1.0845 0 -74.203)" + gradientUnits="userSpaceOnUse"><stop + offset="0" + style="stop-color:rgb(133,202,255)" + id="stop783" /><stop + offset="1" + style="stop-color:rgb(0,61,169)" + id="stop784" /></radialGradient><path + d="M117.567 14.674 C117.567 15.146 117.215 15.527 116.782 15.527 L105.776 15.527 C105.343 15.527 104.991 15.146 104.991 14.674 L104.991 7.153 C104.991 6.681 105.344 6.3 105.776 6.3 L116.782 6.3 C117.216 6.3 117.567 6.681 117.567 7.153 z" + style="fill:url(#XMLID_4_)" + id="path785" /><linearGradient + id="XMLID_5_" + gradientUnits="userSpaceOnUse" + x1="111.279" + y1="7.2524" + x2="111.279" + y2="14.6398"><stop + offset="0%" + style="stop-color:rgb(255,255,255)" + id="stop787" /><stop + offset="100%" + style="stop-opacity:0;stop-color:rgb(255,255,255)" + id="stop788" /></linearGradient><path + a:adobe-blending-mode="screen" + d="M116.373 6.565 L106.185 6.565 C105.782 6.565 105.456 6.919 105.456 7.353 L105.456 13.157 C106.719 13.297 108.938 13.184 111.189 11.348 C113.659 9.333 115.983 8.599 117.1 8.346 L117.1 7.353 C117.102 6.918 116.776 6.565 116.373 6.565 z" + style="fill:url(#XMLID_5_)" + id="path789" /></g><g + id="g790"><linearGradient + id="XMLID_6_" + gradientUnits="userSpaceOnUse" + x1="100.291" + y1="12.729" + x2="95.0383" + y2="7.9243"><stop + offset="0.0337" + style="stop-color:rgb(255,255,255)" + id="stop792" /><stop + offset="1" + style="stop-color:rgb(171,171,171)" + id="stop793" /></linearGradient><path + d="M98.136 7.922 C96.462 7.922 95.101 9.195 95.101 10.759 C95.101 12.324 96.462 13.595 98.136 13.595 C99.812 13.595 101.174 12.324 101.174 10.759 C101.174 9.195 99.812 7.922 98.136 7.922 z" + style="fill:url(#XMLID_6_)" + id="path794" /><g + id="g795"><g + id="g796"><linearGradient + id="XMLID_7_" + gradientUnits="userSpaceOnUse" + x1="98.1377" + y1="13.5942" + x2="98.1377" + y2="9.0691"><stop + offset="0" + style="stop-color:rgb(158,158,158)" + id="stop798" /><stop + offset="1" + style="stop-color:rgb(97,97,97)" + id="stop799" /></linearGradient><path + d="M100.558 10.759 C100.558 12.008 99.473 13.02 98.136 13.02 C96.801 13.02 95.717 12.008 95.717 10.759 C95.717 9.509 96.801 8.498 98.136 8.499 C99.474 8.499 100.558 9.51 100.558 10.759 z" + style="fill:url(#XMLID_7_)" + id="path800" /><path + d="M95.604 10.759 C95.604 12.066 96.74 13.127 98.136 13.127 C99.536 13.127 100.674 12.065 100.672 10.759 C100.674 9.453 99.536 8.388 98.136 8.388 C96.739 8.389 95.603 9.453 95.604 10.759 zM95.832 10.759 C95.832 9.572 96.865 8.605 98.136 8.605 C99.408 8.605 100.442 9.573 100.442 10.758 C100.442 11.946 99.409 12.911 98.136 12.911 C96.865 12.911 95.832 11.946 95.832 10.759 z" + style="fill:url(#XMLID_7_)" + id="path801" /><path + d="M98.147 10.823 C98.99 10.24 99.78 10.044 100.128 9.981 C99.794 9.277 99.04 8.787 98.163 8.787 C96.974 8.787 96.012 9.686 96.012 10.794 C96.012 10.969 96.034 11.137 96.078 11.3 C96.429 11.359 97.281 11.42 98.147 10.823 z" + style="fill:url(#XMLID_7_)" + id="path802" /></g><g + id="g803"><linearGradient + id="XMLID_10_" + gradientUnits="userSpaceOnUse" + x1="878.938" + y1="-1644.46" + x2="878.938" + y2="-1647.14" + gradientTransform="matrix(1 0 0 1 -780.801 1657.79)"><stop + offset="0" + style="stop-color:rgb(255,255,255)" + id="stop805" /><stop + offset="1" + style="stop-color:rgb(189,189,189)" + id="stop806" /></linearGradient><path + d="M100.558 10.759 C100.558 12.008 99.473 13.02 98.136 13.02 C96.801 13.02 95.717 12.008 95.717 10.759 C95.717 9.509 96.801 8.498 98.136 8.499 C99.474 8.499 100.558 9.51 100.558 10.759 z" + style="fill:url(#XMLID_10_)" + id="path807" /><linearGradient + id="XMLID_11_" + gradientUnits="userSpaceOnUse" + x1="98.1377" + y1="13.5942" + x2="98.1377" + y2="9.0692"><stop + offset="0" + style="stop-color:rgb(158,158,158)" + id="stop809" /><stop + offset="1" + style="stop-color:rgb(97,97,97)" + id="stop810" /><a:midPointStop + offset="0" + style="stop-color:#9E9E9E" + id="midPointStop811" /><a:midPointStop + offset="0.5" + style="stop-color:#9E9E9E" + id="midPointStop812" /><a:midPointStop + offset="1" + style="stop-color:#616161" + id="midPointStop813" /></linearGradient><path + d="M95.604 10.759 C95.604 12.066 96.74 13.127 98.136 13.127 C99.536 13.127 100.674 12.065 100.672 10.759 C100.674 9.453 99.536 8.388 98.136 8.388 C96.739 8.389 95.603 9.453 95.604 10.759 zM95.832 10.759 C95.832 9.572 96.865 8.605 98.136 8.605 C99.408 8.605 100.442 9.573 100.442 10.758 C100.442 11.946 99.409 12.911 98.136 12.911 C96.865 12.911 95.832 11.946 95.832 10.759 z" + style="fill:url(#XMLID_11_)" + id="path814" /><linearGradient + id="XMLID_12_" + gradientUnits="userSpaceOnUse" + x1="878.871" + y1="-1648.51" + x2="878.871" + y2="-1646.26" + gradientTransform="matrix(1 0 0 1 -780.801 1657.79)"><stop + offset="0" + style="stop-color:rgb(255,255,255)" + id="stop816" /><stop + offset="1" + style="stop-color:rgb(207,207,207)" + id="stop817" /><a:midPointStop + offset="0" + style="stop-color:#FFFFFF" + id="midPointStop818" /><a:midPointStop + offset="0.5" + style="stop-color:#FFFFFF" + id="midPointStop819" /><a:midPointStop + offset="1" + style="stop-color:#CFCFCF" + id="midPointStop820" /></linearGradient><path + d="M98.147 10.823 C98.99 10.24 99.78 10.044 100.128 9.981 C99.794 9.277 99.04 8.787 98.163 8.787 C96.974 8.787 96.012 9.686 96.012 10.794 C96.012 10.969 96.034 11.137 96.078 11.3 C96.429 11.359 97.281 11.42 98.147 10.823 z" + style="fill:url(#XMLID_12_)" + id="path821" /></g></g></g><linearGradient + id="XMLID_13_" + gradientUnits="userSpaceOnUse" + x1="1.9604" + y1="40.4526" + x2="94.542" + y2="40.9259"><stop + offset="0.0337" + style="stop-color:rgb(255,255,255)" + id="stop823" /><stop + offset="1" + style="stop-color:rgb(171,171,171)" + id="stop824" /></linearGradient><path + d="M0.598 72.876 L78.156 72.876 L78.156 8.411 L0.598 8.411 z" + style="fill:url(#XMLID_13_)" + id="path825" /><linearGradient + id="XMLID_14_" + gradientUnits="userSpaceOnUse" + x1="11.3472" + y1="4.8003" + x2="70.7822" + y2="64.236"><stop + offset="0" + style="stop-color:rgb(158,158,158)" + id="stop827" /><stop + offset="1" + style="stop-color:rgb(97,97,97)" + id="stop828" /></linearGradient><path + d="M76.78 40.929 L76.78 24.136 L1.048 24.136 L1.048 70.892 L123.866 70.892 L123.866 40.929 z" + style="opacity:0.7;fill:url(#XMLID_14_)" + id="path829" /><path + d="M33.185 23.986 L32.226 23.986 L32.226 70.83 L33.185 70.83 z" + style="opacity:0.5;fill:rgb(255,255,255)" + id="path830" /><linearGradient + id="XMLID_15_" + gradientUnits="userSpaceOnUse" + x1="18.3843" + y1="34.1831" + x2="35.1396" + y2="50.9386"><stop + offset="0" + style="stop-color:rgb(158,158,158)" + id="stop832" /><stop + offset="1" + style="stop-color:rgb(97,97,97)" + id="stop833" /></linearGradient><path + d="M32.089 23.986 L31.129 23.986 L31.129 70.83 L32.089 70.83 z" + style="opacity:0.7;fill:url(#XMLID_15_)" + id="path834" /><path + d="M124.769 72.857 L124.769 71.897 L0.594 71.897 L0.594 72.857 z" + style="opacity:0.5;fill:rgb(255,255,255)" + id="path835" /><linearGradient + id="XMLID_16_" + gradientUnits="userSpaceOnUse" + x1="406.499" + y1="-369.414" + x2="450.359" + y2="-325.553" + gradientTransform="matrix(0 1 -1 0 -272.114 -369.837)"><stop + offset="0" + style="stop-color:rgb(158,158,158)" + id="stop837" /><stop + offset="1" + style="stop-color:rgb(97,97,97)" + id="stop838" /></linearGradient><path + d="M124.769 71.76 L124.769 70.8 L0.594 70.8 L0.594 71.76 z" + style="opacity:0.7;fill:url(#XMLID_16_)" + id="path839" /><g + id="g840"><linearGradient + id="XMLID_17_" + gradientUnits="userSpaceOnUse" + x1="60.6079" + y1="23.2007" + x2="103.736" + y2="70.6773"><stop + offset="0.0337" + style="stop-color:rgb(255,255,255)" + id="stop842" /><stop + offset="1" + style="stop-color:rgb(171,171,171)" + id="stop843" /></linearGradient><path + d="M108.418 40.411 C108.418 58.182 94.014 72.588 76.24 72.588 C58.469 72.588 44.063 58.182 44.063 40.411 C44.063 22.638 58.47 8.231 76.24 8.231 C94.014 8.231 108.418 22.638 108.418 40.411 z" + style="fill:url(#XMLID_17_)" + id="path844" /><linearGradient + id="XMLID_18_" + gradientUnits="userSpaceOnUse" + x1="76.2402" + y1="79.2544" + x2="76.2402" + y2="17.2782"><stop + offset="0" + style="stop-color:rgb(158,158,158)" + id="stop846" /><stop + offset="1" + style="stop-color:rgb(97,97,97)" + id="stop847" /></linearGradient><path + d="M43.789 40.411 C43.789 58.304 58.347 72.862 76.24 72.862 C94.133 72.862 108.691 58.304 108.691 40.411 C108.691 22.516 94.133 7.958 76.24 7.958 C58.347 7.958 43.789 22.516 43.789 40.411 zM44.337 40.411 C44.337 22.818 58.649 8.505 76.24 8.505 C93.832 8.505 108.143 22.818 108.143 40.411 C108.143 58.002 93.831 72.314 76.24 72.314 C58.649 72.314 44.337 58.002 44.337 40.411 z" + style="fill:url(#XMLID_18_)" + id="path848" /><linearGradient + id="XMLID_19_" + gradientUnits="userSpaceOnUse" + x1="54.8203" + y1="40.3008" + x2="107.822" + y2="40.5717"><stop + offset="0.0337" + style="stop-color:rgb(255,255,255)" + id="stop850" /><stop + offset="1" + style="stop-color:rgb(171,171,171)" + id="stop851" /></linearGradient><path + d="M98.535 40.411 C98.535 52.724 88.554 62.704 76.24 62.704 C63.927 62.704 53.945 52.724 53.945 40.411 C53.945 28.096 63.927 18.116 76.24 18.116 C88.554 18.116 98.535 28.096 98.535 40.411 z" + style="fill:url(#XMLID_19_)" + id="path852" /><linearGradient + id="XMLID_20_" + gradientUnits="userSpaceOnUse" + x1="76.2402" + y1="67.395" + x2="76.2402" + y2="24.3415"><stop + offset="0" + style="stop-color:rgb(158,158,158)" + id="stop854" /><stop + offset="1" + style="stop-color:rgb(97,97,97)" + id="stop855" /><a:midPointStop + offset="0" + style="stop-color:#9E9E9E" + id="midPointStop856" /><a:midPointStop + offset="0.5" + style="stop-color:#9E9E9E" + id="midPointStop857" /><a:midPointStop + offset="1" + style="stop-color:#616161" + id="midPointStop858" /></linearGradient><path + d="M53.698 40.411 C53.698 52.841 63.811 62.953 76.24 62.953 C88.672 62.953 98.783 52.841 98.783 40.411 C98.783 27.98 88.672 17.866 76.24 17.866 C63.811 17.866 53.698 27.98 53.698 40.411 zM54.195 40.411 C54.195 28.253 64.085 18.364 76.24 18.364 C88.397 18.364 98.286 28.254 98.286 40.411 C98.286 52.567 88.397 62.456 76.24 62.456 C64.085 62.457 54.195 52.567 54.195 40.411 z" + style="fill:url(#XMLID_20_)" + id="path859" /><linearGradient + id="XMLID_21_" + gradientUnits="userSpaceOnUse" + x1="50.2085" + y1="58.3423" + x2="79.372" + y2="38.255"><stop + offset="0.0337" + style="stop-color:rgb(255,255,255)" + id="stop861" /><stop + offset="1" + style="stop-color:rgb(153,153,153)" + id="stop862" /></linearGradient><path + d="M95.883 40.411 C95.883 51.259 87.089 60.052 76.24 60.052 C65.392 60.052 56.599 51.259 56.599 40.411 C56.599 29.561 65.392 20.768 76.24 20.768 C87.089 20.768 95.883 29.561 95.883 40.411 z" + style="fill:url(#XMLID_21_)" + id="path863" /><linearGradient + id="XMLID_22_" + gradientUnits="userSpaceOnUse" + x1="60.4619" + y1="40.3301" + x2="99.5039" + y2="40.5297"><stop + offset="0.0337" + style="stop-color:rgb(255,255,255)" + id="stop865" /><stop + offset="1" + style="stop-color:rgb(171,171,171)" + id="stop866" /><a:midPointStop + offset="0.0337" + style="stop-color:#FFFFFF" + id="midPointStop867" /><a:midPointStop + offset="0.5" + style="stop-color:#FFFFFF" + id="midPointStop868" /><a:midPointStop + offset="1" + style="stop-color:#ABABAB" + id="midPointStop869" /></linearGradient><path + d="M92.663 40.411 C92.663 49.48 85.31 56.833 76.24 56.833 C67.172 56.833 59.818 49.479 59.818 40.411 C59.818 31.34 67.172 23.987 76.24 23.987 C85.311 23.987 92.663 31.34 92.663 40.411 z" + style="fill:url(#XMLID_22_)" + id="path870" /><linearGradient + id="XMLID_23_" + gradientUnits="userSpaceOnUse" + x1="76.2402" + y1="62.2417" + x2="76.2402" + y2="43.7143"><stop + offset="0.1685" + style="stop-color:rgb(255,255,255)" + id="stop872" /><stop + offset="1" + style="stop-color:rgb(54,54,54)" + id="stop873" /></linearGradient><path + d="M89.829 40.411 C89.829 47.916 83.748 53.998 76.24 53.998 C68.734 53.998 62.651 47.916 62.651 40.411 C62.651 32.904 68.734 26.82 76.24 26.82 C83.748 26.82 89.829 32.904 89.829 40.411 z" + style="fill:url(#XMLID_23_)" + id="path874" /><linearGradient + id="XMLID_24_" + gradientUnits="userSpaceOnUse" + x1="76.2402" + y1="60.3413" + x2="76.2402" + y2="43.4273"><stop + offset="0%" + style="stop-color:rgb(255,255,255)" + id="stop876" /><stop + offset="81.6092%" + style="stop-opacity:0;stop-color:rgb(255,255,255)" + id="stop877" /></linearGradient><path + d="M88.646 40.411 C88.646 47.262 83.095 52.816 76.241 52.816 C69.388 52.816 63.836 47.262 63.836 40.411 C63.836 33.558 69.388 28.004 76.241 28.004 C83.095 28.004 88.646 33.558 88.646 40.411 z" + style="fill:url(#XMLID_24_)" + id="path878" /><g + id="g879"><radialGradient + id="XMLID_25_" + cx="76.5068" + cy="49.4507" + r="14.8616" + fx="76.5068" + fy="49.4507" + gradientUnits="userSpaceOnUse"><stop + offset="0" + style="stop-color:rgb(187,235,255)" + id="stop881" /><stop + offset="1" + style="stop-color:rgb(0,61,215)" + id="stop882" /><a:midPointStop + offset="0" + style="stop-color:#BBEBFF" + id="midPointStop883" /><a:midPointStop + offset="0.5" + style="stop-color:#BBEBFF" + id="midPointStop884" /><a:midPointStop + offset="1" + style="stop-color:#003DD7" + id="midPointStop885" /></radialGradient><path + d="M84.212 40.41 C84.212 44.814 80.643 48.382 76.239 48.382 C71.839 48.382 68.266 44.814 68.266 40.41 C68.266 36.007 71.838 32.437 76.239 32.437 C80.643 32.438 84.212 36.007 84.212 40.41 z" + style="fill:url(#XMLID_25_)" + id="path886" /><linearGradient + id="XMLID_26_" + gradientUnits="userSpaceOnUse" + x1="76.2402" + y1="31.6812" + x2="76.2402" + y2="40.478"><stop + offset="8.04598%" + style="stop-color:rgb(255,255,255)" + id="stop888" /><stop + offset="100%" + style="stop-opacity:0;stop-color:rgb(255,255,255)" + id="stop889" /></linearGradient><path + a:adobe-blending-mode="screen" + d="M82.124 37.642 C82.124 40.253 79.489 42.37 76.239 42.37 C72.991 42.37 70.357 40.253 70.357 37.642 C70.357 35.029 72.991 32.911 76.239 32.911 C79.489 32.911 82.124 35.029 82.124 37.642 z" + style="fill:url(#XMLID_26_)" + id="path890" /></g></g><linearGradient + id="XMLID_27_" + gradientUnits="userSpaceOnUse" + x1="45.6553" + y1="22.3291" + x2="119.022" + y2="103.094"><stop + offset="0.0337" + style="stop-color:rgb(255,255,255)" + id="stop892" /><stop + offset="1" + style="stop-color:rgb(135,135,135)" + id="stop893" /><a:midPointStop + offset="0.0337" + style="stop-color:#FFFFFF" + id="midPointStop894" /><a:midPointStop + offset="0.5" + style="stop-color:#FFFFFF" + id="midPointStop895" /><a:midPointStop + offset="1" + style="stop-color:#878787" + id="midPointStop896" /></linearGradient><path + a:adobe-blending-mode="multiply" + d="M120.222 0.822 C120.4 1.395 120.496 2.004 120.496 2.636 L120.496 71.264 C120.496 74.637 117.763 77.371 114.389 77.371 L2.634 77.371 C2.003 77.371 1.395 77.275 0.821 77.098 C1.594 79.585 3.913 81.391 6.654 81.391 L118.407 81.391 C121.782 81.391 124.515 78.658 124.515 75.284 L124.515 6.656 C124.517 3.915 122.711 1.594 120.222 0.822 z" + style="opacity:0.5;fill:url(#XMLID_27_)" + id="path897" /><linearGradient + id="XMLID_28_" + gradientUnits="userSpaceOnUse" + x1="62.2686" + y1="8.9253" + x2="62.2686" + y2="98.9295"><stop + offset="0" + style="stop-color:rgb(255,255,255)" + id="stop899" /><stop + offset="1" + style="stop-color:rgb(0,0,0)" + id="stop900" /><a:midPointStop + offset="0" + style="stop-color:#FFFFFF" + id="midPointStop901" /><a:midPointStop + offset="0.5" + style="stop-color:#FFFFFF" + id="midPointStop902" /><a:midPointStop + offset="1" + style="stop-color:#000000" + id="midPointStop903" /></linearGradient><path + a:adobe-blending-mode="screen" + d="M3.655 14.071 C3.655 10.699 6.389 7.964 9.762 7.964 L64.444 7.964 C65.214 5.475 67.506 3.656 70.25 3.656 L121.516 3.656 C122.398 3.656 123.233 3.844 123.991 4.181 C123.041 2.043 120.902 0.548 118.409 0.548 L67.143 0.548 C64.399 0.548 62.108 2.368 61.337 4.857 L6.655 4.857 C3.281 4.857 0.548 7.592 0.548 10.965 L0.548 75.284 C0.548 77.776 2.043 79.916 4.183 80.865 C3.846 80.108 3.656 79.272 3.656 78.391 L3.656 14.071 z" + style="fill:url(#XMLID_28_)" + id="path904" /><linearGradient + id="XMLID_29_" + gradientUnits="userSpaceOnUse" + x1="62.5327" + y1="90.0122" + x2="62.5327" + y2="11.7673"><stop + offset="0" + style="stop-color:rgb(158,158,158)" + id="stop906" /><stop + offset="1" + style="stop-color:rgb(97,97,97)" + id="stop907" /><a:midPointStop + offset="0" + style="stop-color:#9E9E9E" + id="midPointStop908" /><a:midPointStop + offset="0.5" + style="stop-color:#9E9E9E" + id="midPointStop909" /><a:midPointStop + offset="1" + style="stop-color:#616161" + id="midPointStop910" /></linearGradient><path + d="M67.143 0 C64.373 0 61.986 1.732 61.004 4.309 C60.346 4.309 6.655 4.309 6.655 4.309 C2.985 4.309 0 7.294 0 10.965 L0 75.284 C0 78.955 2.985 81.94 6.655 81.94 L118.408 81.94 C122.079 81.94 125.064 78.955 125.064 75.284 L125.064 6.656 C125.064 2.986 122.079 0 118.408 0 zM1.096 75.285 L1.096 10.965 C1.096 7.899 3.59 5.405 6.655 5.405 L61.742 5.405 L61.861 5.019 C62.587 2.673 64.71 1.096 67.143 1.096 L118.409 1.096 C121.476 1.096 123.969 3.591 123.969 6.656 L123.969 75.285 C123.969 78.351 121.477 80.846 118.409 80.846 L6.655 80.846 C3.59 80.845 1.096 78.351 1.096 75.285 z" + style="fill:url(#XMLID_29_)" + id="path911" /></g></g></g></svg> diff --git a/src/gvdirpart/gvdirpart.cpp b/src/gvdirpart/gvdirpart.cpp new file mode 100644 index 0000000..f85f06d --- /dev/null +++ b/src/gvdirpart/gvdirpart.cpp @@ -0,0 +1,288 @@ +/* +Copyright 2004 Jonathan Riddell <jr@jriddell.org> + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307, USA. + +*/ +#include "gvdirpart.moc" + +#include <qcursor.h> +#include <qfile.h> +#include <qsplitter.h> +#include <qvaluelist.h> + +#include <kdebug.h> +#include <kdeversion.h> +#include <kaction.h> +#include <kicontheme.h> +#include <kiconloader.h> +#include <klocale.h> +#include <kmimetype.h> +#include <kstandarddirs.h> +#include <kparts/browserextension.h> +#include <kparts/genericfactory.h> +#include <kio/job.h> + +#include <gvcore/fileoperation.h> +#include <gvcore/archive.h> +#include <gvcore/cache.h> +#include <gvcore/document.h> +#include <gvcore/fileviewbase.h> +#include <gvcore/fileviewcontroller.h> +#include <gvcore/printdialog.h> +#include <gvcore/imageview.h> +#include <gvcore/slideshow.h> +#include <gvcore/thumbnailloadjob.h> + +#include "config.h" +#include "gvdirpartconfig.h" + +namespace Gwenview { + +// For now let's duplicate +const char CONFIG_CACHE_GROUP[]="cache"; + + +//Factory Code +typedef KParts::GenericFactory<GVDirPart> GVDirFactory; +K_EXPORT_COMPONENT_FACTORY( libgvdirpart /*library name*/, GVDirFactory ) + +GVDirPart::GVDirPart(QWidget* parentWidget, const char* /*widgetName*/, QObject* parent, const char* name, + const QStringList &) : KParts::ReadOnlyPart( parent, name ) { + GVDirFactory::instance()->iconLoader()->addAppDir( "gwenview"); + setInstance( GVDirFactory::instance() ); + KGlobal::locale()->insertCatalogue("gwenview"); + KGlobal::locale()->setActiveCatalogue("gwenview"); + + mBrowserExtension = new GVDirPartBrowserExtension(this); + + mSplitter = new QSplitter(Qt::Horizontal, parentWidget, "gwenview-kpart-splitter"); + mSplitter->setFocusPolicy(QWidget::ClickFocus); + mSplitter->setOpaqueResize(true); + + // Create the widgets + mDocument = new Document(this); + mFileViewController = new FileViewController(mSplitter, actionCollection()); + int width=GVDirPartConfig::fileViewWidth(); + if (width!=-1) { + mFileViewController->resize(width, 10); + } + mImageView = new ImageView(mSplitter, mDocument, actionCollection()); + mSplitter->setResizeMode(mFileViewController, QSplitter::KeepSize); + + mSlideShow = new SlideShow(mDocument); + + setWidget(mSplitter); + + KStdAction::saveAs( mDocument, SLOT(saveAs()), actionCollection(), "saveAs" ); + new KAction(i18n("Rotate &Left"), "rotate_ccw", CTRL + Key_L, this, SLOT(rotateLeft()), actionCollection(), "rotate_left"); + new KAction(i18n("Rotate &Right"), "rotate_cw", CTRL + Key_R, this, SLOT(rotateRight()), actionCollection(), "rotate_right"); + + connect(mFileViewController, SIGNAL(requestContextMenu(const QPoint&, bool)), + mBrowserExtension, SLOT(openFileViewContextMenu(const QPoint&, bool)) ); + + connect(mFileViewController, SIGNAL(urlChanged(const KURL&)), + mDocument, SLOT(setURL(const KURL&)) ); + + connect(mFileViewController, SIGNAL(directoryChanged(const KURL&)), + this, SLOT(directoryChanged(const KURL&)) ); + + connect(mFileViewController, SIGNAL(selectionChanged()), + mBrowserExtension, SLOT(updateActions()) ); + + connect(mImageView, SIGNAL(requestContextMenu(const QPoint&)), + mBrowserExtension, SLOT(openImageViewContextMenu(const QPoint&)) ); + + connect(mSlideShow, SIGNAL(nextURL(const KURL&)), + this, SLOT(slotSlideShowChanged(const KURL&)) ); + + connect(mDocument, SIGNAL(loaded(const KURL&)), + this, SLOT(loaded(const KURL&)) ); + + // For wheel browsing + connect(mImageView, SIGNAL(selectPrevious()), + mFileViewController, SLOT(slotSelectPrevious()) ); + connect(mImageView, SIGNAL(selectNext()), + mFileViewController, SLOT(slotSelectNext()) ); + + mToggleSlideShow = new KToggleAction(i18n("Slide Show..."), "slideshow", 0, this, SLOT(toggleSlideShow()), actionCollection(), "slideshow"); + mToggleSlideShow->setCheckedState( i18n("Stop Slide Show" )); + + setXMLFile( "gvdirpart/gvdirpart.rc" ); + mBrowserExtension->updateActions(); +} + +GVDirPart::~GVDirPart() { + GVDirPartConfig::setFileViewWidth(mFileViewController->width()); + GVDirPartConfig::writeConfig(); + delete mSlideShow; +} + + +void GVDirPart::partActivateEvent(KParts::PartActivateEvent* event) { + if (event->activated()) { + KConfig* config=new KConfig("gwenviewrc"); + Cache::instance()->readConfig(config,CONFIG_CACHE_GROUP); + delete config; + } +} + + +KAboutData* GVDirPart::createAboutData() { + KAboutData* aboutData = new KAboutData( "gvdirpart", I18N_NOOP("GVDirPart"), + "0.1", I18N_NOOP("Image Browser"), + KAboutData::License_GPL, + "(c) 2004, Jonathan Riddell <jr@jriddell.org>"); + return aboutData; +} + +bool GVDirPart::openFile() { + //unused because openURL implemented + + //mDocument->setFilename(mFile); + return true; +} + +bool GVDirPart::openURL(const KURL& url) { + if (!url.isValid()) { + return false; + } + + emit started( 0 ); + m_url = url; + m_url.adjustPath(1); + + emit setWindowCaption( m_url.prettyURL() ); + mFileViewController->setDirURL(m_url); + + return true; +} + +void GVDirPart::loaded(const KURL& url) { + QString caption = url.filename(); + if( !mDocument->image().isNull()) + caption += QString(" %1 x %2").arg(mDocument->width()).arg(mDocument->height()); + emit setWindowCaption(caption); + emit completed(); +} + +KURL GVDirPart::pixmapURL() { + return mDocument->url(); +} + +void GVDirPart::toggleSlideShow() { + if (mToggleSlideShow->isChecked()) { + KURL::List list; + KFileItemListIterator it( *mFileViewController->currentFileView()->items() ); + for ( ; it.current(); ++it ) { + KFileItem* item=it.current(); + if (!item->isDir() && !Archive::fileItemIsArchive(item)) { + list.append(item->url()); + } + } + if (list.count()==0) { + mToggleSlideShow->setChecked(false); + return; + } + //FIXME turn on full screen here (anyone know how?) + mSlideShow->start(list); + } else { + //FIXME turn off full screen here + mSlideShow->stop(); + } +} + +void GVDirPart::print() { + KPrinter printer; + if ( !mDocument->filename().isEmpty() ) { + printer.setDocName( m_url.filename() ); + KPrinter::addDialogPage( new PrintDialogPage( mDocument, mImageView, "GV page")); + + if (printer.setup(mImageView, QString::null, true)) { + mDocument->print(&printer); + } + } +} + +void GVDirPart::rotateLeft() { + mDocument->transform(ImageUtils::ROT_270); +} + +void GVDirPart::rotateRight() { + mDocument->transform(ImageUtils::ROT_90); +} + +void GVDirPart::directoryChanged(const KURL& dirURL) { + if( dirURL == m_url ) return; + emit mBrowserExtension->openURLRequest(dirURL); +} + +void GVDirPart::slotSlideShowChanged(const KURL& url) { + mDocument->setURL( url ); + mFileViewController->setFileNameToSelect( url.filename()); +} + + +/***** GVDirPartBrowserExtension *****/ + +GVDirPartBrowserExtension::GVDirPartBrowserExtension(GVDirPart* viewPart, const char* name) + :KParts::BrowserExtension(viewPart, name) { + mGVDirPart = viewPart; + emit enableAction("print", true ); +} + +GVDirPartBrowserExtension::~GVDirPartBrowserExtension() { +} + +void GVDirPartBrowserExtension::updateActions() { + bool somethingSelected = mGVDirPart->fileViewController()->selectionSize() != 0; + emit enableAction("trash", somethingSelected); + emit enableAction("del", somethingSelected); +} + +void GVDirPartBrowserExtension::del() { + FileViewController* fv = mGVDirPart->fileViewController(); + FileOperation::realDelete(fv->selectedURLs(), fv); + +} + +void GVDirPartBrowserExtension::trash() { + FileViewController* fv = mGVDirPart->fileViewController(); + FileOperation::trash(fv->selectedURLs(), fv); +} + + +void GVDirPartBrowserExtension::openFileViewContextMenu(const QPoint& pos, bool onItem) { + if (onItem) { + const KFileItemList* items = mGVDirPart->fileViewController()->currentFileView()->selectedItems(); + emit popupMenu(pos, *items); + } else { + emit popupMenu(pos, mGVDirPart->fileViewController()->dirURL(), 0); + } +} + + +void GVDirPartBrowserExtension::openImageViewContextMenu(const QPoint& pos) { + KURL url=mGVDirPart->url(); + QString mimeType=KMimeType::findByURL(url)->name(); + emit popupMenu(pos, url, mimeType); +} + + +void GVDirPartBrowserExtension::print() { + mGVDirPart->print(); +} + +} // namespace diff --git a/src/gvdirpart/gvdirpart.desktop b/src/gvdirpart/gvdirpart.desktop new file mode 100644 index 0000000..f2632c6 --- /dev/null +++ b/src/gvdirpart/gvdirpart.desktop @@ -0,0 +1,44 @@ +[Desktop Entry] +Type=Service +Name=Image View +Name[bg]=Преглед на изображения +Name[br]=Gwell ar skeudennoù +Name[ca]=Vista d'imatge +Name[cs]=Prohlížeč obrázků +Name[da]=Billedvisning +Name[de]=Bildbetrachter +Name[el]=Προβολή εικόνων +Name[es]=Visor de imágenes +Name[et]=Pildinäitaja +Name[fa]=نمای تصویر +Name[fr]=Aperçu d'images +Name[gl]=Visor de Imaxes +Name[hr]=Pregled slike +Name[hu]=Képnézegető +Name[is]=Myndskoðun +Name[it]=Vista immagini +Name[ja]=画像表示 +Name[ka]=სურათების ნახვა +Name[ms]=Lihat Imej +Name[nds]=Bildansicht +Name[nl]=Afbeeldingweergave +Name[pa]=ਚਿੱਤਰ ਝਲਕ +Name[pt]=Visualizador de Imagens +Name[pt_BR]=Visualizador de Imagens +Name[ru]=Просмотр изображений +Name[sk]=Zobrazenie obrázku +Name[sr]=Приказ слика +Name[sr@Latn]=Prikaz slika +Name[sv]=Bildvisare +Name[ta]=பிம்பக் காட்சி +Name[tg]=Намоишгари тасвир +Name[tr]=Resim Görünümü +Name[uk]=Перегляд зображень +Name[vi]=Xem ảnh +Name[xx]=xxImage Viewxx +Name[zh_CN]=图像查看 +MimeType=inode/directory +ServiceTypes=KParts/ReadOnlyPart +X-KDE-Library=libgvdirpart +InitialPreference=5 +Icon=gvdirpart diff --git a/src/gvdirpart/gvdirpart.h b/src/gvdirpart/gvdirpart.h new file mode 100644 index 0000000..08b5626 --- /dev/null +++ b/src/gvdirpart/gvdirpart.h @@ -0,0 +1,174 @@ +/* +Copyright 2004 Jonathan Riddell <jr@jriddell.org> + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307, USA. + +*/ +#ifndef __gvdirpart_h__ +#define __gvdirpart_h__ + +#include <kparts/part.h> +#include <kparts/browserextension.h> + +// Forward declarations +class QPoint; +class QSplitter; +class KAboutData; +class KAction; +class KToggleAction; + +namespace Gwenview { + +class ImageView; +class FileViewController; +class Document; +class SlideShow; + +class GVDirPart; + +/** + * The browser extension is an attribute of GVImagePart and provides + * some services to Konqueror. All Konqueror KParts have one. + */ +class GVDirPartBrowserExtension: public KParts::BrowserExtension { + Q_OBJECT + +public: + GVDirPartBrowserExtension(GVDirPart* viewPart, const char* name=0L); + ~GVDirPartBrowserExtension(); + +public slots: + void updateActions(); + + void trash(); + void del(); + + void print(); + +private slots: + void openFileViewContextMenu(const QPoint&, bool onItem); + void openImageViewContextMenu(const QPoint&); + +private: + GVDirPart* mGVDirPart; +}; + +/** + * A Read Only KPart to browse directories and their images using Gwenview + */ +class GVDirPart : public KParts::ReadOnlyPart { + Q_OBJECT +public: + GVDirPart(QWidget*, const char*, QObject*, const char*, const QStringList &); + virtual ~GVDirPart(); + + /** + * Return information about the part + */ + static KAboutData* createAboutData(); + + /** + * Returns the name of the current file in the pixmap + */ + KURL pixmapURL(); + + /** + * Print the image being viewed if there is one + */ + void print(); + + FileViewController* fileViewController() const { return mFileViewController; } + + +protected: + void partActivateEvent(KParts::PartActivateEvent* event); + + /** + * Unused because openURL() is implemented but required to be + * implemented. + */ + virtual bool openFile(); + + /** + * Tell the widgets the URL to browse. Sets the window + * caption and saves URL to m_url (important for history and + * others). + */ + virtual bool openURL(const KURL& url); + +protected slots: + /** + * Turns the slide show on or off + */ + void toggleSlideShow(); + + /** + * Sets Konqueror's caption, statusbar and emits completed(). + * Called by loaded() signal in GVDocument + */ + void loaded(const KURL& url); + + /** + * Rotates the current image 90 degrees counter clockwise + */ + void rotateLeft(); + + /** + * Rotates the current image 90 degrees clockwise + */ + void rotateRight(); + + void directoryChanged(const KURL& dirURL); + + void slotSlideShowChanged( const KURL& ); + +protected: + /** + * The component's widget, contains the files view on the left + * and scroll view on the right. + */ + QSplitter* mSplitter; + + /** + * Scroll widget + */ + ImageView* mImageView; + + /** + * Holds the image + */ + Document* mDocument; + + /** + * Shows the directory's files and folders + */ + + FileViewController* mFileViewController; + + /** + * This inherits from KParts::BrowserExtention and supplies + * some extra functionality to Konqueror. + */ + GVDirPartBrowserExtension* mBrowserExtension; + + /** + * Action turns on slide show + */ + KToggleAction* mToggleSlideShow; + SlideShow* mSlideShow; +}; + +} // namespace +#endif diff --git a/src/gvdirpart/gvdirpart.rc b/src/gvdirpart/gvdirpart.rc new file mode 100644 index 0000000..61717b9 --- /dev/null +++ b/src/gvdirpart/gvdirpart.rc @@ -0,0 +1,46 @@ +<!DOCTYPE kpartgui> +<kpartgui name="GVDirPart" version="5"> +<MenuBar> + <Menu name="file"><Text>&File</Text> + <Action name="saveAs"/> + </Menu> + <Menu name="edit"> + <Action name="rotate_left"/> + <Action name="rotate_right"/> + </Menu> + <Menu name="view"><Text>&View</Text> + <Action name="previous"/> + <Action name="next"/> + <Separator/> + <Menu name="colors"> + <text>&Colors</text> + <Action name="increase_gamma"/> + <Action name="decrease_gamma"/> + <Action name="increase_brightness"/> + <Action name="decrease_brightness"/> + <Action name="increase_contrast"/> + <Action name="decrease_contrast"/> + </Menu> + <Action name="view_zoom_to_fit"/> + <Action name="view_zoom_to_width"/> + <Action name="view_zoom_to_height"/> + <Action name="view_zoom_in"/> + <Action name="view_zoom_out"/> + <Action name="view_actual_size"/> + <Action name="view_zoom_lock"/> + <Separator/> + <Action name="slideshow"/> + </Menu> +</MenuBar> +<ToolBar name="mainToolBar"><text>Main Toolbar</text> + <Separator/> + <Action name="previous"/> + <Action name="next"/> + <Action name="view_zoom_in"/> + <Action name="view_zoom_to"/> + <Action name="view_zoom_out"/> + <Action name="rotate_left"/> + <Action name="rotate_right"/> + <Action name="slideshow"/> +</ToolBar> +</kpartgui> diff --git a/src/gvdirpart/gvdirpartconfig.kcfg b/src/gvdirpart/gvdirpartconfig.kcfg new file mode 100644 index 0000000..5296e51 --- /dev/null +++ b/src/gvdirpart/gvdirpartconfig.kcfg @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE kcfg SYSTEM "http://www.kde.org/standards/kcfg/1.0/kcfg.dtd"> +<kcfg> + <kcfgfile name="gvdirpartrc"/> + <group name="ui"> + <entry name="fileViewWidth" type="Int"> + <default>-1</default> + </entry> + </group> +</kcfg> diff --git a/src/gvdirpart/gvdirpartconfig.kcfgc b/src/gvdirpart/gvdirpartconfig.kcfgc new file mode 100644 index 0000000..e89b1be --- /dev/null +++ b/src/gvdirpart/gvdirpartconfig.kcfgc @@ -0,0 +1,4 @@ +File=gvdirpartconfig.kcfg +ClassName=GVDirPartConfig +Singleton=true +Mutators=true diff --git a/src/gvdirpart/hi16-app-gvdirpart.png b/src/gvdirpart/hi16-app-gvdirpart.png Binary files differnew file mode 100644 index 0000000..175c0df --- /dev/null +++ b/src/gvdirpart/hi16-app-gvdirpart.png diff --git a/src/gvdirpart/hi22-app-gvdirpart.png b/src/gvdirpart/hi22-app-gvdirpart.png Binary files differnew file mode 100644 index 0000000..d590c70 --- /dev/null +++ b/src/gvdirpart/hi22-app-gvdirpart.png diff --git a/src/gvdirpart/hi32-app-gvdirpart.png b/src/gvdirpart/hi32-app-gvdirpart.png Binary files differnew file mode 100644 index 0000000..9f3b269 --- /dev/null +++ b/src/gvdirpart/hi32-app-gvdirpart.png diff --git a/src/gvdirpart/hisc-app-gvdirpart.svg b/src/gvdirpart/hisc-app-gvdirpart.svg new file mode 100644 index 0000000..8846fb5 --- /dev/null +++ b/src/gvdirpart/hisc-app-gvdirpart.svg @@ -0,0 +1,226 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" +"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + width="32.000000pt" + height="32.000000pt" + xmlns="http://www.w3.org/2000/svg" + xmlns:cc="http://web.resource.org/cc/" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:xlink="http://www.w3.org/1999/xlink" + id="svg1" + sodipodi:version="0.32" + inkscape:version="0.40" + sodipodi:docbase="/home/bk/kde/trunk/extragear/graphics/gwenview/gvdirpart" + sodipodi:docname="hisc-app-gvdirpart.svg" + inkscape:export-filename="/home/bk/kde/trunk/extragear/graphics/gwenview/gvdirpart/hi16-app-gvdirpart.png" + inkscape:export-xdpi="36.000000" + inkscape:export-ydpi="36.000000"> + <defs + id="defs3"> + <linearGradient + id="linearGradient1725"> + <stop + style="stop-color:#ef331a;stop-opacity:1.0000000;" + offset="0.0000000" + id="stop1726" /> + <stop + style="stop-color:#f8ffa7;stop-opacity:1.0000000;" + offset="1.0000000" + id="stop1727" /> + </linearGradient> + <linearGradient + id="linearGradient1718"> + <stop + style="stop-color:#1c9e1f;stop-opacity:1.0000000;" + offset="0.0000000" + id="stop1719" /> + <stop + style="stop-color:#ffff3b;stop-opacity:1.0000000;" + offset="1.0000000" + id="stop1720" /> + </linearGradient> + <linearGradient + id="linearGradient1693"> + <stop + style="stop-color:#611aef;stop-opacity:1.0000000;" + offset="0.0000000" + id="stop1694" /> + <stop + style="stop-color:#ffa7ed;stop-opacity:1.0000000;" + offset="1.0000000" + id="stop1695" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient1693" + id="linearGradient1696" + gradientTransform="matrix(0.827170,0.000000,0.000000,1.018056,0.000000,0.789474)" + x1="29.634966" + y1="4.5629220" + x2="29.634966" + y2="22.357569" + gradientUnits="userSpaceOnUse" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient1693" + id="linearGradient1701" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.827170,3.152320e-17,-3.250628e-17,1.018056,6.916667e-16,0.789474)" + x1="29.634966" + y1="4.5629220" + x2="29.634966" + y2="22.357569" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient1693" + id="linearGradient1705" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.827170,-6.893180e-17,1.213881e-16,1.018056,9.424121e-16,0.789474)" + x1="29.634966" + y1="4.5629220" + x2="29.634966" + y2="22.357569" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient1693" + id="linearGradient1709" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.827170,0.000000,0.000000,1.018056,3.497633e-16,0.789474)" + x1="29.634966" + y1="4.5629220" + x2="29.634966" + y2="22.357569" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient1718" + id="linearGradient1717" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.827170,-8.065772e-17,1.254169e-16,1.018056,-4.890799e-16,0.789474)" + x1="29.634966" + y1="4.5629220" + x2="29.634966" + y2="22.357569" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient1725" + id="linearGradient1724" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.827170,0.000000,0.000000,1.018056,-6.641825e-16,0.789474)" + x1="29.634966" + y1="4.5629220" + x2="29.634966" + y2="22.357569" /> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="16.000000" + inkscape:cx="27.304415" + inkscape:cy="15.588455" + inkscape:current-layer="g1698" + showgrid="false" + inkscape:grid-bbox="true" + gridspacingy="1.0000000pt" + gridspacingx="1.0000000pt" + gridoriginy="0.0000000pt" + gridoriginx="0.0000000pt" + inkscape:window-width="1272" + inkscape:window-height="951" + inkscape:window-x="0" + inkscape:window-y="0" /> + <metadata + id="metadata4"> + <rdf:RDF + id="RDF5"> + <cc:Work + rdf:about="" + id="Work6"> + <dc:format + id="format7">image/svg+xml</dc:format> + <dc:type + id="type9" + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <g + id="g1714" + transform="translate(-1.134055e-6,9.842154e-8)"> + <rect + style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-width:1.3250000;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dashoffset:19.842520;stroke-opacity:1.0000000" + id="rect1703" + width="22.424654" + height="29.897104" + x="14.407233" + y="1.9307798" + rx="0.0000000" + ry="12.573674" + transform="matrix(0.654899,-0.106531,0.106531,0.654899,-9.201396,6.501194)" /> + <rect + style="fill:url(#linearGradient1717);fill-opacity:1.0;fill-rule:nonzero;stroke:none;stroke-width:1.3250000;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dashoffset:19.842520;stroke-opacity:1.0000000;" + id="rect1704" + width="16.250000" + height="20.000000" + x="17.500000" + y="5.0000000" + ry="0.0000000" + transform="matrix(0.654899,-0.106531,0.106531,0.654899,-9.201396,6.501194)" /> + </g> + <g + id="g1721"> + <rect + style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-width:1.3250000;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dashoffset:19.842520;stroke-opacity:1.0000000" + id="rect1707" + width="22.424654" + height="29.897104" + x="14.407233" + y="1.9307798" + rx="0.0000000" + ry="10.240688" + transform="matrix(0.814664,0.000000,0.000000,0.814664,-3.697339,1.466778)" /> + <rect + style="fill:url(#linearGradient1724);fill-opacity:1.0;fill-rule:nonzero;stroke:none;stroke-width:1.3250000;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dashoffset:19.842520;stroke-opacity:1.0000000;" + id="rect1708" + width="16.250000" + height="20.000000" + x="17.500000" + y="5.0000000" + ry="0.0000000" + transform="matrix(0.814664,0.000000,0.000000,0.814664,-3.697339,1.466778)" /> + </g> + <g + id="g1698" + transform="matrix(0.979870,0.199637,-0.199637,0.979870,3.632494,0.797304)"> + <rect + style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-width:1.3250000;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dashoffset:19.842520;stroke-opacity:1.0000000" + id="rect1064" + width="22.424654" + height="29.897104" + x="14.407233" + y="1.9307798" + rx="0.0000000" + ry="8.3427191" /> + <rect + style="fill:url(#linearGradient1701);fill-opacity:1.0000000;fill-rule:nonzero;stroke:none;stroke-width:1.3250000;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dashoffset:19.842520;stroke-opacity:1.0000000" + id="rect1687" + width="16.250000" + height="20.000000" + x="17.500000" + y="5.0000000" + ry="0.0000000" /> + </g> + </g> +</svg> |