Package arcmap :: Module layers :: Class LayerView
[hide private]
[frames] | no frames]

Class LayerView

source code

mapcontroller.MapListener --+
                            |
                           LayerView

Instance Methods [hide private]
 
__init__(self, controller) source code
int
comIndex(self, index)
Converts from a tree model index to a map index, and vice-versa
source code
 
getWidget(self) source code
gtk.TreeIter
getCurrent(self)
Returns: an iterator associated with the currently selected layer
source code
 
addLayer(self, layerName='New Layer')
Adds a new layer to the map
source code
 
removeLayer(self)
Removes the currently selected layer
source code
 
raiseLayer(self)
Raises the currently selected layer
source code
 
lowerLayer(self)
Lowers the currently selected layer
source code
 
layerNameCB(self, cell, path, newText, model)
Callback for a change in the layer name text
source code
 
toggleCB(self, cell, path, model)
Callback for a change in a layer visibility
source code
 
layerSelectCB(self, treeSelection) source code
 
listenFileOpened(self)
Called when a map is opened or created.
source code
 
listenFileClosed(self)
Called when the map being edited is closed.
source code

Inherited from mapcontroller.MapListener: getController, listenAddLayer, listenAddShape, listenAddTile, listenAddTileSet, listenModified, listenRemoveLayer, listenRemoveShape, listenRemoveTile, listenResize, listenSelectLayer, listenSetSelection, listenSetVisibilty, listenSwapLayers, listenUndoRedo

Method Details [hide private]

__init__(self, controller)
(Constructor)

source code 
Parameters:
  • controller (MapController) - the map controller
Overrides: mapcontroller.MapListener.__init__

comIndex(self, index)

source code 

Converts from a tree model index to a map index, and vice-versa

Parameters:
  • index (int) - an index
Returns: int
an index in the form other than what was passed in

getCurrent(self)

source code 
Returns: gtk.TreeIter
an iterator associated with the currently selected layer

addLayer(self, layerName='New Layer')

source code 

Adds a new layer to the map

Parameters:
  • layerName (string) - the name for the new layer

listenFileOpened(self)

source code 

Called when a map is opened or created. Used to make buttons sensitive, or whatever else.

Overrides: mapcontroller.MapListener.listenFileOpened
(inherited documentation)

listenFileClosed(self)

source code 

Called when the map being edited is closed. Used to make buttons insensitive, free resources, etc.

Overrides: mapcontroller.MapListener.listenFileClosed
(inherited documentation)