Exemplo n.º 1
0
 def __init__(self, parent, suite, trait, template, name='TemplateViewWindow'):
     BaseTextEditWindow.__init__(self, parent, TemplateTextEdit, name=name)
     self.initPaellaCommon()
     self.trait = Trait(self.conn, suite=suite)
     self.mainView.trait = self.trait
     self.trait.set_trait(trait)
     self.resize(600, 800)
     self.set_template(template)
Exemplo n.º 2
0
 def __init__(self, parent, suite, trait, template, name='TemplateViewWindow'):
     BaseTextEditWindow.__init__(self, parent, TemplateTextEdit, name=name)
     self.initPaellaCommon()
     self.trait = Trait(self.conn, suite=suite)
     self.mainView.trait = self.trait
     self.trait.set_trait(trait)
     self.resize(600, 800)
     self.set_template(template)
Exemplo n.º 3
0
 def __init__(self, parent, trait, suite, name='TraitDescriptionWindow'):
     BaseTextEditWindow.__init__(self, parent, KTextEdit, name=name)
     self.initPaellaCommon()
     self.trait = Trait(self.conn, suite=suite)
     self.trait.set_trait(trait)
     self.resize(600, 800)
     desc = self.trait.get_description()
     if desc is not None:
         self.mainView.setText(desc)
Exemplo n.º 4
0
 def __init__(self, parent, trait, suite, name='TraitDescriptionWindow'):
     BaseTextEditWindow.__init__(self, parent, KTextEdit, name=name)
     self.initPaellaCommon()
     self.trait = Trait(self.conn, suite=suite)
     self.trait.set_trait(trait)
     self.resize(600, 800)
     desc = self.trait.get_description()
     if desc is not None:
         self.mainView.setText(desc)
Exemplo n.º 5
0
 def initToolbar(self):
     toolbar = self.toolBar()
     self.newAction.plug(toolbar)
     BaseTextEditWindow.initToolbar(self)
Exemplo n.º 6
0
 def initActions(self):
     BaseTextEditWindow.initActions(self)
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.mainView.slotCreateNewVariable, collection)
Exemplo n.º 7
0
 def initToolbar(self):
     toolbar = self.toolBar()
     self.newAction.plug(toolbar)
     BaseTextEditWindow.initToolbar(self)
Exemplo n.º 8
0
 def initActions(self):
     BaseTextEditWindow.initActions(self)
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(
         self.mainView.slotCreateNewVariable, collection)