add icon for local var
This commit is contained in:
parent
00da09199b
commit
0c2d569cb9
|
@ -217,5 +217,6 @@
|
|||
<file>resources/iconsets/newlook/actions/08Problem-08Running.svg</file>
|
||||
<file>resources/iconsets/newlook/classparser/code_snippet.svg</file>
|
||||
<file>resources/iconsets/newlook/classparser/keyword.svg</file>
|
||||
<file>resources/iconsets/newlook/classparser/var.svg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
@ -69,6 +69,7 @@ void IconsManager::updateParserIcons(const QString &iconSet, int size)
|
|||
mIconPixmaps.insert(PARSER_PRIVATE_VAR, createSVGIcon(iconFolder+"var_private.svg",size,size));
|
||||
mIconPixmaps.insert(PARSER_KEYWORD, createSVGIcon(iconFolder+"keyword.svg",size,size));
|
||||
mIconPixmaps.insert(PARSER_CODE_SNIPPET, createSVGIcon(iconFolder+"code_snippet.svg",size,size));
|
||||
mIconPixmaps.insert(PARSER_LOCAL_VAR, createSVGIcon(iconFolder+"var.svg",size,size));
|
||||
|
||||
}
|
||||
|
||||
|
@ -266,6 +267,8 @@ QPixmap IconsManager::getPixmapForStatement(PStatement statement)
|
|||
break;
|
||||
case StatementKind::skGlobalVariable:
|
||||
return *(pIconsManager->getPixmap(IconsManager::PARSER_GLOBAL_VAR));
|
||||
case StatementKind::skLocalVariable:
|
||||
return *(pIconsManager->getPixmap(IconsManager::PARSER_LOCAL_VAR));
|
||||
case StatementKind::skVariable:
|
||||
// if (statement->scope == StatementScope::ssGlobal)
|
||||
// return QIcon(":/icons/images/classparser/global.ico");
|
||||
|
|
|
@ -56,6 +56,7 @@ public:
|
|||
PARSER_PRIVATE_VAR,
|
||||
PARSER_KEYWORD,
|
||||
PARSER_CODE_SNIPPET,
|
||||
PARSER_LOCAL_VAR,
|
||||
|
||||
ACTION_MISC_BACK,
|
||||
ACTION_MISC_FORWARD,
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
inkscape:pagecheckerboard="0"
|
||||
inkscape:document-units="px"
|
||||
showgrid="false"
|
||||
inkscape:zoom="4.0920135"
|
||||
inkscape:cx="71.358513"
|
||||
inkscape:cy="54.129831"
|
||||
inkscape:zoom="0.51150169"
|
||||
inkscape:cx="-723.36027"
|
||||
inkscape:cy="393.93809"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1001"
|
||||
inkscape:window-x="-9"
|
||||
|
@ -51,7 +51,7 @@
|
|||
ry="7.9375" />
|
||||
<path
|
||||
id="text3748"
|
||||
style="font-style:normal;font-weight:normal;font-size:28.2222px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.241984"
|
||||
d="m 8.9892087,3.448301 c -1.4690741,6.5274719 -2.9402539,13.05445 -4.4080035,19.582233 4.4021168,0 8.8042328,0 13.2063498,0 0.234096,-1.04466 0.470019,-2.088894 0.706411,-3.133013 -3.252433,0 -6.504867,0 -9.7572991,0 0.4662306,-2.066391 0.9324626,-4.132782 1.3986931,-6.199173 3.251844,0 6.503689,0 9.755534,0 0.236892,-1.039923 0.472135,-2.080239 0.708176,-3.120365 -3.252433,0 -6.504867,0 -9.7573,0 0.325538,-1.4580979 0.651076,-2.9161955 0.976613,-4.3742931 3.252434,0 6.504867,0 9.7573,0 0.23353,-1.0452572 0.471382,-2.0894991 0.704645,-3.1348195 -4.402117,-1e-7 -8.804233,0 -13.20635,0 C 9.045722,3.1953473 9.017465,3.3218242 8.9892087,3.448301 Z" />
|
||||
style="font-style:normal;font-weight:normal;font-size:28.2222px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.217708"
|
||||
d="M 8.9892087,5.1111866 C 7.5201346,10.394661 6.0489548,15.677737 4.5812052,20.961463 c 4.4021168,0 8.8042328,0 13.2063498,0 0.234096,-0.845571 0.470019,-1.690795 0.706411,-2.535927 -3.252433,0 -6.504867,0 -9.7572991,0 0.4662306,-1.672581 0.9324626,-3.345162 1.3986931,-5.017743 3.251844,0 6.503689,0 9.755534,0 0.236892,-0.841736 0.472135,-1.68379 0.708176,-2.52569 -3.252433,0 -6.504867,0 -9.7573,0 0.325538,-1.1802155 0.651076,-2.3604307 0.976613,-3.540646 3.252434,0 6.504867,0 9.7573,0 0.23353,-0.8460534 0.471382,-1.6912851 0.704645,-2.5373897 -4.402117,-10e-8 -8.804233,0 -13.20635,0 -0.028256,0.1023732 -0.056513,0.2047463 -0.084769,0.3071193 z" />
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
@ -0,0 +1,57 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="100"
|
||||
height="100"
|
||||
viewBox="0 0 26.458333 26.458333"
|
||||
version="1.1"
|
||||
id="svg5"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
sodipodi:docname="var.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview7"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:document-units="px"
|
||||
showgrid="false"
|
||||
inkscape:zoom="5.786981"
|
||||
inkscape:cx="87.092043"
|
||||
inkscape:cy="52.099704"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1001"
|
||||
inkscape:window-x="-9"
|
||||
inkscape:window-y="-9"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1"
|
||||
units="px"
|
||||
width="100px" />
|
||||
<defs
|
||||
id="defs2" />
|
||||
<g
|
||||
inkscape:label="图层 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<rect
|
||||
style="fill:#fff478;fill-opacity:1;stroke:none;stroke-width:0.864658;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="rect1440"
|
||||
width="26.508604"
|
||||
height="26.308193"
|
||||
x="0.084942333"
|
||||
y="0.091440894"
|
||||
rx="7.9375"
|
||||
ry="7.9375" />
|
||||
<path
|
||||
id="text3748"
|
||||
style="font-style:normal;font-weight:normal;font-size:28.2222px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
|
||||
d="m 5.8841306,6.3305207 c 0.9020375,5.2773953 1.8065276,10.5543743 2.7070312,15.8320313 1.1048177,0 2.2096352,0 3.3144532,0 3.484619,-5.483983 6.971194,-10.966723 10.455078,-16.4511719 -1.369791,0 -2.739583,0 -4.109375,0 -2.320965,3.7609122 -4.639107,7.5235699 -6.958984,11.2851559 -0.5968,-3.761647 -1.189967,-7.5238759 -1.7890628,-11.2851559 -1.2415365,-1e-7 -2.4830729,0 -3.7246094,0 0.035156,0.2063802 0.070312,0.4127604 0.1054688,0.6191406 z" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in New Issue