Commit Graph

86 Commits

Author SHA1 Message Date
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
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
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
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
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
46cb57cea7 No double click on area fill (fixes #518) 2013-01-26 16:43:46 -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
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
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
55346c4d33 Work around blur issue for #439 2013-01-22 11:19:09 -05: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
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
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
John Firebaugh
5a2444b551 Extract and fix extent/intersection calculations
Extents are now [[min x, min y], [max x, max y]].
2013-01-17 14:27:01 -08:00
Ansis Brammanis
b8d9741959 Only update inspector tag list when necessary 2013-01-17 10:48:42 -05:00
Ansis Brammanis
1a2b897d06 Fix closing inspector after delete 2013-01-15 17:23:00 -05:00
Ansis Brammanis
754225aeb7 Autosave tags when closing inspector 2013-01-14 17:14:10 -05:00
Tom MacWright
72afc6dcb9 Namespace UI components 2013-01-14 14:00:51 -05:00
Ansis Brammanis
fcc981db60 Exit select mode if entity gets undone 2013-01-14 10:13:50 -05:00
John Firebaugh
4c6757714c parentWays/Relations now take an entity 2013-01-11 17:26:25 -08:00
John Firebaugh
7dc1945ee3 accuracy-handle -> midpoint 2013-01-11 14:54:51 -08:00
Ansis Brammanis
bdb958d912 simpler panning on select 2013-01-11 12:31:42 -05:00
Tom MacWright
d4af1032a3 Clear inspector when closed 2013-01-07 18:28:52 -05:00
Tom MacWright
00da444a33 Merge pull request #322 from systemed/inspector-intersect
Inspector intersect
2013-01-07 09:15:10 -08:00