|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.Snapshot.SnapWidget</title> |
|
6 <style> |
|
7 body { |
|
8 background: #EDECE6; |
|
9 margin: 0em 1em 10em 1em; |
|
10 color: black; |
|
11 } |
|
12 |
|
13 h1 { color: white; background: #85774A; } |
|
14 h2 { color: white; background: #85774A; } |
|
15 h3 { color: white; background: #9D936E; } |
|
16 h4 { color: white; background: #9D936E; } |
|
17 |
|
18 a { color: #BA6D36; } |
|
19 |
|
20 </style> |
|
21 </head> |
|
22 <body><a NAME="top" ID="top"></a> |
|
23 <h1>eric5.Snapshot.SnapWidget</h1> |
|
24 <p> |
|
25 Module implementing the snapshot widget. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#SnapWidget">SnapWidget</a></td> |
|
35 <td>Class implementing the snapshot widget.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <hr /><hr /> |
|
43 <a NAME="SnapWidget" ID="SnapWidget"></a> |
|
44 <h2>SnapWidget</h2> |
|
45 <p> |
|
46 Class implementing the snapshot widget. |
|
47 </p> |
|
48 <h3>Derived from</h3> |
|
49 QWidget, Ui_SnapWidget |
|
50 <h3>Class Attributes</h3> |
|
51 <table> |
|
52 <tr><td>None</td></tr> |
|
53 </table> |
|
54 <h3>Class Methods</h3> |
|
55 <table> |
|
56 <tr><td>None</td></tr> |
|
57 </table> |
|
58 <h3>Methods</h3> |
|
59 <table> |
|
60 <tr> |
|
61 <td><a href="#SnapWidget.__init__">SnapWidget</a></td> |
|
62 <td>Constructor</td> |
|
63 </tr><tr> |
|
64 <td><a href="#SnapWidget.__captured">__captured</a></td> |
|
65 <td>Private slot to show a preview of the snapshot.</td> |
|
66 </tr><tr> |
|
67 <td><a href="#SnapWidget.__initFileFilters">__initFileFilters</a></td> |
|
68 <td>Private method to define the supported image file filters.</td> |
|
69 </tr><tr> |
|
70 <td><a href="#SnapWidget.on_copyButton_clicked">on_copyButton_clicked</a></td> |
|
71 <td>Private slot to copy the snapshot to the clipboard.</td> |
|
72 </tr><tr> |
|
73 <td><a href="#SnapWidget.on_saveButton_clicked">on_saveButton_clicked</a></td> |
|
74 <td>Private slot to save the snapshot.</td> |
|
75 </tr><tr> |
|
76 <td><a href="#SnapWidget.on_takeButton_clicked">on_takeButton_clicked</a></td> |
|
77 <td>Private slot to take a snapshot.</td> |
|
78 </tr> |
|
79 </table> |
|
80 <h3>Static Methods</h3> |
|
81 <table> |
|
82 <tr><td>None</td></tr> |
|
83 </table> |
|
84 <a NAME="SnapWidget.__init__" ID="SnapWidget.__init__"></a> |
|
85 <h4>SnapWidget (Constructor)</h4> |
|
86 <b>SnapWidget</b>(<i>parent=None</i>) |
|
87 <p> |
|
88 Constructor |
|
89 </p><dl> |
|
90 <dt><i>parent</i></dt> |
|
91 <dd> |
|
92 reference to the parent widget (QWidget) |
|
93 </dd> |
|
94 </dl><a NAME="SnapWidget.__captured" ID="SnapWidget.__captured"></a> |
|
95 <h4>SnapWidget.__captured</h4> |
|
96 <b>__captured</b>(<i>pixmap</i>) |
|
97 <p> |
|
98 Private slot to show a preview of the snapshot. |
|
99 </p><dl> |
|
100 <dt><i>pixmap</i></dt> |
|
101 <dd> |
|
102 pixmap of the snapshot (QPixmap) |
|
103 </dd> |
|
104 </dl><a NAME="SnapWidget.__initFileFilters" ID="SnapWidget.__initFileFilters"></a> |
|
105 <h4>SnapWidget.__initFileFilters</h4> |
|
106 <b>__initFileFilters</b>(<i></i>) |
|
107 <p> |
|
108 Private method to define the supported image file filters. |
|
109 </p><a NAME="SnapWidget.on_copyButton_clicked" ID="SnapWidget.on_copyButton_clicked"></a> |
|
110 <h4>SnapWidget.on_copyButton_clicked</h4> |
|
111 <b>on_copyButton_clicked</b>(<i></i>) |
|
112 <p> |
|
113 Private slot to copy the snapshot to the clipboard. |
|
114 </p><a NAME="SnapWidget.on_saveButton_clicked" ID="SnapWidget.on_saveButton_clicked"></a> |
|
115 <h4>SnapWidget.on_saveButton_clicked</h4> |
|
116 <b>on_saveButton_clicked</b>(<i>checked</i>) |
|
117 <p> |
|
118 Private slot to save the snapshot. |
|
119 </p><a NAME="SnapWidget.on_takeButton_clicked" ID="SnapWidget.on_takeButton_clicked"></a> |
|
120 <h4>SnapWidget.on_takeButton_clicked</h4> |
|
121 <b>on_takeButton_clicked</b>(<i>checked</i>) |
|
122 <p> |
|
123 Private slot to take a snapshot. |
|
124 </p> |
|
125 <div align="right"><a href="#top">Up</a></div> |
|
126 <hr /> |
|
127 </body></html> |