From koffice-devel Sun Oct 19 15:38:25 2003 From: Alexander Dymo Date: Sun, 19 Oct 2003 15:38:25 +0000 To: koffice-devel Subject: Kugar patch X-MARC-Message: https://marc.info/?l=koffice-devel&m=106657798801395 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-00=_x/qk/QbyKYsAO0r" --Boundary-00=_x/qk/QbyKYsAO0r Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Here is a patch to reenable key in Kugar Designer. It was used to delete report items. I've disabled it because it doesn't honour undo/redo. But now undo/redo is disabled so it is no reason to disable ;). If there are no objections, please anybody commit because I doubt I'd be able to access cvs in a short time. -- Alexander Dymo Ukrainian State Maritime Technical University, IT Department --Boundary-00=_x/qk/QbyKYsAO0r Content-Type: text/x-diff; charset="koi8-r"; name="kudesigner_delete.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kudesigner_delete.diff" ? kudesigner_delete.diff Index: cv.cpp =================================================================== RCS file: /home/kde/koffice/kugar/kudesigner_lib/cv.cpp,v retrieving revision 1.2 diff -u -r1.2 cv.cpp --- cv.cpp 12 Jun 2003 09:04:38 -0000 1.2 +++ cv.cpp 19 Oct 2003 15:32:33 -0000 @@ -712,6 +712,13 @@ ( (MyCanvas*) canvas() )->templ->removeReportItem( item ); clearRequest();*/ // deleteSelected(); + //FIXME: this disregards undo/redo + if (((MyCanvas*)canvas())->selected.count() > 0) + { + DeleteReportItemsCommand *cmd = new DeleteReportItemsCommand(((MyCanvas*)canvas()), ((MyCanvas*)canvas())->selected); + cmd->execute(); + delete cmd; + } return; /* Adjust height with - and + */ --Boundary-00=_x/qk/QbyKYsAO0r Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/koffice-devel --Boundary-00=_x/qk/QbyKYsAO0r--