GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
dialogs.ImageDialog Class Reference

Dialog for setting image properties. More...

Inheritance diagram for dialogs.ImageDialog:
Collaboration diagram for dialogs.ImageDialog:

Public Member Functions

def __init__
def OnDirChanged
 Image directory changed.
def OnPositionType
def OnImageSelectionChanged
 Image selected, show preview and size.
def ScaleToPreview
 Scale image to preview size.
def DrawWarningText
 Draw text on preview window.
def DrawBitmap
 Draw bitmap, center it if smaller than preview size.
def SetSizeInfoLabel
 Update image size label.
def ClearPreview
 Clear preview window.
def update
def updateDialog
 Update text coordinates, after moving.

Data Fields

 objectType
 imageObj
 imageDict
 id
 mapId
 imagePanelName
 imagePanel
 positionPanel
 previewSize

Detailed Description

Dialog for setting image properties.

It's base dialog for North Arrow dialog.

Definition at line 4056 of file psmap/dialogs.py.


Constructor & Destructor Documentation

def dialogs.ImageDialog.__init__ (   self,
  parent,
  id,
  settings,
  imagePanelName = _("Image") 
)

Definition at line 4061 of file psmap/dialogs.py.


Member Function Documentation

Clear preview window.

Definition at line 4379 of file psmap/dialogs.py.

References dialogs.ImageDialog.previewSize.

def dialogs.ImageDialog.DrawBitmap (   self,
  bitmap 
)

Draw bitmap, center it if smaller than preview size.

Definition at line 4356 of file psmap/dialogs.py.

References dialogs.ImageDialog.previewSize.

Referenced by frame.PsMapBufferedWindow.Draw().

def dialogs.ImageDialog.DrawWarningText (   self,
  warning 
)

Draw text on preview window.

Definition at line 4342 of file psmap/dialogs.py.

References dialogs.ImageDialog.previewSize.

def dialogs.ImageDialog.OnDirChanged (   self,
  event 
)

Image directory changed.

Definition at line 4247 of file psmap/dialogs.py.

References widgets.GetValue(), dialogs.ImageDialog.imageDict, and dialogs.ImageDialog.OnImageSelectionChanged().

def dialogs.ImageDialog.OnImageSelectionChanged (   self,
  event 
)

Image selected, show preview and size.

Definition at line 4293 of file psmap/dialogs.py.

Referenced by dialogs.ImageDialog.OnDirChanged().

def dialogs.ImageDialog.OnPositionType (   self,
  event 
)

Definition at line 4274 of file psmap/dialogs.py.

References widgets.GetValue().

def dialogs.ImageDialog.ScaleToPreview (   self,
  img 
)

Scale image to preview size.

Definition at line 4328 of file psmap/dialogs.py.

References dialogs.ImageDialog.previewSize.

def dialogs.ImageDialog.SetSizeInfoLabel (   self,
  image 
)

Update image size label.

Definition at line 4372 of file psmap/dialogs.py.

Update text coordinates, after moving.

Definition at line 4472 of file psmap/dialogs.py.

References dialogs.ImageDialog.imageDict, and widgets.SetValue().


Field Documentation

Reimplemented from dialogs.PsmapDialog.

Definition at line 4070 of file psmap/dialogs.py.

Definition at line 4067 of file psmap/dialogs.py.

Reimplemented from dialogs.PsmapDialog.

Reimplemented in dialogs.NorthArrowDialog.

Definition at line 4065 of file psmap/dialogs.py.


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