Toolbox icon support, PropertyGrid icons, Control creation fixes
svn path=/trunk/aspeditor/; revision=48390
This commit is contained in:
Родитель
27b0e0657f
Коммит
f5536e67a2
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 566 B |
|
@ -0,0 +1,405 @@
|
|||
<?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://web.resource.org/cc/"
|
||||
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://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16px"
|
||||
height="16px"
|
||||
id="svg2066"
|
||||
sodipodi:version="0.32"
|
||||
inkscape:version="0.42"
|
||||
sodipodi:docbase="/home/michael/mono/aspeditor/resources/icons"
|
||||
sodipodi:docname="AspNetEdit.UI.DefaultPropertyTab.svg"
|
||||
inkscape:export-filename="/home/michael/mono/aspeditor/resources/icons/AspNetEdit.UI.DefaultPropertyTab.bmp"
|
||||
inkscape:export-xdpi="90.000000"
|
||||
inkscape:export-ydpi="90.000000">
|
||||
<defs
|
||||
id="defs2068">
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient3074">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3076" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop3078" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient3066">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3068" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop3070" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient3058">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3060" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop3062" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient3050">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3052" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop3054" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient3040">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3042" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop3044" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient3002">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3004" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop3006" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient2994">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2996" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop2998" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2067">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2069" />
|
||||
<stop
|
||||
style="stop-color:#444744;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2071" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2059">
|
||||
<stop
|
||||
style="stop-color:#cbe2ff;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2061" />
|
||||
<stop
|
||||
style="stop-color:#ffffff;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2063" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2821">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2823" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2825" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2052">
|
||||
<stop
|
||||
style="stop-color:#ffff00;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2055" />
|
||||
<stop
|
||||
style="stop-color:#ffb800;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2057" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2049">
|
||||
<stop
|
||||
style="stop-color:#ffffff;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2052" />
|
||||
<stop
|
||||
style="stop-color:#c0e8ff;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2054" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2096">
|
||||
<stop
|
||||
style="stop-color:#005a2b;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2098" />
|
||||
<stop
|
||||
style="stop-color:#00ff2b;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2100" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2086">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2088" />
|
||||
<stop
|
||||
style="stop-color:#00004c;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2090" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2047">
|
||||
<stop
|
||||
style="stop-color:#547900;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2049" />
|
||||
<stop
|
||||
style="stop-color:#125c00;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2051" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2080">
|
||||
<stop
|
||||
style="stop-color:#a7af92;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2082" />
|
||||
<stop
|
||||
style="stop-color:#d1d5c6;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2084" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2047"
|
||||
id="linearGradient2053"
|
||||
x1="4.6757545"
|
||||
y1="4.5726242"
|
||||
x2="13.105989"
|
||||
y2="8.8748522"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<radialGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2821"
|
||||
id="radialGradient2827"
|
||||
cx="7.5683169"
|
||||
cy="8.4654703"
|
||||
fx="7.5683169"
|
||||
fy="8.4654703"
|
||||
r="5.8564358"
|
||||
gradientTransform="matrix(1.000000,0.000000,0.000000,1.263462,0.000000,-2.230326)"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2059"
|
||||
id="linearGradient2065"
|
||||
x1="2.1081090"
|
||||
y1="1.6480198"
|
||||
x2="11.076297"
|
||||
y2="11.829208"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(1.068898,0.000000,0.000000,1.068754,-0.534518,-0.533405)" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2067"
|
||||
id="linearGradient2073"
|
||||
x1="0.64399999"
|
||||
y1="8.0000000"
|
||||
x2="15.356000"
|
||||
y2="8.0000000"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(1.068898,0.000000,0.000000,1.068754,-0.534518,-0.533405)" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2994"
|
||||
id="linearGradient3000"
|
||||
x1="8.4519043"
|
||||
y1="11.476803"
|
||||
x2="8.2336636"
|
||||
y2="16.229527"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3002"
|
||||
id="linearGradient3008"
|
||||
x1="10.944386"
|
||||
y1="9.2634554"
|
||||
x2="11.049257"
|
||||
y2="14.984742"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3040"
|
||||
id="linearGradient3046"
|
||||
x1="11.348950"
|
||||
y1="10.800843"
|
||||
x2="11.563326"
|
||||
y2="15.756289"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3040"
|
||||
id="linearGradient3048"
|
||||
x1="4.3876238"
|
||||
y1="10.845893"
|
||||
x2="4.0506926"
|
||||
y2="15.688714"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3050"
|
||||
id="linearGradient3056"
|
||||
x1="10.785831"
|
||||
y1="10.117474"
|
||||
x2="10.729909"
|
||||
y2="16.672176"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3058"
|
||||
id="linearGradient3064"
|
||||
x1="4.0506926"
|
||||
y1="10.590494"
|
||||
x2="4.0506926"
|
||||
y2="15.771187"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3066"
|
||||
id="linearGradient3072"
|
||||
x1="4.3015256"
|
||||
y1="7.0533180"
|
||||
x2="4.5061293"
|
||||
y2="19.329309"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3074"
|
||||
id="linearGradient3080"
|
||||
x1="10.857407"
|
||||
y1="6.8956451"
|
||||
x2="10.869060"
|
||||
y2="18.676090"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="44.395604"
|
||||
inkscape:cx="11.478362"
|
||||
inkscape:cy="7.0634602"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:grid-bbox="true"
|
||||
inkscape:document-units="px"
|
||||
inkscape:window-width="1280"
|
||||
inkscape:window-height="951"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="25" />
|
||||
<metadata
|
||||
id="metadata2071">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer">
|
||||
<rect
|
||||
style="fill:url(#linearGradient2065);fill-opacity:1.0000000;stroke:url(#linearGradient2073);stroke-width:1.0026059;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:2.9580000;stroke-opacity:1.0000000"
|
||||
id="rect1331"
|
||||
width="14.964575"
|
||||
height="14.962565"
|
||||
x="0.53437936"
|
||||
y="0.53534985"
|
||||
rx="0.0000000" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.0191057;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 9.0191969,3.0000000 L 12.980803,3.0000000"
|
||||
id="path2079" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.0000000;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 2.9493073,3.0000000 L 5.0506927,3.0000000"
|
||||
id="path3022" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.0191057;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 9.0191969,6.0000000 L 12.980803,6.0000000"
|
||||
id="path3024" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.0000000;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 2.9493073,6.0000000 L 5.0506927,6.0000000"
|
||||
id="path3026" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:url(#linearGradient3080);stroke-width:2.0191057;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 9.0288412,8.9904472 L 12.990447,8.9904472"
|
||||
id="path3028"
|
||||
inkscape:export-filename="/home/michael/mono/aspeditor/resources/icons/AspNetEdit.UI.DefaultPropertyTab.bmp"
|
||||
inkscape:export-xdpi="90.000000"
|
||||
inkscape:export-ydpi="90.000000" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:url(#linearGradient3072);stroke-width:2.0000000;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 2.9589512,8.9904472 L 5.0603372,8.9904472"
|
||||
id="path3030" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:url(#linearGradient3056);stroke-width:2.0191057;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 9.0698890,12.009553 L 13.031495,12.009553"
|
||||
id="path3032" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:url(#linearGradient3064);stroke-width:2.0000000;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 3.0000000,12.009553 L 5.1013850,12.009553"
|
||||
id="path3034" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:url(#linearGradient3046);stroke-width:2.0191057;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 9.0698890,14.990447 L 13.031496,14.990447"
|
||||
id="path3036" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:url(#linearGradient3048);stroke-width:2.0000000;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 3.0000000,14.990447 L 5.1013850,14.990447"
|
||||
id="path3038" />
|
||||
</g>
|
||||
</svg>
|
После Ширина: | Высота: | Размер: 14 KiB |
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 590 B |
|
@ -0,0 +1,218 @@
|
|||
<?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://web.resource.org/cc/"
|
||||
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://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16px"
|
||||
height="16px"
|
||||
id="svg2066"
|
||||
sodipodi:version="0.32"
|
||||
inkscape:version="0.42"
|
||||
sodipodi:docbase="/home/michael/mono/aspeditor/resources/icons"
|
||||
sodipodi:docname="AspNetEdit.UI.EventPropertyTab.svg"
|
||||
inkscape:export-filename="/home/michael/mono/aspeditor/resources/icons/AspNetEdit.UI.EventPropertyTab.bmp"
|
||||
inkscape:export-xdpi="90.000000"
|
||||
inkscape:export-ydpi="90.000000">
|
||||
<defs
|
||||
id="defs2068">
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient2068">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2070" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop2072" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2821">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2823" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2825" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2052">
|
||||
<stop
|
||||
style="stop-color:#ffff00;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2055" />
|
||||
<stop
|
||||
style="stop-color:#ffb800;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2057" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2049">
|
||||
<stop
|
||||
style="stop-color:#ffffff;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2052" />
|
||||
<stop
|
||||
style="stop-color:#c0e8ff;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2054" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2096">
|
||||
<stop
|
||||
style="stop-color:#005a2b;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2098" />
|
||||
<stop
|
||||
style="stop-color:#00ff2b;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2100" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2086">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2088" />
|
||||
<stop
|
||||
style="stop-color:#00004c;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2090" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2047">
|
||||
<stop
|
||||
style="stop-color:#547900;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2049" />
|
||||
<stop
|
||||
style="stop-color:#125c00;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2051" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2080">
|
||||
<stop
|
||||
style="stop-color:#a7af92;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2082" />
|
||||
<stop
|
||||
style="stop-color:#d1d5c6;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2084" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2047"
|
||||
id="linearGradient2053"
|
||||
x1="4.6757545"
|
||||
y1="4.5726242"
|
||||
x2="13.105989"
|
||||
y2="8.8748522"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2052"
|
||||
id="linearGradient2059"
|
||||
x1="2.0962253"
|
||||
y1="1.7336631"
|
||||
x2="13.877043"
|
||||
y2="13.376793"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2052"
|
||||
id="linearGradient2067"
|
||||
x1="2.9071164"
|
||||
y1="8.0180693"
|
||||
x2="12.165161"
|
||||
y2="8.0180693"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<radialGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2821"
|
||||
id="radialGradient2827"
|
||||
cx="7.5683169"
|
||||
cy="8.4654703"
|
||||
fx="7.5683169"
|
||||
fy="8.4654703"
|
||||
r="5.8564358"
|
||||
gradientTransform="matrix(1.000000,0.000000,0.000000,1.263462,0.000000,-2.230326)"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<radialGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2821"
|
||||
id="radialGradient3563"
|
||||
cx="10.074579"
|
||||
cy="8.5064850"
|
||||
fx="10.074579"
|
||||
fy="8.5064850"
|
||||
r="4.8287725"
|
||||
gradientTransform="matrix(0.959231,-2.135268,1.190395,0.534767,-11.68172,25.43595)"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<radialGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2068"
|
||||
id="radialGradient2074"
|
||||
cx="5.3721533"
|
||||
cy="8.6794558"
|
||||
fx="5.3721533"
|
||||
fy="8.6794558"
|
||||
r="4.2773516"
|
||||
gradientTransform="matrix(0.678771,-4.593864e-7,6.678817e-7,0.986835,1.725686,0.114269)"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="44.395604"
|
||||
inkscape:cx="11.305524"
|
||||
inkscape:cy="7.5584939"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:grid-bbox="true"
|
||||
inkscape:document-units="px"
|
||||
inkscape:window-width="1280"
|
||||
inkscape:window-height="951"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="25" />
|
||||
<metadata
|
||||
id="metadata2071">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer">
|
||||
<path
|
||||
style="fill:url(#radialGradient3563);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:0.71200001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 13.673834,-6.6128713 L 0.94603961,9.9407965 L 5.3243634,9.9403761 L 2.6245641,20.991089 L 14.684653,4.9880453 L 9.7498037,4.9204710 L 13.673834,-6.6128713 z "
|
||||
id="path2829"
|
||||
sodipodi:nodetypes="ccccccc" />
|
||||
<path
|
||||
style="fill:url(#linearGradient2067);fill-opacity:1.0;fill-rule:evenodd;stroke:url(#linearGradient2059);stroke-width:0.71200000;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;stroke-miterlimit:4.0000000;stroke-dasharray:none"
|
||||
d="M 9.9821782,0.067574258 L 3.0633663,8.9009901 L 6.9774752,8.8559406 L 5.0047030,15.968564 L 12.008911,6.0225248 L 8.0047030,6.0225248 L 9.9821782,0.067574258 z "
|
||||
id="path1324"
|
||||
sodipodi:nodetypes="ccccccc" />
|
||||
</g>
|
||||
</svg>
|
После Ширина: | Высота: | Размер: 7.1 KiB |
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 422 B |
|
@ -0,0 +1,268 @@
|
|||
<?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://web.resource.org/cc/"
|
||||
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://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16px"
|
||||
height="16px"
|
||||
id="svg2066"
|
||||
sodipodi:version="0.32"
|
||||
inkscape:version="0.42"
|
||||
sodipodi:docbase="/home/michael/mono/aspeditor/resources/icons"
|
||||
sodipodi:docname="AspNetEdit.UI.PropertyGrid.SortByCat.svg"
|
||||
inkscape:export-filename="/home/michael/mono/aspeditor/resources/icons/AspNetEdit.UI.DefaultPropertyTab.bmp"
|
||||
inkscape:export-xdpi="90.000000"
|
||||
inkscape:export-ydpi="90.000000">
|
||||
<defs
|
||||
id="defs2068">
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient3002">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3004" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop3006" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient2994">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2996" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop2998" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2067">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2069" />
|
||||
<stop
|
||||
style="stop-color:#444744;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2071" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2059">
|
||||
<stop
|
||||
style="stop-color:#cbe2ff;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2061" />
|
||||
<stop
|
||||
style="stop-color:#ffffff;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2063" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2821">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2823" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2825" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2052">
|
||||
<stop
|
||||
style="stop-color:#ffff00;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2055" />
|
||||
<stop
|
||||
style="stop-color:#ffb800;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2057" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2049">
|
||||
<stop
|
||||
style="stop-color:#ffffff;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2052" />
|
||||
<stop
|
||||
style="stop-color:#c0e8ff;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2054" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2096">
|
||||
<stop
|
||||
style="stop-color:#005a2b;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2098" />
|
||||
<stop
|
||||
style="stop-color:#00ff2b;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2100" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2086">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2088" />
|
||||
<stop
|
||||
style="stop-color:#00004c;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2090" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2047">
|
||||
<stop
|
||||
style="stop-color:#547900;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2049" />
|
||||
<stop
|
||||
style="stop-color:#125c00;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2051" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient2080">
|
||||
<stop
|
||||
style="stop-color:#a7af92;stop-opacity:1.0000000;"
|
||||
offset="0.0000000"
|
||||
id="stop2082" />
|
||||
<stop
|
||||
style="stop-color:#d1d5c6;stop-opacity:1.0000000;"
|
||||
offset="1.0000000"
|
||||
id="stop2084" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2047"
|
||||
id="linearGradient2053"
|
||||
x1="4.6757545"
|
||||
y1="4.5726242"
|
||||
x2="13.105989"
|
||||
y2="8.8748522"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<radialGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2821"
|
||||
id="radialGradient2827"
|
||||
cx="7.5683169"
|
||||
cy="8.4654703"
|
||||
fx="7.5683169"
|
||||
fy="8.4654703"
|
||||
r="5.8564358"
|
||||
gradientTransform="matrix(1.000000,0.000000,0.000000,1.263462,0.000000,-2.230326)"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2059"
|
||||
id="linearGradient2065"
|
||||
x1="2.1081090"
|
||||
y1="1.6480198"
|
||||
x2="11.076297"
|
||||
y2="11.829208"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(1.068898,0.000000,0.000000,1.068754,-0.534518,-0.533405)" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2067"
|
||||
id="linearGradient2073"
|
||||
x1="0.64399999"
|
||||
y1="8.0000000"
|
||||
x2="15.356000"
|
||||
y2="8.0000000"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(1.068898,0.000000,0.000000,1.068754,-0.534518,-0.533405)" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2994"
|
||||
id="linearGradient3000"
|
||||
x1="8.4519043"
|
||||
y1="11.476803"
|
||||
x2="8.2336636"
|
||||
y2="16.229527"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3002"
|
||||
id="linearGradient3008"
|
||||
x1="10.944386"
|
||||
y1="9.2634554"
|
||||
x2="11.049257"
|
||||
y2="14.984742"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="44.395604"
|
||||
inkscape:cx="11.478362"
|
||||
inkscape:cy="7.9652653"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:grid-bbox="true"
|
||||
inkscape:document-units="px"
|
||||
inkscape:window-width="1280"
|
||||
inkscape:window-height="951"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="25" />
|
||||
<metadata
|
||||
id="metadata2071">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer">
|
||||
<rect
|
||||
style="fill:url(#linearGradient2065);fill-opacity:1.0000000;stroke:url(#linearGradient2073);stroke-width:1.0026059;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:2.9580000;stroke-opacity:1.0000000"
|
||||
id="rect1331"
|
||||
width="14.964575"
|
||||
height="14.962565"
|
||||
x="0.53437936"
|
||||
y="0.53534985"
|
||||
rx="0.0000000" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.9957227;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 2.9876286,3.0084109 L 13.012372,3.0084109"
|
||||
id="path2075" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.99193734;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 4.4919699,5.5000000 L 13.508030,5.5000000"
|
||||
id="path2079" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.99193734;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 4.4959687,7.5040313 L 13.512029,7.5040313"
|
||||
id="path2988" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:url(#linearGradient3008);stroke-width:1.9957227;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 2.9773955,10.997861 L 13.002139,10.997861"
|
||||
id="path2990" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:url(#linearGradient3000);stroke-width:0.99193734;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
|
||||
d="M 4.4879713,13.504031 L 13.504031,13.504031"
|
||||
id="path2992" />
|
||||
</g>
|
||||
</svg>
|
После Ширина: | Высота: | Размер: 9.0 KiB |
|
@ -117,7 +117,7 @@ namespace AspNetEdit.Editor.ComponentModel
|
|||
|
||||
//add to document unless root
|
||||
if (components.Count != 0)
|
||||
((WebFormPage) host.RootComponent).AddControlAtCursor ((Control) component);
|
||||
((WebFormPage) host.RootComponent).AddControl ((Control) component);
|
||||
|
||||
//TODO: add references to referenceManager
|
||||
|
||||
|
@ -360,38 +360,6 @@ namespace AspNetEdit.Editor.ComponentModel
|
|||
#endregion
|
||||
}
|
||||
|
||||
/* Decided to watch existing controls' ID property instead of messing about with hiding it and
|
||||
* using this extender provider. May bring it back. Version control not online yet.
|
||||
*
|
||||
* [ProvideProperty("(ID)", typeof(IComponent))]
|
||||
* ((IExtenderProviderService)host.GetService(typeof(IExtenderProviderService))).AddExtenderProvider(this);
|
||||
*
|
||||
#region IExtenderProvider Members
|
||||
|
||||
//we entend the "(ID)" property to childern of the container
|
||||
public bool CanExtend(object extendee)
|
||||
{
|
||||
if ((extendee as IComponent).Site == this)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
[Description("Programmatic name of the control")]
|
||||
[Category("Misc")]
|
||||
public string GetID(IComponent component)
|
||||
{
|
||||
return component.Site.Name;
|
||||
}
|
||||
|
||||
public void SetID(IComponent component, string value)
|
||||
{
|
||||
component.Site.Name = value;
|
||||
}
|
||||
|
||||
#endregion
|
||||
*/
|
||||
|
||||
#region IDisposable Members
|
||||
|
||||
private bool disposed = false;
|
||||
|
|
|
@ -73,7 +73,7 @@ namespace AspNetEdit.Editor.ComponentModel
|
|||
//check arguments
|
||||
if (componentClass == null)
|
||||
throw new ArgumentNullException ("componentClass");
|
||||
if (!componentClass.IsSubclassOf (typeof (System.Web.UI.Control)))
|
||||
if (!componentClass.IsSubclassOf (typeof (System.Web.UI.Control)) && componentClass.GetType() != typeof (System.Web.UI.Control))
|
||||
throw new ArgumentException ("componentClass must be a subclass of System.Web.UI.Control", "componentClass");
|
||||
|
||||
if (componentClass.IsSubclassOf (typeof (System.Web.UI.Page)))
|
||||
|
@ -84,7 +84,7 @@ namespace AspNetEdit.Editor.ComponentModel
|
|||
IComponent component = constructor.Invoke(new object[] { }) as IComponent;
|
||||
|
||||
//and add to container
|
||||
container.Add (component, name);
|
||||
container.Add (component, name);
|
||||
|
||||
return component;
|
||||
}
|
||||
|
@ -96,10 +96,6 @@ namespace AspNetEdit.Editor.ComponentModel
|
|||
|
||||
public void DestroyComponent (IComponent component)
|
||||
{
|
||||
//remove from document
|
||||
if ( !(component is Page))
|
||||
((WebFormPage) RootComponent).RemoveControl ((Control) component);
|
||||
|
||||
//remove from container
|
||||
container.Remove (component);
|
||||
component.Dispose ();
|
||||
|
@ -361,6 +357,14 @@ namespace AspNetEdit.Editor.ComponentModel
|
|||
|
||||
writer.Write(((WebFormPage) RootComponent).PersistDocument ());
|
||||
writer.Flush ();
|
||||
}
|
||||
}
|
||||
|
||||
/*TODO: Some .NET 2.0 System.Web.UI.Design.WebFormsRootDesigner methods
|
||||
public abstract void RemoveControlFromDocument(Control control);
|
||||
public virtual void SetControlID(Control control, string id);
|
||||
public abstract string AddControlToDocument(Control newControl, Control referenceControl, ControlLocation location);
|
||||
public virtual string GenerateEmptyDesignTimeHtml(Control control);
|
||||
public virtual string GenerateErrorDesignTimeHtml(Control control, Exception e, string errorMessage);
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
|
@ -291,8 +291,8 @@ namespace AspNetEdit.Editor.ComponentModel
|
|||
|
||||
foreach (Type t in types)
|
||||
{
|
||||
if (t.IsAbstract) continue;
|
||||
|
||||
if (t.IsAbstract || t.IsNotPublic) continue;
|
||||
|
||||
AttributeCollection atts = TypeDescriptor.GetAttributes (t);
|
||||
|
||||
bool containsAtt = false;
|
||||
|
|
|
@ -215,16 +215,18 @@ namespace AspNetEdit.Editor.ComponentModel
|
|||
return builder.ToString ();
|
||||
}
|
||||
|
||||
public void AddControlAtCursor (Control control)
|
||||
public void AddControl (Control control)
|
||||
{
|
||||
string subst = String.Format (controlSubstitute, control.Site.Name);
|
||||
document.Replace (cursor, subst+cursor);
|
||||
document.Replace (cursor, subst+cursor);
|
||||
base.Controls.Add (control);
|
||||
}
|
||||
|
||||
public void RemoveControl (Control control)
|
||||
{
|
||||
string subst = String.Format (controlSubstitute, control.Site.Name);
|
||||
document.Replace (subst, string.Empty);
|
||||
document.Replace (subst, string.Empty);
|
||||
base.Controls.Remove (control);
|
||||
}
|
||||
|
||||
internal void RenameControl (string oldName, string newName)
|
||||
|
@ -235,6 +237,11 @@ namespace AspNetEdit.Editor.ComponentModel
|
|||
document.Replace (oldSubstituteText, newSubstituteText);
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
//TODO:enforce this...
|
||||
public override void VerifyRenderingInServerForm (Control control)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
* USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Web.UI.Design;
|
||||
|
||||
namespace AspNetEdit.Editor.ComponentModel
|
||||
|
@ -52,6 +53,19 @@ namespace AspNetEdit.Editor.ComponentModel
|
|||
return "asp";
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
/*
|
||||
public string RegisterTagPrefix (Type objectType)
|
||||
{
|
||||
}
|
||||
|
||||
public string GetUserControlPath (string tagPrefix, string tagName)
|
||||
{
|
||||
}
|
||||
|
||||
public Type GetType(string tagPrefix, string tagName)
|
||||
{
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
|
@ -123,13 +123,26 @@ namespace AspNetEdit.Editor.UI
|
|||
}
|
||||
|
||||
//get the items and add them all
|
||||
ToolboxItemCollection tools = toolboxService.GetToolboxItems (category, host);
|
||||
foreach (ToolboxItem item in tools) {
|
||||
ToolboxItemCollection tools = toolboxService.GetToolboxItems (category, host);
|
||||
|
||||
ToolboxItem[] toolsArr = new ToolboxItem[tools.Count];
|
||||
tools.CopyTo (toolsArr, 0);
|
||||
Array.Sort (toolsArr, new SortByName ());
|
||||
|
||||
foreach (ToolboxItem item in toolsArr) {
|
||||
ToolboxItemBox itemBox = new ToolboxItemBox (item);
|
||||
itemBox.ButtonReleaseEvent += new ButtonReleaseEventHandler (itemBox_ButtonReleaseEvent);
|
||||
itemBox.ButtonPressEvent += new ButtonPressEventHandler (itemBox_ButtonPressEvent);
|
||||
itemBox.MotionNotifyEvent += new MotionNotifyEventHandler (itemBox_MotionNotifyEvent);
|
||||
((VBox) ((Expander) (expanders[category])).Child).PackEnd (itemBox);
|
||||
((VBox) ((Expander) (expanders[category])).Child).PackEnd (itemBox, false, false, 0);
|
||||
}
|
||||
}
|
||||
|
||||
private class SortByName : IComparer
|
||||
{
|
||||
public int Compare(object x, object y)
|
||||
{
|
||||
return ((ToolboxItem) y).DisplayName.CompareTo (((ToolboxItem) x).DisplayName);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -228,12 +241,9 @@ namespace AspNetEdit.Editor.UI
|
|||
Drag.SetIconPixmap (context, im.Colormap, im.Pixmap, im.Mask, 0, 0);
|
||||
break;
|
||||
case ImageType.Pixbuf:
|
||||
Drag.SetIconStock (context, im.Stock, 0, 0);
|
||||
Drag.SetIconPixbuf (context, im.Pixbuf, -8, -8);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Console.WriteLine (toolboxService.SerializeToolboxItem (itemBox.ToolboxItem).ToString ());;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -28,16 +28,20 @@
|
|||
* USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Gtk;
|
||||
using System.Drawing.Design;
|
||||
using System.Drawing.Design;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Imaging;
|
||||
|
||||
namespace AspNetEdit.Editor.UI
|
||||
{
|
||||
internal class ToolboxItemBox : EventBox
|
||||
{
|
||||
private ToolboxItem item;
|
||||
Image image;
|
||||
Gtk.Image image;
|
||||
HBox hbox;
|
||||
|
||||
public ToolboxItemBox (ToolboxItem item)
|
||||
{
|
||||
|
@ -49,10 +53,14 @@ namespace AspNetEdit.Editor.UI
|
|||
lab.Xalign = 0;
|
||||
lab.Xpad = 3;
|
||||
|
||||
//TODO: load image from ToolboxItem's bitmap (need to implement that too!)
|
||||
image = new Image (Stock.MissingImage, IconSize.SmallToolbar);
|
||||
//load image from ToolboxItem's bitmap
|
||||
if (item.Bitmap != null)
|
||||
image = new Gtk.Image (ImageToPixbuf (item.Bitmap));
|
||||
else
|
||||
image = new Gtk.Image (Stock.MissingImage, IconSize.SmallToolbar);
|
||||
image.Ypad = 2;
|
||||
|
||||
HBox hbox = new HBox ();
|
||||
hbox = new HBox ();
|
||||
hbox.PackStart (image, false, false, 2);
|
||||
hbox.PackEnd (lab, true, true, 2);
|
||||
|
||||
|
@ -76,8 +84,17 @@ namespace AspNetEdit.Editor.UI
|
|||
base.ModifyFg (StateType.Normal, Parent.Style.Foreground (StateType.Normal));
|
||||
}
|
||||
|
||||
public Image Image {
|
||||
public Gtk.Image Image {
|
||||
get { return image; }
|
||||
}
|
||||
|
||||
private Gdk.Pixbuf ImageToPixbuf(System.Drawing.Image image)
|
||||
{
|
||||
using (MemoryStream stream = new MemoryStream ()) {
|
||||
image.Save (stream, ImageFormat.Tiff);
|
||||
stream.Position = 0;
|
||||
return new Gdk.Pixbuf (stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,97 @@
|
|||
/*
|
||||
* ExpandableObjectEditor.cs - Temporary editor until we get expandable object support in main grid
|
||||
*
|
||||
* Part of PropertyGrid - A Gtk# widget that displays and allows
|
||||
* editing of all of an object's public properties
|
||||
*
|
||||
* Authors:
|
||||
* Michael Hutchinson <m.j.hutchinson@gmail.com>
|
||||
*
|
||||
* Copyright (C) 2005 Michael Hutchinson
|
||||
*
|
||||
* This sourcecode is licenced under The MIT License:
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||
* persons to whom the Software is furnished to do so, subject to the
|
||||
* following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
||||
* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||||
* USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using Gtk;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.Design;
|
||||
using System.Collections;
|
||||
|
||||
namespace AspNetEdit.UI.PropertyEditors
|
||||
{
|
||||
class ExpandableObjectEditor : BaseEditor
|
||||
{
|
||||
private PropertyGrid grid;
|
||||
|
||||
public ExpandableObjectEditor (GridRow parentRow)
|
||||
: base (parentRow)
|
||||
{
|
||||
}
|
||||
|
||||
public override bool InPlaceEdit
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
public override bool DialogueEdit
|
||||
{
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
public override bool EditsReadOnlyObject {
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
public override void LaunchDialogue ()
|
||||
{
|
||||
//dialogue and buttons
|
||||
Dialog dialog = new Dialog ();
|
||||
dialog.Title = "Expandable Object Editor ";
|
||||
dialog.Modal = true;
|
||||
dialog.AllowGrow = true;
|
||||
dialog.AllowShrink = true;
|
||||
dialog.Modal = true;
|
||||
dialog.AddActionWidget (new Button (Stock.Cancel), ResponseType.Cancel);
|
||||
dialog.AddActionWidget (new Button (Stock.Ok), ResponseType.Ok);
|
||||
|
||||
//propGrid
|
||||
grid = new PropertyGrid (parentRow.ParentGrid.EditorManager);
|
||||
grid.CurrentObject = parentRow.PropertyValue;
|
||||
grid.WidthRequest = 200;
|
||||
grid.ShowHelp = false;
|
||||
dialog.VBox.PackStart (grid, true, true, 5);
|
||||
|
||||
//show and get response
|
||||
dialog.ShowAll ();
|
||||
ResponseType response = (ResponseType) dialog.Run();
|
||||
dialog.Destroy ();
|
||||
|
||||
//if 'OK' put items back in collection
|
||||
if (response == ResponseType.Ok)
|
||||
{
|
||||
}
|
||||
|
||||
//clean up so we start fresh if launched again
|
||||
}
|
||||
}
|
||||
}
|
|
@ -112,6 +112,11 @@ namespace AspNetEdit.UI
|
|||
|
||||
//can we use a type converter with a built-in editor?
|
||||
TypeConverter tc = pd.Converter;
|
||||
|
||||
//TODO: build this functionality into the grid
|
||||
if (tc.GetType () == typeof (ExpandableObjectConverter)) {
|
||||
return new ExpandableObjectEditor (parentRow);
|
||||
}
|
||||
|
||||
//This is a temporary workaround *and* and optimisation
|
||||
//First, most unknown types will be most likely to convert to/from strings
|
||||
|
|
|
@ -88,7 +88,8 @@ public class PropertyGrid : Gtk.VBox
|
|||
toolbar.IconSize = IconSize.SmallToolbar;
|
||||
base.PackStart (toolbar, false, false, 0);
|
||||
|
||||
catButton = new RadioToolButton (new GLib.SList (IntPtr.Zero), Stock.MissingImage);
|
||||
catButton = new RadioToolButton (new GLib.SList (IntPtr.Zero));
|
||||
catButton.IconWidget = new Image (new Gdk.Pixbuf (null, "AspNetEdit.UI.PropertyGrid.SortByCat.png"));
|
||||
catButton.SetTooltip (tips, "Sort in categories", null);
|
||||
catButton.Toggled += new EventHandler (toolbarClick);
|
||||
toolbar.Insert (catButton, 0);
|
||||
|
@ -202,7 +203,15 @@ public class PropertyGrid : Gtk.VBox
|
|||
rtb.Active = true;
|
||||
}
|
||||
else
|
||||
rtb = new RadioToolButton ((RadioToolButton) toolbar.GetNthItem (propertyTabs.Count + FirstTabIndex - 1), Stock.MissingImage);
|
||||
rtb = new RadioToolButton ((RadioToolButton) toolbar.GetNthItem (propertyTabs.Count + FirstTabIndex - 1));
|
||||
|
||||
//load image from PropertyTab's bitmap
|
||||
if (tab.Bitmap != null)
|
||||
rtb.IconWidget = new Gtk.Image (ImageToPixbuf (tab.Bitmap));
|
||||
else
|
||||
rtb.IconWidget = new Gtk.Image (Stock.MissingImage, IconSize.SmallToolbar);
|
||||
|
||||
//Console.WriteLine (rtb.IconWidget.GetType().ToString());
|
||||
rtb.SetTooltip (tips, tab.TabName, null);
|
||||
rtb.Toggled += new EventHandler (toolbarClick);
|
||||
|
||||
|
@ -440,6 +449,16 @@ public class PropertyGrid : Gtk.VBox
|
|||
else
|
||||
vpaned.Remove (descFrame);
|
||||
}
|
||||
}
|
||||
|
||||
//for PropertyTab images
|
||||
private Gdk.Pixbuf ImageToPixbuf(System.Drawing.Image image)
|
||||
{
|
||||
using (MemoryStream stream = new MemoryStream ()) {
|
||||
image.Save (stream, System.Drawing.Imaging.ImageFormat.Tiff);
|
||||
stream.Position = 0;
|
||||
return new Gdk.Pixbuf (stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
ASSEMBLY_NAME = propertygrid
|
||||
ASSEMBLY = $(top_builddir)/build/lib/$(ASSEMBLY_NAME).dll
|
||||
TARGET = $(ASSEMBLY)
|
||||
resdir = $(top_builddir)/resources
|
||||
|
||||
propertygriddir=$(pkglibdir)
|
||||
propertygrid_SCRIPTS = $(ASSEMBLY)
|
||||
|
@ -25,6 +26,7 @@ PROPERTYGRID_CSFILES = \
|
|||
$(srcdir)/AspNetEdit.UI/DefaultPropertyTab.cs \
|
||||
$(srcdir)/AspNetEdit.UI/EventPropertyTab.cs \
|
||||
$(srcdir)/AspNetEdit.UI.Editors/StringEditor.cs \
|
||||
$(srcdir)/AspNetEdit.UI.Editors/ExpandableObjectEditor.cs \
|
||||
$(srcdir)/AspNetEdit.UI.Editors/NumberEditor.cs \
|
||||
$(srcdir)/AspNetEdit.UI.Editors/EnumEditor.cs \
|
||||
$(srcdir)/AspNetEdit.UI.Editors/DefaultEditor.cs \
|
||||
|
@ -34,11 +36,16 @@ PROPERTYGRID_CSFILES = \
|
|||
$(srcdir)/AspNetEdit.UI.Editors/BaseEditor.cs \
|
||||
$(srcdir)/AspNetEdit.UI.Editors/EventEditor.cs
|
||||
|
||||
RESOURCE_FILES = \
|
||||
$(resdir)/icons/AspNetEdit.UI.EventPropertyTab.bmp \
|
||||
$(resdir)/icons/AspNetEdit.UI.DefaultPropertyTab.bmp \
|
||||
$(resdir)/icons/AspNetEdit.UI.PropertyGrid.SortByCat.png
|
||||
|
||||
EXTRA_DIST = $(PROPERTYGRID_CSFILES)
|
||||
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
|
||||
|
||||
$(ASSEMBLY): $(PROPERTYGRID_CSFILES)
|
||||
$(MCS) $(PROPERTYGRID_REFERENCES) -debug -target:library -out:$@ $(PROPERTYGRID_CSFILES)
|
||||
$(MCS) $(PROPERTYGRID_REFERENCES) $(RESOURCE_FILES:%=/resource:%) -debug -target:library -out:$@ $(PROPERTYGRID_CSFILES)
|
||||
|
||||
$(ASSEMBLY).mdb: $(ASSEMBLY)
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
<File name="./AspNetEdit.UI.Editors/EventEditor.cs" subtype="Code" buildaction="Compile" />
|
||||
<File name="./AspNetEdit.UI/DefaultPropertyTab.cs" subtype="Code" buildaction="Compile" />
|
||||
<File name="./AspNetEdit.UI/EventPropertyTab.cs" subtype="Code" buildaction="Compile" />
|
||||
<File name="./AspNetEdit.UI.Editors/ExpandableObjectEditor.cs" subtype="Code" buildaction="Compile" />
|
||||
</Contents>
|
||||
<References>
|
||||
<ProjectReference type="Gac" localcopy="True" refto="System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче