Sat, 07 Apr 2012 21:19:24 +0200
Added a tool to take screenshots (fullscreen or rectangular selection).
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> <html><head> <title>eric5.Snapshot.SnapWidget</title> <style> body { background: #EDECE6; margin: 0em 1em 10em 1em; color: black; } h1 { color: white; background: #85774A; } h2 { color: white; background: #85774A; } h3 { color: white; background: #9D936E; } h4 { color: white; background: #9D936E; } a { color: #BA6D36; } </style> </head> <body><a NAME="top" ID="top"></a> <h1>eric5.Snapshot.SnapWidget</h1> <p> Module implementing the snapshot widget. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#SnapWidget">SnapWidget</a></td> <td>Class implementing the snapshot widget.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /><hr /> <a NAME="SnapWidget" ID="SnapWidget"></a> <h2>SnapWidget</h2> <p> Class implementing the snapshot widget. </p> <h3>Derived from</h3> QWidget, Ui_SnapWidget <h3>Class Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Class Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#SnapWidget.__init__">SnapWidget</a></td> <td>Constructor</td> </tr><tr> <td><a href="#SnapWidget.__captured">__captured</a></td> <td>Private slot to show a preview of the snapshot.</td> </tr><tr> <td><a href="#SnapWidget.__initFileFilters">__initFileFilters</a></td> <td>Private method to define the supported image file filters.</td> </tr><tr> <td><a href="#SnapWidget.on_copyButton_clicked">on_copyButton_clicked</a></td> <td>Private slot to copy the snapshot to the clipboard.</td> </tr><tr> <td><a href="#SnapWidget.on_saveButton_clicked">on_saveButton_clicked</a></td> <td>Private slot to save the snapshot.</td> </tr><tr> <td><a href="#SnapWidget.on_takeButton_clicked">on_takeButton_clicked</a></td> <td>Private slot to take a snapshot.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="SnapWidget.__init__" ID="SnapWidget.__init__"></a> <h4>SnapWidget (Constructor)</h4> <b>SnapWidget</b>(<i>parent=None</i>) <p> Constructor </p><dl> <dt><i>parent</i></dt> <dd> reference to the parent widget (QWidget) </dd> </dl><a NAME="SnapWidget.__captured" ID="SnapWidget.__captured"></a> <h4>SnapWidget.__captured</h4> <b>__captured</b>(<i>pixmap</i>) <p> Private slot to show a preview of the snapshot. </p><dl> <dt><i>pixmap</i></dt> <dd> pixmap of the snapshot (QPixmap) </dd> </dl><a NAME="SnapWidget.__initFileFilters" ID="SnapWidget.__initFileFilters"></a> <h4>SnapWidget.__initFileFilters</h4> <b>__initFileFilters</b>(<i></i>) <p> Private method to define the supported image file filters. </p><a NAME="SnapWidget.on_copyButton_clicked" ID="SnapWidget.on_copyButton_clicked"></a> <h4>SnapWidget.on_copyButton_clicked</h4> <b>on_copyButton_clicked</b>(<i></i>) <p> Private slot to copy the snapshot to the clipboard. </p><a NAME="SnapWidget.on_saveButton_clicked" ID="SnapWidget.on_saveButton_clicked"></a> <h4>SnapWidget.on_saveButton_clicked</h4> <b>on_saveButton_clicked</b>(<i>checked</i>) <p> Private slot to save the snapshot. </p><a NAME="SnapWidget.on_takeButton_clicked" ID="SnapWidget.on_takeButton_clicked"></a> <h4>SnapWidget.on_takeButton_clicked</h4> <b>on_takeButton_clicked</b>(<i>checked</i>) <p> Private slot to take a snapshot. </p> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>