mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
feat(import): render the file import in a GeoImport view
The file import no longer looks up or listens on the Import button, the picker or the list, and no longer restores focus itself. It connects importGeoFiles, toggleGeoImport, flyToGeoImport and removeGeoImport to the display store. A new GeoImport view owns the button, the picker, the rows and the hint: it opens the picker once the import has presented itself, sends the pick and the row buttons' actions, and hands keyboard focus on with v-focus-safe-children before a focused row goes, to the next row's same button, else the previous row's, else Import.
This commit is contained in:
1 parent
a6e85db8be
commit
42c3cc12b1
11 files changed
+303
-322
No files matched your search
@@ -5,9 +5,8 @@ import { markRaw, shallowRef } from 'vue';
|
||||
* The Display panel as its view renders it. VisualSettings presents its
|
||||
* groups (`_presentDisplay()`), AircraftDisplay the 3D aircraft group, the
|
||||
* draw tool its controls and the file import its list, and each publishes
|
||||
* here. The controls' changes reach their owners (DisplayBindings and the
|
||||
* draw tool) through act(); the file import keeps its listeners on its
|
||||
* controls. VisualSettings also
|
||||
* here. The controls' changes reach their owners (DisplayBindings, the draw
|
||||
* tool and the file import) through act(). VisualSettings also
|
||||
* publishes the active style, which the dock and the scene chrome show, and
|
||||
* the map source controls publish their chip row beside it.
|
||||
*/
|
||||
@@ -70,7 +69,8 @@ export const useDisplayStore = defineStore('gev-display', () => {
|
||||
|
||||
/**
|
||||
* The owners answering the panel's controls, oldest first: DisplayBindings
|
||||
* the Display controls and the dock's style buttons, the draw tool its own.
|
||||
* the Display controls and the dock's style buttons, the draw tool and the
|
||||
* file import their own.
|
||||
* @type {Array<{actions: object}>}
|
||||
*/
|
||||
const owners = [];
|
||||
|
||||
Reference in new issue
Block a user