GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
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.
def OnMapName
 Name for vector map layer given.
def OnTable
def GetName
 Get name of vector map to be created.
def GetKey
 Get key column name.
def IsChecked
 Get dialog properties.

Data Fields

 element
 table
 keycol
 addbox

Detailed Description

Definition at line 220 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

Reimplemented from dialogs.ElementDialog.

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


Member Function Documentation

Get key column name.

Definition at line 315 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 301 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 319 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 268 of file gui_core/dialogs.py.

References dialogs.ElementDialog.OnElement().


Field Documentation

Reimplemented from dialogs.ElementDialog.

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


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