diff clients/editor/scripts/gui/mapeditor.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 a185aff39051
children 8b125ec749d7
line wrap: on
line diff
--- a/clients/editor/scripts/gui/mapeditor.py	Sat Aug 15 18:10:51 2009 +0000
+++ b/clients/editor/scripts/gui/mapeditor.py	Sat Aug 15 18:31:01 2009 +0000
@@ -148,10 +148,10 @@
 		self._moveAction = Action(text=u"Move", icon="gui/icons/move_instance.png", checkable=True)
 		self._objectpickerAction = Action(text=u"Pick object", icon="gui/icons/objectpicker.png", checkable=True)
 		
-		self._selectAction.helptext = u"Select cells on layer"
-		self._moveAction.helptext = u"Moves instances"
-		self._drawAction.helptext = u"Adds new instances based on currently selected object"
-		self._removeAction.helptext = u"Deletes instances"
+		self._selectAction.helptext = u"Select cells on layer  (S)"
+		self._moveAction.helptext = u"Moves instances   (M)"
+		self._drawAction.helptext = u"Adds new instances based on currently selected object   (I)"
+		self._removeAction.helptext = u"Deletes instances   (R)"
 		self._objectpickerAction.helptext = u"Click an instance to set the current object to the one used by instance"
 		
 		action.toggled.connect(self._buttonToggled, sender=self._selectAction)
@@ -181,6 +181,13 @@
 		zoomResetAction = Action(text=u"Reset zoom", icon="gui/icons/zoom_default.png")
 		screenshotAction = Action(text=u"Take screenshot", icon="gui/icons/take_screenshot.png")
 		
+		rotateLeftAction.helptext = u"Rotate counterclockwise by 90 degrees"
+		rotateRightAction.helptext = u"Rotate clockwise by 90 degrees"
+		zoomInAction.helptext = u"Zoom in   (CTRL + Mousewheel up)"
+		zoomOutAction.helptext = u"Zoom out   (CTRL + Mousewheel down)"
+		zoomResetAction.helptext = u"Reset zoom to default level"
+		screenshotAction.helptext = u"Take screenshot   (F7)"
+		
 		action.activated.connect(self.rotateCounterClockwise, sender=rotateLeftAction)
 		action.activated.connect(self.rotateClockwise, sender=rotateRightAction)
 		action.activated.connect(self.zoomIn, sender=zoomInAction)