update tooltips to make emacs-style keybindings clearer

This commit is contained in:
Damien Elmes 2009-02-15 15:51:04 +09:00
parent ed86beceb7
commit af26ea2000

View file

@ -136,7 +136,7 @@ class FactEditor(object):
# foreground color
self.foreground = QPushButton()
self.foreground.connect(self.foreground, SIGNAL("clicked()"), self.setForeground)
self.foreground.setToolTip(_("Set colour (F7 F7)"))
self.foreground.setToolTip(_("Set colour (F7 then F7)"))
self.foreground.setShortcut(_("F7, F7"))
self.foreground.setFocusPolicy(Qt.NoFocus)
self.foreground.setEnabled(False)
@ -159,7 +159,7 @@ class FactEditor(object):
hbox.setSpacing(0)
self.fleft = QPushButton()
self.fleft.connect(self.fleft, SIGNAL("clicked()"), self.previousForeground)
self.fleft.setToolTip(_("Previous colour (F7 F6)"))
self.fleft.setToolTip(_("Previous colour (F7 then F6)"))
self.fleft.setText("<")
self.fleft.setShortcut(_("F7, F6"))
self.fleft.setFocusPolicy(Qt.NoFocus)
@ -170,7 +170,7 @@ class FactEditor(object):
self.fleft.setStyle(self.plastiqueStyle)
self.fright = QPushButton()
self.fright.connect(self.fright, SIGNAL("clicked()"), self.nextForeground)
self.fright.setToolTip(_("Next colour (F7 F8)"))
self.fright.setToolTip(_("Next colour (F7 then F8)"))
self.fright.setText(">")
self.fright.setShortcut(_("F7, F8"))
self.fright.setFocusPolicy(Qt.NoFocus)
@ -182,7 +182,7 @@ class FactEditor(object):
vbox.addLayout(hbox)
self.fchoose = QPushButton()
self.fchoose.connect(self.fchoose, SIGNAL("clicked()"), self.selectForeground)
self.fchoose.setToolTip(_("Choose colour (F7 F5)"))
self.fchoose.setToolTip(_("Choose colour (F7 then F5)"))
self.fchoose.setText("+")
self.fchoose.setShortcut(_("F7, F5"))
self.fchoose.setFocusPolicy(Qt.NoFocus)
@ -271,7 +271,7 @@ class FactEditor(object):
spc = QSpacerItem(5,5)
self.iconsBox2.addItem(spc)
self.latex = QPushButton(self.widget)
self.latex.setToolTip(_("Latex (Ctrl+l, l)"))
self.latex.setToolTip(_("Latex (Ctrl+l then l)"))
self.latexSC = QShortcut(QKeySequence(_("Ctrl+l, l")), self.widget)
self.latex.connect(self.latex, SIGNAL("clicked()"), self.insertLatex)
self.latex.connect(self.latexSC, SIGNAL("activated()"), self.insertLatex)
@ -282,7 +282,7 @@ class FactEditor(object):
self.latex.setStyle(self.plastiqueStyle)
# latex eqn
self.latexEqn = QPushButton(self.widget)
self.latexEqn.setToolTip(_("Latex equation (Ctrl+l, e)"))
self.latexEqn.setToolTip(_("Latex equation (Ctrl+l then e)"))
self.latexEqnSC = QShortcut(QKeySequence(_("Ctrl+l, e")), self.widget)
self.latexEqn.connect(self.latexEqn, SIGNAL("clicked()"), self.insertLatexEqn)
self.latexEqn.connect(self.latexEqnSC, SIGNAL("activated()"), self.insertLatexEqn)
@ -293,7 +293,7 @@ class FactEditor(object):
self.latexEqn.setStyle(self.plastiqueStyle)
# latex math env
self.latexMathEnv = QPushButton(self.widget)
self.latexMathEnv.setToolTip(_("Latex math environment (Ctrl+l, m)"))
self.latexMathEnv.setToolTip(_("Latex math environment (Ctrl+l then m)"))
self.latexMathEnvSC = QShortcut(QKeySequence(_("Ctrl+l, m")), self.widget)
self.latexMathEnv.connect(self.latexMathEnv, SIGNAL("clicked()"),
self.insertLatexMathEnv)