The select modules now switch to move if the user clicks inside the selection. This means the user can do a select and move in one go, without changing buttons.
This is also the sort if behaviour you get in e. g. office - if you select and click in selection, you start a drag and drop.
Note a added a listener which informs about changes of active draw module. This is needed in JCP, since if the select module changes to move mode, jcp needs to highlight buttons.
I also added methods to the modules for setting and getting an ID. JCP uses these for tracking buttons and to get from a new active module the information which button it needs to set active. I also thought about putting IDs directly into module files, but since IDs come from jcp config files, this would confuse things, I think.
Log in to post a comment.