89 </dd><dt><i>text</i></dt> |
89 </dd><dt><i>text</i></dt> |
90 <dd> |
90 <dd> |
91 text for the undo command (string) |
91 text for the undo command (string) |
92 </dd><dt><i>oldImage</i></dt> |
92 </dd><dt><i>oldImage</i></dt> |
93 <dd> |
93 <dd> |
94 copy of the icon before the changes were applied (QImage) |
94 copy of the icon before the changes were applied |
|
95 (QImage) |
95 </dd><dt><i>parent</i></dt> |
96 </dd><dt><i>parent</i></dt> |
96 <dd> |
97 <dd> |
97 reference to the parent command (QUndoCommand) |
98 reference to the parent command (QUndoCommand) |
98 </dd> |
99 </dd> |
99 </dl><a NAME="IconEditCommand.redo" ID="IconEditCommand.redo"></a> |
100 </dl><a NAME="IconEditCommand.redo" ID="IconEditCommand.redo"></a> |
131 </dd><dt>canUndoChanged(bool)</dt> |
132 </dd><dt>canUndoChanged(bool)</dt> |
132 <dd> |
133 <dd> |
133 emitted after the undo status has changed |
134 emitted after the undo status has changed |
134 </dd><dt>clipboardImageAvailable(bool)</dt> |
135 </dd><dt>clipboardImageAvailable(bool)</dt> |
135 <dd> |
136 <dd> |
136 emitted to signal the availability of an |
137 emitted to signal the availability |
137 image to be pasted |
138 of an image to be pasted |
138 </dd><dt>colorChanged(QColor)</dt> |
139 </dd><dt>colorChanged(QColor)</dt> |
139 <dd> |
140 <dd> |
140 emitted after the drawing color was changed |
141 emitted after the drawing color was changed |
141 </dd><dt>imageChanged(bool)</dt> |
142 </dd><dt>imageChanged(bool)</dt> |
142 <dd> |
143 <dd> |
143 emitted after the image was modified |
144 emitted after the image was modified |
144 </dd><dt>positionChanged(int, int)</dt> |
145 </dd><dt>positionChanged(int, int)</dt> |
145 <dd> |
146 <dd> |
146 emitted after the cursor poition was changed |
147 emitted after the cursor poition was |
|
148 changed |
147 </dd><dt>previewChanged(QPixmap)</dt> |
149 </dd><dt>previewChanged(QPixmap)</dt> |
148 <dd> |
150 <dd> |
149 emitted to signal a new preview pixmap |
151 emitted to signal a new preview pixmap |
150 </dd><dt>selectionAvailable(bool)</dt> |
152 </dd><dt>selectionAvailable(bool)</dt> |
151 <dd> |
153 <dd> |
152 emitted to signal a change of the selection |
154 emitted to signal a change of the |
|
155 selection |
153 </dd><dt>sizeChanged(int, int)</dt> |
156 </dd><dt>sizeChanged(int, int)</dt> |
154 <dd> |
157 <dd> |
155 emitted after the size has been changed |
158 emitted after the size has been changed |
156 </dd><dt>zoomChanged(int)</dt> |
159 </dd><dt>zoomChanged(int)</dt> |
157 <dd> |
160 <dd> |
353 </dd> |
356 </dd> |
354 </dl><a NAME="IconEditorGrid.__checkClipboard" ID="IconEditorGrid.__checkClipboard"></a> |
357 </dl><a NAME="IconEditorGrid.__checkClipboard" ID="IconEditorGrid.__checkClipboard"></a> |
355 <h4>IconEditorGrid.__checkClipboard</h4> |
358 <h4>IconEditorGrid.__checkClipboard</h4> |
356 <b>__checkClipboard</b>(<i></i>) |
359 <b>__checkClipboard</b>(<i></i>) |
357 <p> |
360 <p> |
358 Private slot to check, if the clipboard contains a valid image, and signal |
361 Private slot to check, if the clipboard contains a valid image, and |
359 the result. |
362 signal the result. |
360 </p><a NAME="IconEditorGrid.__cleanChanged" ID="IconEditorGrid.__cleanChanged"></a> |
363 </p><a NAME="IconEditorGrid.__cleanChanged" ID="IconEditorGrid.__cleanChanged"></a> |
361 <h4>IconEditorGrid.__cleanChanged</h4> |
364 <h4>IconEditorGrid.__cleanChanged</h4> |
362 <b>__cleanChanged</b>(<i>clean</i>) |
365 <b>__cleanChanged</b>(<i>clean</i>) |
363 <p> |
366 <p> |
364 Private slot to handle the undo stack clean state change. |
367 Private slot to handle the undo stack clean state change. |
464 Private method to initialize the various cursors. |
467 Private method to initialize the various cursors. |
465 </p><a NAME="IconEditorGrid.__initUndoTexts" ID="IconEditorGrid.__initUndoTexts"></a> |
468 </p><a NAME="IconEditorGrid.__initUndoTexts" ID="IconEditorGrid.__initUndoTexts"></a> |
466 <h4>IconEditorGrid.__initUndoTexts</h4> |
469 <h4>IconEditorGrid.__initUndoTexts</h4> |
467 <b>__initUndoTexts</b>(<i></i>) |
470 <b>__initUndoTexts</b>(<i></i>) |
468 <p> |
471 <p> |
469 Private method to initialize texts to be associated with undo commands for |
472 Private method to initialize texts to be associated with undo commands |
470 the various drawing tools. |
473 for the various drawing tools. |
471 </p><a NAME="IconEditorGrid.__isMarked" ID="IconEditorGrid.__isMarked"></a> |
474 </p><a NAME="IconEditorGrid.__isMarked" ID="IconEditorGrid.__isMarked"></a> |
472 <h4>IconEditorGrid.__isMarked</h4> |
475 <h4>IconEditorGrid.__isMarked</h4> |
473 <b>__isMarked</b>(<i>i, j</i>) |
476 <b>__isMarked</b>(<i>i, j</i>) |
474 <p> |
477 <p> |
475 Private method to check, if a pixel is marked. |
478 Private method to check, if a pixel is marked. |
528 <p> |
531 <p> |
529 Private slot to update parts of the widget. |
532 Private slot to update parts of the widget. |
530 </p><dl> |
533 </p><dl> |
531 <dt><i>ipos1</i></dt> |
534 <dt><i>ipos1</i></dt> |
532 <dd> |
535 <dd> |
533 top, left position for the update in image coordinates (QPoint) |
536 top, left position for the update in image coordinates |
|
537 (QPoint) |
534 </dd><dt><i>ipos2</i></dt> |
538 </dd><dt><i>ipos2</i></dt> |
535 <dd> |
539 <dd> |
536 bottom, right position for the update in image coordinates (QPoint) |
540 bottom, right position for the update in image |
|
541 coordinates (QPoint) |
537 </dd> |
542 </dd> |
538 </dl><a NAME="IconEditorGrid.__updatePreviewPixmap" ID="IconEditorGrid.__updatePreviewPixmap"></a> |
543 </dl><a NAME="IconEditorGrid.__updatePreviewPixmap" ID="IconEditorGrid.__updatePreviewPixmap"></a> |
539 <h4>IconEditorGrid.__updatePreviewPixmap</h4> |
544 <h4>IconEditorGrid.__updatePreviewPixmap</h4> |
540 <b>__updatePreviewPixmap</b>(<i></i>) |
545 <b>__updatePreviewPixmap</b>(<i></i>) |
541 <p> |
546 <p> |
546 <p> |
551 <p> |
547 Private slot to update parts of the widget. |
552 Private slot to update parts of the widget. |
548 </p><dl> |
553 </p><dl> |
549 <dt><i>pos1</i></dt> |
554 <dt><i>pos1</i></dt> |
550 <dd> |
555 <dd> |
551 top, left position for the update in widget coordinates (QPoint) |
556 top, left position for the update in widget coordinates |
|
557 (QPoint) |
552 </dd><dt><i>pos2</i></dt> |
558 </dd><dt><i>pos2</i></dt> |
553 <dd> |
559 <dd> |
554 bottom, right position for the update in widget coordinates (QPoint) |
560 bottom, right position for the update in widget |
|
561 coordinates (QPoint) |
555 </dd> |
562 </dd> |
556 </dl><a NAME="IconEditorGrid.canPaste" ID="IconEditorGrid.canPaste"></a> |
563 </dl><a NAME="IconEditorGrid.canPaste" ID="IconEditorGrid.canPaste"></a> |
557 <h4>IconEditorGrid.canPaste</h4> |
564 <h4>IconEditorGrid.canPaste</h4> |
558 <b>canPaste</b>(<i></i>) |
565 <b>canPaste</b>(<i></i>) |
559 <p> |
566 <p> |
619 <p> |
626 <p> |
620 Public slot to paste an image from the clipboard. |
627 Public slot to paste an image from the clipboard. |
621 </p><dl> |
628 </p><dl> |
622 <dt><i>pasting</i></dt> |
629 <dt><i>pasting</i></dt> |
623 <dd> |
630 <dd> |
624 flag indicating part two of the paste operation (boolean) |
631 flag indicating part two of the paste operation |
|
632 (boolean) |
625 </dd> |
633 </dd> |
626 </dl><a NAME="IconEditorGrid.editPasteAsNew" ID="IconEditorGrid.editPasteAsNew"></a> |
634 </dl><a NAME="IconEditorGrid.editPasteAsNew" ID="IconEditorGrid.editPasteAsNew"></a> |
627 <h4>IconEditorGrid.editPasteAsNew</h4> |
635 <h4>IconEditorGrid.editPasteAsNew</h4> |
628 <b>editPasteAsNew</b>(<i></i>) |
636 <b>editPasteAsNew</b>(<i></i>) |
629 <p> |
637 <p> |
782 <dt><i>dirty</i></dt> |
790 <dt><i>dirty</i></dt> |
783 <dd> |
791 <dd> |
784 flag indicating the new modification status (boolean) |
792 flag indicating the new modification status (boolean) |
785 </dd><dt><i>setCleanState</i></dt> |
793 </dd><dt><i>setCleanState</i></dt> |
786 <dd> |
794 <dd> |
787 flag indicating to set the undo stack to clean (boolean) |
795 flag indicating to set the undo stack to clean |
|
796 (boolean) |
788 </dd> |
797 </dd> |
789 </dl><a NAME="IconEditorGrid.setGridEnabled" ID="IconEditorGrid.setGridEnabled"></a> |
798 </dl><a NAME="IconEditorGrid.setGridEnabled" ID="IconEditorGrid.setGridEnabled"></a> |
790 <h4>IconEditorGrid.setGridEnabled</h4> |
799 <h4>IconEditorGrid.setGridEnabled</h4> |
791 <b>setGridEnabled</b>(<i>enable</i>) |
800 <b>setGridEnabled</b>(<i>enable</i>) |
792 <p> |
801 <p> |