-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.txt
More file actions
72 lines (58 loc) · 1.57 KB
/
notes.txt
File metadata and controls
72 lines (58 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
planning for third iteration of interaction code, previous two deleted
start drawing wire only if clicking on a pin which is displayed.
select wires, double clicking a selected wire also starts drawing wire.
drawing wire means that clicking on a comp doesn't select, but simply does nothing.
redo interaction for a third time? complete redesign? i think so.
all the things that need to be done:
move component
select component
edit component
copy component <- ContextMenu
delete component <- ContextMenu
create component <- ContextMenu
create wire
delete wire <- ContextMenu
select wire
attach settings to right click? use right click menu (ContextMenu)?
on left click:
if dragging:
place
else:
if on comp:
if comp is selected comp:
drag comp
else:
select comp
else if on wire:
if wire is selected wire:
start wire
else:
select wire
else:
deselect
on double left click:
if dragging:
reset comp
if on comp:
if comp is selected comp:
open comp settings
on right click:
if on comp:
select comp
open comp ContextMenu
else:
open generic ContextMenu
on key press:
if delete:
delete selected object
comp ContextMenu:
Open Settings (if has settings)
Move Component
Copy Component
Delete Component
generic ContextMenu:
Start Simulation
Create Component (opens dialog)
thoughts further:
Selection has the ability to take an Action<ComponentOrWire> that will be run on all it's members.
ComponentOrWire has a static func that takes an Action<IComponent> and an Action<Wire> and returns the relevant Action<ComponentOrWire>