GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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. More...
 
def OnPositionType
 
def OnImageSelectionChanged
 Image selected, show preview and size. More...
 
def ScaleToPreview
 Scale image to preview size. More...
 
def DrawWarningText
 Draw text on preview window. More...
 
def DrawBitmap
 Draw bitmap, center it if smaller than preview size. More...
 
def SetSizeInfoLabel
 Update image size label. More...
 
def ClearPreview
 Clear preview window. More...
 
def update
 
def updateDialog
 Update text coordinates, after moving. More...
 
- Public Member Functions inherited from dialogs.PsmapDialog
def __init__
 
def AddUnits
 
def AddPosition
 
def AddExtendedPosition
 Add widgets for setting position relative to paper and to map. More...
 
def AddFont
 

Data Fields

 objectType
 
 imageObj
 
 imageDict
 
 id
 
 mapId
 
 imagePanelName
 
 imagePanel
 
 positionPanel
 
 previewSize
 
- Data Fields inherited from dialogs.PsmapDialog
 apply
 
 id
 
 parent
 
 instruction
 
 objectType
 
 unitConv
 
 spinCtrlSize
 
 gridBagSizerP
 
 gridBagSizerM
 

Detailed Description

Dialog for setting image properties.

It's base dialog for North Arrow dialog.

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

Constructor & Destructor Documentation

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

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

Member Function Documentation

def dialogs.ImageDialog.ClearPreview (   self)

Clear preview window.

Definition at line 4382 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 4358 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 4344 of file psmap/dialogs.py.

References dialogs.ImageDialog.previewSize.

def dialogs.ImageDialog.OnDirChanged (   self,
  event 
)

Image directory changed.

Definition at line 4246 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 4292 of file psmap/dialogs.py.

Referenced by dialogs.ImageDialog.OnDirChanged().

def dialogs.ImageDialog.OnPositionType (   self,
  event 
)

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

References widgets.GetValue().

def dialogs.ImageDialog.ScaleToPreview (   self,
  img 
)

Scale image to preview size.

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

References dialogs.ImageDialog.previewSize.

def dialogs.ImageDialog.SetSizeInfoLabel (   self,
  image 
)

Update image size label.

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

def dialogs.ImageDialog.updateDialog (   self)

Update text coordinates, after moving.

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

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

Field Documentation

dialogs.ImageDialog.id

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

dialogs.ImageDialog.imageDict
dialogs.ImageDialog.imageObj

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

dialogs.ImageDialog.imagePanel

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

dialogs.ImageDialog.imagePanelName

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

dialogs.ImageDialog.mapId

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

Referenced by dialogs.ImageDialog.update(), and dialogs.PointDialog.update().

dialogs.ImageDialog.objectType

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

dialogs.ImageDialog.positionPanel

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


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