Commit Graph

189 Commits

Author SHA1 Message Date
John Firebaugh
09dac581be Fix MoveWay mode (fixes #602) 2013-02-02 12:55:20 -05:00
John Firebaugh
7235632a63 Update logic for multi-select 2013-02-01 15:13:44 -05:00
John Firebaugh
fe49e8fb77 Pass around context rather than map 2013-02-01 12:40:16 -05:00
John Firebaugh
579d632563 Hoist functions up a scope 2013-02-01 12:40:15 -05:00
John Firebaugh
7e68e8e114 Add iD.Context
This is a facade interface that ties together a bunch of
different internal objects and will make it easier to write
tests for behaviors, modes, and operations.
2013-02-01 12:40:15 -05:00
Ansis Brammanis
f430ecd622 Fix keyboard-initiated way moving 2013-01-31 17:12:37 -05:00
John Firebaugh
5f41b74955 Remove controller.exit 2013-01-31 16:00:02 -05:00
John Firebaugh
7ea7326f92 Extract Select behavior 2013-01-31 15:56:24 -05:00
John Firebaugh
402a9424c0 Make selection an array of entity IDs
Should have no visible effect yet.
2013-01-31 13:51:12 -05:00
John Firebaugh
df72ef254f ChangeEntityTags -> ChangeTags 2013-01-31 12:07:54 -05:00
John Firebaugh
6f7079d11c AddWay/AddNode -> AddEntity 2013-01-31 12:06:21 -05:00
John Firebaugh
1bfe1359ec AddWayNode -> AddVertex 2013-01-31 12:06:21 -05:00
John Firebaugh
2655810efe Remove unused parameter 2013-01-31 12:06:21 -05:00
John Firebaugh
7e8126ded9 I18n for modes and operations 2013-01-31 11:20:41 -05:00
Saman Bemel-Benrud
1b495870c0 grammar for tooltips, keybinding hints, other tooltip fixes. 2013-01-30 19:09:10 -05:00
John Firebaugh
363cd53af1 Rearrange code 2013-01-30 16:17:30 -05:00
John Firebaugh
168a3b5e26 Fix drawing on midpoints (fixes #559) 2013-01-30 16:14:29 -05:00
John Firebaugh
dbac370c71 More draw refactoring 2013-01-30 16:14:29 -05:00
John Firebaugh
217577da95 Exit MoveWay mode on undo (fixes #562) 2013-01-30 12:02:49 -05:00
John Firebaugh
f31dcd32a2 Add keybindings for all operations 2013-01-29 18:45:10 -05:00
John Firebaugh
03de3ffba6 Move operation (fixes #536) 2013-01-29 13:18:23 -05:00
John Firebaugh
69d95a6082 Refactor operations
They're something distinct from actions. Actions are independent
of UI, operations are actions + UI (title, keybinding, modality,
etc.)
2013-01-29 12:05:52 -05:00
John Firebaugh
8fe9da4710 Mode name and shortcut key should match 2013-01-28 17:29:21 -05:00
John Firebaugh
859ae1c1cc DrawWay#cancel shouldn't unconditionally delete the way
Fixes #514.
2013-01-28 16:39:31 -05:00
Tom MacWright
6ae683dedc Hints for keybindings. Refs #517 2013-01-28 16:18:49 -05:00
John Firebaugh
46cb57cea7 No double click on area fill (fixes #518) 2013-01-26 16:43:46 -05:00
John Firebaugh
e09666bbdc Fixing draw mode bugs
Disabling interactive draw undo for now. I know how to fix it
but it's a bit tricky. So undo will just drop you out to browse
mode for the time being.

Fixes #477.
Fixes #516.
2013-01-26 15:24:14 -05:00
Tom MacWright
deebe55182 Allow for continuing line drawing, also fixes #507 2013-01-25 16:28:21 -05:00
Tom MacWright
1f3319f7b0 Add circularize action. Fixes #491 2013-01-24 22:52:19 -05:00
John Firebaugh
923fb86f06 Revert menu placement on way
Can't do this until we can distinguish area fill from stroke.
2013-01-24 19:13:42 -05:00
John Firebaugh
454cf0b16c Close menu on map move (fixes #482) 2013-01-24 19:07:05 -05:00
John Firebaugh
3f7b7c6a5a Hide menu on history changes 2013-01-24 18:45:36 -05:00
John Firebaugh
66a0d0bdbd Center the radial menu on entities (fixes #483)
Also, don't show it when finishing draw operations.
2013-01-24 18:45:36 -05:00
John Firebaugh
dd03544a00 Extract AddWay behavior 2013-01-24 18:04:40 -05:00
Tom MacWright
2527d57404 Simple map-tail minimalism. Fixes #467 2013-01-24 17:26:52 -05:00
John Firebaugh
d83eb7647a Connect areas to lines (fixes #476) 2013-01-24 17:04:24 -05:00
John Firebaugh
18c7267010 Extract Draw behavior
Fixed some bugs but introduced others.
2013-01-24 17:00:48 -05:00
John Firebaugh
4d7478972a Remove unused 2013-01-24 17:00:48 -05:00
Tom MacWright
2fd492ed03 Fixes #480 I need more coffee 2013-01-24 13:17:57 -05:00
Tom MacWright
ce78e34b34 Merge, rename to radial menu and remove pi 2013-01-24 13:11:52 -05:00
Tom MacWright
32ea30c3fb Use isPoi for determining whether points are pois or not 2013-01-23 19:14:54 -05:00
John Firebaugh
64e8e85187 location.replace (fixes #462) 2013-01-23 15:58:09 -05:00
John Firebaugh
d6d1709e7b Trying out radial menus for operations UI (#226) 2013-01-23 15:34:04 -05:00
John Firebaugh
278bb4a51c Fix some cases where a degenerate way was created 2013-01-23 12:40:27 -05:00
John Firebaugh
29d608970b UnjoinNode action (fixes #442) 2013-01-23 10:07:10 -05:00
John Firebaugh
c263ebd4dc iD.util.geo => iD.geo 2013-01-22 18:20:20 -05:00
John Firebaugh
7f8ff43a0f Fix namespaces and unbinding 2013-01-22 18:16:52 -05:00
John Firebaugh
2e6c23d7ef Fix namespace 2013-01-22 14:58:51 -05:00
John Firebaugh
814c3608db Hook into undos in a different way
This way doesn't depend on details of keybindings and
the undo button.

Also, implement this in DrawArea mode.
2013-01-22 14:55:08 -05:00
John Firebaugh
ff15aa8e7b Rewrite d3.keybinding
A keybinding now represents a set of key commands that can
be unbound as a set. Multiple keybindings are possible, and,
providing a namespace is provided to the constructor, will
not conflict with each other.

Also, key combination strings such as ⌘+A are now supported.
2013-01-22 14:55:08 -05:00