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

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

eric ide

mercurial