From 481a77111da8594e8703e819eecbad7662f6497b Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Mon, 22 Mar 2010 14:55:23 +0100 Subject: [PATCH] debugger: "fix" reverse execution icon. Needs work... --- src/plugins/debugger/debugger.qrc | 1 + src/plugins/debugger/debuggermanager.cpp | 9 +- src/plugins/debugger/images/reverse.svg | 174 +++++++++++++++++++++ src/plugins/debugger/images/reverse_16.png | Bin 0 -> 411 bytes 4 files changed, 181 insertions(+), 3 deletions(-) create mode 100644 src/plugins/debugger/images/reverse.svg create mode 100644 src/plugins/debugger/images/reverse_16.png diff --git a/src/plugins/debugger/debugger.qrc b/src/plugins/debugger/debugger.qrc index d63be1ecc2d..de3c9b3f02c 100644 --- a/src/plugins/debugger/debugger.qrc +++ b/src/plugins/debugger/debugger.qrc @@ -21,6 +21,7 @@ <file>images/debugger_interrupt.png</file> <file>images/debugger_stop.png</file> <file>images/SingleInstructionMode.png</file> + <file>images/reverse_16.png</file> <file>images/breakpoint_16.png</file> <file>images/breakpoint_24.png</file> <file>images/breakpoint_disabled_16.png</file> diff --git a/src/plugins/debugger/debuggermanager.cpp b/src/plugins/debugger/debuggermanager.cpp index 4f5978e610c..45af13ae719 100644 --- a/src/plugins/debugger/debuggermanager.cpp +++ b/src/plugins/debugger/debuggermanager.cpp @@ -513,12 +513,15 @@ void DebuggerManager::init() d->m_actions.watchAction2 = new QAction(tr("Add to Watch Window"), this); d->m_actions.snapshotAction = new QAction(tr("Snapshot"), this); - d->m_actions.snapshotAction->setIcon(QIcon(":/debugger/images/debugger_snapshot_small.png")); + d->m_actions.snapshotAction->setIcon( + QIcon(":/debugger/images/debugger_snapshot_small.png")); - d->m_actions.reverseDirectionAction = new QAction(tr("Reverse Direction"), this); + d->m_actions.reverseDirectionAction = + new QAction(tr("Reverse Direction"), this); d->m_actions.reverseDirectionAction->setCheckable(true); d->m_actions.reverseDirectionAction->setChecked(false); - d->m_actions.reverseDirectionAction->setIcon(QIcon(":/debugger/images/location_16.png")); + d->m_actions.reverseDirectionAction->setIcon( + QIcon(":/debugger/images/reverse_16.png")); connect(d->m_actions.continueAction, SIGNAL(triggered()), this, SLOT(executeContinue())); diff --git a/src/plugins/debugger/images/reverse.svg b/src/plugins/debugger/images/reverse.svg new file mode 100644 index 00000000000..5f492bccdb6 --- /dev/null +++ b/src/plugins/debugger/images/reverse.svg @@ -0,0 +1,174 @@ +<?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" + inkscape:output_extension="org.inkscape.output.svg.inkscape" + sodipodi:docname="reverse.svg" + version="1.0" + inkscape:version="0.47pre4 r22446" + sodipodi:version="0.32" + id="svg2243" + height="14" + width="14"> + <defs + id="defs2245"> + <inkscape:perspective + sodipodi:type="inkscape:persp3d" + inkscape:vp_x="0 : 7 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_z="14 : 7 : 1" + inkscape:persp3d-origin="7 : 4.6666667 : 1" + id="perspective18" /> + <linearGradient + id="linearGradient3134"> + <stop + style="stop-color:#dcdc23;stop-opacity:1;" + offset="0" + id="stop3136" /> + <stop + id="stop5080" + offset="0.64285713" + style="stop-color:#e5d044;stop-opacity:1;" /> + <stop + style="stop-color:#b89354;stop-opacity:1;" + offset="1" + id="stop3138" /> + </linearGradient> + <linearGradient + id="linearGradient3137"> + <stop + style="stop-color:#ffffff;stop-opacity:0.86274511;" + offset="0" + id="stop3139" /> + <stop + style="stop-color:#ffffff;stop-opacity:0;" + offset="1" + id="stop3141" /> + </linearGradient> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3137" + id="linearGradient3143" + x1="6.5" + y1="3" + x2="6.515625" + y2="12.180227" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(-0.88,0,0,-0.66666667,12.72,12.666667)" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3134" + id="linearGradient3140" + x1="6.5" + y1="3.015625" + x2="6.484375" + y2="11.984375" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(-1,0,0,-1,14,15)" /> + <filter + id="filter6985" + inkscape:label="Moonarize" + inkscape:menu="Color" + inkscape:menu-tooltip="An effect between solarize and invert which often preserves sky and water lights" + y="0" + x="0" + height="1" + width="1" + color-interpolation-filters="sRGB"> + <feColorMatrix + id="feColorMatrix6987" + type="hueRotate" + values="180" + result="fbSourceGraphic" /> + <feColorMatrix + id="feColorMatrix6989" + in="fbSourceGraphic" + values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0 " + result="result3" /> + <feBlend + id="feBlend6991" + in2="result3" + mode="lighten" + in="fbSourceGraphic" + result="result2" /> + <feBlend + id="feBlend6993" + in2="result2" + mode="multiply" + result="result1" + in="result2" /> + <feComposite + id="feComposite6995" + in2="SourceGraphic" + operator="in" /> + </filter> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="64" + inkscape:cx="8.3920091" + inkscape:cy="7.4257237" + inkscape:document-units="px" + inkscape:current-layer="layer1" + width="14px" + height="14px" + showborder="true" + inkscape:window-width="1600" + inkscape:window-height="1174" + inkscape:window-x="0" + inkscape:window-y="0" + showgrid="true" + inkscape:grid-points="true" + inkscape:window-maximized="0"> + <inkscape:grid + id="GridFromPre046Settings" + type="xygrid" + originx="0px" + originy="0px" + spacingx="0.5px" + spacingy="0.5px" + color="#0000ff" + empcolor="#0000ff" + opacity="0.2" + empopacity="0.4" + empspacing="2" /> + </sodipodi:namedview> + <metadata + id="metadata2248"> + <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></dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <path + style="fill:url(#linearGradient3140);fill-opacity:1;fill-rule:evenodd;stroke:#b18b1b;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;filter:url(#filter6985)" + d="m 7.5,12 0,-2.5 6,0 0,-4 -6,0 L 7.5,3 0.875,7.5 7.5,12 z" + id="path2216" + sodipodi:nodetypes="cccccccc" /> + </g> +</svg> diff --git a/src/plugins/debugger/images/reverse_16.png b/src/plugins/debugger/images/reverse_16.png new file mode 100644 index 0000000000000000000000000000000000000000..784914515d7da6f73f91e3e0032f5aa75c349d36 GIT binary patch literal 411 zcmeAS@N?(olHy`uVBq!ia0vp^d_c^_!3HE-Zss2cQY^(zo*^7SP{WbZ0pxQQctjQh z)n5l;MkkHg6+l7B64!{5;QX|b^2DN4hVt@qz0ADq;^f4FRK5J7^x5xhq!<_&B|Kdm zLo_BP|M~ylp4loRCnsfB@!a}f@7J%orfpXJIzb}=2pq*VbaG58%G3*<%bT$>rXABh zzacXTB-3(JLQL$~nNum|zu#}~IB}j!NhaqF56>L)y!r<sQI|V|lLO-x-@MFjc>5kl zXF>Ms&&3-y8yeL7KX{<vzv8ks`~MOWN96w{B=qpi-uUGF`3nkqwTga~nlXIN4e|Ao z67%x@H-1pQY|q9fcBbGE!~cJaEx&SJS$U1^kIbAL9-jC*BZHXz{VPAduV-UxWVgS- ze7x@4`}c+uYi|9KVY1=j@%OX&b3k_oPx%9d=0k_vnwOU=m)AX-B=q24-QSzHdY5(G zFfm%l{pI`h_zPxndYY#;Brtyd&mUj-Q<TB;X@0fcTdP&TfMoD=^>bP0l+XkKbM>cF literal 0 HcmV?d00001 -- GitLab