/[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 910 by jonathan, Fri May 9 16:33:10 2003 UTC revision 911 by frank, Fri May 16 16:24:17 2003 UTC
# Line 2  Line 2 
2  # Authors:  # Authors:
3  # Jan-Oliver Wagner <[email protected]>  # Jan-Oliver Wagner <[email protected]>
4  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
5    # Frank Koormann <[email protected]>
6  #  #
7  # This program is free software under the GPL (>=v2)  # This program is free software under the GPL (>=v2)
8  # Read the file COPYING coming with Thuban for details.  # Read the file COPYING coming with Thuban for details.
# Line 665  class MainWindow(DockFrame): Line 666  class MainWindow(DockFrame):
666      def FullSelectionExtent(self):      def FullSelectionExtent(self):
667          self.canvas.FitSelectedToWindow()          self.canvas.FitSelectedToWindow()
668    
669        def ExportMap(self):
670            self.canvas.Export()
671    
672      def PrintMap(self):      def PrintMap(self):
673          self.canvas.Print()          self.canvas.Print()
674    
# Line 816  _method_command("layer_full_extent", _(" Line 820  _method_command("layer_full_extent", _("
820  _method_command("selected_full_extent", _("&Full selection extent"), "FullSelectionExtent",  _method_command("selected_full_extent", _("&Full selection extent"), "FullSelectionExtent",
821                 helptext = _("Full Selection Extent"), icon = "fullselextent",                 helptext = _("Full Selection Extent"), icon = "fullselextent",
822                sensitive = _has_selected_shapes)                sensitive = _has_selected_shapes)
823    _method_command("map_export", _("E&xport"), "ExportMap",
824                        helptext = _("Export the map to file"))
825  _method_command("map_print", _("Prin&t"), "PrintMap",  _method_command("map_print", _("Prin&t"), "PrintMap",
826                  helptext = _("Print the map"))                  helptext = _("Print the map"))
827  _method_command("map_rename", _("&Rename..."), "RenameMap",  _method_command("map_rename", _("&Rename..."), "RenameMap",
# Line 858  _method_command("table_show", _("&Show") Line 864  _method_command("table_show", _("&Show")
864  _method_command("table_hide", _("&Hide"), "TableHide")  _method_command("table_hide", _("&Hide"), "TableHide")
865  _method_command("table_join", _("&Join..."), "TableJoin")  _method_command("table_join", _("&Join..."), "TableJoin")
866    
867  # the menu structure  #  Export only under Windows ...
868  main_menu = Menu("<main>", "<main>",  map_menu = ["layer_add", "layer_remove", "map_rename",
                  [Menu("file", _("&File"),  
                        ["new_session", "open_session", None,  
                         "save_session", "save_session_as", None,  
                         "toggle_session_tree", None,  
                         "exit"]),  
                   Menu("map", _("&Map"),  
                        ["layer_add", "layer_remove", "map_rename",  
869                          None,                          None,
870                          "map_projection",                          "map_projection",
871                          None,                          None,
# Line 879  main_menu = Menu("<main>", "<main>", Line 878  main_menu = Menu("<main>", "<main>",
878                          "map_identify_tool", "map_label_tool",                          "map_identify_tool", "map_label_tool",
879                          None,                          None,
880                          "toggle_legend",                          "toggle_legend",
881                          None,                          None]
882                          "map_print"]),  if wxPlatform == '__WXMSW__':
883        map_menu.append("map_export")
884    map_menu.append("map_print")
885    
886    # the menu structure
887    main_menu = Menu("<main>", "<main>",
888                     [Menu("file", _("&File"),
889                           ["new_session", "open_session", None,
890                            "save_session", "save_session_as", None,
891                            "toggle_session_tree", None,
892                            "exit"]),
893                      Menu("map", _("&Map"), map_menu),
894                    Menu("layer", _("&Layer"),                    Menu("layer", _("&Layer"),
895                          ["layer_raise", "layer_lower",                          ["layer_raise", "layer_lower",
896                          None,                          None,

Legend:
Removed from v.910  
changed lines
  Added in v.911

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26