Package arcmap :: Module tilepalette :: Class PaletteManager
[hide private]
[frames] | no frames]

Class PaletteManager

source code

mapcontroller.MapListener --+
                            |
                           PaletteManager

Manages TilePalette instances. Outside code should use the widget returned from getWidget

Instance Methods [hide private]
 
__init__(self, controller) source code
 
listenFileOpened(self)
Gets the PaletteManager ready for use.
source code
 
listenFileClosed(self)
The inverse of initialize.
source code
 
listenAddTileSet(self, fileName) source code
gtk.Widget
getWidget(self)
Returns: Return the widget that should be added to the toplevel window
source code
 
toggleGrid(self) source code
 
closeTilePalette(self, widget, tilePalette)
Closes a tab in the notebook
source code
 
tilePalleteOpen(self, widget)
This is called when self.openButton is clicked
source code
 
closeAll(self)
Closes all the palettes
source code
 
addTileSet(self, fileName=None)
Opens the file specified in fileName in a TilePalette
source code

Inherited from mapcontroller.MapListener: getController, listenAddLayer, listenAddShape, listenAddTile, 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__

listenFileOpened(self)

source code 

Gets the PaletteManager ready for use. This is called when a file is opened sel = the selection to use

Overrides: mapcontroller.MapListener.listenFileOpened

listenFileClosed(self)

source code 

The inverse of initialize. This is called when the map file is closed.

Overrides: mapcontroller.MapListener.listenFileClosed

listenAddTileSet(self, fileName)

source code 
Parameters:
  • fileName - name of the file that was
Overrides: mapcontroller.MapListener.listenAddTileSet
(inherited documentation)

getWidget(self)

source code 
Returns: gtk.Widget
Return the widget that should be added to the toplevel window