/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/mainwindow.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/mainwindow.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 768 by jonathan, Tue Apr 29 13:03:59 2003 UTC revision 796 by jonathan, Wed Apr 30 17:01:18 2003 UTC
# Line 649  class MainWindow(DockFrame): Line 649  class MainWindow(DockFrame):
649          dlg.Destroy()          dlg.Destroy()
650    
651      def identify_view_on_demand(self, layer, shapes):      def identify_view_on_demand(self, layer, shapes):
652            """Subscribed to the canvas' SHAPES_SELECTED message
653    
654            If the current tool is the identify tool, at least one shape is
655            selected and the identify dialog is not shown, show the dialog.
656            """
657            # If the selection has become empty we don't need to do
658            # anything. Otherwise it could happen that the dialog was popped
659            # up when the selection became empty, e.g. when a new selection
660            # is opened while the identify tool is active and dialog had
661            # been closed
662            if not shapes:
663                return
664    
665          name = "identify_view"          name = "identify_view"
666          if self.canvas.CurrentTool() == "IdentifyTool":          if self.canvas.CurrentTool() == "IdentifyTool":
667              if not self.dialog_open(name):              if not self.dialog_open(name):
# Line 801  main_menu = Menu("<main>", "<main>", Line 814  main_menu = Menu("<main>", "<main>",
814                          "toggle_session_tree", None,                          "toggle_session_tree", None,
815                          "exit"]),                          "exit"]),
816                    Menu("map", _("&Map"),                    Menu("map", _("&Map"),
817                         ["layer_add", "layer_remove",                         ["layer_add", "layer_remove", "map_rename",
818                          None,                          None,
819                          "map_projection",                          "map_projection",
820                          None,                          None,
# Line 812  main_menu = Menu("<main>", "<main>", Line 825  main_menu = Menu("<main>", "<main>",
825                          None,                          None,
826                          "toggle_legend",                          "toggle_legend",
827                          None,                          None,
828                          "map_print",                          "map_print"]),
                         None,  
                         "map_rename"]),  
829                    Menu("layer", _("&Layer"),                    Menu("layer", _("&Layer"),
830                          ["layer_raise", "layer_lower",                          ["layer_raise", "layer_lower",
831                          None,                          None,

Legend:
Removed from v.768  
changed lines
  Added in v.796

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26