Functions |
def | gui_modules.psmap_dialogs.OnApply |
| parent.font['colorLabel'] = wx.StaticText(parent, id = wx.ID_ANY, label = _("Color:")) colorChoices = [ 'aqua', 'black', 'blue', 'brown', 'cyan', 'gray', 'green', 'indigo', 'magenta',\ 'orange', 'purple', 'red', 'violet', 'white', 'yellow'] parent.colorCtrl = wx.Choice(parent, id = wx.ID_ANY, choices = colorChoices) parent.colorCtrl.SetStringSelection(parent.rLegendDict['color']) parent.font['colorCtrl'] = wx.ColourPickerCtrl(parent, id = wx.ID_ANY) parent.font['colorCtrl'].SetColour(dialogDict['color'])
|
def | gui_modules.psmap_dialogs.OnOK |
| Apply changes, close dialog.
|
def | gui_modules.psmap_dialogs.OnCancel |
| Close dialog.
|
def | gui_modules.psmap_dialogs.OnClose |
| Destroy dialog and delete it from open dialogs.
|
def | gui_modules.psmap_dialogs.OnLayer |
| Change columns on layer change.
|
def | gui_modules.psmap_dialogs.OnOutline |
def | gui_modules.psmap_dialogs.OnFill |
def | gui_modules.psmap_dialogs.OnColor |
def | gui_modules.psmap_dialogs.OnSize |
def | gui_modules.psmap_dialogs.OnRotation |
def | gui_modules.psmap_dialogs.OnRotationType |
def | gui_modules.psmap_dialogs.OnPattern |
def | gui_modules.psmap_dialogs.EnableLayerSelection |
def | gui_modules.psmap_dialogs.getColsChoice |
| Returns a wx.Choice with table columns.
|
def | gui_modules.psmap_dialogs.update |
def | gui_modules.psmap_dialogs.sizePositionFont |
| Insert widgets for size, position and font control.
|
def | gui_modules.psmap_dialogs.OnIsLegend |
| Enables and disables controls, it depends if raster or vector legend is checked.
|
def | gui_modules.psmap_dialogs.OnRaster |
def | gui_modules.psmap_dialogs.OnDiscrete |
| Change control according to the type of legend.
|
def | gui_modules.psmap_dialogs.OnRange |
def | gui_modules.psmap_dialogs.OnUp |
| Moves selected map up, changes order in vector legend.
|
def | gui_modules.psmap_dialogs.OnDown |
| Moves selected map down, changes order in vector legend.
|
def | gui_modules.psmap_dialogs.OnEditLabel |
| Change legend label of vector map.
|
def | gui_modules.psmap_dialogs.OnSpan |
def | gui_modules.psmap_dialogs.OnFont |
| Changes default width according to fontsize, width [inch] = fontsize[pt]/24.
|
def | gui_modules.psmap_dialogs.OnBorder |
| Enables/disables colorPickerCtrl for border.
|
def | gui_modules.psmap_dialogs.updateRasterLegend |
| Save information from raster legend dialog to dictionary.
|
def | gui_modules.psmap_dialogs.updateVectorLegend |
| Save information from vector legend dialog to dictionary.
|
def | gui_modules.psmap_dialogs.updateDialog |
| Update legend coordinates after moving.
|
def | gui_modules.psmap_dialogs.convertRGB |
| Converts wx.Colour(r,g,b,a) to string 'r:g:b' or named color, or named color/r:g:b string to wx.Colour, depending on input.
|
def | gui_modules.psmap_dialogs.PaperMapCoordinates |
| Converts paper (inch) coordinates -> map coordinates.
|
def | gui_modules.psmap_dialogs.AutoAdjust |
| Computes map scale, center and map frame rectangle to fit region (scale is not fixed)
|
def | gui_modules.psmap_dialogs.SetResolution |
| If resolution is too high, lower it.
|
def | gui_modules.psmap_dialogs.ComputeSetRegion |
| Computes and sets region from current scale, map center coordinates and map rectangle.
|
def | gui_modules.psmap_dialogs.projInfo |
| Return region projection and map units information, taken from render.py.
|
def | gui_modules.psmap_dialogs.GetMapBounds |
| Run ps.map -b to get information about map bounding box.
|
def | gui_modules.psmap_dialogs.getRasterType |
| Returns type of raster map (CELL, FCELL, DCELL)
|
Variables |
| gui_modules.psmap_dialogs.fs = None |
list | gui_modules.psmap_dialogs.PSMAP_COLORS |
list | gui_modules.psmap_dialogs.fontChoices |
| parent.font['fontLabel'] = wx.StaticText(parent, id = wx.ID_ANY, label = _("Choose font:")) parent.font['fontCtrl'] = wx.FontPickerCtrl(parent, id = wx.ID_ANY)
|
tuple | gui_modules.psmap_dialogs.linecapText = wx.StaticText(panel, id = wx.ID_ANY, label = _("Choose linecap:")) |
| self.styleCombo = wx.ComboBox(panel, id = wx.ID_ANY, choices = ["solid", "dashed", "dotted", "dashdotted"], validator = TCValidator(flag = 'ZERO_AND_ONE_ONLY')) self.styleCombo.SetToolTipString(_("It's possible to enter a series of 0's and 1's too. "\ "The first block of repeated zeros or ones represents 'draw', "\ "the second block represents 'blank'. An even number of blocks "\ "will repeat the pattern, an odd number of blocks will alternate the pattern."))
|
tuple | gui_modules.psmap_dialogs.h = self.unitConv.convert(value = float(legendDict['height']), fromUnit = 'inch', toUnit = legendDict['unit']) |
| panel.defaultSize = wx.CheckBox(panel, id = wx.ID_ANY, label = _("Use default size")) panel.defaultSize.SetValue(legendDict['defaultSize'])
|
int | gui_modules.psmap_dialogs.minVect = 1 |
| self.rSizeGBSizer.Add(panel.defaultSize, pos = (0,0), span = (1,2), flag = wx.ALIGN_CENTER_VERTICAL, border = 0)
|
tuple | gui_modules.psmap_dialogs.maxVect = min(10, len(self.instruction[self.vectorId]['list'])) |
tuple | gui_modules.psmap_dialogs.cols = wx.StaticText(panel, id = wx.ID_ANY, label = _("Columns:")) |
list | gui_modules.psmap_dialogs.min = minVect,maxmaxVect,initiallegendDict['cols'] |
tuple | gui_modules.psmap_dialogs.s = self.unitConv.convert(value = float(legendDict['span']), fromUnit = 'inch', toUnit = legendDict['unit']) |
tuple | gui_modules.psmap_dialogs.box = wx.StaticBox(parent = panel, id = wx.ID_ANY, label = " %s " % _("Font settings")) |
tuple | gui_modules.psmap_dialogs.fontSizer = wx.StaticBoxSizer(box, wx.VERTICAL) |
tuple | gui_modules.psmap_dialogs.flexSizer = wx.FlexGridSizer(cols = 2, hgap = 5, vgap = 5) |
list | gui_modules.psmap_dialogs.fontsize = self.panelVector.font['fontSizeCtrl'] |
| fontsize = self.panelVector.font['fontCtrl'].GetSelectedFont().GetPointSize()
|
tuple | gui_modules.psmap_dialogs.unit = self.unitConv.findUnit(self.panelVector.units['unitsCtrl'].GetStringSelection()) |
int | gui_modules.psmap_dialogs.w = 24 |
tuple | gui_modules.psmap_dialogs.width = self.unitConv.convert(value = w, fromUnit = 'inch', toUnit = unit) |
| gui_modules.psmap_dialogs.patternCheck |
| gui_modules.psmap_dialogs.patFileCtrl |
| gui_modules.psmap_dialogs.patWidthText |
| gui_modules.psmap_dialogs.patWidthSpin |
| gui_modules.psmap_dialogs.patScaleText |
| gui_modules.psmap_dialogs.patScaleSpin |
| gui_modules.psmap_dialogs.currLayer |
| gui_modules.psmap_dialogs.type |
| gui_modules.psmap_dialogs.isVLegend |
| gui_modules.psmap_dialogs.vectorListCtrl |
| gui_modules.psmap_dialogs.btnUp |
| gui_modules.psmap_dialogs.btnDown |
| gui_modules.psmap_dialogs.btnLabel |
| gui_modules.psmap_dialogs.borderCheck |
| gui_modules.psmap_dialogs.borderColorCtrl |
| gui_modules.psmap_dialogs.vectorId |
| gui_modules.psmap_dialogs.rasterId |
| gui_modules.psmap_dialogs.unitConv |