예제 #1
0
 def element_start(self, name, attributes):
     """Adds a new polygon for each new gx:Track, and watches for location data."""
     if name == 'gx:Track':
         polygon = Polygon()
         map_view.add_layer(polygon)
         self.polygons.add(polygon)
         self.append = polygon.append_point
         return False
     return True
예제 #2
0
 def __init__(self):
     self.selection  = get_obj('photos_view').get_selection()
     self.selection.set_mode(Gtk.SelectionMode.MULTIPLE)
     self.layer = Champlain.MarkerLayer()
     map_view.add_layer(self.layer)
     
     self.selection.connect('changed', update_highlights)
     self.selection.connect('changed', selection_sensitivity,
         *[get_obj(name) for name in ('close_button',
             'save_button', 'revert_button', 'jump_button')])
예제 #3
0
 def element_start(self, name, attributes):
     """Adds a new polygon for each new segment, and watches for track points."""
     if name == 'trkseg':
         polygon = Polygon()
         map_view.add_layer(polygon)
         self.polygons.add(polygon)
         self.append = polygon.append_point
     if name == 'trkpt':
         return True
     return False
예제 #4
0
    def __init__(self):
        self.select_all = get_obj('select_all_button')
        self.selection = get_obj('photos_view').get_selection()
        self.selection.set_mode(Gtk.SelectionMode.MULTIPLE)
        self.layer = Champlain.MarkerLayer()
        map_view.add_layer(self.layer)

        self.selection.connect('changed', update_highlights)
        self.selection.connect(
            'changed', selection_sensitivity, *[
                get_obj(name) for name in ('apply_button', 'close_button',
                                           'save_button', 'revert_button')
            ])