|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.IconEditor.IconEditorPalette</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.IconEditor.IconEditorPalette</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a palette widget for the icon editor. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#IconEditorPalette">IconEditorPalette</a></td> |
|
25 <td>Class implementing a palette widget for the icon editor.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="IconEditorPalette" ID="IconEditorPalette"></a> |
|
36 <h2>IconEditorPalette</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a palette widget for the icon editor. |
|
40 </p> |
|
41 <h3>Signals</h3> |
|
42 <dl> |
|
43 |
|
44 <dt>colorSelected(QColor)</dt> |
|
45 <dd> |
|
46 emitted after a new color has been selected |
|
47 </dd> |
|
48 <dt>compositingChanged(QPainter.CompositionMode)</dt> |
|
49 <dd> |
|
50 emitted to signal a |
|
51 change of the compositing mode |
|
52 </dd> |
|
53 </dl> |
|
54 <h3>Derived from</h3> |
|
55 QWidget |
|
56 <h3>Class Attributes</h3> |
|
57 |
|
58 <table> |
|
59 <tr><td>None</td></tr> |
|
60 </table> |
|
61 <h3>Class Methods</h3> |
|
62 |
|
63 <table> |
|
64 <tr><td>None</td></tr> |
|
65 </table> |
|
66 <h3>Methods</h3> |
|
67 |
|
68 <table> |
|
69 |
|
70 <tr> |
|
71 <td><a href="#IconEditorPalette.__init__">IconEditorPalette</a></td> |
|
72 <td>Constructor</td> |
|
73 </tr> |
|
74 <tr> |
|
75 <td><a href="#IconEditorPalette.__alphaChanged">__alphaChanged</a></td> |
|
76 <td>Private slot to track changes of the alpha channel.</td> |
|
77 </tr> |
|
78 <tr> |
|
79 <td><a href="#IconEditorPalette.__compositingChanged">__compositingChanged</a></td> |
|
80 <td>Private slot to handle a change of the compositing mode.</td> |
|
81 </tr> |
|
82 <tr> |
|
83 <td><a href="#IconEditorPalette.__selectColor">__selectColor</a></td> |
|
84 <td>Private slot to select a new drawing color.</td> |
|
85 </tr> |
|
86 <tr> |
|
87 <td><a href="#IconEditorPalette.colorChanged">colorChanged</a></td> |
|
88 <td>Public slot to update the color preview.</td> |
|
89 </tr> |
|
90 <tr> |
|
91 <td><a href="#IconEditorPalette.previewChanged">previewChanged</a></td> |
|
92 <td>Public slot to update the preview.</td> |
|
93 </tr> |
|
94 <tr> |
|
95 <td><a href="#IconEditorPalette.setCompositingMode">setCompositingMode</a></td> |
|
96 <td>Public method to set the compositing mode.</td> |
|
97 </tr> |
|
98 </table> |
|
99 <h3>Static Methods</h3> |
|
100 |
|
101 <table> |
|
102 <tr><td>None</td></tr> |
|
103 </table> |
|
104 |
|
105 <a NAME="IconEditorPalette.__init__" ID="IconEditorPalette.__init__"></a> |
|
106 <h4>IconEditorPalette (Constructor)</h4> |
|
107 <b>IconEditorPalette</b>(<i>parent=None</i>) |
|
108 |
|
109 <p> |
|
110 Constructor |
|
111 </p> |
|
112 <dl> |
|
113 |
|
114 <dt><i>parent</i></dt> |
|
115 <dd> |
|
116 reference to the parent widget (QWidget) |
|
117 </dd> |
|
118 </dl> |
|
119 <a NAME="IconEditorPalette.__alphaChanged" ID="IconEditorPalette.__alphaChanged"></a> |
|
120 <h4>IconEditorPalette.__alphaChanged</h4> |
|
121 <b>__alphaChanged</b>(<i>val</i>) |
|
122 |
|
123 <p> |
|
124 Private slot to track changes of the alpha channel. |
|
125 </p> |
|
126 <dl> |
|
127 |
|
128 <dt><i>val</i></dt> |
|
129 <dd> |
|
130 value of the alpha channel |
|
131 </dd> |
|
132 </dl> |
|
133 <a NAME="IconEditorPalette.__compositingChanged" ID="IconEditorPalette.__compositingChanged"></a> |
|
134 <h4>IconEditorPalette.__compositingChanged</h4> |
|
135 <b>__compositingChanged</b>(<i>on</i>) |
|
136 |
|
137 <p> |
|
138 Private slot to handle a change of the compositing mode. |
|
139 </p> |
|
140 <dl> |
|
141 |
|
142 <dt><i>on</i></dt> |
|
143 <dd> |
|
144 flag indicating the checked state of the compositing button |
|
145 (boolean) |
|
146 </dd> |
|
147 </dl> |
|
148 <a NAME="IconEditorPalette.__selectColor" ID="IconEditorPalette.__selectColor"></a> |
|
149 <h4>IconEditorPalette.__selectColor</h4> |
|
150 <b>__selectColor</b>(<i></i>) |
|
151 |
|
152 <p> |
|
153 Private slot to select a new drawing color. |
|
154 </p> |
|
155 <a NAME="IconEditorPalette.colorChanged" ID="IconEditorPalette.colorChanged"></a> |
|
156 <h4>IconEditorPalette.colorChanged</h4> |
|
157 <b>colorChanged</b>(<i>color</i>) |
|
158 |
|
159 <p> |
|
160 Public slot to update the color preview. |
|
161 </p> |
|
162 <dl> |
|
163 |
|
164 <dt><i>color</i></dt> |
|
165 <dd> |
|
166 new color (QColor) |
|
167 </dd> |
|
168 </dl> |
|
169 <a NAME="IconEditorPalette.previewChanged" ID="IconEditorPalette.previewChanged"></a> |
|
170 <h4>IconEditorPalette.previewChanged</h4> |
|
171 <b>previewChanged</b>(<i>pixmap</i>) |
|
172 |
|
173 <p> |
|
174 Public slot to update the preview. |
|
175 </p> |
|
176 <dl> |
|
177 |
|
178 <dt><i>pixmap</i></dt> |
|
179 <dd> |
|
180 new preview pixmap (QPixmap) |
|
181 </dd> |
|
182 </dl> |
|
183 <a NAME="IconEditorPalette.setCompositingMode" ID="IconEditorPalette.setCompositingMode"></a> |
|
184 <h4>IconEditorPalette.setCompositingMode</h4> |
|
185 <b>setCompositingMode</b>(<i>mode</i>) |
|
186 |
|
187 <p> |
|
188 Public method to set the compositing mode. |
|
189 </p> |
|
190 <dl> |
|
191 |
|
192 <dt><i>mode</i></dt> |
|
193 <dd> |
|
194 compositing mode to set (QPainter.CompositionMode) |
|
195 </dd> |
|
196 </dl> |
|
197 <div align="right"><a href="#top">Up</a></div> |
|
198 <hr /> |
|
199 </body></html> |