eric6/Documentation/Source/eric6.IconEditor.IconEditorPalette.html

branch
maintenance
changeset 6989
8b8cadf8d7e9
parent 6942
2602857055c5
child 7273
391d6b7b1eff
equal deleted inserted replaced
6938:7926553b7509 6989:8b8cadf8d7e9
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.IconEditor.IconEditorPalette</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.IconEditor.IconEditorPalette</h1>
23 <p>
24 Module implementing a palette widget for the icon editor.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#IconEditorPalette">IconEditorPalette</a></td>
34 <td>Class implementing a palette widget for the icon editor.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="IconEditorPalette" ID="IconEditorPalette"></a>
43 <h2>IconEditorPalette</h2>
44 <p>
45 Class implementing a palette widget for the icon editor.
46 </p><h3>Signals</h3>
47 <dl>
48 <dt>colorSelected(QColor)</dt>
49 <dd>
50 emitted after a new color has been selected
51 </dd><dt>compositingChanged(QPainter.CompositionMode)</dt>
52 <dd>
53 emitted to signal a
54 change of the compositing mode
55 </dd>
56 </dl>
57 <h3>Derived from</h3>
58 QWidget
59 <h3>Class Attributes</h3>
60 <table>
61 <tr><td>None</td></tr>
62 </table>
63 <h3>Class Methods</h3>
64 <table>
65 <tr><td>None</td></tr>
66 </table>
67 <h3>Methods</h3>
68 <table>
69 <tr>
70 <td><a href="#IconEditorPalette.__init__">IconEditorPalette</a></td>
71 <td>Constructor</td>
72 </tr><tr>
73 <td><a href="#IconEditorPalette.__alphaChanged">__alphaChanged</a></td>
74 <td>Private slot to track changes of the alpha channel.</td>
75 </tr><tr>
76 <td><a href="#IconEditorPalette.__compositingChanged">__compositingChanged</a></td>
77 <td>Private slot to handle a change of the compositing mode.</td>
78 </tr><tr>
79 <td><a href="#IconEditorPalette.__selectColor">__selectColor</a></td>
80 <td>Private slot to select a new drawing color.</td>
81 </tr><tr>
82 <td><a href="#IconEditorPalette.colorChanged">colorChanged</a></td>
83 <td>Public slot to update the color preview.</td>
84 </tr><tr>
85 <td><a href="#IconEditorPalette.previewChanged">previewChanged</a></td>
86 <td>Public slot to update the preview.</td>
87 </tr><tr>
88 <td><a href="#IconEditorPalette.setCompositingMode">setCompositingMode</a></td>
89 <td>Public method to set the compositing mode.</td>
90 </tr>
91 </table>
92 <h3>Static Methods</h3>
93 <table>
94 <tr><td>None</td></tr>
95 </table>
96 <a NAME="IconEditorPalette.__init__" ID="IconEditorPalette.__init__"></a>
97 <h4>IconEditorPalette (Constructor)</h4>
98 <b>IconEditorPalette</b>(<i>parent=None</i>)
99 <p>
100 Constructor
101 </p><dl>
102 <dt><i>parent</i></dt>
103 <dd>
104 reference to the parent widget (QWidget)
105 </dd>
106 </dl><a NAME="IconEditorPalette.__alphaChanged" ID="IconEditorPalette.__alphaChanged"></a>
107 <h4>IconEditorPalette.__alphaChanged</h4>
108 <b>__alphaChanged</b>(<i>val</i>)
109 <p>
110 Private slot to track changes of the alpha channel.
111 </p><dl>
112 <dt><i>val</i></dt>
113 <dd>
114 value of the alpha channel
115 </dd>
116 </dl><a NAME="IconEditorPalette.__compositingChanged" ID="IconEditorPalette.__compositingChanged"></a>
117 <h4>IconEditorPalette.__compositingChanged</h4>
118 <b>__compositingChanged</b>(<i>on</i>)
119 <p>
120 Private slot to handle a change of the compositing mode.
121 </p><dl>
122 <dt><i>on</i></dt>
123 <dd>
124 flag indicating the checked state of the compositing button
125 (boolean)
126 </dd>
127 </dl><a NAME="IconEditorPalette.__selectColor" ID="IconEditorPalette.__selectColor"></a>
128 <h4>IconEditorPalette.__selectColor</h4>
129 <b>__selectColor</b>(<i></i>)
130 <p>
131 Private slot to select a new drawing color.
132 </p><a NAME="IconEditorPalette.colorChanged" ID="IconEditorPalette.colorChanged"></a>
133 <h4>IconEditorPalette.colorChanged</h4>
134 <b>colorChanged</b>(<i>color</i>)
135 <p>
136 Public slot to update the color preview.
137 </p><dl>
138 <dt><i>color</i></dt>
139 <dd>
140 new color (QColor)
141 </dd>
142 </dl><a NAME="IconEditorPalette.previewChanged" ID="IconEditorPalette.previewChanged"></a>
143 <h4>IconEditorPalette.previewChanged</h4>
144 <b>previewChanged</b>(<i>pixmap</i>)
145 <p>
146 Public slot to update the preview.
147 </p><dl>
148 <dt><i>pixmap</i></dt>
149 <dd>
150 new preview pixmap (QPixmap)
151 </dd>
152 </dl><a NAME="IconEditorPalette.setCompositingMode" ID="IconEditorPalette.setCompositingMode"></a>
153 <h4>IconEditorPalette.setCompositingMode</h4>
154 <b>setCompositingMode</b>(<i>mode</i>)
155 <p>
156 Public method to set the compositing mode.
157 </p><dl>
158 <dt><i>mode</i></dt>
159 <dd>
160 compositing mode to set (QPainter.CompositionMode)
161 </dd>
162 </dl>
163 <div align="right"><a href="#top">Up</a></div>
164 <hr />
165 </body></html>

eric ide

mercurial