code: def saveProfileAs( self ):
          
          name, ok = QInputDialog.getText(self, 'Create Profile', 'Name:')
          if ( not name ):
              return
          
          manager = self.parent()
          prof    = manager.viewWidget().saveProfile()
          prof.setName(nativestring(name))
          self.parent().addProfile(prof)
docs: Saves the current profile as a new profile to the manager.