Commit Graph

174 Commits

Author SHA1 Message Date
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
John Firebaugh
851eae68b8 Match terminology with ReverseWay action 2013-01-22 14:54:30 -05:00
Tom MacWright
9a3d545f17 Do not focus text fields after initial placement 2013-01-22 14:42:21 -05:00
Tom MacWright
5937258c24 Merge branch 'hash' 2013-01-22 11:19:33 -05:00
Tom MacWright
55346c4d33 Work around blur issue for #439 2013-01-22 11:19:09 -05:00
Tom MacWright
42f145a945 Merge pull request #457 from systemed/hash
Hash
2013-01-22 07:47:03 -08:00
Tom MacWright
38c02509ea Do not tolerate modifiers for action shortcuts.
Tolerates id-equality for selecting features.
2013-01-22 10:39:10 -05:00
Tom MacWright
3d90801e63 Add willselect to hash, works with non-line features. 2013-01-22 10:22:00 -05:00
John Firebaugh
2e14a6b4de Unbind ⌘-Z when exiting DrawLine (fixes #455) 2013-01-22 09:49:38 -05:00
Tom MacWright
7cf234365e Non-overwriting hash, add hash in select mode. Needs code for dealing
with hash.
2013-01-22 09:41:29 -05:00
Tom MacWright
b3765a4467 Microbranching jshint stuff. 2013-01-22 09:35:34 -05:00
John Firebaugh
3d98fdd0c5 Merge branch 'gridify' 2013-01-18 15:19:35 -08:00
John Firebaugh
95800741fd Add some utility methods to Way 2013-01-18 14:44:29 -08:00
John Firebaugh
ce6e11a8a0 Test copying tags to the split way 2013-01-18 14:44:28 -08:00
Ansis Brammanis
faecda854e Improve inspector-forced panning 2013-01-18 13:04:42 -05:00
saman bb
1de76aea56 resolve merge 2013-01-17 22:27:25 -05:00