1 from DialogEdit import *
4 class RenameDialog( DialogEdit ) :
6 def __init__( self, helpFile, controller, widgetDialogBox, model, oldName ) :
9 # Initializing parent widget
10 DialogEdit.__init__( self, helpFile, controller, widgetDialogBox )
13 self.entryName.setText( oldName )
16 def addSpecialWidgets( self ) :
17 lName = QLabel( "Name", self )
18 self.v11.addWidget( lName )
19 self.entryName = QLineEdit( self )
20 self.v12.addWidget( self.entryName )
23 def execApply( self ) :
24 newName = self.newName
25 self.getController().editName( self._model, newName )
28 def retrieveUserEntries( self ) :
29 self.newName = str( self.entryName.text() )
32 def checkUserEntries( self ) :
33 if self.newName == "" :
34 self.errMessage = 'All attributes must be filled'