16 |
""" |
""" |
17 |
|
|
18 |
__version__ = "$Revision$" |
__version__ = "$Revision$" |
19 |
|
# $Source$ |
20 |
|
# $Id$ |
21 |
|
|
22 |
import os, sys |
import os, sys |
23 |
import xml.dom.minidom |
import xml.dom.minidom |
28 |
from Thuban.Model.proj import Projection |
from Thuban.Model.proj import Projection |
29 |
from Thuban.Model.extension import Extension |
from Thuban.Model.extension import Extension |
30 |
from Thuban.UI.command import registry, Command |
from Thuban.UI.command import registry, Command |
31 |
import Thuban.UI.mainwindow |
from Thuban.UI.mainwindow import main_menu |
32 |
from Thuban import _ |
from Thuban import _ |
33 |
import Thuban.UI.baserenderer |
import Thuban.UI.baserenderer |
34 |
|
|
145 |
helptext = _('Add a WMS Layer'))) |
helptext = _('Add a WMS Layer'))) |
146 |
|
|
147 |
# find the experimental menu (create it anew if not found) |
# find the experimental menu (create it anew if not found) |
148 |
main_menu = Thuban.UI.mainwindow.main_menu |
experimental_menu = main_menu.FindOrInsertMenu('experimental', |
149 |
experimental_menu = main_menu.find_menu('experimental') |
_('Experimenta&l')) |
|
if experimental_menu is None: |
|
|
experimental_menu = main_menu.InsertMenu('experimental', _('Experimenta&l')) |
|
150 |
|
|
151 |
# finally add the new entry to the experimental menu |
# finally add the new entry to the experimental menu |
152 |
experimental_menu.InsertItem('wms') |
experimental_menu.InsertItem('wms') |