changeset 91:7ad4c66dd092

Fixed save function
author windel
date Mon, 10 Dec 2012 18:55:40 +0100
parents 499183b99c71
children 0c4bdbf0aead
files python/apps/diagrameditor.py python/apps/diagramitems.py python/apps/icons.py
diffstat 3 files changed, 43 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/python/apps/diagrameditor.py	Wed Nov 28 08:41:56 2012 +0100
+++ b/python/apps/diagrameditor.py	Mon Dec 10 18:55:40 2012 +0100
@@ -5,6 +5,7 @@
 import sys, json, base64
 
 from diagramitems import Connection, ResizeSelectionHandle, Block, DiagramScene
+from icons import newicon, saveicon, loadicon
 
 """
  Author: Windel Bouwman
@@ -13,17 +14,6 @@
  run with python 3.x as:
   $ python [thisfile.py]
 """
-saveicon = b'iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGGklEQVR42s2XeWxURRjAv7d3L9ay\nlJBCbAx/SIIpCWilhNLSFsrR0qUgyCmnnKVFa/xDjNbUKGIUSrlaLhEREWlZaQoC24VymBivoGJB\n/MuEtEpjoNt2z/H7Zt+8fdPdGk2MOu23MzvvzXy/+Y6ZWQX+46L8bwC2vLTlZte9e6MMRiMYjQYY\nPWYsZGXngM1iBkUxoERej1RYayJmYGrF1Dbj/31+P1xtuwQ3vvmaP6M/h8Nx69Xq6kclgDWrn2W3\nbt+G5KQkSE9Ph/E5eTB1xixIQID+yIraEMoVJYLGay4KGNS2ty8Aza4muHqpVZvClmCDHbW1igSw\neuUq1tPTA2EWRohkmJCbD9OLS+Fu14M4ZlP6M8lwSvSdEUNTwNXYCFc87iiAzQY7d9XJACuXr2Dd\n3d1gNpvBarXCxMmFUDzLCUk2S3zfKTrlqmIlYgqtTfWDXh80NZ6CNvdFnQUSYNfuXTLAimXLmV5B\nTn4hlDrLICUxHoAC+tHSTNz1jIcCw48HvX60AAK0RgGsaIE9e/fIAMuWPiMB5BZMAWfZHBiUaI1r\nAaZ+Mi32VKVqX5h/ZzwGzpxuRAtckFywt36fDLB08RIZo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G3eKMFwBBFhfX6ebm5sEyl0eAHOgjqvgRSBUA3KAghHouFIAt9vNFNACgIci\nmUxSKEcyNjYmBXC5XK8Wgudvz8OAAJgDigD1lGE155UAsiFwOp2vUgVKzisBZJMQAdR2wlqco62s\nrNBcLkfgzpECOByOuhXg5cc733NLJBIMQLYP2O12BqB0uJrjyk8li8fjdGtri4AfeQAMAUpXayJW\ne2MlANlWbLPZGAB2LPagCoQapZaXl+nOzg6ZmZmRB8CBhANoYTB5U5iQyOzsrDwAjmR4hWpl0WiU\nwpxI5ubmpAAwKLAQ4HWqlUUiEbq/v0/m5+flATAEWiqwtLREDw4OyMLCgjyA1iEIh8P08PCQ+P1+\nKUBPTw8D0DIEi4uL9OjoiASDQSlAd3c3A7i/v9cUAKsgFApJAaxWa2B6etp2e3v71yGlen++X60v\n4EwAAOlUKvUO+oEUoLW19UNfX9/nxsbGhsoOxy+Wl75X2+drdXX1J/zX9AkmI+lU3N7e/hYSxAAT\n0Rs+FdX69rXsA1y5ubn5Vz6fL1Q++w30VO4/0/9IewAAAABJRU5ErkJggg==\n'
-
-def uniqify(name, names):
-   newname, i = name, 1
-   while newname in names: newname, i = name + str(i), i + 1
-   return newname
-
 def indent(lines):
    return ['   ' + line for line in lines]
 
@@ -55,7 +45,8 @@
    def setDiagram(self, d):
       self.setScene(d)
       self.delShort.activated.connect(d.deleteItems)
-   def getModel(self): return self._model
+   def getModel(self): 
+      return self._model
    def setModel(self, m):
       self._model = m
       if m:
@@ -122,7 +113,10 @@
       if event.mimeData().hasFormat('component/name'):
          name = bytes(event.mimeData().data('component/name')).decode()
          pos = self.mapToScene(event.pos())
-         self.scene().addNewBlock(pos, name)
+         s = self.scene()
+         b = Block(s.uniqify(name))
+         b.setPos(pos)
+         s.addItem(b)
          # TODO: do this in a cleaner way:
          self.model.modelReset.emit()
 
@@ -144,7 +138,9 @@
    def setDict(self, d):
       self.rootDiagram.Dict = d
       self.modelReset.emit()
