annatomic 0.1.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 crate::{AnnatomicApp, app::MainView};
use anyhow::Result;
use egui::Ui;

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

    if let Some(editor) = app.current_editor.get_mut() {
        editor.show(ui);
    } else {
        ui.label("Select a corpus to edit it.");
    }

    Ok(())
}