/[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 130 by bh, Fri May 3 14:50:18 2002 UTC revision 185 by bh, Thu May 23 15:37:39 2002 UTC
# Line 60  class MainWindow(wxFrame): Line 60  class MainWindow(wxFrame):
60          menuBar.Append(menu, "&File");          menuBar.Append(menu, "&File");
61          for name in ["new_session", "open_session", None,          for name in ["new_session", "open_session", None,
62                       "save_session", "save_session_as", None,                       "save_session", "save_session_as", None,
63                         "show_session_tree", None,
64                       "exit"]:                       "exit"]:
65              self.add_menu_command(menu, name)              self.add_menu_command(menu, name)
66    
# Line 80  class MainWindow(wxFrame): Line 81  class MainWindow(wxFrame):
81          menu = wxMenu()          menu = wxMenu()
82          menuBar.Append(menu, "&Layer");          menuBar.Append(menu, "&Layer");
83          for name in ["layer_fill_color", "layer_transparent_fill",          for name in ["layer_fill_color", "layer_transparent_fill",
84                       "layer_ourline_color", "layer_no_outline",                       "layer_outline_color", "layer_no_outline",
85                       None,                       None,
86                       "layer_raise", "layer_lower",                       "layer_raise", "layer_lower",
87                       None,                       None,
# Line 196  class MainWindow(wxFrame): Line 197  class MainWindow(wxFrame):
197                  event.Check(command.Checked(self))                  event.Check(command.Checked(self))
198    
199      def RunMessageBox(self, title, text, flags = wxOK | wxICON_INFORMATION):      def RunMessageBox(self, title, text, flags = wxOK | wxICON_INFORMATION):
200          """Run a modla message box with the given text, title and flags          """Run a modal message box with the given text, title and flags
201          and return the result"""          and return the result"""
202          dlg = wxMessageDialog(self, text, title, flags)          dlg = wxMessageDialog(self, text, title, flags)
203          result = dlg.ShowModal()          result = dlg.ShowModal()
# Line 511  _method_command("new_session", "&New Ses Line 512  _method_command("new_session", "&New Ses
512  _method_command("open_session", "&Open Session", "OpenSession")  _method_command("open_session", "&Open Session", "OpenSession")
513  _method_command("save_session", "&Save Session", "SaveSession")  _method_command("save_session", "&Save Session", "SaveSession")
514  _method_command("save_session_as", "Save Session &As", "SaveSessionAs")  _method_command("save_session_as", "Save Session &As", "SaveSessionAs")
515    _method_command("show_session_tree", "Show Session &Tree", "ShowSessionTree")
516  _method_command("exit", "&Exit", "Exit")  _method_command("exit", "&Exit", "Exit")
517    
518  # Help menu  # Help menu
# Line 547  _method_command("layer_transparent_fill" Line 549  _method_command("layer_transparent_fill"
549                  "LayerTransparentFill",                  "LayerTransparentFill",
550                  helptext = "Do not fill the selected layer(s)",                  helptext = "Do not fill the selected layer(s)",
551                  sensitive = _has_selected_layer)                  sensitive = _has_selected_layer)
552  _method_command("layer_ourline_color", "&Outline Color", "LayerOutlineColor",  _method_command("layer_outline_color", "&Outline Color", "LayerOutlineColor",
553                  helptext = "Set the outline color of selected layer(s)",                  helptext = "Set the outline color of selected layer(s)",
554                  sensitive = _has_selected_layer)                  sensitive = _has_selected_layer)
555  _method_command("layer_no_outline", "&No Outline", "LayerNoOutline",  _method_command("layer_no_outline", "&No Outline", "LayerNoOutline",

Legend:
Removed from v.130  
changed lines
  Added in v.185

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26