740 |
|
|
741 |
# File menu |
# File menu |
742 |
_method_command("new_session", _("&New Session"), "NewSession") |
_method_command("new_session", _("&New Session"), "NewSession") |
743 |
_method_command("open_session", _("&Open Session"), "OpenSession") |
_method_command("open_session", _("&Open Session..."), "OpenSession") |
744 |
_method_command("save_session", _("&Save Session"), "SaveSession") |
_method_command("save_session", _("&Save Session"), "SaveSession") |
745 |
_method_command("save_session_as", _("Save Session &As"), "SaveSessionAs") |
_method_command("save_session_as", _("Save Session &As..."), "SaveSessionAs") |
746 |
_method_command("toggle_session_tree", _("Session &Tree"), "ToggleSessionTree", |
_method_command("toggle_session_tree", _("Session &Tree"), "ToggleSessionTree", |
747 |
checked = _has_tree_window_shown) |
checked = _has_tree_window_shown) |
748 |
_method_command("toggle_legend", _("Legend"), "ToggleLegend", |
_method_command("toggle_legend", _("Legend"), "ToggleLegend", |
750 |
_method_command("exit", _("E&xit"), "Exit") |
_method_command("exit", _("E&xit"), "Exit") |
751 |
|
|
752 |
# Help menu |
# Help menu |
753 |
_method_command("help_about", _("&About"), "About") |
_method_command("help_about", _("&About..."), "About") |
754 |
|
|
755 |
|
|
756 |
# Map menu |
# Map menu |
757 |
_method_command("map_projection", _("Pro&jection"), "MapProjection") |
_method_command("map_projection", _("Pro&jection..."), "MapProjection") |
758 |
|
|
759 |
_tool_command("map_zoom_in_tool", _("&Zoom in"), "ZoomInTool", "ZoomInTool", |
_tool_command("map_zoom_in_tool", _("&Zoom in"), "ZoomInTool", "ZoomInTool", |
760 |
helptext = _("Switch to map-mode 'zoom-in'"), icon = "zoom_in", |
helptext = _("Switch to map-mode 'zoom-in'"), icon = "zoom_in", |
777 |
sensitive = _has_visible_map) |
sensitive = _has_visible_map) |
778 |
_method_command("map_print", _("Prin&t"), "PrintMap", |
_method_command("map_print", _("Prin&t"), "PrintMap", |
779 |
helptext = _("Print the map")) |
helptext = _("Print the map")) |
780 |
_method_command("map_rename", _("&Rename"), "RenameMap", |
_method_command("map_rename", _("&Rename..."), "RenameMap", |
781 |
helptext = _("Rename the map")) |
helptext = _("Rename the map")) |
782 |
_method_command("layer_add", _("&Add Layer"), "AddLayer", |
_method_command("layer_add", _("&Add Layer..."), "AddLayer", |
783 |
helptext = _("Add a new layer to active map")) |
helptext = _("Add a new layer to active map")) |
784 |
_method_command("layer_remove", _("&Remove Layer"), "RemoveLayer", |
_method_command("layer_remove", _("&Remove Layer"), "RemoveLayer", |
785 |
helptext = _("Remove selected layer(s)"), |
helptext = _("Remove selected layer(s)"), |
786 |
sensitive = _can_remove_layer) |
sensitive = _can_remove_layer) |
787 |
|
|
788 |
# Layer menu |
# Layer menu |
789 |
_method_command("layer_projection", _("Pro&jection"), "LayerProjection", |
_method_command("layer_projection", _("Pro&jection..."), "LayerProjection", |
790 |
sensitive = _has_selected_layer) |
sensitive = _has_selected_layer) |
791 |
_method_command("layer_raise", _("&Raise"), "RaiseLayer", |
_method_command("layer_raise", _("&Raise"), "RaiseLayer", |
792 |
helptext = _("Raise selected layer(s)"), |
helptext = _("Raise selected layer(s)"), |
803 |
_method_command("layer_show_table", _("Show Ta&ble"), "LayerShowTable", |
_method_command("layer_show_table", _("Show Ta&ble"), "LayerShowTable", |
804 |
helptext = _("Show the selected layer's table"), |
helptext = _("Show the selected layer's table"), |
805 |
sensitive = _has_selected_layer) |
sensitive = _has_selected_layer) |
806 |
_method_command("layer_properties", _("Properties"), "LayerEditProperties", |
_method_command("layer_properties", _("&Properties..."), "LayerEditProperties", |
807 |
sensitive = _has_selected_layer) |
sensitive = _has_selected_layer) |
808 |
|
|
809 |
# the menu structure |
# the menu structure |
819 |
"map_projection", |
"map_projection", |
820 |
None, |
None, |
821 |
"map_zoom_in_tool", "map_zoom_out_tool", |
"map_zoom_in_tool", "map_zoom_out_tool", |
822 |
"map_pan_tool", "map_identify_tool", "map_label_tool", |
"map_pan_tool", "map_full_extent", |
823 |
None, |
None, |
824 |
"map_full_extent", |
"map_identify_tool", "map_label_tool", |
825 |
None, |
None, |
826 |
"toggle_legend", |
"toggle_legend", |
827 |
None, |
None, |
833 |
None, |
None, |
834 |
"layer_show_table", |
"layer_show_table", |
835 |
None, |
None, |
836 |
"layer_properties", |
"layer_projection", |
837 |
None, |
"layer_properties"]), |
|
"layer_projection"]), |
|
838 |
Menu("help", _("&Help"), |
Menu("help", _("&Help"), |
839 |
["help_about"])]) |
["help_about"])]) |
840 |
|
|