- Buttons to edit and create relation

- Default example cells when working on a new relation


git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@323 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
LtWorf
2011-10-13 17:06:24 +00:00
parent 06d27b14a7
commit e6c871b785
10 changed files with 367 additions and 117 deletions

View File

@@ -162,6 +162,17 @@ class relForm(QtGui.QMainWindow):
for i in self.ui.lstRelations.selectedItems():
del self.relations[compatibility.get_py_str(i.text())]
self.updateRelations()
def editRelation(self):
import creator
for i in self.ui.lstRelations.selectedItems():
self.relations[compatibility.get_py_str(i.text())]=creator.editRelation(self.relations[compatibility.get_py_str(i.text())])
self.updateRelations()
def newRelation(self):
import creator
creator.editRelation()
self.updateRelations()
#TODO chose name for the relation
def showSurvey(self):
if self.Survey==None:
self.Survey=surveyForm.surveyForm()