27 QVBox.__init__(self,parent)
32 label=QLabel(
"Name: ",row0)
35 label=QLabel(
"Script: ",self)
37 self.mle.setText(item.node.getScript())
40 but1=QPushButton(
"Save", row2 )
41 but1.setFixedSize( but1.sizeHint())
42 but2=QPushButton(
"Cancel", row2 )
43 but2.setFixedSize( but2.sizeHint())
44 self.connect( but1, SIGNAL(
"clicked()"), self.
handleSave )
45 self.connect( but2, SIGNAL(
"clicked()"), self.
handleCancel )
48 self.item.node.setScript(str(self.mle.text()))
51 self.lined0.setText(self.item.node.getName())
52 self.mle.setText(self.item.node.getScript())
56 QVBox.__init__(self,parent)
61 label=QLabel(
"Name: ",row0)
65 label=QLabel(
"Fname: ",row1)
68 label=QLabel(
"Function: ",self)
70 self.mle.setText(self.item.node.getScript())
73 but1=QPushButton(
"Save", row2 )
74 but1.setFixedSize( but1.sizeHint())
75 but2=QPushButton(
"Cancel", row2 )
76 but2.setFixedSize( but2.sizeHint())
77 self.connect( but1, SIGNAL(
"clicked()"), self.
handleSave )
78 self.connect( but2, SIGNAL(
"clicked()"), self.
handleCancel )
81 self.item.node.setFname(str(self.lined1.text()))
82 self.item.node.setScript(str(self.mle.text()))
85 self.lined0.setText(self.item.node.getName())
86 self.lined1.setText(self.item.node.getFname())
87 self.mle.setText(self.item.node.getScript())
91 QVBox.__init__(self,parent)
93 vsplit=QSplitter(Qt.Vertical,self,
"VSplitter")
95 vbox.layout().setAlignment(Qt.AlignTop|Qt.AlignLeft)
98 label=QLabel(
"Name: ",row0)
105 but1=QPushButton(
"Save", row2 )
106 but1.setFixedSize( but1.sizeHint())
107 but2=QPushButton(
"Cancel", row2 )
108 but2.setFixedSize( but2.sizeHint())
109 self.connect( but1, SIGNAL(
"clicked()"), self.
handleSave )
110 self.connect( but2, SIGNAL(
"clicked()"), self.
handleCancel )
112 nodes= item.node.edGetDirectDescendants()
115 subitem=Item.adapt(node)
116 panel=subitem.box(vsplit)
125 QVBox.__init__(self,parent)
127 self.layout().setAlignment(Qt.AlignTop|Qt.AlignLeft)
130 label=QLabel(
"Name: ",row0)
131 lined0 =
QLineEdit(self.item.port.getName(),row0)
132 label=QLabel(
"Type: ",row0)
133 QLineEdit(self.item.port.edGetType().name(),row0)
135 label=QLabel(
"Value: ",self)
137 self.value.setText(
"Empty")
141 but1=QPushButton(
"Save", row3 )
142 but1.setFixedSize( but1.sizeHint())
143 self.connect( but1, SIGNAL(
"clicked()"), self.
handleSave )
144 but2=QPushButton(
"Restore", row3 )
145 but2.setFixedSize( but2.sizeHint())
146 self.connect( but2, SIGNAL(
"clicked()"), self.
handleRestore )
150 self.item.port.edInitXML(str(self.value.text()))
152 traceback.print_exc()
153 self.value.setText(self.item.port.dump())
156 if not self.item.port.isEmpty():
157 self.value.setText(self.item.port.dump())
162 self.value.setText(self.item.port.dump())
164 traceback.print_exc()