diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-12 08:34:54 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-05-12 08:36:50 (GMT) |
commit | f14620878beed97c85c4b6a03a38f485800328d1 (patch) | |
tree | a175ab72d1fd2259b5d626639691f60b0520e51e /examples/gestures | |
parent | 21e699d7abff8b75157ee1305ac1dee35c748e98 (diff) | |
download | Qt-f14620878beed97c85c4b6a03a38f485800328d1.zip Qt-f14620878beed97c85c4b6a03a38f485800328d1.tar.gz Qt-f14620878beed97c85c4b6a03a38f485800328d1.tar.bz2 |
Added gesture enabled browser demo to project file.
Added missing files for building the demo.
Diffstat (limited to 'examples/gestures')
-rw-r--r-- | examples/gestures/browser/data/addtab.png | bin | 0 -> 469 bytes | |||
-rw-r--r-- | examples/gestures/browser/data/browser.svg | 411 | ||||
-rw-r--r-- | examples/gestures/browser/data/closetab.png | bin | 0 -> 516 bytes | |||
-rw-r--r-- | examples/gestures/browser/data/data.qrc | 11 | ||||
-rw-r--r-- | examples/gestures/browser/data/defaultbookmarks.xbel | 40 | ||||
-rw-r--r-- | examples/gestures/browser/data/defaulticon.png | bin | 0 -> 1473 bytes | |||
-rw-r--r-- | examples/gestures/browser/data/history.png | bin | 0 -> 1527 bytes | |||
-rw-r--r-- | examples/gestures/browser/data/loading.gif | bin | 0 -> 847 bytes | |||
-rw-r--r-- | examples/gestures/browser/htmls/htmls.qrc | 5 | ||||
-rw-r--r-- | examples/gestures/browser/htmls/notfound.html | 63 | ||||
-rw-r--r-- | examples/gestures/gestures.pro | 1 |
11 files changed, 531 insertions, 0 deletions
diff --git a/examples/gestures/browser/data/addtab.png b/examples/gestures/browser/data/addtab.png Binary files differnew file mode 100644 index 0000000..20928fb --- /dev/null +++ b/examples/gestures/browser/data/addtab.png diff --git a/examples/gestures/browser/data/browser.svg b/examples/gestures/browser/data/browser.svg new file mode 100644 index 0000000..4b0fa72 --- /dev/null +++ b/examples/gestures/browser/data/browser.svg @@ -0,0 +1,411 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="48px" + height="48px" + id="svg2160" + sodipodi:version="0.32" + inkscape:version="0.46" + inkscape:export-filename="c:\icons\qtbrowser48.png" + inkscape:export-xdpi="90" + inkscape:export-ydpi="90" + sodipodi:docbase="C:\icons" + sodipodi:docname="browser.svg" + inkscape:output_extension="org.inkscape.output.svg.inkscape"> + <defs + id="defs2162"><linearGradient + id="linearGradient3808"> + <stop + id="stop3810" + offset="0" + style="stop-color:#000000;stop-opacity:0.54263568;" /> + <stop + id="stop3812" + offset="1" + style="stop-color:#000000;stop-opacity:0;" /> +</linearGradient> +<inkscape:perspective + sodipodi:type="inkscape:persp3d" + inkscape:vp_x="0 : 24 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_z="48 : 24 : 1" + inkscape:persp3d-origin="24 : 16 : 1" + id="perspective63" /> +<linearGradient + id="linearGradient3326"> + <stop + style="stop-color:#000000;stop-opacity:0.3137255;" + offset="0" + id="stop3328" /> + <stop + style="stop-color:#000000;stop-opacity:0;" + offset="1" + id="stop3330" /> +</linearGradient> +<linearGradient + id="linearGradient3318"> + <stop + style="stop-color:#000000;stop-opacity:0.3137255;" + offset="0" + id="stop3320" /> + <stop + style="stop-color:#000000;stop-opacity:0;" + offset="1" + id="stop3322" /> +</linearGradient> +<linearGradient + id="linearGradient3302"> + <stop + style="stop-color:#000000;stop-opacity:0.3137255;" + offset="0" + id="stop3304" /> + <stop + style="stop-color:#000000;stop-opacity:0;" + offset="1" + id="stop3306" /> +</linearGradient> +<linearGradient + id="linearGradient3267"> + <stop + style="stop-color:#000000;stop-opacity:1;" + offset="0" + id="stop3269" /> + <stop + id="stop3275" + offset="0.79661018" + style="stop-color:#000000;stop-opacity:1;" /> + <stop + style="stop-color:#000000;stop-opacity:0;" + offset="1" + id="stop3271" /> +</linearGradient> +<linearGradient + id="linearGradient3745"> + <stop + style="stop-color:#ffffff;stop-opacity:0.19587629;" + offset="0" + id="stop3747" /> + <stop + style="stop-color:#7cb2ff;stop-opacity:0.07216495;" + offset="1" + id="stop3749" /> +</linearGradient> +<linearGradient + inkscape:collect="always" + id="linearGradient3561"> + <stop + style="stop-color:#b1d0ff;stop-opacity:1;" + offset="0" + id="stop3563" /> + <stop + style="stop-color:#b1d0ff;stop-opacity:0;" + offset="1" + id="stop3565" /> +</linearGradient> +<linearGradient + id="linearGradient3181"> + <stop + style="stop-color:#4f7a33;stop-opacity:1;" + offset="0" + id="stop3183" /> + <stop + style="stop-color:#204712;stop-opacity:1;" + offset="1" + id="stop3185" /> +</linearGradient> +<linearGradient + id="linearGradient3143"> + <stop + style="stop-color:#c1dbff;stop-opacity:1;" + offset="0" + id="stop3145" /> + <stop + style="stop-color:#004e92;stop-opacity:1;" + offset="1" + id="stop3147" /> +</linearGradient> +<radialGradient + inkscape:collect="always" + xlink:href="#linearGradient3143" + id="radialGradient3149" + cx="9.1428566" + cy="15.142858" + fx="9.1428566" + fy="15.142858" + r="20.121096" + gradientUnits="userSpaceOnUse" /> +<radialGradient + inkscape:collect="always" + xlink:href="#linearGradient3181" + id="radialGradient3187" + cx="10.739879" + cy="18.250999" + fx="10.739879" + fy="18.250999" + r="7.4191086" + gradientTransform="matrix(1.0504709,0,0,1.5077925,-0.3797113,-9.2677171)" + gradientUnits="userSpaceOnUse" /> +<radialGradient + inkscape:collect="always" + xlink:href="#linearGradient3181" + id="radialGradient3195" + cx="14.947268" + cy="35.920116" + fx="14.947268" + fy="35.920116" + r="6.0472684" + gradientTransform="matrix(1,0,0,0.7248478,0,9.8834985)" + gradientUnits="userSpaceOnUse" /> +<radialGradient + inkscape:collect="always" + xlink:href="#linearGradient3181" + id="radialGradient3203" + cx="34.227203" + cy="24.681196" + fx="34.227203" + fy="24.681196" + r="6.7517419" + gradientTransform="matrix(0.9941509,-0.1079997,0.2962199,2.7267411,-7.1108629,-38.921508)" + gradientUnits="userSpaceOnUse" /> +<radialGradient + inkscape:collect="always" + xlink:href="#linearGradient3561" + id="radialGradient3567" + cx="22.714285" + cy="23.571428" + fx="22.714285" + fy="23.571428" + r="19.828572" + gradientUnits="userSpaceOnUse" /> +<linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3745" + id="linearGradient3751" + x1="0.84126461" + y1="13.678415" + x2="31.397495" + y2="13.678415" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.8791332,0.7829527,-0.6285195,1.0951445,14.147627,-10.49311)" /> +<filter + inkscape:collect="always" + id="filter4176"> + <feGaussianBlur + inkscape:collect="always" + stdDeviation="0.27747502" + id="feGaussianBlur4178" /> +</filter> +<radialGradient + inkscape:collect="always" + xlink:href="#linearGradient3267" + id="radialGradient3273" + cx="22.714285" + cy="23.571428" + fx="22.714285" + fy="23.571428" + r="19.428572" + gradientUnits="userSpaceOnUse" /> +<inkscape:perspective + id="perspective136" + inkscape:persp3d-origin="138.6795 : 92.479329 : 1" + inkscape:vp_z="277.35901 : 138.71899 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 138.71899 : 1" + sodipodi:type="inkscape:persp3d" /> + + + + + + + + + + +<linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3808" + id="linearGradient3806" + x1="32.829472" + y1="32.055603" + x2="34.522324" + y2="-1.0290829" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.8832227,0,0,1,-8.0103007,9.1923882)" /> +</defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="5.6568542" + inkscape:cx="30.924085" + inkscape:cy="24.59691" + inkscape:current-layer="layer1" + showgrid="false" + inkscape:grid-bbox="true" + inkscape:document-units="px" + inkscape:window-width="1299" + inkscape:window-height="883" + inkscape:window-x="373" + inkscape:window-y="89" + showguides="false" /> + <metadata + id="metadata2165"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title>Qt Browser</dc:title> + <dc:creator> + <cc:Agent> + <dc:title>Jens Bache-Wiig</dc:title> + </cc:Agent> + </dc:creator> + <dc:rights> + <cc:Agent> + <dc:title>Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).</dc:title> + </cc:Agent> + </dc:rights> + </cc:Work> + </rdf:RDF> + </metadata> + <g + id="layer1" + inkscape:label="Layer 1" + inkscape:groupmode="layer"> + <path + sodipodi:type="arc" + style="opacity:0.78108437;fill:url(#radialGradient3273);fill-opacity:1;stroke:none;stroke-width:0.80000001;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + id="path3407" + sodipodi:cx="22.714285" + sodipodi:cy="23.571428" + sodipodi:rx="19.428572" + sodipodi:ry="19.428572" + d="M 42.142857,23.571428 A 19.428572,19.428572 0 1 1 3.2857132,23.571428 A 19.428572,19.428572 0 1 1 42.142857,23.571428 z" + transform="matrix(1.0818892,0,0,1.0409446,-2.4313375,0.4303723)" /> + <path + sodipodi:type="arc" + style="fill:url(#radialGradient3149);fill-opacity:1;stroke:none;stroke-width:0.80000000000000004;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + id="path2170" + sodipodi:cx="22.714285" + sodipodi:cy="23.571428" + sodipodi:rx="19.428572" + sodipodi:ry="19.428572" + d="M 42.142857 23.571428 A 19.428572 19.428572 0 1 1 3.2857132,23.571428 A 19.428572 19.428572 0 1 1 42.142857 23.571428 z" /> + <path + d="M 26.602136,8.2160843 C 26.322653,8.1637524 26.048884,8.1512446 25.78375,8.1745351 L 25.783243,8.1743913 C 25.783243,8.1743913 23.973525,8.3138471 23.891496,8.3211793 C 22.239361,8.4705552 20.985434,10.008307 20.985434,12.131916 L 20.985434,37.174579 L 22.83515,39.126673 L 41.425135,33.998394 C 42.704203,33.746799 43.714709,33.629384 43.714709,31.78483 L 43.714709,11.392226 L 26.602136,8.2160843 z" + id="path2998" + style="fill:url(#linearGradient3806);fill-opacity:1" + sodipodi:nodetypes="cccsccccccc" /> + <path + style="fill:url(#radialGradient3203);fill-opacity:1;fill-rule:evenodd;stroke:#1d3215;stroke-width:0.51392877000000003;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 37.535517,11.721122 C 32.782916,8.7478602 30.602351,6.3542385 32.09957,13.4346 C 32.320572,14.27055 33.291276,13.739232 33.291276,14.862228 C 33.291276,16.155819 32.607502,17.380765 31.797574,18.146663 C 30.959323,18.939344 31.011357,20.258984 31.797574,21.002459 C 33.06234,22.198469 33.942515,22.715936 35.572536,22.715936 C 36.6448,22.715936 37.003629,23.274262 37.23352,24.143834 C 37.362263,24.630808 38.410486,25.085663 38.894503,25.428942 C 38.938905,25.460433 38.139512,26.551348 38.139512,27.999158 C 38.139512,29.113512 38.405167,29.358325 38.743505,29.998215 C 38.949111,30.387072 36.418877,30.283794 36.025532,30.283794 C 35.005751,30.283794 34.181701,30.712163 33.15656,30.712163 C 32.264543,30.712163 31.099578,30.3566 31.344578,31.283323 C 31.763542,32.868074 32.552566,33.932342 32.552566,35.709806 C 32.552566,36.862272 31.047367,37.598377 30.287588,38.137232 C 29.30273,38.835721 29.133207,39.307154 28.475606,40.136289 C 28.132145,40.569341 26.990548,41.409612 28.475606,40.707448 C 29.476144,40.234375 31.192063,39.423774 32.09957,38.565601 C 33.257846,37.470293 34.527421,37.269266 35.723534,36.138176 C 36.659137,35.253436 37.512933,34.691155 38.29051,33.710749 C 39.024031,32.785889 39.498498,31.90347 39.498498,30.712163 C 39.498498,29.682482 39.308098,28.750366 39.951493,28.141948 C 40.902684,24.235856 42.225874,19.789742 39.751646,16.005086 C 38.569376,15.014407 37.717516,13.109859 37.535517,11.721122 z " + id="path3151" + sodipodi:nodetypes="ccsssssssssssssssssssccc" /> + <path + style="fill:url(#radialGradient3187);fill-opacity:1;fill-rule:evenodd;stroke:#063a0a;stroke-width:0.51231807;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 14.777083,7.8630009 C 14.047432,8.4403746 12.751987,10.898939 13.27641,12.146301 C 13.709874,13.177316 14.920827,13.613143 15.827553,13.859622 C 16.568703,14.061091 17.049015,14.457271 17.478293,15.001835 C 17.832696,15.451415 17.971105,16.346745 18.078563,16.857932 C 18.298637,17.904845 18.947911,17.058563 17.62836,18.000145 C 17.234352,18.281296 14.875696,18.000145 14.476948,18.000145 C 11.976825,18.384083 14.297504,19.464893 14.92715,20.712903 C 15.204987,21.770261 15.377352,22.405336 15.377352,23.711213 C 15.377352,24.875672 15.377352,24.78389 15.377352,25.99564 C 15.377352,27.194757 15.044241,27.28063 13.876679,27.28063 C 13.023055,27.28063 12.647321,26.423969 11.625669,26.423969 C 10.400599,26.423969 11.303539,27.667106 11.475602,27.994513 C 12.006402,29.004538 11.662121,29.599737 10.875334,28.851174 C 9.855722,27.881096 8.8280305,26.760556 8.0240557,25.99564 C 2.8789379,25.807372 4.5677903,23.466499 3.9722395,18.999582 C 5.041259,16.526382 4.7558935,17.248897 7.2737194,12.574632 C 10.149914,9.5491592 13.589212,5.9532919 14.777083,7.8630009 z" + id="path3159" + sodipodi:nodetypes="csssssccsssssscccc" /> + <path + style="fill:url(#radialGradient3195);fill-opacity:1;fill-rule:evenodd;stroke:#163c0c;stroke-width:0.59999999999999998;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 10.265966,34.571429 C 9.245427,35.081699 8.6225774,36.042538 9.980252,36.857143 C 10.637564,37.25153 11.478587,37.606311 12.265966,38 C 13.258976,38.496505 14.481138,39.018522 15.408823,39.714286 C 16.227572,40.328348 15.587589,39.928184 16.123109,38.857143 C 16.827927,37.447507 18.14516,38.79674 18.837395,39.142857 C 20.044787,39.746554 20.46001,38.652394 20.694537,37.714286 C 20.459863,35.791335 18.579948,34.625723 17.123109,33.285715 C 16.704922,32.588736 15.507117,31.689713 14.837395,31.857143 C 13.49505,33.304042 12.350312,33.960279 10.265966,34.571429 z " + id="path3161" + sodipodi:nodetypes="cssssscccc" /> + <path + sodipodi:type="arc" + style="fill:none;fill-opacity:1;stroke:url(#radialGradient3567);stroke-width:0.80000001;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.6502732" + id="path3557" + sodipodi:cx="22.714285" + sodipodi:cy="23.571428" + sodipodi:rx="19.428572" + sodipodi:ry="19.428572" + d="M 42.142857 23.571428 A 19.428572 19.428572 0 1 1 3.2857132,23.571428 A 19.428572 19.428572 0 1 1 42.142857 23.571428 z" + transform="matrix(0.95317,0,0,0.95317,0.9922816,1.1752786)" /> + <path + style="fill:url(#linearGradient3751);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 39.916926,27.786316 C 44.588637,26.790847 38.225604,13.201712 32.946381,8.5000566 C 18.135275,-0.40265528 10.844456,5.6490056 3.6645529,16.333771 C 5.7478288,18.189127 14.704728,33.158645 39.916926,27.786316 z" + id="path3578" + sodipodi:nodetypes="cccs" /> + <path + d="M 45.902562,20.610592 C 46.007701,20.610592 46.120332,20.603354 46.240455,20.590275 L 45.609873,20.590275 C 45.697743,20.603608 45.798946,20.610592 45.902562,20.610592 z" + id="path3012" + style="fill:#0a6333" /> + <path + sodipodi:type="arc" + style="fill:none;fill-opacity:1;stroke:#273e5e;stroke-width:0.80000001;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + id="path3818" + sodipodi:cx="22.714285" + sodipodi:cy="23.571428" + sodipodi:rx="19.428572" + sodipodi:ry="19.428572" + d="M 42.142857,23.571428 A 19.428572,19.428572 0 1 1 3.2857132,23.571428 A 19.428572,19.428572 0 1 1 42.142857,23.571428 z" + transform="matrix(0.9754581,0,0,0.9754581,0.3821951,0.7002631)" /> + <g + transform="matrix(0.1269799,0,0,0.1269799,23.283534,9.5774104)" + id="g236"> + <path + style="fill:#024c1c" + id="path238" + d="M 44.233,0.368 C 42.032,0.004 39.876,-0.083 37.788,0.079 L 37.784,0.078 C 37.784,0.078 23.532,1.048 22.886,1.099 C 9.875,2.138 0,12.834 0,27.605 L 0,201.792 L 14.567,215.37 L 160.968,190.766 C 171.041,189.016 178.999,177.133 178.999,164.303 L 178.999,22.46 L 44.233,0.368 z" /> + + <path + style="fill:#66b036" + id="path240" + d="M 179,164.304 C 179,177.134 171.042,189.017 160.969,190.767 L 14.567,215.37 L 14.567,26.683 C 14.567,9.52 28.263,-2.264 44.231,0.368 L 179,22.462 L 179,164.304 z" /> + + <g + id="g242"> + <path + style="fill:#ffffff" + id="path244" + d="M 133.897,47.137 L 145.72,48.411 L 145.72,69.158 L 159.025,70.099 L 159.025,83.113 L 145.72,82.502 L 145.72,130.066 C 145.72,134.207 146.176,136.869 147.093,138.064 C 147.919,139.158 149.195,139.697 150.907,139.697 C 151.069,139.697 151.24,139.695 151.414,139.683 C 154.031,139.533 156.878,138.728 159.98,137.314 L 159.98,149.275 C 154.707,151.591 149.532,152.966 144.452,153.398 C 143.716,153.457 143.005,153.486 142.317,153.486 C 137.716,153.486 134.199,152.152 131.797,149.451 C 128.998,146.318 127.598,141.285 127.598,134.387 L 127.598,81.661 L 121.209,81.368 L 121.209,67.424 L 129,67.985 L 133.897,47.137 z" /> + + </g> + + <polygon + style="fill:#0a6333" + id="polygon246" + points="159.027,83.112 145.722,82.501 145.722,82.785 152.854,83.112 159.027,83.112 " /> + + <path + style="fill:#024c1c" + id="path248" + d="M 148.488,139.21 C 149.168,139.548 149.96,139.696 150.908,139.696 C 151.07,139.696 151.241,139.694 151.415,139.682 C 154.032,139.532 156.879,138.727 159.981,137.313 L 153.806,137.313 C 151.938,138.169 150.178,138.808 148.488,139.21 z" /> + + <path + style="fill:#024c1c" + id="path250" + d="M 133.897,47.137 L 127.723,47.137 L 122.93,67.549 L 129,67.985 L 133.897,47.137 z M 131.799,149.45 C 129,146.317 127.6,141.284 127.6,134.386 L 127.6,81.661 L 121.211,81.368 L 121.211,67.424 L 115.03,67.424 L 115.03,70.539 C 115.926,73.897 116.63,77.539 117.149,81.465 L 121.426,81.661 L 121.426,134.386 C 121.426,141.284 122.827,146.318 125.625,149.45 C 128.029,152.151 131.541,153.485 136.141,153.485 L 142.318,153.485 C 137.718,153.485 134.2,152.151 131.799,149.45 z" /> + + <path + style="fill:#0a6333" + id="path252" + d="M 102.954,170.419 C 103.782,170.419 104.669,170.362 105.615,170.259 L 100.649,170.259 C 101.341,170.364 102.138,170.419 102.954,170.419 z" /> + + <path + style="fill:#ffffff" + id="path254" + d="M 112.036,139.78 C 107.81,149.749 101.365,156.27 92.542,159.288 C 93.43,163.856 94.778,166.929 96.567,168.55 C 97.955,169.796 100.094,170.419 102.958,170.419 C 103.782,170.419 104.671,170.362 105.615,170.259 L 105.615,183.736 L 99.497,184.539 C 97.692,184.771 95.98,184.889 94.361,184.889 C 89.001,184.889 84.665,183.59 81.402,180.961 C 77.085,177.496 73.899,170.805 71.857,160.908 C 62.48,158.91 55.166,152.945 50.103,142.937 C 44.965,132.769 42.349,117.895 42.349,98.441 C 42.349,77.466 45.927,61.985 52.971,52.169 C 58.912,43.885 67.202,39.812 77.634,39.812 C 79.306,39.812 81.033,39.916 82.809,40.124 C 95.081,41.539 103.977,47.329 109.77,57.362 C 115.453,67.177 118.243,81.244 118.243,99.721 C 118.242,116.643 116.186,129.954 112.036,139.78 z M 93.582,135.933 C 95.996,129.724 97.189,117.54 97.189,99.37 C 97.189,83.054 96.007,71.837 93.608,65.682 C 91.21,59.496 87.622,56.153 82.808,55.731 C 82.441,55.7 82.075,55.681 81.724,55.681 C 77.264,55.681 73.84,58.283 71.447,63.508 C 68.863,69.201 67.555,81.003 67.555,98.866 C 67.555,116.129 68.826,128.379 71.388,135.569 C 73.804,142.419 77.423,145.813 82.174,145.813 C 82.384,145.813 82.593,145.805 82.809,145.79 C 87.566,145.489 91.148,142.202 93.582,135.933" /> + + <path + style="fill:#024c1c" + id="path256" + d="M 84.708,183.003 C 84.59,182.95 84.477,182.896 84.361,182.839 C 84.349,182.835 84.336,182.829 84.323,182.821 C 84.218,182.77 84.115,182.716 84.011,182.663 C 83.991,182.653 83.971,182.642 83.948,182.63 C 83.854,182.579 83.761,182.528 83.667,182.476 C 83.636,182.46 83.609,182.443 83.579,182.427 C 83.494,182.38 83.412,182.331 83.328,182.284 C 83.286,182.263 83.25,182.239 83.209,182.214 C 83.137,182.171 83.062,182.128 82.994,182.083 C 82.943,182.054 82.897,182.024 82.848,181.993 C 82.785,181.954 82.726,181.915 82.663,181.876 C 82.606,181.837 82.552,181.798 82.492,181.759 C 82.442,181.726 82.392,181.693 82.342,181.659 C 82.272,181.612 82.206,181.563 82.141,181.518 C 82.101,181.489 82.061,181.463 82.021,181.432 C 81.943,181.377 81.866,181.319 81.79,181.26 C 81.764,181.239 81.735,181.221 81.708,181.199 C 81.607,181.121 81.505,181.039 81.402,180.959 C 77.085,177.494 73.899,170.803 71.857,160.906 C 62.48,158.908 55.166,152.943 50.103,142.935 C 44.965,132.767 42.349,117.893 42.349,98.439 C 42.349,77.464 45.927,61.983 52.971,52.167 C 58.912,43.883 67.202,39.81 77.634,39.81 C 77.67,39.81 71.114,39.806 71.114,39.806 L 71.114,39.81 C 60.694,39.818 52.411,43.89 46.476,52.167 C 39.434,61.984 35.855,77.465 35.855,98.439 C 35.855,117.892 38.469,132.767 43.609,142.935 C 48.671,152.943 55.983,158.908 65.361,160.906 C 67.403,170.802 70.588,177.494 74.904,180.959 C 78.168,183.588 82.507,184.887 87.867,184.887 C 87.967,184.887 88.07,184.887 88.17,184.885 L 93.861,184.885 C 90.361,184.828 87.306,184.203 84.716,183.006 C 84.712,183.007 84.708,183.007 84.708,183.003 z M 87.113,65.681 C 89.511,71.837 90.69,83.054 90.69,99.369 C 90.69,117.539 89.502,129.723 87.083,135.932 C 85.142,140.942 82.439,144.047 79.013,145.248 C 79.999,145.621 81.058,145.81 82.173,145.81 C 82.383,145.81 82.592,145.802 82.808,145.787 C 87.567,145.488 91.149,142.201 93.582,135.932 C 95.996,129.723 97.189,117.539 97.189,99.369 C 97.189,83.053 96.007,71.836 93.608,65.681 C 91.21,59.495 87.622,56.152 82.808,55.73 C 82.441,55.699 82.075,55.68 81.724,55.68 C 80.601,55.68 79.549,55.845 78.556,56.173 L 78.556,56.175 L 78.556,56.175 C 82.254,57.322 85.104,60.5 87.113,65.681 z" /> + +</g> + </g> +</svg> diff --git a/examples/gestures/browser/data/closetab.png b/examples/gestures/browser/data/closetab.png Binary files differnew file mode 100644 index 0000000..ab9d669 --- /dev/null +++ b/examples/gestures/browser/data/closetab.png diff --git a/examples/gestures/browser/data/data.qrc b/examples/gestures/browser/data/data.qrc new file mode 100644 index 0000000..c7d0294 --- /dev/null +++ b/examples/gestures/browser/data/data.qrc @@ -0,0 +1,11 @@ +<!DOCTYPE RCC><RCC version="1.0"> +<qresource> + <file>addtab.png</file> + <file>closetab.png</file> + <file>history.png</file> + <file>browser.svg</file> + <file>defaultbookmarks.xbel</file> + <file>loading.gif</file> + <file>defaulticon.png</file> +</qresource> +</RCC> diff --git a/examples/gestures/browser/data/defaultbookmarks.xbel b/examples/gestures/browser/data/defaultbookmarks.xbel new file mode 100644 index 0000000..a168244 --- /dev/null +++ b/examples/gestures/browser/data/defaultbookmarks.xbel @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE xbel> +<xbel version="1.0"> + <folder folded="yes"> + <title>Bookmarks Bar</title> + <bookmark href="http://qtsoftware.com/"> + <title>Qt Software</title> + </bookmark> + <bookmark href="http://webkit.org/"> + <title>WebKit.org</title> + </bookmark> + <bookmark href="http://doc.trolltech.com/"> + <title>Qt Documentation</title> + </bookmark> + <bookmark href="http://doc.trolltech.com/qq/"> + <title>Qt Quarterly</title> + </bookmark> + <bookmark href="http://labs.trolltech.com/"> + <title>Qt Labs</title> + </bookmark> + <bookmark href="http://www.qtcentre.org/"> + <title>Qt Centre</title> + </bookmark> + <bookmark href="http://qt-apps.org/"> + <title>Qt-Apps.org</title> + </bookmark> + <bookmark href="http://qtnode.net/"> + <title>qtnode</title> + </bookmark> + <bookmark href="http://xkcd.com/"> + <title>xkcd</title> + </bookmark> + </folder> + <folder folded="yes"> + <title>Bookmarks Menu</title> + <bookmark href="http://reddit.com/"> + <title>reddit.com: what's new online!</title> + </bookmark> + </folder> +</xbel> diff --git a/examples/gestures/browser/data/defaulticon.png b/examples/gestures/browser/data/defaulticon.png Binary files differnew file mode 100644 index 0000000..01a0920 --- /dev/null +++ b/examples/gestures/browser/data/defaulticon.png diff --git a/examples/gestures/browser/data/history.png b/examples/gestures/browser/data/history.png Binary files differnew file mode 100644 index 0000000..552a1cb --- /dev/null +++ b/examples/gestures/browser/data/history.png diff --git a/examples/gestures/browser/data/loading.gif b/examples/gestures/browser/data/loading.gif Binary files differnew file mode 100644 index 0000000..c1545eb --- /dev/null +++ b/examples/gestures/browser/data/loading.gif diff --git a/examples/gestures/browser/htmls/htmls.qrc b/examples/gestures/browser/htmls/htmls.qrc new file mode 100644 index 0000000..03b256c --- /dev/null +++ b/examples/gestures/browser/htmls/htmls.qrc @@ -0,0 +1,5 @@ +<!DOCTYPE RCC><RCC version="1.0"> +<qresource> + <file>notfound.html</file> +</qresource> +</RCC> diff --git a/examples/gestures/browser/htmls/notfound.html b/examples/gestures/browser/htmls/notfound.html new file mode 100644 index 0000000..b04a9f8 --- /dev/null +++ b/examples/gestures/browser/htmls/notfound.html @@ -0,0 +1,63 @@ +<html> +<head> +<title>%1</title> +<style> +body { + padding: 3em 0em; + background: #eeeeee; +} +hr { + color: lightgray; + width: 100%; +} +img { + float: left; + opacity: .8; +} +#box { + background: white; + border: 1px solid lightgray; + width: 600px; + padding: 60px; + margin: auto; +} +h1 { + font-size: 130%; + font-weight: bold; + border-bottom: 1px solid lightgray; + margin-left: 48px; +} +h2 { + font-size: 100%; + font-weight: normal; + border-bottom: 1px solid lightgray; + margin-left: 48px; +} +ul { + font-size: 80%; + padding-left: 48px; + margin: 0; +} +#reloadButton { + padding-left: 48px; +} +</style> +</head> +<body> + <div id="box"> + <img src="data:image/png;base64,IMAGE_BINARY_DATA_HERE" width="32" height="32"/> + <h1>%2</h1> + <h2>When connecting to: %3.</h2> + <ul> + <li>Check the address for errors such as <b>ww</b>.trolltech.com + instead of <b>www</b>.trolltech.com</li> + <li>If the address is correct, try checking the network + connection.</li> + <li>If your computer or network is protected by a firewall or + proxy, make sure that the browser demo is permitted to access + the network.</li> + </ul> + <br/><br/> + </div> +</body> +</html> diff --git a/examples/gestures/gestures.pro b/examples/gestures/gestures.pro index 8bd0acc..050be19 100644 --- a/examples/gestures/gestures.pro +++ b/examples/gestures/gestures.pro @@ -1,6 +1,7 @@ TEMPLATE = \ subdirs SUBDIRS = \ + browser \ imageviewer \ graphicsview \ collidingmice \ |