Version: 8.3.0
gui.Items.ItemService Class Reference
Inheritance diagram for gui.Items.ItemService:
Collaboration diagram for gui.Items.ItemService:

Public Member Functions

def panel1
 
def NameChanged
 
def NameReturn
 
def getIconName
 
def handleSave
 
def handleCancel
 
- Public Member Functions inherited from gui.Items.ItemNode
def __init__
 
def selected
 
def isExpandable
 
def getChildren
 
def panel
 
- Public Member Functions inherited from gui.Item.Item
def __init__
 
def isExpandable
 
def getChildren
 
def father
 
def getIconName
 
def panel
 
def box
 
def selected
 
def dblselected
 

Public Attributes

 myName
 
 lined0
 
 lined1
 
 lined2
 
- Public Attributes inherited from gui.Items.ItemNode
 node
 
 label
 
 father
 
 emitting
 
- Public Attributes inherited from gui.Item.Item
 label
 
 emitting
 

Additional Inherited Members

- Static Public Attributes inherited from gui.Items.ItemNode
list panels = []
 

Detailed Description

Definition at line 428 of file Items.py.

Member Function Documentation

def gui.Items.ItemService.getIconName (   self)

Definition at line 473 of file Items.py.

474  def getIconName(self):
475  return "green-square"
def gui.Items.ItemService.handleCancel (   self)

Definition at line 479 of file Items.py.

480  def handleCancel(self):
481  self.lined0.setText(self.node.getName())
482  self.lined1.setText(self.node.getComponent().getName())
483  self.lined2.setText(self.node.getMethod())
def gui.Items.ItemService.handleSave (   self)

Definition at line 476 of file Items.py.

477  def handleSave(self):
478  self.node.setRef(str(self.lined1.text()))
self.node.setMethod(str(self.lined2.text()))
def gui.Items.ItemService.NameChanged (   self,
  newText 
)

Definition at line 467 of file Items.py.

References gui.Items.ItemService.myName.

468  def NameChanged(self, newText ):
469  self.myName=str(newText)
def gui.Items.ItemService.NameReturn (   self)

Definition at line 470 of file Items.py.

471  def NameReturn(self):
472  pass
def gui.Items.ItemService.panel1 (   self,
  parent 
)
Retourne un widget pour browser/editer l'item

Definition at line 429 of file Items.py.

430  def panel1(self,parent):
431  """Retourne un widget pour browser/editer l'item"""
432  self.myName=self.node.getName()
433 
434  qvbox=QVBox(parent)
435  qvbox.layout().setAlignment(Qt.AlignTop|Qt.AlignLeft)
436  qvbox.setSpacing( 5 )
437 
438  row0=QHBox(qvbox)
439  label=QLabel("Name: ",row0)
440  self.lined0 = QLineEdit(self.node.getName(),row0)
441  qvbox.connect( self.lined0, SIGNAL("textChanged(const QString &)"), self.NameChanged )
442  qvbox.connect( self.lined0, SIGNAL("returnPressed()"), self.NameReturn )
443  QToolTip.add( self.lined0, "Node name" )
444 
445  row1=QHBox(qvbox)
446  label1=QLabel("Ref: ",row1)
447  self.lined1 = QLineEdit(row1)
448  if self.node.getComponent():
449  self.lined1.setText(self.node.getComponent().getName())
450  else:
451  self.lined1.setText("NO_COMPONENT_NAME")
452 
453  row2=QHBox(qvbox)
454  label2=QLabel("Method: ",row2)
455  self.lined2 = QLineEdit(row2)
456  self.lined2.setText(self.node.getMethod())
457 
458  row3=QHBox(qvbox)
459  but1=QPushButton( "Save", row3 )
460  but2=QPushButton( "Cancel", row3 )
461  qvbox.connect( but1, SIGNAL("clicked()"), self.handleSave )
462  qvbox.connect( but2, SIGNAL("clicked()"), self.handleCancel )
463 
464  return qvbox

Member Data Documentation

gui.Items.ItemService.lined0

Definition at line 439 of file Items.py.

gui.Items.ItemService.lined1

Definition at line 446 of file Items.py.

gui.Items.ItemService.lined2

Definition at line 454 of file Items.py.

gui.Items.ItemService.myName

Definition at line 431 of file Items.py.

Referenced by gui.Items.ItemService.NameChanged().


The documentation for this class was generated from the following file: