Mercurial > fife-parpg
diff clients/editor/plugins/HistoryManager.py @ 318:e2ac8bb1a22c
* Added tooltips and hotkey information for some buttons
* Fixed a small bug where toolbar did not resize when button style was changed
author | cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 15 Aug 2009 18:31:01 +0000 |
parents | 6add14ebe9f5 |
children | 8b125ec749d7 |
line wrap: on
line diff
--- a/clients/editor/plugins/HistoryManager.py Sat Aug 15 18:10:51 2009 +0000 +++ b/clients/editor/plugins/HistoryManager.py Sat Aug 15 18:31:01 2009 +0000 @@ -28,18 +28,25 @@ self.editor = scripts.editor.getEditor() self.engine = self.editor.getEngine() - self._undoGroup = ActionGroup(name=u"UndoGroup") self._showAction = Action(u"History manager", checkable=True) self._undoAction = Action(u"Undo", "gui/icons/undo.png") self._redoAction = Action(u"Redo", "gui/icons/redo.png") self._nextAction = Action(u"Next branch", "gui/icons/next_branch.png") self._prevAction = Action(u"Previous branch", "gui/icons/previous_branch.png") + + self._showAction.helptext = u"Toggle HistoryManager" + self._undoAction.helptext = u"Undo action (CTRL+Z)" + self._redoAction.helptext = u"Redo action (CTRL+SHIFT+Z)" + self._nextAction.helptext = u"Next branch (CTRL+ALT+Z" + self._prevAction.helptext = u"Previous branch (CTRL+ALT+SHIFT+Z)" + scripts.gui.action.activated.connect(self.toggle, sender=self._showAction) scripts.gui.action.activated.connect(self._undo, sender=self._undoAction) scripts.gui.action.activated.connect(self._redo, sender=self._redoAction) scripts.gui.action.activated.connect(self._next, sender=self._nextAction) scripts.gui.action.activated.connect(self._prev, sender=self._prevAction) + self._undoGroup = ActionGroup(name=u"UndoGroup") self._undoGroup.addAction(self._undoAction) self._undoGroup.addAction(self._redoAction) self._undoGroup.addAction(self._nextAction)