-   Dict = property(lambda s: s.rootDiagram.Dict, setDict)
+   def getDict(self):
+      return self.rootDiagram.Dict
+   Dict = property(getDict, setDict)
    def gencode(self):
       c = ['def topLevel():']
       c += indent(self.rootDiagram.gencode())
@@ -180,16 +176,19 @@
       if orientation == Qt.Horizontal and role == Qt.DisplayRole:
          return "Element"
    def rowCount(self, parent):
-      if parent.column() > 0: return 0
+      if parent.column() > 0: 
+         return 0
       if parent.isValid():
-         parent = parent.internalPointer().subModel
+         block = parent.internalPointer()
+         if hasattr(block, 'subModel'):
+            return len(block.subModel.blocks)
+         else:
+            return 0
       else:
-         parent = self.rootDiagram
-      return len(parent.blocks)
+         return len(self.rootDiagram.blocks)
    def columnCount(self, parent):
       return 1
 
-
 class LibraryWidget(QListView):
    def __init__(self):
       super(LibraryWidget, self).__init__(None)
--- a/python/apps/diagramitems.py	Wed Nov 28 08:41:56 2012 +0100
+++ b/python/apps/diagramitems.py	Mon Dec 10 18:55:40 2012 +0100
@@ -1,6 +1,11 @@
 from PyQt4.QtGui import *
 from PyQt4.QtCore import *
 
+def uniqify(name, names):
+   newname, i = name, 1
+   while newname in names: newname, i = name + str(i), i + 1
+   return newname
+
 def enum(**enums):
    return type('Enum', (), enums)
 
@@ -130,7 +135,8 @@
       lx = 3 if type(self) is InputPort else -3 - lw
       self.textItem.setPos(lx, -lh / 2)
    name = property(getName, setName)
-   def getDict(self): return {'name': self.name}
+   def getDict(self): 
+      return {'name': self.name}
    Dict = property(getDict)
    def itemChange(self, change, value):
       if change == self.ItemScenePositionHasChanged:
@@ -206,6 +212,7 @@
       # Inputs and outputs of the block:
       self.inputs = []
       self.outputs = []
+      self.changeSize(2,2)
    def editParameters(self):
       pd = ParameterDialog(self, self.window())
       pd.exec_()
@@ -229,10 +236,9 @@
       d = {'x': self.scenePos().x(), 'y': self.scenePos().y()}
       rect = self.rect()
       d.update({'width': rect.width(), 'height': rect.height()})
-      d.update({'name': self.name, 'code': self.code})
+      d['name'] = self.name
       d['inputs'] = [inp.Dict for inp in self.inputs]
       d['outputs'] = [outp.Dict for outp in self.outputs]
-      d['submodel'] = self.subModel.Dict
       return d
    def setDict(self, d):
       self.name = d['name']
@@ -262,6 +268,12 @@
             [h.setVisible(False) for h in self.selectionHandles]
 
       return super(Block, self).itemChange(change, value)
+   def hoverEnterEvent(self, event):
+      self.repositionAndShowHandles()
+      super(Block, self).hoverEnterEvent(event)
+   def hoverLeaveEvent(self, event):
+      [h.setVisible(False) for h in self.selectionHandles]
+      super(Block, self).hoverLeaveEvent(event)
    def myDelete(self):
       for p in self.inputs + self.outputs:
          if p.connection: p.connection.myDelete()
@@ -369,11 +381,9 @@
    def findBlock(self, blockname):
       for block in self.blocks:
          if block.name == blockname: return block
-   def addNewBlock(self, pos, name):
+   def uniqify(self, name):
       blocknames = [item.name for item in self.blocks]
-      b1 = Block(uniqify(name, blocknames))
-      b1.setPos(pos)
-      self.addItem(b1)
+      return uniqify(name, blocknames)
    def mouseMoveEvent(self, event):
       if self.startedConnection:
          pos = event.scenePos()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python/apps/icons.py	Mon Dec 10 18:55:40 2012 +0100
@@ -0,0 +1,8 @@
+
+
+saveicon = b'iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGGklEQVR42s2XeWxURRjAv7d3L9ay\nlJBCbAx/SIIpCWilhNLSFsrR0qUgyCmnnKVFa/xDjNbUKGIUSrlaLhEREWlZaQoC24VymBivoGJB\n/MuEtEpjoNt2z/H7Zt+8fdPdGk2MOu23MzvvzXy/+Y6ZWQX+46L8bwC2vLTlZte9e6MMRiMYjQYY\nPWYsZGXngM1iBkUxoERej1RYayJmYGrF1Dbj/31+P1xtuwQ3vvmaP6M/h8Nx69Xq6kclgDWrn2W3\nbt+G5KQkSE9Ph/E5eTB1xixIQID+yIraEMoVJYLGay4KGNS2ty8Aza4muHqpVZvClmCDHbW1igSw\neuUq1tPTA2EWRohkmJCbD9OLS+Fu14M4ZlP6M8lwSvSdEUNTwNXYCFc87iiAzQY7d9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