diff options
author | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-08-06 06:17:00 (GMT) |
---|---|---|
committer | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-08-06 06:17:00 (GMT) |
commit | 7709b172620653a15f7358186914d1a2b8a5e9be (patch) | |
tree | 6d6be9df9027d6d69377c000cdba4d6938562a0b /Swift | |
parent | 6f300f03ed9a61b56dc69dab327869dd7ba4ff10 (diff) | |
download | swift-contrib-7709b172620653a15f7358186914d1a2b8a5e9be.zip swift-contrib-7709b172620653a15f7358186914d1a2b8a5e9be.tar.bz2 |
Moved handling of operation IDs to session classes
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp index 5654c06..fcb8ef1 100644 --- a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp +++ b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp @@ -158,7 +158,6 @@ namespace Swift { graphicsView->deleteItem(P2QSTRING(deleteOp->getElementID())); } } - lastOpID = operation->getID(); } void QtWhiteboardWindow::changeLineWidth(int i) @@ -346,15 +345,11 @@ namespace Swift { if (type == GView::New) { WhiteboardInsertOperation::ref insertOp = boost::make_shared<WhiteboardInsertOperation>(); - insertOp->setID(Q2PSTRING(graphicsView->getNewID())); insertOp->setPos(pos); insertOp->setElement(el); - insertOp->setParentID(lastOpID); - lastOpID = insertOp->getID(); whiteboardSession_->sendOperation(insertOp); } else { WhiteboardUpdateOperation::ref updateOp = boost::make_shared<WhiteboardUpdateOperation>(); - updateOp->setID(Q2PSTRING(graphicsView->getNewID())); updateOp->setPos(pos); if (type == GView::Update) { updateOp->setNewPos(pos); @@ -364,19 +359,14 @@ namespace Swift { updateOp->setNewPos(pos-1); } updateOp->setElement(el); - updateOp->setParentID(lastOpID); - lastOpID = updateOp->getID(); whiteboardSession_->sendOperation(updateOp); } } void QtWhiteboardWindow::handleItemDeleted(QString id, int pos) { WhiteboardDeleteOperation::ref deleteOp = boost::make_shared<WhiteboardDeleteOperation>(); - deleteOp->setID(Q2PSTRING(graphicsView->getNewID())); deleteOp->setElementID(Q2PSTRING(id)); deleteOp->setPos(pos); - deleteOp->setParentID(lastOpID); - lastOpID = deleteOp->getID(); whiteboardSession_->sendOperation(deleteOp); } |