Exemplo n.º 1
0
 def on_settings_button_clicked(self):
     from tortoisehg.hgqt import settings
     if settings.SettingsDialog(parent=self, focus='email.from').exec_():
         # not use repo.configChanged because it can clobber user input
         # accidentally.
         self._repo.invalidateui()  # force reloading config immediately
         self._filldefaults()
Exemplo n.º 2
0
 def onSettingsButtonClicked(self):
     from tortoisehg.hgqt import settings
     if settings.SettingsDialog(parent=self, focus='reviewboard.server').exec_():
         # not use repo.configChanged because it can clobber user input
         # accidentally.
         self.repo.invalidateui()  # force reloading config immediately
         self.readSettings()
Exemplo n.º 3
0
 def startSettings(self):
     root = self.selitem.internalPointer().rootpath()
     sd = settings.SettingsDialog(configrepo=True,
                                  focus='web.name',
                                  parent=self,
                                  root=root)
     sd.finished.connect(sd.deleteLater)
     sd.exec_()
Exemplo n.º 4
0
def userconfig(ui, *pats, **opts):
    """user configuration editor"""
    from tortoisehg.hgqt import settings
    return settings.SettingsDialog(False, focus=opts.get('focus'))
Exemplo n.º 5
0
def repoconfig(ui, repoagent, *pats, **opts):
    """repository configuration editor"""
    from tortoisehg.hgqt import settings
    return settings.SettingsDialog(True, focus=opts.get('focus'))
Exemplo n.º 6
0
 def on_settings_button_clicked(self):
     from tortoisehg.hgqt import settings
     settings.SettingsDialog(parent=self, focus='web.name').exec_()