mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
LC: Update with functional window LC and Edit.
This commit is contained in:
1 parent
115d84d436
commit
f1d82b2f86
10 files changed
+183
-48
No files matched your search
@@ -26,21 +26,21 @@ class SetNameCommand(QUndoCommand):
|
||||
def redo(self):
|
||||
self._lcs.get(self._tab, self._index).name = self._new
|
||||
|
||||
class SetNodeCommand(QUndoCommand):
|
||||
def __init__(self, lcs, tab, index, node):
|
||||
class SetEdgeCommand(QUndoCommand):
|
||||
def __init__(self, lcs, tab, index, edge):
|
||||
QUndoCommand.__init__(self)
|
||||
|
||||
self._lcs = lcs
|
||||
self._tab = tab
|
||||
self._index = index
|
||||
self._old = self._lcs.get(self._tab, self._index).node
|
||||
self._new = node
|
||||
self._old = self._lcs.get(self._tab, self._index).edge
|
||||
self._new = edge
|
||||
|
||||
def undo(self):
|
||||
self._lcs.get(self._tab, self._index).node = self._old
|
||||
self._lcs.get(self._tab, self._index).edge = self._old
|
||||
|
||||
def redo(self):
|
||||
self._lcs.get(self._tab, self._index).node = self._new
|
||||
self._lcs.get(self._tab, self._index).edge = self._new
|
||||
|
||||
class SetTypeCommand(QUndoCommand):
|
||||
def __init__(self, lcs, tab, index, _type):
|
||||
|
||||
Reference in new issue
Block a user