GRASS Programmer's Manual  6.4.4(2014)-r
psmap/frame.py File Reference

Go to the source code of this file.

Data Structures

class  frame.PsMapFrame
 
class  frame.PsMapBufferedWindow
 A buffered window class. More...
 

Namespaces

 frame
 
 psmap.frame
 GUI for ps.map.
 

Functions

def frame.OnAddRaster (self, event)
 Add raster map. More...
 
def frame.OnAddVect (self, event)
 Add vector map. More...
 
def frame.OnAddScalebar (self, event)
 Add scalebar. More...
 
def frame.OnAddLegend
 Add raster or vector legend. More...
 
def frame.OnAddMapinfo (self, event)
 
def frame.OnAddImage
 Show dialog for image adding and editing. More...
 
def frame.OnAddNorthArrow
 Show dialog for north arrow adding and editing. More...
 
def frame.OnAddText
 Show dialog for text adding and editing. More...
 
def frame.OnAddPoint (self, event)
 Add point action selected. More...
 
def frame.AddPoint
 Add point and open property dialog. More...
 
def frame.OnAddLine (self, event)
 Add line action selected. More...
 
def frame.AddLine
 Add line and open property dialog. More...
 
def frame.OnAddRectangle (self, event)
 Add rectangle action selected. More...
 
def frame.AddRectangle
 Add rectangle and open property dialog. More...
 
def frame.getModifiedTextBounds (self, x, y, textExtent, rotation)
 computes bounding box of rotated text, not very precisely More...
 
def frame.makePSFont (self, textDict)
 creates a wx.Font object from selected postscript font. More...
 
def frame.getTextExtent (self, textDict)
 Estimates bounding rectangle of text. More...
 
def frame.getInitMap (self)
 Create default map frame when no map is selected, needed for coordinates in map units. More...
 
def frame.OnDelete (self, event)
 
def frame.deleteObject (self, id)
 Deletes object, his id and redraws. More...
 
def frame.DialogDataChanged (self, id)
 
def frame.OnPageChanged (self, event)
 Flatnotebook page has changed. More...
 
def frame.OnPageChanging (self, event)
 Flatnotebook page is changing. More...
 
def frame.OnHelp (self, event)
 Show help. More...
 
def frame.OnAbout (self, event)
 Display About window. More...
 
def frame.OnCloseWindow (self, event)
 Close window. More...
 
def frame.DrawImage (self, rect)
 Draw preview image to pseudoDC. More...
 
def frame.DrawPaper (self, rect)
 Draw paper and margins. More...
 
def frame.ImageRect (self)
 Returns image centered in canvas, computes scale. More...
 
def frame.RedrawSelectBox (self, id)
 Redraws select box when selected object changes its size. More...
 
def frame.UpdateMapLabel (self)
 Updates map frame label. More...
 
def frame.UpdateLabel (self, itype, id)
 
def frame.OnSize (self, event)
 Init image size to match window size. More...
 
def frame.OnIdle (self, event)
 Only re-render a image during idle time instead of multiple times during resizing. More...
 
def frame.ScaleRect (self, rect, scale)
 Scale rectangle. More...
 
def frame.main ()
 

Variables

tuple frame.dlg
 dlg = MapDialog(parent = self, id = id, settings = self.instruction, notebook = notebook) dlg.ShowModal() More...
 
tuple frame.fn = self.parent.makePSFont(textDict)
 if textDict['border'] != 'none' and not rot: units = UnitConversion(self) borderWidth = units.convert(value = textDict['width'], fromUnit = 'point', toUnit = 'pixel' ) * self.currScale pdc.SetPen(wx.Pen(colour = convertRGB(textDict['border']), width = borderWidth)) pdc.DrawRectangle(*bounds) More...
 
 frame.currentPage
 
 frame.currScale
 
 frame.dragId
 
 frame._buffer
 
 frame.resize