/[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 357 by bh, Mon Dec 9 10:32:27 2002 UTC revision 363 by jonathan, Mon Jan 27 11:40:13 2003 UTC
# Line 26  import view Line 26  import view
26  import tree  import tree
27  import proj4dialog  import proj4dialog
28  import tableview, identifyview  import tableview, identifyview
29    import classifier
30  from menu import Menu  from menu import Menu
31    
32  from context import Context  from context import Context
# Line 503  class MainWindow(wxFrame): Line 504  class MainWindow(wxFrame):
504              map.SetProjection(proj)              map.SetProjection(proj)
505          proj4Dlg.Destroy()          proj4Dlg.Destroy()
506    
507        def Classify(self):
508            classifyDlg = classifier.Classifier(NULL, self.current_layer())
509    
510            classifyDlg.ShowModal()
511            classifyDlg.Destroy()
512    
513      def ZoomInTool(self):      def ZoomInTool(self):
514          self.canvas.ZoomInTool()          self.canvas.ZoomInTool()
515    
# Line 611  _method_command("help_about", "&About", Line 618  _method_command("help_about", "&About",
618  # Map menu  # Map menu
619  _method_command("map_projection", "Pro&jection", "Projection")  _method_command("map_projection", "Pro&jection", "Projection")
620    
621    
622  _tool_command("map_zoom_in_tool", "&Zoom in", "ZoomInTool", "ZoomInTool",  _tool_command("map_zoom_in_tool", "&Zoom in", "ZoomInTool", "ZoomInTool",
623                helptext = "Switch to map-mode 'zoom-in'", icon = "zoom_in",                helptext = "Switch to map-mode 'zoom-in'", icon = "zoom_in",
624                sensitive = _has_visible_map)                sensitive = _has_visible_map)
# Line 666  _method_command("layer_show_table", "Sho Line 674  _method_command("layer_show_table", "Sho
674                  helptext = "Show the selected layer's table",                  helptext = "Show the selected layer's table",
675                  sensitive = _has_selected_layer)                  sensitive = _has_selected_layer)
676    
677    _method_command("layer_classifier", "Classify", "Classify",
678                    sensitive = _has_selected_layer)
679    
680  # the menu structure  # the menu structure
681  main_menu = Menu("<main>", "<main>",  main_menu = Menu("<main>", "<main>",
# Line 693  main_menu = Menu("<main>", "<main>", Line 703  main_menu = Menu("<main>", "<main>",
703                          None,                          None,
704                          "layer_show", "layer_hide",                          "layer_show", "layer_hide",
705                          None,                          None,
706                          "layer_show_table"]),                          "layer_show_table",
707                            None,
708                            "layer_classifier"]),
709                    Menu("help", "&Help",                    Menu("help", "&Help",
710                         ["help_about"])])                         ["help_about"])])
711    

Legend:
Removed from v.357  
changed lines
  Added in v.363

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26