GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
dialogs.NewVectorDialog Class Reference
Inheritance diagram for dialogs.NewVectorDialog:
Collaboration diagram for dialogs.NewVectorDialog:

Public Member Functions

def __init__
 Dialog for creating new vector map. More...
 
def OnMapName
 Name for vector map layer given. More...
 
def OnTable
 
def GetName
 Get name of vector map to be created. More...
 
def GetKey
 Get key column name. More...
 
def IsChecked
 Get dialog properties. More...
 
- Public Member Functions inherited from dialogs.ElementDialog
def __init__
 General dialog to choose given element (location, mapset, vector map, etc.) More...
 
def PostInit
 
def OnType
 Select element type. More...
 
def OnElement
 Name for vector map layer given. More...
 
def GetElement
 Return (mapName, overwrite) More...
 
def GetType
 Get element type. More...
 

Data Fields

 element
 
 table
 
 keycol
 
 addbox
 
- Data Fields inherited from dialogs.ElementDialog
 etype
 
 label
 
 panel
 
 btnCancel
 
 btnOK
 
 typeSelect
 
 element
 
 sizer
 
 dataSizer
 

Detailed Description

Definition at line 223 of file gui_core/dialogs.py.

Constructor & Destructor Documentation

def dialogs.NewVectorDialog.__init__ (   self,
  parent,
  id = wx.ID_ANY,
  title = _('Create new vector map'),
  disableAdd = False,
  disableTable = False,
  style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER,
  kwargs 
)

Dialog for creating new vector map.

Parameters
parentparent window
idwindow id
titlewindow title
disableAdddisable 'add layer' checkbox
disableTabledisable 'create table' checkbox
stylewindow style
kwargsother argumentes for ElementDialog
Returns
dialog instance

Definition at line 226 of file gui_core/dialogs.py.

Member Function Documentation

def dialogs.NewVectorDialog.GetKey (   self)

Get key column name.

Definition at line 318 of file gui_core/dialogs.py.

def dialogs.NewVectorDialog.GetName (   self,
  full = False 
)

Get name of vector map to be created.

Parameters
fullTrue to get fully qualified name

Definition at line 304 of file gui_core/dialogs.py.

References dialogs.ElementDialog.GetElement(), and render.Layer.GetElement().

Referenced by dialogs.ItemCheckListCtrl.OnCheckItem(), widgets.SingleSymbolPanel.OnDoubleClick(), and widgets.SingleSymbolPanel.OnLeftDown().

def dialogs.NewVectorDialog.IsChecked (   self,
  key 
)

Get dialog properties.

Parameters
keywindow key ('add', 'table')
Returns
True/False
None on error

Definition at line 322 of file gui_core/dialogs.py.

References dialogs.CreateNewVector().

Referenced by extensions.CheckListExtension.GetExtensions(), dialogs.ItemCheckListCtrl.GetItems(), and dialogs.LayersList.GetLayers().

def dialogs.NewVectorDialog.OnMapName (   self,
  event 
)

Name for vector map layer given.

Definition at line 271 of file gui_core/dialogs.py.

References dialogs.ElementDialog.OnElement().

Field Documentation

dialogs.NewVectorDialog.addbox

Definition at line 256 of file gui_core/dialogs.py.

Referenced by dialogs.NewVectorDialog.OnTable().

dialogs.NewVectorDialog.element

Definition at line 241 of file gui_core/dialogs.py.

dialogs.NewVectorDialog.keycol

Definition at line 250 of file gui_core/dialogs.py.

Referenced by dialogs.NewVectorDialog.OnTable().

dialogs.NewVectorDialog.table

Definition at line 244 of file gui_core/dialogs.py.

Referenced by dialogs.NewVectorDialog.OnTable().


The documentation for this class was generated from the following file: