Ticket #1076 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Organize toolbar buttons

Reported by: asaf Owned by: garycmartin
Priority: Unspecified by Maintainer Milestone: Unspecified by Release Team
Component: Physics Version: Unspecified
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: New

Description

Add a way to define the order of the toolbar buttons.

Change History

Changed 4 years ago by asaf

What will a good order be?

This can be achieved easily by replacing the contents of the [ getAllTools] function by this

def getAllTools():
    allTools = [BoxTool, TriangleTool, CircleTool, MagicPenTool, PolygonTool, JointTool, PinTool, MotorTool, GrabTool, DestroyTool]
    return allTools

of course, putting the desired order.

Changed 4 years ago by garycmartin

Hi Asaf, thanks that's nice and simple to change :-) I don't have a very strong opinion, but the tool order I've been trying here is based on ordering the tools from simple to complex:

def getAllTools():
    allTools = [CircleTool, TriangleTool, BoxTool, PolygonTool, MagicPenTool, PinTool, JointTool, MotorTool, GrabTool, DestroyTool]
    return allTools

Changed 4 years ago by garycmartin

  • status changed from new to closed
  • resolution set to fixed

Thanks for the code, done.

Note: See TracTickets for help on using tickets.