Home ⌂Doc Index ◂Up ▴

eric6.Snapshot.SnapWidget

Module implementing the snapshot widget.

Global Attributes

None

Classes

SnapWidget Class implementing the snapshot widget.

Functions

None


SnapWidget

Class implementing the snapshot widget.

Derived from

QWidget, Ui_SnapWidget

Class Attributes

None

Class Methods

None

Methods

SnapWidget Constructor
__autoIncFilename Private method to auto-increment the file name.
__captured Private slot to show a preview of the snapshot.
__dragSnapshot Private slot handling the dragging of the preview picture.
__initFileFilters Private method to define the supported image file filters.
__initShortcuts Private method to initialize the keyboard shortcuts.
__quickSave Private slot to save the snapshot bypassing the file selection dialog.
__redisplay Private method to redisplay the window.
__saveImage Private method to save the snapshot.
__updateCaption Private method to update the window caption.
__updatePreview Private slot to update the preview picture.
closeEvent Protected method handling the close event.
on_copyButton_clicked Private slot to copy the snapshot to the clipboard.
on_copyPreviewButton_clicked Private slot to copy the snapshot preview to the clipboard.
on_modeCombo_currentIndexChanged Private slot handling the selection of a screenshot mode.
on_saveButton_clicked Private slot to save the snapshot.
on_takeButton_clicked Private slot to take a snapshot.
resizeEvent Protected method handling a resizing of the window.

Static Methods

None

SnapWidget (Constructor)

SnapWidget(parent=None)

Constructor

parent
reference to the parent widget (QWidget)

SnapWidget.__autoIncFilename

__autoIncFilename()

Private method to auto-increment the file name.

SnapWidget.__captured

__captured(pixmap)

Private slot to show a preview of the snapshot.

pixmap
pixmap of the snapshot (QPixmap)

SnapWidget.__dragSnapshot

__dragSnapshot()

Private slot handling the dragging of the preview picture.

SnapWidget.__initFileFilters

__initFileFilters()

Private method to define the supported image file filters.

SnapWidget.__initShortcuts

__initShortcuts()

Private method to initialize the keyboard shortcuts.

SnapWidget.__quickSave

__quickSave()

Private slot to save the snapshot bypassing the file selection dialog.

SnapWidget.__redisplay

__redisplay()

Private method to redisplay the window.

SnapWidget.__saveImage

__saveImage(fileName)

Private method to save the snapshot.

fileName
name of the file to save to (string)
Returns:
flag indicating success (boolean)

SnapWidget.__updateCaption

__updateCaption()

Private method to update the window caption.

SnapWidget.__updatePreview

__updatePreview()

Private slot to update the preview picture.

SnapWidget.closeEvent

closeEvent(evt)

Protected method handling the close event.

evt
close event (QCloseEvent)

SnapWidget.on_copyButton_clicked

on_copyButton_clicked()

Private slot to copy the snapshot to the clipboard.

SnapWidget.on_copyPreviewButton_clicked

on_copyPreviewButton_clicked()

Private slot to copy the snapshot preview to the clipboard.

SnapWidget.on_modeCombo_currentIndexChanged

on_modeCombo_currentIndexChanged(index)

Private slot handling the selection of a screenshot mode.

index (int)
index of the selection

SnapWidget.on_saveButton_clicked

on_saveButton_clicked()

Private slot to save the snapshot.

SnapWidget.on_takeButton_clicked

on_takeButton_clicked()

Private slot to take a snapshot.

SnapWidget.resizeEvent

resizeEvent(evt)

Protected method handling a resizing of the window.

evt
resize event (QResizeEvent)
Up



Home ⌂Doc Index ◂Up ▴