jan: thuban/Thuban/UI legend.py,1.36,1.36.2.1
cvs@intevation.de
cvs at intevation.de
Mon Apr 19 09:27:57 CEST 2004
Author: jan
Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv4683
Modified Files:
Tag: thuban-1-0-branch
legend.py
Log Message:
(LegendTree._OnRightClick): Grey out popup
menu item Show Table if the corresponding layer has no table.
Index: legend.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/legend.py,v
retrieving revision 1.36
retrieving revision 1.36.2.1
diff -u -d -r1.36 -r1.36.2.1
--- legend.py 31 Oct 2003 10:13:32 -0000 1.36
+++ legend.py 19 Apr 2004 07:27:55 -0000 1.36.2.1
@@ -295,6 +295,12 @@
menu.Append(ID_POPUP_PROJ, _("Pro&jection..."))
menu.Append(ID_POPUP_REMOVE, _("&Remove Layer"))
menu.Append(ID_POPUP_SHOWTABLE, _("Show Ta&ble"))
+
+ # grey out this Show Table item if the Layer has no table to show
+ menuitem = menu.FindItemById(ID_POPUP_SHOWTABLE)
+ if not layer.HasShapes():
+ menuitem.Enable(False)
+
menu.AppendSeparator()
menu.Append(ID_POPUP_TOP, _("Top Layer"))
menu.Append(ID_POPUP_UP, _("Raise Layer"))
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)