72 |
Representation for the WMS properties dialog |
Representation for the WMS properties dialog |
73 |
""" |
""" |
74 |
|
|
75 |
def __init__(self, parent, name, layer): |
def __init__(self, parent, name, layer, *args, **kw): |
76 |
""" |
""" |
77 |
Build the properties dialog |
Build the properties dialog |
78 |
""" |
""" |
190 |
Handle the 'Cancel button pressed' event |
Handle the 'Cancel button pressed' event |
191 |
""" |
""" |
192 |
self.Close() |
self.Close() |
|
|
|
|
|
|
|
def OpenWMSProperties(parent, layer): |
|
|
""" |
|
|
Open or raise the WMS properties dialog |
|
|
""" |
|
|
name = "layer_properties_" + layer.url |
|
|
dialog = parent.get_open_dialog(name) |
|
|
|
|
|
if dialog is None: |
|
|
dialog = wmsProperties(parent, name, layer) |
|
|
parent.add_dialog(name, dialog) |
|
|
dialog.Show(True) |
|
|
else: |
|
|
dialog.Raise() |
|