Opened 11 years ago

Closed 10 years ago

#1454 closed enhancement (fixed)

Show current interaction mode

Reported by: LonelyPixel Owned by: cbro@…
Priority: minor Milestone:
Component: merkaartor Version:
Keywords: Cc:

Description

The current interaction mode is only visible from the mouse cursor when it's over the map view. And that's not very comprehensive. Take any advanced drawing/painting application: They indicate the currently selected tool by several mouse cursors and highlighting the selected tool in the toolbar. I'd like to focus on the toolbar part first. There could be more buttons of the most important menu commands in the Create menu. The one that's currently active (alogn with Select and Move) could be highlighted so that the user can very quickly see what he's about to do.

So here's my patch. First, it adds three new toolbar buttons from the menu: create node, road and area. (The icons are from the OSM Wiki.) This is only to improve the effect and use of the patch. Second, it always highlights (Qt: "checks") the button for the interaction that's currently active: Select, Move, Create node/road/ area.

There's one thing about the .ui file: My Qt Designer seems to format the XML file in a different style and tends to sort elements differently, so diff was a bit helpless and traced many more changes than there actually are. My file compare utility only shows changes WRT the XML syntax, but unfortunately it cannot generate diff files. I've included the full new file so you can compare it for yourself.

Attachments (2)

code.diff (2.2 KB) - added by LonelyPixel 11 years ago.
Patch of my proposed implementation
interaction-state-ui.zip (6.4 KB) - added by LonelyPixel 11 years ago.
Edited MainWindow?.ui and new icons

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by LonelyPixel

Attachment: code.diff added

Patch of my proposed implementation

Changed 11 years ago by LonelyPixel

Attachment: interaction-state-ui.zip added

Edited MainWindow?.ui and new icons

comment:1 Changed 10 years ago by lonelypixel

Resolution: fixed
Status: newclosed

(In [13421]) ADD : More toolbar buttons and icons for actions ADD : Highlight selected interaction mode in the toolbar (closes #1454)

Note: See TracTickets for help on using tickets.