Files
gpx.studio/website/src/lib/components/Toolbar.svelte

64 lines
1.9 KiB
Svelte
Raw Normal View History

2024-04-09 18:46:01 +02:00
<script lang="ts">
2024-04-18 15:58:46 +02:00
import { reverseSelectedFiles } from '$lib/stores';
2024-04-09 18:46:01 +02:00
import ToolbarItem from './ToolbarItem.svelte';
import {
2024-04-15 10:33:47 +02:00
ArrowRightLeft,
Group,
CalendarClock,
Pencil,
SquareDashedMousePointer,
Ungroup,
MapPin,
Shrink,
Palette,
FolderTree
} from 'lucide-svelte';
2024-04-09 18:46:01 +02:00
</script>
<div class="absolute top-0 bottom-0 left-0 z-10 flex flex-col justify-center pointer-events-none">
2024-04-12 15:12:27 +02:00
<div class="flex flex-col p-1 gap-1 bg-background rounded-md pointer-events-auto shadow-md">
2024-04-09 18:46:01 +02:00
<ToolbarItem>
2024-04-15 10:33:47 +02:00
<Pencil slot="icon" size="18" />
2024-04-09 18:46:01 +02:00
<span slot="tooltip">Edit the track points</span>
</ToolbarItem>
<ToolbarItem>
2024-04-15 10:33:47 +02:00
<CalendarClock slot="icon" size="18" />
2024-04-09 18:46:01 +02:00
<span slot="tooltip">Change time and speed data</span>
</ToolbarItem>
2024-04-18 15:58:46 +02:00
<ToolbarItem on:click={reverseSelectedFiles}>
2024-04-15 10:33:47 +02:00
<ArrowRightLeft slot="icon" size="18" />
2024-04-18 15:58:46 +02:00
<span slot="tooltip">Reverse the file</span>
2024-04-09 18:46:01 +02:00
</ToolbarItem>
<ToolbarItem>
2024-04-15 10:33:47 +02:00
<Group slot="icon" size="18" />
2024-04-09 18:46:01 +02:00
<span slot="tooltip">Merge with another file</span>
</ToolbarItem>
<ToolbarItem>
2024-04-15 10:33:47 +02:00
<Ungroup slot="icon" size="18" />
2024-04-09 18:46:01 +02:00
<span slot="tooltip">Extract the tracks or track segments to new files</span>
</ToolbarItem>
<ToolbarItem>
2024-04-15 10:33:47 +02:00
<MapPin slot="icon" size="18" />
2024-04-09 18:46:01 +02:00
<span slot="tooltip">Create a new point of interest</span>
</ToolbarItem>
<ToolbarItem>
2024-04-15 10:33:47 +02:00
<Shrink slot="icon" size="18" />
2024-04-09 18:46:01 +02:00
<span slot="tooltip">Reduce the number of track points</span>
</ToolbarItem>
<ToolbarItem>
2024-04-15 10:33:47 +02:00
<SquareDashedMousePointer slot="icon" size="18" />
2024-04-18 15:58:46 +02:00
<span slot="tooltip"
>Clean track points and points of interest with a rectangle selection</span
>
2024-04-09 18:46:01 +02:00
</ToolbarItem>
<ToolbarItem>
2024-04-15 10:33:47 +02:00
<Palette slot="icon" size="18" />
2024-04-09 18:46:01 +02:00
<span slot="tooltip">Change the styling of the trace</span>
</ToolbarItem>
<ToolbarItem>
2024-04-15 10:33:47 +02:00
<FolderTree slot="icon" size="18" />
2024-04-09 18:46:01 +02:00
<span slot="tooltip">Manage the file structure</span>
</ToolbarItem>
</div>
</div>