File: MergeLayers

package info (click to toggle)
viking 1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,468 kB
  • sloc: ansic: 81,706; xml: 2,893; sh: 2,501; makefile: 874; python: 589; perl: 384; cpp: 259
file content (25 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download | duplicates (3)
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
Merge down -> check if another TRWLayer below (HOW)
Actual merge operation:
Take one layer, go thru each waypoint/track of another.
Take old name and value pointers, add to new layer, steal from old layer.
Name conflict:

 ______________________________________________________
|_____n_a_m_e_____________c_o_n_f_l_i_c_t______________|
|                                                      |
| The track 'x' exists in both the top layer ('l1')    |
| and the bottom layer ('l2'). What do you want to do? |
|                                                      |
| Delete From  :                   top layer ('l1')    |
| Rename to                                            |
| [        ] in:                                       |
| Autorename                                           |
| Delete All                       bottom layer ('l2') |
| Autorename all                                       |
+------------------------------------------------------+

TODO
* check if another TRWLayer below (HOW)
* Better/less confusing UI

UI (name conflict) suggestions would be appreciated!