Subversion Repositories basico

Compare Revisions

Ignore whitespace Rev 377 → Rev 378

/branches/BR-0.4/basico/data/icons/basico-check-invert.svg
0,0 → 1,77
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="1792"
height="1792"
viewBox="0 0 1792 1792"
version="1.1"
id="svg4"
sodipodi:docname="basico-check-invert.svg"
inkscape:version="0.92.3 (2405546, 2018-03-11)">
<metadata
id="metadata10">
<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>
<defs
id="defs8">
<inkscape:path-effect
effect="bspline"
id="path-effect4564"
is_visible="true"
weight="33.333333"
steps="2"
helper_size="0"
apply_no_weight="true"
apply_with_weight="true"
only_selected="false" />
</defs>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1023"
id="namedview6"
showgrid="false"
inkscape:zoom="0.37249375"
inkscape:cx="793.72532"
inkscape:cy="912.00945"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
id="path2"
d="M 352,128 C 272.66667,128 204.83333,156.16667 148.5,212.5 92.166667,268.83333 64,336.66667 64,416 v 832 c 0,79.3333 28.166667,147.1667 84.5,203.5 56.33333,56.3333 124.16667,84.5 203.5,84.5 h 832 c 79.3333,0 147.1667,-28.1667 203.5,-84.5 56.3333,-56.3333 84.5,-124.1667 84.5,-203.5 V 930 c 0,-14 -6.6667,-23.66667 -20,-29 -4,-2 -8,-3 -12,-3 -8.6667,0 -16.3333,3.33333 -23,10 l -64,64 c -6,6 -9,13.33333 -9,22 v 254 c 0,44 -15.6667,81.6667 -47,113 -31.3333,31.3333 -69,47 -113,47 H 352 c -44,0 -81.66667,-15.6667 -113,-47 -31.33333,-31.3333 -47,-69 -47,-113 V 416 c 0,-44 15.66667,-81.66667 47,-113 31.33333,-31.33333 69,-47 113,-47 h 832 c 14.6667,0 29.6667,2 45,6 4,1.33333 7,2 9,2 8.6667,0 16.3333,-3.33333 23,-10 l 49,-49 c 8,-8 11,-17.66667 9,-29 -2,-10.66667 -8,-18.33333 -18,-23 -36,-16.66667 -75,-25 -117,-25 z m 120.60742,742.4043 c -0.003,0.003 -0.006,0.005 -0.01,0.008 l 0.0371,0.26758 c 0.005,10e-4 0.0105,0.002 0.0156,0.004 -0.0149,-0.093 -0.028,-0.1863 -0.043,-0.27929 z m 74.63086,127.62304 c -0.10811,0.61919 -0.2246,1.27351 -0.33398,1.90821 1.09442,2.33615 2.3653,5.09565 3.86328,8.42185 -0.0278,-0.1364 -0.0577,-0.2743 -0.0859,-0.4121 -1.20131,-3.535 -2.34603,-6.8283 -3.44336,-9.91796 z" />
<circle
id="path44"
style="fill:#000000;stroke:none"
cx="349.28815"
cy="896"
r="1.5" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:114.41954041;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 356.54016,814.81556 830.56974,2.65829"
id="path4566"
inkscape:connector-type="polyline"
inkscape:connector-curvature="0" />
</svg>
/branches/BR-0.4/basico/widgets/wdg_visor_annotations.py
728,13 → 728,26
button.connect('clicked', self.select_all, False)
box.pack_start(button, False, False, 0)
 
button = get_popover_button("<b>Invert selection</b>", 'basico-check-invert')
button.show_all()
button.connect('clicked', self.select_all, None)
box.pack_start(button, False, False, 0)
 
# Popover button "Delete annotation"
if len(self.rows_toggled()) > 0:
separator = Gtk.Separator(orientation = Gtk.Orientation.HORIZONTAL)
box.pack_start(separator, False, False, 0)
 
button = get_popover_button("<b>Delete</b> annotations", 'basico-delete')
button.show_all()
button.connect('clicked', self.srvclb.action_annotation_delete)
box.pack_start(button, False, False, 0)
 
button = get_popover_button("<b>Backup</b> annotations", 'basico-backup')
button.show_all()
# ~ button.connect('clicked', self.srvclb.action_annotation_backup)
box.pack_start(button, False, False, 0)
 
# Popover button "Jump to SAP Note"
if sid != '0000000000':
# Jump to SAP Note
750,7 → 763,11
def select_all(self, button, checked):
def check_row(model, path, itr):
# ~ model[path][2] = not model[path][2]
model[path][2] = checked
if checked is not None:
model[path][2] = checked
else:
state = model[path][2]
model[path][2] = not state
 
model = self.sorted_model.get_model()
model.foreach(check_row)
/branches/BR-0.4/setup.py
83,6 → 83,7
'basico/data/icons/basico-chart.svg',
'basico/data/icons/basico-check-all.svg',
'basico/data/icons/basico-check-none.svg',
'basico/data/icons/basico-check-invert.svg',
'basico/data/icons/basico-check-accept.svg',
'basico/data/icons/basico-check-cancel.svg',
'basico/data/icons/basico-chronologic.svg',