annatomic 0.2.0

The Annatomic annotation editor is intended to be used for the [RIDGES corpus](https://www.linguistik.hu-berlin.de/en/institut-en/professuren-en/korpuslinguistik/research/ridges-projekt). It is based on [graphANNIS](https://github.com/korpling/graphANNIS) and thus is internal data model is in principle suitable for a wide range of annotation concepts. "
Documentation
use anyhow::Result;
use egui::{RichText, Ui};

use crate::{AnnatomicApp, app::MainView};

pub(crate) fn show(ui: &mut Ui, app: &mut AnnatomicApp) -> Result<()> {
    ui.horizontal(|ui| {
        if ui
            .link(format!(
                "{} Go back to corpus structure",
                egui_phosphor::regular::ARROW_LEFT
            ))
            .clicked()
        {
            app.change_view(MainView::CorpusStructure);
        }

        if let Some(editor) = app.current_editor.get()
            && let Some(id) = editor.get_selected_node()
        {
            ui.label(RichText::new(id).weak());
        }
    });
    ui.separator();

    if let Some(editor) = app.current_editor.get_mut() {
        editor.show(ui);
    }
    Ok(())
}